@font-face {
  font-family: 'Jolly Lodger';
  src: url('/fonts/halloween/jolly-lodger.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bitter';
  src: url('/fonts/halloween/bitter.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Tai Le';
  src: url('/fonts/halloween/noto-sans-tai-le.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1974;
}

@font-face {
  font-family: 'Noto Sans Tai Viet';
  src: url('/fonts/halloween/noto-sans-tai-viet.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+AA97, U+AAB6, U+AAC0, U+AADD;
}

@font-face {
  font-family: 'Noto Sans New Tai Lue';
  src: url('/fonts/halloween/noto-sans-new-tai-lue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+19C1;
}

@font-face {
  font-family: 'Noto Sans Limbu';
  src: url('/fonts/halloween/noto-sans-limbu.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1945;
}

@font-face {
  font-family: 'Noto Sans Devanagari';
  src: url('/fonts/halloween/noto-sans-devanagari.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+A838;
}

:root {
  color-scheme: dark;
  --night: #1a002e;
  --surface: #280538;
  --purple: #44065c;
  --violet: #860db5;
  --orange: #ff5500;
  --green: #10c300;
  --paper: #f3dfb5;
  --muted: #d2bada;
  --border: #70467e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 15px/1.7 'Bitter', Georgia, serif;
}
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #ff995f; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: 'Jolly Lodger', fantasy; font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(38px, 4vw, 54px); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 18px; background: var(--paper); color: var(--night); }
.site-header { max-width: 1280px; margin: auto; padding: 24px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { text-decoration: none; font: 800 23px/1 'Bitter', Georgia, serif; letter-spacing: -.8px; }
.wordmark span { color: var(--orange); }
.app-link { font-size: 13px; text-decoration: none; }
.app-link span { color: var(--orange); margin-left: 8px; }
main { overflow: hidden; }
.celebration { position: relative; max-width: 1280px; margin: 0 auto; padding: 34px 70px 32px; isolation: isolate; }
.celebration::before { content: ''; position: absolute; inset: 10% -15% -5%; z-index: -1; background: radial-gradient(ellipse at 50% 48%, #860db51c, transparent 65%); pointer-events: none; }
.intro { position: relative; text-align: center; z-index: 1; }
.eyebrow { color: #ecad83; text-transform: uppercase; letter-spacing: 2px; font-size: 10px; font-weight: 700; }
h1 { color: var(--orange); font-size: clamp(56px, 7.2vw, 94px); margin: 16px 0 14px; }
.intro-copy { max-width: 680px; margin: auto; color: var(--muted); font-size: 14px; }
.podium-heading { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 32px auto 22px; scroll-margin-top: 25px; }
.podium-heading h2 { font-size: 34px; }
.podium-heading > span { width: 56px; height: 1px; background: var(--border); }
.podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 14px; list-style: none; padding: 0; margin: 0 auto; max-width: 850px; }
.winner { --medal: #c5cddd; --glow: #c5cddd33; --height: 64px; min-width: 0; position: relative; text-align: center; }
.winner-gold { --medal: #edc66a; --glow: #ffb93833; --height: 92px; grid-column: 2; grid-row: 1; }
.winner-silver { grid-column: 1; grid-row: 1; }
.winner-bronze { --medal: #d29770; --glow: #d2977033; --height: 48px; grid-column: 3; grid-row: 1; }
.winner-arch { position: relative; padding: 25px 18px 18px; border: 1px solid var(--border); border-bottom: 0; border-radius: 100px 100px 0 0; background: linear-gradient(180deg, #44065c80, #1a002e 80%); }
.winner-arch::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--glow); border-bottom: 0; border-radius: 94px 94px 0 0; pointer-events: none; }
.winner-gold .winner-arch { padding-top: 31px; border-color: #b98c3f; background: linear-gradient(180deg, #ff55001f, #44065c80 55%, #1a002e 85%); box-shadow: 0 -8px 50px #ff550014; }
.place { text-transform: uppercase; font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--medal); margin-bottom: 18px; }
.winner-profile { display: flex; flex-direction: column; align-items: center; gap: 13px; text-decoration: none; }
.winner-avatar { width: 102px; height: 102px; border-radius: 50%; border: 3px solid var(--medal); padding: 4px; box-shadow: 0 0 26px var(--glow); }
.winner-gold .winner-avatar { width: 126px; height: 126px; }
.winner-name { font-family: 'Bitter', 'Noto Sans Tai Le', 'Noto Sans Tai Viet', 'Noto Sans New Tai Lue', 'Noto Sans Limbu', 'Noto Sans Devanagari', serif; min-height: 46px; display: flex; justify-content: center; align-items: center; font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.medal-cat { width: 62px; height: 62px; margin: 3px auto 0; object-fit: contain; }
.prize { color: var(--medal); font-size: 12px; margin: 1px 0 14px; }
.prize strong { font-size: 26px; font-weight: 600; }
.winner-character { border-top: 1px solid #70467e66; padding-top: 12px; }
.label { display: block; color: var(--muted); text-transform: uppercase; font-size: 9px; letter-spacing: 1.2px; }
.character-link { display: flex; align-items: center; flex-direction: column; gap: 8px; margin-top: 10px; font-size: 12px; text-decoration: none; }
.character-link > span { min-height: 36px; display: flex; align-items: center; line-height: 1.4; overflow-wrap: anywhere; }
.character-avatar { width: 58px; height: 58px; border: 1px solid var(--border); border-radius: 9px; }
.winner-scores { display: flex; justify-content: center; gap: 22px; margin: 16px 0 0; }
.winner-scores dt { font-size: 9px; color: var(--muted); }
.winner-scores dd { margin: 1px 0 0; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pedestal { height: var(--height); display: flex; align-items: center; justify-content: center; position: relative; gap: 12px; padding: 8px; border: 1px solid var(--medal); border-radius: 0 0 8px 8px; background: linear-gradient(135deg, var(--glow), #280538); color: var(--medal); font-size: 11px; }
.pedestal strong { font-size: 28px; padding-right: 4px; }
.pedestal-rank { position: absolute; left: 12px; font: 48px/1 'Jolly Lodger', fantasy; opacity: .18; }
.podium-note { text-align: center; max-width: 650px; margin: 22px auto 0; font-size: 11px; color: var(--muted); }
.decoration { position: absolute; pointer-events: none; z-index: -1; }
.decoration img { width: 100%; height: auto; object-fit: contain; }
.web { top: -36px; right: -8px; width: 165px; opacity: .42; }
.ghost { top: 83px; left: 20px; width: 108px; transform: rotate(-12deg); animation: drift 8s ease-in-out infinite; }
.bat { top: 124px; right: 32px; width: 134px; transform: rotate(12deg); animation: drift 10s ease-in-out -3s infinite; }
.pumpkin-left { bottom: 74px; left: 20px; width: 135px; z-index: 1; }
.pumpkin-right { bottom: 74px; right: 34px; width: 92px; z-index: 1; }
.mentions { max-width: 1140px; margin: 64px auto 0; padding: 0 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.section-heading h2 { margin: 10px 0 16px; }
.mention-prize { flex-shrink: 0; text-align: right; }
.mention-prize strong { display: block; font-size: 24px; color: #9cdd83; font-weight: 600; }
.mention-prize span { font-size: 11px; color: var(--muted); }
.section-copy { max-width: 710px; font-size: 13px; color: var(--muted); }
.table-note { font-size: 10px; color: var(--muted); margin: 24px 0 9px; }
.table-scroll { border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; scrollbar-color: var(--border) var(--surface); }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
thead { background: var(--purple); }
th, td { padding: 14px; }
thead th { font-size: 10px; font-weight: 600; white-space: nowrap; }
thead th span { display: block; font-size: 8px; color: var(--muted); font-weight: 400; margin-top: 3px; }
tbody tr { background: #280538a6; }
tbody tr:nth-child(even) { background: #32104170; }
tbody tr + tr { border-top: 1px solid #70467e55; }
tbody tr:hover { background: #44065c7a; }
tbody th { font-weight: 600; }
.rank { color: #b6a0c0; font-size: 11px; font-variant-numeric: tabular-nums; }
.person-link, .entry-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.person-link span, .entry-link span { overflow-wrap: anywhere; }
.row-avatar, .entry-avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border); }
.entry-avatar { border-radius: 6px; width: 34px; height: 40px; }
.avatar-fallback { display: grid; place-items: center; background: var(--purple); color: var(--paper); font-size: 19px; }
.entry-link { color: var(--muted); font-size: 11px; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.total-score { font-size: 20px; font-weight: 700; color: #ff9b66; }
.character-score, .ghost-score { font-size: 15px; }
.scroll-hint { display: none; color: var(--muted); font-size: 10px; margin-top: 10px; }
.score-story { max-width: 1020px; margin: 64px auto 0; padding: 28px 36px; display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 42px; }
.score-story > img { width: 180px; height: auto; transform: rotate(-8deg); }
.score-story h2 { margin: 10px 0 18px; font-size: 42px; }
.score-story p:not(.eyebrow):not(.formula) { font-size: 13px; color: var(--muted); }
.score-story strong { color: var(--paper); }
.score-story .scoring-detail { margin-top: 12px; font-size: 11px !important; }
.formula { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; font-size: 11px; }
.formula b { color: var(--orange); }
.formula strong { color: #9cdd83; }
.thanks { position: relative; max-width: 780px; margin: 55px auto 65px; padding: 0 36px; text-align: center; }
.thanks-cat { width: 150px; height: auto; margin: 0 auto 12px; }
.thanks h2 { font-size: 45px; }
.thanks > p { max-width: 610px; margin: 16px auto 24px; font-size: 13px; color: var(--muted); }
.button { display: inline-block; padding: 12px 24px; border-radius: 6px; text-decoration: none; background: var(--orange); color: var(--night); font-size: 13px; font-weight: 700; }
.button:hover { background: #ff7733; color: var(--night); }
.button span { margin-left: 20px; }
.thanks > .prize-note { font-size: 10px; margin-top: 19px; }
footer { max-width: 1208px; margin: auto; padding: 25px 36px; border-top: 1px solid #70467e66; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); }
footer a { text-decoration: none; }
@keyframes drift { 50% { translate: 0 -10px; } }

@media (max-width: 1000px) {
  .celebration { padding-inline: 36px; }
  .ghost { width: 72px; left: 10px; top: 68px; opacity: .7; }
  .bat { width: 90px; right: 10px; top: 110px; opacity: .7; }
  .pumpkin-left { width: 80px; left: -5px; bottom: 60px; }
  .pumpkin-right { width: 62px; right: 0; bottom: 64px; }
  th, td { padding: 12px 10px; }
  .row-avatar, .entry-avatar { display: none; }
}

@media (max-width: 600px) {
  .site-header { padding: 22px 18px; }
  .wordmark { font-size: 18px; }
  .app-link { font-size: 10px; }
  .celebration { padding: 30px 12px 10px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  h1 { font-size: clamp(48px, 10.4vw, 64px); margin-top: 12px; }
  .intro-copy { padding: 0 18px; font-size: 11px; }
  .intro-copy br { display: none; }
  .ghost { top: 16px; left: 7px; width: 37px; opacity: .65; }
  .bat { top: 20px; right: 4px; width: 48px; opacity: .65; }
  .web { top: -60px; width: 88px; opacity: .25; }
  .podium-heading { margin: 27px 0 18px; gap: 14px; }
  .podium-heading h2 { font-size: 30px; }
  .podium { gap: 6px; grid-template-columns: 1fr 1.12fr 1fr; }
  .winner { --height: 54px; }
  .winner-gold { --height: 76px; }
  .winner-bronze { --height: 40px; }
  .winner-arch { padding: 19px 6px 12px; border-radius: 55px 55px 0 0; }
  .winner-arch::before { inset: 4px; border-radius: 51px 51px 0 0; }
  .winner-gold .winner-arch { padding-top: 23px; }
  .place { font-size: 8px; letter-spacing: 1px; margin-bottom: 12px; }
  .winner-avatar { width: 64px; height: 64px; padding: 3px; border-width: 2px; }
  .winner-gold .winner-avatar { width: 76px; height: 76px; }
  .winner-profile { gap: 10px; }
  .winner-name { font-size: 10px; min-height: 42px; }
  .medal-cat { width: 46px; height: 46px; }
  .prize { font-size: 9px; margin: 2px 0 10px; }
  .prize strong { display: block; font-size: 21px; line-height: 1.3; }
  .label { font-size: 7px; letter-spacing: .4px; }
  .character-link { font-size: 9px; gap: 8px; }
  .character-link > span { min-height: 40px; }
  .character-avatar { width: 44px; height: 44px; border-radius: 6px; }
  .winner-scores { flex-direction: column; gap: 4px; margin-top: 12px; }
  .winner-scores > div { display: flex; justify-content: space-between; align-items: baseline; padding: 0 3px; gap: 2px; }
  .winner-scores dt { font-size: 7px; }
  .winner-scores dd { font-size: 14px; }
  .pedestal { font-size: 8px; padding: 6px 2px; }
  .pedestal strong { display: block; font-size: 23px; line-height: 1.1; padding: 0; }
  .pedestal-rank { font-size: 30px; left: 5px; }
  .podium-note { font-size: 9px; padding: 0 20px; margin-top: 18px; }
  .pumpkin-left { width: 45px; bottom: 50px; left: -11px; }
  .pumpkin-right { width: 35px; bottom: 50px; right: -8px; }
  .mentions { margin-top: 48px; padding: 0 18px; }
  .section-heading { align-items: end; gap: 15px; }
  .section-heading h2 { font-size: 38px; margin-bottom: 10px; }
  .mention-prize { padding-bottom: 12px; }
  .mention-prize strong { font-size: 17px; white-space: nowrap; }
  .mention-prize span { display: block; font-size: 8px; max-width: 85px; line-height: 1.5; }
  .section-copy { font-size: 11px; }
  .table-note { font-size: 9px; margin-top: 18px; }
  table { min-width: 650px; }
  th, td { padding: 13px 11px; }
  .scroll-hint { display: block; }
  .score-story { display: block; margin-top: 42px; padding: 0 26px; }
  .score-story > img { width: 95px; margin: 0 0 16px auto; }
  .score-story h2 { font-size: 38px; }
  .score-story p:not(.eyebrow):not(.formula) { font-size: 12px; }
  .score-story .scoring-detail { font-size: 10px !important; }
  .formula { gap: 7px; font-size: 9px; }
  .thanks { margin-top: 44px; margin-bottom: 44px; padding: 0 26px; }
  .thanks-cat { width: 125px; }
  .thanks h2 { font-size: 38px; }
  .thanks > p { font-size: 11px; }
  footer { padding: 22px 18px; flex-wrap: wrap; gap: 14px; font-size: 9px; }
  footer span { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .decoration { animation: none; }
}
