:root {
  --paper: #f3f0e8;
  --card: #fffdf9;
  --ink: #1c1915;
  --muted: #6f675e;
  --line: #e5dfd4;
  --accent: #9a3412;
  --navy: #1e2a4a;
  --yellow: #ffe600;
  --blue: #3483fa;
  --d: 4.8s;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html:has(#popup:checked) { overflow: hidden; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 240, 232, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mast-in, .foot-in, .layout, .legal {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
.mast-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo strong {
  font-family: Newsreader, Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo span { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.nav a { text-decoration: none; color: var(--navy); }
.nav a:hover { color: var(--accent); }
.reopen, .btn {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 800 13px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
}
.chance {
  width: min(1080px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #1e2a4a;
  color: #fff;
}
.chance p { margin: 0; font-size: 16px; font-weight: 700; }
.chance small { display: block; margin-top: 3px; color: #f6e7a8; font-size: 12px; font-weight: 700; }
.chance label {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #1a1a1a;
  font: 800 14px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  padding: 12px 16px;
  cursor: pointer;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 28px 0 64px;
}
.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.featured {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.art {
  min-height: 240px;
  border-radius: 16px;
  background:
    radial-gradient(120px 80px at 20% 30%, rgba(255,255,255,.45), transparent 70%),
    linear-gradient(145deg, #1e2a4a, #9a3412);
  position: relative;
  overflow: hidden;
}
.art svg { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); }
.art .draw {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  width: 108px;
  height: 108px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .16);
  transform: translate(-50%, -50%);
}
.art::after {
  content: "ML";
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffe600;
  color: #2d3277;
  font: 800 13px/36px "Plus Jakarta Sans", system-ui, sans-serif;
  text-align: center;
  letter-spacing: -0.06em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .22);
}
.featured h1, .prose h2, .side h2, .legal h1, .card h2 {
  font-family: Newsreader, Georgia, serif;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.featured h1 { margin: 8px 0; font-size: 40px; }
.meta, .by { color: var(--muted); font-size: 13px; }
.excerpt { font-size: 17px; color: #3b342c; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.card {
  display: block;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
}
.card .art { min-height: 120px; margin-bottom: 10px; }
.card h2 { margin: 6px 0; font-size: 24px; }
.card p { margin: 0; color: #4d463e; font-size: 14px; }
.prose { margin-top: 34px; max-width: 72ch; }
.prose h2 { font-size: 34px; margin: 28px 0 8px; }
.prose p { font-size: 17px; line-height: 1.75; color: #2d2924; }
.prose ul { padding-left: 18px; color: #2d2924; }
.prose li { margin: 6px 0; }
.side { display: flex; flex-direction: column; gap: 14px; }
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.side h2 { margin: 0 0 10px; font-size: 26px; }
.side ol { margin: 0; padding-left: 18px; }
.side li { margin: 8px 0; }
.side a { color: var(--navy); font-weight: 700; text-decoration: none; }
.coupons { display: grid; gap: 8px; }
.coupons svg { width: 100%; height: 64px; display: block; filter: drop-shadow(0 8px 12px rgba(28,25,21,.06)); }
.foot {
  border-top: 1px solid var(--line);
  background: #ebe6dc;
  padding: 28px 0 40px;
}
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; font-size: 14px; }
.foot strong { font-family: Newsreader, Georgia, serif; font-size: 24px; }
.foot a { display: block; margin: 6px 0; color: var(--navy); font-weight: 700; text-decoration: none; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cookie {
  position: fixed;
  z-index: 40;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28, 25, 21, .12);
}
.cookie p { margin: 0; font-size: 13px; color: #3b342c; }
.cookie a { color: var(--accent); font-weight: 800; }
#cookie-ok:checked ~ .cookie { display: none; }
.legal { padding: 28px 0 72px; }
.legal h1 { font-size: 46px; margin: 8px 0 4px; }
.legal h2 { font-family: Newsreader, Georgia, serif; font-size: 28px; margin: 28px 0 8px; }
.legal p, .legal li { color: #2d2924; font-size: 16px; line-height: 1.7; }
.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6cc;
  border: 1px solid #f0e2a2;
  font-size: 14px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(22, 18, 14, .62);
}
#popup:checked ~ .overlay { display: grid; }
.backdrop { position: absolute; inset: 0; cursor: pointer; }
.modal {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 18px 16px 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  text-align: center;
}
.x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f0e8;
  display: grid;
  place-items: center;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.brand { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--yellow);
  color: #2d3277;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(255, 214, 0, .4);
}
.brand b { color: #2d3277; letter-spacing: -0.04em; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.modal h2 {
  margin: 10px 0 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.modal h2 span { color: var(--accent); }
.modal .sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.stage { position: relative; width: 268px; height: 268px; margin: 12px auto 0; }
.ring, .ring2 {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(30, 42, 74, .3);
  animation: spin 24s linear infinite;
}
.ring2 { inset: -12px; border-style: dotted; border-color: rgba(255, 200, 0, .8); animation-duration: 36s; animation-direction: reverse; }
.pointer {
  position: absolute;
  z-index: 8;
  top: -2px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 22px solid var(--navy);
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.2));
  transform: translateX(-50%);
  animation: nod 2.6s ease-in-out infinite;
}
.lights i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #fff;
  transform: rotate(calc(var(--i) * 30deg)) translateY(-130px);
  animation: glow 1.4s ease-in-out infinite alternate;
}
.lights i:nth-child(odd) { background: var(--yellow); animation-delay: .4s; }
.lights i:nth-child(3n) { background: var(--blue); }
.wheel {
  width: 268px;
  height: 268px;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 14px 28px rgba(28, 25, 21, .12), inset 0 0 0 3px var(--yellow);
  background:
    repeating-conic-gradient(from -22.5deg, transparent 0 44.35deg, rgba(255,255,255,.8) 44.35deg 45deg),
    conic-gradient(from -22.5deg, #ffe600 0 45deg, #3483fa 45deg 90deg, #fff6cc 90deg 135deg, #241f63 135deg 180deg, #ffe600 180deg 225deg, #5b9dff 225deg 270deg, #fff8e4 270deg 315deg, #1b2a4a 315deg 360deg);
  transform: rotate(270deg);
  transition: transform var(--d) cubic-bezier(.12, .68, .04, 1);
}
#s1:checked ~ .overlay .wheel { transform: rotate(2025deg); }
#s2:checked ~ .overlay .wheel { transform: rotate(3555deg); }
#s3:checked ~ .overlay .wheel { transform: rotate(5040deg); }
.seg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  margin-left: -36px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transform: rotate(calc(var(--i) * 45deg)) translateY(-90px);
}
.seg:nth-child(1) { --i: 0; }
.seg:nth-child(2) { --i: 1; }
.seg:nth-child(3) { --i: 2; }
.seg:nth-child(4) { --i: 3; }
.seg:nth-child(5) { --i: 4; }
.seg:nth-child(6) { --i: 5; }
.seg:nth-child(7) { --i: 6; }
.seg:nth-child(8) { --i: 7; }
.seg:nth-child(even) { color: #fff; }
.seg small { display: block; font-size: 9px; letter-spacing: .06em; }
.hub {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 4px solid var(--yellow);
  border-radius: 50%;
  background: #fff;
  color: #2d3277;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
}
.cap { visibility: visible; }
.msg { position: relative; min-height: 40px; margin: 4px 0 8px; font-size: 14px; font-weight: 700; }
.msg span { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; }
.dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.dots i { width: 26px; height: 5px; border-radius: 99px; background: #eee8dc; }
.actions { position: relative; height: 48px; }
.actions > * {
  position: absolute;
  inset: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#ffe600, #ffd400);
  color: #1a1a1a;
  font: 800 16px/48px "Plus Jakarta Sans", system-ui, sans-serif;
  box-shadow: 0 6px 14px rgba(255, 200, 0, .35);
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
}
.actions .wait, .actions .done { background: #f3f0e8; color: var(--muted); box-shadow: none; }
#s0:checked ~ .overlay .m0,
#s0:checked ~ .overlay .h1,
#s0:checked ~ .overlay .cta1 { visibility: visible; pointer-events: auto; }
#s0:checked ~ .overlay .m0 { position: relative; }
#s1:checked ~ .overlay .sm1,
#s2:checked ~ .overlay .sm2,
#s3:checked ~ .overlay .sm3,
#s1:checked ~ .overlay .w1,
#s2:checked ~ .overlay .w2,
#s3:checked ~ .overlay .w3 { visibility: visible; animation: bye 0s linear var(--d) forwards; }
#s1:checked ~ .overlay .m1,
#s1:checked ~ .overlay .cta2,
#s1:checked ~ .overlay .h2,
#s2:checked ~ .overlay .m2,
#s2:checked ~ .overlay .cta3,
#s2:checked ~ .overlay .h3,
#s3:checked ~ .overlay .m3,
#s3:checked ~ .overlay .done,
#s3:checked ~ .overlay .won { animation: hi 0s linear var(--d) forwards; }
#s1:checked ~ .overlay .dots i:nth-child(1),
#s2:checked ~ .overlay .dots i:nth-child(-n+2),
#s3:checked ~ .overlay .dots i { background: var(--yellow); }
.ticket { max-height: 0; overflow: hidden; opacity: 0; text-align: left; }
#s3:checked ~ .overlay .ticket { animation: grow .45s ease var(--d) forwards; }
.coupon {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf6, #fff4c2);
  border: 1px solid #f0e2a2;
}
.coupon p { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.coupon strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.code {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed #e4d48a;
  font-weight: 800;
  user-select: all;
}
.modal .legal-links { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
.modal .legal-links a { color: var(--navy); font-weight: 800; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nod {
  0%, 100% { transform: translateX(-50%) rotate(0); }
  50% { transform: translateX(-50%) rotate(6deg); }
}
@keyframes glow { to { opacity: .35; } }
@keyframes hi { to { visibility: visible; pointer-events: auto; } }
@keyframes bye { to { visibility: hidden; } }
.redeem {
  display: block;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #3483fa;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
@keyframes grow { to { max-height: 280px; opacity: 1; } }
@media (max-width: 860px) {
  .layout, .featured, .foot-in, .chance { grid-template-columns: 1fr; }
  .chance { flex-direction: column; align-items: flex-start; }
  .nav { display: none; }
  .featured h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --d: .35s; }
  .ring, .ring2, .pointer, .lights i { animation: none; }
}
@media print {
  .overlay, .cookie, .reopen { display: none !important; }
}
