@font-face{font-family:Lalezar;src:url('/assets/lalezar.ttf') format('truetype');font-display:swap}
@font-face{font-family:Noto;src:url('/assets/noto-arabic.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Noto;src:url('/assets/noto-arabic-bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
:root{color-scheme:dark;--ground:#171b21;--raised:#20262e;--input:#181d24;--ink:#f3f1e9;--muted:#abb3bf;--rule:#363e49;--accent:#f5b942;--on-accent:#241c10;--coral:#ed816c;--positive:#88c5ad;--shadow:0 2px 3px #080b1030,0 20px 40px -24px #0009;--radius:24px}
*{box-sizing:border-box}html{min-height:100%;-webkit-text-size-adjust:100%;scroll-behavior:smooth}body{margin:0;background:var(--ground);color:var(--ink);font:15px/1.7 Noto,-apple-system,BlinkMacSystemFont,sans-serif;min-height:100svh;transition:background .2s,color .2s}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none;touch-action:manipulation}button:disabled{cursor:default;opacity:.4}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}input{min-width:0;color:var(--ink)}img{max-width:100%;display:block}h1,h2,h3,p{margin:0}h1,h2,.display{font-family:Lalezar,Noto,sans-serif;font-weight:400;line-height:1.2}h1{font-size:clamp(56px,7vw,96px)}h2{font-size:40px}h3{font-size:17px;font-weight:700}.muted{color:var(--muted)}.small{font-size:13px}.ltr{direction:ltr;unicode-bidi:isolate}.ambient-grid{position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(var(--rule) .7px,transparent .7px);background-size:24px 24px;opacity:.25;mask-image:linear-gradient(#000,transparent 70%)}
.topbar{max-width:1220px;margin:auto;height:100px;padding:24px 40px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font:30px/1 Lalezar,sans-serif}.brand-dot{color:var(--accent)}.top-actions{display:flex;align-items:center;gap:12px}.icon-button{height:44px;width:44px;border:1px solid var(--rule);border-radius:50%;display:grid;place-items:center}.icon{width:22px;height:22px;display:inline-block;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.help-button{display:flex;align-items:center;gap:12px;font-size:13px;height:44px;padding:0 15px;border:1px solid var(--rule);border-radius:24px}.help-button span{font-weight:bold;color:var(--accent)}
#app{min-height:calc(100svh - 180px);outline:none}.setup-layout{max-width:1130px;margin:24px auto 48px;padding:0 32px;display:grid;grid-template-columns:.95fr 1.05fr;gap:84px;align-items:center}.intro{align-self:start;padding-top:24px}.eyebrow{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;margin-bottom:16px}.eyebrow:before{content:'';width:24px;height:2px;background:var(--accent)}.intro h1{max-width:440px;line-height:1.05}.intro h1 .accent{color:var(--accent)}.intro-copy{margin-top:20px;font-size:17px;max-width:350px;color:var(--muted);line-height:1.9}.intro-meta{display:flex;gap:14px;align-items:center;margin-top:28px;color:var(--muted);font-size:13px}.intro-meta span+span{padding-inline-start:14px;border-inline-start:1px solid var(--rule)}.spy-art{height:270px;position:relative;width:330px;max-width:100%;margin:34px auto 0;isolation:isolate}.art-card{position:absolute;width:155px;height:212px;border-radius:22px;top:20px;left:85px;border:2px solid #ffffff1a;box-shadow:0 4px 0 #0002,0 28px 32px -14px #0005}.art-card.back{background:#e9e6d9;transform:rotate(-17deg) translateX(-55px);top:28px}.art-card.back:after{content:'';position:absolute;inset:13px;border:2px dashed #171b2133;border-radius:12px}.art-card.middle{background:var(--coral);transform:rotate(13deg) translateX(42px);top:30px}.art-card.front{background:linear-gradient(150deg,#ffd169,#ecab31);transform:rotate(-3deg);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#27221b;overflow:hidden}.art-card.front img{width:92px;filter:brightness(.18)}.art-card.front .card-label{font:24px Lalezar;margin-top:24px}.art-card.front .mini-star{position:absolute;top:13px;right:16px;font-size:28px;line-height:1}.art-card.front .serial{position:absolute;bottom:14px;font:9px -apple-system,sans-serif;letter-spacing:3px;opacity:.6}.art-orbit{position:absolute;top:2px;left:5px;width:300px;height:250px;border:1px dashed var(--rule);border-radius:50%;transform:rotate(-20deg);z-index:-1}.art-note{position:absolute;bottom:2px;left:5px;border:1px solid var(--rule);border-radius:30px;padding:5px 13px;background:var(--ground);font-size:12px;transform:rotate(-7deg);color:var(--muted)}
.setup-panel{padding:28px 30px;background:var(--raised);border:1px solid var(--rule);border-radius:28px;box-shadow:var(--shadow)}.panel-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:24px}.panel-heading h2{font-size:30px;line-height:1}.round-badge{font-size:11px;color:var(--accent);border:1px solid #f5b94250;padding:4px 10px;border-radius:20px}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}.section-label h3{display:flex;gap:9px;align-items:center}.section-label .meta{font-size:12px;color:var(--muted)}.players-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.player-field{display:flex;align-items:center;gap:8px;background:var(--input);border:1px solid var(--rule);border-radius:12px;padding:4px 9px;min-height:48px}.player-num{font:12px -apple-system,sans-serif;color:var(--muted);display:grid;place-items:center;width:22px;height:24px;flex-shrink:0}.player-field input{border:0;background:none;width:100%;font-size:13px;outline:none;padding:4px 0}.player-field:focus-within{border-color:var(--accent)}.remove-player{width:28px;min-height:36px;color:var(--muted);display:grid;place-items:center;flex-shrink:0}.remove-player .icon{width:15px;height:15px}.add-player{min-height:48px;border:1px dashed var(--rule);border-radius:12px;color:var(--muted);font-size:13px;display:flex;gap:6px;align-items:center;justify-content:center}.add-player .icon{width:16px;height:16px}.settings-divider{height:1px;background:var(--rule);margin:24px 0}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0}.setting-label{display:flex;align-items:center;gap:12px;font-size:14px}.setting-label>.icon{color:var(--muted);width:20px}.stepper{display:flex;align-items:center;gap:4px;direction:ltr;background:var(--input);border:1px solid var(--rule);border-radius:12px}.stepper button{width:42px;height:42px;font-size:23px}.stepper strong{min-width:22px;text-align:center;font:20px -apple-system,sans-serif}.segmented{display:flex;gap:4px;direction:rtl}.segmented button{min-width:38px;height:42px;border-radius:10px;font:14px -apple-system,sans-serif;color:var(--muted);border:1px solid transparent}.segmented button.selected{color:var(--accent);background:#f5b94215;border-color:#f5b94255}.category-select{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 16px;border:1px solid var(--rule);border-radius:14px;text-align:right;background:var(--input);margin-bottom:24px}.category-select .category-leading{display:flex;align-items:center;gap:12px}.category-select .icon{color:var(--accent)}.category-select small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.category-select>.icon{width:18px;color:var(--muted)}.primary{min-height:54px;width:100%;border-radius:15px;background:var(--accent);color:var(--on-accent);display:flex;align-items:center;justify-content:center;gap:12px;font-size:16px;font-weight:700;box-shadow:inset 0 1px #ffffff50,0 3px 0 #a46c16;transition:transform .15s,filter .15s}.primary:hover{filter:brightness(1.05)}.primary:active{transform:translateY(2px);box-shadow:inset 0 1px #ffffff50,0 1px 0 #a46c16}.primary .icon{width:19px}.secondary{min-height:50px;border:1px solid var(--rule);border-radius:14px;padding:10px 18px;font-size:14px;width:100%;font-weight:600}.text-button{min-height:44px;color:var(--muted);font-size:13px;padding:8px 12px}.panel-note{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:11px;margin-top:14px}.panel-note .icon{width:14px;height:14px}.form-error{font-size:12px;color:var(--coral);padding:0 0 12px}.site-footer{max-width:1140px;display:flex;align-items:center;justify-content:space-between;padding:24px 32px;margin:auto;color:var(--muted);font-size:11px}.footer-right{display:flex;align-items:center;gap:8px}.status-dot{width:5px;height:5px;border-radius:50%;background:var(--positive)}
.game-shell{max-width:540px;padding:12px 24px 40px;margin:0 auto}.game-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.round-status{font-size:12px;color:var(--muted)}.exit-button{font-size:12px;min-height:44px;display:flex;align-items:center;gap:8px;color:var(--muted)}.exit-button .icon{width:18px}.game-title{text-align:center;margin:14px 0 20px}.game-title h1{font-size:48px;line-height:1.2;overflow-wrap:anywhere}.game-title p{color:var(--muted);font-size:14px;margin-top:7px}.progress-dots{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:24px;direction:ltr}.progress-dots span{height:5px;width:26px;max-width:6vw;border-radius:4px;background:var(--rule)}.progress-dots span.done{background:var(--accent)}.progress-dots span.current{background:var(--ink)}
.secret-card{position:relative;min-height:370px;border-radius:28px;background:var(--raised);border:1px solid var(--rule);padding:26px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:var(--shadow);overflow:hidden}.secret-card.hidden-card{background:linear-gradient(150deg,#f9c65d,#eeb03b);color:#241c10;border-color:#ffdb8a;justify-content:center;min-height:370px}.hidden-card:before{content:'';position:absolute;inset:13px;border:1px solid #241c1035;border-radius:18px;pointer-events:none}.hidden-card .secret-mark{width:116px;filter:brightness(.18);margin:24px 0}.hidden-card .secret-caption{font-size:12px;opacity:.7}.hidden-card h2{font-size:38px}.hidden-card .secret-line{width:45px;height:3px;border-radius:3px;background:#241c1025;margin-top:22px}.secret-card.revealed{animation:card-reveal .35s cubic-bezier(.2,.8,.2,1)}@keyframes card-reveal{from{transform:perspective(700px) rotateY(-12deg);opacity:.35}to{transform:perspective(700px) rotateY(0);opacity:1}}.category-pill{font-size:12px;display:inline-flex;gap:6px;align-items:center;background:#ffffff0a;border:1px solid var(--rule);border-radius:24px;padding:4px 13px;color:var(--muted)}.role-label{font-size:12px;color:var(--positive);margin-bottom:6px}.secret-word{font-size:52px;margin:6px 0 16px;overflow-wrap:anywhere;max-width:100%}.word-photo{height:190px;width:100%;border-radius:16px;background:var(--input);object-fit:contain}.photo-credit{font-size:10px;color:var(--muted);display:block;margin-top:8px;min-height:18px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}.photo-placeholder{min-height:180px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:16px;background:var(--input);color:var(--muted);font-size:12px}.photo-placeholder>.icon{width:30px;height:30px}.spy-reveal{justify-content:center;min-height:370px}.spy-reveal>.secret-mark{width:95px;margin:18px 0;filter:none}.spy-reveal h2{color:var(--coral);font-size:50px;margin:6px 0}.spy-reveal p{color:var(--muted);font-size:14px;max-width:270px}.spy-reveal .category-pill{margin-top:20px}.game-action{margin-top:24px}.game-action .secondary{margin-top:12px}.privacy-note{text-align:center;font-size:12px;color:var(--muted);margin-top:16px}.timer-wrap{position:relative;display:grid;place-items:center;width:294px;height:294px;margin:34px auto 24px}.timer-svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.timer-track{fill:none;stroke:var(--rule);stroke-width:2}.timer-progress{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-dasharray:880;stroke-dashoffset:var(--progress,0);transition:stroke-dashoffset 1s linear}.timer-text{font:76px/1 -apple-system,BlinkMacSystemFont,sans-serif;font-weight:600;letter-spacing:-4px;font-variant-numeric:tabular-nums;direction:ltr}.timer-sub{text-align:center;color:var(--muted);font-size:12px;margin-top:12px}.timer-controls{display:flex;gap:10px;align-items:center;justify-content:center}.timer-controls button{min-height:44px;padding:8px 18px;display:flex;align-items:center;gap:8px;border:1px solid var(--rule);border-radius:24px;color:var(--muted);font-size:12px}.starter-note{padding:20px 0;margin:22px 0;border-block:1px solid var(--rule);display:flex;align-items:center;gap:14px}.starter-note .icon{color:var(--accent);width:28px;height:28px}.starter-note strong{font-size:15px}.starter-note p{color:var(--muted);font-size:12px}.round-category{text-align:center}.voting-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:28px 0}.vote-player{border:1px solid var(--rule);border-radius:18px;padding:20px 12px;min-height:110px;text-align:center;background:var(--raised);position:relative;overflow-wrap:anywhere}.vote-avatar{font:24px Lalezar;width:40px;height:40px;border:1px solid var(--rule);border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;color:var(--muted)}.vote-player.selected{border-color:var(--accent);background:#f5b94212}.vote-player.selected .vote-avatar{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.vote-player strong{font-size:14px}.vote-check{position:absolute;left:10px;top:10px;color:var(--accent);width:18px;height:18px}.count-label{text-align:center;color:var(--muted);font-size:12px}.guess-hero{display:grid;place-items:center;margin:40px auto 24px;width:100px;height:100px;background:#ed816c16;border:1px solid #ed816c40;border-radius:30px;color:var(--coral)}.guess-hero>.icon{width:46px;height:46px}.guess-instructions{text-align:center;line-height:2;font-size:15px;color:var(--muted);padding:0 12px;max-width:380px;margin:0 auto}.guess-names{color:var(--ink);font-weight:700}.guess-controls{display:grid;gap:12px;margin-top:30px}.result-art{position:relative;display:grid;place-items:center;width:150px;height:150px;border-radius:50%;background:#f5b94216;margin:18px auto 20px}.result-art>.icon{width:72px;height:72px;color:var(--accent)}.result-heading{text-align:center}.result-heading h1{font-size:54px}.result-heading p{color:var(--muted);font-size:14px;margin-top:8px}.result-word-card{margin:28px 0;background:var(--raised);border:1px solid var(--rule);padding:20px;border-radius:24px;text-align:center;box-shadow:var(--shadow)}.result-word-card .secret-word{font-size:42px;margin:8px 0}.result-word-card .word-photo{height:190px}.spies-line{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:18px 0}.spy-name{font-size:13px;color:var(--coral);border:1px solid #ed816c40;background:#ed816c10;border-radius:22px;padding:5px 15px}.result-actions{display:grid;gap:12px}.error-surface{padding:30px;text-align:center}
dialog{width:min(560px,calc(100% - 32px));max-height:85svh;overflow:auto;background:var(--raised);color:var(--ink);border:1px solid var(--rule);border-radius:28px;padding:26px;box-shadow:0 30px 80px #0008}dialog::backdrop{background:#07090dc4;backdrop-filter:blur(6px)}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-header h2{font-size:30px}.modal-header .icon-button{width:40px;height:40px}.rules-list{list-style:none;padding:0;margin:0 0 24px;counter-reset:rules}.rules-list li{position:relative;padding-inline-start:42px;margin:20px 0;counter-increment:rules;color:var(--muted);font-size:14px}.rules-list li:before{content:counter(rules);position:absolute;inset-inline-start:0;top:2px;color:var(--accent);background:#f5b94215;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font:15px Noto}.rules-list strong{color:var(--ink);font-size:15px;display:block}.modal-note{border-top:1px solid var(--rule);padding-top:16px;color:var(--muted);font-size:12px;margin-bottom:20px}.category-toolbar{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;margin-bottom:16px}.category-toolbar button{color:var(--accent);min-height:44px;padding:0 8px}.categories-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:24px}.category-option{position:relative;text-align:right;padding:14px 12px;border:1px solid var(--rule);border-radius:16px;background:var(--input);min-height:94px;display:flex;gap:10px;align-items:center}.category-option>.icon{width:24px;height:24px;color:var(--muted)}.category-option strong{font-size:12px;display:block}.category-option small{font-size:10px;color:var(--muted)}.category-option.selected{border-color:var(--accent);background:#f5b9420d}.category-option.selected>.icon{color:var(--accent)}.category-tick{position:absolute;top:6px;left:6px;color:var(--accent)}.category-tick .icon{width:13px;height:13px}.modal-actions{display:grid;gap:10px}.toast{position:fixed;z-index:100;bottom:max(26px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:var(--ink);color:var(--ground);box-shadow:var(--shadow);padding:12px 20px;border-radius:16px;font-size:13px;width:max-content;max-width:90vw;text-align:center;transition:transform .2s,opacity .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.spinner{width:19px;height:19px;border-radius:50%;border:2px solid currentColor;border-left-color:transparent;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
body.light{color-scheme:light;--ground:#f1f2ee;--raised:#fcfcf8;--input:#f2f3ef;--ink:#24282d;--muted:#626b76;--rule:#d4d8d4;--accent:#edb035;--positive:#2b7358;--coral:#b94e3c;--shadow:0 2px 3px #1b251210,0 20px 40px -24px #1b251233}body.light .round-badge{color:#755214;border-color:#c68d35}body.light .segmented button.selected{color:#755214}body.light .category-select .icon,body.light .result-art>.icon,body.light .category-option.selected>.icon{color:#946000}body.light .brand img{filter:brightness(.5)}body.light .secret-card.hidden-card{--ink:#241c10;--muted:#6b521f}body.light .primary{color:#241c10}body.light .spy-reveal>.secret-mark{filter:brightness(.3)}body.light .category-toolbar button{color:#946000}body.light .round-badge{background:#edb03510}body.light .timer-progress{stroke:#bd7c0a}body.light .timer-controls{color:var(--ink)}
@media(min-width:1300px){.setup-layout{margin-top:50px;gap:110px}.intro{padding-top:30px}.spy-art{margin-top:46px}}
@media(max-width:850px){.setup-layout{gap:32px;grid-template-columns:1fr 1.1fr;padding:0 24px}.setup-panel{padding:24px}.intro h1{font-size:64px}.intro-copy{font-size:15px}.spy-art{transform:scale(.85);transform-origin:top center;margin-bottom:-25px}.topbar{padding-inline:28px}.players-list{grid-template-columns:1fr}.intro-meta{font-size:11px;gap:8px}.intro-meta span+span{padding-inline-start:8px}}
@media(max-width:620px){.topbar{height:82px;padding:16px 22px;padding-top:max(16px,env(safe-area-inset-top))}.brand{font-size:27px}.brand img{width:28px}.top-actions{gap:8px}.help-button{padding:0 11px;font-size:11px;gap:8px}.icon-button{width:40px;height:40px}.setup-layout{display:block;padding:0 20px;margin:10px auto 24px;max-width:480px}.intro{position:relative;padding:8px 0 20px;min-height:190px}.eyebrow{font-size:11px;margin-bottom:11px;gap:8px}.eyebrow:before{width:18px}.intro h1{font-size:58px;max-width:240px;line-height:1.05}.intro-copy{font-size:12px;max-width:235px;line-height:1.9;margin-top:12px}.intro-meta{font-size:10px;margin-top:15px}.spy-art{position:absolute;left:-28px;top:16px;width:175px;height:200px;transform:scale(.65);transform-origin:left top;margin:0;pointer-events:none}.art-card{left:50px;width:140px;height:190px}.art-card.back{transform:rotate(-16deg) translateX(-38px)}.art-card.middle{transform:rotate(15deg) translateX(30px)}.art-card.front img{width:82px}.art-note,.art-orbit{display:none}.intro h1 .accent{display:block}.setup-panel{border-radius:24px;padding:23px 20px}.panel-heading{margin-bottom:20px}.panel-heading h2{font-size:28px}.players-list{grid-template-columns:1fr 1fr}.player-field{padding-inline:6px;gap:3px}.player-field input{font-size:12px}.player-num{width:19px;font-size:11px}.remove-player{width:25px}.settings-divider{margin:22px 0}.settings-row{margin:16px 0}.setting-label{font-size:13px;gap:9px}.stepper button{width:39px}.segmented button{min-width:35px}.site-footer{padding:20px 24px calc(22px + env(safe-area-inset-bottom));font-size:10px;justify-content:center}.footer-right{display:none}.game-shell{padding:4px 22px 30px}.game-top{margin-bottom:12px}.game-title{margin:10px 0 22px}.game-title h1{font-size:44px}.game-title p{font-size:13px}.secret-card{padding:22px}.secret-card.hidden-card,.secret-card.spy-reveal{min-height:340px}.word-photo{height:180px}.secret-word{font-size:48px}.timer-wrap{width:275px;height:275px;margin-top:25px}.timer-text{font-size:70px}.voting-grid{gap:9px}.vote-player{padding:17px 10px;min-height:102px}.result-heading h1{font-size:48px}.result-art{width:120px;height:120px}.result-art>.icon{width:60px;height:60px}.result-word-card{margin-top:22px}.brand .brand-dot{display:inline}dialog{padding:22px}.category-option{padding:12px 9px;gap:8px}.category-option strong{font-size:11px}.category-option>.icon{width:20px}.category-option small{font-size:10px}}
@media(max-width:374px){.setup-layout{padding:0 14px}.setup-panel{padding:20px 16px}.intro h1{font-size:52px}.spy-art{left:-34px;transform:scale(.57)}.intro-copy{max-width:210px}.player-field input{font-size:11px}.player-num{width:15px}.segmented button{min-width:30px}.game-shell{padding-inline:17px}.timer-wrap{width:250px;height:250px}.help-button{font-size:10px}}
@media(max-width:620px){.intro h1{font-size:46px;max-width:260px}.intro{min-height:228px}.intro-copy{max-width:270px}.spy-art{top:12px;left:-25px;transform:scale(.57)}.intro-meta{margin-top:16px}.secret-card .photo-credit{font-size:11px}}
@media(max-width:374px){.intro h1{font-size:42px;max-width:235px}.intro-copy{max-width:235px}.spy-art{left:-30px;transform:scale(.5)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.spinner{border-left-color:currentColor}}
.avatar-svg{display:block;flex-shrink:0;overflow:visible}.player-avatar-button{position:relative;width:44px;height:48px;padding:0;display:grid;place-items:center;flex-shrink:0}.avatar-edit-dot{position:absolute;bottom:1px;left:0;background:var(--ink);color:var(--ground);border:2px solid var(--input);border-radius:50%;width:16px;height:16px;font:13px/12px -apple-system,sans-serif;display:grid;place-items:center}.player-identity{min-width:0;flex:1}.player-identity input{display:block;line-height:1.7}.player-age{font-size:9px;display:block;color:var(--muted);line-height:1.5;white-space:nowrap}.player-field{padding:5px 8px;min-height:64px;gap:7px}.turn-title{display:flex;align-items:center;gap:12px;text-align:right;justify-content:center}.turn-title h1{font-size:38px}.turn-title p{font-size:12px}.vote-player>.avatar-svg{margin:0 auto 10px}.spy-name{display:inline-flex;align-items:center;gap:7px;padding:4px 12px 4px 6px}.avatar-editor-preview{display:flex;justify-content:center;padding:0 0 4px}.avatar-age-description{text-align:center;color:var(--muted);font-size:13px;margin-bottom:18px}.avatar-form-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0;font-size:14px}.age-input-wrap{display:flex;align-items:center;gap:8px;direction:ltr;background:var(--input);border:1px solid var(--rule);border-radius:12px;padding:4px 12px}.age-input-wrap input{width:64px;height:40px;border:0;background:none;direction:ltr;text-align:center;font:22px -apple-system,sans-serif;appearance:textfield;-moz-appearance:textfield}.age-input-wrap input::-webkit-inner-spin-button,.age-input-wrap input::-webkit-outer-spin-button{appearance:none;margin:0}.age-input-wrap span{color:var(--muted);font-size:12px}.avatar-age-presets{display:flex;gap:8px;padding-bottom:18px;border-bottom:1px solid var(--rule)}.avatar-age-presets button{flex:1;min-height:44px;border:1px solid var(--rule);border-radius:12px;color:var(--muted);font-size:13px}.avatar-age-presets button.selected,.gender-options button.selected{background:#f5b94212;border-color:var(--accent);color:var(--ink)}.gender-options{display:flex;gap:8px}.gender-options button{min-width:85px;min-height:44px;border:1px solid var(--rule);border-radius:12px;font-size:13px;color:var(--muted)}.hair-label{display:flex;align-items:center;gap:10px;font-size:14px;margin-top:24px}.hair-label span{font-size:12px;color:var(--muted)}.hair-colors{display:flex;justify-content:space-between;gap:5px;margin:10px 0 26px}.hair-choice{height:46px;width:46px;border:2px solid transparent;border-radius:50%;display:grid;place-items:center;padding:4px}.hair-choice span{background:var(--hair);width:32px;height:32px;display:block;border:1px solid #ffffff35;border-radius:50%;box-shadow:inset 0 2px 0 #ffffff20}.hair-choice.selected{border-color:var(--accent)}.hair-choice.selected span:after{content:'✓';color:white;display:grid;place-items:center;height:100%;font:18px -apple-system,sans-serif;text-shadow:0 1px 3px #000}.player-field .player-identity input{font-size:13px}@media(max-width:620px){.player-field{gap:5px;padding:5px}.player-field .player-identity input{font-size:12px}.player-avatar-button{width:38px}.player-avatar-button .avatar-svg{width:38px;height:38px}.player-age{font-size:9px}.turn-title{gap:10px}.turn-title h1{font-size:34px}.turn-title>.avatar-svg{width:60px;height:60px}.turn-title p{font-size:11px}.hair-choice{width:43px;height:43px;padding:3px}.hair-choice span{width:31px;height:31px}}
.player-avatar-button{min-width:44px;width:44px;height:48px}.player-age{font-size:11px;overflow:hidden;text-overflow:ellipsis}.hair-choice{min-width:44px;min-height:44px;width:44px;height:44px}.avatar-form-row[hidden]{display:none}@media(max-width:620px){.player-avatar-button{width:44px;min-width:44px}.player-age{font-size:11px}.player-field{gap:4px}.player-field .remove-player{width:22px}.hair-colors{gap:3px}}
.avatar-edit-dot .icon{width:9px;height:9px;stroke-width:2}.photo-credit{font-size:11px;white-space:normal}
@media(max-width:620px){.intro{overflow:clip}}
.roster-intro{color:var(--muted);font-size:12px;margin:-3px 0 10px;line-height:1.9}.selection-count{font-size:12px;color:var(--accent);background:#f5b94212;border:1px solid #f5b94240;border-radius:20px;padding:3px 10px;white-space:nowrap}.roster-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:var(--muted);margin-bottom:8px}.roster-toolbar button{min-height:44px;padding:4px 10px;color:var(--ink);font-size:12px;text-decoration:underline;text-underline-offset:4px}.saved-players{gap:9px}.saved-player{min-width:0;display:flex;align-items:center;min-height:78px;background:var(--input);border:1px solid var(--rule);border-radius:16px;transition:border-color .15s,background .15s;overflow:hidden}.saved-player.is-selected{border-color:var(--accent);background:#f5b9420b}.select-player{min-width:0;flex:1;display:flex;align-items:center;gap:8px;text-align:right;align-self:stretch;padding:10px 8px 10px 0}.roster-avatar{position:relative;flex-shrink:0;display:block;width:46px;height:46px}.selection-dot{width:18px;height:18px;position:absolute;left:-1px;bottom:-1px;border:2px solid var(--rule);border-radius:50%;background:var(--input);display:grid;place-items:center}.selection-dot>.icon{width:11px;height:11px;stroke-width:3}.is-selected .selection-dot{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.saved-player-name{display:block;min-width:0;flex:1}.saved-player-name strong{font-size:13px;font-weight:700;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.7}.saved-player-name small{font-size:11px;color:var(--muted);display:block;white-space:nowrap}.edit-player{width:44px;min-width:44px;min-height:60px;align-self:stretch;display:grid;place-items:center;padding:0;color:var(--muted)}.edit-player .icon{width:16px;height:16px}.saved-add{min-height:78px;font-size:12px;border-radius:16px}.saved-note{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;color:var(--muted);margin-top:15px}.saved-note .icon{width:13px;height:13px}.profile-name-row{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.profile-name-row label{font-size:13px;color:var(--muted)}.profile-name-row input{border:1px solid var(--rule);background:var(--input);border-radius:12px;min-height:48px;padding:8px 13px;font-size:16px}.delete-profile{width:100%;min-height:44px;margin-top:14px;color:var(--coral);font-size:12px}.light .selection-count{color:#80530f}.light .saved-player.is-selected{background:#edb03512}@media(max-width:620px){.saved-players{grid-template-columns:1fr 1fr;gap:8px}.saved-player{min-height:82px;border-radius:14px;flex-wrap:wrap;position:relative}.select-player{width:100%;flex-direction:column;gap:5px;padding:12px 8px 10px;text-align:center;align-items:center}.saved-player-name strong{font-size:14px}.saved-player-name small{font-size:11px}.roster-avatar{width:52px;height:52px}.roster-avatar .avatar-svg{width:52px;height:52px}.edit-player{position:absolute;top:0;left:0;min-height:44px;height:44px;width:44px;min-width:44px;align-self:auto}.edit-player .icon{width:14px;height:14px}.saved-player{min-height:130px}.saved-add{min-height:130px;flex-direction:column;gap:10px}.saved-add .icon{width:22px;height:22px}.saved-player-name{max-width:100%}.roster-toolbar{font-size:11px}.roster-intro{font-size:12px}}
