/* The Pharmacy Christmas Competition 2026: ED&G™ branding */
:root {
  --navy: #1a2744; --night: #111a30; --deep: #0c1324; --line: #2a3a5f; --line2: #3a4c75;
  --teal: #12a0ad; --teal-lt: #5fd4de; --teal-pale: #7fd3da; --green: #4caf50; --gold: #e8b830;
  --text: #e8edf7; --soft: #c9d3e6; --muted: #a9b6cc; --white: #ffffff; --bad: #ff8a8a; --good: #7fe0a0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--teal-lt); } a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--white); color: var(--navy); padding: 8px 12px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ED&G™ mark */
.edg { text-decoration: none; display: inline-flex; flex-direction: column; }
.edg .mark { font-size: 26px; font-weight: 800; line-height: 1; color: var(--white); }
.edg .amp { color: var(--teal-lt); }
.edg .tm { font-size: 11px; font-weight: 700; vertical-align: super; margin-left: 1px; }
.edg .name { margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--text); }
.rule { display: flex; height: 3px; margin-top: 6px; border-radius: 2px; overflow: hidden; }
.rule span { flex: 1; } .rule span:nth-child(1) { background: var(--teal-pale); } .rule span:nth-child(2) { background: var(--teal); } .rule span:nth-child(3) { background: var(--green); }

/* Header and footer */
.top { background: var(--navy); border-bottom: 1px solid var(--line); }
.top .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--text); text-decoration: none; } .nav a:hover { color: var(--white); text-decoration: underline; }
.foot { background: var(--deep); border-top: 1px solid var(--line); }
.foot .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.foot small { font-size: 13px; color: var(--muted); }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--teal); color: var(--white); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #0e8792; color: var(--white); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; border: 1px solid var(--line2); color: var(--text); }
.btn.ghost:hover { border-color: var(--teal-lt); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
input[type=text] { height: 52px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line2); background: var(--night); color: var(--white); font: inherit; font-size: 16px; }
input::placeholder { color: #7d8aa3; }
.msg { min-height: 22px; font-size: 14px; color: var(--bad); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); border-bottom: 1px solid var(--line); }
.hero .snow { position: absolute; inset: 0; pointer-events: none; }
.hero .snow i { position: absolute; display: block; border-radius: 50%; background: #fff; animation: fall linear infinite; }
@keyframes fall { from { transform: translateY(-20px); } to { transform: translateY(620px); } }
@media (prefers-reduced-motion: reduce) { .hero .snow i { animation: none; } }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero .copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; font-weight: 800; color: var(--white); letter-spacing: -.01em; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--soft); max-width: 540px; }
.start { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin-top: 6px; }
.start label { font-size: 14px; font-weight: 700; }
.start .row { display: flex; flex-wrap: wrap; gap: 10px; }
.start input { flex: 1 1 240px; min-width: 0; }
.start .btn { height: 52px; }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 600; }
.chips li { padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px; }
.hero figure { flex: 1 1 460px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hero figure img { width: 100%; height: auto; aspect-ratio: 1100 / 740; object-fit: cover; border-radius: 14px; border: 1px solid var(--line2); display: block; }
.hero figcaption { font-size: 13px; color: var(--muted); }
.hero > .rule { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; margin: 0; border-radius: 0; }

/* Sections */
.section { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.section h2 { margin: 0; font-size: 38px; font-weight: 800; color: var(--white); }
.section .intro { margin: 8px 0 0; font-size: 17px; color: var(--soft); max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--navy); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card img, .card .tiles { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card .tiles { background: var(--night); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 26px; border-bottom: 1px solid var(--line); }
.card .tiles span { display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 2px solid; font-size: 24px; font-weight: 800; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.card .tag { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-lt); }
.card h3 { margin: 0; font-size: 24px; font-weight: 800; color: var(--white); }
.card p { margin: 0; color: var(--soft); }

/* Leaderboard */
.board { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--navy); }
.board table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.board th { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.board td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.board tr:last-child td { border-bottom: 0; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board .pos { font-weight: 800; color: var(--gold); width: 70px; }
.board .tot { font-weight: 800; color: var(--white); }
.board .me td { background: rgba(18, 160, 173, .16); }
.board .empty { padding: 44px 20px; text-align: center; color: var(--soft); }
.board .empty strong { display: block; font-size: 18px; color: var(--white); }

/* Play page */
.stage { min-height: calc(100vh - 98px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.panel { width: 100%; max-width: 720px; background: var(--navy); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.panel h1 { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 800; color: var(--white); }
.panel p { margin: 0; color: var(--soft); }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.steps li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps li.done { background: var(--green); } .steps li.now { background: var(--teal); }
.howto { margin: 0; padding-left: 20px; color: var(--soft); } .howto li + li { margin-top: 4px; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.scores div { background: var(--night); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.scores span { display: block; font-size: 13px; color: var(--muted); }
.scores strong { display: block; font-size: 26px; color: var(--white); font-variant-numeric: tabular-nums; }
.scores .big { border-color: var(--teal); }
.timer { position: fixed; top: 14px; left: 14px; z-index: 100001; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(12, 19, 36, .92); border: 1px solid var(--line2); color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.timer .lbl { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.timer.warn { border-color: var(--gold); color: var(--gold); }
.timer.hidden { display: none; }

/* Quiz */
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.qtext { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--white); }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--night); color: var(--text); font: inherit; font-size: 17px; cursor: pointer; }
.opt:hover:not([disabled]) { border-color: var(--teal-lt); }
.opt[disabled] { cursor: default; }
.opt.right { border-color: var(--green); background: rgba(76, 175, 80, .18); color: var(--white); }
.opt.wrong { border-color: var(--bad); background: rgba(255, 138, 138, .14); }
.feedback { min-height: 24px; font-weight: 700; }
.feedback.ok { color: var(--good); } .feedback.no { color: var(--bad); }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 16px; }
  .panel { padding: 24px; }
  .section h2 { font-size: 30px; }
}

/* Countdown and entry gate */
.gate { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin-top: 4px; padding: 22px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(17, 26, 48, .72); }
.gate h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--white); }
.gate p { margin: 0; color: var(--soft); font-size: 15px; }
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.count div { background: var(--night); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; }
.count strong { display: block; font-size: 38px; line-height: 1; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.count span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); }
.inline { display: flex; flex-wrap: wrap; gap: 10px; }
.inline input { flex: 1 1 220px; min-width: 0; }
.inline .btn { height: 52px; }
input[type=email] { height: 52px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line2); background: var(--night); color: var(--white); font: inherit; font-size: 16px; }
input.code { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
input[disabled] { opacity: .55; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(232, 184, 48, .1); border: 1px solid rgba(232, 184, 48, .45); font-size: 14px; color: var(--text); }
.notice svg { flex: none; margin-top: 2px; }
.ok-line { color: var(--good); font-weight: 700; font-size: 14px; }
[hidden] { display: none !important; }

/* Mystery gift (homepage keeps the competitions secret) */
.hero figure.gift { flex: 1 1 380px; max-width: 460px; margin: 0 auto; }
.hero figure.gift svg { display: block; width: 100%; height: auto; }
.board table.compact { min-width: 0; }
