/* Active games are the primary navigation; portraits show only public identity. */
.resume-games-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0 32px;align-items:start}
.resume-games-column{min-width:0;overflow:hidden;border:1px solid #3c5d72;border-radius:18px;background:linear-gradient(150deg,#152936,#101b29 70%);box-shadow:0 12px 30px #0002}
.resume-games-column>header{display:flex;gap:12px;align-items:center;padding:24px 20px;border-bottom:1px solid #42607466;background:linear-gradient(115deg,#18434c80,#1d2b3c)}
.resume-games-column>header>div{min-width:0;flex:1}.resume-games-column h3{font-size:30px;line-height:1.1;margin:0 0 7px;color:#fff}.resume-games-column header p{font-size:14px;line-height:1.5;color:#b5cad4;margin:0}
.resume-games-icon{flex:none;font-size:25px;color:#72e9ed}.resume-games-count{display:grid;place-items:center;min-width:32px;height:32px;padding:0 7px;border:1px solid #75b8c475;border-radius:9px;color:#a2f7ed;font-size:17px;font-weight:850}
.resume-games-computer>header{background:linear-gradient(115deg,#23454280,#1c2d3b)}.resume-games-local>header{background:linear-gradient(115deg,#292d5180,#1c2d3b)}
.resume-games-stack{display:grid;gap:14px;padding:18px}.resume-game-card{min-width:0;padding:22px;border:1px solid #456479;border-radius:13px;background:linear-gradient(145deg,#182c3b,#142131);color:#eef7fc}
.resume-game-card.is-actionable{border-color:#62d3d9;box-shadow:inset 3px 0 #64e5de,0 0 19px #54ded60c}
.resume-game-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;letter-spacing:.08em;font-weight:850;text-transform:uppercase;color:#a4c0ce;margin-bottom:20px}.resume-game-top>span:first-child{color:#72dfe7}
.resume-game-scores{display:grid;gap:19px;min-width:0}.resume-game-team{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;min-width:0}.resume-game-identity{min-width:0}.resume-game-team-name{display:block;min-width:0;color:#f6f8ff;font-weight:800;font-size:19px;line-height:1.3;overflow-wrap:anywhere}.resume-game-identity>small{display:block;margin-top:3px;color:#9eb8c6;font-size:11px;font-weight:600;letter-spacing:.03em}.resume-game-team>strong{font:800 34px/1.1 var(--serif);font-variant-numeric:tabular-nums;color:#fff;letter-spacing:.2px}
.resume-team-portraits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:290px;margin:12px 0 0;min-width:0}.resume-team-portrait{display:grid;justify-items:start;gap:5px;margin:0;min-width:0}.resume-player-picture{position:relative;display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border:1px solid #80cfda99;border-radius:13px;background:linear-gradient(145deg,#314b5d,#172b3b);color:#cae7f0;font-size:14px;font-weight:800;isolation:isolate}.resume-player-picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;background:#1b3040}.resume-player-picture>img[hidden]{display:none}.resume-team-portrait.is-captain .resume-player-picture{border-color:#dfc46c}.resume-team-portrait.is-team .resume-player-picture>img{object-fit:contain;padding:5px}.resume-team-portrait figcaption{display:grid;gap:2px;min-width:0;width:100%;line-height:1.25}.resume-team-portrait figcaption>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:700;color:#d6e6ee}.resume-team-portrait figcaption>small{font-size:9px;line-height:1.25;color:#9ab4c5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resume-game-status{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px;padding-top:16px;border-top:1px solid #50708440}.resume-game-status>small{font-size:11px;color:#9bb3c2}.resume-game-turn{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:#bccad4;font-weight:700}.resume-game-turn>i{width:6px;height:6px;border-radius:50%;background:#849cae;flex:none}.resume-game-turn.is-your-turn{color:#8af1df}.resume-game-turn.is-your-turn>i{background:#8af1df;box-shadow:0 0 8px #8af1df66}
.resume-game-card>.resume-game-button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;margin-top:18px;min-height:50px;font-size:16px;padding:12px 15px;white-space:normal}.resume-game-pending{font-size:16px;color:#c1d2dd;line-height:1.5}
.resume-games-empty{min-height:220px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:20px 10px;text-align:center;border:1px dashed #486175;border-radius:13px}.resume-games-empty p{margin:0;color:#adbecb;font-size:16px}.resume-games-empty>.btn{font-size:15px;white-space:normal;min-height:46px}
/* One compact shortcut belongs in the popup header, not in its main content. */
.resume-quick-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;column-gap:15px;row-gap:7px;align-items:center;padding:11px 14px;margin:0;border:1px solid #64d5da80;border-radius:13px;background:radial-gradient(ellipse at 0 0,#2b899e42,transparent 70%),linear-gradient(115deg,#132f3c,#172638 70%);box-shadow:0 5px 18px #0002;min-width:0}
.resume-quick-heading{display:flex;align-items:center;gap:8px;min-width:0}.resume-quick-heading>strong{font-size:10px;line-height:1.3;letter-spacing:.1em;color:#89ecdf;white-space:nowrap}.resume-quick-heading>small{font-size:10px;line-height:1.3;color:#afc7d4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resume-quick-heading>small:before{content:'·';margin-right:8px}
.resume-quick-card .resume-game-scores{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.resume-quick-card .resume-game-team{gap:7px}.resume-quick-card .resume-game-team-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.35}.resume-quick-card .resume-game-team>strong{font-size:21px;line-height:1.1}.resume-quick-card .resume-game-scores>.resume-game-team+ .resume-game-team{position:relative}.resume-quick-card .resume-game-scores>.resume-game-team+ .resume-game-team:before{content:'';position:absolute;left:-10px;top:1px;bottom:1px;width:1px;background:#6b93aa40}
.resume-team-portraits.is-header{display:flex;gap:5px;max-width:none;margin-top:7px}.resume-team-portraits.is-header .resume-team-portrait{display:block}.resume-team-portraits.is-header .resume-player-picture{width:29px;height:29px;border-radius:50%;font-size:9px}.resume-quick-card>.resume-quick-button{grid-column:2;grid-row:1/3;font-size:14px;line-height:1.2;min-height:46px;padding:12px 16px;white-space:nowrap}
body.magic-view .resume-games-column{background:linear-gradient(150deg,#271d37,#171428 70%);border-color:#6d507e}body.magic-view .resume-games-column>header{background:linear-gradient(115deg,#432b5180,#252037);border-color:#aa8bb83d}body.magic-view .resume-game-card{background:linear-gradient(145deg,#31203f,#221b32);border-color:#685078}body.magic-view .resume-game-card.is-actionable{border-color:#a9dedb;box-shadow:inset 3px 0 #8be9de}body.magic-view .resume-quick-card{background:radial-gradient(ellipse at 0 0,#8d5aaa30,transparent 70%),linear-gradient(115deg,#2c213b,#191d2e);border-color:#a9d7e180}body.magic-view .resume-player-picture{background:linear-gradient(145deg,#493657,#241d35)}
@media(max-width:1100px){.resume-games-board{gap:12px}.resume-games-column>header{padding:20px 14px;gap:8px}.resume-games-column h3{font-size:26px}.resume-games-stack{padding:12px}.resume-game-card{padding:17px}.resume-game-team-name{font-size:17px}.resume-game-team>strong{font-size:30px}.resume-games-icon{font-size:21px}.resume-team-portraits{gap:5px}.resume-player-picture{width:42px;height:42px}}
@media(max-width:850px){.resume-games-board{grid-template-columns:minmax(0,1fr);gap:20px}.resume-games-column>header{padding:20px}.resume-games-column h3{font-size:30px}.resume-games-stack{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}.resume-games-empty:only-child{grid-column:1/-1;min-height:112px}.resume-game-card{padding:20px}.resume-games-stack>.resume-game-card:only-child{grid-column:1/-1}.resume-game-team-name{font-size:20px}.resume-player-picture{width:48px;height:48px}}
@media(max-width:540px){.resume-games-stack{grid-template-columns:minmax(0,1fr);padding:12px}.resume-games-board{margin:18px 0 25px;gap:16px}.resume-game-team-name{font-size:18px}.resume-game-team>strong{font-size:32px}.resume-games-column h3{font-size:28px}.resume-quick-card{grid-template-columns:minmax(0,1fr);padding:10px 12px;gap:7px}.resume-quick-card>.resume-quick-button{grid-column:1;grid-row:auto;justify-self:stretch;display:flex;align-items:center;justify-content:space-between;min-height:34px;padding:8px 12px;font-size:12px}.resume-quick-card .resume-game-scores{gap:16px}.resume-quick-card .resume-game-team{gap:4px}.resume-quick-card .resume-game-team>strong{font-size:19px}.resume-quick-card .resume-game-team-name{font-size:12px}.resume-team-portraits.is-header .resume-player-picture{width:26px;height:26px}.resume-team-portraits.is-header{gap:4px;margin-top:5px}}

/* The computer chooser has its own cinematic treatment; arena/header cards stay compact. */
.resume-cinematic{position:relative;isolation:isolate;overflow:hidden;min-width:0;border:1px solid #76d7df88;border-radius:20px;padding:25px 32px 26px;background:#10212e;color:#eef9ff;box-shadow:inset 0 1px #b6ffef20,0 16px 44px #0003}
.resume-cinematic::before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#0a2631ed,#122335a6 49%,#1c1b35eb),url('/assets/computer-opponent-v21.png') center 43%/cover;opacity:.85;pointer-events:none}
.resume-cinematic::after{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 15% 15%,#4be5d829,transparent 58%),linear-gradient(180deg,transparent,#081321c9);pointer-events:none}
.resume-cinematic.is-war::before{background-image:linear-gradient(90deg,#182036e8,#26153399 49%,#22132ee8),url('/assets/magic-battlefield.webp');background-position:center}
.resume-cinematic.is-actionable{border-color:#87e6dc;box-shadow:inset 0 1px #b6ffef30,0 0 30px #51dcc014,0 16px 44px #0003}
.resume-cinematic-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;font-weight:850;line-height:1.5;letter-spacing:.12em;color:#a9c9d7}
.resume-cinematic-top>span:first-child{display:flex;align-items:center;gap:9px;color:#9bf7e9}.resume-cinematic-top i{display:block;width:7px;height:7px;border-radius:50%;background:#92f5df;box-shadow:0 0 15px #77eed48a}
.resume-cinematic-matchup{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.5fr) minmax(0,1fr);align-items:center;gap:28px;min-height:310px;padding:30px 0 24px}
.resume-cinematic-team{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center}.resume-cinematic-team-label{font-size:11px;font-weight:850;letter-spacing:.15em;color:#d2b9eb}.resume-cinematic-team.is-viewer .resume-cinematic-team-label{color:#8feee4}
.resume-cinematic-team h3{max-width:100%;margin:8px 0 15px;font:800 clamp(29px,3vw,46px)/1.1 var(--serif);color:#fff;overflow-wrap:anywhere;text-shadow:0 3px 14px #0007}
.resume-cinematic-score{display:block;font:800 clamp(46px,5vw,78px)/1 var(--serif);font-variant-numeric:tabular-nums;letter-spacing:.01em;color:#f8f2ff;text-shadow:0 0 28px #ac8ce126,0 4px 14px #0005}.resume-cinematic-team.is-viewer .resume-cinematic-score{color:#93f2e7}
.resume-cinematic-points{font-size:9px;font-weight:850;letter-spacing:.16em;color:#9eb9cb;margin-top:8px}
.resume-cinematic .resume-team-portraits{width:100%;max-width:340px;gap:14px;margin:23px 0 0}.resume-cinematic .resume-team-portrait{justify-items:center;gap:8px}.resume-cinematic .resume-player-picture{width:clamp(58px,5.8vw,90px);height:clamp(68px,6.8vw,105px);border-radius:13px;border-color:#ac9cc67d;background:linear-gradient(150deg,#29495f,#172232);box-shadow:0 8px 18px #0005,inset 0 0 0 3px #ffffff09;font-size:22px}.resume-cinematic .resume-team-portrait.is-captain .resume-player-picture{border-color:#e2c878}.resume-cinematic .resume-team-portrait.is-team .resume-player-picture>img{padding:8px}.resume-cinematic .resume-team-portrait figcaption{gap:4px}.resume-cinematic .resume-team-portrait figcaption>span{font-size:12px;color:#eaf4fb}.resume-cinematic .resume-team-portrait figcaption>small{font-size:10px;color:#99b7c9}
.resume-cinematic-center{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;min-width:0}.resume-cinematic-emblem{display:grid;place-items:center;width:82px;height:96px;clip-path:polygon(50% 0,94% 21%,86% 76%,50% 100%,14% 76%,6% 21%);background:linear-gradient(145deg,#80d6df45,#d4a6ff20);font:800 35px/1 var(--serif);letter-spacing:.04em;color:#cff7f7;text-shadow:0 3px 8px #0005}.resume-cinematic-center>strong{font-size:12px;font-weight:850;letter-spacing:.12em;line-height:1.5;color:#e3cef7;text-transform:uppercase}.resume-cinematic-center>span:last-child{font-size:13px;line-height:1.5;color:#c2d6df}
.resume-cinematic-progress{display:flex;align-items:center;gap:26px;max-width:760px;margin:0 auto 23px;padding:17px 22px;border:1px solid #a3d2df2e;border-radius:10px;background:#07172175}.resume-cinematic-progress>span{font-size:10px;font-weight:800;letter-spacing:.09em;color:#afc7d8;white-space:nowrap}.resume-cinematic-progress>ol{display:flex;flex:1;gap:10px;list-style:none;margin:0;padding:0;min-width:0}.resume-cinematic-progress li{flex:1;display:grid;gap:6px;text-align:center;color:#8ba1b5;font-size:10px;line-height:1.3;font-weight:800}.resume-cinematic-progress li>i{display:block;width:100%;height:5px;border-radius:4px;background:#60768b44}.resume-cinematic-progress li.is-revealed{color:#a0f2e9}.resume-cinematic-progress li.is-revealed>i{background:linear-gradient(90deg,#41c9d3,#9cf2df);box-shadow:0 0 10px #62ebd52b}
.resume-cinematic-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-top:20px;border-top:1px solid #acd3e02b}.resume-cinematic-bottom .resume-game-turn{font-size:15px}.resume-cinematic .resume-cinematic-button{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:58px;min-width:min(330px,100%);padding:15px 23px;border:1px solid #b0fff1;border-radius:11px;background:linear-gradient(120deg,#a4f5dc,#37d6de 65%,#2dafc2);color:#072d32;font-size:17px;font-weight:850;line-height:1.4;white-space:normal;box-shadow:0 5px 22px #39dfc61c,inset 0 1px #e2fffab3}.resume-cinematic .resume-cinematic-button:hover{filter:brightness(1.08)}.resume-cinematic .resume-cinematic-button:focus-visible{outline:3px solid #fff;outline-offset:4px}.resume-cinematic-button>span{font-size:25px;line-height:1}
.resume-cinematic-pending{font-size:21px;line-height:1.5;color:#ccdee7}.computer-resume-dialog .local-session-choice{gap:18px}.computer-resume-dialog .local-save-tools{padding:12px 18px}
@media(min-width:1000px){#modal.computer-resume-dialog .modal-body{display:flex;flex-direction:column}#modal.computer-resume-dialog .local-session-choice{flex:1;align-content:start}.computer-resume-dialog .local-session-choice>.resume-cinematic:only-of-type{display:flex;flex-direction:column;min-height:min(580px,calc(100dvh - 325px))}.computer-resume-dialog .local-session-choice>.resume-cinematic:only-of-type>.resume-cinematic-matchup{flex:1}.computer-resume-dialog .local-session-choice>.resume-cinematic:only-of-type>.resume-cinematic-progress{width:min(760px,100%)}}
@media(max-width:760px){.resume-cinematic{padding:19px 19px 21px;border-radius:16px}.resume-cinematic-matchup{gap:18px;grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;padding:25px 0 21px}.resume-cinematic-center{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:auto 1fr;justify-content:center;align-items:center;gap:3px 13px;width:fit-content;max-width:100%;margin:4px auto 0;text-align:left}.resume-cinematic-emblem{grid-column:1;grid-row:1/3;width:42px;height:49px;font-size:20px}.resume-cinematic-center>strong{font-size:11px}.resume-cinematic-center>span:last-child{font-size:12px}.resume-cinematic-team h3{font-size:30px;margin-bottom:13px}.resume-cinematic-score{font-size:51px}.resume-cinematic .resume-team-portraits{gap:8px;margin-top:19px}.resume-cinematic .resume-player-picture{width:48px;height:59px;border-radius:9px;font-size:16px}.resume-cinematic .resume-team-portrait figcaption>span{font-size:10px}.resume-cinematic .resume-team-portrait figcaption>small{font-size:9px}.resume-cinematic-progress{gap:15px;padding:13px 15px;flex-wrap:wrap;margin-bottom:18px}.resume-cinematic-progress>span{font-size:9px}.resume-cinematic-progress>ol{min-width:160px}.resume-cinematic-bottom{flex-wrap:wrap;gap:14px;padding-top:17px}.resume-cinematic .resume-cinematic-button{width:100%;min-width:0;font-size:16px;min-height:55px}.resume-cinematic-bottom .resume-game-turn{font-size:13px}}
@media(max-width:420px){.resume-cinematic{padding:15px 12px 17px}.resume-cinematic-top{font-size:9px;gap:8px;letter-spacing:.07em}.resume-cinematic-top>span:first-child{gap:6px}.resume-cinematic-matchup{gap:15px 8px;padding-top:23px}.resume-cinematic-team-label{font-size:9px;letter-spacing:.1em}.resume-cinematic-team h3{font-size:25px;margin-top:7px;min-height:55px;display:flex;align-items:center;justify-content:center}.resume-cinematic-score{font-size:43px}.resume-cinematic-points{font-size:8px;letter-spacing:.08em}.resume-cinematic .resume-team-portraits{gap:4px}.resume-cinematic .resume-player-picture{width:34px;height:45px;border-radius:7px;font-size:12px}.resume-cinematic .resume-team-portrait figcaption>span{font-size:8px}.resume-cinematic .resume-team-portrait figcaption>small{font-size:8px}.resume-cinematic-progress{padding:12px;gap:12px}.resume-cinematic-progress>span{width:100%;text-align:center}.resume-cinematic .resume-cinematic-button{padding:13px 14px;font-size:14px}}

/* The quiet reset shortcut opens a confirmation; the primary resume stays intact. */
.resume-game-tools{display:flex;justify-content:flex-end;margin:7px 0 -10px;min-width:0}
.resume-game-reset{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:5px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#abc5d1;font:inherit;font-size:11px;font-weight:700;line-height:1.3;cursor:pointer}
.resume-game-reset>span{font-size:15px;line-height:1}
.resume-game-reset:hover{color:#e2fbf6;background:#5ce7da12;border-color:#79c8c044}
.resume-game-reset:focus-visible{outline:2px solid #91f3e5;outline-offset:2px}

/* Computer games are always resumable; this is presentation, not turn permission. */
.resume-game-computer.is-actionable{border-color:#65d5ac;box-shadow:inset 3px 0 #77e5b7;background:linear-gradient(135deg,#163a33,#142532)}
.resume-game-computer.is-actionable .resume-game-turn{color:#8ef0ba}.resume-game-computer.is-actionable .resume-game-turn>i{background:#7eeab1;box-shadow:0 0 8px #7eeab166}.resume-game-computer.is-actionable>.resume-game-button{background:#80e3b9;color:#063725;border-color:#a0f0ce}
.resume-game-card.is-latest{border-color:#63dfe5;box-shadow:inset 3px 0 #67e9e1,0 0 20px #4edbd014}.resume-game-card.is-latest>.resume-game-button{background:#40ddec!important;color:#032734!important;border-color:#66eeee!important}

/* v45: give the three featured cards a centered row spanning the score columns. */
.resume-game-card .resume-game-team>.resume-team-portraits{
 grid-column:1/-1;width:100%;max-width:390px;justify-self:center;
 gap:clamp(8px,1.1vw,18px);margin:3px auto 0;
}
.resume-game-card .resume-team-portrait{justify-items:center;text-align:center;gap:7px}
.resume-game-card .resume-player-picture{
 width:64px;height:64px;max-width:100%;border-radius:14px;
 box-shadow:0 5px 14px #0003,inset 0 1px #c8ffff1c;
}
.resume-game-card .resume-team-portrait figcaption>span{
 white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.3;
}
.resume-game-card .resume-team-portrait figcaption>small{font-size:10px}
@media(min-width:851px) and (max-width:1100px){
 .resume-game-card .resume-player-picture{width:56px;height:56px}
}
@media(max-width:380px){
 .resume-game-card .resume-player-picture{width:58px;height:58px}
}
