@font-face{font-family:Inter;src:url('/fonts/inter-latin-variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Playfair Display';src:url('/fonts/playfair-display-latin-variable.woff2') format('woff2');font-weight:400 900;font-style:normal;font-display:swap}
:root{--product-bg:#0b0f19;--product-surface:#151b2b;--product-border:#2b3343;--product-text:#f8fafc;--product-muted:#a9b3c5;--product-gold:#d4af37;--product-radius:20px;--product-green:#89d6b4;--product-red:#ffada9}
body{font-family:Inter,system-ui,sans-serif;font-size:16px;line-height:1.5}
body[data-game-page="true"]{background:var(--product-bg)}
body[data-game-page="true"] main{display:flex;flex-direction:column}
body[data-game-page="true"] .seo-breadcrumbs{display:none}
.product-app{width:min(100%,560px);min-height:100svh;margin:0 auto;padding:0 24px calc(20px + env(safe-area-inset-bottom));color:var(--product-text);display:flex;flex-direction:column;font-size:16px;line-height:1.5}
.product-app *{box-sizing:border-box}
.product-app [x-cloak]{display:none!important}
.product-app h1,.product-app h2,.product-app p,.product-app ul,.product-app ol{margin:0}
.product-app button,.product-app input,.product-app select{font:inherit}
.product-app button,.product-app a,.product-app input,.product-app select{touch-action:manipulation}
.product-app button{cursor:pointer}
.product-app button:disabled{opacity:.45;cursor:default}
.product-app :is(button,a,input,select):focus-visible{outline:3px solid var(--product-gold);outline-offset:4px}
.product-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:100px;padding:20px 0}
.product-brand{display:inline-flex;align-items:center;gap:10px;min-height:48px;text-decoration:none;color:var(--product-text);font-family:'Playfair Display',Georgia,serif;font-size:25px;font-weight:600;letter-spacing:-.7px}
.product-brand img{width:40px;height:40px;flex-shrink:0}
.brand-dot{color:var(--product-gold)}
.icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;min-width:48px;min-height:48px;border-radius:12px;color:var(--product-muted);font-size:20px;background:transparent;border:1px solid transparent;transition:background .15s,color .15s}
.icon-button:hover{background:#ffffff09;color:var(--product-text)}
.product-section{animation:product-appear .2s ease-out;padding:12px 0 24px}
.section-heading{margin-bottom:28px}
.eyebrow{font-size:12px;font-weight:650;line-height:1.5;letter-spacing:1.25px;text-transform:uppercase;color:var(--product-gold)}
.section-heading .eyebrow{margin-bottom:12px}
.product-app h1{font-size:36px;line-height:1.13;font-weight:650;letter-spacing:-1.4px;text-wrap:balance;overflow-wrap:anywhere}
.section-heading>p:last-child:not(.eyebrow){margin-top:14px;color:var(--product-muted);line-height:1.6;max-width:42ch}
.product-app h2{font-size:20px;line-height:1.35;letter-spacing:-.4px;font-weight:650}
.segmented{display:grid;grid-template-columns:1fr 1fr;padding:4px;gap:4px;background:#ffffff04;border:1px solid var(--product-border);border-radius:14px;margin-bottom:24px}
.segmented button{min-height:48px;font-size:14px;font-weight:600;color:var(--product-muted);border-radius:10px;border:0;background:transparent}
.segmented button[aria-pressed="true"]{background:#283043;color:#fff;box-shadow:0 2px 4px #0002}
.form-stack{display:flex;flex-direction:column;gap:24px}
.field{display:flex;flex-direction:column;gap:8px;min-width:0;border:0;padding:0;margin:0}
.field label:not(.mode-option),.field legend,.field-label{font-size:14px;font-weight:600;color:var(--product-text)}
.field legend{margin-bottom:10px}
.product-app input:not([type="radio"]):not([type="checkbox"]),.product-app select{width:100%;min-width:0;min-height:54px;border:1px solid #63708a;border-radius:12px;background:#111724;color:var(--product-text);padding:13px 16px;font-size:16px;line-height:24px;box-shadow:none}
.product-app input::placeholder{color:#8390a5;opacity:1}
.product-app select{appearance:auto;padding-right:10px;color-scheme:dark}
.product-app input[aria-invalid="true"]{border-color:var(--product-red)}
.field-hint{color:var(--product-muted);font-size:14px;line-height:1.5}
.field-error{color:var(--product-red);font-size:14px;line-height:1.5}
.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mode-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:1px solid var(--product-border);border-radius:14px;padding:16px 12px;min-height:130px;cursor:pointer;background:#ffffff02}
.mode-option input{position:absolute;right:12px;top:14px;accent-color:var(--product-gold);width:16px;height:16px}
.mode-option>i{font-size:21px;color:var(--product-muted);margin:2px 0 10px}
.mode-option strong{font-size:14px;font-weight:600;line-height:1.4}
.mode-option span{font-size:12px;line-height:1.5;color:var(--product-muted)}
.mode-option.is-selected{border-color:var(--product-gold);background:#d4af3709}
.mode-option.is-selected>i{color:var(--product-gold)}
.mode-option:focus-within{outline:3px solid var(--product-gold);outline-offset:4px}
.settings{border-top:1px solid var(--product-border);border-bottom:1px solid var(--product-border)}
.disclosure-button{width:100%;min-height:52px;padding:8px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--product-muted);font-size:14px!important;background:none;border:0;text-align:left}
.disclosure-button>span{display:flex;align-items:center;gap:10px}
.disclosure-button>i{font-size:12px;transition:transform .15s}
.is-rotated{transform:rotate(180deg)}
.settings-fields{display:flex;flex-direction:column;gap:20px;padding:12px 0 20px}
.check-row{display:flex;gap:12px;align-items:center;min-height:48px;cursor:pointer}
.check-row input{accent-color:var(--product-gold);height:22px;width:22px;flex-shrink:0}
.check-row strong{font-size:14px;font-weight:600;display:block}
.check-row small{display:block;font-size:14px;color:var(--product-muted);margin-top:4px}
.button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:54px;padding:14px 18px;border-radius:12px;font-weight:650!important;font-size:16px!important;line-height:24px;text-align:center;text-decoration:none;transition:background .15s,transform .15s;border:1px solid transparent}
.button:active:not(:disabled){transform:translateY(1px)}
.button-primary{background:var(--product-gold);color:var(--product-bg)}
.button-primary:hover:not(:disabled){background:#e1bd49}
.button-secondary{background:#ffffff04;color:var(--product-text);border-color:#465065}
.button-secondary:hover:not(:disabled){background:#ffffff0b}
.button-outline{border-color:var(--product-border)}
.text-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:10px 8px;color:var(--product-gold);font-size:14px!important;font-weight:550;background:transparent;border:0;text-decoration:none}
.muted-button{color:var(--product-muted)}
.action-area{display:flex;flex-direction:column;gap:12px;margin-top:28px;text-align:center}
.form-stack>.action-area{margin-top:0}
.action-area>div>.text-button{display:flex;margin:4px auto 0}
.action-hint{font-size:12px;color:var(--product-muted);line-height:1.6;text-align:center;margin-top:12px!important}
.product-footer{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:auto;padding-top:12px;font-size:12px;color:#95a2b7}
.product-footer a{min-height:48px;display:flex;align-items:center;color:inherit;text-decoration:none}
.product-footer a:hover{color:var(--product-text)}
.product-status:empty{display:none}
.feedback{padding:14px 16px;margin:0 0 16px!important;border:1px solid #3f4b60;border-radius:12px;background:#1b263a;color:var(--product-text);font-size:14px;overflow-wrap:anywhere}
.feedback-error{background:#471d243d;border-color:#834249;color:#ffc4c0}
.feedback .text-button{padding-bottom:0;min-height:40px}
.resume-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#151b2b;border:1px solid var(--product-border);border-radius:14px;margin-bottom:24px;font-size:14px}
.resume-card strong{font-weight:600}
.resume-card p{color:var(--product-muted);font-size:12px;margin-top:4px}
.resume-card .text-button{padding:0;flex-shrink:0}
.invite-card{border:1px solid #5a4d2b;background:linear-gradient(120deg,#d4af3710,transparent 70%),var(--product-surface);border-radius:var(--product-radius);padding:20px;text-align:center;margin-bottom:28px}
.invite-top{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:16px;margin-bottom:20px}
.room-code{font-size:25px!important;font-weight:600;letter-spacing:2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:6px!important}
.qr-button{width:64px;height:64px;font-size:28px;background:#f8fafc;color:#0b0f19;border-radius:14px}
.qr-button:hover{background:#e7eaf0;color:#0b0f19}
.invite-card>.text-button{margin-top:4px;margin-bottom:-8px}
.section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 8px}
.section-label h2{font-size:16px}
.count-badge{font-size:12px;min-width:28px;min-height:28px;display:flex;align-items:center;justify-content:center;background:#ffffff08;border:1px solid var(--product-border);border-radius:9px;font-variant-numeric:tabular-nums}
.player-list,.ranking-list{padding:0;list-style:none}
.player-row{display:flex;align-items:center;gap:12px;min-height:76px;padding:12px 0;border-bottom:1px solid var(--product-border)}
.avatar{--player-color:#d4af37;width:44px;height:44px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--player-color) 12%,#151b2b);color:var(--product-text);border:1px solid color-mix(in srgb,var(--player-color) 25%,#2b3343);border-radius:14px;font-size:14px;font-weight:600}
.player-details{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.player-details strong{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.player-details span{font-size:12px;color:var(--product-muted)}
.presence-dot{width:8px;height:8px;border-radius:50%;background:#64748b;margin-right:8px;flex-shrink:0}
.presence-dot.is-online{background:var(--product-green)}
.input-row{display:flex;align-items:center;gap:8px;min-width:0}
.local-player-form{margin-top:16px}
.local-player-form input{font-size:14px!important}
.round-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--product-muted);margin-top:-12px;min-height:48px}
.round-meta .text-button{padding-right:0;font-size:12px!important}
.round-progress{height:3px;border-radius:4px;background:#283043;overflow:hidden;margin-bottom:28px}
.round-progress span{display:block;height:100%;border-radius:4px;background:var(--product-gold);transition:width .2s}
.challenge-card{padding:24px;border:1px solid #35405a;border-radius:22px;background:radial-gradient(ellipse at 50% 0,#29334b55,transparent 65%),var(--product-surface);position:relative;overflow:hidden}
.card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:32px}
.points-badge{font-size:12px;color:var(--product-muted);border:1px solid #ffffff12;border-radius:7px;padding:4px 8px;white-space:nowrap}
.challenge-symbol{color:var(--product-gold);font-size:34px;line-height:1;margin-bottom:24px}
.challenge-symbol .fa-sparkles{display:none}
.challenge-card h1{font-size:28px;letter-spacing:-.8px;line-height:1.25}
.challenge-copy{font-size:20px;line-height:1.6;color:#e0e6ef;white-space:pre-line;margin-top:20px!important;overflow-wrap:anywhere}
.challenge-card .button{margin-top:24px}
.duel-timer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--product-border)}
.duel-timer>div{display:flex;gap:8px}
.timer-value{font-size:28px;line-height:1;font-variant-numeric:tabular-nums;font-weight:550;letter-spacing:-1px}
.waiting-note{display:flex;align-items:flex-start;justify-content:center;gap:10px;color:var(--product-muted);font-size:14px;padding:20px 8px;text-align:left}
.status-dot{width:7px;height:7px;background:var(--product-gold);border-radius:50%;flex-shrink:0;margin-top:7px}
.role-card{text-align:center;padding:24px 12px}
.role-seal{display:flex;justify-content:center;align-items:center;width:88px;height:88px;margin:0 auto 24px;border:1px solid #d4af3755;border-radius:50%;background:#d4af3709;color:var(--product-gold);font-size:34px}
.role-card h2{font-family:'Playfair Display',Georgia,serif;font-size:30px;line-height:1.3;color:var(--product-gold)}
.role-card p{margin-top:16px;color:var(--product-muted);font-size:16px;line-height:1.7;white-space:pre-line}
.role-card .role-mission{color:var(--product-text);font-weight:500}
.intro-screen .section-heading{text-align:center}
.intro-screen .role-card{background:var(--product-surface);border:1px solid var(--product-border);border-radius:var(--product-radius);padding:28px 20px;min-height:250px}
.vote-status{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--product-muted);margin-bottom:16px;font-variant-numeric:tabular-nums}
.candidate-list{display:flex;flex-direction:column;gap:10px}
.candidate{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:12px 16px;border-radius:14px;border:1px solid #354057;background:var(--product-surface);text-align:left;color:var(--product-text)}
.candidate strong{flex:1;min-width:0;font-size:16px;font-weight:550;overflow-wrap:anywhere}
.candidate[aria-pressed="true"]{border-color:var(--product-gold);background:#d4af370d}
.candidate-check{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:1px solid #63708a;border-radius:50%;font-size:12px;color:#0b0f19}
.candidate[aria-pressed="true"] .candidate-check{background:var(--product-gold);border-color:var(--product-gold)}
.success-card{text-align:center;padding:32px 20px;border:1px solid #89d6b433;background:#89d6b405;border-radius:var(--product-radius)}
.success-icon,.complete-mark{display:flex;justify-content:center;align-items:center;width:64px;height:64px;border-radius:50%;border:1px solid #89d6b44d;color:var(--product-green);font-size:28px;background:#89d6b40b;margin:0 auto 20px}
.success-card p{font-size:14px;color:var(--product-muted);margin-top:8px}
.round-complete{text-align:center;padding:28px 8px}
.round-complete h1{margin-top:12px}
.round-complete>p:last-child{margin-top:20px;color:var(--product-muted);line-height:1.7}
.round-complete .complete-mark{width:80px;height:80px;font-size:32px;margin-bottom:32px}
.winner-card{text-align:center;padding:24px 20px;border-radius:var(--product-radius);border:1px solid #706036;background:radial-gradient(ellipse at top,#d4af3714,transparent 80%),var(--product-surface)}
.winner-crown{color:var(--product-gold);font-size:30px;display:block;margin-bottom:16px}
.winner-card h2{font-family:'Playfair Display',Georgia,serif;font-size:36px;line-height:1.2;letter-spacing:-.6px;margin-top:12px;overflow-wrap:anywhere}
.winner-card>p:last-child{color:var(--product-gold);font-size:16px;margin-top:12px}
.result-stats{display:grid;grid-template-columns:1fr 1fr 1fr;padding:24px 0;border-bottom:1px solid var(--product-border)}
.result-stats>div{text-align:center;border-right:1px solid var(--product-border)}
.result-stats>div:last-child{border:0}
.result-stats strong{display:block;font-size:22px;font-weight:550;line-height:1.3;font-variant-numeric:tabular-nums}
.result-stats span{display:block;font-size:12px;color:var(--product-muted);margin-top:6px}
.rank-number{width:16px;flex-shrink:0;color:var(--product-muted);font-size:14px;font-variant-numeric:tabular-nums}
.player-score{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;padding-left:8px}
.product-dialog{color:var(--product-text);background:var(--product-surface);border:1px solid #414a60;border-radius:24px;padding:24px;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);margin:auto;overflow-y:auto;box-shadow:0 24px 80px #0005}
.product-dialog::backdrop{background:#050812bf;backdrop-filter:blur(3px)}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:-8px -8px 16px 0}
.product-dialog>p{color:var(--product-muted);font-size:14px;line-height:1.6}
.product-dialog .candidate-list{margin-top:20px}
.dialog-note{margin-top:20px!important;font-size:12px!important}
.menu-actions{display:flex;flex-direction:column}
.menu-actions>button,.menu-actions>a{text-align:left;display:flex;align-items:center;min-height:56px;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--product-border);background:transparent;color:var(--product-text);text-decoration:none}
.menu-actions>.danger-text{color:var(--product-red)}
.qr-dialog{text-align:center}
.qr-dialog .dialog-heading{text-align:left}
.qr-dialog .qr-code{background:white;width:max-content;max-width:100%;padding:16px;margin:24px auto 20px;border-radius:12px}
.qr-code img,.qr-code canvas{max-width:100%;height:auto}
.qr-dialog .button{margin-top:24px}
.product-loading{padding:80px 20px;text-align:center;color:var(--product-muted);font-size:14px}
.loading-ring{display:block;width:32px;height:32px;border:2px solid var(--product-border);border-top-color:var(--product-gold);border-radius:50%;margin:0 auto 24px;animation:spin 1s linear infinite}
.app-dialog__btn{min-width:80px;min-height:48px;font-size:16px}
.app-dialog__message{font-size:16px;line-height:1.6}
@keyframes product-appear{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.product-app{padding-left:16px;padding-right:16px}.product-header{min-height:88px;padding:16px 0}.product-section{padding-top:12px}.product-app h1{font-size:34px;letter-spacing:-1.1px}.section-heading{margin-bottom:24px}.section-heading .eyebrow{font-size:12px;letter-spacing:1px}.challenge-card{padding:20px}.challenge-card h1{font-size:28px}.product-dialog{position:fixed;top:auto;bottom:12px;padding:20px;width:calc(100% - 24px);max-height:calc(100dvh - 36px);border-radius:22px}.dialog-heading{margin-right:-4px}.product-app .challenge-copy{font-size:19px}.product-dialog .dialog-heading h2{font-size:20px}}
@media(max-width:359px){.product-app h1{font-size:30px}.product-brand{font-size:23px}.mode-options{gap:8px}.mode-option{padding:14px 10px}.mode-option strong{font-size:13px}.mode-option span{font-size:12px}.challenge-card h1{font-size:26px}.product-app .challenge-copy{font-size:18px}.room-code{font-size:21px!important}.product-header{min-height:80px}.product-app{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.product-app *{animation:none!important;transition:none!important}}
@media print{.product-header,.product-footer,.action-area,.product-dialog,.product-status{display:none!important}.product-app{color:#111;background:white;max-width:none;min-height:0}.winner-card,.avatar{background:none;color:#111}.player-details span,.eyebrow,.result-stats span{color:#444}.results-screen{display:block}.winner-card h2{color:#111}}

.product-app .icon-button{font-size:20px}.product-app .qr-button{font-size:28px}


.app-confirm{color:#f8fafc;background:#151b2b;border:1px solid #414a60;border-radius:22px;padding:24px;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 48px);margin:auto;overflow:auto;box-shadow:0 24px 80px #0005}
.app-confirm::backdrop{background:#050812bf;backdrop-filter:blur(3px)}
.app-confirm h2{font-size:22px;line-height:1.3;font-weight:650;letter-spacing:-.4px;margin:0 0 12px}
.app-confirm p{font-size:16px;line-height:1.6;color:#c3ccda;white-space:pre-line;margin:0}
.app-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:24px}
.app-confirm-actions button{min-height:52px;min-width:100px;padding:12px 20px;border:1px solid #465065;background:#ffffff04;color:#f8fafc;border-radius:12px;font-size:16px;font-weight:600}
.app-confirm-actions #app-dialog-ok{color:#0b0f19;background:#d4af37;border-color:#d4af37}
.app-confirm-actions button[hidden]{display:none}
@media(max-width:600px){.app-confirm{bottom:12px;top:auto;position:fixed;width:calc(100% - 24px)}}

.round-insights{border:1px solid var(--product-border);border-radius:16px;margin:0 0 24px;background:#ffffff02}
.insights-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;padding:14px 16px;background:none;border:0;color:var(--product-text);text-align:left}
.insights-icon{display:flex;align-items:center;justify-content:center;width:36px;height:40px;font-size:18px;color:var(--product-gold);flex-shrink:0}
.insights-toggle>span:nth-child(2){flex:1;min-width:0}.insights-toggle strong{display:block;font-size:14px;font-weight:600}.insights-toggle small{display:block;color:var(--product-muted);font-size:12px;margin-top:4px;overflow-wrap:anywhere}.insights-toggle>i{font-size:12px;color:var(--product-muted);transition:transform .15s}
.insights-content{padding:4px 16px 12px;border-top:1px solid var(--product-border)}.insights-content>.eyebrow{padding-top:20px}.insights-content>.button{margin-top:20px}.insights-content>.text-button{display:flex;margin:8px auto 0}.insights-content .player-row{min-height:68px}.insights-content h2{font-size:14px}
.live-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px 0 24px}.live-stats strong{display:block;font-size:28px;font-weight:550;letter-spacing:-.5px}.live-stats span{display:block;color:var(--product-muted);font-size:12px;margin-top:4px}
.name-input>.icon-button{height:54px;width:54px;color:var(--product-gold)}

.insights-content .live-headline{font-size:20px;font-weight:600;line-height:1.35;letter-spacing:-.4px;margin-top:12px}.insights-content .live-total{font-size:14px;color:var(--product-muted);margin-top:6px}

.header-actions{display:flex;gap:4px;align-items:center}.chat-toggle{position:relative}.unread-badge{position:absolute;right:1px;top:1px;display:flex;align-items:center;justify-content:center;min-width:19px;height:19px;border-radius:8px;padding:0 4px;font-size:12px;font-weight:700;background:var(--product-gold);color:var(--product-bg);border:2px solid var(--product-bg)}
.chat-dialog{height:min(780px,calc(100dvh - 32px));padding:20px;overflow:hidden}.chat-dialog[open]{display:flex;flex-direction:column}.chat-dialog .dialog-heading{margin-bottom:8px;flex-shrink:0}.chat-dialog .dialog-heading h2{font-size:20px}.chat-subtitle{font-size:12px;color:var(--product-muted);margin-top:3px!important}.chat-dialog .chat-privacy{display:flex;align-items:center;gap:8px;font-size:12px;padding-bottom:16px;color:var(--product-muted);border-bottom:1px solid var(--product-border);flex-shrink:0}.chat-messages{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;padding:20px 0;scrollbar-width:thin;scrollbar-color:#44516a transparent}.chat-empty{text-align:center;max-width:260px;margin:auto;padding:28px 0}.chat-empty>span{display:block;font-size:32px;color:var(--product-gold);margin-bottom:20px}.chat-empty h3{font-size:20px;font-weight:600;letter-spacing:-.4px;line-height:1.35;text-wrap:balance}.chat-empty p{color:var(--product-muted);font-size:14px;line-height:1.6;margin-top:12px}.chat-message{max-width:90%;margin-bottom:16px}.chat-message.is-own{margin-left:auto}.chat-message-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 6px;font-size:12px;color:var(--product-muted)}.chat-message-meta strong{font-weight:550;overflow-wrap:anywhere}.chat-message-meta time{flex-shrink:0;font-variant-numeric:tabular-nums}.chat-bubble{background:#252f44;border:1px solid #344056;border-radius:4px 16px 16px;padding:12px 14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.5}.chat-message.is-own .chat-bubble{background:#d4af3714;border-color:#756333;border-radius:16px 4px 16px 16px}.chat-composer{flex-shrink:0;padding-top:8px;border-top:1px solid var(--product-border)}.emoji-row{display:grid;grid-template-columns:repeat(5,minmax(48px,1fr));gap:4px;margin-bottom:8px}.emoji-row button{min-width:48px;min-height:48px;background:transparent;border:0;border-radius:10px;font-size:24px}.emoji-row button:hover{background:#ffffff08}.chat-composer textarea{display:block;width:100%;min-height:78px;max-height:120px;border:1px solid #63708a;border-radius:12px;background:#0e1420;color:var(--product-text);padding:12px 14px;font:inherit;font-size:16px;line-height:1.5;resize:none}.chat-composer textarea::placeholder{color:#a9b3c5}.chat-composer textarea:focus-visible{outline:2px solid var(--product-gold);outline-offset:2px}.chat-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.chat-composer-actions>div{display:flex;gap:8px;align-items:center}.chat-send{width:auto;min-width:112px;min-height:48px;padding:10px 16px}.chat-character-count{font-size:12px;color:var(--product-muted)}.mic-button{color:var(--product-gold)}.mic-button.is-listening{color:var(--product-red);background:#ffada913;border-color:#ffada94d}.chat-draft-help{font-size:12px;color:var(--product-muted);margin-top:10px!important}.speech-install{font-size:12px!important;line-height:1.5;text-align:left;justify-content:flex-start}.chat-composer>.field-error{padding:4px 0 8px}
@media(max-width:600px){.chat-dialog{height:calc(100dvh - 24px);bottom:12px;padding:16px}.chat-messages{padding:16px 0}.chat-empty{padding:24px 0}.chat-dialog .dialog-heading{margin-right:0}.chat-privacy{line-height:1.5}.chat-dialog .dialog-heading h2{font-size:20px}}
@media(max-height:560px){.chat-dialog .chat-privacy,.chat-subtitle,.chat-empty>span{display:none}.chat-dialog{padding:12px}.chat-dialog .dialog-heading{margin-bottom:0}.emoji-row{margin-bottom:4px}.emoji-row button{min-height:48px}.chat-composer textarea{min-height:52px;height:52px}.chat-empty{padding:4px 0}.chat-message{margin-bottom:8px}}

/* Reactions stay attached to a message; animation never blocks reading or input. */
.chat-reaction-hint{flex-shrink:0;font-size:12px;color:var(--product-muted);padding-top:10px}
.chat-bubble-wrap{position:relative}
button.chat-bubble{display:block;width:100%;min-height:48px;text-align:left;color:var(--product-text);font:inherit;line-height:1.5;touch-action:pan-y;-webkit-touch-callout:none;transition:border-color .15s,background .15s}
button.chat-bubble:disabled{opacity:1;cursor:default}
button.chat-bubble:hover:not(:disabled){border-color:#63708a}
.chat-reactions{display:flex;flex-wrap:wrap;gap:0 4px;align-items:center;margin-top:0}
.is-own .chat-reactions{justify-content:flex-end}
.reaction-chip{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:2px 0;border:0;background:transparent;border-radius:14px;color:var(--product-text)}
.reaction-chip-face{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:48px;min-height:32px;padding:4px 10px;background:#252f44;border:1px solid #63708a;border-radius:18px;font-size:17px;line-height:1.25;transition:background .15s,border-color .15s}
.reaction-chip-face strong{font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}
.reaction-chip.is-mine .reaction-chip-face{border-color:var(--product-gold);background:#d4af3720;color:#f5d775}
.reaction-chip:hover:not(:disabled) .reaction-chip-face{background:#344056}
.reaction-chip:disabled{opacity:.65}
.reaction-dialog{width:min(calc(100% - 32px),380px);padding:20px}
.reaction-dialog::backdrop{background:#0508108f;backdrop-filter:blur(6px)}
.reaction-dialog .dialog-heading{align-items:center;gap:8px;margin-bottom:16px}
.reaction-dialog h2{font-size:20px;line-height:1.3;letter-spacing:-.4px}
.reaction-dialog .icon-button{margin-right:-8px;align-self:flex-start}
.reaction-preview{border-left:2px solid var(--product-gold);padding:2px 0 2px 12px;margin-bottom:20px;overflow-wrap:anywhere}
.reaction-preview strong{display:block;color:var(--product-muted);font-size:12px;font-weight:550;margin-bottom:4px}
.reaction-preview p{font-size:15px;line-height:1.5;color:var(--product-text);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}
.reaction-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.reaction-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:48px;min-height:80px;padding:10px 4px;border:1px solid #63708a;border-radius:16px;background:#ffffff04;color:var(--product-muted);transition:background .15s,border-color .15s,transform .15s}
.reaction-option>span:first-child{font-size:30px;line-height:1.2}
.reaction-option>span:nth-child(2){font-size:12px;line-height:1.5;font-weight:550}
.reaction-option>i{position:absolute;right:7px;top:6px;font-size:10px;color:var(--product-gold)}
.reaction-option.is-mine{border-color:var(--product-gold);background:#d4af3714;color:var(--product-text)}
.reaction-option:hover:not(:disabled){background:#ffffff0c;border-color:var(--product-gold)}
.reaction-option:active:not(:disabled){transform:scale(.95)}
.reaction-help{font-size:12px;color:var(--product-muted);text-align:center;margin-top:16px!important;line-height:1.5}
.reaction-dialog>.field-error{margin-top:12px!important}
.reaction-fx{position:absolute;right:28px;bottom:12px;width:1px;height:1px;pointer-events:none;z-index:2}
.reaction-fx-emoji{position:absolute;left:-18px;top:-28px;font-size:36px;line-height:1;transform-origin:center;animation:reaction-pop .85s both}
.reaction-fx-heart .reaction-fx-emoji{animation-name:reaction-heart}
.reaction-fx-laugh .reaction-fx-emoji{animation-name:reaction-laugh}
.reaction-fx-wow .reaction-fx-emoji{animation-name:reaction-wow}
.reaction-spark{display:none;position:absolute;left:-3px;top:-7px;width:6px;height:10px;border-radius:2px;background:var(--spark);animation:reaction-spark .85s ease-out both}
.reaction-fx-celebrate .reaction-spark,.reaction-fx-fireworks .reaction-spark{display:block}
.reaction-fx-fireworks .reaction-spark{width:5px;height:5px;border-radius:50%;box-shadow:0 0 5px var(--spark)}
.reaction-fx.is-removal{display:none}
@keyframes reaction-pop{0%{opacity:0;transform:translateY(4px) scale(.35) rotate(-16deg)}30%{opacity:1;transform:translateY(-16px) scale(1.25) rotate(5deg)}55%{opacity:1;transform:translateY(-14px) scale(1)}100%{opacity:0;transform:translateY(-32px) scale(.85)}}
@keyframes reaction-heart{0%{opacity:0;transform:scale(.2)}25%{opacity:1;transform:translateY(-10px) scale(1.25)}40%{transform:translateY(-10px) scale(1)}55%{opacity:1;transform:translateY(-10px) scale(1.18)}100%{opacity:0;transform:translateY(-32px) scale(.8)}}
@keyframes reaction-laugh{0%{opacity:0;transform:scale(.3) rotate(0)}20%{opacity:1;transform:translateY(-14px) scale(1.1) rotate(-14deg)}36%{transform:translateY(-14px) rotate(14deg)}52%{opacity:1;transform:translateY(-14px) rotate(-12deg)}68%{transform:translateY(-14px) rotate(10deg)}100%{opacity:0;transform:translateY(-26px) scale(.8)}}
@keyframes reaction-wow{0%{opacity:0;transform:scale(.2)}28%{opacity:1;transform:translateY(-20px) scale(1.4)}52%{opacity:1;transform:translateY(-16px) scale(1)}100%{opacity:0;transform:translateY(-34px) scale(.8)}}
@keyframes reaction-spark{0%,12%{opacity:0;transform:translate(0,0) scale(.3)}25%{opacity:1}80%{opacity:.8}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--turn)) scale(.35)}}
@media(max-height:560px){.chat-reaction-hint{display:none}.reaction-dialog{padding:16px}.reaction-dialog .dialog-heading{margin-bottom:8px}.reaction-preview{margin-bottom:12px}.reaction-preview p{-webkit-line-clamp:2}.reaction-option{min-height:64px;padding:6px 2px}.reaction-option>span:first-child{font-size:25px}.reaction-help{margin-top:10px!important}}
@media(prefers-reduced-motion:reduce){.reaction-fx{display:none!important}.reaction-option,.reaction-chip-face,button.chat-bubble{transition:none}.reaction-option:active:not(:disabled){transform:none}}
