:root {
  color-scheme: light;
  --orange: #ff8900;
  --orange-dark: #a73808;
  --apricot: #ffe7d4;
  --ivory: #fff9f5;
  --white: #fff;
  --gold: #dfaa45;
  --gold-pale: #fff2d5;
  --ink: #30231f;
  --muted: #6c5349;
  --line: #f1d6c6;
  --hero-dark: #3c1c12;
  --brown: #301a12;
  --cream: #fff5e1;
  --gold-light: #ffe09a;
  --shadow: 0 8px 28px #6b27100c;
  --radius: 20px;
  font-family: system-ui, "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: linear-gradient(180deg, #fff1e7, var(--white) 21rem) var(--white); color: var(--ink); line-height: 1.75; }
button, select { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange-dark); outline-offset: 3px; }
.hero {
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(180deg, #3514084a 0%, #501a0b20 42%, #351006db 100%),
    radial-gradient(ellipse at center, #38140590 0%, #4e1a053b 56%, transparent 82%),
    url("./assets/images/branding/NSL3_bg.jpg") center 54% / cover no-repeat #622300;
  border-bottom: 4px solid var(--orange);
}
.hero-inner { padding: clamp(23px, 3vw, 36px) 16px clamp(28px, 3vw, 40px); }
.brand { margin: 0 auto 9px; font-size: .875rem; font-weight: 850; letter-spacing: .24em; text-shadow: 0 2px 5px var(--hero-dark); }
.hero h1 { margin: 0; }
.hero h1 img {
  display: block;
  width: min(100%, clamp(220px, 27vw, 322px));
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 3px 3px #361501b8) drop-shadow(0 9px 17px #301000a6);
}
.tagline { font-size: clamp(1.24rem, 4.8vw, 2.1rem); letter-spacing: .04em; font-weight: 850; line-height: 1.35; margin: 12px 0 5px; text-shadow: 0 2px 8px var(--hero-dark); }
.hero-lead { margin: 0 auto 14px; font-size: clamp(.87rem, 3.55vw, 1.03rem); font-weight: 700; text-shadow: 0 1px 5px var(--hero-dark); }
.date { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 9px; margin: 0; padding: 5px 14px; color: var(--orange-dark); background: var(--white); border-radius: 999px; font-size: clamp(.82rem, 3.4vw, 1rem); font-weight: 800; }
.date span + span { font-size: .75em; }
@media (max-width: 639px) {
  .hero { background-position: center, center, center 57%; }
  .hero h1 img { width: min(82%, 264px); }
}
.navigation { position: sticky; top: 0; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 940px; margin: auto; }
.tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 12px 2px 9px; min-height: 45px; color: var(--muted); font-size: clamp(.62rem, 2.8vw, .87rem); font-weight: 850; }
.tabs button[aria-selected="true"] { color: var(--orange-dark); background: var(--apricot); border-bottom-color: var(--orange); }
main { width: min(100% - 28px, 940px); margin: 22px auto 40px; }
.card { padding: clamp(15px, 4vw, 30px); margin-bottom: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
h2, h3, h4 { margin: 0 0 12px; line-height: 1.4; overflow-wrap: anywhere; }
h2 { border-left: 4px solid var(--orange); padding-left: 11px; font-size: clamp(1.15rem, 4.2vw, 1.65rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.steps, .schedule, .board-grid, .ranking-list { list-style: none; padding: 0; }
.schedule { margin: 0 0 12px; }
.schedule li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.schedule li[aria-current] { background: var(--apricot); }
.schedule strong { color: var(--orange-dark); min-width: 64px; }
.callout, .status { border-radius: 10px; background: var(--ivory); padding: 9px 12px; }
.callout strong { color: var(--orange-dark); }
.status, .note { color: var(--muted); font-size: .87rem; }
.rule-grid { display: grid; gap: 10px; margin: 12px 0; }
.rule-grid > div, .reward-item { padding: 12px; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; }
.rule-grid dl { margin: 0 0 8px; }
.rule-grid dl div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.rule-grid dd { margin: 0; font-weight: 750; }
.ranking-tabs { margin-bottom: 13px; }
.phrase-picker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.phrase-picker select, .slide-controls button, dialog button, .retry { border: 1px solid var(--line); border-radius: 9px; background: var(--white); min-height: 44px; padding: 4px 10px; }
.ranking-list { margin: 0; }
.ranking-list li { display: grid; grid-template-columns: 2ch minmax(0, 1fr) max-content; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ranking-list li > strong { color: var(--orange-dark); font-variant-numeric: tabular-nums; }
.ranking-bonuses { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: .875rem; }
.ranking-bonuses div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.ranking-bonuses dt { color: var(--muted); }
.ranking-bonuses dd { margin: 0; font-weight: 750; }
@media (max-width: 480px) {
  .ranking-list li { grid-template-columns: auto minmax(0, 1fr); }
  .ranking-list li > strong { grid-column: 2; justify-self: end; }
}
.person { display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.person img, .slot-placeholder { flex: none; border-radius: 50%; object-fit: cover; background: var(--apricot); }
.finalists { padding: clamp(10px, 3vw, 22px); border: 1px solid var(--gold); border-radius: 12px; background: linear-gradient(145deg, var(--gold-pale), var(--ivory)); }
#finalist-status { color: var(--orange-dark); font-size: .84rem; letter-spacing: .09em; font-weight: 800; }
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; }
.board-grid li { display: grid; align-content: start; justify-items: center; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 8px 4px; text-align: center; font-size: .75rem; }
.board-grid .person { flex-direction: column; }
.slot-placeholder { width: 34px; height: 34px; }

.reward-grid { display: grid; gap: 8px; }
.reward-item > strong { display: block; color: var(--orange-dark); font-size: .85rem; }
.reward-item ul, .continuity ol { margin: 5px 0 10px; padding-left: 1.4em; }
.reward-item img { max-width: 100%; height: auto; display: block; }
#faq-list details { border-bottom: 1px solid var(--line); }
#faq-list summary { font-weight: 750; padding: 12px 1px; cursor: pointer; }
#faq-list details p { padding: 0 0 12px 12px; }
.slide-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: #b86a3a #f3e2d4; }
.slide-track::-webkit-scrollbar { height: 12px; }
.slide-track::-webkit-scrollbar-track { background: #f3e2d4; }
.slide-track::-webkit-scrollbar-thumb { background: #b86a3a; }
.slide-track button { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 0; border: 0; background: var(--ivory); cursor: zoom-in; }
.slide-track button:focus-visible { outline-offset: -3px; }
#slide-position { margin: 5px 0 0; color: var(--orange-dark); text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
  .slide-track { scrollbar-width: none; }
  #slide-position::before {
    content: "";
    display: block;
    height: 5px;
    margin-bottom: 4px;
    background: linear-gradient(#b86a3a, #b86a3a) var(--slide-position, 0%) center / var(--slide-thumb) 100% no-repeat #f3e2d4;
  }
}
.slide-track img { display: block; width: 100%; height: auto; }
.slide-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
#slide-dialog { width: min(96vw, 1100px); max-height: 95dvh; padding: 12px; background: var(--ivory); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
#slide-dialog::backdrop { background: #24110bd9; }
#slide-dialog form { text-align: right; margin-bottom: 8px; }
#slide-dialog img { display: block; margin: auto; max-width: 100%; max-height: min(68dvh, 690px); object-fit: contain; }
#slide-dialog button { min-width: 44px; color: var(--orange-dark); cursor: pointer; }
footer { text-align: center; padding: 20px; color: var(--muted); font-size: .78rem; }
@media (min-width: 640px) {
  main { margin-top: 30px; }
  .rule-grid, .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}


/* ABOUT */
.about-prize {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  background: linear-gradient(110deg, #852b10, #ac380e 58%, #c4490a);
  border: 1px solid var(--gold);
  padding: clamp(17px, 4vw, 30px);
  color: var(--cream);
  border-radius: 15px;
}
.about-prize h2, .reward-championship h2 { border: 0; padding: 0; }
.about-prize h2 { margin-bottom: 2px; }
.about-prize h2 strong { color: var(--gold-light); font-size: 1.45em; }
.about-prize p { font-size: .9rem; }
.prize-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; border-radius: 6px; padding: 7px 13px; color: var(--brown); background: var(--gold-light); font-weight: 800; }
.prize-link:focus-visible { outline-color: var(--cream); }
.roadmap, .slide-section, .schedule-section { margin-top: 24px; padding: 0 clamp(0px, 2vw, 16px); }
.roadmap > p { color: var(--muted); }
.steps { position: relative; display: grid; gap: 0; margin: 16px 0 0; }
.steps li { display: grid; grid-template-columns: 45px minmax(0, 1fr); align-items: start; gap: 12px; position: relative; padding: 0 0 17px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; inset: 36px auto 0 21px; border-left: 2px solid var(--orange); }
.step-index { display: grid; place-items: center; border-radius: 50%; width: 44px; height: 44px; background: var(--apricot); color: var(--orange-dark); font-size: 1.22rem; line-height: 1; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
.steps li:last-child .step-index { background: var(--brown); color: var(--gold-light); }
.steps h3 { margin: 2px 0 3px; }
.steps p { font-size: .88rem; color: var(--muted); }
.slide-section { padding-block: 13px; border-block: 1px solid var(--line); scroll-margin-top: 56px; }
.slide-section h2 { border: 0; padding: 0; font-size: 1rem; margin: 0; }
.slide-section .status { padding: 0; margin: 4px 0 0; background: transparent; }
.slide-hint { margin: 4px 0 6px; font-size: .875rem; }
.schedule-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.schedule-heading h2 { margin-bottom: 0; }
.schedule-heading > span { font-size: .78rem; color: var(--muted); }
.schedule { margin-left: 6px; border-left: 2px solid var(--line); }
.schedule li { position: relative; margin-left: 13px; padding: 8px 5px 8px 0; }
.schedule li::before { content: ""; position: absolute; top: 16px; left: -19px; width: 9px; height: 9px; border: 2px solid var(--orange-dark); border-radius: 50%; background: var(--ivory); }
.schedule li[aria-current]::before { background: var(--orange-dark); }
.schedule-final { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--cream); border: 1px solid var(--gold); border-radius: 10px; }
.schedule-final > span { color: var(--orange-dark); font-size: 1.6rem; }
.schedule-final h3 { margin: 0; }

/* REWARDS */
.reward-section { margin-bottom: 18px; padding: clamp(15px, 3vw, 26px); border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.reward-championship {
  color: var(--cream);
  background:
    radial-gradient(ellipse at 84% 22%, #d47e3a5e, transparent 45%),
    linear-gradient(150deg, #28150f 25%, #532a18 76%, #381e13);
  border-color: var(--gold);
  box-shadow: 0 10px 22px #301a1228;
}
.reward-championship h2 { display: inline-block; color: var(--gold-light); font-size: .85rem; border-bottom: 1px solid var(--gold); padding-bottom: 5px; }
.champion-feature { display: grid; position: relative; gap: 12px; margin-bottom: 12px; }
.champion-copy { font-size: clamp(1.35rem, 6vw, 2.5rem); font-weight: 900; letter-spacing: .025em; line-height: 1.25; margin: 0 0 12px; }
.champion-podium .reward-item { background: transparent; color: inherit; padding: 0; border: 0; }
.champion-podium .reward-value { display: block; line-height: 1.12; font-size: clamp(1.9rem, 8.1vw, 4rem); color: var(--gold-light); font-weight: 950; letter-spacing: -.04em; }
.champion-podium .reward-rank { display: inline-block; color: var(--brown); background: var(--gold-light); padding: 2px 12px; border-radius: 5px; margin-bottom: 5px; }
.champion-podium ul { display: flex; flex-wrap: wrap; padding: 0; list-style: none; gap: 5px; margin: 9px 0 0; }
.champion-podium li { padding: 2px 7px; border-radius: 5px; border: 1px solid #ffe09a65; font-size: .79rem; }
.reward-championship .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reward-championship .reward-grid .reward-item { background: #ffffff10; border-color: #ffe09a51; padding: 9px; }
.reward-championship .reward-grid .reward-rank, .reward-championship .note { color: var(--gold-light); }
.reward-championship .reward-grid .reward-value { font-size: clamp(.86rem, 3.6vw, 1.15rem); }
.reward-championship .reward-grid ul { margin-bottom: 0; font-size: .76rem; }
.reward-section .note { margin-top: 8px; }
.reward-league { background: var(--cream); }
.reward-league .reward-item, .reward-points .reward-item { display: grid; gap: 2px; }
.reward-league .reward-value, .reward-points .reward-value { font-size: clamp(.9rem, 3.8vw, 1.2rem); }
.reward-phrase .reward-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 9px; align-items: start; }
.reward-phrase .reward-item > :not(:first-child) { grid-column: 2; }
.reward-phrase .reward-rank { background: var(--apricot); text-align: center; padding-block: 2px; border-radius: 5px; grid-row: 1 / span 2; }
.reward-phrase .reward-item:first-child .reward-rank { background: var(--brown); color: var(--gold-light); }
.reward-phrase ul, .reward-league ul { margin-bottom: 0; font-size: .81rem; }
.reward-points .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reward-points .reward-item { border-left: 3px solid var(--gold); }
.additional-rewards { background: transparent; }
.additional-grid { display: grid; gap: 18px; font-size: .9rem; }
.additional-grid h3 { margin-bottom: 4px; }
.continuity ol { margin-block: 6px; }

/* RULE and RANKING */
.point-equation { display: flex; flex-wrap: wrap; align-items: stretch; gap: 5px; color: var(--orange-dark); font-size: .85rem; font-weight: 800; margin: 12px 0; }
.point-equation > span, .point-equation > strong { display: grid; align-content: center; border-radius: 6px; padding: 6px 10px; background: var(--apricot); }
.point-equation > strong { background: var(--brown); color: var(--cream); }
.point-equation b { align-self: center; }
.point-equation small { font-weight: 650; }
.point-detail { --rule-color: var(--orange-dark); align-self: start; border: 1px solid var(--line); border-top: 3px solid var(--rule-color); border-radius: 8px; background: var(--ivory); }
.point-detail:nth-child(2) { --rule-color: #a3440b; }
.point-detail:nth-child(3) { --rule-color: #793321; }
.point-detail summary { min-height: 44px; padding: 9px; color: var(--rule-color); cursor: pointer; font-weight: 800; }
.point-detail dl, .point-detail .note { margin: 0 9px 9px; }
.finalists { background: radial-gradient(ellipse at 50% 0, #a2592f, transparent 49%), var(--brown); color: var(--cream); }
.finalist-heading { text-align: center; margin-bottom: 14px; }
.finalist-heading > span { color: var(--gold-light); font-size: 1.65rem; }
.finalist-heading h3 { margin: 2px 0; }
#finalist-status { color: var(--gold-light); }
#finalist-board h4 { color: var(--gold-light); }
.board-grid li { background: #ffefd91a; border-color: #ffdda556; font-size: .77rem; }
.board-grid li.is-confirmed { border-color: var(--gold); background: var(--cream); color: var(--brown); }
.board-grid li.is-confirmed img { border: 2px solid var(--gold); }
.board-grid .slot-placeholder { background: #ffdfa537; }
.board-grid .person { min-width: 0; max-width: 100%; }
.board-grid .person span { overflow-wrap: anywhere; }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .steps li { grid-template-columns: 1fr; padding: 0; }
  .steps li:not(:last-child)::before { inset: 21px -18px auto 51px; border: 0; border-top: 2px solid var(--orange); }
  .champion-feature.has-example { grid-template-columns: 1.35fr 1fr; align-items: center; }
  .reward-phrase .reward-grid, #point-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .additional-grid { grid-template-columns: 1.2fr 1fr; }
}

.emoji {
  display: inline-block;
  margin-inline-end: .35em;
  font: normal .92em / 1 "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  vertical-align: -.04em;
}
.emoji::before { content: attr(data-emoji); }
.prize-example {
  width: min(100%, 250px);
  justify-self: center;
  margin: 0;
}
.prize-example img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gold);
  border-radius: 8px;
}
.prize-example figcaption {
  margin-top: 4px;
  color: var(--gold-light);
  font-size: .75rem;
  text-align: center;
}
