/* Spielclub: a complete visual layer, shared by the lobby and every game. */
:root{scroll-behavior:smooth}
.shell[data-theme],.login{--club-bg:#111719;--club-surface:#1b2326;--club-raised:#242e31;--club-ink:#f5f5ec;--club-muted:#a9b7b8;--club-line:#344145;--club-accent:#d6f58a;--club-on-accent:#1d2910;--club-warm:#ffab87;--paper:var(--club-bg);--card:var(--club-surface);--ink:var(--club-ink);--muted:var(--club-muted);--line:var(--club-line);--accent:var(--club-accent);--mint:var(--club-raised);color:var(--club-ink);background:var(--club-bg);font-family:'Inter',Arial,sans-serif;color-scheme:dark}
.shell[data-theme="light"]{--club-bg:#f0f2ed;--club-surface:#fff;--club-raised:#e6ebe2;--club-ink:#192728;--club-muted:#5d7070;--club-line:#d4ddd5;--club-accent:#285c44;--club-on-accent:#fff;--club-warm:#a74b2a;color-scheme:light}
body:has(.shell[data-theme="dark"]),body:has(.login){background:#111719}
.shell[data-theme]{grid-template-columns:224px minmax(0,1fr)}
.shell[data-theme] h1,.shell[data-theme] h2,.login h1,.login h2{font-family:'Inter',Arial,sans-serif;font-weight:800;letter-spacing:-.055em}
.shell[data-theme] .main{max-width:1660px;margin:0 auto;padding:28px clamp(24px,3.3vw,56px) 36px;background:transparent;box-shadow:none}
.shell[data-theme] .rail{background:var(--club-bg);border-color:var(--club-line);padding:36px 18px;gap:58px}
.shell[data-theme] .brand{color:var(--club-ink);font-size:31px;letter-spacing:-.07em;padding-left:12px}
.shell[data-theme] .brand b{color:var(--club-accent)}
.shell[data-theme] .brand small{font-size:9px;color:var(--club-muted);letter-spacing:.2em}
.shell[data-theme] .nav-link{border-radius:12px;color:var(--club-muted);padding:14px 12px;gap:11px;font-size:12px;line-height:1.3;position:relative;transition:background .2s,color .2s}
.shell[data-theme] .nav-link .ui-icon{width:20px;height:20px;flex:none}
.shell[data-theme] .nav-link:hover{background:var(--club-raised);color:var(--club-ink)}
.shell[data-theme] .nav-link.active{background:var(--club-raised);color:var(--club-accent)}
.shell[data-theme] .nav-link.active:before{content:'';width:3px;height:18px;border-radius:4px;position:absolute;left:-18px;background:var(--club-accent)}
.shell[data-theme] .rail-bottom{padding:0 12px;line-height:1.9;color:var(--club-muted)}
.shell[data-theme] .rail-bottom p{margin-top:24px}
.shell[data-theme] .rail-bottom .chip{font-size:9px;background:none;border:1px solid var(--club-line);color:var(--club-muted)}
.shell[data-theme] .topbar{margin-bottom:28px;min-height:42px}
.shell[data-theme] .topbar .date{font-size:9px;font-weight:650;letter-spacing:.16em;color:var(--club-muted)}
.shell[data-theme] .profile{color:var(--club-ink);padding:4px 10px 4px 4px;background:var(--club-surface);border:1px solid var(--club-line);border-radius:999px}
.shell[data-theme] .profile .avatar{width:32px;height:32px;border-radius:50%}
.shell[data-theme] .profile .ui-icon{width:14px;height:14px;color:var(--club-muted)}
.shell[data-theme] .icon-btn{color:var(--club-muted);border-color:var(--club-line);background:transparent;width:36px;height:36px;border-radius:10px}
.shell[data-theme] .sound-test{padding:7px 9px;min-height:36px}
.shell[data-theme] .btn,.login .btn{border-radius:11px;min-height:42px;transition:transform .18s,box-shadow .18s,background .18s;font-weight:700}
.shell[data-theme] .btn:not(.line):not(.soft):not(.danger),.login .btn.accent{background:var(--club-accent);color:var(--club-on-accent);box-shadow:0 4px 0 #0002;border-color:transparent}
.shell[data-theme] .btn.soft{background:var(--club-raised);color:var(--club-ink);border-color:var(--club-line)}
.shell[data-theme] .btn.line{background:transparent;color:var(--club-ink);border-color:var(--club-line)}
.shell[data-theme] .btn:hover:not(:disabled),.login .btn:hover:not(:disabled){filter:none;transform:translateY(-2px);box-shadow:0 6px 16px #0002}
.shell[data-theme] .btn:active:not(:disabled),.login .btn:active:not(:disabled){transform:translateY(1px)}
.shell[data-theme] :is(input,select,textarea),.login :is(input,select){background:var(--club-bg);color:var(--club-ink);border-color:var(--club-line)}
.shell[data-theme] :is(input,select,textarea)::placeholder,.login input::placeholder{color:var(--club-muted);opacity:.8}
.shell[data-theme] :is(button,a,input,select,textarea):focus-visible,.login :is(button,input):focus-visible{outline:3px solid var(--club-accent);outline-offset:4px}
.shell[data-theme] .eyebrow{color:var(--club-accent);font-size:10px;letter-spacing:.15em;line-height:1.5}
.shell[data-theme] :is(.muted,.fine,small,.date){color:var(--club-muted)}
.shell[data-theme] .chip{background:var(--club-raised);border:1px solid var(--club-line);color:var(--club-ink)}
.shell[data-theme] .footer{border-top:1px solid var(--club-line);padding-top:22px;margin-top:40px;color:var(--club-muted);gap:24px}
.shell[data-theme] .footer>span{margin-right:auto}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* The front door: oversized lettering, a real card composition, clear invitation. */
.shell[data-theme] .club-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.22fr 1fr;gap:12px;align-items:center;background:#263630;border:1px solid #45534b;border-radius:24px;padding:48px 42px;min-height:365px;color:#f7f7ee;box-shadow:0 16px 45px #0002}
.shell[data-theme] .club-hero:before{content:'';position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#d2dfcb13 1px,transparent 1px);background-size:20px 20px;mask-image:linear-gradient(90deg,transparent 35%,#000)}
.shell[data-theme] .club-hero .eyebrow{color:#d6f58a;display:flex;gap:9px;align-items:center;letter-spacing:.13em}
.live-dot{width:6px;height:6px;border-radius:50%;background:#d6f58a;box-shadow:0 0 0 4px #d6f58a16;flex:none}
.shell[data-theme] .club-hero h1{font-size:clamp(38px,4vw,64px);line-height:1.04;margin:22px 0 20px;max-width:700px;color:#f8f7ee;position:relative;z-index:2}
.club-hero h1 em{color:#d6f58a;font-style:normal}
.shell[data-theme] .club-hero p{color:#bac9bf;font-size:13px;line-height:1.8;max-width:420px}
.shell[data-theme] .club-hero .hero-cta{margin-top:24px;background:#d6f58a;color:#213118;padding:13px 20px;min-height:46px}
.hero-crew{display:flex;align-items:center;gap:12px;margin-top:25px;font-size:10px;color:#bac9bf}
.crew-faces{display:flex;padding-left:7px}.crew-faces img{margin-left:-7px;border:3px solid #263630;border-radius:50%;width:32px;height:32px;background:#d1d7b4}
.hero-playground{position:relative;min-height:310px;width:100%;max-width:440px;justify-self:center;pointer-events:none}
.orbit{position:absolute;border:1px solid #a5c7a52a;left:50%;top:50%;border-radius:50%;transform:translate(-50%,-50%)}
.orbit-one{width:300px;height:300px}.orbit-two{width:400px;height:400px;border-style:dashed}
.hero-card{position:absolute;width:142px;height:205px;border:7px solid #f3f5eb;border-radius:18px;box-shadow:4px 8px 0 #09191130,0 25px 35px #0005;top:42px;left:50%;font-weight:900;display:grid;place-content:center}
.hero-card:before{content:'';position:absolute;inset:22px 8px;border:2px solid #fff8;border-radius:50%;transform:rotate(22deg);background:#fff1}
.hero-card b{font-size:86px;line-height:1;position:relative;text-shadow:3px 4px 0 #0002;letter-spacing:-.1em}
.hero-card>span,.hero-card>small{position:absolute;font-size:20px!important;font-weight:850;color:inherit!important;line-height:1}
.hero-card>span{top:9px;left:9px}.hero-card>small{bottom:9px;right:9px;transform:rotate(180deg)}
.hero-card-back{background:#aaaddd;color:#232c49;transform:translateX(-85%) rotate(-21deg);top:40px}
.hero-card-front{background:#f29b76;color:#492c22;transform:translateX(-12%) rotate(12deg);top:60px;animation:club-float 6s ease-in-out infinite}
.hero-sticker{position:absolute;bottom:6px;left:8%;display:flex;align-items:center;gap:7px;padding:8px 16px 8px 8px;border-radius:16px;background:#d6f58a;color:#21301a;transform:rotate(-8deg);box-shadow:3px 6px 0 #09191133;font-size:10px;line-height:1.15;font-weight:900;letter-spacing:.02em}
.hero-sticker img{width:43px;height:43px;border-radius:12px}
.hero-die{position:absolute;right:0;bottom:30px;width:60px;height:60px;transform:rotate(17deg);background:#f5f1e3;border-radius:14px;box-shadow:5px 6px 0 #bebdad,0 15px 30px #0003;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);padding:11px;gap:4px}
.hero-die i{background:#2b3d33;border-radius:50%}.hero-die i:nth-child(2){grid-column:3}.hero-die i:nth-child(3){grid-area:2/2}.hero-die i:nth-child(4){grid-area:3/1}.hero-die i:nth-child(5){grid-area:3/3}
.hero-spark{position:absolute;color:#d6f58a;font-size:40px}.spark-one{right:0;top:10px;transform:rotate(15deg)}.spark-two{left:8px;top:60px;font-size:23px;color:#ffab87}
@keyframes club-float{50%{transform:translateX(-12%) translateY(-9px) rotate(15deg)}}
.join-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 26px;margin:18px 0 32px;border:1px solid var(--club-line);border-radius:16px;background:var(--club-surface)}
.join-strip h3{font-size:16px;margin-top:4px;letter-spacing:-.035em}
.shell[data-theme] .join-strip .join-box{width:auto;display:block;transform:none;background:none;border:0;padding:0;box-shadow:none}
.join-strip .join-box .row{margin:0;max-width:none;gap:9px}.join-strip input{max-width:180px;min-height:43px;font-size:12px;letter-spacing:.12em}.join-strip .btn{min-height:43px}
.shell[data-theme] .notice{background:var(--club-surface);border-color:var(--club-line);box-shadow:none;padding:16px 20px;font-size:12px}
.shell[data-theme] .room-delete{background:#a5514526;color:var(--club-warm)}
.games-section{scroll-margin-top:24px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:34px 0 22px}
.section-heading h2{font-size:30px;margin-top:7px;letter-spacing:-.05em}.game-count{font-size:10px;color:var(--club-muted)}
.shell[data-theme] .filters{margin-bottom:24px;gap:8px}.shell[data-theme] .filter{border:1px solid var(--club-line);color:var(--club-muted);background:transparent;font-size:11px;font-weight:650;padding:9px 15px;border-radius:9px;transition:background .2s,color .2s}
.shell[data-theme] .filter.active{background:var(--club-accent);border-color:var(--club-accent);color:var(--club-on-accent)}
.shell[data-theme] .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.shell[data-theme] .game-tile{--game-color:#b9b6f4;background:var(--club-surface);border:1px solid var(--club-line);border-radius:18px;box-shadow:0 4px 0 #0001;transition:transform .23s,border-color .23s,box-shadow .23s}
.game-tile[data-game-style="werewolf"]{--game-color:#88bbad!important}.game-tile[data-game-style="uno"]{--game-color:#ffab87!important}.game-tile[data-game-style="cah"]{--game-color:#e2e5d9!important}.game-tile[data-game-style="tabletop"]{--game-color:#e1c975!important}
.shell[data-theme] .game-tile>a{display:flex;flex-direction:column;height:100%;position:relative}
.shell[data-theme] .game-cover{aspect-ratio:1.66;background:#35413a;border-bottom:3px solid var(--game-color)}
.shell[data-theme] .game-cover img{display:block;transition:transform .5s ease,filter .4s;filter:saturate(1.08);object-position:center}
.shell[data-theme] .game-cover .chip{border:1px solid #ffffff33;top:12px;left:12px;background:#172320d9;backdrop-filter:blur(12px);color:#fff;font-size:9px;letter-spacing:.03em;padding:5px 8px}
.cover-play{position:absolute;right:14px;bottom:14px;background:var(--game-color);color:#172320;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;box-shadow:0 4px 15px #0003;transform:translateY(12px);opacity:0;transition:opacity .2s,transform .2s}
.cover-play .ui-icon{width:18px;height:18px;fill:currentColor;stroke-width:0}
.shell[data-theme] .game-info{padding:20px;display:flex;flex:1;flex-direction:column}
.shell[data-theme] .game-info h3{font-size:21px;font-weight:750;letter-spacing:-.055em;line-height:1.15}
.shell[data-theme] .game-info p{font-size:12px;line-height:1.7;color:var(--club-muted);min-height:42px;margin:12px 0 20px}
.shell[data-theme] .game-info>.row{margin-top:auto;padding-top:14px;border-top:1px solid var(--club-line);font-size:10px;line-height:1.8;color:var(--club-muted)}
.shell[data-theme] .game-info .go{width:36px;height:36px;background:var(--club-raised);color:var(--club-ink);border:1px solid var(--club-line);border-radius:11px;transition:background .2s,color .2s,transform .2s}
.shell[data-theme] .game-tile:hover,.shell[data-theme] .game-tile:focus-within{transform:translateY(-6px);border-color:var(--game-color);box-shadow:0 12px 28px #0003}
.shell[data-theme] .game-tile:hover img{transform:scale(1.07)}
.game-tile:hover .cover-play,.game-tile:focus-within .cover-play{opacity:1;transform:none}
.shell[data-theme] .game-tile:hover .go{background:var(--game-color);color:#172320;transform:rotate(-35deg)}
.gallery-banner{display:flex;align-items:center;gap:22px;margin-top:34px;padding:27px 30px;background:var(--club-raised);border:1px solid var(--club-line);border-radius:18px}
.gallery-banner-icon{width:60px;height:70px;display:grid;place-items:center;background:#b9b6f4;color:#242a4a;transform:rotate(-9deg);border-radius:12px;box-shadow:4px 5px 0 #0002;flex:none}
.gallery-banner-icon .ui-icon{width:29px;height:29px}.gallery-banner h2{font-size:24px;margin:6px 0}.gallery-banner p{font-size:12px;color:var(--club-muted)}.gallery-banner>.btn{margin-left:auto}

/* One visual language at the table, with a different accent for every game. */
.shell[data-theme] .room-layout{--game-accent:#d6f58a;background:transparent;box-shadow:none;border-radius:0}
.shell[data-theme] .room-layout[data-room-game="draw"]{--game-accent:#b9b6f4}
.shell[data-theme] .room-layout[data-room-game="uno"]{--game-accent:#ffab87}
.shell[data-theme] .room-layout[data-room-game="werewolf"]{--game-accent:#8bd4c0}
.shell[data-theme] .room-heading{padding:8px 0 23px;border-bottom:1px solid var(--club-line);margin-bottom:25px;gap:16px}
.shell[data-theme] .room-heading h1{font-size:clamp(27px,3vw,44px);margin-top:8px;line-height:1.05}
.shell[data-theme] .room-heading>.row{flex-wrap:wrap;justify-content:flex-end}
.shell[data-theme] .room-layout .panel,.shell[data-theme] .room-layout[data-room-game] .game-stage>.panel{background:var(--club-surface);color:var(--club-ink);border:1px solid var(--club-line);box-shadow:0 6px 22px #0001;border-radius:20px}
.shell[data-theme] .room-layout .game-stage>.panel{border-top:3px solid var(--game-accent)}
.shell[data-theme] .task-heading h2{font-size:clamp(25px,3vw,37px);line-height:1.07;font-weight:800}
.shell[data-theme] .room-layout .eyebrow{color:var(--game-accent)}
.shell[data-theme="light"] .room-layout .eyebrow{color:var(--club-accent)}
.shell[data-theme] .room-layout .lobby-cover{max-height:260px;border:0;border-radius:13px;box-shadow:none;margin-bottom:26px}
.shell[data-theme] .room-layout .lobby-options{background:var(--club-bg);border-color:var(--club-line);padding:20px;gap:20px}
.shell[data-theme] .room-layout .lobby-options input{background:var(--club-surface);border-color:var(--club-line);color:var(--club-ink);font-size:21px;font-weight:700}
.shell[data-theme] .room-layout .lobby-options label{color:var(--club-muted);font-size:11px;font-weight:500}
.shell[data-theme] .room-layout .room-code{background:var(--club-bg);color:var(--game-accent);border:1px solid var(--club-line);border-radius:8px;padding:7px 10px;font-size:16px}
.shell[data-theme="light"] .room-code{color:var(--club-ink)!important}
.shell[data-theme] .member{background:none;box-shadow:none;border:0;padding:11px 0;border-bottom:1px solid var(--club-line)}
.shell[data-theme] .member .avatar{width:35px;height:35px;border-radius:11px}.shell[data-theme] .member .name{font-size:12px;line-height:1.5}
.shell[data-theme] .chat-panel{border-top:3px solid var(--game-accent);background:var(--club-surface)}
.shell[data-theme] .chat-panel .chat-list{height:275px;max-height:275px;min-height:0;gap:13px;padding-bottom:15px;scrollbar-color:var(--club-line) transparent}
.shell[data-theme] .chat-bubble{background:var(--club-raised);color:var(--club-ink);border-color:var(--club-line);box-shadow:none}
.shell[data-theme] .chat-message.own .chat-bubble{background:#344238;border-color:#465946}
.shell[data-theme="light"] .chat-message.own .chat-bubble{background:#e4efda;border-color:#bacbac}
.shell[data-theme] .chat-meta strong{color:var(--club-ink)}.shell[data-theme] .chat-meta time{color:var(--club-muted)}
.shell[data-theme] .chat-list .chat-bubble p{color:var(--club-ink);font-size:12px}
.shell[data-theme] .chat-live{color:var(--club-accent)}
.shell[data-theme] .chat-panel .chat-form{border-color:var(--club-line);padding-top:14px}.shell[data-theme] .chat-panel .chat-form input{background:var(--club-bg);color:var(--club-ink);border-color:var(--club-line);font-size:13px}
.shell[data-theme] .chat-panel .chat-form .btn{background:var(--club-accent);color:var(--club-on-accent)}
.shell[data-theme] .timer{background:var(--club-raised);color:var(--club-ink);border:1px solid var(--club-line);font-size:16px;min-width:70px;text-align:center;font-variant-numeric:tabular-nums}
.shell[data-theme] .timer.urgent{background:#f69976;color:#3d241a;border-color:#ffd0bd;animation:club-timer 1s ease-in-out infinite}
@keyframes club-timer{50%{box-shadow:0 0 0 5px #f6997625}}
.shell[data-theme] .score-ribbon{background:var(--club-bg);border-radius:12px;padding:8px;gap:8px;box-shadow:0 6px 16px #0002}
.shell[data-theme] .score-chip{background:var(--club-surface);color:var(--club-ink);border-color:var(--club-line);box-shadow:none;border-radius:9px;font-size:12px}
.shell[data-theme] .score-chip strong{color:var(--club-accent);margin-left:4px;font-size:20px}
.shell[data-theme] .room-layout[data-room-game="cah"] .question-card{background:#0d1214;border:1px solid #435052;border-top:3px solid #d6f58a;border-radius:16px;box-shadow:0 5px 0 #0002;padding:28px}
.shell[data-theme] .room-layout[data-room-game="cah"] .question-card p{color:#f7f7ef;font-size:clamp(23px,2.4vw,34px);letter-spacing:-.035em;line-height:1.3;font-weight:750}
.shell[data-theme] .room-layout[data-room-game="cah"] .question-card :is(.eyebrow,small){color:#c5d1bf}
.shell[data-theme] .room-layout[data-room-game="cah"] .answer-card{background:#f7f6ec!important;color:#1c2728!important;border:1px solid #fff!important;box-shadow:0 5px 0 #b9c0b6,0 8px 17px #0003;border-radius:12px;padding:20px 16px;min-height:175px;font-size:14px;font-weight:700;line-height:1.4}
.shell[data-theme] .room-layout[data-room-game="cah"] .answer-card :is(p,small){color:#283738!important}.shell[data-theme] .room-layout[data-room-game="cah"] .answer-card small{font-size:9px;font-weight:500;letter-spacing:.06em;text-transform:uppercase}
.shell[data-theme] .room-layout[data-room-game="cah"] .answer-card.selected{background:#e1f4ae!important;border-color:#d6f58a!important;outline:3px solid #d6f58a;outline-offset:2px;box-shadow:0 5px 0 #769545,0 0 25px #d6f58a20;transform:translateY(-5px)}
.shell[data-theme] .room-layout[data-room-game="cah"] .answer-card.joker{background:#ddd9f4!important;box-shadow:0 5px 0 #9290b5;border-color:#ddd9f4!important}
.shell[data-theme] .room-layout[data-room-game="cah"] .answer-card textarea{color:#252933;background:#f8f7ff;border-color:#aaa6c4;font-size:13px}
.shell[data-theme] .room-layout[data-room-game="cah"] .answer-card .order{background:#243523;color:#e5f7b9}
.shell[data-theme] .room-layout[data-room-game="cah"] .answer-set{border-color:var(--club-line);background:transparent;padding:12px}
.shell[data-theme] .room-layout[data-room-game="cah"] .answer-set.winner{background:#395130;border-color:#b7e473;box-shadow:0 0 30px #b7e47319;animation:club-winner .7s ease both;color:#fff}
.shell[data-theme] .room-layout .proposal-row,.shell[data-theme] .leaderboard>.row{background:var(--club-raised);border-color:var(--club-line);color:var(--club-ink)}
.shell[data-theme] .leaderboard>.row:first-child{border-color:var(--club-accent);background:var(--club-raised)}
.shell[data-theme] .room-layout .vote-button{background:var(--club-raised);color:var(--club-ink);border-color:var(--club-line);font-size:11px;min-height:38px}
.shell[data-theme] .room-layout .vote-button:is(.liked,.accepted){background:#d6f58a;color:#24321a;border-color:#d6f58a}
@keyframes club-winner{from{transform:scale(.96);filter:brightness(1.5)}to{transform:none;filter:none}}
.shell[data-theme] .uno-arena .play-table{border:6px solid #455758;background:radial-gradient(ellipse at 50% 35%,#2b514c,#162e30 75%);box-shadow:inset 0 0 0 2px #7f96904a,inset 0 8px 45px #00181780,0 8px 0 #0c171b;border-radius:34px;overflow:hidden}
.shell[data-theme] .uno-arena .hand-zone{background:#101d22bd;border-top:1px solid #7f969046;box-shadow:none}
.shell[data-theme] .uno-arena .hand-title{color:#f5f5e8}.shell[data-theme] .uno-arena .hand-title small{color:#adbfb6}
.shell[data-theme] .uno-arena .opponent{background:#0d232655;border-color:transparent;color:#e7f1e9}.shell[data-theme] .uno-arena .opponent small{color:#b7cfc5}
.shell[data-theme] .uno-arena .opponent.current{border-color:#d6f58a;background:#d6f58a14;box-shadow:0 0 0 4px #d6f58a09}
.shell[data-theme] .uno-arena .hand-actions .btn.line{color:#e2ede9;border-color:#748d815e;background:#213530}
.shell[data-theme] .uno-arena .table-color{background:#101d228a;border-color:#748d814d;color:#f4f5e7}
.shell[data-theme] .room-layout[data-room-game="draw"] .task-heading{border-color:var(--club-line)}
.shell[data-theme] .room-layout[data-room-game="draw"] .prompt{background:#b9b6f41a;border:1px solid #b9b6f469;border-left:4px solid #b9b6f4;color:var(--club-ink);font-family:inherit;font-size:23px;box-shadow:none}
.shell[data-theme] .room-layout[data-room-game="draw"] :is(.draw-tools,.album-controls){background:var(--club-raised);border-color:var(--club-line);color:var(--club-ink)}
.shell[data-theme] .room-layout[data-room-game="draw"] #draw-text-form label{color:var(--club-muted)}
.shell[data-theme] .room-layout[data-room-game="draw"] #drawing-text{background:#f7f6ee;color:#263136;font-family:inherit;line-height:1.65;font-size:20px;border:5px solid #cac6ed;box-shadow:0 5px 0 #7b77973d;border-radius:14px;padding:18px;min-height:170px}
.shell[data-theme] .room-layout[data-room-game="draw"] .canvas-wrap{border:8px solid #cac6ed;outline:none;border-radius:14px;box-shadow:0 6px 0 #716a984d,0 15px 35px #0003}
.shell[data-theme] .room-layout[data-room-game="draw"] .draw-tools :is(.btn,select){background:var(--club-bg);border-color:var(--club-line);color:var(--club-ink)}
.shell[data-theme] .room-layout[data-room-game="draw"] .album-page{background:var(--club-raised);border-color:var(--club-line);box-shadow:none;border-radius:15px}
.shell[data-theme] .room-layout[data-room-game="draw"] .album-page p,.shell[data-theme] .room-layout[data-room-game="draw"] .album-title{color:var(--club-ink);font-family:inherit}
.shell[data-theme] .room-layout[data-room-game="draw"] .album-page>.row{border-color:var(--club-line)}
.shell[data-theme] .room-layout[data-room-game="werewolf"] .role-panel{min-height:270px;background-image:linear-gradient(90deg,#0c2025f5,#142f29b5 60%,#10212730),url('/assets/werewolf.webp');border:1px solid #597f73;border-radius:20px;box-shadow:0 6px 0 #0002}
.shell[data-theme] .room-layout[data-room-game="werewolf"] .role-panel h2{font-size:clamp(37px,4vw,54px);font-weight:850;color:#f7f4dd}
.shell[data-theme] .room-layout[data-room-game="werewolf"] .target{background:var(--club-raised);color:var(--club-ink);border-color:var(--club-line);box-shadow:0 4px 0 #0002;border-radius:16px}
.shell[data-theme] .room-layout[data-room-game="werewolf"] .target img{outline-color:var(--club-line)}
.shell[data-theme] .room-layout[data-room-game="werewolf"] .target small{color:var(--club-muted)}
.shell[data-theme] .room-layout[data-room-game="werewolf"] .target.selected{background:#3f5142;border-color:#d6f58a;outline-color:#d6f58a66;color:#fff}
.shell[data-theme] .room-layout[data-room-game="werewolf"] .vision{background:var(--club-raised);color:var(--club-ink);border-color:var(--club-line)}
.shell[data-theme] .room-layout[data-room-game="werewolf"] .event-list{color:var(--club-muted);border-color:var(--club-line)}
.shell[data-theme] .room-layout[data-room-game="werewolf"] .event-list li{border-color:var(--club-line)}
.shell[data-theme] .external-heading{background:var(--club-bg);border-color:var(--club-line)}
.shell[data-theme] .external-bar{background:var(--club-surface);border-color:var(--club-line)}
.shell[data-theme] .external-bar strong{color:var(--club-ink)}
.shell[data-theme] .gallery-hero{background:#263630;color:#f5f7ee;border:1px solid #45534b;box-shadow:none}
.shell[data-theme] .gallery-hero .eyebrow{color:#d6f58a}.shell[data-theme] .gallery-hero p{color:#bac9bf}
.shell[data-theme] .gallery-total{border-radius:22px;transform:rotate(7deg);background:#d6f58a;color:#24331c;box-shadow:5px 6px 0 #0003}
.shell[data-theme] .gallery-card{background:var(--club-surface);color:var(--club-ink);border-color:var(--club-line);border-radius:17px;box-shadow:0 4px 0 #0002}
.shell[data-theme] .gallery-canvas{padding:14px;background:#e9e7de}
.shell[data-theme] .gallery-meta{padding:16px}.shell[data-theme] .gallery-meta small{color:var(--club-muted)}
.shell[data-theme] .gallery-meta .vote-button{background:var(--club-raised);color:var(--club-ink);border-color:var(--club-line)}
body:has(.shell[data-theme="dark"]) #modal{background:#1b2326;color:#f5f5ec;border:1px solid #435253;border-radius:20px;box-shadow:0 35px 90px #0009}
body:has(.shell[data-theme="dark"]) #modal :is(input,textarea,select){background:#111719;color:#f5f5ec;border-color:#435253}
body:has(.shell[data-theme="dark"]) #modal :is(.muted,.fine,small){color:#a9b7b8}
body:has(.shell[data-theme="dark"]) #modal .btn.accent{background:#d6f58a;color:#1d2910}
body:has(.shell[data-theme="dark"]) #modal .btn.line{color:#f5f5ec;border-color:#435253}
body:has(.shell[data-theme="dark"]) #modal .close{background:#344145;color:#f5f5ec}

/* Login belongs to the same club. */
.login{grid-template-columns:1.1fr 1fr}
.login .login-art{background:#263630;padding:48px 55px;position:relative}
.login .brand{color:#f7f7ee}.login .brand b{color:#d6f58a}.login .brand small{color:#bdc9bd}
.login .login-art h1{font-size:clamp(42px,4.4vw,72px);font-weight:850;line-height:1.05;color:#d6f58a;margin-block:36px}
.login .login-collage{gap:16px;transform:rotate(-4deg);max-width:550px;margin:12px auto 35px}
.login .login-collage img{border-radius:16px;border:4px solid #cad7b7;box-shadow:5px 7px 0 #0f221e60}
.login .login-form{padding:40px;background:#111719}
.login .login-form h2{font-size:46px;font-weight:800;line-height:1.08;color:#f5f5ec}
.login .eyebrow{color:#d6f58a}.login .lead,.login .fine{color:#a9b7b8}
.login label{font-size:11px;color:#c8d5d1;margin-top:18px}
.login input{background:#1b2326;color:#f5f5ec;border-color:#435253;min-height:48px}
.login .avatar-picker{grid-template-columns:repeat(9,minmax(0,1fr));gap:7px}
.login .avatar-option{border-radius:13px;border:2px solid transparent;padding:3px;transition:transform .18s,background .18s;background:#232e30}
.login .avatar-option.selected{border-color:#d6f58a;background:#d6f58a33;transform:translateY(-3px);box-shadow:0 3px 0 #d6f58a33}
.login .avatar-option:hover{transform:translateY(-3px)}
.login .avatar-option img{border-radius:9px}
.login .form-error{color:#ffab87}.login .btn[type=submit]{min-height:49px}

@media(min-width:1650px){.shell[data-theme] .game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1250px){.shell[data-theme]{grid-template-columns:186px minmax(0,1fr)}.shell[data-theme] .rail{padding:30px 12px}.shell[data-theme] .brand{font-size:28px}.shell[data-theme] .nav-link{font-size:11px}.shell[data-theme] .main{padding:24px}.shell[data-theme] .club-hero{padding:35px 30px;grid-template-columns:1.2fr .9fr;min-height:335px}.shell[data-theme] .club-hero h1{font-size:43px}.hero-playground{transform:scale(.85)}.shell[data-theme] .game-grid{gap:16px}.shell[data-theme] .game-info{padding:17px}.shell[data-theme] .game-info h3{font-size:19px}.game-count{display:none}}
@media(max-width:1000px){.shell[data-theme]{grid-template-columns:165px minmax(0,1fr)}.shell[data-theme] .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shell[data-theme] .brand{font-size:25px}.shell[data-theme] .nav-link{padding:12px 8px;gap:7px}.shell[data-theme] .club-hero{grid-template-columns:1fr;padding:34px;min-height:360px}.hero-copy{max-width:80%;position:relative;z-index:1}.hero-playground{position:absolute;right:-70px;bottom:-25px;width:300px;opacity:.4;transform:scale(.85)}.hero-crew{position:relative;z-index:2}.gallery-banner{flex-wrap:wrap;padding:23px}.gallery-banner>.btn{margin-left:80px}.gallery-banner h2{font-size:22px}.join-strip{padding:18px;flex-wrap:wrap;gap:15px}.join-strip .join-box{width:100%!important}.join-strip .join-box input{max-width:none;flex:1}.join-strip .join-box .row{width:100%}.shell[data-theme] .room-heading{align-items:flex-start;flex-wrap:wrap}.shell[data-theme] .room-heading>.row{justify-content:flex-start}}
@media(max-width:800px){.shell[data-theme]{display:block}.shell[data-theme] .rail{position:static;height:auto;flex-direction:row;padding:17px 20px;gap:10px;align-items:center}.shell[data-theme] .brand{padding-left:0;font-size:27px}.shell[data-theme] .rail nav{gap:3px}.shell[data-theme] .nav-link{width:40px;height:40px;padding:10px;justify-content:center}.shell[data-theme] .nav-link .label{display:none}.shell[data-theme] .nav-link.active:before{display:none}.shell[data-theme] .main{padding:20px}.shell[data-theme] .topbar{margin-bottom:20px}.shell[data-theme] .topbar .date{font-size:8px;max-width:115px;line-height:1.7}.shell[data-theme] .club-hero{grid-template-columns:1.2fr 1fr;min-height:340px}.hero-copy{max-width:none}.hero-playground{position:relative;right:auto;bottom:auto;opacity:1;transform:scale(.85)}.shell[data-theme] .club-hero h1{font-size:46px}.shell[data-theme] .game-info h3{font-size:22px}.shell[data-theme] .room-side{position:static}.shell[data-theme] .room-side .chat-panel{order:-1}.shell[data-theme] .room-layout .lobby-cover{max-height:220px}.shell[data-theme] .gallery-hero h1{font-size:38px}.login{display:block}.login .login-art{display:none}.login .login-form{min-height:100dvh;padding:40px 24px}.login .login-form form{max-width:440px}}
@media(max-width:600px){.shell[data-theme] .main{padding:17px}.shell[data-theme] .topbar .date{display:none}.shell[data-theme] .topbar{justify-content:flex-end;margin-bottom:17px}.shell[data-theme] .club-hero{display:block;padding:30px 24px;min-height:450px}.hero-copy{max-width:100%}.shell[data-theme] .club-hero h1{font-size:clamp(35px,8.7vw,48px);margin:21px 0 17px;max-width:390px}.shell[data-theme] .club-hero p{font-size:12px;max-width:280px}.shell[data-theme] .club-hero .eyebrow{font-size:8px}.hero-playground{position:absolute;right:-45px;bottom:-47px;width:290px;transform:scale(.61);transform-origin:center;opacity:1;min-height:310px}.hero-crew{margin-top:26px;flex-direction:column;align-items:flex-start;gap:9px;max-width:130px}.shell[data-theme] .hero-cta{position:relative;z-index:3;font-size:12px}.hero-sticker{bottom:-5px;left:5%}.section-heading{margin:29px 0 18px}.section-heading h2{font-size:27px}.shell[data-theme] .filters{gap:6px;margin-bottom:20px}.shell[data-theme] .filter{font-size:10px;padding:10px 12px;min-height:38px}.shell[data-theme] .game-grid{gap:18px}.shell[data-theme] .game-tile>a{display:flex;flex-direction:column;min-height:0}.shell[data-theme] .game-cover{aspect-ratio:1.4;height:auto}.shell[data-theme] .game-cover .chip{font-size:8px;left:8px;top:8px;padding:4px 6px}.shell[data-theme] .game-info{padding:14px}.shell[data-theme] .game-info h3{font-size:19px}.shell[data-theme] .game-info p{font-size:11px;min-height:0;margin:10px 0 16px;line-height:1.65}.shell[data-theme] .game-info>.row{font-size:9px;gap:4px}.shell[data-theme] .game-info .go{width:29px;height:29px;border-radius:8px;flex:none}.shell[data-theme] .game-info .go .ui-icon{width:16px;height:16px}.cover-play{display:none}.gallery-banner{gap:17px;padding:23px}.gallery-banner-icon{width:45px;height:56px}.gallery-banner>div:nth-child(2){flex:1;min-width:160px}.gallery-banner h2{font-size:22px}.gallery-banner p{font-size:11px;line-height:1.6}.gallery-banner>.btn{margin-left:0;width:100%;margin-top:3px}.gallery-banner .eyebrow{font-size:8px}.shell[data-theme] .room-heading h1{font-size:31px}.shell[data-theme] .room-layout .panel{padding:18px}.shell[data-theme] .room-layout .lobby-options{padding:15px;gap:16px}.shell[data-theme] .room-layout .lobby-options label{min-height:30px;line-height:1.4}.shell[data-theme] .room-layout[data-room-game="cah"] .question-card{padding:22px}.shell[data-theme] .room-layout[data-room-game="cah"] .answer-card{padding:16px 13px;min-height:160px;font-size:13px}.shell[data-theme] .room-layout[data-room-game="werewolf"] .role-panel{min-height:240px}.shell[data-theme] .room-layout .canvas-wrap{border-width:5px}.shell[data-theme] .footer{font-size:10px;gap:17px}.shell[data-theme] .footer>span{width:100%;margin-right:0}}
@media(max-width:370px){.shell[data-theme] .main{padding:12px}.shell[data-theme] .club-hero{padding:26px 20px;min-height:445px}.shell[data-theme] .club-hero h1{font-size:33px}.shell[data-theme] .game-grid{grid-template-columns:1fr}.shell[data-theme] .game-cover{aspect-ratio:1.7}.shell[data-theme] .game-info{padding:19px}.shell[data-theme] .game-info h3{font-size:24px}.shell[data-theme] .game-info p{font-size:12px}.hero-playground{right:-56px;bottom:-44px;transform:scale(.54)}.login .avatar-picker{grid-template-columns:repeat(6,minmax(0,1fr))}.shell[data-theme] .profile span{max-width:65px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}.hero-card-front,.shell[data-theme] .timer.urgent,.shell[data-theme] .room-layout[data-room-game="cah"] .answer-set.winner{animation:none}.shell[data-theme] :is(.game-tile,.game-cover img,.go,.btn,.cover-play){transition:none}}
