/* chaixana.krd home — one screen. UI UX Pro Max: App Store Style Landing + game palette "coin gold + prestige
   purple" laid out 60-30-10 on the Tea Blossom brand: 60% navy canvas, 30% plum/violet light, 10% tea gold. */
@font-face{font-family:'NewRudaw';src:url('/assets/fonts/NewRudaw-Bold.woff2?v=1') format('woff2');font-weight:400 900;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+0660-0669;}
:root{
  --bg:#1E1530; --bg-deep:#120C1E; --plum:#654897; --violet:#9300F4;
  --gold:#EBA65A; --tea:#CE7629; --ivory:#FFF1D9; --muted:#CBBBD6; --line:rgba(255,241,217,.14);
  --font:'NewRudaw',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{min-height:100dvh;display:flex;flex-direction:column;font-family:var(--font);color:var(--ivory);-webkit-font-smoothing:antialiased;overflow-x:hidden;
  background:
    radial-gradient(60vw 60vw at 72% 50%,rgba(147,0,244,.22),transparent 60%),
    radial-gradient(45vw 45vw at 25% 35%,rgba(206,118,41,.12),transparent 60%),
    linear-gradient(180deg,var(--bg) 0%,var(--bg-deep) 100%)}
[dir="ltr"] body{background:
    radial-gradient(60vw 60vw at 28% 50%,rgba(147,0,244,.22),transparent 60%),
    radial-gradient(45vw 45vw at 75% 35%,rgba(206,118,41,.12),transparent 60%),
    linear-gradient(180deg,var(--bg) 0%,var(--bg-deep) 100%)}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:12px}

/* language: four plain buttons, top corner */
.langs{display:flex;gap:4px;justify-content:flex-end;padding:14px clamp(16px,4vw,40px) 0}
.langs button{font:inherit;font-size:.9rem;color:var(--muted);background:none;border:1px solid transparent;border-radius:999px;
  min-height:44px;min-width:44px;padding:0 14px;cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.langs button:hover{color:var(--ivory)}
.langs button[aria-pressed="true"]{color:var(--ivory);border-color:var(--line);background:rgba(255,241,217,.06)}
[lang="en"].langs button,.langs button[lang="en"]{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-weight:600}

/* the one screen */
.home{flex:1;width:100%;max-width:1240px;margin:0 auto;padding:clamp(8px,2vh,24px) clamp(16px,4vw,40px);
  display:grid;grid-template-columns:.85fr 1.15fr;align-items:center;gap:clamp(24px,4vw,64px)}
.copy{display:flex;flex-direction:column;align-items:center;text-align:center;gap:clamp(14px,2.4vh,26px)}
.logo img{height:min(40vh,360px);width:auto;filter:drop-shadow(0 24px 50px rgba(206,118,41,.28))}
.tag{font-size:clamp(1.05rem,1.8vw,1.35rem);color:var(--muted);font-weight:700}

/* store buttons: standard black badges (what people recognise), gold only on hover/focus */
.stores{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.store{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 18px 8px 14px;border-radius:14px;
  background:#000;border:1px solid rgba(255,255,255,.32);color:#fff;
  font-family:system-ui,-apple-system,'Segoe UI',sans-serif;transition:border-color .15s,transform .15s}
.store:hover{border-color:var(--gold);transform:translateY(-2px)}
.store:active{transform:none}
.store svg{width:26px;height:26px;flex:none;fill:#fff}
.store span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1}
.store small{font-size:.7rem;letter-spacing:.02em;font-family:var(--font)}
.store b{font-size:1.28rem;font-weight:600;letter-spacing:-.01em}

/* the app on two devices, one over the other */
.devices{position:relative;width:100%;aspect-ratio:16/11;perspective:1400px}
.dev{position:absolute;overflow:hidden;background:var(--bg-deep);border:1px solid rgba(255,241,217,.16);
  box-shadow:0 0 0 8px #261B38,0 0 0 9px rgba(203,187,214,.18),0 50px 90px -30px rgba(0,0,0,.9)}
.dev img{width:100%;height:100%;object-fit:cover;object-position:top}
.tab{width:86%;aspect-ratio:16/10;border-radius:22px;top:4%;inset-inline-start:0;transform:rotateY(12deg) rotateX(4deg)}
[dir="ltr"] .tab{transform:rotateY(-12deg) rotateX(4deg)}
.phone{width:31%;aspect-ratio:9/19;border-radius:32px;bottom:0;inset-inline-end:2%;transform:rotate(3deg);
  box-shadow:0 0 0 7px #261B38,0 0 0 8px rgba(235,166,90,.35),0 40px 80px -20px rgba(0,0,0,.95)}
[dir="ltr"] .phone{transform:rotate(-3deg)}

.foot{text-align:center;color:rgba(203,187,214,.7);font-size:.8rem;padding:10px 16px 16px}

@media (max-width:900px){
  .home{grid-template-columns:1fr;gap:18px;align-content:start}
  .copy{order:0}
  .devices{order:1;max-width:560px;margin:0 auto}
  .logo img{height:min(24vh,200px)}
}
@media (max-width:480px){
  .langs{justify-content:center;padding-top:8px}
  .langs button{padding:0 11px;font-size:.85rem}
  .stores{gap:8px;flex-wrap:nowrap;width:100%}
  .store{flex:1;min-width:0;padding:8px 10px;gap:8px;justify-content:center}
  .store b{font-size:1.02rem}
  .store small{font-size:.62rem}
  .store svg{width:22px;height:22px}
  .dev{box-shadow:0 0 0 5px #261B38,0 0 0 6px rgba(203,187,214,.18),0 30px 60px -24px rgba(0,0,0,.9)}
  .phone{border-radius:22px;box-shadow:0 0 0 5px #261B38,0 0 0 6px rgba(235,166,90,.35),0 30px 60px -20px rgba(0,0,0,.95)}
  .tab{border-radius:14px}
}
@media (prefers-reduced-motion:reduce){*{transition-duration:.001ms!important}}
