/* targetpokemonlottery.com: a drawing status board. Neutral greys carry the page; colour only means something:
   red = the buy action and the brand, green = open now, amber = window posted or results due, grey = closed. */
:root {
  --ink: #15171c;
  --ink2: #4b505a;
  --ink3: #6b717c;
  --line: #e4e6e9;
  --line2: #cdd1d6;
  --bg: #ffffff;
  --soft: #f6f7f8;
  --red: #c4122f;
  --red-d: #9c0e25;
  --open: #12733a;
  --open-bg: #e8f5ed;
  --soon: #8a5300;
  --soon-bg: #fdf2e1;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-d); }
img { max-width: 100%; }
.w { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.015em; }
h2 { font-size: 23px; margin: 48px 0 12px; letter-spacing: -0.005em; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
.prose > p, .prose > ul, .prose > ol, .lede, .faq p { max-width: 70ch; }
li { margin-bottom: 4px; }
.small, .fine { font-size: 14px; color: var(--ink2); }
code { font-size: 14px; background: var(--soft); padding: 1px 5px; border-radius: 4px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.top .w { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 6px; }
.top nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--ink2); text-decoration: none; font-size: 15px; padding: 7px 10px; border-radius: 6px; white-space: nowrap; transition: background-color .15s, color .15s; }
.top nav a:hover { background: var(--soft); color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--soft); }

.crumbs { font-size: 14px; color: var(--ink3); margin: 20px 0 8px; }
.crumbs a { color: var(--ink2); }
main h1 { margin-top: 18px; }
.lede { font-size: 18px; color: var(--ink2); margin: 12px 0 18px; }

/* home: status board + alert box */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 36px; align-items: start; padding-top: 30px; }
.split h1 { margin: 0; }
.split .lede { margin: 10px 0 20px; }
.status { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.status-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 16px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.status-head b { color: var(--ink); font-size: 15px; }
.row { display: grid; grid-template-columns: 140px 158px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #fbfbfc; }
.row .store { font-weight: 700; }
.row .store small { display: block; font-weight: 400; font-size: 13px; color: var(--ink3); }
.row .detail { font-size: 15px; color: var(--ink2); }
.row .detail b { color: var(--ink); font-weight: 600; }
.row .detail a { white-space: nowrap; }
.row.fresh { background: var(--open-bg); }

.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 999px; white-space: nowrap; color: var(--ink2); background: var(--soft); border: 1px solid var(--line); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a3a8b0; flex: none; }
.pill.open { color: var(--open); background: var(--open-bg); border-color: #bfe0cb; }
.pill.open::before { background: var(--open); animation: ping 2s ease-out infinite; }
.pill.soon { color: var(--soon); background: var(--soon-bg); border-color: #f1d6aa; }
.pill.soon::before { background: #d08a17; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(18, 115, 58, .45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(18, 115, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .pill.open::before { animation: none; } }
.count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

.alerts { border: 1px solid var(--line2); border-radius: 10px; padding: 22px; background: #fff; }
.split .alerts { position: sticky; top: 80px; }
.alerts h2 { margin: 0 0 8px; font-size: 21px; }
.alerts > p { font-size: 15px; color: var(--ink2); }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; font-size: 15px; }
.ticks li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--open); border-bottom: 2px solid var(--open); transform: rotate(-45deg); }
.plans { display: grid; gap: 8px; margin-bottom: 10px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 16px; font: 600 16px/1.25 var(--font); color: #fff; background: var(--red); border: 1px solid var(--red); border-radius: 8px; cursor: pointer; text-align: left; transition: background-color .15s, border-color .15s, transform .1s; }
.buy:hover { background: var(--red-d); border-color: var(--red-d); }
.buy:active { transform: scale(.985); }
.buy:disabled { opacity: .7; cursor: progress; }
.buy span { font-weight: 400; }
.buy span small { display: block; font-size: 13px; opacity: .85; }
.buy b { font-size: 19px; white-space: nowrap; }
.buy.alt { background: #fff; color: var(--ink); border-color: var(--line2); }
.buy.alt:hover { border-color: var(--ink); background: #fff; }
.signin { margin-top: 12px; font-size: 14px; }
.signin summary { cursor: pointer; color: var(--ink2); }
.signin form { display: flex; gap: 6px; margin: 8px 0 4px; flex-wrap: wrap; }
.signin input { flex: 1 1 160px; min-width: 0; font: 15px var(--font); padding: 8px 10px; border: 1px solid #868c96; border-radius: 6px; }
.signin button { font: 600 14px var(--font); padding: 8px 12px; border-radius: 6px; border: 1px solid var(--ink); background: #fff; cursor: pointer; }
.on { background: var(--open-bg); border: 1px solid #bfe0cb; border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.on b { color: var(--open); }
main > .alerts, .prose > .alerts { margin: 40px 0 0; max-width: 560px; }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, transform .15s; }
.item:hover { border-color: var(--line2); transform: translateY(-1px); }
.item img { width: 84px; height: 84px; object-fit: contain; background: var(--soft); border-radius: 6px; }
.item h3 { font-size: 15px; margin: 0 0 3px; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { color: var(--red); text-decoration: underline; }
.item .meta { font-size: 14px; color: var(--ink2); margin: 0 0 6px; }
.item .meta b { color: var(--ink); }
.item .meta s { color: var(--ink3); }
.item .small { margin: 0; font-size: 13px; }
.item.fresh { border-color: var(--open); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; color: var(--ink2); background: var(--soft); }
.tag.t { color: #fff; background: var(--red); }
.tag.new { color: #fff; background: var(--open); }

/* content */
section { margin-top: 8px; }
.shot { margin: 8px 0 18px; max-width: 900px; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; display: block; }
.shot figcaption { font-size: 13px; color: var(--ink3); margin-top: 6px; }
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.two .shot { margin-top: 4px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.tw { overflow-x: auto; margin: 6px 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { font-size: 14px; color: var(--ink2); font-weight: 600; border-bottom: 2px solid var(--line); white-space: nowrap; }
tbody th { font-weight: 600; width: 22%; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: #fbfbfc; }
table.hist td:first-child { white-space: nowrap; }
.mail { white-space: pre-wrap; font: 14px/1.55 var(--font); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; max-width: 680px; }
.mail b { display: block; margin-bottom: 8px; }
.faq h3 { margin-top: 20px; }
.next { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.next a { margin-right: 18px; display: inline-block; }

.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--soft); padding: 26px 0 36px; font-size: 14px; color: var(--ink2); }
.foot p { max-width: 80ch; }
.foot a { color: var(--ink2); }

@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .split .alerts { position: static; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 720px) {
  .top .w { gap: 6px 12px; flex-wrap: wrap; padding-top: 8px; }
  .top nav { margin-left: -10px; width: calc(100% + 10px); padding-bottom: 6px; }
  .top { position: static; }
  .split { padding-top: 20px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; }
  .row .detail { grid-column: 1 / -1; }
  .status-head { flex-direction: column; gap: 0; }
  h2 { margin-top: 38px; }
  tbody th { width: auto; }
  .alerts { padding: 18px; }
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.prose a { overflow-wrap: anywhere; }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 70ch; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font-size: 15px; color: var(--ink2); }
.btn { display: inline-block; padding: 9px 14px; border-radius: 7px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; transition: background-color .15s, transform .1s; }
.btn:hover { background: var(--red-d); color: #fff; }
.btn:active { transform: scale(.98); }
.callout { width: fit-content; }
.row .pill { justify-self: start; }
.status-head b { font-weight: 700; }
