:root{font-family:Tahoma,Arial,sans-serif;color:#633e29;background:#fff1d9;font-synthesis:none;--coral:#f36a4e;--teal:#098d82;--gold:#ffc64a;--blue:#3188c9;--brown:#734427}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at top,#fffcf3,#fff1d9 60%);padding:12px 18px max(24px,env(safe-area-inset-bottom))}main{width:min(100%,640px);margin:auto;position:relative}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-height:48px}button:active:not(:disabled){transform:translateY(2px) scale(.985)}button:disabled{cursor:default;opacity:.65}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #633622;outline-offset:4px}button{transition:transform .15s,box-shadow .15s}h1,h2,h3,p{margin-top:0}h2{font-size:26px;line-height:1.5;overflow-wrap:anywhere}p{font-size:16px;line-height:1.8}h3{font-size:19px}input,select{min-height:50px;padding:12px;border:1px solid #d2ab79;border-radius:13px;background:#fffaf0;color:#633e29;font-size:16px;width:100%;min-width:0}label{font-size:16px;line-height:1.7}fieldset{border:0;padding:0;margin:22px 0}legend{font-size:17px;font-weight:700;margin-bottom:12px}.utility{display:flex;justify-content:space-between;gap:8px}.small-btn{background:#fffaee;border:1px solid #e0c196;color:#785237;padding:9px 14px;border-radius:30px;font-size:14px}.small-btn[aria-pressed=true]{background:#daf1e9;border-color:#098d82}.brand-panel{position:relative;width:fit-content;min-width:240px;margin:15px auto 10px;background:linear-gradient(140deg,#835331,#472a20);border:5px solid #bf8850;border-radius:40px 40px 24px 24px;box-shadow:0 4px 0 #83532e,0 10px 20px #6d3b2020;padding:14px 38px;text-align:center;color:#ffda69}.brand-panel:before,.brand-panel:after{content:'';position:absolute;top:15%;bottom:15%;width:13px;background:repeating-linear-gradient(45deg,#fff0cb 0 3px,#ba4534 3px 6px,#163e33 6px 9px);border-radius:4px}.brand-panel:before{left:7px}.brand-panel:after{right:7px}.brand-small{font-size:24px;font-weight:700;color:#fff1d9}.brand-panel h1{font-size:46px;line-height:1.25;margin:0;text-shadow:0 3px 0 #392017}header>p{text-align:center;font-weight:bold;font-size:20px;margin:16px 0 20px}.hero{margin:0 -4px 18px;border-radius:26px;overflow:hidden;box-shadow:0 4px 18px #8a552426}.hero img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}.primary,.secondary{width:100%;padding:15px 18px;font-size:18px;font-weight:bold;border-radius:18px;border:2px solid #ffc298;min-height:58px;background:linear-gradient(#ff9570,#ef5e43);color:#fff;box-shadow:0 4px 0 #bc4c31;text-shadow:0 1px 2px #a13f21}.secondary{background:#fff8e9;color:#70442a;border-color:#e0bc8d;box-shadow:0 3px 0 #dec39f;text-shadow:none}.primary.big{font-size:27px;border-radius:35px;min-height:76px;margin-bottom:16px}.primary.teal{background:linear-gradient(#22aa97,#078378);border-color:#8ed6bc;box-shadow:0 4px 0 #00665e}.panel{background:#fffbf2;border:1px solid #e7cba2;border-radius:24px;padding:20px;box-shadow:0 5px 12px #97622f12;margin-bottom:20px}.count-options{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:12px 0}.count-options button{background:#ffe5ba;border:1px solid #dcaf71;color:#6a3c1e;border-radius:16px;font-size:22px;font-weight:bold;padding:10px 4px}.count-options button:nth-child(2){background:#ffa991}.count-options button:nth-child(3){background:#ffd269}.count-options button:nth-child(4){background:#40b5a4;color:#fff}.count-options [aria-pressed=true]{outline:3px solid #6e422a;outline-offset:2px}.custom{display:flex;align-items:center;gap:12px;margin:14px 0 0}.custom input{width:100px}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0 16px}.tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:25px;padding:20px 15px;min-height:175px;border:2px solid #ffffff70;box-shadow:0 6px 0 #a8732c35,0 10px 18px #86532715;color:white;background:var(--teal);width:100%;overflow:hidden}.tile:before,.tile:after{content:'';position:absolute;width:9px;top:13px;bottom:13px;background:repeating-linear-gradient(45deg,transparent 0 4px,#ffffff70 4px 6px,transparent 6px 10px);pointer-events:none}.tile:before{right:7px}.tile:after{left:7px}.tile.gold{background:linear-gradient(135deg,#ffd766,#ffad26);color:#58321c}.tile.teal{background:linear-gradient(135deg,#22b6a6,#07887d)}.tile.coral{background:linear-gradient(135deg,#ff8c71,#e94e3d)}.tile.blue{background:linear-gradient(135deg,#66baf0,#277ebc)}.tile.brown{background:linear-gradient(135deg,#a97645,#6f4026)}.tile-icon{font-size:56px;line-height:1.3;display:block;filter:drop-shadow(0 4px 3px #50331a30);pointer-events:none}.tile strong{font-size:22px;line-height:1.6;margin-top:8px;pointer-events:none}.tile small{font-size:14px;line-height:1.6;margin-top:4px;pointer-events:none}.tile.mix{min-height:100px;flex-direction:row;gap:15px;margin-top:0}.tile.mix strong{margin:0}.tile.mix .tile-icon{font-size:40px}.resume{margin-bottom:18px;border-color:#82cbb5;background:#eaf6ed}.resume p{margin:5px 0 14px;color:#496451}.players{display:grid;gap:12px}.player-input{display:flex;align-items:center;gap:12px}.player-input>span{background:#f3dfbd;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;flex:none;font-size:14px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:10px}.segmented label{position:relative;border:1px solid #d4b38a;border-radius:16px;background:#fff9ec;padding:14px;cursor:pointer}.segmented label:has(input:checked){border:2px solid #098d82;background:#e6f5ed;padding:13px}.segmented input{width:18px;min-height:18px;height:18px;margin:0 0 0 7px;accent-color:#098d82}.segmented small{display:block;font-size:14px;margin-top:7px;color:#825f46}.back{border:0;background:transparent;color:#7c563b;font-size:15px;padding:12px;margin:15px auto;display:block}.caption{color:#88674d;font-size:14px;line-height:1.8;margin:8px 0}.section-pill{display:inline-flex;align-items:center;gap:7px;background:#f5dfb9;color:#684326;border-radius:30px;padding:8px 14px;font-size:14px}.game-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 12px;font-size:14px}.progress{height:6px;background:#eed8b6;border-radius:8px;overflow:hidden;margin:12px 0 24px}.progress>i{display:block;height:100%;background:#159b88;transition:width .25s}.player-title{text-align:center;font-size:19px;line-height:1.8}.player-title strong{font-size:28px;display:block;color:#75472a;overflow-wrap:anywhere}.question-card{text-align:center;padding:30px 24px;position:relative;min-height:220px;display:flex;flex-direction:column;justify-content:center}.question-card:before{content:'';height:7px;border-radius:20px;position:absolute;top:0;left:20px;right:20px;background:var(--teal)}.question-card.funny:before{background:var(--gold)}.question-card.challenge:before{background:var(--coral)}.question-card.memories:before{background:var(--blue)}.question-card h2{font-size:clamp(24px,4.5vw,32px);line-height:1.8;margin:12px 0}.question-card .tile-icon{font-size:40px}.action-row{display:flex;gap:12px;margin:16px 0}.action-row>*{flex:1;min-width:0}.point{margin:16px 0;background:#ffd66b;color:#634216;text-shadow:none;border-color:#ecc052;box-shadow:0 4px 0 #d7ab46}.point.given{background:#d4ecda;box-shadow:none;color:#32643d;border-color:#b4d5b9}.turn-note{text-align:center;font-size:14px;margin:15px 0;color:#8a654a}.options{display:grid;gap:12px;margin:20px 0}.option{background:#fffaf0;border:1px solid #d9b588;border-radius:16px;padding:16px;text-align:right;color:#68442b;font-size:18px;min-height:60px;display:flex;gap:12px;align-items:center}.option span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f0d7b1;font-size:14px;flex:none}.pass{text-align:center;padding:35px 24px}.pass .tile-icon{font-size:70px}.pass h2{font-size:30px;margin:20px 0 10px}.answer-reveal{background:#e7f4e9;border:1px solid #96c8a5;color:#285b35;padding:20px;border-radius:20px;text-align:center;margin:20px 0}.answer-reveal strong{display:block;font-size:25px;line-height:1.8;margin-top:8px}.guess-results{list-style:none;padding:0;margin:20px 0;display:grid;gap:9px}.guess-results li{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:13px;background:#fff9ed;border-radius:13px;border:1px solid #e8ceb0;font-size:16px}.scoreline{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.score-chip{font-size:14px;background:#fff8e8;border:1px solid #dfc09b;border-radius:30px;padding:9px 13px;overflow-wrap:anywhere;max-width:100%}.score-chip.current{background:#168f82;color:white;border-color:#168f82}.ranking{display:grid;gap:10px;margin:25px 0}.rank{padding:16px;border:1px solid #dec197;border-radius:16px;background:#fffaee;display:flex;align-items:center;gap:12px}.rank .name{flex:1;overflow-wrap:anywhere}.rank strong{color:#0b8073}.celebration{position:relative;text-align:center;overflow:hidden;padding:35px 22px}.celebration .tile-icon{font-size:76px}.confetti{position:absolute;top:-15px;width:8px;height:13px;background:#e76545;animation:fall 2.4s ease-in infinite;pointer-events:none}.confetti:nth-child(3n){background:#16a392}.confetti:nth-child(4n){background:#f1ba37}@keyframes fall{to{transform:translateY(380px) rotate(280deg);opacity:0}}.screen{animation:appear .2s ease}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}footer{text-align:center;padding:24px 6px 10px;color:#8c6748;font-size:14px;border-top:1px solid #e8ccaa;margin-top:24px}.warning{padding:14px;background:#fff3c2;border-radius:14px;font-size:14px}dialog{border:1px solid #deb887;border-radius:24px;background:#fff9ed;color:#633e29;padding:25px;width:calc(100% - 32px);max-width:500px;max-height:85svh;overflow:auto;box-shadow:0 20px 80px #482c2840}dialog::backdrop{background:#38231aa8;backdrop-filter:blur(3px)}dialog li{font-size:16px;line-height:1.9;margin-bottom:10px}dialog ol{padding-right:22px}.sadu-edge{height:7px;position:absolute;top:0;left:0;right:0;background:repeating-linear-gradient(45deg,#ac4939 0 6px,#ffefcf 6px 12px,#156c5b 12px 18px,#ffefcf 18px 24px)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}body.playing header{display:none}body.playing main{max-width:720px}[hidden]{display:none!important}@media(min-width:900px){body{padding-top:22px}main{max-width:800px}.home-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.home-layout .hero{position:sticky;top:20px;margin:0;aspect-ratio:3/4}.home-layout .hero img{height:100%;object-fit:cover;object-position:center}.tiles{margin-top:18px}.tile{min-height:180px}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.setup-grid .panel{margin:0}.players{max-height:65vh;overflow:auto;padding:5px}.question-card{padding:38px}.options{grid-template-columns:1fr 1fr}}@media(max-width:360px){body{padding-inline:12px}.tile{padding:16px 12px;min-height:160px}.tile strong{font-size:19px}.tile small{font-size:13px}.tile-icon{font-size:48px}.action-row{gap:8px}.action-row button{font-size:16px;padding:13px 9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}
.guess-results li>span{min-width:0;flex:1;overflow-wrap:anywhere}.celebration h3{overflow-wrap:anywhere;line-height:1.8}.panel h3{margin-bottom:12px}
.tile strong,.tile small{display:block}.tile.mix>div{min-width:0;flex:1}.tile.mix .tile-icon{flex:none}
.section-icon{display:inline-block;width:1.4em;height:1.4em;vertical-align:middle}.tile-icon .section-icon{width:64px;height:64px;display:block;margin:auto}.tile.mix .section-icon{width:42px;height:42px}.section-pill .section-icon{width:20px;height:20px;filter:drop-shadow(0 0 1px #754425)}.question-card .section-icon{width:45px;height:45px;filter:drop-shadow(0 0 1px #754425)}.celebration .section-icon,.pass .section-icon{width:76px;height:76px}
.question-card .section-icon,.section-pill .section-icon,h2>.section-icon{filter:brightness(.55) sepia(.7)}
.offline-status{font-size:14px;line-height:1.8;text-align:center;color:#826347;margin:20px 0 8px}.offline-status.ready{color:#137c68}

.tile-wrap{position:relative;min-width:0}.tile-wrap>.tile{height:100%;padding-top:48px}.section-info{position:absolute;top:8px;left:8px;width:44px;min-height:44px;border-radius:50%;border:1px solid #ffffff99;background:#fff8e9;color:#633e29;font-size:27px;display:grid;place-items:center;box-shadow:0 2px 5px #482c2820}.mix-wrap>.tile{padding-top:20px;padding-left:62px}.finish-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;margin:24px 0 12px;padding:12px 18px;border:2px solid #a54a35;border-radius:16px;background:#fff5ed;color:#8d3525;font-size:17px;font-weight:bold}.finish-btn>span{font-size:22px}.help-example{background:#f8e7c9;border-radius:14px;padding:14px}

.tile.purple{background:linear-gradient(135deg,#9b72d4,#64459c)}.tile.orange{background:linear-gradient(135deg,#ffc05c,#df771f)}.new-section-icon{font-size:54px;line-height:1.3;display:inline-block}.section-pill .new-section-icon{font-size:22px}h2>.new-section-icon{font-size:30px}.question-card .new-section-icon{font-size:44px}.question-card.culture:before{background:#8354b7}.question-card.speed:before{background:#e78b24}.option.correct:disabled{background:#e4f4e7;border:2px solid #378349;opacity:1;color:#23592f}.option.incorrect:disabled{background:#ffe8e0;border:2px solid #b85b41;opacity:1}.quiz-topic{text-align:center}.speed-clock{display:flex;align-items:center;justify-content:center;gap:12px;background:#fff0c9;border:2px solid #e2a34d;border-radius:20px;padding:14px;margin:18px 0}.speed-clock strong{font-size:40px;font-variant-numeric:tabular-nums}.speed-clock.done{background:#f3e8d7}.speed-clock span{font-size:18px}
.finish-btn>.section-icon{width:22px;height:22px}.primary>.section-icon{width:24px;height:24px;margin-inline-end:6px}

.tile.emerald{background:linear-gradient(145deg,#2b9973,#12644c)}.tile.navy{background:linear-gradient(145deg,#419ed3,#245680)}.tile.plum{background:linear-gradient(145deg,#af68aa,#754778)}.question-card.religion{border-top:7px solid #218464}.question-card.sports{border-top:7px solid #347daa}.question-card.scientists{border-top:7px solid #92558e}
@font-face{font-family:MajlisQuran;src:url('fonts/AmiriQuran.ttf') format('truetype');font-display:swap}.question-card.religion h2{font-family:MajlisQuran,Tahoma,serif;font-weight:400;line-height:1.9}

.mix-picker{margin-bottom:24px}.mix-choices{display:grid;gap:8px;margin-top:12px}.mix-choices label{display:flex;align-items:center;gap:10px;cursor:pointer;border:1px solid #e1bc8d;border-radius:14px;padding:10px;min-height:56px;background:#fffaf0}.mix-choices label:has(input:checked){background:#e4f5e9;border-color:#218464}.mix-choices input{width:22px;height:22px;accent-color:#218464;flex-shrink:0}.mix-choices .section-icon{width:30px;height:30px;filter:brightness(.55)}

.utility{flex-wrap:wrap;gap:8px}.utility .small-btn{flex:1 1 auto}.small-btn[aria-pressed="true"]{background:#d9eee5;border-color:#218464;color:#165d49}

/* Mirroring uses the phone viewport; the explicit mode also works without fullscreen APIs. */
body{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
body.tv-mode main,body.tv-mode.playing main{width:100%;max-width:1600px}
body.tv-mode .utility{justify-content:center}
body.tv-mode .utility .small-btn{flex:0 1 auto}
body.tv-mode footer,body.tv-mode .offline-status{display:none}
body.tv-mode .question-card h2{font-size:clamp(26px,3vw,46px)}
body.tv-mode .option{font-size:clamp(20px,2vw,30px)}
body.tv-mode .score-chip{font-size:18px}
@media(orientation:landscape) and (min-width:600px){
 body.tv-mode{padding-top:10px;padding-bottom:16px}
 body.tv-mode .brand-panel{margin:10px auto;padding:8px 30px;min-width:200px}
 body.tv-mode .brand-panel h1{font-size:34px}
 body.tv-mode header>p{margin:10px 0}
 body.tv-mode .home-layout{display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);gap:20px;align-items:start}
 body.tv-mode .home-layout .hero{position:sticky;top:10px;margin:0;aspect-ratio:3/4}
 body.tv-mode .hero img{height:100%;object-fit:cover}
 body.tv-mode .tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 body.tv-mode .tile{min-height:150px;padding-bottom:12px}
 body.tv-mode .tile strong{font-size:clamp(18px,1.65vw,26px)}
 body.tv-mode .tile small{font-size:14px}
 body.tv-mode .tile-icon .section-icon{width:44px;height:44px}
 body.tv-mode .setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
 body.tv-mode .setup-grid .panel{min-width:0}
 body.tv-mode .players{max-height:55svh;overflow:auto;padding:4px}
 body.tv-mode.playing .screen:has(.question-card){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:24px;align-items:start}
 body.tv-mode.playing .screen:has(.question-card)>*{grid-column:2;min-width:0}
 body.tv-mode.playing .screen:has(.question-card)>.game-top,body.tv-mode.playing .screen:has(.question-card)>.progress,body.tv-mode.playing .screen:has(.question-card)>.player-title,body.tv-mode.playing .screen:has(.question-card)>.scoreline{grid-column:1/-1}
 body.tv-mode.playing .screen:has(.question-card)>.question-card{grid-column:1;grid-row:4/span 8;margin:0;min-height:280px;padding:20px;position:sticky;top:12px}
 body.tv-mode .game-top{margin:10px 0 6px;font-size:16px}
 body.tv-mode .progress{margin:4px 0 8px}
 body.tv-mode .player-title{font-size:16px;display:flex;justify-content:center;gap:12px;align-items:center;margin-bottom:12px}
 body.tv-mode .player-title strong{font-size:clamp(24px,2vw,36px)}
 body.tv-mode .question-card h2{font-size:clamp(22px,2.4vw,40px);line-height:1.7}
 body.tv-mode .question-card.religion h2{line-height:1.9}
 body.tv-mode .options{grid-template-columns:1fr 1fr;margin:0 0 10px;gap:10px}
 body.tv-mode .option{padding:12px;font-size:clamp(18px,1.6vw,28px);overflow-wrap:anywhere}
 body.tv-mode .action-row{margin:12px 0}
 body.tv-mode .finish-btn{margin:12px 0}
 body.tv-mode .answer-reveal{margin:10px 0;padding:12px}
 body.tv-mode .answer-reveal strong{font-size:24px}
 body.tv-mode .pass,body.tv-mode .celebration{max-width:900px;margin-inline:auto}
 body.tv-mode .ranking{max-width:900px;margin-inline:auto}
}
@media(orientation:portrait){body.tv-mode .options{grid-template-columns:1fr}body.tv-mode .utility .small-btn{flex:1 1 auto}}
/* Motion changes only transform/opacity; reduced-motion remains authoritative. */
:root{--fx-ease:cubic-bezier(.22,.8,.25,1)}
.screen{animation:fx-enter 240ms var(--fx-ease) both}
.screen .tile-wrap,.screen .setup-grid>.panel,.screen .option,.screen .rank{animation:fx-stagger 260ms var(--fx-ease) both;animation-delay:var(--fx-delay,0ms)}
.screen .question-card,.screen .answer-reveal{animation:fx-card 280ms var(--fx-ease) both}
button{transition:transform 180ms var(--fx-ease),opacity 180ms ease}
button:active:not(:disabled){transform:scale(.975)}
.tile[aria-pressed=true]{outline:3px solid #fff0cf;outline-offset:2px;box-shadow:0 5px 15px #73442730}
@media(hover:hover){.tile:hover{transform:translateY(-3px) scale(1.012)}}
.score-chip{position:relative}.point-float{position:absolute;inset-inline-end:8px;top:-8px;color:#126b56;font-size:22px;font-weight:bold;pointer-events:none;animation:fx-point 600ms ease-out both;white-space:nowrap}
.screen{view-transition-name:game-screen}
::view-transition-old(game-screen){animation:fx-exit 180ms var(--fx-ease) both}
::view-transition-new(game-screen){animation:fx-enter 260ms var(--fx-ease) both}
html[data-fx-direction=back]::view-transition-old(game-screen){animation-name:fx-back-exit}
html[data-fx-direction=back]::view-transition-new(game-screen){animation-name:fx-back-enter}
::view-transition-group(game-screen){animation-duration:260ms}
.confetti{animation-iteration-count:2}
@keyframes fx-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes fx-exit{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-6px)}}
@keyframes fx-back-enter{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
@keyframes fx-back-exit{from{opacity:1;transform:none}to{opacity:0;transform:translateX(10px)}}
@keyframes fx-stagger{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes fx-card{from{opacity:0;transform:translateY(6px) scale(.995)}to{opacity:1;transform:none}}
@keyframes fx-point{0%{opacity:0;transform:translateY(0) scale(.9)}20%{opacity:1;transform:translateY(-8px) scale(1)}100%{opacity:0;transform:translateY(-30px) scale(1)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.point-float{animation:none!important}::view-transition-old(game-screen),::view-transition-new(game-screen),::view-transition-group(game-screen){animation:none!important}}
.fx-control-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;margin-inline-end:7px;pointer-events:none}.primary .fx-control-icon{filter:brightness(0) invert(1)}.primary.point .fx-control-icon{filter:none}

/* Jammatna home only. Gameplay, setup, dialogs and persisted state keep their original styles. */
body.home-view{background:#f5dfbd;position:relative;isolation:isolate;padding-top:max(16px,env(safe-area-inset-top))}
body.home-view:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,transparent 0px,#efd2a110 280px,#f5dfbd65 480px,#f5dfbd 740px),url('majlis-home-v2.webp') center top/auto 880px no-repeat}
body.home-view main{width:min(100%,1180px);max-width:1180px}
body.home-view #brand{display:none}
body.home-view .utility{width:fit-content;max-width:100%;margin:0 auto;background:#fff3dded;border:1px solid #fffbef;border-radius:28px;box-shadow:0 8px 32px #66380c18;padding:6px;gap:2px;justify-content:center}
body.home-view .utility .small-btn{flex:0 1 auto;background:transparent;border-color:transparent;color:#5e3920;padding:10px 13px;min-height:44px;font-size:14px}
body.home-view .utility .small-btn[aria-pressed=true]{background:#e0e6ce;border-color:#71936e;color:#214a37}
body.home-view .home-welcome{min-height:540px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:55px 20px 40px;gap:30px}
body.home-view .home-eyebrow{font-size:15px;font-weight:700;color:#573320;margin:0 0 12px;text-shadow:0 1px 6px #fff5df}
body.home-view .home-wordmark h1{font-size:clamp(78px,11vw,146px);font-weight:900;line-height:1.25;margin:0;color:#f5bb6b;text-shadow:0 2px 0 #e6a358,0 5px 0 #995024,0 8px 0 #643817,0 11px 15px #713d2650;letter-spacing:-3px}
body.home-view .home-tagline{font-size:clamp(21px,3vw,30px);font-weight:700;color:#29452d;margin:15px 0 0;text-shadow:0 2px 14px #fff4d5}
body.home-view .home-start{background:linear-gradient(160deg,#fff5e3,#edd2a7);border:2px solid #fff9ec;border-radius:70px 70px 35px 35px;color:#264c36;padding:18px 55px;display:flex;align-items:center;flex-direction:column;gap:8px;min-width:240px;box-shadow:0 7px 0 #d6ae7d,0 14px 28px #66351630;font-size:25px;font-weight:700}
body.home-view .home-play-symbol{display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#608259,#294f39);color:#ffedce;width:66px;height:66px;padding-inline-start:4px;box-shadow:inset 0 0 0 5px #ffffff20,0 5px 0 #25422e;font-size:28px}
body.home-view .home-start small{font-size:14px;font-weight:400;color:#4e6247}
body.home-view .home-content{max-width:1150px;margin:auto}
body.home-view .home-count{max-width:560px;padding:16px 22px;margin:0 auto 30px;background:#fff7e7ee;border:1px solid #fff5df;border-radius:26px;box-shadow:0 8px 28px #8c501b14}
body.home-view .home-count h3{text-align:center;color:#653e23;margin:0 0 12px;font-size:17px}
body.home-view .home-count .count-options{margin:0;gap:10px}
body.home-view .home-count .count-options button{border:1px solid #d7bd8d;background:#f1e1c0;color:#604122;border-radius:14px;font-size:19px;min-height:48px}
body.home-view .home-count .count-options [aria-pressed=true]{background:#3f6b4e;color:#fff8e8;outline:2px solid #e4bd76;outline-offset:2px}
body.home-view .home-count .caption{text-align:center;margin-bottom:0;color:#73583d;font-size:13px}
body.home-view .home-section-heading{display:flex;align-items:center;justify-content:center;gap:20px;margin:15px 0 25px;color:#986232}
body.home-view .home-section-heading h2{font-size:22px;color:#633a1c;margin:0}
body.home-view .home-section-heading:before,body.home-view .home-section-heading:after{content:'';width:70px;height:1px;background:#b58654}
body.home-view .home-category-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin:0}
body.home-view .home-category{--arch-tone:#446e52;display:flex;flex-direction:column;justify-content:flex-start;background:linear-gradient(160deg,#fff7e4,#f5deb8);color:#62401e;border:1px solid #fff2d6;border-radius:90px 90px 28px 28px;padding:10px 10px 18px;min-height:268px;box-shadow:0 10px 20px #9b5e1f1c;overflow:hidden}
body.home-view .home-category:before,body.home-view .home-category:after{display:none}
body.home-view .home-category.emerald{--arch-tone:#3e6548}
body.home-view .home-category.navy{--arch-tone:#ba5834}
body.home-view .home-category.purple{--arch-tone:#3e7598}
body.home-view .home-category.plum{--arch-tone:#bd8133}
body.home-view .home-category.orange{--arch-tone:#815a9a}
body.home-view .home-category.brown{--arch-tone:#477a6a}
body.home-view .home-category.gold{--arch-tone:#d49a39}
body.home-view .home-category.coral{--arch-tone:#b86343}
body.home-view .home-category.blue{--arch-tone:#548390}
body.home-view .home-category.teal{--arch-tone:#59845d}
body.home-view .home-category-art{display:grid;place-items:center;border-radius:90px 90px 14px 14px;width:100%;height:150px;position:relative;background:radial-gradient(circle at 50% 65%,#ffffff26,transparent 65%),linear-gradient(145deg,#ffffff15,transparent),var(--arch-tone);box-shadow:inset 0 0 0 5px #ffffff12;pointer-events:none}
body.home-view .home-category-art .section-icon{width:78px;height:78px;filter:drop-shadow(0 7px 4px #39251930)}
body.home-view .home-category-art .tile-icon{font-size:62px}
body.home-view .home-category-copy{padding:10px 0 0;pointer-events:none;width:100%}
body.home-view .home-category strong{font-size:18px;line-height:1.65;color:#613b1e;margin:0}
body.home-view .home-category small{font-size:14px;line-height:1.6;color:#796349;max-width:100%;margin-top:3px}
body.home-view .home-category-open{margin-top:auto;background:var(--arch-tone);color:#fff5d9;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:26px;line-height:1;padding-bottom:3px;pointer-events:none}
body.home-view .home-category[aria-pressed=true]{outline:3px solid #4c7051;outline-offset:4px;box-shadow:0 12px 22px #6c542d28}
body.home-view .home-category-grid .section-info{top:112px;left:14px;min-height:36px;width:36px;font-size:23px;border:1px solid #ffeecf;color:#684326;background:#fff1d9;box-shadow:0 2px 4px #44260f20}
body.home-view .resume{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:740px;margin:0 auto 25px;background:#f3f6e8e8;border-color:#c7d6b2}
body.home-view .resume h2{font-size:20px;margin-bottom:4px}
body.home-view .resume p{font-size:14px;margin:0}
body.home-view .resume .primary{width:auto;min-width:155px;flex-shrink:0}
body.home-view .offline-status{margin-top:28px;color:#665131}
body.home-view footer{border-color:#cbab7950;color:#7d5933}
@media(min-width:1500px){body.home-view:before{background-size:cover,cover}body.home-view .home-welcome{min-height:560px}}
@media(max-width:900px){body.home-view .home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}body.home-view .home-welcome{min-height:510px}body.home-view:before{background-size:auto,auto 830px}}
@media(max-width:540px){body.home-view .utility{border-radius:22px;width:100%}body.home-view .utility .small-btn{padding:8px 9px;font-size:14px}body.home-view .home-welcome{min-height:460px;padding:36px 8px 32px;gap:25px}body.home-view .home-wordmark h1{font-size:86px}body.home-view .home-start{padding:16px 38px;min-width:230px;font-size:24px}body.home-view .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body.home-view .home-category{min-height:252px;padding:8px 8px 16px;border-radius:80px 80px 25px 25px}body.home-view .home-category-art{height:137px}body.home-view .home-category strong{font-size:17px}body.home-view .home-category small{font-size:14px}body.home-view .home-category-grid .section-info{top:100px;left:11px;width:36px;min-height:36px}body.home-view .home-category-art .section-icon{width:70px;height:70px}body.home-view .home-section-heading{gap:10px}body.home-view .home-section-heading:before,body.home-view .home-section-heading:after{width:30px}body.home-view .home-section-heading h2{font-size:20px}body.home-view .home-count{padding:16px}body.home-view .resume{flex-direction:column;gap:14px;text-align:center}body.home-view .resume .primary{width:100%}body.home-view:before{background-position:center top,55% top;background-size:auto,auto 750px}}
@media(max-width:350px){body.home-view .home-category-grid{gap:10px}body.home-view .home-category strong{font-size:16px}body.home-view .home-count .count-options button{font-size:16px}body.home-view .home-wordmark h1{font-size:78px}}
/* Reference-matched art assets remain independent from the live controls. */
body.home-view main{display:flex;flex-direction:column}
body.home-view #app{order:1}
body.home-view .utility{order:3;margin:20px auto 0;width:fit-content;max-width:100%;padding:10px 16px;border-radius:45px;background:#fff2dbe8}
body.home-view .offline-status{order:4}
body.home-view footer{order:5}
body.home-view #storageWarning{order:4}
body.home-view:before{background-image:linear-gradient(180deg,transparent 0px,#efd2a108 420px,#f5dfbd80 720px,#f5dfbd 980px),url('majlis-home-v2.webp');background-position:center top;background-size:auto,auto 1000px}
body.home-view .home-top-actions{display:flex;align-items:center;justify-content:center;position:absolute;inset-inline-start:0;top:6px;z-index:1;background:#fff1dcde;border:1px solid #fff4e3;border-radius:35px;padding:5px 12px;box-shadow:0 6px 20px #72471912}
body.home-view .home-top-actions button{border:0;background:none;color:#55351d;font-size:26px;width:52px;height:48px;padding:5px}
body.home-view .home-top-actions button+button{border-inline-start:1px solid #dcbf98}
body.home-view .home-welcome{padding:50px 15px 22px;min-height:660px;gap:25px;justify-content:flex-start}
body.home-view .home-wordmark{width:min(100%,570px)}
body.home-view .home-wordmark h1{font-size:inherit;line-height:1;margin:0;text-shadow:none;letter-spacing:normal}
body.home-view .home-logo{width:100%;height:auto;display:block;pointer-events:none}
body.home-view .home-tagline{margin:-5px 0 0;font-size:28px;display:flex;align-items:center;justify-content:center;gap:12px;color:#34472e}
body.home-view .home-tagline:before,body.home-view .home-tagline:after{content:'◆';font-size:15px;color:#707c45}
body.home-view .home-start{width:370px;max-width:90%;height:205px;min-width:0;padding:24px 35px 25px;border:0;border-radius:0;background:url('jammatna-cushion-v3.webp') center/100% 100% no-repeat;box-shadow:none;gap:13px;font-size:26px;justify-content:center;color:#244f38}
body.home-view .home-play-symbol{width:76px;height:76px;font-size:35px;flex-shrink:0}
body.home-view .home-section-heading{margin:18px 0 26px}
body.home-view .home-category-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
body.home-view .home-category{--arch-art-height:190px;--smooth-arch:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 0 C54 0 57 4 63 7 C85 19 100 24 100 40 L100 88 Q100 100 88 100 L12 100 Q0 100 0 88 L0 40 C0 24 15 19 37 7 C43 4 46 0 50 0Z'/%3E%3C/svg%3E");min-height:300px;border-radius:0 0 29px 29px;clip-path:none;-webkit-mask-image:var(--smooth-arch),linear-gradient(#000,#000);mask-image:var(--smooth-arch),linear-gradient(#000,#000);-webkit-mask-size:100% calc(var(--arch-art-height) + 8px),100% calc(100% - var(--arch-art-height) + 20px);mask-size:100% calc(var(--arch-art-height) + 8px),100% calc(100% - var(--arch-art-height) + 20px);-webkit-mask-position:center top,center bottom;mask-position:center top,center bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;border:0;padding:8px 8px 18px;background:#fff0d5;box-shadow:none;overflow:hidden}
body.home-view .home-category-art{height:var(--arch-art-height);flex-shrink:0;border-radius:0;box-shadow:none;-webkit-mask-image:var(--smooth-arch);mask-image:var(--smooth-arch);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;background-image:url('jammatna-categories-v3.webp');background-size:300% 200%;background-repeat:no-repeat}
body.home-view .artwork-religion{background-position:0% 0%}
body.home-view .artwork-sports{background-position:50% 0%}
body.home-view .artwork-culture{background-position:100% 0%}
body.home-view .artwork-scientists{background-position:0% 100%}
body.home-view .artwork-speed{background-position:50% 100%}
body.home-view .artwork-mix{background-position:100% 100%}
body.home-view .home-category-art .tile-icon{visibility:hidden}
body.home-view .home-category strong{font-size:17px}
body.home-view .home-category small{font-size:14px;margin-bottom:10px}
body.home-view .home-category-open{width:30px;height:30px;font-size:25px}
body.home-view .home-category-grid .section-info{top:155px;left:9px;width:36px;min-height:36px;font-size:23px;z-index:1}
body.home-view .home-category[aria-pressed=true]{outline:0;box-shadow:inset 0 -4px #46694c}
body.home-view .home-category:focus-visible{outline:0;box-shadow:inset 0 0 0 5px #223f2b}
body.home-view .home-more{margin:25px 0 0}
body.home-view .home-more>summary,body.home-view .home-count>summary{cursor:pointer;min-height:48px;padding:14px 20px;color:#664322;font-size:16px;text-align:center;list-style:revert}
body.home-view .home-more>summary{width:fit-content;margin:auto;border-bottom:1px solid #c79e6c}





body.home-view .home-count{margin:20px auto 0;padding:0 18px 6px;background:#fff4debb;border:1px solid #fff4de;box-shadow:none}
body.home-view .home-count:not([open]){padding-bottom:0}
body.home-view .home-count h3{margin:12px 0}
body.home-view .utility .small-btn{padding:12px 15px;border-radius:20px;font-size:14px;border-inline-end:1px solid #dfc29b}
@media(max-width:900px){body.home-view .home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.home-view .home-welcome{min-height:610px;padding-top:60px}body.home-view .home-wordmark{max-width:510px}}
@media(max-width:540px){body.home-view .home-top-actions{inset-inline-start:0;top:0;padding:2px 8px}body.home-view .home-top-actions button{width:42px;height:42px;min-height:42px;font-size:23px}body.home-view .home-welcome{padding:64px 0 16px;min-height:440px;gap:18px}body.home-view .home-wordmark{width:100%;max-width:370px}body.home-view .home-tagline{font-size:20px;gap:8px}body.home-view .home-tagline:before,body.home-view .home-tagline:after{font-size:11px}body.home-view .home-start{height:155px;width:285px;font-size:22px;padding:20px 28px;gap:10px}body.home-view .home-play-symbol{width:58px;height:58px;font-size:27px}body.home-view .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body.home-view .home-category{--arch-art-height:170px;min-height:278px}body.home-view .home-category-art{height:var(--arch-art-height)}body.home-view .home-category-grid .section-info{top:137px;left:10px}body.home-view .utility{width:100%;padding:8px;border-radius:25px}body.home-view .utility .small-btn{padding:10px 8px;flex:1 1 auto}body.home-view:before{background-size:auto,auto 740px;background-image:linear-gradient(180deg,transparent 0px,#efd2a100 300px,#f5dfbd80 480px,#f5dfbd 720px),url('majlis-home-v2.webp')}}
@media(prefers-reduced-motion:reduce){body.home-view{scroll-behavior:auto}}

/* All category cards share the same pointed-arch component, art height and hit area. */
body.home-view .home-extra-grid{max-width:none;margin:22px 0 0;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
body.home-view .home-extra-grid>.tile-wrap:first-child{grid-column:2}
body.home-view .home-category-art.artwork-funny,body.home-view .home-category-art.artwork-challenge,body.home-view .home-category-art.artwork-memories,body.home-view .home-category-art.artwork-know{background-image:url('jammatna-extra-categories-v5.webp');background-size:200% 200%}
body.home-view .home-category-art.artwork-funny{background-position:0% 0%}
body.home-view .home-category-art.artwork-challenge{background-position:100% 0%}
body.home-view .home-category-art.artwork-memories{background-position:0% 100%}
body.home-view .home-category-art.artwork-know{background-position:100% 100%}
@media(max-width:900px){body.home-view .home-extra-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}body.home-view .home-extra-grid>.tile-wrap:first-child{grid-column:auto}body.home-view .home-extra-grid>.tile-wrap:last-child{grid-column:2}}
@media(max-width:540px){body.home-view .home-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.home-view .home-extra-grid>.tile-wrap:last-child{grid-column:auto}}

/* The frame and the illustration use the same smooth crown; all content and hit areas remain live. */
body.home-view .home-category-grid>.tile-wrap{filter:drop-shadow(0 7px 8px #6e42201c)}

/* Approved framed artwork: a single SVG clipping path and outline, independent of text height. */
body.home-view .home-category-grid>.tile-wrap{container-type:inline-size;filter:drop-shadow(0 6px 8px #6e422021)}
body.home-view .home-category-grid .home-category{min-height:0;height:100%;padding:0;border:0;border-radius:0;background:none;clip-path:none;-webkit-mask:none;mask:none;overflow:visible;box-shadow:none;gap:0}
body.home-view .home-category-grid .home-category-art{display:block;position:relative;z-index:1;width:100%;height:auto;aspect-ratio:6/7;background:none;border-radius:0;-webkit-mask:none;mask:none;box-shadow:none;overflow:hidden}
body.home-view .category-frame{display:block;width:100%;height:100%;overflow:hidden}
body.home-view .home-category-body{width:calc(100% - 16px);flex:1;display:flex;align-items:center;flex-direction:column;position:relative;margin:-30px 8px 6px;padding:32px 7px 14px;background:linear-gradient(150deg,#fff5e3,#f8e7ca);border:1px solid #bc9658;border-top:0;border-radius:0 0 24px 24px;box-shadow:0 0 0 5px #fff0d5}
body.home-view .home-category-grid .home-category-copy{padding:0 0 10px;display:flex;flex-direction:column;align-items:center}
body.home-view .home-category-grid .home-category strong{color:#164b37;font-size:17px;line-height:1.6}
body.home-view .home-category-grid .home-category small{color:#785d3d;font-size:13px;line-height:1.7;margin:4px 0 0}
body.home-view .home-category-grid .home-category-open{margin-top:auto;width:34px;height:34px;border:1px solid #c7a267;box-shadow:0 0 0 3px #fff3db;background:#164b37;color:#fff6e5}
body.home-view .home-category-grid .section-info{top:calc(116.6667cqw - 55px);left:17px;z-index:2;width:34px;min-height:34px;background:#fff4df;border:1px solid #bf9c66;box-shadow:0 2px 4px #44260f20}
body.home-view .home-category-grid .home-category:focus-visible{outline:0;box-shadow:none}
body.home-view .home-category-grid .home-category:focus-visible .home-category-body{outline:3px solid #164b37;outline-offset:3px}
body.home-view .home-category-grid .home-category[aria-pressed=true] .home-category-body{background:#e8eedb;box-shadow:0 0 0 5px #fff0d5,0 4px 0 5px #ae8849}
@media(max-width:540px){body.home-view .home-category-body{padding-inline:8px}body.home-view .home-category-grid .home-category strong{font-size:17px}}
