:root {
  --paper: #f6f0df; --surface: #fff9ec; --ink: #252b26; --muted: #62675d; --red: #d33b28;
  --yellow: #f6d353; --purple: #c8b6e3; --blue: #a7c7ef; --green: #b4d7b3; --cream: #eddfb4;
  --mint: #d8e6ce; --mint-deep: #8ca98b; --line: #d8d2c1; --white-ink: #fff9ec;
  --red-dark: #b73223; --disabled: #e2dfd1; --soft-ink: #41483f; --overlay: #252b267a;
  --jade: #26766b; --jade-light: #ddede0;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --number: "Arial Black", "Arial", sans-serif;
  --border: 2px solid var(--ink); --shadow: 5px 5px 0 var(--ink); --nav-h: 82px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--font); overflow-x: clip; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, a.button { white-space: nowrap; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 5px; }
button:active:not(:disabled) { transform: translate(2px, 2px); }
a { color: inherit; text-decoration: none; }
button svg, span svg, .rule-strip > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
h1,h2 { min-width: 0; overflow-wrap: anywhere; }
h2 { font-size: 23px; line-height: 1.35; font-weight: 900; letter-spacing: -.8px; }
img { max-width: 100%; height: auto; }
.page-width { max-width: 1300px; width: calc(100% - 80px); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 12px; padding: 12px; z-index: 50; background: var(--yellow); border: var(--border); }
.skip-link:focus { top: 8px; }
.site-header { max-width: 1460px; margin: auto; padding: 0 40px; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 47px; height: 47px; background: var(--red); border: var(--border); box-shadow: 3px 3px 0 var(--ink); font-size: 30px; line-height: 1; color: var(--white-ink); font-weight: 900; transform: rotate(-4deg); }
.brand-type { font-size: 20px; font-weight: 900; letter-spacing: 2px; line-height: 1.25; }
.brand-type > span { display: block; margin-top: 5px; font-size: 11px; letter-spacing: 1px; font-weight: 500; }
nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-link { border: 0; background: none; font-size: 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; padding: 0; gap: 7px; white-space: nowrap; }
.nav-link:hover { color: var(--red-dark); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); border: var(--border); border-radius: 5px; min-height: 44px; padding: 10px 18px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.button:hover:not(:disabled) { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.header-demo { background: var(--yellow); margin-left: 10px; font-size: 14px; }
.festival-ribbon { display: flex; align-items: center; justify-content: space-around; gap: 20px; height: 35px; background: var(--ink); color: var(--surface); font-size: 12px; letter-spacing: 2px; overflow: hidden; white-space: nowrap; }
.festival-ribbon span:first-child { color: var(--yellow); }
.hero { min-height: 292px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) 288px; align-items: center; gap: 22px; padding-top: 26px; padding-bottom: 28px; position: relative; }
.guild-tags { display: flex; align-items: center; gap: 10px; font-size: 11px; margin-bottom: 14px; }
.guild-tags span:first-child { border: 1.5px solid var(--ink); padding: 2px 8px; border-radius: 3px; background: var(--green); font-weight: 700; }
.guild-tags span:last-child { color: var(--muted); }
h1 { font-size: clamp(36px, 4vw, 54px); line-height: 1.2; letter-spacing: -2px; font-weight: 1000; }
h1 > span { display: inline-block; color: var(--red); text-shadow: 1px 1px 0 var(--ink); }
.hero-copy > p { font-size: 13px; margin-top: 12px; color: var(--soft-ink); white-space: nowrap; }
.hero-bottom { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 11px; }
.date-stamp { display: inline-flex; align-items: center; gap: 7px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; font: 900 19px var(--number); }
.date-stamp small { font: 700 11px var(--font); }
.hero-art { height: 248px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero-art img { display: block; width: 100%; height: 100%; max-width: 370px; object-fit: contain; }
.countdown-box { border: var(--border); background: var(--surface); padding: 20px 17px 0; box-shadow: 4px 4px 0 var(--ink); position: relative; transform: rotate(1.5deg); align-self: center; margin-left: 0; }
.tape { position: absolute; width: 72px; height: 22px; top: -12px; left: calc(50% - 36px); transform: rotate(-5deg); background: var(--yellow); opacity: .9; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.countdown-kicker { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.countdown-kicker svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.countdown { display: flex; align-items: flex-start; justify-content: space-between; margin: 12px 0 10px; font-family: var(--number); }
.countdown div { text-align: center; }
.countdown strong { display: block; font-size: clamp(23px, 2.4vw, 33px); line-height: 1.2; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.countdown small { font: 10px var(--font); color: var(--muted); }
.countdown > b { line-height: 1.5; font-size: 23px; }
.countdown-box > p { font: 700 11px var(--font); padding-bottom: 12px; }
.countdown-box > p > span { color: var(--muted); font-weight: 400; font-size: 10px; }
.countdown-foot { background: var(--yellow); border-top: var(--border); margin-inline: -17px; padding: 8px 10px; text-align: center; font-size: 11px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { font-size: 23px; display: flex; align-items: center; gap: 12px; }
.hand-star { color: var(--red); font-size: 36px; line-height: 1; }
.section-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.prize-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.prize-card { background: var(--prize-color); border: var(--border); border-radius: 7px; padding: 13px 15px 12px; box-shadow: 3px 3px 0 var(--ink); position: relative; min-width: 0; }
.prize-card::before,.prize-card::after { position: absolute; content: ""; width: 9px; height: 16px; background: var(--paper); border: 1.5px solid var(--ink); top: 66px; }
.prize-card::before { left: -2px; border-left: 0; border-radius: 0 12px 12px 0; }
.prize-card::after { right: -2px; border-right: 0; border-radius: 12px 0 0 12px; }
.prize-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; }
.prize-mark { font-size: 9px; border: 1px solid currentColor; padding: 0 3px; line-height: 1.6; transform: rotate(8deg); }
.prize-amount { font: 900 clamp(29px, 3vw, 43px)/1.2 var(--number); letter-spacing: -1.4px; margin-top: 6px; margin-bottom: 7px; }
.prize-amount small { font-size: 18px; margin-right: 3px; }
.prize-meta { padding-top: 8px; border-top: 1px dashed var(--ink); display: flex; align-items: center; justify-content: space-between; font-size: 11px; white-space: nowrap; }
.prize-meta b { font-size: 13px; }
.prize-card[data-color="red"] { color: var(--white-ink); }
.prize-card[data-color="red"] .prize-meta { border-color: var(--white-ink); }
.prize-card.depleted { filter: grayscale(1); opacity: .58; }
.mode-banner { background: var(--surface); border: var(--border); box-shadow: 3px 3px 0 var(--ink); margin-top: 28px; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; }
.mode-banner.is-demo { background: var(--blue); }
.mode-banner > div { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.mode-banner > button { flex-shrink: 0; }
.mode-banner > button[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.mode-banner > div > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.mode-banner span { font-size: 12px; }
.mode-banner button { border: 0; background: transparent; min-height: 32px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 25px; margin-top: 30px; align-items: start; }
.panel { border: var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.draw-stage { background: var(--mint); padding: 23px 26px 20px; }
.stage-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mini-label { font-size: 10px; letter-spacing: 2px; margin-bottom: 5px; }
.stage-heading h2 { font-size: 23px; }
.shuffle-button { font-size: 12px; padding: 8px 12px; min-height: 40px; flex-shrink: 0; }
.shuffle-button svg { width: 16px; height: 16px; }
.stage-instruction { display: flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 34px; }
.status-tag { display: inline-block; border: 1px solid var(--ink); background: var(--surface); border-radius: 3px; font-size: 10px; padding: 1px 6px; font-weight: 700; }
.stage-instruction p { font-size: 11px; }
.draw-experience { margin: 18px 0; }
.draw-viewport { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; }
.draw-viewport > * { grid-area: 1 / 1; min-width: 0; }
.draw-viewport > [hidden], .draw-feedback > [hidden] { visibility: hidden; pointer-events: none; }
.draw-viewport > .mystery-selection[hidden] { display: grid !important; }
.draw-viewport > .case-machine[hidden] { display: block !important; }
.draw-feedback > [hidden] { display: flex !important; }
.draw-feedback > #draw-guide[hidden] { display: block !important; }
.draw-feedback { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 98px; margin-top: 16px; padding: 12px 14px; border: var(--border); border-radius: 4px; background: var(--surface); }
.draw-feedback:has(#case-result:not([hidden])) { background: var(--yellow); }
#draw-guide, #case-result { grid-area: 1 / 1; min-width: 0; }
#draw-guide strong { display: block; font-size: 14px; }
#draw-guide p { font-size: 11px; margin-top: 4px; color: var(--soft-ink); }
.case-footnote { font-size: 10px; color: var(--soft-ink); margin-top: 9px; }
.mystery-selection { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; margin: 0; padding: 16px 4px; }
.mystery-ticket { position: relative; min-width: 0; min-height: 140px; padding: 14px 5px; background: var(--red); color: var(--surface); border: var(--border); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(var(--tilt)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform .18s; }
.mystery-ticket::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--yellow); border-radius: 3px; pointer-events: none; }
.mystery-ticket:hover:not(:disabled) { transform: translateY(-8px) rotate(0); }
.mystery-ticket .mystery-seal { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: var(--border); font-size: 29px; font-weight: 900; }
.mystery-ticket > span:not(.mystery-seal) { font-size: 11px; }
.mystery-ticket small { font-size: 9px; letter-spacing: 1px; }
.case-machine { margin: 0; border: var(--border); border-radius: 7px; background: var(--ink); box-shadow: 4px 4px 0 var(--mint-deep); overflow: hidden; }
.case-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--surface); padding: 9px 14px; font-size: 11px; }
#case-phase { color: var(--yellow); }
.case-window { position: relative; overflow: hidden; width: 100%; height: 207px; border-block: 1px solid var(--muted); isolation: isolate; }
.case-window::before, .case-window::after { content: ""; position: absolute; z-index: 2; inset-block: 0; width: 38px; pointer-events: none; }
.case-window::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.case-window::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.case-track { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; width: max-content; will-change: transform; }
.reel-card { position: relative; flex: 0 0 138px; width: 138px; height: 169px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 3px; background: var(--prize-color); border: 2px solid var(--surface); border-radius: 5px; color: var(--ink); }
.reel-card[data-color="red"] { color: var(--surface); }
.reel-name { font-size: 13px; font-weight: 800; }
.reel-card img { display: block; width: 62px; height: 62px; object-fit: contain; }
.reel-amount { font: 900 36px/1.1 var(--number); letter-spacing: -1px; }
.reel-amount small { font-size: 15px; margin-right: 2px; }
.reel-mark { font-size: 10px; opacity: .85; letter-spacing: 3px; }
.reel-card.is-empty { border: 1px dashed var(--muted); color: var(--mint); background: var(--soft-ink); font-size: 12px; }
.reel-card.is-empty strong { font-size: 40px; }
.reel-card.is-winner { outline: 3px solid var(--yellow); outline-offset: 3px; }
.case-marker { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--yellow); pointer-events: none; }
.case-marker::before, .case-marker::after { content: ""; position: absolute; width: 18px; height: 12px; left: -8px; background: var(--yellow); }
.case-marker::before { top: 0; clip-path: polygon(0 0,100% 0,50% 100%); }
.case-marker::after { bottom: 0; clip-path: polygon(50% 0,100% 100%,0 100%); }
.is-settled .case-marker { background: transparent; }
.case-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; color: var(--surface); font-size: 9px; }
.case-caption strong { color: var(--yellow); font-size: 11px; font-weight: 700; }
.case-actions { display: flex; align-items: center; grid-area: 1 / 2; margin: 0; }
.case-actions .primary-button { width: auto; min-width: 134px; margin: 0; }
.case-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.case-result span { display: block; font-size: 10px; }
.case-result strong { display: block; font-size: 18px; }
.case-result button { min-height: 44px; min-width: 44px; padding: 0; background: transparent; border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.stage-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--soft-ink); font-size: 10px; padding-bottom: 18px; border-bottom: 1px dashed var(--mint-deep); }
.stage-bottom span:first-child { display: flex; align-items: center; gap: 4px; }
.stage-bottom svg { width: 14px; height: 14px; }
.inventory-section { margin-top: 18px; }
.inventory-heading { display: flex; justify-content: space-between; align-items: center; }
.inventory-heading > div { display: flex; align-items: center; gap: 8px; }
.inventory-heading h3 { font-size: 14px; font-weight: 900; }
.data-status { font-size: 10px; color: var(--soft-ink); display: flex; align-items: center; gap: 4px; }
.data-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--soft-ink); }
.inventory-heading p { font-size: 12px; }
.inventory-heading strong { font: 900 25px var(--number); }
.inventory-heading small { margin-left: 9px; font-size: 10px; color: var(--soft-ink); }
.inventory-meter { height: 12px; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; margin-top: 9px; background: var(--surface); }
.inventory-meter > div { height: 100%; background: var(--ink); transform-origin: left; transition: transform .6s ease; }
.inventory-grid { display: grid; grid-template-columns: repeat(40, minmax(0,1fr)); gap: 3px; margin-top: 11px; }
.stock-unit { aspect-ratio: 1; background: var(--prize-color); border: 1px solid var(--soft-ink); border-radius: 1px; transition: background .3s, opacity .3s; }
.stock-unit.claimed { background: transparent; border-color: var(--mint-deep); opacity: .45; }
.inventory-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--soft-ink); margin-top: 9px; }
.inventory-caption span:last-child { display: flex; align-items: center; gap: 5px; }
.inventory-caption i { display: inline-block; width: 9px; height: 9px; border: 1px solid var(--mint-deep); }
.participation-column { min-width: 0; }
.entry-panel { background: var(--surface); padding: 27px 22px 0; position: relative; }
.corner-label { position: absolute; top: -12px; right: 15px; padding: 2px 9px; font-size: 11px; font-weight: 800; background: var(--yellow); border: var(--border); transform: rotate(4deg); }
.entry-title { display: flex; align-items: center; gap: 8px; }
.entry-title h2 { font-size: 19px; }
.entry-icon { width: 29px; height: 29px; display: grid; place-items: center; background: var(--yellow); border: 1.5px solid var(--ink); transform: rotate(-7deg); }
.entry-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 11px; }
#code-form { margin-top: 20px; }
#code-form > label { font-size: 12px; font-weight: 800; display: block; margin-bottom: 7px; }
.code-input-wrap { display: flex; align-items: center; border: var(--border); border-radius: 4px; background: var(--paper); overflow: hidden; }
.code-input-wrap:focus-within { box-shadow: 0 0 0 3px var(--yellow); }
.code-input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 11px; font-size: 14px; }
.code-input-wrap input::placeholder { color: var(--muted); font-size: 12px; }
.code-input-wrap button { background: transparent; border: 0; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; }
.input-help { font-size: 10px; color: var(--muted); margin-top: 6px; }
.form-message { font-size: 12px; line-height: 1.6; margin: 10px 0; color: var(--red-dark); }
.form-message.success { color: var(--soft-ink); background: var(--mint); padding: 8px; border: 1px solid var(--ink); }
.primary-button { background: var(--red); color: var(--white-ink); width: 100%; min-height: 49px; margin-top: 16px; font-size: 14px; }
.primary-button b { margin-left: auto; }
.demo-button { width: 100%; background: var(--yellow); margin-top: 12px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }
.demo-disclaimer { font-size: 10px; color: var(--muted); text-align: center; margin-top: 10px; margin-bottom: 17px; }
.entry-state { border-top: 1px dashed var(--line); padding: 10px 0; display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 11px; }
.entry-state svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.guild-note { border: 1.5px solid var(--ink); padding: 16px 18px; margin-top: 18px; position: relative; background: var(--cream); }
.guild-note-title { display: flex; align-items: center; gap: 9px; }
.guild-note-title > span { background: var(--ink); color: var(--cream); width: 32px; height: 36px; display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.guild-note-title h3 { font-size: 16px; line-height: 1.4; }
.guild-note-title h3 span { display: block; font-size: 9px; font-weight: 400; }
.guild-note-title > b { margin-left: auto; font-size: 10px; border: 1px solid var(--jade); background: var(--jade-light); color: var(--jade); padding: 2px 4px; white-space: nowrap; }
.guild-note blockquote { margin: 10px 0 4px; font-size: 15px; font-weight: 800; }
.guild-note > p { font-size: 10px; color: var(--soft-ink); }
.guild-note > div:last-child { display: flex; align-items: center; font-size: 10px; border-top: 1px dashed var(--ink); padding-top: 10px; margin-top: 12px; gap: 7px; }
.guild-note > div:last-child span { margin-left: auto; }
.claim-tips { margin-top: 18px; padding: 17px 18px 0; border: 1.5px solid var(--ink); background: var(--surface); }
.claim-tips-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.claim-tips-heading h3 { font-size: 15px; letter-spacing: -.4px; }
.claim-tips-heading > span { font-size: 9px; white-space: nowrap; color: var(--soft-ink); }
.claim-tips ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.claim-tips li { display: flex; align-items: start; gap: 10px; }
.claim-tips li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.claim-tips li p { margin: 0; }
.claim-tips li strong { display: block; font-size: 11px; }
.claim-tips li p > span { display: block; margin-top: 2px; font-size: 10px; color: var(--soft-ink); }
.claim-tips > button { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px dashed var(--ink); background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; text-align: left; }
.claim-tips > button:hover { color: var(--red); }
.rule-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 0; border-bottom: 1.5px solid var(--ink); margin-top: 22px; }
.rule-strip > div { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.rule-strip b { font: 900 23px var(--number); color: var(--red); }
.rule-strip > svg { width: 20px; }
.rule-strip > button { min-height: 44px; font-size: 12px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
footer { padding: 23px 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--muted); }
footer b { color: var(--ink); }
#prototype-label { font-size: 10px; }
.mobile-action { display: none; }
dialog { color: var(--ink); background: var(--surface); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 var(--ink); padding: 30px; max-height: calc(100dvh - 40px); overflow-y: auto; }
dialog::backdrop { background: var(--overlay); backdrop-filter: blur(5px); }
.dialog-close { width: 38px; height: 38px; display: grid; place-items: center; font-size: 29px; line-height: 1; border: var(--border); border-radius: 50%; background: var(--surface); position: absolute; top: 13px; right: 13px; z-index: 1; }
.result-dialog { width: 420px; text-align: center; padding-top: 17px; }
.result-art { margin: -8px auto -3px; height: 160px; }
.result-art img { width: 205px; height: 165px; object-fit: contain; }
.result-mode { display: inline-block; font-size: 12px; background: var(--blue); border: 1.5px solid var(--ink); padding: 2px 9px; border-radius: 4px; }
.result-dialog h2 { margin-top: 13px; font-size: 24px; }
.result-amount { font: 900 83px/1.25 var(--number); color: var(--red); letter-spacing: -4px; }
.result-amount small { font-size: 29px; margin-right: 5px; }
.result-tier { background: var(--prize-color, var(--yellow)); color: var(--ink); display: inline-block; border: var(--border); padding: 2px 15px; font-size: 15px; font-weight: 800; transform: rotate(-3deg); }
.result-dialog > p { font-size: 13px; margin: 20px 0 5px; }
.result-secondary { display: block; min-height: 44px; margin: 10px auto 0; background: transparent; border: 0; font-size: 12px; }
#claim-reference { font-size: 12px; background: var(--paper); padding: 8px; overflow-wrap: anywhere; }
.text-dialog { width: 560px; padding: 30px; }
.dialog-eyebrow { font-size: 12px; display: block; color: var(--red-dark); font-weight: 700; margin-bottom: 8px; }
.text-dialog h2 { padding-right: 25px; }
.text-dialog ol { padding-left: 23px; font-size: 14px; margin: 25px 0; }
.text-dialog li { padding-left: 3px; margin-bottom: 18px; }
.text-dialog li p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--surface); border: 1px solid var(--surface); box-shadow: 4px 4px 0 var(--red); padding: 12px 20px; border-radius: 5px; max-width: calc(100% - 35px); width: max-content; font-size: 13px; z-index: 100; }
.icon-definitions { display: none; }
#confetti-layer { position: fixed; inset: 0; pointer-events: none; overflow: clip; z-index: 20; }
.confetti { position: absolute; top: -20px; width: 10px; height: 16px; border: 1px solid var(--ink); animation: confetti-fall 1.8s ease-in both; background: var(--prize-color); }
@keyframes confetti-fall { from { transform: translate(0,-20px) rotate(0); opacity: 1; } to { transform: translate(var(--drift),100dvh) rotate(var(--spin)); opacity: .2; } }
@media (max-width: 1150px) {
  .page-width { width: calc(100% - 48px); }
  .site-header { padding-inline: 24px; gap: 20px; } nav { gap: 23px; }
  .hero { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr) 260px; gap: 18px; }
  .hero-art { height: 228px; }
  .hero-copy > p { font-size: 11px; } .hero-bottom { gap: 8px; font-size: 9px; }
  .prize-list { gap: 10px; } .prize-card { padding-inline: 12px; }
  .play-layout { grid-template-columns: minmax(0,1fr) 302px; gap: 20px; }
  .draw-stage { padding: 20px 20px 16px; }
  .stage-heading h2 { font-size: 20px; }
  .entry-panel { padding-inline: 18px; } .entry-title h2 { font-size: 18px; }
  .inventory-grid { grid-template-columns: repeat(25,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .mystery-selection { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
  .mystery-ticket { min-height: 120px; }
  :root { --nav-h: 72px; }
  .brand-type > span { display: none; } .site-header { gap: 16px; }
  nav { gap: 18px; } .nav-link { font-size: 12px; } .header-demo { font-size: 12px; padding-inline: 12px; }
  .hero { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); padding-top: 22px; gap: 14px; }
  .hero-copy > p { font-size: 12px; } h1 { font-size: 44px; }
  .hero-art { height: 220px; }
  .hero-bottom { display: none; }
  .countdown-box { grid-column: 1 / -1; display: flex; align-items: center; padding: 10px 15px; gap: 20px; margin: 3px 0 6px; transform: none; }
  .tape { display: none; } .countdown { margin: 0; gap: 8px; align-items: center; }
  .countdown div { display: flex; align-items: baseline; gap: 2px; } .countdown strong { font-size: 23px; } .countdown > b { font-size: 18px; }
  .countdown-box > p { margin-left: auto; padding: 0; font-size: 10px; } .countdown-box > p span { display: block; } .countdown-foot { display: none; }
  .prize-card { padding-inline: 10px; } .prize-top { font-size: 11px; } .prize-mark { display: none; }
  .prize-amount { font-size: 30px; } .prize-meta { flex-wrap: wrap; gap: 2px; } .prize-meta span:last-child { font-size: 9px; }
  .play-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 18px; }
  .draw-stage { padding: 19px 17px; } .stage-heading { align-items: start; } .stage-heading h2 { font-size: 18px; }
  .mini-label { font-size: 9px; letter-spacing: 1px; } .shuffle-button { padding-inline: 8px; font-size: 11px; gap: 5px; }
  .case-caption > span { display: none; } .case-caption { justify-content: center; }
  .case-actions .primary-button { min-width: 98px; padding-inline: 12px; }
  .stage-bottom { font-size: 9px; gap: 5px; flex-wrap: wrap; } .inventory-heading { align-items: start; gap: 4px; }
  .inventory-heading > div { display: block; } .data-status { margin-top: 3px; }
  .inventory-heading small { display: block; text-align: right; margin: 0; }
  .inventory-grid { grid-template-columns: repeat(20,minmax(0,1fr)); gap: 3px; }
  .inventory-caption { font-size: 9px; } .rule-strip > div { font-size: 10px; gap: 6px; } .rule-strip b { font-size: 20px; }
  .rule-strip > svg { width: 15px; } .rule-strip { gap: 8px; }
}
@media (max-width: 650px) {
  :root { --nav-h: 64px; --shadow: 4px 4px 0 var(--ink); }
  body { font-size: 14px; padding-bottom: 86px; }
  .page-width { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; gap: 10px; }
  .brand { gap: 8px; } .brand-mark { width: 35px; height: 35px; font-size: 23px; box-shadow: 2px 2px 0 var(--ink); }
  .brand-type { font-size: 17px; letter-spacing: 1px; }
  nav { gap: 17px; } .nav-link { font-size: 12px; } nav > a.nav-link { display: none; }
  .header-demo { display: none; }
  .festival-ribbon { height: 29px; font-size: 10px; letter-spacing: 1.2px; justify-content: center; }
  .festival-ribbon span:not(:first-child) { display: none; }
  .hero { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 8px; padding-top: 19px; padding-bottom: 20px; min-height: auto; }
  .guild-tags { gap: 0; font-size: 9px; margin-bottom: 10px; } .guild-tags span:first-child { padding: 1px 5px; }
  .guild-tags span:last-child { display: none; }
  h1 { font-size: clamp(26px, 7.7vw, 40px); letter-spacing: -1px; line-height: 1.22; }
  h1 > span { text-shadow: none; }
  .hero-copy > p { font-size: 11px; width: 100%; margin-top: 12px; white-space: normal; }
  .hero-art { height: 146px; align-self: center; }
  .countdown-box { margin-top: 12px; padding: 10px 11px; gap: 10px; justify-content: space-between; border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); background: var(--yellow); }
  .countdown-kicker { font-size: 11px; gap: 5px; } .countdown-kicker svg { width: 14px; }
  .countdown { gap: 4px; } .countdown strong { font-size: 23px; } .countdown small { font-size: 8px; color: var(--ink); } .countdown > b { font-size: 16px; }
  .countdown-box > p { display: none; }
  .section-heading { margin-bottom: 12px; align-items: flex-start; gap: 8px; }
  .section-heading h2 { font-size: 18px; letter-spacing: -.7px; gap: 3px; } .hand-star { font-size: 25px; }
  .section-heading p { font-size: 10px; margin-top: 4px; max-width: 240px; }
  .prize-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
  .prize-card { padding: 9px 10px 8px; box-shadow: 2px 3px 0 var(--ink); border-radius: 5px; }
  .prize-top { font-size: 11px; } .prize-mark { display: inline; font-size: 8px; }
  .prize-amount { font-size: 32px; margin-top: 2px; margin-bottom: 3px; } .prize-amount small { font-size: 14px; }
  .prize-meta { padding-top: 5px; font-size: 9px; flex-wrap: nowrap; letter-spacing: -.3px; } .prize-meta b { font-size: 11px; }
  .prize-card::before,.prize-card::after { top: 51px; width: 7px; height: 12px; }
  .play-layout { display: flex; flex-direction: column; gap: 23px; margin-top: 24px; }
  .draw-stage { width: 100%; padding: 19px 16px 17px; }
  .stage-heading h2 { font-size: 18px; } .shuffle-button { min-height: 40px; font-size: 11px; padding-inline: 9px; }
  .stage-instruction { margin-top: 11px; gap: 6px; } .stage-instruction p { font-size: 10px; }
  .draw-feedback { gap: 9px; padding-inline: 10px; min-height: 112px; }
  .case-actions .primary-button { min-width: 86px; font-size: 13px; padding-inline: 10px; }
  .case-result strong { font-size: 16px; line-height: 1.4; }
  .case-result button { font-size: 11px; }
  .case-window { height: 187px; }
  .case-track { gap: 9px; }
  .reel-card { flex-basis: 108px; width: 108px; height: 151px; }
  .reel-card img { width: 53px; height: 53px; }
  .reel-amount { font-size: 30px; } .reel-name { font-size: 12px; }
  .case-topline { font-size: 10px; padding-inline: 10px; }
  .case-window::before, .case-window::after { width: 17px; }
  .stage-bottom { font-size: 9px; flex-wrap: nowrap; }
  .inventory-heading > div { display: flex; } .data-status { margin-top: 0; }
  .inventory-heading small { display: inline; margin-left: 7px; font-size: 9px; }
  .inventory-heading h3 { font-size: 13px; } .inventory-heading strong { font-size: 23px; }
  .inventory-grid { gap: 4px; } .inventory-caption { font-size: 9px; }
  .participation-column { width: 100%; } .entry-panel { padding: 25px 21px 0; }
  .entry-title h2 { font-size: 21px; } .entry-description br { display: none; } .entry-description { font-size: 12px; }
  .primary-button { min-height: 49px; font-size: 15px; } .demo-button { min-height: 45px; font-size: 14px; }
  .code-input-wrap input { font-size: 16px; }
  .input-help,.demo-disclaimer { font-size: 11px; }
  .entry-state { font-size: 12px; } .guild-note { margin-top: 22px; padding: 19px; }
  .guild-note-title h3 { font-size: 18px; } .guild-note-title h3 span { font-size: 10px; }
  .guild-note blockquote { font-size: 17px; } .guild-note > p { font-size: 12px; }
  .guild-note > div:last-child { font-size: 11px; }
  .claim-tips { margin-top: 20px; padding: 19px 20px 0; }
  .claim-tips-heading h3 { font-size: 17px; }
  .claim-tips-heading > span { font-size: 10px; }
  .claim-tips li strong { font-size: 13px; }
  .claim-tips li p > span { font-size: 12px; }
  .claim-tips > button { min-height: 46px; font-size: 13px; }
  .rule-strip { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; padding: 0 0 17px; margin-top: 22px; }
  .rule-strip > div { font-size: 12px; gap: 13px; } .rule-strip > svg { display: none; } .rule-strip > button { position: absolute; right: 16px; align-self: end; font-size: 11px; }
  footer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 10px; padding-top: 18px; padding-bottom: 20px; }
  .mobile-action { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; border-top: var(--border); background: var(--surface); padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-action small { display: block; font-size: 10px; color: var(--muted); }
  .mobile-action strong { font-size: 13px; }
  .mobile-action .button { background: var(--red); color: var(--surface); min-height: 44px; font-size: 14px; min-width: 147px; }
  .mobile-action .button span { font-size: 18px; }
  .mode-banner { margin-top: 22px; padding: 9px 11px; align-items: center; gap: 5px; min-height: 76px; }
  .mode-banner > div { gap: 5px; flex-wrap: wrap; font-size: 12px; }
  .mode-banner > div > svg { width: 17px; height: 17px; } .mode-banner span { font-size: 10px; }
  .mode-banner > div > span { width: 100%; } .mode-banner button { font-size: 10px; padding: 0; }
  .toast { bottom: 91px; font-size: 12px; }
  dialog { width: calc(100% - 30px); max-height: calc(100dvh - 40px); margin: auto; padding: 25px 21px; box-shadow: 5px 5px 0 var(--ink); }
  .result-dialog { padding-top: 15px; } .result-art { height: 142px; } .result-art img { height: 149px; }
  .result-dialog h2 { font-size: 22px; } .result-amount { font-size: 78px; } .text-dialog h2 { font-size: 23px; }
  .text-dialog ol { font-size: 14px; } .text-dialog li p { font-size: 13px; }
}
@media (max-width: 360px) {
  .mystery-selection { gap: 10px; }
  .mystery-ticket { min-height: 112px; }
  .site-header { padding-inline: 12px; } nav { gap: 12px; } .nav-link { font-size: 11px; }
  .page-width { width: calc(100% - 24px); } .brand-type { font-size: 15px; }
  .hero-art { height: 128px; }
  .hero-copy > p { font-size: 9px; } .countdown { gap: 2px; } .countdown strong { font-size: 20px; } .countdown-kicker { font-size: 10px; }
  .section-heading h2 { font-size: 16px; } .hand-star { display: none; } .section-heading p { font-size: 9px; }
  .prize-list { gap: 9px; } .prize-card { padding-inline: 8px; } .prize-meta span:last-child { font-size: 8px; }
  .prize-amount { font-size: 29px; } .prize-top { font-size: 10px; }
  .stage-heading h2 { font-size: 16px; } .mini-label { font-size: 8px; } .shuffle-button { font-size: 10px; padding-inline: 7px; }
  .draw-stage { padding-inline: 12px; } .stage-instruction p { font-size: 9px; }
  .inventory-heading > div { display: block; } .data-status { margin-top: 2px; } .inventory-heading small { display: block; }
  .stage-bottom { font-size: 8px; } .mobile-action { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #confetti-layer { display: none; }
}
