/* Deep Cuts EDH Games — restrained case-file design, keyboard-first UI. */
.games-main{background:linear-gradient(150deg,#f4efdf,#ece5d5 42%,#f8f2e3);min-height:75vh;color:#23382c;padding:44px 0 84px}
.games-wrap{width:min(1050px,calc(100% - 32px));margin:0 auto}
.games-breadcrumbs{display:flex;flex-wrap:wrap;gap:10px;color:#406450;font-size:12px;font-weight:800;letter-spacing:.065em;margin-bottom:18px}
.games-breadcrumbs a{color:#315d49;text-decoration:underline;text-underline-offset:3px}
.games-masthead{padding:34px clamp(20px,4vw,46px);background:#213a30;color:#f8f0df;position:relative;overflow:hidden;border:1px solid #6e7f62;box-shadow:0 15px 35px #213a3024}
.games-masthead:after{content:"DCE · INVESTIGATION BUREAU";position:absolute;right:-30px;bottom:8px;transform:rotate(-18deg);font:800 13px ui-monospace,monospace;letter-spacing:.16em;color:#ffffff19;pointer-events:none}
.games-kicker{display:block;font:800 11px ui-monospace,monospace;letter-spacing:.14em;color:#d9be8c;margin-bottom:12px}
.games-masthead h1{font-family:Georgia,serif;line-height:1.04;font-size:clamp(34px,5vw,58px);color:#f7f1de;margin:0 0 15px;max-width:720px;letter-spacing:-.04em}
.games-masthead h1 em{font-style:italic;color:#d7b580}
.games-masthead p{max-width:660px;color:#deeadf;line-height:1.65;font-size:15px;margin:0 0 7px}
.games-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}
.games-feature{position:relative;display:flex;flex-direction:column;gap:14px;background:#fffcf4;border:1px solid #c5b79a;box-shadow:0 8px 22px #392d1c10;padding:28px;overflow:hidden}
.games-feature:before{content:"";height:4px;position:absolute;top:0;left:0;right:0;background:#ae854d}
.games-feature h2{font:700 clamp(25px,3vw,35px) Georgia,serif;margin:0;line-height:1.08;color:#243b30}
.games-feature p{line-height:1.65;color:#536457;margin:0;flex:1}
.games-card-illustration{height:160px;position:relative;background:radial-gradient(ellipse at 75% 40%,#59765c,#193329 80%);border:1px solid #9ca48d;overflow:hidden;display:flex;align-items:center;justify-content:center}
.games-card-illustration .games-big-symbol{font-size:84px;color:#f0deb6;text-shadow:0 8px 24px #13291c8c;filter:drop-shadow(0 3px 7px #11271b66)}
.games-card-illustration.ladder{background:linear-gradient(142deg,#293a32,#4b5840)}
.games-card-illustration .games-puzzle-text{position:absolute;left:13px;bottom:12px;color:#f4e8c4;font:700 11px ui-monospace,monospace;letter-spacing:.1em}
.games-game-meta{display:flex;gap:7px;flex-wrap:wrap}
.games-tag{border:1px solid #c8b68e;background:#f5eddb;padding:5px 9px;font-size:10px;font-weight:800;color:#6b593c;letter-spacing:.045em}
.games-button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;padding:12px 17px;border-radius:3px;font-size:12px;font-weight:850;letter-spacing:.05em;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.games-button-primary{background:#294d3d;color:#fff6e5}
.games-button-primary:hover:not(:disabled){background:#346850;transform:translateY(-1px)}
.games-button-quiet{color:#254a3a;border-color:#bba882;background:transparent}
.games-button-quiet:hover:not(:disabled){background:#f0e5ce}
.games-button:disabled{opacity:.6;cursor:not-allowed}
.games-button:focus-visible,.games-suspect:focus-visible,.games-move:focus-visible,.games-link:focus-visible{outline:3px solid #ac7533;outline-offset:3px}
.games-feature-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:5px}
.games-feature-actions .games-button{flex:1}
.games-intro-notes{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:25px}
.games-info-block{padding:24px;background:#fdf9ef;border:1px solid #d7c9ad}
.games-info-block h2{font:700 23px Georgia,serif;margin:0 0 12px}
.games-info-block p,.games-info-block li{color:#4f5b51;font-size:14px;line-height:1.7}
.games-info-block ul{padding-left:20px}
.games-overline{font:800 11px ui-monospace,monospace;letter-spacing:.14em;color:#a07841}
.games-page-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,288px);gap:22px;margin-top:25px;align-items:start}
.games-casebook{min-width:0;background:#fffbf1;border:1px solid #c5b79a;box-shadow:0 9px 22px #44341a11;padding:clamp(16px,3vw,27px)}
.games-sidebar{display:grid;gap:15px}
.games-note{padding:18px;background:#fdf9ee;border:1px solid #d2c3a7}
.games-note h2,.games-note h3{font:700 19px Georgia,serif;color:#244032;margin:0 0 10px}
.games-note p,.games-note li{color:#4f5c50;font-size:13px;line-height:1.65}
.games-note ul{padding-left:19px;margin-bottom:0}
.games-note a{color:#245c42;text-decoration:underline;text-underline-offset:3px}
.games-note .games-button{width:100%;margin:5px 0}
.games-muted{font-size:13px;line-height:1.6;color:#5d675a}
.games-account-banner{font-size:12px;background:#eae7d6;padding:12px 14px;border:1px solid #c6c5b1;margin:17px 0}
.games-account-banner a{font-weight:850;color:#286047;text-decoration:underline}
.games-puzzle-status{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:3px 0 18px}
.games-puzzle-status>span{font:800 10px ui-monospace,monospace;letter-spacing:.09em;color:#5d6a59}
.games-message{min-height:2.5em;margin:10px 0;color:#285d44;font-size:13px;font-weight:650}
.games-message[data-kind="error"]{color:#9b4030}
.games-loading{text-align:center;padding:30px;color:#4e5e52}
.games-dossier-head{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:2px solid #bdac88;padding:0 0 15px;margin-bottom:20px}
.games-file-id,.games-incident{font:750 10px ui-monospace,monospace;letter-spacing:.07em;color:#7e6849}
.games-incident{color:#39644a}
.games-clue-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.games-clue{display:flex;align-items:flex-start;gap:14px;padding:13px;background:#f3ecda;border:1px solid #d5c7a8}
.games-clue-open{background:#fcf7e9;border-color:#d4bc86}
.games-clue-number{display:grid;place-items:center;flex:0 0 30px;height:30px;color:#f6efd9;background:#325540;border:1px solid #8eac84;font:750 12px ui-monospace,monospace}
.games-clue-locked .games-clue-number{background:#a69a84;border-color:#b9ad98}
.games-clue-info{min-width:0}
.games-clue-info strong{display:block;color:#2a513b;font:800 11px ui-monospace,monospace;letter-spacing:.08em}
.games-clue-info p{margin:5px 0 0;color:#364938;line-height:1.5;font-size:13px}
.games-clue-locked .games-clue-info p{color:#8b8675}
.games-guess-history{border-top:1px dashed #c7b99a;margin-top:18px;padding-top:12px;display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.games-guess-history .games-overline{flex:0 0 100%;margin:0 0 5px}
.games-guess-chip{background:#eee0c4;color:#654f37;font-size:11px;padding:5px 8px;border-radius:4px}
.games-guess-right{background:#c9e3c6;color:#2e6135}
.games-choose-suspect{margin-top:27px}
.games-choose-suspect h2,.games-casebook>h2{font:700 25px Georgia,serif;color:#27412f;margin-bottom:8px}
.games-suspect-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:17px 0}
.games-suspect{font-weight:700;font-size:12px;line-height:1.4;min-height:53px;border:1px solid #bcac8c;color:#3a4838;background:#fdf9ee;text-align:left;padding:10px 11px;cursor:pointer;border-radius:4px}
.games-suspect:hover:not(:disabled){border-color:#4f8665;background:#f3f0d9}
.games-suspect[aria-pressed="true"]{background:#dcebd7;border-color:#2b684c;box-shadow:inset 0 0 0 1px #2b684c;color:#214731}
.games-suspect-tried{opacity:.5;text-decoration:line-through;cursor:not-allowed}
.games-choose-suspect>.games-button{width:100%}
.games-reveal{border-top:2px solid #b49058;margin-top:21px;padding-top:22px}
.games-reveal h2{font:700 clamp(25px,3.5vw,35px) Georgia,serif;color:#244534;line-height:1.2;margin:10px 0}
.games-reveal-score{font-weight:800;color:#38654a}
.games-reveal-card{display:flex;gap:18px;align-items:center;margin:20px 0}
.games-art-frame{flex:0 0 145px;width:145px;height:145px;background:#294331;border:3px solid #c1a26d;overflow:hidden}
.games-card-art{width:100%;height:100%;object-fit:cover;display:block}
.games-no-art:after{content:"Card artwork unavailable";display:grid;place-items:center;min-height:100%;padding:10px;color:#f4e3bf;font-size:11px;text-align:center}
.games-link{display:inline-block;margin:6px 13px 6px 0;text-decoration:underline;text-underline-offset:3px;font-weight:850;color:#296748;font-size:11px;line-height:1.5}
.games-result-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.games-result-actions .games-button{flex:1}
.games-copy-fallback{flex:0 0 100%;min-height:70px;background:#f9efdd;border:1px solid #c4b08e;padding:12px}
.games-ladder-list,.games-reveal-order{list-style:none;margin:21px 0;padding:0;display:grid;gap:9px}
.games-ladder-row,.games-rank-reveal{display:flex;align-items:center;gap:10px;background:#f9f2e1;border:1px solid #d0bfa1;padding:9px;min-height:78px}
.games-ladder-position{width:42px;flex:0 0 42px;text-align:center;color:#9a7145;font:800 10px ui-monospace,monospace}
.games-small-art{height:59px;width:59px;flex:0 0 59px;overflow:hidden;border:2px solid #c3ad7d;background:#233c31}
.games-small-art img{width:100%;height:100%;object-fit:cover}
.games-ladder-name{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}
.games-ladder-name strong,.games-rank-reveal strong{font-size:13px;line-height:1.25;color:#2b4533;overflow-wrap:anywhere}
.games-move-buttons{display:flex;gap:5px;flex:0 0 auto}
.games-move{display:grid;place-items:center;width:35px;height:39px;border:1px solid #ac9b7d;background:#fff9e9;color:#2b593e;font-size:18px;cursor:pointer;border-radius:3px}
.games-move:hover:not(:disabled){background:#e2eace;border-color:#427757}
.games-move:disabled{opacity:.35;cursor:default}
.games-casebook>.games-button{width:100%}
.games-rank-reveal div{min-width:0;display:flex;flex-direction:column;flex:1}
.games-rank-reveal>.games-link{flex:0 0 auto;margin:4px}
.games-rank-reveal .games-muted{display:block;margin:3px 0}
.games-new-awards{padding:19px;background:#e9f0d9;border:2px solid #72976a;margin-top:20px}
.games-new-awards h3{color:#355e38;font:700 22px Georgia,serif;margin:0 0 12px}
.games-award-popup{margin:8px 0;padding:8px 11px;background:#fffbeb}
.games-award-popup p{color:#536248;font-size:12px;margin:5px 0 0}
.games-awards-title{font:700 16px Georgia,serif;margin:4px 0 9px}
.games-achievement{display:inline-block;border:1px solid #bba072;background:#f6ead0;color:#62451b;font-size:11px;font-weight:700;margin:4px;padding:6px 8px}
.games-board-row{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #d7c7a8;align-items:center;font-size:12px}
.games-board-row>span{color:#8d7349}
.games-board-row a{color:#245d42;overflow-wrap:anywhere;flex:1}
.games-board-row strong{color:#293f34}
.games-disclosure{margin:35px 0 0;padding:23px;border:1px solid #cbbd9f;background:#fbf6ea;color:#546053;font-size:13px;line-height:1.7}
.games-disclosure h2{font:700 21px Georgia,serif;color:#243c30;margin-bottom:8px}
.games-disclosure a{color:#276343;text-decoration:underline}
.games-foot{padding:25px 12px;background:#162b23;color:#bdcebd;font-size:12px;text-align:center}
.games-foot a{color:#ebd19d;text-decoration:underline}
.games-page-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:19px}
.games-page-links a{color:#d8bf8c;text-decoration:underline;text-underline-offset:3px;font-size:12px;font-weight:800}
.games-awards-preview{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}
.games-awards-preview>span{display:inline-block;padding:8px;border:1px solid #d6c29d;background:#f2e6cf;color:#604922;font-size:11px;font-weight:800}
@media(max-width:820px){
 .games-page-layout{grid-template-columns:1fr}
 .games-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .games-hub-grid{grid-template-columns:1fr}
 .games-feature{padding:23px}
 .games-intro-notes{grid-template-columns:1fr}
}
@media(max-width:600px){
 .games-main{padding:25px 0 65px}
 .games-wrap{width:calc(100% - 22px)}
 .games-masthead{padding:26px 19px}
 .games-sidebar{grid-template-columns:1fr}
 .games-casebook{padding:18px 12px}
 .games-suspect-grid{grid-template-columns:1fr}
 .games-suspect{min-height:44px}
 .games-feature-actions{flex-direction:column}
 .games-reveal-card{flex-direction:column;align-items:flex-start}
 .games-art-frame{width:100%;max-width:220px;height:165px;flex:0 0 auto}
 .games-rank-reveal .games-link{font-size:10px}
 .games-ladder-position{width:35px;flex-basis:35px}
 .games-small-art{height:52px;width:52px;flex-basis:52px}
 .games-move{width:34px;height:36px}
 .games-ladder-name strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .games-button{transition:none}
 .games-button:hover{transform:none}
}


/* Real new achievement: one-time shimmer, never a repeated distraction. */
@keyframes dc-earned-sheen{0%{box-shadow:0 0 0 rgba(215,177,92,0);transform:translateY(2px)}45%{box-shadow:0 0 0 1px rgba(217,177,99,.5),0 0 16px rgba(219,181,103,.38);transform:none}100%{box-shadow:0 0 0 rgba(215,177,92,0);transform:none}}
.games-award-popup.dc-earned-achievement{animation:dc-earned-sheen 1.6s ease-out both}
@media(prefers-reduced-motion:reduce){.games-award-popup.dc-earned-achievement{animation:none;border-color:#c69b5a}}
