:root{color-scheme:dark;--navy:#0d1928;--panel:#15283c;--gold:#e0a94a;--light:#ffd36a;--muted:#b3c2d0}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#081522;color:#f4f6fa;font:15px/1.5 Arial,sans-serif;background-image:linear-gradient(180deg,#071a2ce8 0%,#0d1928ed 40%,#281609e8 100%),none;background-size:cover;background-attachment:fixed}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #67dcff;outline-offset:5px}button{border:0}img{max-width:100%;height:auto}h1,h2,h3,p{margin:0}button:hover,a:hover{filter:brightness(1.14)}.shell{max-width:1440px;padding:0 42px;margin:auto}.header{min-height:110px;display:flex;align-items:center;gap:32px;border-bottom:1px solid #d0a45e35}.brand{width:280px;flex-shrink:0}.brand img{display:block}.header nav{display:flex;align-items:center;gap:25px;margin-left:auto}.header nav button{background:none;padding:12px 0;color:#bdc9d4}.header nav a{color:var(--light)}.gold{border-radius:11px;background:linear-gradient(135deg,#ffe4a0,#d99a35);color:#251703;font-weight:700;padding:12px 20px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:38px 0 27px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--light)}h1{font-size:clamp(30px,3.2vw,46px);line-height:1.15;letter-spacing:-1.4px;margin:13px 0 15px}h1 em{font-style:normal;color:var(--light)}.lead{color:var(--muted);font-size:14px}.preview{font-size:12px;background:#122233aa;border:1px solid #53687d66;border-radius:12px;padding:16px;max-width:285px}.preview>span{display:block;text-transform:uppercase;letter-spacing:1px;color:#8fa8ba;font-size:10px;margin-bottom:8px}.preview label{display:flex;align-items:center;gap:8px;font-weight:bold}.preview input{accent-color:var(--gold);width:17px;height:17px}.preview small{display:block;color:#9caebb;margin-top:8px;font-size:10px}.notice{display:flex;gap:10px;align-items:center;font-size:12px;color:#b4ccdc;background:#122b3e77;border:1px solid #3e748255;border-radius:8px;padding:10px 14px;margin-bottom:18px}.status-dot{width:6px;height:6px;border-radius:50%;background:#6abedc;flex-shrink:0}.ad{border:1px dashed #8b754c77;background:linear-gradient(125deg,#19243099,#1a233099);border-radius:10px;color:#96a4b1;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px}.ad>span{font-size:9px;letter-spacing:2.5px;color:#ac9977}.ad p{font-size:11px}.ad-top{min-height:82px;margin-bottom:20px}.profile{display:flex;gap:15px;align-items:center;padding:18px 22px;border:1px solid #e0a94a99;border-radius:18px;background:linear-gradient(110deg,#15283cf2,#0d1928f5);box-shadow:0 8px 30px #0003;margin-bottom:26px}.avatar{width:56px;height:56px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;font-size:30px;color:var(--light);background:radial-gradient(circle,#32445a,#102133)}.profile-copy strong{font-size:18px}.profile-copy p{font-size:12px;color:var(--muted)}.stats{display:flex;margin-left:auto;gap:35px}.stats span{display:flex;gap:10px;align-items:center;font-size:11px;color:#a9bbca}.stats b{font-size:23px;color:var(--light)}.profile-link{margin-left:25px;background:none;border-left:1px solid #52606e;padding:8px 0 8px 25px;color:var(--light);font-size:12px}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:24px}.primary{min-width:0}.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}.section-title h2{font-size:19px;letter-spacing:-.5px}.section-title>span{font-size:9px;letter-spacing:1.5px;color:#8c9ba8}.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mode{--accent:#ff8a32;min-width:0;overflow:hidden;border-radius:17px;border:1px solid var(--accent);background:#101c2a;text-align:left;padding:0;box-shadow:0 0 18px color-mix(in srgb,var(--accent) 13%,transparent);transition:transform .18s}.mode:hover{transform:translateY(-3px)}.mode.solo{--accent:#27b5ff}.mode.friend{--accent:#22d98c}.mode.tournament{--accent:#e266ff}.mode.duel{--accent:#3ad7ff}.mode.reward{--accent:#ffc548}.art{height:154px;position:relative;overflow:hidden;background-position:center 20%;background-size:cover;background-color:#10243a}.art:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 50%,#101c2a)}.mode-number{position:absolute;top:11px;left:12px;border:1px solid #ffffff55;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;background:#081523b0;color:var(--light);font-size:10px;z-index:1}.mode-copy{position:relative;min-height:97px;padding:14px 40px 16px 15px}.mode h3{font-size:14px;line-height:1.25;font-weight:700;letter-spacing:.2px}.mode p{margin-top:6px;color:#b5c2cf;font-size:10.5px;line-height:1.4}.arrow{position:absolute;right:12px;bottom:15px;width:24px;height:24px;border:1px solid #9babbc77;border-radius:50%;display:grid;place-items:center;color:var(--accent)}.board{position:absolute;inset:16px 25px 0;transform:perspective(250px) rotateX(13deg);border:7px solid #945e2f;border-radius:10px;background:#422319;display:flex;justify-content:space-around;box-shadow:0 0 25px #26c7ff44}.board i{width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;border-top:75px solid #d6a144}.board i:nth-child(even){border-top-color:#8e2d25}.board span{position:absolute;font-size:45px;color:#ffe8ba;top:30px;transform:rotate(-12deg);text-shadow:3px 3px #251107}.coins{position:absolute;inset:0;background:radial-gradient(ellipse,#9d712866,transparent 70%);display:flex;align-items:center;justify-content:center}.coins i{width:68px;height:68px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff1b3,#f4ba40 50%,#a66a11);border:5px double #ffda72;box-shadow:3px 6px 0 #75420d;color:#6a3c0b;font-weight:700;font-style:normal;font-size:20px}.coins i:nth-child(2){transform:translateY(-20px);margin:0 -12px;z-index:1}.sidebar{margin-top:43px;min-height:470px;align-self:stretch}.ad-mark{font:italic bold 45px Georgia,serif;color:#8f785333;margin:40px 0}.pro-room,.message-reward{display:flex;gap:17px;align-items:center;border:1px solid #d5ba71;border-radius:14px;padding:20px;margin-top:20px;background:linear-gradient(115deg,#183e34,#102a29 70%,#293922)}.crown{font-size:39px;color:#e8c77a}.pro-room h2{font-size:18px;color:#ffe7ad;margin:3px 0}.pro-room p,.message-reward p{font-size:11px;color:#b6cac4}.pro-room button,.message-reward button{margin-left:auto;flex-shrink:0;background:#e8c77a;color:#28200d;font-weight:700;padding:10px 16px;border-radius:9px;font-size:11px}.message-reward{background:linear-gradient(110deg,#13364b,#112133);border-color:#4fc9ef;padding:18px}.bubble{font-size:30px;color:#70d7ef}.message-reward h2{font-size:13px;margin-bottom:4px}.message-reward button{background:var(--light)}.shortcuts{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:20px}.shortcuts button{border:1px solid #ad864959;background:#122030bb;border-radius:12px;display:flex;align-items:center;flex-direction:column;padding:13px 4px;gap:6px;font-size:10px}.shortcuts span{color:var(--light);font-size:24px;line-height:1.2}.ad-bottom{min-height:90px;margin:24px 0}.about{padding:15px 0 32px;max-width:820px}.about h2{font-size:21px;color:#ead1a0;margin-bottom:12px}.about p{font-size:12px;color:#a4b3c0;margin:8px 0;line-height:1.8}footer{border-top:1px solid #c0954c44;padding:26px 0 30px;display:flex;align-items:center;gap:25px;font-size:11px;color:#b6b7b6}.footer-brand{font:bold 13px Georgia,serif;color:var(--light)}.footer-brand span{display:block;font-size:9px;letter-spacing:4px}footer nav{display:flex;gap:20px;margin-left:auto}footer small{font-size:10px;color:#84919c}dialog{position:fixed;max-width:460px;width:calc(100% - 36px);background:#15283c;color:#f4f6fa;border:1px solid var(--gold);border-radius:20px;padding:35px;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#020b14cc;backdrop-filter:blur(5px)}dialog h2{font-size:23px;margin:12px 0}dialog p{color:var(--muted);font-size:14px}dialog .dismiss{margin-top:22px}.close{position:absolute;top:10px;right:12px;background:none;font-size:27px;color:#d7c195}.skip{position:absolute;top:-100px;left:20px;z-index:10;background:var(--light);color:#172232;padding:10px}.skip:focus{top:10px}[hidden]{display:none!important}body.pro-preview .content-layout{grid-template-columns:minmax(0,1fr)}body.pro-preview .mode-grid{grid-template-columns:repeat(5,minmax(0,1fr))}body.pro-preview .mode-copy{padding-right:30px}.pro-preview .mode h3{font-size:13px}
@media(min-width:1600px){.art{height:175px}}
@media(max-width:1100px){.shell{padding:0 24px}.header{gap:20px}.brand{width:230px}.header nav{gap:16px;font-size:12px}.content-layout{grid-template-columns:minmax(0,1fr) 155px;gap:18px}.art{height:130px}.mode-copy{min-height:110px}.stats{gap:20px}.profile-link{margin-left:8px}.mode-grid{gap:12px}body.pro-preview .mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.header{flex-wrap:wrap;gap:10px;padding:18px 0 12px}.brand{width:225px}.login{margin-left:auto;font-size:12px}.header nav{order:3;width:100%;justify-content:space-between;margin:0;gap:8px}.intro{padding-top:26px;align-items:flex-start}.preview{max-width:220px;flex-shrink:0}.intro h1{font-size:31px}.desktop{display:none}.content-layout{grid-template-columns:minmax(0,1fr)}.sidebar{min-height:90px;margin:0;flex-direction:row;gap:20px}.ad-mark{display:none}.mode-copy{min-height:100px}.profile-link{display:none}.stats{gap:22px}.shortcuts{grid-template-columns:repeat(6,1fr)}footer{flex-wrap:wrap}footer nav{margin-left:auto}}
@media(max-width:560px){.shell{padding:0 16px}.brand{width:205px}.gold{padding:10px 13px}.intro{flex-direction:column;gap:18px;padding-bottom:20px}.intro h1{font-size:36px}.lead{font-size:13px}.preview{max-width:none;width:100%;padding:12px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px}.preview>span{margin:0;font-size:9px}.preview label{font-size:11px}.preview small{grid-column:1/-1;font-size:10px;margin:0}.notice{font-size:11px}.profile{padding:15px;flex-wrap:wrap;gap:12px}.avatar{width:48px;height:48px}.profile-copy strong{font-size:17px}.stats{width:100%;justify-content:space-around;margin:0;border-top:1px solid #54708b55;padding-top:10px}.stats span{font-size:10px}.stats b{font-size:19px}.section-title h2{font-size:18px}.section-title>span{font-size:8px}.mode-grid,body.pro-preview .mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.art{height:135px}.mode-copy{padding:10px 29px 12px 12px;min-height:108px}.mode h3,.pro-preview .mode h3{font-size:12px}.mode p{font-size:10px}.mode-number{top:8px;left:8px}.arrow{right:8px;bottom:12px;width:20px;height:20px;font-size:13px}.board{inset:17px 10px 0;border-width:5px}.board i{border-left-width:9px;border-right-width:9px}.coins i{width:52px;height:52px;font-size:15px}.pro-room,.message-reward{padding:15px;gap:10px;flex-wrap:wrap}.pro-room>div:nth-child(2),.message-reward>div:nth-child(2){flex:1;min-width:180px}.pro-room button,.message-reward button{margin-left:0;width:100%}.pro-room h2{font-size:17px}.shortcuts{grid-template-columns:repeat(3,1fr)}footer{justify-content:center;text-align:center;gap:18px}footer nav{margin:0;width:100%;justify-content:center}.sidebar{flex-direction:column;gap:6px}body.pro-preview .mode:last-child{grid-column:1/-1}.about h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
/* Crop baked mobile card labels; HTML carries the accessible titles. */
.quick .art,.tournament .art{background-size:170% auto;background-position:center 12%}
body{background-attachment:scroll}
.tournament .art{background-size:220% auto;background-position:center 8%}
.quick .art{background-size:auto 300px;background-position:center top}

/* Compact lobby refinement: 21 October */
body{background-image:linear-gradient(180deg,#071a2c65,#0d19286b 45%,#28160970),none;background-size:cover;background-position:center top;background-attachment:fixed}
.header{min-height:88px;background:#091725c9;padding:8px 16px;margin:0 -16px 14px;border-radius:0 0 16px 16px}.brand{width:245px}
.profile{padding:11px 17px;margin:0 0 10px;background:linear-gradient(110deg,#15283cf2,#0d1928ee);border-radius:14px}.avatar{width:44px;height:44px;font-size:26px}
.lobby-heading h1{font-size:17px;line-height:1.3;letter-spacing:0;margin:8px 0;color:#fff0c8}.lobby-controls{display:flex;align-items:center;gap:16px;padding:8px 12px;margin-bottom:12px;background:#0b1c2bea;border:1px solid #647c8b65;border-radius:8px;font-size:11px;color:#c0cdd8}.lobby-controls label{display:flex;align-items:center;gap:7px;flex-shrink:0;color:#ffdb85}.lobby-controls input{accent-color:#e0a94a}.lobby-controls p{font-size:11px}
.ad-top{min-height:62px;margin-bottom:16px;background:#0e2030d9}.ad-bottom{min-height:70px;margin:16px 0;background:#0e2030d9}
.section-title{margin-bottom:10px}.section-title h2{font-size:17px}.mode-grid{gap:14px}.mode{height:205px;display:flex;flex-direction:column}.art{height:134px;min-height:134px;width:100%}.art:after{background:linear-gradient(transparent 80%,#101c2a90)}.mode-copy{width:100%;padding:11px 36px 10px 13px;min-height:0;flex:1}.mode h3{font-size:13px}.mode p{font-size:10.5px;margin-top:4px}.sidebar{align-self:start;height:424px;min-height:0;margin-top:35px;background:#102031d9}.ad-mark{margin:30px 0}
.pro-room,.message-reward{padding:12px 16px;margin-top:14px;gap:13px}.pro-room h2{font-size:16px}.crown{font-size:31px}.pro-room .eyebrow{font-size:8px}.message-reward h2{font-size:12px}.message-reward p,.pro-room p{font-size:11px}.shortcuts{margin-top:14px;gap:10px}.shortcuts button{padding:9px 4px;gap:4px;background:#102031ee}.shortcuts span{font-size:22px}.about{margin:18px 0;padding:22px;border:1px solid #bb914855;background:#0b1c2be8;border-radius:14px;max-width:none}.about>h2{font-size:25px;margin:10px 0;line-height:1.25}.about>h2 em{font-style:normal;color:#ffd36a}.about .lead{margin-bottom:20px}.about .eyebrow{color:#ffd36a}footer{background:#091725dc;padding:20px;border-radius:14px 14px 0 0}
@media(max-width:1100px){.header{gap:16px}.brand{width:220px}.art{height:130px;min-height:130px}.mode-copy{min-height:0}.mode h3{font-size:12px}}
@media(max-width:780px){.sidebar{display:none}.content-layout{grid-template-columns:1fr}.header{margin-bottom:12px;min-height:0;padding:12px}.lobby-controls{flex-wrap:wrap;gap:4px}.lobby-controls label{font-size:11px}.mode-grid{gap:12px}.shortcuts{grid-template-columns:repeat(6,minmax(0,1fr))}.shortcuts button{font-size:9px}.shortcuts span{font-size:20px}}
@media(max-width:560px){body{background-attachment:scroll;background-size:auto 100%;background-position:center top}.shell{padding:0 14px}.header{margin-left:-4px;margin-right:-4px}.brand{width:195px}.header nav{padding-top:3px}.profile{padding:10px 12px;gap:9px;margin-bottom:8px}.profile-copy strong{font-size:16px}.profile-copy p{font-size:11px}.stats{padding-top:7px;gap:12px}.stats b{font-size:16px}.lobby-heading h1{font-size:15px}.lobby-controls{padding:7px 9px;margin-bottom:10px}.lobby-controls p{font-size:10px}.ad-top{min-height:55px;margin-bottom:14px}.mode{height:205px}.art{height:128px;min-height:128px}.mode-copy{padding:10px 26px 9px 10px;min-height:0}.mode h3,.pro-preview .mode h3{font-size:11.5px}.mode p{font-size:10px}.pro-room,.message-reward{padding:11px;gap:9px}.pro-room>div:nth-child(2),.message-reward>div:nth-child(2){min-width:0}.pro-room button,.message-reward button{width:auto;margin-left:auto;padding:8px 10px;font-size:10px}.pro-room .eyebrow{letter-spacing:1px;font-size:7px}.pro-room h2{font-size:13px}.pro-room p,.message-reward p{font-size:9px}.message-reward h2{font-size:10px}.crown{font-size:27px}.bubble{font-size:24px}.shortcuts{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.shortcuts button{font-size:8px;padding:9px 1px}.shortcuts span{font-size:19px}.about{padding:17px}.about>h2{font-size:23px}.ad-bottom{min-height:60px}}
body{background-attachment:scroll}

/* V3: consistent type, full-bleed artwork, restrained motion. */
:root{--ui-font:"Segoe UI",Arial,sans-serif}
body{font-family:var(--ui-font);font-size:16px;line-height:1.5}
button,input,select,textarea,h1,h2,h3,h4,p,label{font-family:inherit}
button,input,select,textarea{font-size:inherit}
h1,h2,h3{font-style:normal}
.header nav,.profile-copy p,.profile-link,.stats span,.lobby-controls,.lobby-controls p,.lobby-controls label,.about p,.lead,footer,footer small,.ad p{font-size:14px}
.lobby-controls{flex-wrap:wrap}.lobby-controls p{line-height:1.45}
.footer-brand,.ad-mark{font-family:var(--ui-font);font-style:normal}
.footer-brand{font-size:15px;font-weight:700}.ad-mark{font-size:40px}
.mode{position:relative;isolation:isolate;height:245px;display:block;background:#102333;border-width:1.5px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;animation:card-enter .5s ease both}
.mode:nth-child(2){animation-delay:60ms}.mode:nth-child(3){animation-delay:120ms}.mode:nth-child(4){animation-delay:180ms}.mode:nth-child(5){animation-delay:240ms}.mode:nth-child(6){animation-delay:300ms}
.mode .art,.quick .art,.tournament .art{position:absolute;inset:0;width:100%;height:100%;min-height:0;background-size:cover;background-position:center center;z-index:-1}
.mode .art:after{display:none}
.mode-copy{position:absolute;inset:auto 0 0;width:100%;min-height:0;padding:42px 40px 17px 16px;background:linear-gradient(180deg,transparent 0%,#071421a8 40%,#071421ef 100%);text-shadow:0 1px 3px #000b}
.mode h3,.pro-preview .mode h3{font-family:var(--ui-font);font-size:17px;line-height:1.2;font-weight:700;letter-spacing:0}
.mode p{font-family:var(--ui-font);font-size:14px;line-height:1.4;margin-top:6px;color:#f1f6fb}
.arrow{right:12px;bottom:19px;width:25px;height:25px}
.mode-number{font-family:var(--ui-font);font-size:11px}
.mode .board{inset:20px 25px 45px;transform:none}
.mode .board i{border-top-width:110px}.mode .board span{font-family:var(--ui-font)}
.mode .coins{padding-bottom:35px}
.sidebar{height:504px}
.pro-room h2{font-size:18px}.message-reward h2{font-size:16px}
.pro-room p,.message-reward p,.pro-room button,.message-reward button{font-size:14px}
.pro-room .eyebrow{font-size:10px}.shortcuts button{font-size:13px}
.shortcuts span{font-size:23px}
button:hover,a:hover{filter:none}
.mode:hover{transform:none}
@media(hover:hover){.mode:hover{transform:translateY(-4px);box-shadow:0 7px 27px color-mix(in srgb,var(--accent) 30%,transparent)}}
.mode:focus-visible{transform:translateY(-3px);outline:3px solid #fff0c5;outline-offset:3px;box-shadow:0 0 24px color-mix(in srgb,var(--accent) 35%,transparent)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 15% 20%,#ffb33316,transparent 45%),radial-gradient(ellipse at 85% 35%,#23bcff12,transparent 48%);animation:ambient-light 9s ease-in-out infinite alternate}
dialog::backdrop{backdrop-filter:none;background:#020b14d9}
@keyframes card-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes ambient-light{from{opacity:.45}to{opacity:1}}
@media(max-width:1100px){.header nav{gap:12px}.brand{width:205px}.mode h3,.pro-preview .mode h3{font-size:15px}.mode p{font-size:14px}}
@media(max-width:780px){.header nav{font-size:14px}.lobby-controls label,.lobby-controls p{font-size:13px}.profile-copy p,.stats span{font-size:13px}.shortcuts{grid-template-columns:repeat(3,1fr)}.shortcuts button{font-size:13px;padding:10px}.sidebar{display:none}}
@media(max-width:560px){.mode{height:250px}.mode h3,.pro-preview .mode h3{font-size:15px}.mode p{font-size:14px}.mode-copy{padding:40px 30px 15px 12px}.arrow{right:8px;bottom:15px;width:20px;height:20px}.mode .board{inset:16px 10px 60px}.mode .board i{border-top-width:95px}.pro-room,.message-reward{flex-wrap:wrap}.pro-room>div:nth-child(2),.message-reward>div:nth-child(2){min-width:190px}.pro-room h2{font-size:17px}.message-reward h2{font-size:15px}.pro-room p,.message-reward p{font-size:14px}.pro-room button,.message-reward button{font-size:14px;padding:9px 14px}.ad p{font-size:12px}.header nav{font-size:12px}.profile-copy p{font-size:13px}.about p{font-size:15px}.shortcuts{grid-template-columns:repeat(3,1fr)}.shortcuts button{font-size:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.mode:hover,.mode:focus-visible{transform:none}}



body.pro-preview .mode-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
body.pro-preview .mode{grid-column:span 2}
body.pro-preview .mode:nth-child(4),body.pro-preview .mode:nth-child(5){grid-column:span 3}
@media(max-width:560px){.mode-grid,body.pro-preview .mode-grid{grid-template-columns:1fr}.mode,body.pro-preview .mode{grid-column:auto!important;height:auto;aspect-ratio:1.5;min-height:210px}.mode h3,.pro-preview .mode h3{font-size:18px}.mode p{font-size:14px}.mode-copy{padding:35px 40px 17px 16px}}
@media(min-width:561px) and (max-width:1000px){.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode{height:auto;aspect-ratio:1.5;min-height:220px}.sidebar{height:690px}}
@media(max-width:360px){.mode,body.pro-preview .mode{aspect-ratio:auto;height:220px;min-height:0;width:100%}.header nav{gap:5px}.pro-room>div:nth-child(2),.message-reward>div:nth-child(2){min-width:0}}

/* V3.1: sharp viewport-sized lounge; no page-height stretching. */
body{background-color:#081522;background-image:linear-gradient(180deg,#071a2c18,#0d192820),none;background-size:cover;background-position:center center;background-repeat:no-repeat;background-attachment:fixed}


/* V4: independent artwork, quiet navy and gold. */
body{background:#091522;font-family:"Segoe UI",Arial,sans-serif}body:before{background:radial-gradient(ellipse at 20% 5%,#e0a94a0b,transparent 55%)}
.mode,.mode.solo,.mode.friend,.mode.tournament,.mode.duel,.mode.reward{--accent:#c6a260;border-color:#c6a26070;box-shadow:0 5px 15px #0002;height:auto;aspect-ratio:3/2;min-height:0}
.mode .art{background:none;z-index:0}.card-image{display:block;width:100%;height:100%;object-fit:contain;max-width:none}.mode-copy{z-index:1;background:linear-gradient(transparent,#06111a48);padding:12px 36px 14px 14px;text-shadow:0 1px 2px #0008}.mode h3,.pro-preview .mode h3{font-family:"Segoe UI",Arial,sans-serif;font-size:18px;font-weight:600;line-height:1.2}.mode p{font-size:13px;margin-top:4px}.mode-number{display:none}.arrow{color:#dcc184;border-color:#dcc18466}
@media(hover:hover){.mode:hover{transform:translateY(-2px);box-shadow:0 7px 22px #e0a94a12;border-color:#d7b36f}}
.mode:focus-visible{box-shadow:0 0 12px #e0a94a20;transform:translateY(-2px)}
.mode.duel .art,.mode.reward .art{background:radial-gradient(ellipse at 50% 20%,#29384a,#07121f 80%)}.mode .board{inset:18px 34px 66px;border-color:#926b3e;box-shadow:0 5px 20px #0004}.mode .board i{border-top-color:#c7a574;border-top-width:75px}.mode .board i:nth-child(even){border-top-color:#4a3023}.mode .board span{font-size:32px;top:15px}.mode .coins{padding-bottom:65px}.coins i{width:60px;height:60px;font-size:18px;background:radial-gradient(circle at 30% 20%,#eed8a1,#c5a260 60%,#8a6939);border-color:#d9bb7d;box-shadow:2px 4px #594124;color:#443119}
.sidebar{height:auto;aspect-ratio:auto;min-height:0;align-self:stretch;margin-bottom:0}.pro-room{background:linear-gradient(110deg,#1c2c3d,#132333);border-color:#b2945d88}.message-reward{background:#132333;border-color:#b2945d66}.bubble{color:#dcc184}
body.pro-preview .mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.pro-preview .mode,body.pro-preview .mode:nth-child(4),body.pro-preview .mode:nth-child(5){grid-column:auto}
@media(max-width:1100px) and (min-width:561px){.mode-grid,body.pro-preview .mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode h3,.pro-preview .mode h3{font-size:17px}.content-layout{grid-template-columns:minmax(0,1fr) 160px}.sidebar{height:auto}}
@media(max-width:780px){.content-layout{grid-template-columns:1fr}}
@media(max-width:560px){.mode-grid,body.pro-preview .mode-grid{grid-template-columns:1fr}.mode,body.pro-preview .mode{width:100%;height:auto;aspect-ratio:3/2;min-height:0}.mode-copy{padding:10px 34px 13px 14px}.mode h3,.pro-preview .mode h3{font-size:18px}.mode p{font-size:13px}}
@media(max-width:360px){.mode h3,.pro-preview .mode h3{font-size:16px}.mode p{font-size:12px}.mode-copy{padding:8px 30px 10px 12px}}
@media(prefers-reduced-motion:reduce){.mode:hover,.mode:focus-visible{transform:none}}

@media(min-width:1101px){.sidebar{align-self:start;height:calc((min(100vw, 1440px) - 341px) * .444444 + 14px)}}
@media(max-width:1100px){.sidebar{display:none}.content-layout{grid-template-columns:1fr}}

.header nav a[data-route]{padding:12px 0;color:#bdc9d4}.header nav a.gold{padding:12px 20px;color:#251703}.shortcuts a{border:1px solid #ad864959;background:#122030bb;border-radius:12px;display:flex;align-items:center;flex-direction:column;padding:9px 4px;gap:4px;font-size:13px}.pro-room a,.message-reward a{margin-left:auto;flex-shrink:0;background:#e8c77a;color:#28200d;font-weight:700;padding:9px 14px;border-radius:9px;font-size:14px}.profile-link{display:block}.mode{color:inherit}
