:root {
  --ink: #eaf2ff;
  --muted: #8b9dc3;
  --paper: #0a0e1a;
  --surface: #111827;
  --accent: #06d6a0;
  --accent2: #118ab2;
  --highlight: #ffd166;
  --danger: #ef476f;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(6, 214, 160, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(17, 138, 178, 0.12), transparent 45%),
    linear-gradient(170deg, #060a14 0%, #0d1525 50%, #060a14 100%);
  color: var(--ink);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ===== PAGE CONTAINER ===== */
.page {
  width: min(100%, 480px);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  overflow: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 540px;
  padding: 16px;
  background:
    linear-gradient(175deg, rgba(6, 10, 20, 0.3) 0%, rgba(6, 10, 20, 0.55) 50%, var(--paper) 100%),
    url("static_fp5y/banner.jpg") center top / cover no-repeat;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 80px;
  background: rgba(10, 14, 26, 0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.2);
}
.mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { margin: 0; font-size: 17px; font-weight: 800; color: white; letter-spacing: -0.3px; }
.brand-subtitle { margin: 1px 0 0; color: var(--muted); font-size: 11px; font-weight: 600; }

.bonus {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(255, 209, 102, 0.05));
  border: 1px solid rgba(255, 209, 102, 0.25);
  color: var(--highlight);
  font-size: 11px;
  font-weight: 800;
}

.topbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ===== SHOWCASE ===== */
.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(10, 14, 26, 0.6) 65%, var(--paper) 100%);
}

.drama-copy { position: relative; z-index: 1; width: 100%; color: white; text-align: center; }

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(6, 214, 160, 0.12);
  border: 1px solid rgba(6, 214, 160, 0.25);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.drama-copy h1 {
  margin: 16px auto 10px;
  max-width: 360px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.drama-copy p {
  margin: 0 auto;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

/* ===== CTA BUTTONS ===== */
.hero-cta {
  display: flex;
  width: min(100%, 340px);
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin: 22px auto 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #06d6a0, #118ab2);
  color: #0a0e1a;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(6, 214, 160, 0.3);
  animation: pulse 2.5s infinite ease-in-out;
}

.cta {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #06d6a0, #118ab2);
  color: #0a0e1a;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(6, 214, 160, 0.25);
  animation: pulse 2.5s infinite ease-in-out;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
}

/* ===== SECTIONS ===== */
.section {
  padding: 24px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== DRAMA CARDS ===== */
.dramas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.drama { min-width: 0; cursor: pointer; transition: transform 0.2s; }
.drama:hover { transform: translateY(-3px); }

.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7)),
    var(--image) center / cover,
    linear-gradient(150deg, var(--from), var(--to));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reward {
  position: absolute;
  right: 6px; top: 6px; z-index: 1;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(6, 214, 160, 0.9);
  color: #0a0e1a;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drama b {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
}

/* ===== INSTALL GUIDE ===== */
.install-guide {
  border-top: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.5);
}

.guide-steps { display: grid; gap: 10px; }

.guide-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(6, 214, 160, 0.04);
  border: 1px solid rgba(6, 214, 160, 0.1);
}

.guide-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 10px;
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.12);
}

.guide-content b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 3px;
}

.guide-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.guide-tip {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 209, 102, 0.08);
  border-left: 3px solid var(--highlight);
  border-radius: 0 8px 8px 0;
  font-size: 11px;
  color: var(--ink);
  line-height: 1.4;
}

/* ===== FINAL CTA ===== */
.final {
  padding: 28px 16px 32px;
  background:
    linear-gradient(135deg, rgba(6, 214, 160, 0.08), rgba(17, 138, 178, 0.12)),
    var(--paper);
  text-align: center;
  border-top: 1px solid var(--line);
}

.final h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.final p {
  margin: 0 auto 18px;
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.final .cta {
  background: rgba(255, 255, 255, 0.95);
  color: #0a0e1a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
footer {
  padding: 16px 16px 20px;
  background: #060a14;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 10, 20, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid rgba(6, 214, 160, 0.2);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #06d6a0, #118ab2);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #0a0e1a;
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
  color: white;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.modal-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 22px;
}

.modal-cta {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #06d6a0, #118ab2);
  color: #0a0e1a;
  font-size: 15px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
}

.modal-close-btn {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch { display: inline-flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }

.lang-opt {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-opt.active {
  background: linear-gradient(135deg, #06d6a0, #118ab2);
  color: #0a0e1a;
  border-color: transparent;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 760px) {
  body { padding: 20px; }
  .page { border-radius: 24px; box-shadow: 0 0 0 1px var(--line); }
}

@media (max-width: 360px) {
  .drama-copy h1 { font-size: 26px; }
}
