/* FAVLA! UI refresh / v2 design experiment. Existing game logic is unchanged. */
@font-face{font-family:"Chirp";src:url("./Chirp-Regular.80fda27a.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Chirp";src:url("./Chirp-Medium.f8e2739a.ttf") format("truetype");font-style:normal;font-weight:500 650;font-display:swap}
@font-face{font-family:"Chirp";src:url("./Chirp-Bold.ebb56aba.ttf") format("truetype");font-style:normal;font-weight:700 900;font-display:swap}
:root{--bg:#050608;--surface:#0b0d11;--panel:#0c0e12;--edge:#252a31;--edge2:#303741;--text:#f1f3f5;--muted:#929ca8;--sub:#65717c;--blue:#229cf0;--green:#27d0a0;--red:#eb6982}
html,body{background:#050608;font-family:"Chirp",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-weight:400}
body{background:#050608!important}
.app{max-width:none;background:#050608;border:0}
.topbar{height:calc(55px + env(safe-area-inset-top,0px));grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:env(safe-area-inset-top,0px) 17px 0;border-bottom:1px solid #1c222a;background:rgba(5,6,8,.98);box-shadow:none}
.topbar .header-center{grid-column:2;justify-self:center}
.topbar .icon-btn{grid-column:1;grid-row:1;justify-self:start;width:34px;height:34px}
.topbar .icon-btn svg{height:21px;width:21px}
.topbar .room-pill{grid-column:3;grid-row:1;justify-self:end}
.brand-line{gap:0}.brand{font-size:23px;letter-spacing:-.85px;font-weight:800;text-align:center}.brand-bang{color:#43b0ff}
.xlogo{display:none}
.room-pill{padding:6px 9px;border-radius:999px;font-size:10px;letter-spacing:0;background:#0c1015}
.game-content{max-width:490px;padding:14px 14px 21px}
.bottom-nav{height:calc(54px + env(safe-area-inset-bottom,0px));background:#06080b;border-top:1px solid #1d242b}
.nav-btn{gap:2px}.nav-btn svg{width:19px;height:19px}.nav-btn span{font-size:10px;font-weight:500}.nav-btn.active:before{width:42px}
.nav-heading,.nav-spacer,.rail-note,.desktop-context{display:none}
/* Smaller, flatter interface elements, while preserving existing tweet anatomy. */
.welcome{padding-top:3px}.welcome-top{padding:21px 19px 18px;border-radius:16px;background:radial-gradient(circle at 90% 0%,rgba(24,119,196,.16),transparent 54%),#0b1015;border-color:#212b34}
.welcome-top h1{font-size:clamp(34px,8.7vw,43px);letter-spacing:-1.85px;line-height:1.05;margin:13px 0 10px}
.welcome-top p{font-size:12px;line-height:1.55;max-width:330px;color:#99a4b0}.hero-label{font-size:9px;letter-spacing:1.25px}
.hero-steps{margin-top:16px;padding-top:12px;font-size:11px}
.profile-form{margin-top:18px}.form-title{font-size:15px;font-weight:750;margin-bottom:7px}.profile-title-tag{font-size:9px}
.emoji-label{margin:10px 0 7px}.emoji-list{gap:7px;padding-bottom:3px}.emoji-choice{width:39px;height:39px;font-size:22px;border-radius:10px}
.form-pair .label{margin:10px 0 6px}.label{font-size:11px;font-weight:650}
.form-pair{gap:9px}.form-pair .input{min-height:41px;font-size:12px}
.input,.textarea,.select{min-height:40px;border-radius:9px;padding:9px 11px;font-size:12px;background:#0d1217}
.primary,.secondary{min-height:40px;padding:9px 13px;border-radius:10px;font-size:12px;font-weight:700;box-shadow:none}
.welcome-actions{margin-top:15px;gap:9px}.welcome-actions .primary,.welcome-actions .secondary{min-height:44px;border-radius:10px;font-size:12px}
.action-icon{font-size:18px}.rules-note{font-size:9px;margin-top:13px}
.settings-box,.info-card,.panel{border-radius:12px;padding:13px}.setting-line{padding:9px 0}.setting-line b{font-size:11px}.setting-line p{font-size:10px}
.section-title{font-size:15px}.phase-title{font-size:21px;letter-spacing:-.55px;margin:11px 0 5px}.phase-sub{font-size:11.5px;margin-bottom:12px}
.phase-tag{padding:5px 9px;font-size:10px;letter-spacing:.35px;background:#0b1c2b;border-color:#264156}
.timer-large{font-size:23px}.tiny-button{font-size:10px;padding:6px 8px;border-radius:8px}
.room-top{margin-bottom:11px}.room-top h2{font-size:20px}.room-top p{font-size:11px}
.lobby-code{border-radius:13px;padding:18px 12px 15px}.lobby-code .code{font-size:34px;letter-spacing:5px;margin:5px 0}.lobby-code .copy{font-size:11px;padding:7px 11px;border-radius:8px}
.player-chip{padding:8px;border-radius:9px}.player-emoji{width:33px;height:33px;font-size:19px}.player-chip b{font-size:11px}.player-chip small{font-size:10px}.minipill{border-radius:8px;padding:5px 8px}
.deck-shell{margin:3px 6px 9px}.deck-shell:before,.deck-shell:after{border-radius:17px;top:4px;height:99%}
.tweet{border-radius:17px;padding:11px 11px 9px;border-color:#2c343e;background:#090b0e;box-shadow:0 13px 35px #0009}
.tweet-head{grid-template-columns:38px minmax(0,1fr) 16px;gap:9px}.avatar{width:38px;height:38px;font-size:21px}.author{padding-top:1px}
.display{font-size:14px;font-weight:700}.handle{font-size:12px}.post-text{font-size:14px;line-height:1.44;margin:4px 0 8px}.more{font-size:17px}
.tweet-body,.saved-tweet .tweet-body,.result-tweet .tweet-body{margin-left:47px}
.video-stage{border-radius:12px}
.engagement{margin-top:9px;font-size:clamp(10px,2.85vw,12px);gap:3px}.metric{gap:3px}.metric svg{width:clamp(13px,3.7vw,16px);height:clamp(13px,3.7vw,16px)}
.attribution{font-size:9px;padding:3px 5px;border-radius:5px}.sound-btn{width:24px;height:24px}.sound-btn svg{width:13px;height:13px}
.tweet-compose .tweet-head{grid-template-columns:38px minmax(0,1fr) auto}.compose-caption{font-size:14px;line-height:1.45;margin:3px 0 7px;min-height:21px;height:21px}
.compose-heading{margin-top:8px}.compose-explainer{margin-bottom:13px}.edit-swap-pill{height:27px;min-width:49px;border-radius:8px;font-size:11px}.edit-swap-pill svg{height:15px;width:15px;flex-basis:15px}
.compose-fixed{min-height:57px;padding:7px 16px}.compose-submit{min-height:39px;flex-basis:170px}.compose-counter{font-size:11px}
.vote-fixed{padding:8px 12px 4px;border-top-color:#20262f}.vote-meta{font-size:10px;margin-bottom:7px}.vote-meta span:nth-child(2){font-size:14px}
.voting-row{justify-content:space-evenly;gap:8px}.vote-btn{width:58px;height:58px;flex:0 1 58px;aspect-ratio:1;max-width:none;border-radius:50%}.vote-btn .vote-emoji{font-size:23px}.vote-btn.fav .vote-emoji{font-size:23px}.vote-btn small{font-size:9px}.vote-hint{font-size:10px;margin:6px 0 4px}
.scoreboard{gap:6px}.score-row{padding:8px 10px;border-radius:9px}.score-points{font-size:16px}.score-name b{font-size:12px}.rank{width:21px}.results-header{margin-top:19px}.results-feed{gap:12px}.result-tweet{padding:11px}
.saved-page{max-width:490px;margin:0 auto;padding:18px 14px 28px}.page h1{font-size:25px;letter-spacing:-1px}.page p.muted{font-size:11.5px}.saved-list{gap:13px}
.small-hint{font-size:10px;padding:8px 8px 6px}.heat-status{font-size:9px}.result-post-score{font-size:10px}
@media(max-width:359px){.game-content{padding-inline:10px}.tweet{padding-inline:9px}.tweet-head{grid-template-columns:34px minmax(0,1fr) 14px;gap:7px}.tweet-compose .tweet-head{grid-template-columns:34px minmax(0,1fr) auto}.avatar{width:34px;height:34px;font-size:19px}.tweet-body,.saved-tweet .tweet-body,.result-tweet .tweet-body{margin-left:41px}.display,.post-text,.compose-caption{font-size:14px}.handle{font-size:11px}.vote-btn{width:52px;height:52px;flex-basis:52px}}
/* Desktop: use display width for navigation, context, and game structure — never stretch tweet cards. */
@media(min-width:800px){
 .app{display:grid;grid-template-columns:190px minmax(0,1fr) 230px;grid-template-rows:62px minmax(0,1fr);height:100dvh;max-width:100%;background:#06080b}
 .topbar{height:62px;grid-column:1/-1;grid-row:1;padding:0 28px;background:#07090c}
 .brand{font-size:25px}.topbar .icon-btn{visibility:hidden}
 .bottom-nav{grid-column:1;grid-row:2;height:100%;min-height:0;border-top:0;border-right:1px solid #1d252e;padding:26px 12px 15px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px;background:#090c10}
 .nav-heading{display:block;padding:0 14px 13px;color:#66788a;font-size:10px;font-weight:800;letter-spacing:1.4px}
 .nav-btn{height:44px;min-height:44px;max-width:none;width:100%;padding:0 14px;justify-content:flex-start;flex-direction:row;gap:12px;border-radius:10px;color:#93a1b0}
 .nav-btn svg{width:19px;height:19px}.nav-btn span{font-size:12px;font-weight:600}
 .nav-btn.active{color:#f5f7fa;background:#162435}.nav-btn.active:before{width:3px;height:23px;top:50%;left:1px;transform:translateY(-50%)}
 .nav-spacer{display:block;flex:1}
 .rail-note{display:block;padding:13px;border:1px solid #26313c;border-radius:12px;background:#0d141b;color:#8fa0ae;font-size:11px;line-height:1.6}
 .rail-note strong{display:block;color:#d4e1e9;font-size:12px;margin-bottom:5px}
 .screen{grid-column:2;grid-row:2;border:0;min-width:0}
 .screen .page-scroll{scrollbar-width:thin;scrollbar-color:#253542 transparent}
 .game-content{max-width:490px;margin:0 auto;padding:26px 17px 36px;min-height:100%}
 .desktop-context{grid-column:3;grid-row:2;display:block;overflow:auto;border-left:1px solid #20272f;background:#090b0f;padding:29px 19px 24px}
 .desktop-context .aside-kicker{font-size:10px;letter-spacing:1.4px;color:#66839c;font-weight:800;margin-bottom:11px}
 .desktop-context .aside-card{border:1px solid #242d36;background:#0e131a;border-radius:13px;padding:15px;margin-bottom:14px}
 .desktop-context .aside-title{font-weight:750;font-size:14px;color:#e2eaf2;margin-bottom:7px}
 .desktop-context .aside-sub{font-size:11px;color:#8594a4;line-height:1.6}
 .desktop-context .side-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #222c35;color:#8fa0b0;font-size:11px;gap:10px}
 .desktop-context .side-row:last-child{border-bottom:0;padding-bottom:0}.desktop-context .side-row b{color:#e0e8f1;font-weight:700}
 .desktop-context .score-rules{margin-top:10px;display:grid;gap:7px}
 .desktop-context .score-rules span{display:flex;justify-content:space-between;padding:7px 9px;border:1px solid #26313c;border-radius:8px;font-size:11px;color:#9dabb8}
 .desktop-context .score-rules b{color:#e0e8f1}
 .desktop-context .right-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#36c98a;margin-right:7px}
 .desktop-context .aside-footer{font-size:10px;color:#556372;line-height:1.6;padding:4px}
 .vote-fixed,.compose-fixed{padding-left:max(22px,calc((100% - 460px)/2));padding-right:max(22px,calc((100% - 460px)/2));background:#090b0f;border-top:1px solid #222b34}
 .vote-fixed{padding-bottom:13px;padding-top:14px}.voting-row{justify-content:space-between;gap:16px}
 .vote-btn{height:60px;width:60px;flex:0 1 60px}
 .compose-fixed{min-height:69px}
 .app[data-phase="welcome"] #screen-game,.app[data-phase="lobby"] #screen-game,.app[data-phase="round_results"] #screen-game,.app[data-phase="finished"] #screen-game{grid-column:2/-1}
 .app[data-phase="welcome"] .desktop-context,.app[data-phase="lobby"] .desktop-context,.app[data-phase="round_results"] .desktop-context,.app[data-phase="finished"] .desktop-context{display:none}
 .app[data-phase="welcome"] .game-content{max-width:1100px;padding:38px 35px}
 .app[data-phase="welcome"] .welcome{display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(330px,.95fr);align-items:start;gap:44px;padding:0}
 .app[data-phase="welcome"] .welcome-top{min-height:365px;padding:34px 31px;background:radial-gradient(circle at 88% 12%,#17416a52,transparent 52%),#0d131b}
 .app[data-phase="welcome"] .welcome-top h1{font-size:clamp(44px,5vw,68px);letter-spacing:-3px;line-height:1.03;margin-top:30px}
 .app[data-phase="welcome"] .welcome-top p{max-width:400px;font-size:14px;line-height:1.6}
 .app[data-phase="welcome"] .hero-steps{margin-top:42px}
 .app[data-phase="welcome"] .profile-form{margin-top:0;background:#0c1016;border:1px solid #27313c;border-radius:16px;padding:22px 25px 21px}
 .app[data-phase="welcome"] .form-title{font-size:17px}.app[data-phase="welcome"] .emoji-list{flex-wrap:wrap;max-height:94px;overflow-y:auto}
 .app[data-phase="welcome"] .rules-note{text-align:left}
 .app[data-phase="lobby"] .game-content{max-width:1060px;padding:37px 32px}
 .lobby-layout{display:grid;grid-template-columns:minmax(270px,.95fr) minmax(340px,1.05fr);gap:26px}
 .lobby-maincol,.lobby-options{min-width:0}.lobby-maincol .room-top{margin-bottom:24px}.lobby-options .settings-box{margin-top:0}
 .lobby-maincol .players-grid{margin-top:15px}.lobby-options .lobby-footer{padding-top:19px}
 .app[data-phase="round_results"] .game-content,.app[data-phase="finished"] .game-content{max-width:990px;padding:30px 30px 45px;display:grid;grid-template-columns:minmax(260px,330px) minmax(380px,510px);column-gap:30px;align-items:start}
 .app[data-phase="round_results"] .game-content>.room-top,.app[data-phase="finished"] .game-content>.room-top{grid-column:1/-1;margin:0 0 10px}
 .app[data-phase="round_results"] .game-content>.phase-title,.app[data-phase="finished"] .game-content>.phase-title{grid-column:1;grid-row:2}
 .app[data-phase="round_results"] .game-content>.phase-sub,.app[data-phase="finished"] .game-content>.phase-sub{grid-column:1;grid-row:3;margin-bottom:15px}
 .app[data-phase="round_results"] .game-content>.scoreboard,.app[data-phase="finished"] .game-content>.scoreboard{grid-column:1;grid-row:4;margin-top:0;position:sticky;top:18px}
 .app[data-phase="round_results"] .game-content>.results-header,.app[data-phase="finished"] .game-content>.results-header{grid-column:2;grid-row:2 / 4;margin:8px 0 16px}
 .app[data-phase="round_results"] .game-content>.results-feed,.app[data-phase="finished"] .game-content>.results-feed{grid-column:2;grid-row:4/7}
 .app[data-phase="round_results"] .game-content>#startRound,.app[data-phase="finished"] .game-content>#startRound{grid-column:1;grid-row:5;align-self:start;margin-top:20px}
 .app[data-phase="round_results"] .game-content>.waiting-state,.app[data-phase="finished"] .game-content>.waiting-state{grid-column:1;grid-row:5}
 .app[data-view="saved"] #screen-saved{grid-column:2/-1}
 .app[data-view="saved"] .desktop-context{display:none}
 .app[data-view="saved"] .saved-page{max-width:1000px;margin:0 auto;padding:43px 34px;display:grid;grid-template-columns:minmax(220px,290px) minmax(380px,500px);grid-template-rows:auto auto 1fr;align-items:start;column-gap:55px}
 .app[data-view="saved"] .saved-page .eyebrow{grid-column:1;grid-row:1}
 .app[data-view="saved"] .saved-page h1{grid-column:1;grid-row:2;font-size:32px;line-height:1.12}
 .app[data-view="saved"] .saved-page p.muted{grid-column:1;grid-row:3;margin-top:8px}
 .app[data-view="saved"] .saved-list{grid-column:2;grid-row:1/5;max-width:500px;width:100%}
 .game-content[data-stage="writing"]{max-width:485px}
 .game-content[data-stage="voting"]{max-width:485px}
}
@media(min-width:800px) and (max-width:1140px){
 .app{grid-template-columns:76px minmax(0,1fr) 210px}.nav-heading,.rail-note,.nav-btn span{display:none}
 .bottom-nav{padding:25px 10px}.nav-btn{justify-content:center;padding:0}.nav-btn svg{width:22px;height:22px}.nav-btn.active:before{display:none}
 .app[data-phase="welcome"] .welcome{gap:20px}.app[data-phase="welcome"] .game-content{padding-inline:20px}.app[data-phase="welcome"] .profile-form{padding:17px}
 .app[data-phase="lobby"] .game-content{padding:25px 20px}.lobby-layout{gap:15px}
}
@media(min-width:800px) and (max-width:980px){
 .app{grid-template-columns:70px minmax(0,1fr)}.desktop-context{display:none}
 .app[data-phase="welcome"] .welcome{grid-template-columns:1fr}.app[data-phase="welcome"] .welcome-top{min-height:auto}
 .app[data-phase="lobby"] .lobby-layout{grid-template-columns:1fr}
 .app[data-phase="round_results"] .game-content,.app[data-phase="finished"] .game-content{display:block;max-width:520px}
 .app[data-view="saved"] .saved-page{display:block;max-width:520px;padding-top:25px}
 .app[data-view="saved"] .saved-list{max-width:none}
}
@media(prefers-reduced-motion:reduce){.tweet,.vote-btn,.primary,.secondary{transition:none}}
