@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#253344;background:#e7e9e4;--session-bg:#18263d;--session-color:#faf0d4;--session-accent:#e9a453;--session-border:#35445b;--session-background:#18263d;--session-text:#faf0d4;--session-muted:#c8c9c2;--session-control-bg:#314159;--session-control-border:#667084}
*{box-sizing:border-box}body{margin:0;min-width:900px;background:radial-gradient(ellipse at 15% 0,#faf5e9 0,transparent 52%),linear-gradient(160deg,#e7eae5,#e3e2dd);color:#253344}
button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button:focus-visible,input:focus-visible{outline:3px solid #d58b44;outline-offset:3px}
#shell{max-width:1740px;margin:auto;padding:22px clamp(22px,3vw,48px) 32px}#notice{padding:12px;background:#ffe9d9;color:#7d322c;border-radius:8px}#lobby{max-width:1100px;margin:3vh auto}.games-lobby-shell{--surface:#fffcf4;--surface-soft:#edf0ea;--ink:#223149;--muted:#68717c;--border:#c7cbd0;--action:#bd613e;--action-ink:white;box-shadow:none}
.games-lobby-shell:has(.games-lobby-directory)::before{content:'';display:block;height:240px;border-radius:7px;background:#18263d url('/assets/decrypto-cover.webp') center / cover;margin-bottom:20px}
.dc-table{--gold:#c7944a;min-height:590px}.dc-scores{display:flex;gap:0;max-width:550px;margin:0 auto 14px;border:1px solid #bac3c3;border-radius:9px;overflow:hidden;background:#f4f4ec;box-shadow:0 4px 16px #24344e13}
.dc-score{flex:1;min-width:0;padding:10px 18px;background:#f4f2ea}.dc-score.black{background:#263044;color:#fff1dc}.dc-score-name{display:block;font:700 12px 'IBM Plex Mono',monospace;letter-spacing:.2em;opacity:.75;margin-bottom:5px}.dc-score-stats{display:flex;gap:24px}.dc-score-stat{display:flex;align-items:baseline;gap:7px;min-width:0}.dc-score-stat strong{font:700 26px/1 'Space Grotesk',sans-serif}.dc-score-stat span{font:600 12px 'IBM Plex Mono',monospace;letter-spacing:.05em;white-space:nowrap;opacity:.73}
.dc-roster{display:flex;align-items:center;justify-content:center;gap:25px;padding:0 0 17px;border-bottom:1px solid #c9cecc;margin-bottom:22px}.dc-players{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.dc-roster-name{font:700 12px 'IBM Plex Mono',monospace;letter-spacing:.14em;color:#778083;margin-right:5px}.dc-person{font-size:12px;color:#5b6370;padding:3px 8px;border-radius:4px}.dc-person.active{background:#ead29c;color:#413522;font-weight:700}.dc-person.me{box-shadow:inset 0 -2px 0 #cf8546}
.dc-layout{display:grid;grid-template-columns:minmax(218px,265px) minmax(450px,1fr) minmax(260px,330px);gap:clamp(22px,2.3vw,42px);align-items:start}.dc-layout>*{min-width:0}
.dc-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:2px 0 15px;padding-bottom:10px;border-bottom:1px solid #c4c8c5}.dc-heading h2{margin:0;font:700 17px 'Space Grotesk',sans-serif;letter-spacing:-.02em}.dc-muted{font:600 12px 'IBM Plex Mono',monospace;letter-spacing:.07em;color:#858b8c;white-space:nowrap}
.dc-keyword-grid{display:grid;gap:11px}.dc-keyword{min-height:81px;display:flex;align-items:center;gap:13px;position:relative;padding:13px;border-radius:7px;border:1px solid #7c8993;background:repeating-linear-gradient(110deg,#293b4e,#293b4e 5px,#2f4255 6px);box-shadow:0 3px 1px #bbc1bd;color:#9faab4}.dc-keyword.visible{background:linear-gradient(132deg,#fefcf2,#f2efe1);border-color:#d1c7ab;color:#223b52;box-shadow:0 3px 1px #dad5c4,0 9px 18px #172c3a10}.dc-key-index{font:700 27px/1 'IBM Plex Mono',monospace;color:#c88d42;opacity:.85;min-width:38px}.dc-key-word{font:700 clamp(15px,1.4vw,21px)/1.1 'Space Grotesk',sans-serif;overflow-wrap:anywhere;letter-spacing:-.02em}.dc-keyword:not(.visible) .dc-key-word{letter-spacing:.2em;font-size:16px}.dc-aside{font-size:12px;line-height:1.6;color:#7b837e;margin:21px 3px}
.dc-overline{font:700 12px 'IBM Plex Mono',monospace;color:#ad693d;letter-spacing:.13em;margin:4px 0 8px}.dc-title{font:700 clamp(24px,2.45vw,34px)/1.14 'Space Grotesk',sans-serif;letter-spacing:-.045em;margin:0 0 27px;color:#243349;min-height:40px}
.dc-clues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dc-clue{height:174px;display:flex;flex-direction:column;padding:15px 14px 12px;border:1px solid #c7bba2;border-radius:7px;background:#fffaf0;box-shadow:0 4px 0 #d7d0c0,0 13px 23px #24344d17;position:relative;min-width:0}.dc-clue::before{content:'';position:absolute;inset:7px;border:1px solid #e8dec9;border-radius:3px;pointer-events:none}.dc-clue.face-down{color:#f7e5bf;background:repeating-linear-gradient(135deg,#263c53,#263c53 12px,#30465b 12px,#30465b 24px);border-color:#4b5664}.dc-clue.face-down::before{border-color:#78818a}.dc-clue-label,.dc-clue-foot{font:700 12px 'IBM Plex Mono',monospace;letter-spacing:.13em;opacity:.65;position:relative;z-index:1}.dc-clue-word{font:700 clamp(19px,1.85vw,28px)/1.1 'Space Grotesk',sans-serif;letter-spacing:-.045em;overflow-wrap:anywhere;margin:auto 0;text-align:center;position:relative;z-index:1}.dc-clue.face-down .dc-clue-word{font-size:70px;font-weight:400;color:#eab46c}.dc-clue-foot{text-align:right}
.dc-actions{margin-top:27px;padding-top:20px;border-top:1px solid #ccd0ce;min-height:224px}.dc-context{margin:12px 0 19px;font-size:14px;line-height:1.6;color:#6b7478;max-width:650px}.dc-ready{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 17px}.dc-chip{font:700 12px 'IBM Plex Mono',monospace;letter-spacing:.06em;border-radius:4px;border:1px solid #c7c7c3;color:#718080;padding:8px 11px;background:#f1f2ed}.dc-chip.done{background:#dfebdd;color:#316b52;border-color:#bdcfbc}.dc-chip.bad{background:#f6dfd1;border-color:#eac4b4;color:#a64d33}
.dc-btn{min-height:44px;border:1px solid #b6bec0;border-radius:6px;background:#f9f8f1;color:#273b51;padding:9px 17px;font-weight:700;font-size:14px;transition:background .14s,transform .14s}.dc-btn:not(:disabled):hover{background:#f2eddd;transform:translateY(-1px)}.dc-btn.primary{background:#c16e44;color:white;border-color:#ac5b35;box-shadow:0 3px 0 #aa5a36}.dc-btn.primary:hover{background:#b15e38}.dc-btn.digit{width:57px;height:53px;font:700 23px 'IBM Plex Mono',monospace;padding:0;box-shadow:0 2px 0 #c5c4bd}.dc-btn.digit.selected{background:#b66d42;color:white;border-color:#a9643e}
.dc-clue-form{display:flex;flex-direction:column;gap:12px;max-width:550px}.dc-clue-input{display:flex;flex-direction:column;gap:6px;font:700 12px 'IBM Plex Mono',monospace;color:#7a6960;letter-spacing:.045em}.dc-input{width:100%;min-height:45px;padding:9px 13px;border:1px solid #b9c2bd;background:#fffef7;border-radius:5px;color:#2d3743;font:500 16px 'Space Grotesk',sans-serif}.dc-input::placeholder{color:#a1a39d}.dc-clue-form>.dc-btn{align-self:flex-start;margin-top:6px}
.dc-guess-chooser{display:flex;flex-direction:column;gap:11px;max-width:390px}.dc-digit-line{display:flex;gap:9px;align-items:center}.dc-digit-number{font:600 12px 'IBM Plex Mono',monospace;color:#9b795a;width:30px}.dc-guess-chooser>.dc-btn{align-self:flex-start;margin-top:8px}.dc-reveal{text-align:left;margin:3px 0 20px}.dc-reveal-label{font:700 12px 'IBM Plex Mono',monospace;letter-spacing:.15em;color:#8b7b6f}.dc-true-code{display:block;font:700 51px/1.4 'IBM Plex Mono',monospace;color:#2e485d;letter-spacing:.08em}.dc-victory{font:700 36px 'Space Grotesk',sans-serif;color:#b76f42;letter-spacing:-.04em;margin-bottom:25px}.dc-finished-word{font:600 12px 'IBM Plex Mono',monospace;margin-top:15px;color:#7f817e}.dc-final-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dc-final-label{display:flex;gap:8px;align-items:center}.dc-final-label>span{font:700 15px 'IBM Plex Mono',monospace;color:#a36f43}.dc-final-form>.dc-btn{grid-column:span 2;justify-self:start}
.dc-note-group{margin:13px 0 20px;padding:0 0 17px;border-bottom:1px solid #c9ceca}.dc-note-group h3{font:700 12px 'IBM Plex Mono',monospace;letter-spacing:.12em;color:#6e797e;margin:0 0 12px}.dc-note-group.black h3{color:#34425a}.dc-note-line{display:flex;align-items:flex-start;gap:12px;min-height:40px;padding:7px 3px;border-top:1px dashed #d0d2cd}.dc-note-number{width:24px;height:25px;display:grid;place-items:center;border-radius:4px;background:#dfd7c4;color:#855c3b;flex-shrink:0;font:700 13px 'IBM Plex Mono',monospace}.dc-note-group.black .dc-note-number{background:#37495b;color:#fff4dd}.dc-note-words{color:#424c56;font:500 13px/1.5 'Space Grotesk',sans-serif;overflow-wrap:anywhere}.dc-notebook{max-height:calc(100vh - 210px);overflow:auto;scrollbar-color:#bcc0bd transparent}
dialog{border:none;border-radius:12px;box-shadow:0 20px 65px #1b293c55;color:#253344}dialog::backdrop{background:#19283baf}dialog form{padding:23px 29px;max-width:720px}dialog form header{display:flex;justify-content:space-between;gap:26px;align-items:center}dialog h2{font:700 28px 'Space Grotesk',sans-serif;margin:4px 0 15px}dialog h3{font:700 18px 'Space Grotesk',sans-serif;margin:20px 0 5px}dialog p{font-size:14px;line-height:1.65}dialog button{border:1px solid #b7c0c5;background:#f4f3ef;padding:9px 15px;border-radius:6px;color:#23344a;font-weight:700}#rules-dialog{max-height:85vh}#rules-dialog .rules-content{overflow:auto}#confirm form{min-width:350px}#confirm button[value=confirm]{background:#b76c44;color:white}
@media(max-width:1220px){.dc-layout{grid-template-columns:220px minmax(400px,1fr) 245px;gap:22px}.dc-clue{height:161px;padding:13px 10px}.dc-note-words{font-size:12px}.dc-score{padding:9px 13px}}
@media(max-width:1020px){.dc-layout{grid-template-columns:205px minmax(380px,1fr);gap:22px}.dc-notebook{grid-column:1/-1;max-height:none;display:grid;grid-template-columns:1fr 1fr;column-gap:25px}.dc-notebook>.dc-heading{grid-column:1/-1}.dc-clues{gap:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
/* The shared session bar remains the sole viewport-wide header. */

.dc-phase-enter .dc-clue.exposed{animation:dc-decode .3s cubic-bezier(.2,.8,.3,1) both}.dc-phase-enter .dc-clue.exposed:nth-child(2){animation-delay:.07s}.dc-phase-enter .dc-clue.exposed:nth-child(3){animation-delay:.14s}.dc-phase-enter .dc-reveal{animation:dc-unseal .4s ease-out both}@keyframes dc-decode{from{opacity:.25;transform:translateY(12px) rotate(-1.5deg)}to{opacity:1;transform:none}}@keyframes dc-unseal{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.dc-phase-enter .dc-clue.exposed,.dc-phase-enter .dc-reveal{animation:none!important}}
