/* prod.css — production overrides: drop the presentation phone-frame, make the
   app fill the Telegram WebApp viewport, honour safe-area insets. Loaded AFTER
   styles.css so these rules win. */

html, body {
  height: 100%;
  min-height: 100%;
  margin: 0;
}
body {
  display: block;          /* override the centering flexbox from styles.css */
  align-items: initial;
  justify-content: initial;
  overflow: hidden;
  background: var(--tg-bg);
}
body::before { display: none; }   /* drop the desktop purple halo */

/* full-viewport app column (replaces `.device .screen`) */
#root { height: 100%; }
.app-root {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--tg-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* header: no fake close/menu controls (Telegram draws its own), pad for notch */
.app-root .tg-header { padding-top: max(6px, env(safe-area-inset-top)); }
.app-root .tg-header .hclose { display: none; }

/* bottom bar respects the home-indicator safe area */
.app-root .tg-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* loading / error full-screen states */
.boot {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 32px;
  text-align: center; background: var(--tg-bg);
}
.boot .spin {
  width: 38px; height: 38px; border: 3px solid var(--tg-separator-2);
  border-top-color: var(--tg-accent); border-radius: 50%; animation: spin .7s linear infinite;
}
.boot .bt { font-family: var(--f-disp, var(--f-ui)); font-size: 20px; font-weight: 800; color: var(--tg-text); }
.boot .bd { color: var(--tg-hint); font-size: 14px; max-width: 280px; line-height: 1.5; }
.boot img { width: 80px; height: 80px; opacity: .9; }

/* ── wheel of fortune ───────────────────────────────────────────────────────── */
.wheel-banner {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  border: none; cursor: pointer; padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tg-accent) 30%, var(--tg-section)), color-mix(in srgb, var(--tg-accent-2) 22%, var(--tg-section)));
  position: relative; overflow: hidden;
}
.wheel-banner .wb-ic {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0,0,0,0.28); color: #fff;
}
.wheel-banner .wb-ic svg { width: 22px; height: 22px; }
.wheel-banner .wb-tx { flex: 1; min-width: 0; }
.wheel-banner .wb-t { font-family: var(--f-disp); font-weight: 800; font-size: 18px; text-transform: uppercase; color: #fff; line-height: 1; }
.wheel-banner .wb-d { color: rgba(255,255,255,0.82); font-size: 12.5px; margin-top: 4px; }
.wheel-banner .chev { color: rgba(255,255,255,0.7); }

.wheel-screen { align-items: stretch; }
.wheel-hero { text-align: center; }
.wheel-hero .kicker { display: block; }

.wheel-wrap { position: relative; width: 100%; max-width: 320px; margin: 6px auto 2px; aspect-ratio: 1; }
.wheel-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 30px rgba(160,32,240,0.25)); }
.wheel-pointer {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-top: 22px solid var(--tg-accent-2);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.wheel-result {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  background: rgba(10,10,11,0.78); backdrop-filter: blur(3px); border-radius: 50%;
  animation: wheelResIn .35s ease both;
}
@keyframes wheelResIn { from { opacity: 0; } to { opacity: 1; } }
.wr-card { text-align: center; padding: 0 22px; }
.wr-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tg-hint); }
.wr-days { font-family: var(--f-disp); font-weight: 900; font-size: 76px; line-height: 0.9; color: var(--tg-accent-2);
  text-shadow: 0 0 26px color-mix(in srgb, var(--tg-accent-2) 55%, transparent); margin: 6px 0 2px; }
.wr-sub { color: var(--tg-subtitle); font-size: 13.5px; }

.wheel-spins { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.wheel-spins .ws-count { font-family: var(--f-disp); font-weight: 800; font-size: 28px; color: var(--tg-text); }
.wheel-spins .ws-label { color: var(--tg-hint); font-size: 14px; }
.wheel-spins .ws-free { margin-left: 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tg-positive); background: color-mix(in srgb, var(--tg-positive) 15%, transparent); padding: 4px 9px; border-radius: 100px; }
.wheel-go:disabled { opacity: 0.55; cursor: default; }

.qa2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa2 .btn2 { width: 100%; }
