/*
Theme Name: Daman App Download Guide
Description: Independent mobile app download and installation guides for readers in India.
Version: 1.7.0
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: daman-app-download-guide
*/
:root{--blue:#1d4ed8;--orange:#f97316;--ink:#0f172a;--muted:#475569;--bg:#f8fafc;--line:#e2e8f0}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:1rem/1.65 system-ui,-apple-system,sans-serif}
img{max-width:100%;height:auto;display:block}
a{color:#1943b8;text-underline-offset:.18em}
:focus-visible{outline:3px solid #9a3412;outline-offset:4px}
.wrap{width:min(1120px,calc(100% - 2rem));margin-inline:auto}
.skip{position:absolute;left:1rem;top:1rem;transform:translateY(-180%);background:white;padding:.65rem;z-index:10}
.skip:focus{transform:none}
.mast{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--line)}
.admin-bar .mast{top:32px}
.mast-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:76px}
.brand{display:inline-flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--ink);min-width:0;line-height:1.2}
.brand img{width:44px;flex:none}
.brand strong,.brand small{display:block}
.brand small{color:var(--muted);margin-top:.2rem}
.nav-toggle{display:none}
.nav ul,.foot ul{list-style:none;display:flex;gap:.3rem 1rem;flex-wrap:wrap;margin:0;padding:0}
.nav a,.foot a{display:inline-flex;align-items:center;min-height:44px}
.nav a{text-decoration:none;font-size:.91rem;font-weight:650}
.nav a[aria-current]{text-decoration:underline}
h1,h2,h3{line-height:1.15;text-wrap:balance}
h1{font-size:clamp(2.05rem,5vw,4.1rem);letter-spacing:-.045em;margin:.25em 0 .35em}
h2{font-size:clamp(1.5rem,3vw,2.25rem);letter-spacing:-.025em;margin:0 0 .6em}
h3{font-size:1.18rem;margin:.4em 0}
p{margin:0 0 1em}
.hero{display:grid;grid-template-columns:1fr .95fr;align-items:center;gap:clamp(1rem,4vw,4rem);padding:clamp(1.25rem,5vw,4.5rem);background:#eaf0ff;border:1px solid #dbe6ff;border-radius:24px;margin-block:1.6rem 2.5rem}
.hero p,.lede{color:var(--muted);font-size:1.08rem;max-width:58ch}
.hero img,.cover{border-radius:16px;width:100%}
.eyebrow{font-weight:750;color:#1e40af;font-size:.88rem;letter-spacing:.025em}
.button,.nav-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:9px;padding:.55rem .9rem;background:var(--blue);color:white;font-weight:750;text-decoration:none;border:0;font:inherit;font-weight:750;cursor:pointer}
.button.primary{background:var(--orange);color:var(--ink)}
.button + .button{margin-inline-start:.4rem}
.nav-toggle{display:none}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-block:1rem 2.8rem}
.card,.article-panel{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.card img{width:100%;aspect-ratio:1200/630;object-fit:cover}
.card-body{padding:1rem 1.15rem}
.card p{color:var(--muted)}
.card h3 a{min-height:44px;display:inline-flex;align-items:center}
.article-panel{max-width:790px;margin:1.5rem auto 3rem;padding:clamp(1rem,4vw,2.6rem);overflow-wrap:anywhere}
.article-panel h2{margin-top:1.3em}
.article-panel li+li{margin-top:.45em}
.article-panel .cover{margin-block:1.25rem}
.crumb{font-size:.9rem;color:var(--muted);padding-top:1.1rem}
.crumb a{display:inline-flex;min-height:44px;align-items:center}
details{border:1px solid var(--line);border-radius:9px;padding:0 .8rem;margin:.7rem 0;background:white}
summary{padding:.7rem 0;min-height:44px;cursor:pointer;font-weight:700}
.foot{margin-top:2.5rem;padding:2rem 0;background:var(--ink);color:#e2e8f0}
.foot a,.foot .brand,.foot .brand small{color:white}
.foot-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:1.5rem}
.foot ul{display:block}
.foot p{margin-top:.8rem}
.foot h2{font-size:1.05rem}
@media(max-width:1020px){
.mast-inner{flex-wrap:wrap;padding-block:.55rem;gap:.2rem .65rem}
.nav{flex-basis:100%}
.nav-toggle[aria-expanded]{display:inline-flex}
.nav[hidden]{display:none}
.nav ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .6rem}
}
@media(min-width:1021px){.nav[hidden]{display:block}.nav-toggle[aria-expanded]{display:none}}
@media(max-width:690px){
.hero,.cards,.foot-grid{grid-template-columns:1fr}
.hero{border-radius:16px;margin-top:1rem}
.hero picture{order:-1}
.hero img{max-height:190px;object-fit:cover}
.card img{max-height:195px}
.admin-bar .mast{top:0}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
.foot .telegram{background:#1d4ed8;border-radius:9px;text-decoration:none;padding:0 .75rem;gap:.55rem}
.hero{background:linear-gradient(120deg,#edf2ff 12%,#e4efff 70%,#fff0e4)}
.hero .button{margin-top:.4rem}
.button.button-outline{background:white;color:#173da0;border:1px solid #b5c8f5}
.button.button-outline:hover{background:#f2f6ff}
#guide-title{scroll-margin-top:6rem}
.cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{box-shadow:0 8px 24px rgba(15,23,42,.05)}
.source-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(1rem,4vw,3rem);padding:clamp(1rem,4vw,2.5rem);border:1px solid #cbd9fc;border-radius:16px;background:#eef4ff;margin:0 0 2.5rem}
.source-panel p{color:var(--muted)}
.source-panel ol{margin:0;padding-inline-start:1.35rem}
.source-panel li{padding:.4rem 0}
.source-panel li::marker{font-weight:750;color:var(--blue)}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.cards,.source-panel{grid-template-columns:minmax(0,1fr)}.hero .button{margin-inline-start:0;margin-inline-end:.35rem}}
.device-panel{margin-block:2rem}
.device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.device-grid > div,.guide-quickcheck{padding:1rem 1.2rem;border:1px solid #cbd9fc;border-radius:12px;background:#eef4ff}
.device-grid a{display:inline-flex;min-height:44px;align-items:center}
.device-grid p,.guide-quickcheck dd{color:var(--muted)}
.guide-quickcheck h2{margin-top:0}
.guide-quickcheck dl{margin:0}
.guide-quickcheck dt{font-weight:700}
.guide-quickcheck dd{margin:0 0 .65rem}
.guide-quickcheck dd:last-child{margin-bottom:0}
@media(max-width:570px){.device-grid{grid-template-columns:1fr}}
.game-panel{background:#fff2e6;border-color:#ead4bf}
.game-panel img{border-radius:12px;width:100%}

/* Daman casino editorial palette */
:root{--blue:#f3ce83;--orange:#f4c46d;--ink:#f6efdf;--muted:#c9c6b9;--bg:#101512;--line:#38483d}
body{background:radial-gradient(ellipse at 50% -6rem,#284437 0,transparent 39rem),var(--bg)}
a{color:#ffdb91}
:focus-visible{outline-color:#ffd680}
.skip{background:#202c24;color:#ffe1a0}
.mast{background:#141c17;border-color:#465749}
.brand small{color:#dec794}
.hero{background:linear-gradient(125deg,#183c31,#202920 55%,#35271e);border-color:#625239;box-shadow:0 14px 42px #0005}
.eyebrow{color:#f4ce89}
.button,.nav-toggle,.button.primary{color:#181812;background:#f4c46d}
.button.button-outline,.button.button-outline:hover{color:#ffe3a5;background:#223329;border-color:#7d6c4a}
.button.button-outline:hover{background:#344436}
.card,.article-panel{background:#1a231d;border-color:#39463b}
.card{box-shadow:0 10px 28px #0004}
.card h3 a{color:#ffe091}
.card-art,.cover,.hero img{outline:1px solid #dec58c33;outline-offset:-1px}
.source-panel,.device-grid>div,.guide-quickcheck{background:#1c3026;border-color:#496550}
.game-panel{background:#37291f;border-color:#765639}
details{background:#202d24;border-color:#4b5c4e}
.foot{background:#101812;color:#e1d8c6;border-top:1px solid #465749}
.foot .brand,.foot .brand small,.foot a{color:#f6db9e}
.foot .telegram{color:white}
.theme-article-head{border-bottom:1px solid var(--line);padding-bottom:.6rem;margin-bottom:1.2rem}
.theme-article-head .lede{margin-bottom:.35rem}

.game-index{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:0;padding:0;list-style:none}
.game-index a{height:100%;min-height:48px;display:flex;align-items:center;gap:.65rem;padding:.7rem .85rem;background:#211d16;border:1px solid #786043;border-radius:10px;text-decoration:none}
.game-index a:hover{background:#493725}
.game-index svg{flex:none}
.game-index small{display:block;color:#ded0b9;line-height:1.3}
.game-comparison,.game-comparison dl>div{scroll-margin-top:7rem}
.game-comparison dl{margin:0;padding:0}
.game-comparison dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.4fr);gap:.6rem 1rem;padding:.8rem 1rem;border-bottom:1px solid var(--line)}
.game-comparison dl>div:target{background:#3b3021;outline:1px solid #997342}
.game-comparison dt{font-weight:750;color:#ffda91}
.game-comparison dd{margin:0;color:var(--muted)}
.game-comparison dd strong{display:block;color:var(--ink)}
@media(max-width:690px){.game-index,.game-comparison dl>div{grid-template-columns:minmax(0,1fr)}}

.mast .brand strong,.foot .brand strong{font-family:Georgia,'Times New Roman',serif;color:#ffe5ac;letter-spacing:.005em}
.mast .brand strong{font-size:1.04rem}
.hero{background:linear-gradient(126deg,#15372b,#172a20 58%,#342618);border-color:#8f7145}
.hero img,.cover,.game-panel img{outline-color:#d8ad6466}

.game-entry{gap:.42em}
.game-entry small{font-size:.74rem;font-weight:600}
.mast-game-entry{order:3;flex:none;flex-direction:column;gap:.15rem;padding:.42rem .68rem;line-height:1.1;white-space:nowrap}
.mast-game-entry small{color:#553512;font-size:.68rem}
.mast .nav{order:2}
@media(max-width:1020px){
.mast .nav{order:4}
.mast .brand{flex:1}
.mast-game-entry{margin-inline-start:0}
}
@media(max-width:400px){
.mast-inner{column-gap:.4rem}
.mast .brand{gap:.35rem}
.mast .brand img{width:34px;height:34px}
.mast .brand strong{font-size:.84rem}
.mast .brand small{display:none}
.mast .nav-toggle,.mast-game-entry{padding-inline:.45rem;font-size:.78rem}
}
.game-comparison .game-entry{margin-top:1rem}
.foot .game-entry{display:flex;width:fit-content}

/* Footer */
.foot{padding:0;background:#101b15;border-top:1px solid #725d37}
.foot-layout{padding-block:2.5rem .85rem}
.foot-grid{grid-template-columns:minmax(0,1.55fr) repeat(3,minmax(0,1fr));gap:1.85rem}
.foot-brand .brand img{width:52px;height:52px}
.foot-brand .brand strong{font-size:1.16rem;line-height:1.3}
.foot-brand p{color:var(--muted);max-width:30ch;margin:.75rem 0 1rem}
.foot-grid h2{color:#ffe0a3;font-size:1rem;margin:0 0 .4rem}
.foot-grid nav a{color:#e7ddca;text-decoration:none;overflow-wrap:anywhere}
.foot-grid nav a:hover{text-decoration:underline}
.foot .game-entry{max-width:100%;flex-wrap:wrap}
.foot-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.6rem;padding-top:.8rem;border-top:1px solid #475247;color:#c9c6b9}
.foot a.foot-telegram{flex:none;min-height:48px;gap:.48rem;padding:0 .8rem;border:1px solid #67c3f7;border-radius:999px;background:#0b527a;color:white;box-shadow:0 6px 14px #06100b66;text-decoration:none;font-weight:700}
.foot a.foot-telegram:hover{background:#126f9f}
.foot-telegram svg{flex:none}
@media(max-width:940px){.foot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.35rem}}
@media(max-width:520px){
.foot-layout{padding-top:1.5rem}
.foot-brand{grid-column:1/-1}
.foot-bottom{gap:.55rem}
.foot-bottom small{line-height:1.4}
}
@media(min-width:1320px){
.foot a.foot-telegram{position:fixed;z-index:4;right:max(1rem,env(safe-area-inset-right));bottom:max(1.1rem,env(safe-area-inset-bottom));width:52px;height:52px;min-height:52px;justify-content:center;padding:0}
.foot-telegram span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

.prediction-menu{position:relative}
.prediction-menu summary{cursor:pointer;min-height:44px;align-content:center;color:#ffe0a3;font-weight:650}
.mast .nav{display:flex;align-items:center;gap:.8rem}
.prediction-menu ul{position:absolute;right:0;min-width:10rem;padding:.45rem .75rem;background:#17271e;border:1px solid #6c5a39;border-radius:.65rem}
.prediction-menu li{width:100%}
.prediction-panel{margin-block:1.5rem;padding:1rem;background:#142920;border:1px solid #6d5937;border-radius:12px}
.prediction-panel dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.prediction-panel dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.prediction-panel table{width:100%;text-align:left;border-collapse:collapse;font-variant-numeric:tabular-nums}
.prediction-panel caption{text-align:left;font-weight:700}
.prediction-panel th,.prediction-panel td{padding:.38rem .2rem;border-bottom:1px solid #45564d}
.foot-grid{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr)}
.foot-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.foot-periods a{border:1px solid #665739;border-radius:.5rem;padding:.2rem .65rem;margin:.12rem 0}
.foot a.floating-telegram{display:none}
.foot a.foot-telegram{position:static;width:auto;height:auto;padding:0 .75rem;gap:.45rem}
.foot-telegram span{position:static;width:auto;height:auto;clip-path:none}
@media(min-width:1320px){
.foot a.floating-telegram{display:flex;position:fixed;z-index:4;right:max(1rem,env(safe-area-inset-right));bottom:max(1.1rem,env(safe-area-inset-bottom));width:52px;height:52px;justify-content:center;border-radius:50%;background:#0b527a;color:white;border:1px solid #67c3f7}
.floating-telegram span{display:none}
}
@media(max-width:1020px){
.mast .nav[hidden]{display:none}
.mast .nav{flex-wrap:wrap}
.foot-grid{grid-template-columns:minmax(0,1fr);gap:1.3rem}
.prediction-menu ul{position:static}
}
@media(max-width:400px){.prediction-panel dl{grid-template-columns:minmax(0,1fr)}.foot-bottom{flex-wrap:wrap}}
