/* NEXUS 3.4.1 — integrated platform and all twelve game surfaces. */
:root{color-scheme:dark;--bg:#090e17;--surface:#121c2b;--panel:#141f30;--line:#334157;--text:#f0f4fb;--muted:#abb8cc;--accent:#baa8ff;--cyan:#73e4ed}
html{scroll-padding-top:20px}body{background:#090e17;color:#f0f4fb;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
body:before,.ambient,.stars{opacity:.38}.shell{grid-template-columns:226px minmax(0,1fr) 290px}
.sidebar{background:#0d1420;border-color:#263348;padding:28px 16px}.brand{font-size:19px;letter-spacing:-.03em}.brand-mark{background:linear-gradient(145deg,#b7a0ff,#6650be);box-shadow:0 8px 30px #9c76ff20;border:1px solid #ccbdff47}.brand-light{color:#c4b5ff}.brand small{font-size:10px;color:#9facbf;letter-spacing:.15em}
.sidebar-section,.right-label{font-size:11px;color:#9caec4;letter-spacing:.14em}.nav{min-height:48px;border-radius:12px;font-size:14px;gap:14px}.nav.active{background:linear-gradient(100deg,#baa8ff18,#baa8ff09);border-color:#9a83ea66;color:#f0eaff}.nav-glyph{color:#c0adff}.side-account-more,.top-avatar{min-width:48px;min-height:48px}.topbar{background:#0d1521;border-color:#263348;height:80px;padding-inline:32px}.crumb,.online-pill{font-size:12px}.online-pill{min-height:36px;letter-spacing:.035em}.content{padding:32px;max-width:1600px;margin-inline:auto;width:100%}.rightbar{background:#0d1420;border-color:#263348}.rightbar h3{font-size:12px}.chat-form input{min-height:48px;font-size:14px}
.hero{position:relative;overflow:hidden;min-height:340px;border:1px solid #79679e55;border-radius:24px;background:radial-gradient(ellipse at 93% 10%,#39505c55,transparent 48%),linear-gradient(120deg,#1b2031,#24213b 60%,#202b3e);box-shadow:0 20px 60px #00000020}.hero-content{padding:42px}.hero h1{font-size:clamp(36px,4.3vw,66px);line-height:1.05;letter-spacing:-.055em;margin:24px 0}.hero h1 em{color:#c2afff}.hero p{font-size:16px;line-height:1.7;color:#c0c9d9;max-width:44ch}.hero-kicker{font-size:12px;color:#cec4e9}.orbit{border-width:1px;opacity:.75}.orbit-one{border-color:#c5adff}.orbit-two{border-color:#80d9df}.orbit-center{color:#d6c7ff;filter:none}.corner-coord{font-size:11px;color:#abb9cb}.hero-actions{gap:12px;flex-wrap:wrap}
.btn,.small-btn,.filter,.text-link,.tower-ops button,.tower-select button{min-height:48px;border-radius:12px;font-size:14px;letter-spacing:0;transition:background 140ms ease,border-color 140ms ease,transform 140ms ease}.btn.primary{background:#b9a6ff;border-color:#c0afff;color:#151324;box-shadow:0 5px 20px #a58bf61c}.btn.subdued,.btn.ghost{background:#1a2639;border-color:#47546c}.small-btn{padding:10px 14px}.text-link{padding:8px 4px;min-width:48px}.join-code input,.auth-input,.guess-form input,input,select{font-size:16px;min-height:48px;border-radius:10px}
.stat-row{gap:16px;margin-top:20px}.stat{padding:20px 22px;background:linear-gradient(135deg,#142031,#101824);border-color:#334157;border-radius:16px}.stat>span{font-size:11px;color:#aabbd0}.stat strong{font-size:32px;color:#eef4ff}.stat small{font-size:13px;color:#a6b7ca}.section-head{margin-top:36px}.section-head h2{font-size:25px;letter-spacing:-.025em}.eyebrow{font-size:12px;letter-spacing:.12em;color:#c0b1e7}
.game-grid{gap:20px;grid-template-columns:repeat(3,minmax(0,1fr))}.game-card{border:1px solid #35465d;border-radius:18px;background:#141e2e;box-shadow:0 8px 26px #00000016;overflow:hidden}.game-cover{position:relative;aspect-ratio:16/9;height:auto;min-height:0;background:#101b2c!important;overflow:hidden}.game-cover:before,.game-cover:after{display:none!important}.game-cover .game-art{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:16/9}.game-cover .game-badge{position:absolute;top:14px;left:14px;z-index:1;font-size:11px;border-radius:6px;padding:5px 8px;background:#101729db;backdrop-filter:none;border:1px solid #a2addb77;color:#e3ddff}.game-details{padding:20px}.game-details h3{font-size:20px;letter-spacing:-.025em}.game-details p{font-size:14px;color:#b5c2d3;line-height:1.6;min-height:44px}.game-footer{gap:10px;align-items:center;flex-wrap:wrap}.game-footer small{font-size:12px;color:#aabacf}.game-footer .small-btn{background:#253348;border-color:#566780;color:#e5edfc;min-width:90px}
.room-card,.profile-card,.social-row,.rail-block,.panel{border-color:#36465d;border-radius:16px;background:#141e2e}.room-card h3{font-size:20px}.room-card p{font-size:14px}.room-card-top,.room-card-bottom,.game-rules{font-size:13px;color:#b1bfd0}.empty{font-size:15px;color:#aebcd0}.modal-overlay{background:#050914d9;backdrop-filter:blur(6px)}.modal,.room-modal{background:#111d2c;border-color:#4b5770;border-radius:20px;max-height:calc(100dvh - 32px);scrollbar-width:thin}.room-modal{width:min(1080px,100%);padding:24px}.modal p{color:#b7c4d6}.modal-close{min-width:48px;min-height:48px;font-size:22px}.player{font-size:13px;border-color:#3e4e67;background:#1a293c}.score-pill{font-size:13px;border-color:#40516b;border-radius:9px;background:#1c2b40}.social-row strong{font-size:15px}.social-row .muted{font-size:14px}.profile-stat-line{font-size:14px}.avatar-choice{min-width:48px;min-height:48px}
/* Arcade shell, actual game pages, not a preview. */
.app-frame,.wrap{width:min(1300px,calc(100% - 40px))}.arcade-layout{grid-template-columns:minmax(0,1fr) 280px;gap:22px}.nav-top{height:80px}.arc-brand,.logo{font-size:20px}.back-link,.back{font-size:13px;min-height:48px;display:flex;align-items:center}.intro,.headline{padding-block:30px}.intro h1,.headline h1{font-size:clamp(32px,5vw,58px);letter-spacing:-.04em}.intro p,.headline p{font-size:15px;color:#b6c4d6}.overline,.rail-label{font-size:12px;color:#bdafe3;letter-spacing:.12em}.game-unit,.arena{border:1px solid #3c4d66;border-radius:20px;overflow:hidden;background:#0c1522;box-shadow:0 15px 40px #0003}.game-hud,.hud{background:#172236;border-color:#3a4b63;min-height:76px}.hud-item{padding:14px 18px;border-color:#3b4c63}.hud-item>span,.hud label{font-size:12px;color:#acbdd1;letter-spacing:.08em}.hud-item strong{font-size:28px;color:#eef6ff}.game-surface{min-height:0!important;aspect-ratio:960/540;max-height:none}.game-surface canvas{image-rendering:auto;touch-action:none}.board{aspect-ratio:1}.board canvas{width:100%;height:100%;display:block;touch-action:none}body[data-game=pulse] .game-surface{aspect-ratio:1}body[data-game=defense] .game-surface{aspect-ratio:900/600}body[data-game=pinball] .game-surface{aspect-ratio:700/970}.screen-overlay,.overlay{background:#08111bdc;backdrop-filter:blur(4px)}.overlay-inner p:not(.overline){font-size:15px;line-height:1.65}.overlay-mark{box-shadow:none;border-color:#a18af2;background:#a58ded1f}.control-strip,.bottom{padding:14px 16px;min-height:72px;border-color:#3b4c63}.control-strip>span,.bottom>span{font-size:12px;letter-spacing:.06em}.touch-controls{padding:14px;gap:12px;background:#111d2c}.touch-controls button,.mobile-controls button,.bomber-controls button{min-height:52px;min-width:52px;border-radius:12px;font-size:16px;border-color:#567185;color:#d8f5f7;touch-action:none;user-select:none}.touch-controls button:active,.touch-controls button[aria-pressed=true],.mobile-controls button[aria-pressed=true],.bomber-controls button[aria-pressed=true]{background:#35596b;border-color:#7bdbe1}.rail-block{padding:22px}.rail-block p,.panel .help{font-size:14px;color:#b1c0d2;line-height:1.7}.rail-block h3{font-size:18px}.game-panel{font-size:14px}.best-panel{background:linear-gradient(115deg,#272640,#17283b);border-color:#665789;border-radius:12px}.best-panel span,.best-panel small,.tag-row span{font-size:12px}.arc-footer,footer{font-size:12px;color:#95a6bc}.puzzle-wrap{border-radius:16px;background:#26344b;gap:10px;touch-action:none}.puzzle-cell{border-radius:11px;box-shadow:inset 0 1px #ffffff18!important}.puzzle-cell.filled{box-shadow:inset 0 1px #ffffff55,0 3px 8px #0002!important}.puzzle-cell.just-merge{animation:premium-merge 160ms ease}.puzzle-cell.just-born{animation:premium-appear 150ms ease}.tower-select button,.tower-ops button{font-size:14px}.tower-select button{min-height:52px}.tower-ops{gap:8px}
/* Multiplayer boards and controls. */
.arcade-shell,.connect-panel,.quiz-shell,.draw-shell,.cards-shell{border:1px solid #40516b;border-radius:18px;background:#111e2f;padding:20px}.arcade-heading h3,.connect-header h3{font-size:26px}.arcade-live{font-size:11px}.arcade-score{border-color:#465873;border-radius:12px;background:#1b2b41;padding:10px 14px}.arcade-score span{font-size:14px}.arcade-score strong{font-size:12px}.arcade-canvas-wrap{border-width:1px;border-radius:14px;border-color:#60778e;box-shadow:none}.arcade-bottom{font-size:12px;line-height:1.5}.arcade-stage{aspect-ratio:900/520}.arcade-bomber .arcade-stage{aspect-ratio:900/660}.bomber-controls{display:grid;grid-template-columns:repeat(4,52px) minmax(90px,1fr);gap:10px;padding-block:14px}.bomber-controls button{height:52px;min-width:0!important}.bomber-controls button:last-child{font-size:14px}.bomber-input{display:flex;gap:16px;align-items:center;justify-content:space-between}.nexus-joystick{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;border:1px solid #527489;background:radial-gradient(circle,#243e50,#132132);touch-action:none;user-select:none;flex:none}.nexus-joystick span{width:42px;height:42px;background:#75dce7;border:2px solid #bff5fc;border-radius:50%;pointer-events:none;box-shadow:0 4px 12px #0004}.bomber-input .bomber-controls{flex:1;max-width:450px}.quiz-question{font-size:clamp(21px,3vw,30px);line-height:1.35}.quiz-option{min-height:56px;font-size:16px;border-radius:12px;line-height:1.5}.quiz-option.selected{border-color:#c6b3ff;background:#383050}.quiz-option.correct{border-color:#82e7bd;background:#153b34}.game-meta{font-size:12px}.ticboard button{font-family:system-ui;font-weight:600;border-radius:12px;background:#1e2b40;border-color:#576787;color:#c9b9ff}.draw-word{font-size:22px;letter-spacing:.08em}.color-dot,.colors-choose button{min-width:48px;min-height:48px;border-radius:12px}.draw-tools{gap:12px}.draw-sizes{display:flex;gap:8px;flex-wrap:wrap}.draw-canvas{border-radius:12px;border-color:#63748e}.guess-log{font-size:14px}.playing-card{border-radius:14px;border:2px solid #ffffff60;box-shadow:0 5px 12px #0003}.playing-card strong{font-size:38px}.cards-hand{gap:10px;scroll-snap-type:x proximity;scroll-padding-inline:4px;padding:12px 4px 16px}.cards-hand button{scroll-snap-align:start;flex:none;min-width:80px;height:120px}.cards-controls{gap:14px}.cards-discard{background:#1c2940;border-radius:14px}.colors-choose{gap:10px;flex-wrap:wrap}.connect-grid{padding:12px;gap:6px;background:#294665;border-color:#527796;box-shadow:0 12px 26px #0003,inset 0 1px #abcde526}.connect-cell.blue{background:radial-gradient(circle at 35% 30%,#b9fbff,#66d5e6 58%,#308ba7);box-shadow:inset 0 -3px 4px #11657b40}.connect-cell.pink{background:radial-gradient(circle at 35% 30%,#ffe4f3,#f09ec4 58%,#b366a2);box-shadow:inset 0 -3px 4px #82496840}.connect-cell.new-disc{animation:disc-land 180ms ease-out}.connect-cell.win{border-color:#fff4b1;box-shadow:0 0 0 2px #fff4b1}.connect-header p,.connect-status,.connect-opponents span{font-size:14px}.connect-turn{font-size:12px!important}.connect-targets{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;max-width:560px;margin:12px auto}.connect-targets button{height:48px;border-radius:9px;border:1px solid #657f9a;background:#223a54;color:#e8faff;font-size:16px;touch-action:manipulation}.connect-targets button:disabled{opacity:.5}
:focus-visible{outline:3px solid #80e4ed;outline-offset:3px}button:disabled{cursor:default}input,button,select{font-family:inherit}input{max-width:100%;min-width:0}img{max-width:100%}
body[data-game=pinball] .touch-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}body[data-game=pinball] .touch-controls button{min-width:0;min-height:52px;font-size:13px;padding:10px 5px}body[data-game=pinball] .touch-controls button:nth-child(4){grid-column:1/-1}.bottom button{min-height:48px;min-width:48px;padding:10px 14px;font-size:13px;border-radius:10px}
@keyframes premium-merge{45%{transform:scale(1.07)}100%{transform:scale(1)}}@keyframes premium-appear{from{opacity:.3;transform:scale(.88)}}@keyframes disc-land{from{transform:translateY(-15%);opacity:.25}to{transform:none;opacity:1}}
@media(hover:hover) and (pointer:fine){.game-card{transition:transform 160ms ease,border-color 160ms ease}.game-card:hover{transform:translateY(-4px);border-color:#9985d0}.small-btn:hover,.btn:hover{border-color:#b4a0ff}.game-card:hover .game-art{filter:brightness(1.06)}}
@media(max-width:1400px){.shell{grid-template-columns:210px minmax(0,1fr)}.rightbar{grid-column:2}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.content{padding:24px}.hero-content{padding:30px}.hero-visual{min-width:220px}.arcade-layout{grid-template-columns:minmax(0,1fr) 245px}}
@media(max-width:850px){.shell{display:block}.sidebar{padding:14px 16px;position:relative}.brand{padding-bottom:12px}.nav-list{gap:6px}.nav{min-height:48px;padding:10px 12px}.topbar{height:68px;padding-inline:16px}.content{padding:20px 16px}.hero{min-height:0;border-radius:18px}.hero-content{padding:28px 22px}.hero h1{font-size:40px}.hero-visual{display:none}.hero p{font-size:15px}.rightbar{padding:24px 16px}.arcade-layout{grid-template-columns:minmax(0,1fr)}.info-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.app-frame,.wrap{width:calc(100% - 28px)}.hud-item{padding:12px 10px}.hud-item strong{font-size:24px}.modal-overlay{padding:12px}.modal,.room-modal{max-height:calc(100dvh - 24px)}.stat{padding:16px}.game-footer .small-btn{width:100%}.game-details p{min-height:44px}}
@media(max-width:560px){.game-grid,.rooms-grid{grid-template-columns:1fr}.hero h1{font-size:36px}.hero-actions .btn{width:100%;justify-content:space-between}.stat-row{gap:8px}.stat{padding:13px 10px}.stat>span{font-size:10px;letter-spacing:.04em}.stat strong{font-size:27px}.stat small{font-size:12px}.section-head{gap:12px}.section-head h2{font-size:22px}.section-head .text-link{font-size:12px;text-align:right;max-width:140px}.game-details{padding:18px}.game-details p{min-height:0}.game-footer .small-btn{width:auto;flex:1}.intro{padding-block:24px}.intro h1{font-size:36px}.info-rail{grid-template-columns:1fr}.hud-item>span,.hud label{font-size:10px;letter-spacing:.03em}.hud-item strong{font-size:20px}.control-strip>div{width:100%;gap:8px;flex-wrap:wrap}.control-strip>div .btn{flex:1;padding:10px 8px;font-size:12px}.control-strip{gap:12px}.screen-overlay{padding:14px}.overlay-inner h2{font-size:27px}.overlay-inner p:not(.overline){font-size:14px}.touch-controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.touch-controls button{flex:1;min-width:52px}.arcade-shell,.connect-panel,.quiz-shell,.draw-shell,.cards-shell{padding:12px}.arcade-heading h3{font-size:21px}.arcade-live{font-size:10px}.arcade-score span{font-size:12px}.arcade-bottom{font-size:12px;flex-wrap:wrap}.bomber-input{gap:10px;flex-wrap:wrap}.bomber-input .bomber-controls{width:100%;flex-basis:100%;grid-template-columns:repeat(4,minmax(0,1fr))}.bomber-controls button:last-child{grid-column:1/-1}.nexus-joystick{margin:auto}.quiz-options{grid-template-columns:1fr}.draw-sizes .small-btn{flex:1}.guess-form{flex-wrap:wrap}.guess-form input{flex-basis:100%}.guess-form .btn{width:100%}.connect-grid{gap:4px;padding:8px}.connect-opponents{flex-wrap:wrap}.connect-targets{gap:3px}.connect-targets button{padding:0}.room-modal{padding:16px 12px}.modal-overlay{padding:8px}.modal,.room-modal{max-height:calc(100dvh - 16px)}.cards-controls{flex-direction:column}.colors-choose button{flex:none}.cards-discard{gap:12px}.game-meta{letter-spacing:.03em;flex-wrap:wrap}.nav-mode{font-size:10px}.nav-top{height:68px}.arc-brand{font-size:17px}.arcade-heading{flex-wrap:wrap}.mobile-controls button{width:54px;height:54px}}
@media(max-height:520px) and (orientation:landscape){body[data-game] .intro,body[data-game] .info-rail,body[data-game] .arc-footer{display:none}.nav-top{height:56px}.game-hud{min-height:56px}.hud-item{padding:7px 12px}.hud-item strong{font-size:20px}.arcade-layout{margin-top:12px}.room-modal{padding:12px}.room-players{display:none}.bomber-input{flex-wrap:nowrap}.bomber-input .bomber-controls{flex-basis:auto;grid-template-columns:repeat(4,48px) minmax(90px,1fr)}.bomber-controls button:last-child{grid-column:auto}.nexus-joystick{width:76px;height:76px}}
@supports(padding:max(0px)){.content{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.touch-controls,.mobile-controls{padding-bottom:max(14px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.game-card:hover,.btn:hover,.small-btn:hover{transform:none!important}}

.nexus-arrow{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none}
