/* Kashaftak brand layer; scoped homepage changes preserve the match interface. */
:root{--brand-gold:#ffd17b;--brand-pink:#ff638f;--brand-ink:#110c2c}
body{background:radial-gradient(ellipse at 18% 12%,#38113966,transparent 44%),linear-gradient(145deg,#110c2c,#08071d);color:#fff6eb}
.shell{width:min(100% - 40px,1340px)}
.site-nav{border:0;background:#110c2cbf;box-shadow:none;padding:12px 6px;border-radius:0;margin-bottom:4px}
.site-nav .brand-nav{display:flex;gap:8px;align-items:center;text-decoration:none}
.site-nav img.brand-mark{width:46px;height:42px;object-fit:contain}
.brand-lockup{display:grid;text-align:center;line-height:1.2}.brand-lockup b{font:900 27px/1.35 'Cairo',sans-serif;color:var(--brand-gold)}.brand-lockup strong{font:800 16px/1.1 'Baloo 2',sans-serif;color:var(--brand-gold)}
.nav-links{gap:20px}.nav-links a{font-weight:700;font-size:14px;color:#d9cde7}.connection-pill{display:none!important}
.login-nav-btn{border:1px solid #6e518c;border-radius:20px;background:transparent;color:#fff0e9;padding:8px 14px;white-space:nowrap;font:700 13px 'Cairo',sans-serif}
.icon-tool-btn{border-radius:18px;background:#24183f;border-color:#76548c;width:40px;height:40px}.profile-nav-btn{border-radius:50%}
body.in-session #loginNavBtn{display:none}
.kashaftak-hero{padding:0!important;border:0;border-radius:24px;background:transparent;box-shadow:none;min-height:0;overflow:hidden;margin:0!important}
.kashaftak-hero .hero-grid{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;direction:ltr;gap:0;min-height:680px}
.kashaftak-hero .hero-visual{order:0!important;position:relative;min-height:680px!important;height:auto!important;max-height:none!important;align-self:stretch;overflow:hidden;border-radius:26px}
.kashaftak-hero .hero-visual img{position:absolute;inset:0;width:100%;height:100%!important;min-height:0!important;object-fit:cover;object-position:44% center;filter:none}
.kashaftak-hero .hero-visual:before,.lang-ar .kashaftak-hero .hero-visual:before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,transparent 65%,#110c2c),linear-gradient(0deg,#110c2c,transparent 20%);pointer-events:none}
.kashaftak-hero .hero-copy,.lang-ar .kashaftak-hero .hero-copy{order:1!important;margin:0!important;background:none!important;padding:24px 12px 20px 22px!important;text-align:center;direction:ltr;display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-width:0;width:100%}
.lang-ar .kashaftak-hero .hero-copy{direction:rtl}
.hero-brand{display:grid;justify-items:center;gap:0}.hero-brand img{height:100px;width:120px}.hero-brand h1{font:900 clamp(55px,5.9vw,84px)/1.42 'Cairo',sans-serif!important;letter-spacing:-2px!important;color:var(--brand-gold);margin:-6px 0 -12px!important}.hero-brand>span{color:var(--brand-gold);font:800 clamp(27px,3vw,43px)/1.2 'Baloo 2',sans-serif;letter-spacing:0}
.brand-tagline{font:900 clamp(24px,2.8vw,37px)/1.6 'Cairo',sans-serif;margin:12px 0 0!important;color:#fff3db}
.kashaftak-hero .hero-copy>p.brand-translation{color:var(--brand-pink);font:800 21px/1.5 'Baloo 2','Cairo',sans-serif;margin:0!important}
.kashaftak-hero .hero-copy>p.brand-description{font-size:15px!important;line-height:1.8!important;margin:8px 0 12px!important;color:#d4c5df}
.kashaftak-hero #setup{max-width:none!important;margin:0!important;padding:18px!important;background:#15102edb;border:1px solid #7151a5;border-radius:24px;box-shadow:0 16px 50px #07041966;text-align:start}
#setup .setup-head{display:block!important}#setup .setup-head>div:first-child{display:block!important}.field-label{letter-spacing:0}#setup .field-label{font-size:12px;display:block;margin:0 0 5px!important;font-weight:700}
#setup #name{height:46px;min-height:46px!important;background:#120d29;border:1px solid #75529d;border-radius:12px;font-size:14px;padding:8px 13px;width:100%}
#setup .setup-avatar-box{padding:0!important;border:0;background:transparent!important;margin:10px 0!important}#setup .setup-avatar-top{display:none!important}
#setup .avatar-picker{display:flex!important;gap:8px!important;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#6a437e transparent;padding:4px 2px 8px!important;direction:ltr;scroll-snap-type:x proximity}
#setup .avatar-option{display:flex;align-items:center;justify-content:center;min-width:54px!important;width:54px;flex:0 0 54px;height:54px;min-height:54px;padding:3px;border-radius:50%;background:#342345;border:2px solid #6757a1;scroll-snap-align:start}
#setup .avatar-option>span:last-child{display:none}#setup .avatar-option .avatar-art{width:44px;height:44px}#setup .avatar-option-face{height:44px;width:44px;border-radius:50%;overflow:hidden}#setup .avatar-badge{height:44px;width:44px;border-radius:50%}#setup .avatar-option.selected{border-color:#ffb75a;box-shadow:0 0 0 2px #ff638f55}
#setup .primary-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:0}#setup .big-btn{min-height:48px!important;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:17px;padding:10px 12px}
#setup .brand-primary{background:linear-gradient(180deg,#ff756f,#ee326b);color:white;border:1px solid #ff867c;box-shadow:0 5px 20px #e82c6333}#setup .brand-secondary{background:#231637;color:#eee0f5;border:1px solid #8764b0;font-size:14px}
.join-room-details{margin-top:10px;border:1px solid #765398;border-radius:13px;background:#1c1231}.join-room-details summary{padding:11px 14px;cursor:pointer;font-size:13px;font-weight:700;color:#dfcde8;text-align:center}.join-room-details[open]{padding:0 12px 12px}.join-room-details .code-input{font-size:20px;min-height:43px!important}.join-room-details .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.join-room-details .secondary-btn{font-size:12px;padding:10px;min-width:0}
#setup #setupMessage:empty{display:none}#setup #setupMessage{font-size:13px;margin-bottom:0}
.brand-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid #513462;border-radius:24px;background:#130d29b0;padding:17px;margin:0 0 6px;text-align:center}.brand-steps article{padding:5px 12px}.brand-steps article+article{border-inline-start:1px solid #513462}.brand-steps h3{color:var(--brand-gold);margin:3px 0;font-size:22px}.brand-steps p{color:#c6afd6;margin:0;font-size:13px;line-height:1.65}.brand-steps img{width:50px;height:44px}.step-symbol{display:block;font:900 48px/44px 'Baloo 2',sans-serif;color:var(--brand-pink)}.mask-symbol{font-size:38px}
.account-card{max-width:700px;margin:22px auto;background:#17102b;border-color:#634484}.account-card h2{font-size:25px}.account-note{font-size:14px}.account-beta{display:none}
.site-footer{border-color:#352545;background:transparent}.footer-brand{color:var(--brand-gold)}.store-badges{gap:10px}.store-badges span{background:#20152e;border:1px solid #6b487f;border-radius:12px;padding:10px 17px;color:#cfc0db}.analytics-note{font-size:12px;color:#aa96b9;line-height:1.8}
@media(max-width:900px){.shell{width:calc(100% - 24px)}.site-nav{grid-template-columns:auto 1fr}.nav-links{display:none}.nav-actions{gap:5px}.kashaftak-hero .hero-grid{grid-template-columns:minmax(0,1fr)!important;min-height:0!important}.kashaftak-hero .hero-visual{display:none!important}.kashaftak-hero{background:linear-gradient(180deg,#150d2bc9,#110c2cf2),url('/assets/kashaftak-hero.webp') center top/cover!important}.kashaftak-hero .hero-copy,.lang-ar .kashaftak-hero .hero-copy{padding:14px 14px 18px!important}.hero-brand img{width:85px;height:74px}.hero-brand h1{font-size:60px!important;line-height:1.4!important}.hero-brand>span{font-size:29px}.brand-tagline{font-size:27px;margin-top:8px!important}.kashaftak-hero .hero-copy>p.brand-translation{font-size:18px}.kashaftak-hero .hero-copy>p.brand-description{font-size:13px!important;margin:5px 0 10px!important}#setup{padding:14px!important}.brand-steps{padding:13px 0}.brand-steps h3{font-size:18px}.brand-steps p{font-size:11px}.account-card{margin-top:14px}.brand-lockup b{font-size:22px}.brand-lockup strong{font-size:13px}.site-nav img.brand-mark{width:35px;height:34px}.login-nav-btn{padding:6px 9px;font-size:11px}.site-nav .profile-nav-btn{height:34px;width:34px}.site-nav .icon-tool-btn{height:34px;width:34px;font-size:13px}}
@media(max-width:380px){.shell{width:calc(100% - 16px)}.site-nav{gap:6px}.nav-actions{gap:4px}.brand-lockup b{font-size:19px}.brand-lockup strong{font-size:11px}.site-nav img.brand-mark{width:28px}.site-nav #soundToggle{width:30px}.login-nav-btn{max-width:66px;white-space:normal;line-height:1.4}.kashaftak-hero .hero-copy,.lang-ar .kashaftak-hero .hero-copy{padding:10px!important}.brand-tagline{font-size:23px}.hero-brand h1{font-size:53px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Mobile controls must not inherit the earlier full profile pill. */
@media(max-width:900px){
 .site-nav{position:relative;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 0;align-items:center}
 .site-nav .brand-nav{min-width:0;gap:4px;justify-self:start}
 .site-nav .nav-actions{min-width:0;gap:5px}
 .site-nav .profile-nav-btn{width:36px!important;min-width:36px!important;height:36px;min-height:36px;padding:3px!important;justify-content:center}
 .site-nav .profile-nav-btn>span:last-child{display:none!important}
 .site-nav .icon-tool-btn{width:36px;height:36px;min-height:36px}
 .site-nav .login-nav-btn{padding:6px 8px;max-width:none;font-size:10px}
 .kashaftak-hero #setup{padding:14px!important}
 #setup .setup-head>div:first-child{display:block!important}
 #setup .primary-actions{grid-template-columns:minmax(0,1fr)!important}
 #setup .avatar-picker{min-width:0;max-width:100%}
 #setup .avatar-option{min-height:54px!important;height:54px!important}
}
@media(max-width:380px){.site-nav .brand-lockup b{font-size:18px}.site-nav .brand-lockup strong{font-size:11px}.site-nav img.brand-mark{width:24px;height:28px}.site-nav .nav-actions{gap:3px}.site-nav .login-nav-btn{font-size:9px;padding:5px}.site-nav #soundToggle{width:30px}.site-nav .brand-nav{gap:2px}}

/* One viewport for the active match; detailed reports open over the room. */
body.live-phase .shell{max-width:900px}
body.live-phase .site-nav{display:none!important}
body.live-phase #gameView>.game-card:not(.hidden):not(.game-hud){flex:1;min-height:0;margin-block:4px;display:flex;flex-direction:column;justify-content:center}
body.live-phase #roundRevealPanel{justify-content:flex-start!important}
.room-report-disclosure{margin-top:10px;border:1px solid #675383;border-radius:12px;text-align:start}
.room-report-disclosure>summary{padding:12px;cursor:pointer;min-height:44px;font-weight:800}
body.live-phase :is(#roundDetailDisclosure,.room-report-disclosure)[open]{position:fixed;inset:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));z-index:45;margin:0;background:#140d2b;overflow:auto;overscroll-behavior:contain;border:2px solid #8764b0;padding:0 12px 12px;box-shadow:0 0 0 100vmax #06031be8}
body.live-phase :is(#roundDetailDisclosure,.room-report-disclosure)[open]>summary{position:sticky;top:0;z-index:2;background:#24163c;min-height:48px;border-bottom:1px solid #675383}
@media(max-width:700px){
 body.live-phase .shell{padding-block:4px}
 body.live-phase #roundRevealPanel{padding:10px}
 .ceremony-head{gap:8px}.ceremony-head .reveal-crown{font-size:25px}.ceremony-head h2{font-size:19px;line-height:1.4}
 #hunterSubtitle,#eliminationAdvice{display:none}
 .hunter-spotlight{margin:6px 0;padding:7px;gap:10px;border-radius:12px}
 .hunter-avatar{width:42px;height:42px;border-radius:12px}.hunter-name{font-size:15px}.hunter-score{margin:0}.hunter-score strong{font-size:23px}.hunter-score span,.hunter-detail{font-size:10px}
 .ceremony-section-head{margin-top:3px}.ceremony-section-head h3{font-size:14px;margin:0}.ceremony-section-head .kicker{display:none}.ceremony-pot{padding:4px 8px}.ceremony-pot strong{font-size:16px}
 .round-player-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:6px}
 .round-player-card{padding:7px;gap:5px;align-items:flex-start}.round-report-avatar{width:28px;height:28px;border-radius:9px}.round-player-name{font-size:12px}.hunter-chip{display:none}.round-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin-top:3px}.round-metrics span{font-size:9px;line-height:1.4}.round-metrics b{font-size:11px}
 .round-detail-disclosure{margin-top:6px;border-radius:10px}.round-detail-disclosure>summary{padding:9px 10px;min-height:44px;font-size:12px}
 .elimination-decision{margin-top:6px;padding-top:6px}.power-banner{padding:5px 7px;gap:7px}.power-banner>span{font-size:18px}.power-banner .kicker{display:none}.power-banner h3{font-size:14px;margin:0}
 .elimination-player-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:6px}.elimination-player-card{display:flex;flex-direction:column;padding:6px;gap:4px;min-height:64px;justify-content:center;text-align:center}.elimination-avatar,.elimination-mini,.elimination-arrow{display:none}.elimination-player-info strong{font-size:12px;overflow-wrap:anywhere}
 .elimination-confirm{margin-top:6px;padding:8px}.confirm-icon,.elimination-confirm .kicker{display:none}.elimination-confirm h3{font-size:18px;margin:3px 0}.confirm-actions{margin-top:6px}.confirm-actions button{min-height:44px}.confirm-recovery,.elimination-confirm .phase-note{font-size:11px;line-height:1.4;margin:4px 0}
 .elimination-wait{padding:6px;margin:6px 0;font-size:11px;line-height:1.5}.elimination-retry{padding:6px;font-size:11px;line-height:1.4;margin:5px 0}
 .round-guide h2{font-size:23px;margin:6px 0}.round-guide ol{gap:9px;margin-block:10px;padding-inline-start:22px}.round-guide li{font-size:13px;line-height:1.6}.round-guide .phase-note{padding:8px;font-size:12px}
 #winnerPanel{padding:12px}.winner-confetti{font-size:15px}.winner-burst{font-size:36px}.winner-card h2{font-size:27px;margin:5px}.winner-funny{font-size:13px;margin:4px}.winner-reason{font-size:12px;margin:5px}.winner-pot{padding:7px 18px}.winner-pot strong{font-size:23px}.winner-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}.winner-actions button{min-height:44px;font-size:12px;padding:8px}.winner-actions #rematchBtn:not(.hidden){grid-column:1/-1}
}
@media(max-height:600px) and (max-width:700px){
 .hunter-spotlight{display:none}.round-player-card{padding:5px}.round-report-avatar{display:none}.round-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}.ceremony-head h2{font-size:17px}
 body.live-phase .question-card h2{font-size:21px;margin:8px auto}.active-avatar{width:40px;height:40px;margin:4px auto}.answer-btn{min-height:48px;font-size:13px}.turn-player{font-size:18px}.turn-banner{padding:5px 10px}.cheat-btn{min-height:44px}.phase-note{font-size:11px}
}

body.live-phase #roundRevealPanel>*{flex-shrink:0}
.players{grid-template-columns:repeat(2,minmax(0,1fr))}.players .player{min-width:0}.players .player>div:last-child{min-width:0}
@media(max-width:700px){
 .round-report-avatar{display:none}.hunter-name{display:none}.hunter-spotlight{padding:6px}.hunter-detail{line-height:1.3}
 .elimination-comment{display:none}.elimination-recovery{font-size:10px;line-height:1.3;margin-top:3px}.elimination-player-info{min-width:0}
 #setup #name{font-size:16px}
}
@media(max-width:700px){
 body.in-session:not(.live-phase) .shell{padding-block:4px}
 body.in-session #room>.arena-hud{padding:7px 10px;margin-block:4px;border-radius:14px}
 body.in-session .room-code{font-size:22px}.hud-right{gap:4px}.hud-right .status-pill,.hud-right .role-pill{font-size:9px;padding:6px 8px}
 #lobbyView .game-card{padding:9px;margin-block:6px}
 #lobbyView .section-title-row h2{font-size:20px;line-height:1.5;margin:3px 0}
 #lobbyView .players{gap:6px;margin-top:7px}.players .player{padding:7px;gap:7px}.players .player-avatar{width:34px;height:34px;border-radius:11px}.players .player-name{font-size:12px}.players .player-sub{font-size:8px;line-height:1.5}
 #lobbyView .audience-card{padding-block:6px;font-size:12px}.audience-card .watch-icon{font-size:21px}
 #roomQuestionSummary{font-size:10px;line-height:1.6;margin:0}#customizeGame>summary{font-size:12px;padding:8px 0;min-height:40px}
 #readyPanel{gap:6px;flex-wrap:wrap}#readyPanel .ready-mark{display:none}#readyPanel .ready-copy h2{font-size:15px;margin:2px 0}#readyText{font-size:10px;line-height:1.4}#startGameBtn{min-height:44px;font-size:12px;padding:6px 12px}
 #customizeGame[open]{position:fixed;inset:12px;z-index:45;overflow:auto;overscroll-behavior:contain;border:2px solid #8764b0;background:#140d2b;padding:0 14px 14px;border-radius:16px;box-shadow:0 0 0 100vmax #06031be8}
 #customizeGame[open]>summary{position:sticky;top:0;background:#24163c;min-height:48px;z-index:2}
}
@media(max-height:600px) and (max-width:700px){
 body.live-phase .social-card h2{font-size:18px;line-height:1.25;margin:4px 0}
 .social-card .dialogue-card{padding:6px 8px;margin:4px 0}.social-card .dialogue-card blockquote{font-size:12px;line-height:1.3;margin-top:2px}.social-card .dialogue-card>span{font-size:10px;line-height:1.3}
 .social-card .submitted-answer{padding:5px 8px;margin:5px 0}.social-card .submitted-answer strong{font-size:18px;line-height:1.3}.social-card .submitted-answer>span{font-size:10px}
 .social-card .relationship-note{font-size:10px;line-height:1.3;margin:5px 0}.social-card .answer-time{font-size:10px;margin:4px 0}
}
@media(max-height:600px) and (max-width:700px){
 #roundRevealPanel .ceremony-section-head{display:none}.round-player-cards{margin-top:5px}.round-player-card{padding:5px}.round-metrics span{font-size:9px;line-height:1.25}.round-metrics b{font-size:10px}.round-player-name{font-size:11px}
 .elimination-player-card{min-height:58px}.elimination-recovery{font-size:9px}.elimination-wait{font-size:10px}.elimination-retry{font-size:10px;line-height:1.25}
}
@media(max-width:700px){
 #eliminationConfirm:not(.hidden){position:fixed;z-index:46;top:50%;left:50%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:0;padding:16px;background:#1d1037;border:2px solid #dd517e;box-shadow:0 0 0 100vmax #06031be8}
 #eliminationConfirm h3{font-size:20px;line-height:1.4}#eliminationConfirm .confirm-actions{margin-top:12px}
}
@media(max-height:600px) and (max-width:700px){body.live-phase .social-card{padding:8px}.social-card .choice-instruction{font-size:10px;margin:5px 0}}
@media(max-height:600px) and (max-width:700px){
 body.live-phase #questionPanel{justify-content:flex-start!important;padding-top:10px}
 #questionPanel .turn-banner{flex-direction:row;justify-content:flex-start;gap:6px;min-height:44px;padding:7px 8px;padding-inline-end:44px}
 #questionPanel .turn-player{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.turn-status{font-size:10px}
 #questionPanel .active-avatar{position:absolute;inset-inline-end:18px;top:18px;width:32px;height:32px;margin:0}
 body.live-phase .question-card h2{font-size:19px;line-height:1.25;margin:7px auto}
 #questionPanel .answer-btn{overflow-wrap:anywhere;font-size:12px;line-height:1.3}
}

#questionPanel:has(#cheatReveal:not(.hidden)) #cheatBtn{display:none}
#questionPanel .cheat-reveal{min-height:44px;font-size:13px;line-height:1.4;margin-top:8px;padding:8px;overflow-wrap:anywhere}
@media(max-height:600px) and (max-width:700px){body.live-phase #questionPanel{padding:8px!important}#questionPanel .active-avatar{top:14px;inset-inline-end:14px}#questionPanel .answer-grid{gap:6px}#questionPanel .questionHint{margin-top:6px}}
#questionPanel:has(#cheatReveal:not(.hidden)) #questionHint{display:none}
@media(min-height:601px) and (max-width:700px){body.live-phase .question-card h2{font-size:22px;line-height:1.25;margin:8px auto}}
@media(max-width:700px){body.in-session .site-nav{display:none!important}#lobbyView .audience-card>div:first-child{display:flex;align-items:center;gap:8px}#lobbyView .audience-card{min-height:34px;padding-block:5px}}
@media(max-height:740px) and (max-width:700px){
 body.live-phase #questionPanel{justify-content:flex-start!important;padding-top:10px}
 #questionPanel .turn-banner{flex-direction:row;justify-content:flex-start;gap:6px;min-height:44px;padding:7px 8px;padding-inline-end:44px}
 #questionPanel .turn-player{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #questionPanel .active-avatar{position:absolute;inset-inline-end:18px;top:18px;width:32px;height:32px;margin:0}
}

body.live-phase .round-detail-disclosure[open]>summary:after{content:'×'}
.room-report-disclosure[open]>summary:after,#customizeGame[open]>summary:after{content:'×';float:inline-end;font-size:22px;color:#ffd17b}
@media(max-width:700px){#lobbyView .player .player-avatar.avatar-badge{width:34px;height:34px;flex-basis:34px;border-radius:11px}}
.toast{pointer-events:none}
@media(max-width:700px){#lobbyView .game-card{margin-block:4px}body.in-session:not(.live-phase) .room-exit-bar{padding-top:4px;padding-bottom:max(4px,env(safe-area-inset-bottom))}}
@media(max-width:700px){#readyPanel .ready-copy>.kicker{display:none}}
