:root {
  --ink: #fff7f8;
  --muted: #b9aeb6;
  --paper: #100c11;
  --surface: #1b141b;
  --rose: #ff2f65;
  --coral: #ff637d;
  --gold: #ffd33d;
  --mint: #19c8a2;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 47, 101, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 211, 61, 0.12), transparent 24%),
    linear-gradient(160deg, #08060a 0%, #151017 52%, #08060a 100%);
  color: var(--ink);
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.page {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #0f0b10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  min-height: 520px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(8, 6, 10, 0.4) 0%, rgba(8, 6, 10, 0.26) 42%, #0f0b10 100%),
    url("assets/banner.avif") center top / cover;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 96px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 12, 17, 0.72);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 10px; }
.mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; color: white; font-size: 18px; font-weight: 900; line-height: 1.1; }
.brand-text small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.68); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bonus { flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(255, 211, 61, 0.34); border-radius: 999px; background: rgba(255, 211, 61, 0.14); color: var(--gold); font-size: 12px; font-weight: 900; white-space: nowrap; }

.showcase { position: relative; z-index: 2; }
.poster-stage { position: relative; display: flex; min-height: 300px; align-items: flex-end; }
.poster-stage::before { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 0%, rgba(8, 6, 10, 0.72) 72%, #0f0b10 100%); }
.drama-copy { position: relative; z-index: 1; width: 100%; color: white; text-align: center; }
.tag { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; }
.drama-copy h1 { max-width: 360px; margin: 14px auto 10px; font-size: clamp(34px, 8.2vw, 36px); line-height: 1.05; text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55); }
.drama-copy p { max-width: 340px; margin: 0 auto; color: rgba(255, 255, 255, 0.88); font-size: 13px; font-weight: 700; line-height: 1.45; }

.hero-cta, .cta, .modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  font-weight: 950;
  text-decoration: none;
}
.hero-cta { width: min(100%, 360px); min-height: 58px; margin: 24px auto 0; border-radius: 18px; background: linear-gradient(135deg, #e81752, #ff6a88); box-shadow: 0 18px 34px rgba(232, 23, 82, 0.38); font-size: 17px; }
.security-badge { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; color: var(--mint); font-size: 12px; font-weight: 700; }

.section { padding: 22px 18px; border-top: 1px solid var(--line); background: #0f0b10; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section h2 { margin: 0; font-size: 21px; line-height: 1.1; }
.section-head > span { flex: 0 0 auto; color: var(--gold); font-size: 12px; font-weight: 950; }
.dramas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.drama { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cover { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 17px; background-position: center; background-size: cover; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34); }
.cover::after { position: absolute; inset: 36% 0 0; content: ""; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58)); }
.cover-one { background-image: url("assets/drama-1.webp"), linear-gradient(150deg, #3a1c71, #ff7a45); }
.cover-two { background-image: url("assets/drama-2.webp"), linear-gradient(150deg, #0f766e, #ffc83d); }
.cover-three { background-image: url("assets/drama-3.webp"), linear-gradient(150deg, #1d4ed8, #fb3763); }
.reward { position: absolute; top: 7px; right: 7px; z-index: 1; padding: 5px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: #130c11; font-size: 10px; font-weight: 950; }
.drama b { display: block; margin-top: 8px; font-size: 12px; line-height: 1.2; }

.install-guide { background: #110d14; }
.verified { color: var(--mint) !important; }
.guide-steps { display: grid; gap: 14px; }
.guide-step { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid rgba(25, 200, 162, 0.15); border-radius: 18px; background: rgba(25, 200, 162, 0.03); }
.guide-icon { display: flex; width: 44px; height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 24px; }
.guide-content { min-width: 0; }
.guide-content h3 { margin: 0 0 4px; color: white; font-size: 15px; line-height: 1.25; }
.guide-content p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.guide-tip { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: rgba(255, 211, 61, 0.1); color: var(--ink); font-size: 11px; line-height: 1.35; }
.guide-tip strong { color: var(--gold); }

.final { padding: 24px 18px 30px; background: linear-gradient(135deg, #171017, #2a1524 58%, #561b33); color: white; text-align: center; }
.final h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.05; }
.final p { max-width: 330px; margin: 0 auto 18px; color: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 700; line-height: 1.5; }
.cta { min-height: 56px; border-radius: 16px; background: white; color: var(--rose); font-size: 16px; box-shadow: none; }
footer { padding: 16px 18px 24px; background: #08060a; color: rgba(255, 255, 255, 0.68); font-size: 11px; line-height: 1.55; text-align: center; }
footer p { margin: 0; }

.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8, 6, 10, 0.85); backdrop-filter: blur(8px); }
.modal-overlay[hidden] { display: none; }
.modal-box { width: 100%; max-width: 380px; padding: 28px 20px; border: 1px solid rgba(255, 47, 101, 0.3); border-radius: 24px; background: #1b141b; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); text-align: center; }
.modal-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 16px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #e81752, #ff6a88); color: white; font-size: 26px; }
.modal-title { margin: 0 0 10px; color: white; font-size: 20px; font-weight: 900; }
.modal-desc { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.modal-cta { min-height: 52px; border-radius: 14px; background: linear-gradient(135deg, #e81752, #ff6a88); font-size: 16px; }
.modal-close { margin-top: 14px; padding: 8px 14px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.toast { position: fixed; right: 18px; bottom: 24px; left: 18px; z-index: 1100; max-width: 424px; margin: auto; padding: 13px 16px; border: 1px solid rgba(255, 211, 61, 0.3); border-radius: 14px; background: #241d16; color: white; box-shadow: var(--shadow); font-size: 13px; text-align: center; }

.drama:focus-visible, .hero-cta:focus-visible, .cta:focus-visible, .modal-cta:focus-visible, .modal-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero-cta, .cta { animation: pulse 2s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

@media (max-width: 360px) {
  .hero { padding-inline: 14px; }
  .drama-copy h1 { font-size: 28px; }
  .bonus { padding-inline: 8px; font-size: 11px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 11px; }
  .section { padding-inline: 14px; }
}

@media (min-width: 760px) {
  body { padding: 24px; }
  .page { border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cta, .cta { animation: none; }
}
