@import url('assets/fonts/fonts.css');
@import url('assets/ui/tokens.css');
*{box-sizing:border-box}body{margin:0;background:#141b2a url('assets/backgrounds/bg-navy-desktop-1440x900.webp') center top/cover fixed;color:#fffdfa;font-family:var(--font-sans);word-break:keep-all}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible{outline:3px solid #f2cf87;outline-offset:4px}a{color:#d9c49e}h1,h2,h3,p{margin:0}h1,h2,h3,.serif{font-family:var(--font-serif);font-weight:500}h1{font-size:54px;letter-spacing:.06em}h2{font-size:28px}h3{font-size:22px}p{line-height:1.7}.muted{color:#a9b0c0;font-size:13px}.gold{color:#d9c49e}.eyebrow{letter-spacing:.24em;color:#ba9d72;font-size:11px}.topbar{max-width:1440px;margin:auto;min-height:76px;padding:12px 32px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ba9d7240;gap:16px}.wordmark{border:0;background:none;font-family:var(--font-serif);font-size:26px;letter-spacing:.12em;padding:0;text-align:left}.wordmark small{font:10px var(--font-sans);color:#ba9d72;letter-spacing:.25em;margin-left:12px}nav{display:flex;gap:8px}nav button,.text-btn{border:1px solid #ba9d7260;background:transparent;color:#d9c49e;padding:8px 12px;border-radius:4px;font-size:12px}.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;padding:12px 18px;border-radius:4px;border:1px solid #ba9d72;background:transparent;color:#d9c49e;text-decoration:none;font-size:16px;transition:filter .15s,transform .15s}.btn:hover{filter:brightness(1.14)}.btn:active{transform:translateY(1px)}.btn.primary{background:linear-gradient(#cbb089,#ba9d72);color:#141b2a;border-color:#d8c39c;box-shadow:0 6px 16px #0004}.actions{display:flex;gap:12px;margin-top:22px}.actions>*{flex:1;min-width:0}main{max-width:1440px;margin:auto;padding:24px 32px}.home-hero{display:flex;gap:72px;align-items:center;justify-content:center;min-height:390px;padding:30px 0}.hero-copy{width:460px}.hero-copy p{font-family:var(--font-serif);font-size:19px;margin-top:22px;color:#e4e7ee}.english{font-family:var(--font-serif);font-size:13px;letter-spacing:.3em;color:#d9c49e;margin-top:10px}.fan{height:300px;width:500px;position:relative;flex-shrink:0}.fan img{position:absolute;width:120px;height:auto;left:calc(50% - 60px);top:55px;border-radius:6px;box-shadow:0 10px 24px #0007;transform-origin:50% 120%}.fan img:nth-child(1){transform:translateX(-150px) rotate(-20deg);top:71px}.fan img:nth-child(2){transform:translateX(-75px) rotate(-10deg);top:63px}.fan img:nth-child(4){transform:translateX(75px) rotate(10deg);top:63px}.fan img:nth-child(5){transform:translateX(150px) rotate(20deg);top:71px}.panel{border:1px solid #ba9d7255;border-radius:14px;background:#161e30bd;padding:22px;box-shadow:0 12px 30px #0003}.dealer-strip{margin:26px 0 0}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}.roster{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.portrait-item{text-align:center;width:80px;font-size:12px;color:#c3c9d5}.portrait-item img{display:block;width:60px;height:60px;border-radius:50%;margin:0 auto 8px;border:2px solid #ba9d72;box-shadow:0 6px 14px #0005}.layout{display:grid;grid-template-columns:280px minmax(380px,1fr) 320px;gap:30px;align-items:start}.left-col{display:grid;gap:16px}.profile{text-align:center}.profile img{width:120px;height:120px;border-radius:50%;margin-bottom:16px;border:3px solid #ba9d72}.profile h2{margin:10px 0}.profile .speech{font-family:var(--font-serif);font-size:14px;margin:14px 0}.trait{background:#ffffff0b;padding:8px;border-radius:5px;font-size:12px;color:#bdc4d1}.ai-status{display:inline-block;border:1px solid #ffffff26;border-radius:30px;padding:9px 16px;margin-top:14px;font-size:12px}.ladder{padding:16px 10px}.ladder .eyebrow{padding:0 10px 10px}.ladder-row{display:flex;align-items:center;gap:9px;min-height:38px;padding:4px 8px;border-radius:5px;font-size:12px;opacity:.45}.ladder-row img{width:30px;height:30px;border-radius:50%}.ladder-row.passed,.ladder-row.current{opacity:1}.ladder-row.current{background:#ffffff12;font-weight:700}.ladder-row span:last-child{margin-left:auto;color:#d9c49e;font-size:11px}.board-area{width:100%;max-width:460px;margin:0 auto}.phase-head{display:flex;align-items:center;justify-content:space-between;margin:6px 0 18px;gap:12px}.timer{border:4px solid #ba9d72;border-radius:50%;width:60px;height:60px;display:grid;place-items:center;font-family:var(--font-serif);font-size:26px;flex-shrink:0}.timer.urgent{border-color:#ed6e74;color:#ffb1b1}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:420px;margin:auto}.slot{position:relative;padding:0;border:0;border-radius:6px;background:transparent;aspect-ratio:160/222;min-width:0;box-shadow:0 2px 8px #0005}.slot img{width:100%;height:100%;display:block;border-radius:6px}.slot.selected{outline:3px solid #dfc494;outline-offset:2px}.slot.best{outline:3px solid #83c9af;outline-offset:2px}.slot .marker{position:absolute;inset:auto 0 6px;text-align:center;font-size:11px;color:#fff;text-shadow:0 1px 3px #000;background:#141b2abf;padding:3px}.slot .choice{position:absolute;right:-6px;top:-6px;display:grid;place-items:center;background:#d9c49e;color:#141b2a;border:2px solid #141b2a;border-radius:50%;width:26px;height:26px;font-weight:bold}.board-area>.btn{max-width:420px;margin:22px auto 10px}.hint{text-align:center;font-size:12px;color:#a9b0c0;margin-top:10px;line-height:1.7}.hands-panel{background:#fffdfa;color:#182030;border-radius:14px;padding:22px 15px}.hands-panel h3{font-size:21px}.hands-panel .muted{color:#6c6b68;font-size:11px}.hand-row{display:grid;grid-template-columns:20px 1fr 105px;align-items:center;gap:8px;border-bottom:1px solid #dfd7cb;padding:9px 0;min-height:51px}.hand-row:last-child{border-bottom:0}.hand-row .number{color:#8f7650;text-align:center;font-family:var(--font-serif)}.hand-row strong{font:14px var(--font-serif)}.hand-row small{display:block;font-size:10px;color:#6c6b68;margin-top:3px}.hand-row img{width:105px;max-height:48px;object-fit:contain}.hand-row.impossible{opacity:.35}.hand-row.top-hand{background:#efe8dc}.hand-tag{display:inline-block;font:9px var(--font-sans);background:#ba9d72;color:#141b2a;padding:2px 4px;margin-left:4px}.community{text-align:center;margin:8px 0 18px}.community .cards{justify-content:center;margin-top:8px}.cards{display:flex;gap:10px}.cards img{width:70px;border-radius:5px;box-shadow:0 4px 10px #0004}.selection-title{font-size:24px}.intro{text-align:center;padding:30px 0}.intro .intro-portrait{width:190px;border-radius:50%;margin:24px auto;display:block;border:3px solid #ba9d72}.intro h1{font-size:36px;margin:12px 0}.intro p{margin:15px 0}.intro .btn{max-width:360px;margin:24px auto 0}.result-banner{text-align:center;border-top:1px solid #ba9d7260;border-bottom:1px solid #ba9d7260;padding:18px 8px;margin:10px 0 20px}.result-banner h2{color:#d9c49e;font-size:32px;letter-spacing:.08em}.duel{text-align:center;padding:8px 0 14px}.duel .cards{justify-content:center;margin:12px 0}.duel .cards img{width:100px}.duel h3{margin:10px 0;color:#d9c49e}.versus{text-align:center;color:#ba9d72;letter-spacing:.25em;padding:8px}.speech-bubble{padding:12px;background:#ffffff0b;border:1px solid #ffffff16;border-radius:10px;margin:12px 0;font-family:var(--font-serif);font-size:14px}.result-screen{max-width:880px;margin:20px auto;text-align:center}.result-screen .result-portrait{width:170px;border-radius:50%;margin:24px}.result-screen .streak{font:76px var(--font-serif);color:#d9c49e;line-height:1.2;margin:18px}.result-screen .streak span{font-size:24px}.result-screen .actions{max-width:540px;margin:24px auto}.result-screen .roster{justify-content:center;margin-top:30px}.result-screen .unmet{filter:grayscale(1);opacity:.3}.result-screen .earned-title{font:22px var(--font-serif);color:#d9c49e;margin:16px 0}.champion-figure{height:250px;object-fit:contain}.result-screen .btn{max-width:540px;margin:12px auto}.review-key{padding:12px;margin-top:14px;border:1px solid #83c9af55;border-radius:6px;color:#b3e5d3;font-size:13px;text-align:center}footer{text-align:center;padding:24px 16px 30px;color:#818b9f;font-size:11px;line-height:1.9}footer a{display:inline-block;margin-top:8px;font-size:12px}dialog{background:#f7f3ec;color:#182030;border:1px solid #ba9d72;border-radius:16px;padding:36px 24px 24px;max-width:min(560px,calc(100% - 24px));max-height:90dvh;width:560px;box-shadow:0 20px 70px #0009}dialog::backdrop{background:#080d18cc;backdrop-filter:blur(5px)}.close{position:absolute;right:12px;top:7px;border:0;background:transparent;font-size:30px;color:#6c6b68}.rules-art{display:flex;justify-content:center;gap:12px;margin:25px 0}.rules-art img{width:70px;border-radius:5px}.rule-step{min-height:280px;text-align:center;padding:15px 0}.rule-step p{margin:18px 0;font-size:15px}.dots{display:flex;gap:8px;justify-content:center;margin:18px}.dots span{width:7px;height:7px;border-radius:50%;background:#d6d0c7}.dots .active{background:#8f7650}.dialog-actions{display:flex;gap:10px}dialog .btn{color:#80683f;min-height:48px}dialog .btn.primary{color:#141b2a}dialog details{font-size:13px;line-height:1.8;margin-top:16px}dialog .hand-row{grid-template-columns:20px 1fr 140px}dialog .hand-row img{width:140px;max-height:60px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#f7f3ec;color:#182030;padding:12px 20px;border-radius:8px;box-shadow:0 8px 24px #0005;display:none;z-index:5;max-width:90%;font-size:14px}.loading{text-align:center;padding:100px 0}.practice-tag{color:#d9c49e;font-size:12px}.fade-in{animation:appear .3s ease-out}@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){main{padding-top:32px}.layout{gap:50px}.board-area{max-width:480px}}
@media(max-width:1150px) and (min-width:821px){.layout{grid-template-columns:220px minmax(340px,1fr);gap:24px}.right-col{display:none}.fan{width:390px}.home-hero{gap:25px}.topbar #level-label{font-size:12px}.wordmark small{display:none}}
@media(max-width:820px){body{background-image:url('assets/backgrounds/bg-navy-game-750x1624.webp');background-attachment:scroll;background-size:100% auto}.topbar{min-height:64px;padding:12px 18px;gap:8px;flex-wrap:wrap}.wordmark{font-size:21px}.wordmark small{display:none}nav{gap:5px}nav button{padding:7px;font-size:11px}#level-label{width:100%;order:3;font-size:12px;color:#d9c49e;text-align:center}#level-label:empty{display:none}main{padding:18px 20px}.home-hero{display:flex;flex-direction:column;gap:0;padding:0;min-height:0;text-align:center}.fan{width:100%;max-width:380px;height:210px;flex-shrink:1}.fan img{width:88px;left:calc(50% - 44px);top:30px}.fan img:nth-child(1){transform:translateX(-104px) rotate(-20deg);top:46px}.fan img:nth-child(2){transform:translateX(-52px) rotate(-10deg);top:38px}.fan img:nth-child(4){transform:translateX(52px) rotate(10deg);top:38px}.fan img:nth-child(5){transform:translateX(104px) rotate(20deg);top:46px}.hero-copy{width:100%;max-width:420px}h1{font-size:44px}.hero-copy p{font-size:17px;margin-top:20px}.english{font-size:10px;letter-spacing:.2em}.dealer-strip{padding:18px 14px;margin-top:30px}.section-label{align-items:start;flex-direction:column;gap:6px}.section-label h3{font-size:18px}.section-label .muted{font-size:11px}.roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 4px}.portrait-item{width:auto;font-size:9px}.portrait-item img{width:44px;height:44px}.layout{display:block}.left-col{display:none}.right-col{display:none}.board-area{max-width:360px}.phase-head{margin:0 0 15px}.phase-head h2{font-size:24px}.phase-head .muted{font-size:12px}.timer{width:48px;height:48px;font-size:23px;border-width:3px}.grid{gap:8px;max-width:344px}.grid.selection{max-width:320px}.board-area>.btn{margin-top:18px}.community{margin:0 0 16px}.community .cards img{width:60px}.community .cards{gap:8px}.selection-title{font-size:22px}.intro{padding:12px 0 30px}.intro .intro-portrait{width:180px}.intro h1{font-size:32px}.result-screen{margin:8px auto}.result-screen h1{font-size:36px}.result-screen .streak{font-size:64px}.result-screen .result-portrait{width:140px;margin:20px}.result-screen .earned-title{font-size:19px}.result-screen .actions{flex-wrap:wrap}.result-screen .roster{gap:18px 6px}.duel .cards img{width:96px}.result-banner{padding:12px 5px}.result-banner h2{font-size:28px}.duel{padding:4px 0 8px}footer{padding-top:18px}.result-screen .panel{padding:18px 12px}dialog{padding:36px 16px 20px}dialog .hand-row{grid-template-columns:18px 1fr 110px}dialog .hand-row img{width:110px}.hint{font-size:11px}}
@media(max-width:360px){main{padding:16px 12px}.topbar{padding:10px 12px}.grid{gap:6px}.wordmark{font-size:19px}h1{font-size:39px}.fan{height:195px}.fan img{width:80px;left:calc(50% - 40px)}.fan img:nth-child(1){transform:translateX(-92px) rotate(-20deg)}.fan img:nth-child(2){transform:translateX(-46px) rotate(-10deg)}.fan img:nth-child(4){transform:translateX(46px) rotate(10deg)}.fan img:nth-child(5){transform:translateX(92px) rotate(20deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.hero-copy p.muted{font:13px var(--font-sans);margin-top:16px;line-height:1.8}
.hero-copy>.btn{margin-top:12px}.duel-lobby{max-width:580px;margin:24px auto;text-align:center;padding:36px}.duel-lobby h1{font-size:36px;margin:18px 0}.duel-lobby p{white-space:pre-line;margin:18px 0}.duel-lobby .btn{margin:12px 0}.duel-friends{display:flex;align-items:center;justify-content:center;gap:26px;margin:26px 0}.duel-friends img{width:104px;border-radius:50%;border:2px solid #ba9d72}.invite-link{width:100%;background:#0c1220;color:#d9c49e;border:1px solid #ba9d7280;border-radius:5px;padding:14px;font:12px var(--font-sans);text-overflow:ellipsis}.friend-score h2{margin:16px 0}.friend-row{display:flex;align-items:center;gap:12px;margin:18px 0}.friend-row img{width:54px;border-radius:50%}.friend-row strong{margin-left:auto;font:38px var(--font-serif)}
@media(max-width:820px){.duel-lobby{margin:10px auto;padding:26px 18px}.duel-lobby h1{font-size:28px}.duel-friends{gap:22px}.duel-friends img{width:90px}}
/* Keep the card table prominent in both solo and friend matches. */
@media(min-width:821px){
 main{max-width:1600px;padding-right:24px;padding-left:24px}
 .layout{grid-template-columns:220px minmax(0,1fr) 280px;gap:24px}
 .board-area{max-width:600px}
 .grid{max-width:560px}
 .board-area>.btn{max-width:560px}
 .community .cards img{width:100px}
 .duel .cards img{width:160px}
 .hands-panel{padding:20px 12px}
 .hand-row{grid-template-columns:18px 1fr 88px;gap:6px}
 .hand-row img{width:88px}
 .profile{padding:18px 14px}
}
@media(min-width:1700px){
 main{max-width:1760px}
 .layout{grid-template-columns:240px minmax(0,1fr) 300px;gap:32px}
 .board-area{max-width:680px}
 .grid,.board-area>.btn{max-width:640px}
 .community .cards img{width:112px}
 .duel .cards img{width:176px}
}
@media(min-width:821px) and (max-width:1250px){
 .layout{grid-template-columns:200px minmax(0,1fr);gap:20px}
 .right-col{display:none}
}
@media(max-width:820px){
 main{padding:16px 12px}
 .board-area{max-width:560px}
 .grid,.grid.selection{max-width:560px;gap:6px}
 .board-area>.btn{max-width:560px}
 .community .cards img{width:82px}
 .duel .cards img{width:132px}
 .slot .choice{right:2px;top:2px;width:28px;height:28px}
}
@media(max-width:360px){
 main{padding-right:10px;padding-left:10px}
 .community .cards img{width:76px}
 .duel .cards img{width:124px}
 .phase-head h2{font-size:21px}
}
/* A readable poker guide, with the five example cards on their own line. */
@media(min-width:821px){
 .layout{grid-template-columns:200px minmax(0,1fr) 400px;gap:20px}
 .right-col.hands-panel{padding:24px 20px}
 .hands-panel h3{font-size:28px;margin-bottom:8px}
 .hands-panel .muted{font-size:14px;line-height:1.7}
 .hands-panel .hand-row,dialog .hand-row{
  grid-template-columns:28px minmax(0,1fr);gap:8px 12px;padding:16px 0;
 }
 .hands-panel .hand-row .number,dialog .hand-row .number{
  grid-row:1 / 3;align-self:start;padding-top:3px;font-size:20px;
 }
 .hands-panel .hand-row strong,dialog .hand-row strong{font-size:21px;line-height:1.5}
 .hands-panel .hand-row small,dialog .hand-row small{font-size:14px;line-height:1.6;margin-top:4px}
 .hands-panel .hand-row img,dialog .hand-row img{
  grid-column:2;width:100%;max-width:316px;max-height:none;justify-self:start;
 }
 .hand-tag{font-size:12px;padding:3px 6px;vertical-align:middle}
 dialog{width:760px;max-width:min(760px,calc(100% - 40px));padding:40px 32px 28px}
 dialog .hand-row{grid-template-columns:32px minmax(0,1fr)}
 dialog .hand-row img{max-width:420px}
 dialog .hand-row strong{font-size:24px}
 dialog .hand-row small,dialog details{font-size:16px}
}
@media(min-width:821px) and (max-width:1280px){
 .layout{grid-template-columns:minmax(0,1fr) 380px}
 .layout>.left-col{display:none}
 .layout>.right-col{display:block}
}
@media(min-width:1700px){
 main{max-width:1840px}
 .layout{grid-template-columns:220px minmax(0,1fr) 440px;gap:28px}
 .hands-panel .hand-row img{max-width:356px}
}
@media(min-width:821px){
 .right-col.hands-panel{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ba9d72 #eee6d9}
}
