:root{--bg:#000;--surface:#080a0e;--panel:#0e1116;--edge:#252b34;--edge2:#323843;--text:#f7f9fa;--muted:#858f9b;--sub:#5d6877;--blue:#1d9bf0;--green:#25d9a3;--red:#fa5271}
*{box-sizing:border-box}html{background:#000}body{background:#000;color:var(--text);margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button{-webkit-tap-highlight-color:transparent}
@media(min-width:640px){body{background:radial-gradient(circle at 50% 40%,#171b22 0%,#08090c 40%,#000 80%)}}
.app{position:relative;display:flex;flex-direction:column;width:100%;max-width:480px;height:100vh;height:100dvh;min-height:0;overflow:hidden;margin:0 auto;background:linear-gradient(140deg,#030405,#000 55%);border-inline:1px solid #10151c}
@media(min-width:650px){.app{box-shadow:0 0 95px #000}}
.topbar{height:calc(65px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 14px 0;display:grid;grid-template-columns:45px 1fr 100px;align-items:center;flex:0 0 auto;background:#000;z-index:5}
.header-center{text-align:center;min-width:0}.brand-line{display:flex;align-items:center;justify-content:center;gap:8px}.xlogo{font-size:27px;line-height:1}.brand{font-size:27px;line-height:1;letter-spacing:-1.2px;font-weight:850}.header-sub{font-size:11px;color:#7e8a9a;margin-top:7px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.icon-btn{background:none;border:0;color:#e3e6eb;display:grid;place-items:center;height:39px;width:39px;padding:6px}.icon-btn svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round}
.room-pill{justify-self:end;max-width:100%;font-size:9px;font-weight:750;letter-spacing:.4px;display:flex;align-items:center;gap:5px;border-radius:20px;border:1px solid var(--edge);background:#0c0f13;padding:8px 9px;color:#aab4c0}.room-pill span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.online-dot{background:#78818d;width:7px;height:7px;border-radius:50%;flex:none;box-shadow:0 0 0 2px #13161b}.online-dot.connected{background:#23cc83;box-shadow:0 0 9px #23cc8344}
.screen{flex:1 1 0;min-height:0;display:none;flex-direction:column;overflow:hidden}.screen.active{display:flex}.page-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}.page-scroll::-webkit-scrollbar{display:none}.game-content{max-width:460px;margin:0 auto;min-height:100%;padding:16px 15px 20px}
.page{padding:21px 20px 32px}.page h1{font-weight:820;font-size:29px;letter-spacing:-1.3px;margin:4px 0 9px}.page p.muted{margin:0 0 23px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--blue);font-weight:800}.blue{color:var(--blue)}.muted{color:#99a3b0;line-height:1.6;font-size:13px}.micro{font-size:11px;line-height:1.65;color:#75808d}.label{display:block;color:#dbe2ed;font-size:12px;font-weight:750;margin:19px 0 8px}.input,.textarea,.select{width:100%;background:#0d1116;color:#f4f8fc;border:1px solid #2e3540;border-radius:13px;outline:none;min-height:46px;padding:12px 14px;font-size:14px}.input:focus,.textarea:focus,.select:focus{border-color:#247bc0}.textarea{resize:vertical;min-height:122px;line-height:1.5}.select{appearance:none}.select option{background:#11161d}.primary,.secondary{border-radius:13px;border:1px solid transparent;padding:13px 14px;min-height:46px;font-size:13px;font-weight:780;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,transform .15s}.primary{background:#1d9bf0;color:white;box-shadow:0 5px 20px #1d9bf01c}.primary:hover{background:#2ca8fa}.primary:active,.secondary:active{transform:scale(.985)}.secondary{background:#11161c;color:#d7e1eb;border-color:#2b333e}.secondary:hover{background:#1a2028}.secondary.danger{color:#ff91a3}.wide{width:100%;margin-top:14px}.two-actions{display:flex;gap:8px;margin-top:12px}.two-actions>*{flex:1;min-width:0}.input-file{cursor:pointer}.divider{height:1px;background:#242a32;margin:26px 0}.section-title{font-size:17px;letter-spacing:-.35px;margin:4px 0 12px}.count-pill{background:#182232;color:#7dc8ff;padding:3px 8px;border-radius:20px;font-size:12px;margin-left:5px}
.info-card,.panel{background:linear-gradient(150deg,#101318,#07090c);border:1px solid #2a3039;border-radius:19px;padding:16px;margin-top:16px}.file-top{display:flex;gap:11px;align-items:center}.file-top b{display:block;font-size:14px}.file-top p{font-size:11px;color:#838e9b;margin:4px 0}.file-top strong{margin-left:auto;font-size:22px;color:var(--blue)}.file-icon{display:grid;place-items:center;font-size:23px;width:39px;height:39px;border:1px solid #27465c;border-radius:12px;color:var(--blue)}.health-row{display:flex;align-items:center;gap:9px;font-weight:750;font-size:13px}
.video-list{display:grid;gap:8px}.video-line{padding:10px 12px;display:flex;align-items:center;gap:9px;background:#0a0d12;border:1px solid #242b34;border-radius:11px;min-width:0}.video-line .index{color:#708496;min-width:19px;font-size:11px}.video-line a{min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;color:#a5bcce;text-decoration:none}.video-line .source{margin-left:auto;color:#687687;font-size:10px}.empty-state{text-align:center;border:1px dashed #303844;border-radius:17px;padding:35px 19px;color:#8a98a8;font-size:13px;line-height:1.55}.empty-state .big{font-size:35px;display:block;margin-bottom:7px}
.bottom-nav{height:calc(67px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#010102;border-top:1px solid #242932;flex:0 0 auto;display:flex;align-items:center;justify-content:space-around;z-index:9}.nav-btn{background:transparent;color:#7e8a98;border:0;width:25%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;position:relative;padding:2px}.nav-btn svg{height:22px;width:22px;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;fill:none}.nav-btn span{font-size:10px}.nav-btn.active{color:#f3f7fb}.nav-btn.active:before{content:"";height:2px;background:var(--blue);border-radius:4px;position:absolute;top:0;width:34px}
/* Welcome */
.welcome{padding-top:13px}.welcome-top{border:1px solid #222934;border-radius:21px;background:radial-gradient(circle at 90% 0%,#14385b3b,transparent 48%),linear-gradient(130deg,#0d1219,#050608);padding:20px 18px 18px}.welcome-top h1{font-size:32px;letter-spacing:-1.5px;line-height:1.08;margin:3px 0 10px}.welcome-top p{color:#9dabb8;font-size:13px;line-height:1.55;margin:0}.accent{color:#4bb5ff}.profile-form{margin-top:22px}.form-title{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:810;margin-bottom:10px}.form-title:after{content:"";flex:1;height:1px;background:#252b35}.emoji-list{display:flex;flex-wrap:wrap;gap:7px}.emoji-choice{width:42px;height:42px;display:grid;place-items:center;border:1px solid #2b333f;background:#11161c;border-radius:12px;font-size:24px}.emoji-choice.chosen{border-color:#1d9bf0;background:#17344c;box-shadow:0 0 0 2px #0c1c2a}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-pair label{min-width:0}.welcome-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:24px}.callout{margin-top:16px;padding:11px 13px;border:1px solid #212a34;background:#090e15;border-radius:12px;font-size:11px;line-height:1.55;color:#8da0b2}.join-row{display:flex;gap:8px;margin-top:12px}.join-row input{flex:1;min-width:0;text-transform:uppercase;letter-spacing:3px;font-weight:850;text-align:center}.join-row button{flex:none}.settings-box{margin-top:17px;padding:13px;background:#090d12;border:1px solid #202934;border-radius:14px}.settings-box[hidden]{display:none}.settings-box .label{margin-top:11px}.setting-line{display:flex;gap:13px;align-items:center;justify-content:space-between;padding:10px 0;border-top:1px solid #232a34}.setting-line b{font-size:12px}.setting-line p{font-size:10px;color:#8f9aa8;line-height:1.5;margin:4px 0 0}.toggle{appearance:none;flex:none;height:23px;width:40px;border-radius:25px;background:#323d4c;position:relative;cursor:pointer;transition:background .2s}.toggle:before{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;border-radius:100%;background:white;transition:transform .2s}.toggle:checked{background:#1d9bf0}.toggle:checked:before{transform:translateX(17px)}
/* Lobby */
.lobby-code{text-align:center;background:linear-gradient(145deg,#0d1622,#090b0e);border:1px solid #2c3946;border-radius:20px;padding:22px 12px 19px}.lobby-code .hint{color:#91a2b0;font-size:11px;letter-spacing:1.8px;font-weight:750}.lobby-code .code{font-size:39px;font-weight:880;letter-spacing:7px;margin:8px 0;color:white}.lobby-code .copy{border:1px solid #34658a;background:#12273b;color:#88d0ff;padding:9px 12px;border-radius:10px;font-size:12px;font-weight:750}.players-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.player-chip{display:flex;align-items:center;gap:9px;padding:10px 8px;border:1px solid #28303a;background:#0b0e12;border-radius:12px;min-width:0}.player-emoji{width:38px;height:38px;border-radius:100%;background:#15212a;border:1px solid #253d50;display:grid;place-items:center;font-size:22px;flex:none}.player-chip b{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-chip small{display:block;margin-top:2px;font-size:10px;color:#8394a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-chip.offline{opacity:.53}.player-chip .host{color:#e0b84b}.lobby-footer{padding-top:16px;text-align:center}.lobby-footer .primary{width:100%}.pillrow{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.minipill{font-size:10px;color:#b2c1d0;border:1px solid #323b47;padding:7px 9px;background:#0d131a;border-radius:10px}.room-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.room-top h2{font-size:23px;margin:0;letter-spacing:-.8px}.room-top p{color:#8291a0;font-size:11px;margin:4px 0 0}.tiny-button{font-size:11px;padding:7px 9px;background:#111923;border:1px solid #303b48;color:#adcbe0;border-radius:9px}
/* Writing */
.phase-tag{display:inline-flex;align-items:center;gap:5px;border:1px solid #244b6f;background:#0b2439;border-radius:20px;padding:6px 9px;font-size:10px;color:#85ccff;font-weight:800;letter-spacing:.6px}.timer-large{font-weight:800;font-size:28px;font-variant-numeric:tabular-nums;letter-spacing:-1px}.phase-title{font-size:24px;letter-spacing:-.8px;margin:14px 0 6px}.phase-sub{font-size:12px;line-height:1.6;color:#8593a2;margin:0 0 15px}.write-panel{padding-bottom:18px}.writing-video{border-radius:15px;overflow:hidden;max-width:100%;background:#07090b;margin:10px auto 15px;position:relative}.write-panel .textarea{min-height:93px}.write-count{display:flex;justify-content:space-between;color:#8e99a7;font-size:11px;margin-top:6px}.waiting-state{border:1px solid #293645;background:#0c1119;border-radius:18px;text-align:center;padding:28px 14px;margin:20px 0}.waiting-state .giant{font-size:37px}.waiting-state strong{display:block;font-size:16px;margin:10px 0}.waiting-state p{color:#96a6b7;font-size:12px;line-height:1.6}
/* Tweet card, matching v0.9 */
.deck-shell{position:relative;perspective:1000px;margin:4px 8px 9px}.deck-shell:before,.deck-shell:after{content:"";position:absolute;border:1px solid #2b323c;border-radius:21px;background:#080a0d;height:96%;width:97%;top:8px;left:1%;z-index:0;transform:rotate(-2.2deg);opacity:.65;box-shadow:0 12px 18px #000a}.deck-shell:after{transform:rotate(2.1deg);opacity:.5}
.tweet{position:relative;z-index:2;border:1px solid #343a44;background:linear-gradient(145deg,#0b0d11,#050607);border-radius:23px;padding:13px 13px 11px;box-shadow:0 18px 42px #000f;overflow:hidden;transition:transform .38s,opacity .3s}.tweet.fly-out{transform:translateX(115%) rotate(12deg);opacity:0}
.tweet-head{display:grid;grid-template-columns:43px minmax(0,1fr) 19px;gap:9px;align-items:start}.avatar{display:grid;place-items:center;border-radius:100%;width:43px;height:43px;overflow:hidden;border:1px solid #2e3944;background:#1b2630;font-size:24px}.author{min-width:0;padding-top:2px}.identity{display:flex;align-items:baseline;gap:6px;min-width:0;white-space:nowrap}.display{font-size:15px;font-weight:720;max-width:52%;overflow:hidden;text-overflow:ellipsis}.handle{font-size:13px;color:#828d9b;overflow:hidden;text-overflow:ellipsis}.more{color:#72808e;font-size:20px;line-height:1}.post-text{font-size:15px;line-height:1.45;font-weight:400;letter-spacing:-.1px;margin:5px 0 10px;overflow-wrap:anywhere;color:#eef1f4}.tweet-body{margin-left:52px}.video-stage{position:relative;background:#000;border-radius:16px;overflow:hidden;width:100%;aspect-ratio:var(--ratio, 16 / 9);isolation:isolate}.video-el{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;background:#000}.attribution{position:absolute;bottom:8px;left:8px;display:flex;gap:5px;align-items:center;max-width:calc(100% - 46px);font-size:10px;color:#f4f6f9;background:#000d;padding:4px 6px;border-radius:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;z-index:2}.attribution .mark{font-size:10px;color:#4aaeff}.sound-btn{position:absolute;right:8px;bottom:8px;border:0;border-radius:50%;width:26px;height:26px;background:#000c;display:grid;place-items:center;color:white;z-index:4;font-size:14px}.video-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#aeb8c4;font-size:12px;text-align:center;padding:18px;background:#0b0d10}.video-loading[hidden]{display:none}.video-loading a{color:#5dbdff}
.engagement{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:3px;color:#858f9b;font-size:clamp(10px,2.6vw,12px);width:100%;font-variant-numeric:tabular-nums}.metric{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;min-width:0}.metric svg{stroke:currentColor;stroke-width:1.8;width:clamp(13px,3.8vw,17px);height:clamp(13px,3.8vw,17px);fill:none;flex:none}.metric button{color:inherit;border:0;background:none;padding:0;display:flex;align-items:center;gap:3px}.metric button.pressed{color:#ff6988}.metric button.pressed svg{fill:currentColor}.metric button.saved{color:#3caeff}.metric button.saved svg{fill:currentColor}.metric b{font-weight:430}.small-hint{color:#8695a4;text-align:center;font-size:11px;padding:7px 10px 10px;line-height:1.5}
.vote-fixed{flex:0 0 auto;border-top:1px solid #13181e;padding:8px 13px 4px;background:#000;z-index:5}.vote-fixed[hidden]{display:none}.vote-meta{display:flex;align-items:center;justify-content:space-between;color:#8793a2;font-size:11px;margin-bottom:6px}.vote-meta span:nth-child(2){color:#f3f6fa;font-variant-numeric:tabular-nums;font-weight:760;font-size:15px}.voting-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.vote-btn{min-width:0;flex:1;border:1px solid #343b45;border-radius:50%;aspect-ratio:1;max-width:71px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;background:#0a0c10;color:#fff;transition:background .15s,border-color .15s,transform .15s}.vote-btn:active{transform:scale(.94)}.vote-btn .vote-emoji{font-size:clamp(23px,6vw,31px);line-height:1.2}.vote-btn small{font-size:10px;font-weight:800}.vote-btn.dislike{color:#ff778d}.vote-btn.meh{color:#f4c86e}.vote-btn.like{color:#3af0b0}.vote-btn.fav{border-color:#7b6231;background:#231a08;color:#ffd16b}.vote-btn.fav .vote-emoji{font-size:30px}.vote-btn.selected{background:#182b3e;border-color:#239ffc;box-shadow:0 0 0 2px #124b793b}.vote-btn.fav.selected{background:#4b310d;border-color:#f6c659}.vote-hint{text-align:center;color:#7e8996;font-size:10px;margin:6px 0 4px;min-height:14px}
/* Scores & bookmarks */
.scoreboard{margin-top:14px;display:grid;gap:8px}.score-row{display:flex;align-items:center;gap:9px;border:1px solid #28323c;border-radius:13px;background:#0c1015;padding:11px}.rank{width:26px;text-align:center;color:#e5bb52;font-weight:850}.score-name{min-width:0;flex:1}.score-name b{font-size:13px}.score-name small{display:block;color:#778999;font-size:11px;margin-top:4px}.score-points{color:#f5f7f8;font-size:18px;font-weight:840}.result-post{display:flex;justify-content:space-between;gap:9px;margin-top:9px;padding:11px 12px;background:#090e13;border-radius:10px;border:1px solid #222a34}.result-post .text{font-size:12px;color:#b9c6d4}.result-post b{color:#8dd3ff;font-size:12px;white-space:nowrap}.result-post a{color:#73899d;text-decoration:none;display:block;margin-top:5px;font-size:10px}
.saved-list{display:grid;gap:11px}.saved-item{border:1px solid #28313c;background:#0d1116;border-radius:15px;padding:13px}.saved-item-head{font-size:12px;font-weight:780;display:flex;justify-content:space-between;gap:8px}.saved-item p{font-size:14px;line-height:1.5;margin:10px 0}.saved-item-actions{display:flex;gap:10px}.saved-item a,.saved-item button{font-size:12px;color:#6cbaf0;background:transparent;border:0;padding:0;text-decoration:none}.saved-item button{color:#fc8c9e}
.toast{position:fixed;left:50%;bottom:89px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;background:#1b2530;color:#fff;border:1px solid #40546a;box-shadow:0 9px 35px #000a;border-radius:12px;padding:12px 17px;max-width:min(94vw,380px);font-size:12px;text-align:center;z-index:100}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:360px){.game-content{padding:12px 9px 14px}.deck-shell{margin-inline:4px}.tweet{padding:10px 9px}.tweet-body{margin-left:47px}.tweet-head{grid-template-columns:39px minmax(0,1fr) 16px;gap:8px}.avatar{width:39px;height:39px}.display,.post-text{font-size:14px}.handle{font-size:11px}.vote-btn{max-width:62px}.voting-row{gap:4px}.engagement{font-size:9px}}
@media(max-height:720px){.topbar{height:calc(56px + env(safe-area-inset-top,0px))}.bottom-nav{height:calc(58px + env(safe-area-inset-bottom,0px))}.vote-btn{max-width:57px}.vote-btn .vote-emoji{font-size:23px}.vote-fixed{padding-top:4px}.game-content{padding-top:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* FAVLA! public interface — player-first layout */
.topbar{grid-template-columns:45px 1fr 90px;height:calc(62px + env(safe-area-inset-top,0px));border-bottom:1px solid #141a20;padding-inline:16px}
.header-center{align-self:center}.brand-line{gap:7px}.brand{font-size:25px;font-weight:880;letter-spacing:-1.35px}.xlogo{font-size:25px}
.room-pill[hidden]{display:none}.room-pill{font-size:10px;justify-self:end;padding:8px 10px}
.app{background:#000}
.game-content{padding-top:19px}
.bottom-nav{justify-content:center;gap:0;height:calc(62px + env(safe-area-inset-bottom,0px));background:#040507}
.nav-btn{width:50%;max-width:225px;gap:4px}.nav-btn.active:before{width:54px;background:#1d9bf0}
.welcome{padding-top:7px;padding-bottom:20px}
.welcome-top{position:relative;overflow:hidden;padding:24px 21px 19px;border-radius:23px;border:1px solid #29313b;background:radial-gradient(ellipse at 97% 5%,rgba(32,141,226,.18),transparent 43%),linear-gradient(165deg,#10141a 0%,#06080b 70%)}
.hero-label{position:relative;display:flex;align-items:center;gap:9px;color:#94cdfa;font-size:9px;font-weight:850;letter-spacing:1.5px}
.hero-pulse{width:7px;height:7px;background:#58c9ff;border-radius:100%;box-shadow:0 0 0 4px rgba(47,136,201,.15)}
.welcome-top h1{position:relative;font-size:clamp(31px,8vw,42px);letter-spacing:-1.8px;line-height:1.05;margin:19px 0 12px;font-weight:850}
.welcome-top p{position:relative;max-width:310px;font-size:12.5px;line-height:1.65;color:#a1abb7;margin:0}
.accent{color:#4daeff}
.hero-steps{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:23px;padding-top:15px;border-top:1px solid #252e36;font-size:11px;color:#d1dce8}
.hero-steps span{white-space:nowrap}.hero-steps b{font-size:9px;color:#6e8da8;margin-right:3px}.hero-steps i{font-size:12px;font-weight:400;font-style:normal;color:#556373}
.profile-form{margin-top:23px}.form-title{font-size:17px;font-weight:800;display:flex;align-items:baseline;gap:9px;justify-content:space-between}.form-title:after{display:none}
.profile-title-tag{font-size:9px;font-weight:750;letter-spacing:.8px;color:#6d7d8c;white-space:nowrap}
.emoji-label{margin:13px 0 9px}.emoji-list{display:flex;flex-wrap:nowrap;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 2px 6px}
.emoji-list::-webkit-scrollbar{display:none}.emoji-choice{flex:none;width:47px;height:47px;border-radius:13px;background:#11151b;font-size:25px}
.emoji-choice.chosen{background:#14344d;border-color:#258edd;box-shadow:0 0 0 1px #258edd66}
.form-pair{gap:12px}.form-pair .label{margin:13px 0 7px}.form-pair .input{font-size:13px;min-height:48px}
.welcome-actions{margin-top:19px;gap:10px}.welcome-actions .primary,.welcome-actions .secondary{min-height:53px;font-size:14px;border-radius:15px}
.action-icon{font-size:21px;line-height:1;font-weight:400}
.settings-box{margin-top:15px;border-radius:16px;background:#0b0e12;padding:16px;border:1px solid #272f38;animation:settingsAppear .22s ease-out}
@keyframes settingsAppear{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
.rules-note{margin:19px 0 4px;color:#7f8b98;text-align:center;font-size:10.5px;letter-spacing:.07px;line-height:1.7}
.rules-note>span:first-child{color:#369de6;margin-right:4px}.rules-note .sep{color:#44515b;margin:0 3px}
.saved-page h1{margin-bottom:8px}.saved-page p.muted{margin-bottom:22px}
@media(max-width:360px){.topbar{grid-template-columns:38px 1fr 80px;padding-inline:9px}.brand{font-size:23px}.welcome-top{padding:21px 16px 17px}.welcome-top h1{font-size:31px}.profile-title-tag{font-size:8px}.hero-steps{gap:6px}.game-content{padding-inline:12px}}

/* FAVLA! — Caption yazarken gerçek bir tweet kartı */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.compose-round{margin-bottom:4px}
.compose-heading{margin-top:12px;margin-bottom:5px}
.compose-explainer{margin-bottom:19px}
.compose-shell{margin:0 2px}
.tweet-compose{box-shadow:0 15px 48px rgba(0,0,0,.88);padding-bottom:13px}
.compose-caption{display:block;box-sizing:border-box;width:100%;height:23px;min-height:23px;max-height:180px;resize:none;overflow-y:auto;background:transparent;border:0;outline:none;box-shadow:none;font-size:15px;line-height:1.45;font-weight:400;letter-spacing:-.1px;color:#eef1f4;padding:0;margin:5px 0 8px;font-family:inherit;overflow-wrap:anywhere}
.compose-caption::placeholder{color:#65717e;opacity:1}
.compose-caption:focus-visible{outline:none;box-shadow:none}
.compose-engagement{opacity:.66;pointer-events:none}
.compose-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 5px 1px}
.compose-counter{font-size:12px;color:#8c99a8;font-variant-numeric:tabular-nums}
.compose-submit{flex:0 1 192px;min-height:44px;padding:11px 16px;gap:11px}
.sound-btn{width:26px;height:26px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.70);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);padding:0}
.sound-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:360px){.compose-caption{font-size:14px}.compose-footer{padding-inline:3px}.compose-submit{flex-basis:178px}}

/* Caption gönderme eylemi karttan bağımsız, daima alt menünün üstünde */
.compose-fixed{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:65px;padding:9px 19px;background:#000;border-top:1px solid #171e26;z-index:5}
.compose-fixed[hidden]{display:none}
.compose-fixed .compose-counter{font-size:12px;white-space:nowrap}
.compose-fixed .compose-submit{margin-left:auto;flex:0 1 190px}

/* v1.2 — ana slogan daha büyük ve temiz */
.welcome-top h1{font-size:clamp(38px,9.5vw,52px);letter-spacing:-2.5px;line-height:1.055;font-weight:860;margin:17px 0 12px}
.welcome-top{padding-bottom:22px}
@media(max-width:360px){.welcome-top h1{font-size:clamp(34px,9.6vw,39px);letter-spacing:-1.9px}}

/* v1.4 — timing controls */
.timer-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 15px}
.timer-pair .label{display:block;margin:5px 0 6px}
.timer-pair .select{width:100%;min-width:0}
/* v1.4 — viral score animation */
.deck-shell{position:relative;isolation:isolate}
.deck-shell.viral .tweet{border-color:rgba(255,148,47,.9);box-shadow:0 0 0 1px #ff8d3e88,0 0 24px #ff5d195e,0 0 62px #fa301d2b;animation:hotGlow 1.6s ease-in-out infinite alternate}
.heat-flames{display:none;position:absolute;inset:-19px -11px;pointer-events:none;z-index:-1}
.deck-shell.viral .heat-flames{display:block}
.flame{position:absolute;font-size:24px;line-height:1;filter:drop-shadow(0 0 7px #ff6400c9);animation:flameRise 1s ease-in-out infinite alternate}
.flame-1{left:4%;top:-2px;animation-delay:-.1s}.flame-2{left:23%;top:-12px;animation-delay:-.65s}.flame-3{left:52%;top:-14px;animation-delay:-.4s}.flame-4{right:9%;top:-5px;animation-delay:-.8s}
.flame-5{left:-9px;top:25%;animation-delay:-.25s}.flame-6{right:-8px;top:35%;animation-delay:-.7s}
.flame-7{left:12%;bottom:-8px;animation-delay:-.45s}.flame-8{right:26%;bottom:-9px;animation-delay:-.2s}.flame-9{right:-8px;bottom:26%;animation-delay:-.55s}
@keyframes flameRise{from{transform:translateY(4px) scale(.86) rotate(-12deg);opacity:.72}to{transform:translateY(-6px) scale(1.14) rotate(7deg);opacity:1}}
@keyframes hotGlow{from{box-shadow:0 0 0 1px #ff8d3e66,0 0 18px #ff5d1940}to{box-shadow:0 0 0 1px #ffc061aa,0 0 28px #ff5d1988,0 0 60px #ff4e1b4d}}
.heat-status{margin-top:8px;font-size:10px;font-weight:850;color:#ffbd64;letter-spacing:1.1px;text-align:center;text-shadow:0 0 12px #f70}
.heat-status[hidden]{display:none}
.score-momentum{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;color:#bdcbd8;font-size:11px;font-variant-numeric:tabular-nums}
.score-momentum b{font-size:15px;color:#f0f6fa}.score-momentum span:last-child{color:#eeb773}
@media(max-width:360px){.timer-pair{gap:7px}.timer-pair .select{padding-inline:5px}}
@media(prefers-reduced-motion:reduce){.deck-shell.viral .tweet,.flame{animation:none!important}}

.official-fallback{position:relative;z-index:4;margin:5px auto 0;max-width:100%;background:#000;min-height:150px}
.official-fallback iframe{width:100%!important;max-width:100%!important}

/* A real X widget is only the fallback if all mobile MP4 sources fail. */
.video-stage.with-official-fallback{aspect-ratio:auto!important;min-height:205px;overflow:visible;isolation:auto}
.video-stage.with-official-fallback .video-el,.video-stage.with-official-fallback>.attribution,.video-stage.with-official-fallback>.sound-btn{display:none}
.video-stage.with-official-fallback>.video-loading{position:relative;inset:auto;min-height:40px;padding:8px;font-size:10px}
.video-stage.with-official-fallback .official-fallback{display:block;min-height:180px}


/* v1.6 — sound mixer: hover/focus on desktop, long-press to open on mobile. */
.video-stage .sound-control{position:absolute;bottom:8px;right:8px;z-index:7;display:flex;align-items:center;justify-content:flex-end;min-width:26px;height:27px}
.video-stage .sound-control .sound-btn{position:relative;right:auto;bottom:auto;flex:none;z-index:2}
.volume-popover{position:absolute;right:25px;bottom:-2px;width:118px;min-height:32px;padding:0 11px;display:flex;align-items:center;border:1px solid #46505c;background:rgba(10,12,16,.94);backdrop-filter:blur(8px);border-radius:18px;opacity:0;visibility:hidden;pointer-events:none;transform:translateX(5px);transition:opacity .14s,transform .14s,visibility .14s}
.sound-control:hover .volume-popover,.sound-control:focus-within .volume-popover,.sound-control.volume-open .volume-popover{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0)}
.volume-popover input[type=range]{display:block;width:100%;height:24px;margin:0;accent-color:#1d9bf0;cursor:pointer;touch-action:none}
@media(hover:none){.volume-popover{display:none}.sound-control.volume-open .volume-popover,.sound-control:focus-within .volume-popover{display:flex}}
.video-stage.with-official-fallback>.sound-control{display:none}
/* Saved tweets reuse the voting card anatomy without creating a new deck. */
.saved-page{padding:20px 14px 30px}.saved-list{display:grid;gap:17px;align-items:start}
.saved-tweet{width:100%;box-shadow:0 8px 28px #000b}
.saved-tweet .tweet-body{margin-left:52px}
.saved-video-slot{min-height:140px}
.saved-video-preview{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#798797;text-align:center;font-size:11px;padding:15px;background:#090b10}
.saved-tweet .engagement{margin-top:11px}
@media(max-width:360px){.saved-page{padding-inline:10px}.saved-tweet .tweet-body{margin-left:47px}}

/* v1.8 — Round results are complete, scrollable Twitter-style posts. */
.results-header{margin:23px 0 13px}.results-header .section-title{margin:0 0 5px;font-size:17px}
.results-header p{color:#8292a3;font-size:11px;line-height:1.5;margin:0}
.results-feed{display:grid;gap:14px;min-width:0}
.result-tweet{width:100%;box-shadow:0 5px 24px #0009}
.result-tweet .tweet-body{margin-left:52px}
.result-video-slot{min-height:120px}
.result-post-score{display:flex;align-items:center;justify-content:space-between;margin-top:13px;padding-top:9px;border-top:1px solid #202831;color:#7ccefb;font-size:11px;font-weight:800;letter-spacing:.03em}
.result-post-score small{color:#8895a4;font-size:10px;font-weight:500}
.result-post-score .viral-label{color:#ffaf60}
.results-feed + .primary{margin-top:17px}
@media(max-width:360px){.result-tweet .tweet-body{margin-left:47px}}

/* v1.9.1 — Caption tweet headerindeki kompakt edit degistirme kontrolu. */
.tweet-compose .tweet-head{grid-template-columns:43px minmax(0,1fr) auto;align-items:start}
.edit-swap-pill{justify-self:end;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:31px;min-width:54px;padding:0 8px;border:1px solid #2d668c;border-radius:10px;background:rgba(13,53,79,.63);color:#82caff;font-size:12px;font-weight:750;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.edit-swap-pill:hover:not(:disabled){background:#123e5b;border-color:#3c94c7}
.edit-swap-pill:active:not(:disabled){transform:scale(.96)}
.edit-swap-pill svg{display:block;width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.edit-swap-pill .swap-pill-count{font-size:12px;min-width:8px;text-align:center}
.edit-swap-pill:disabled{opacity:.45;cursor:not-allowed}
.edit-swap-pill.is-loading svg{animation:swap-indicator-rotation .55s linear infinite}
@keyframes swap-indicator-rotation{to{transform:rotate(360deg)}}
@media(max-width:360px){.tweet-compose .tweet-head{grid-template-columns:39px minmax(0,1fr) auto;gap:8px}.edit-swap-pill{min-width:49px;height:29px;padding:0 7px;gap:4px}.edit-swap-pill svg{width:15px;height:15px;flex-basis:15px}}
