:root { color-scheme: dark; --bg: #10172b; --panel: #18223d; --panel-2: #202d4e; --line: #344568; --text: #f7f4ed; --muted: #aeb8cc; --accent: #f0b86c; --success: #88d7ae; --danger: #ff9c9c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.safe-area-cover { display: none; }
.offline-notice { margin: 14px 0 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; background: var(--panel); }
.ios-blur-fix { display: none; }
body[data-auth-pending] #login-view, body[data-auth-pending] #admin-login { display: none !important; }
html { min-height: 100%; overflow-x: hidden; overscroll-behavior-y: auto; background: var(--bg); }
body { position: relative; isolation: isolate; min-width: 320px; min-height: 100dvh; margin: 0px; overflow-x: hidden; overscroll-behavior-y: auto; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body.modal-open { overflow: hidden; }
body::before { position: fixed; inset: 0px; z-index: -1; background: radial-gradient(circle at 18% -5%, #39547f 0, transparent 28rem), radial-gradient(circle at 100% 48%, #263458 0, transparent 32rem), var(--bg); pointer-events: none; content: ""; }
button, input { font: inherit; }
.shell { width: min(100% - 32px, 880px); margin: 0px auto; padding: calc(24px + env(safe-area-inset-top, 0px)) 0 64px; }
.panel { border: 1px solid rgba(91, 116, 164, 0.42); border-radius: 22px; background: linear-gradient(145deg, rgba(30, 44, 76, 0.95), rgba(20, 29, 53, 0.95)); box-shadow: rgba(0, 0, 0, 0.18) 0px 18px 50px; }
.login-panel { width: min(100%, 480px); margin: 12vh auto 0px; padding: 34px; }
.hero { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; overflow: hidden; padding: 30px; background: linear-gradient(135deg, rgb(38, 62, 105) 0%, rgb(24, 38, 67) 58%, rgb(26, 34, 59) 100%); }
.admin-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hero::after { position: absolute; right: -45px; bottom: -95px; width: 250px; height: 250px; border: 1px solid rgba(240, 184, 108, 0.35); border-radius: 50%; box-shadow: rgba(240, 184, 108, 0.05) 0px 0px 0px 20px, rgba(240, 184, 108, 0.04) 0px 0px 0px 42px; content: ""; pointer-events: none; }
h1, h2, h3, p { margin-top: 0px; }
h1 { margin-bottom: 10px; font-size: clamp(32px, 6vw, 54px); line-height: 1; letter-spacing: -0.04em; }
h2 { margin-bottom: 0px; font-size: 24px; }
h3 { margin-bottom: 6px; font-size: 24px; }
.eyebrow { margin-bottom: 7px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--muted); line-height: 1.5; }
.stack { display: grid; gap: 14px; }
label, .field-label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgb(17, 26, 49); color: var(--text); outline: none; }
input:focus { border-color: var(--accent); }
.button { min-height: 42px; padding: 9px 15px; border: 0px; border-radius: 12px; cursor: pointer; font-weight: 800; }
.button-primary { background: var(--accent); color: rgb(36, 26, 13); }
.button-ghost { border: 1px solid var(--line); background: transparent; color: var(--text); }
.button:disabled { cursor: not-allowed; opacity: 0.55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0px; }
.stat { display: grid; gap: 3px; padding: 17px; }
.stat strong { font-size: 28px; }
.stat span { color: var(--muted); font-size: 12px; }
.section-card { margin-top: 14px; padding: 22px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pill { padding: 6px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.redeem-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.message { margin: 12px 0px 0px; }
.error { color: var(--danger); }
dialog { width: min(100% - 32px, 500px); padding: 0px; border: 0px; border-radius: 22px; background: transparent; color: var(--text); }
dialog::backdrop { background: rgba(5, 8, 18, 0.76); }
.dialog-card { position: relative; display: grid; gap: 14px; padding: 30px; border: 1px solid rgba(240, 184, 108, 0.55); border-radius: 24px; background: linear-gradient(145deg, rgb(39, 59, 99), rgb(24, 35, 62)); box-shadow: rgba(0, 0, 0, 0.35) 0px 24px 80px; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0px; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 8px; padding: 2px; }
.choice-gift { display: grid; place-items: center; min-height: 54px; padding: 8px 5px; border: 1px solid var(--line); border-radius: 12px; background: rgb(17, 26, 49); color: var(--text); cursor: pointer; text-align: center; transition: border-color 150ms, background 150ms, transform 150ms, opacity 150ms; }
.choice-gift:hover { transform: translateY(-1px); border-color: rgba(240, 184, 108, 0.6); }
.choice-gift strong { color: var(--accent); font-size: 20px; }
.choice-gift.is-selected { border-color: var(--accent); background: rgba(240, 184, 108, 0.14); box-shadow: rgba(240, 184, 108, 0.12) 0px 0px 0px 2px; }
.choice-gift:disabled, .choice-gift.is-unavailable { cursor: not-allowed; opacity: 0.3; }
.admin-table-wrap { overflow-x: auto; }
.visits-table-wrap { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.visits-table-wrap th { position: sticky; top: 0; z-index: 1; background: var(--panel); }
.visits-table-wrap td { font-variant-numeric: tabular-nums; }
.visits-table-wrap time { white-space: nowrap; }
.visit-ip { color: var(--accent); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
#visits-summary { margin-bottom: 12px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
td small { display: block; margin-top: 4px; color: var(--muted); }
.selected-gifts { display: grid; gap: 10px; }
.empty-state { margin: 0px; padding: 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.selected-gift { padding: 13px; border: 1px solid rgba(240, 184, 108, 0.38); border-radius: 15px; background: linear-gradient(110deg, rgb(29, 44, 76), rgb(20, 30, 54)); }
.selected-gift-top { display: grid; grid-template-columns: 42px minmax(0px, 1fr) auto; align-items: center; gap: 10px; }
.selected-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: rgba(240, 184, 108, 0.15); color: var(--accent); font-weight: 900; }
.selected-copy strong, .selected-copy span { display: block; }
.selected-copy span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.activation { padding: 5px 8px; border-radius: 999px; background: rgba(240, 184, 108, 0.12); color: var(--accent); font-size: 11px; font-weight: 800; white-space: nowrap; }
.activation.is-active { background: rgba(136, 215, 174, 0.14); color: var(--success); }
.selected-gift-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0px 0px 52px; padding-top: 10px; border-top: 1px solid rgba(91, 116, 164, 0.24); }
.code-value { color: var(--muted); font-size: 12px; }
.code-value b { color: var(--text); font: 700 13px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.05em; }
.admin-section-summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 10px 14px; cursor: pointer; list-style: none; }
.admin-section-summary::-webkit-details-marker { display: none; }
.admin-section-title { display: grid; gap: 6px; }
.admin-section-title .eyebrow { margin: 0; }
.admin-section-name { font-size: 24px; font-weight: 700; line-height: 1.2; }
.admin-section-summary > .pill { grid-column: 1; justify-self: start; }
.admin-section-summary::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: center; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); content: ""; transform: rotate(45deg); transition: transform 180ms ease; }
.admin-section[open] > .admin-section-summary::after { transform: rotate(225deg); }
.admin-section-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
.admin-section-body { margin-top: 18px; }
.admin-reset-progress { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-reset-progress button { color: var(--danger); }
.admin-reset-progress [role="status"] { margin-top: 12px; margin-bottom: 0; }
@media (max-width: 560px) {
.hero > div { min-width: 0px; }
.section-heading { flex-wrap: wrap; }
.selected-gift-top { grid-template-columns: 38px minmax(0px, 1fr); }
.activation { grid-column: 2; justify-self: start; }
.selected-gift-bottom { margin-left: 48px; }
.shell { width: min(100% - 20px, 880px); padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.hero { padding: 21px; }
.section-card { padding: 17px; }
.stats { gap: 7px; }
.stat { padding: 13px 11px; }
.stat strong { font-size: 23px; }
.redeem-form { grid-template-columns: 1fr; }
.choice-grid { grid-template-columns: repeat(3, 1fr); }
}
.hero { min-height: 188px; align-items: flex-end; background: radial-gradient(circle at 85% 18%, rgba(240, 184, 108, 0.18), transparent 14rem), linear-gradient(135deg, rgb(38, 62, 105) 0%, rgb(24, 38, 67) 58%, rgb(26, 34, 59) 100%); }
.hero-copy { position: relative; z-index: 1; max-width: 590px; }
.hero-copy > p:last-child { max-width: 410px; margin: 14px 0px 0px; color: rgb(212, 220, 239); line-height: 1.5; }
.current-prize { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 188px; margin-top: 14px; padding: 28px; overflow: hidden; border-color: rgba(240, 184, 108, 0.55); background: linear-gradient(120deg, rgb(36, 58, 102) 0%, rgb(26, 41, 75) 57%, rgb(23, 35, 62) 100%); }
.current-prize-content { position: relative; z-index: 1; max-width: 570px; }
.current-prize h2 { margin-bottom: 8px; font-size: clamp(24px, 5vw, 34px); }
.current-prize p:not(.eyebrow) { max-width: 510px; margin-bottom: 16px; }
.current-glow { position: absolute; right: -85px; bottom: -135px; width: 330px; height: 330px; border: 1px solid rgba(240, 184, 108, 0.38); border-radius: 50%; box-shadow: rgba(240, 184, 108, 0.05) 0px 0px 0px 20px, rgba(240, 184, 108, 0.04) 0px 0px 0px 45px, rgba(240, 184, 108, 0.12) 0px 0px 90px; animation: 4s ease-in-out 0s infinite normal none running slow-pulse; }
.current-number { position: relative; z-index: 1; display: grid; width: 112px; height: 112px; flex: 0 0 112px; place-items: center; border: 1px solid rgba(240, 184, 108, 0.6); border-radius: 34px; background: linear-gradient(145deg, rgba(240, 184, 108, 0.22), rgba(240, 184, 108, 0.05)); color: var(--accent); font-size: 48px; font-weight: 900; box-shadow: rgba(0, 0, 0, 0.18) 0px 12px 40px, rgba(240, 184, 108, 0.08) 0px 0px 24px inset; transform: rotate(5deg); }
.countdown { display: inline-flex; margin: 2px 0px 17px; padding: 9px 13px; border: 1px solid rgba(240, 184, 108, 0.34); border-radius: 11px; background: rgba(11, 19, 38, 0.32); color: var(--accent); font: 800 15px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.02em; }
.gifts-section { padding-bottom: 24px; }
.redeem-strip { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.25fr); align-items: center; gap: 16px; margin-bottom: 18px; padding: 15px; border: 1px solid rgba(91, 116, 164, 0.5); border-radius: 16px; background: linear-gradient(105deg, rgba(16, 26, 51, 0.75), rgba(31, 45, 78, 0.7)); }
.redeem-strip strong, .redeem-strip span { display: block; }
.redeem-strip strong { margin-bottom: 4px; }
.redeem-strip span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.redeem-strip .message { grid-column: 2; margin: -8px 0px 0px; }
.redeem-form { min-width: 0px; }
.selected-gifts { display: grid; gap: 12px; }
.selected-gift-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid rgba(240, 184, 108, 0.35); border-radius: 17px; background: linear-gradient(120deg, rgb(29, 44, 76), rgb(20, 30, 54)); transition: transform 220ms, border-color 220ms, box-shadow 220ms; }
.selected-gift-card:hover { transform: translateY(-2px); border-color: rgba(240, 184, 108, 0.58); }
.selected-gift-card.is-revealed { border-color: rgba(136, 215, 174, 0.46); background: linear-gradient(120deg, rgb(28, 58, 69), rgb(24, 45, 60) 58%, rgb(21, 35, 56)); }
.selected-gift-meta { display: grid; grid-template-columns: 42px minmax(0px, 1fr) auto; align-items: center; gap: 11px; }
.selected-gift-meta > div strong, .selected-gift-meta > div span { display: block; }
.selected-gift-meta > div span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.selected-number { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: rgba(240, 184, 108, 0.15); color: var(--accent); font-weight: 900; }
.is-revealed .selected-number { background: rgba(136, 215, 174, 0.15); color: var(--success); }
.gift-state { padding: 5px 8px; border-radius: 999px; background: rgba(240, 184, 108, 0.12); color: var(--accent); font-size: 11px; font-weight: 800; white-space: nowrap; }
.is-revealed .gift-state { background: rgba(136, 215, 174, 0.14); color: var(--success); }
.revealed-gift-content { display: grid; grid-template-columns: minmax(115px, 155px) minmax(0px, 1fr); gap: 16px; align-items: start; margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(136, 215, 174, 0.24); }
.revealed-gift-image { display: grid; height: 160px; padding: 12px; place-items: center; overflow: hidden; border-radius: 13px; background: linear-gradient(145deg, rgb(41, 63, 103), rgb(16, 24, 44)); }
.revealed-gift-image img { display: block; width: 100%; height: 100%; min-height: 0px; object-fit: contain; }
.revealed-gift-content h3 { margin-bottom: 6px; font-size: 20px; }
.revealed-gift-content p { margin-bottom: 9px; color: rgb(217, 226, 238); line-height: 1.5; }
.gift-clue { font-size: 12px; color: var(--accent) !important; }
.pending-gift-content { display: grid; grid-template-columns: 40px minmax(0px, 1fr); gap: 12px; align-items: start; margin-top: 14px; padding: 13px; border-radius: 13px; background: rgba(11, 19, 38, 0.28); }
.pending-lock { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgba(240, 184, 108, 0.14); color: var(--accent); }
.pending-gift-content strong, .pending-gift-content p, .pending-gift-content span { display: block; }
.pending-gift-content p { margin: 5px 0px 7px; color: var(--accent); line-height: 1.4; }
.pending-gift-content .muted { font-size: 12px; }
.empty-state { display: grid; justify-items: center; gap: 7px; padding: 28px 18px; border: 1px dashed rgba(91, 116, 164, 0.65); border-radius: 16px; text-align: center; }
.empty-state strong { font-size: 16px; }
.empty-state p { max-width: 410px; margin: 0px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.empty-spark { color: var(--accent); font-size: 27px; }
.choice-grid { grid-template-columns: repeat(4, 1fr); }
.choice-gift { position: relative; min-height: 45px; padding: 5px 4px; }
.choice-gift small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.choice-gift.is-selected { animation: 280ms ease-out 0s 1 normal none running selected-pop; }
.roulette { position: relative; display: grid; width: 118px; height: 118px; margin: 4px auto 10px; place-items: center; border: 1px solid rgba(240, 184, 108, 0.6); border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgb(48, 74, 120) 0px, rgb(48, 74, 120) 28%, rgb(26, 41, 75) 29%, rgb(26, 41, 75) 63%, rgb(20, 32, 58) 64%); box-shadow: rgba(0, 0, 0, 0.22) 0px 12px 35px, rgba(240, 184, 108, 0.06) 0px 0px 0px 8px inset; }
.roulette strong { position: relative; z-index: 2; color: var(--accent); font-size: 38px; line-height: 1; }
.roulette-ring { position: absolute; inset: 8px; border: 1px dashed rgba(240, 184, 108, 0.45); border-radius: 50%; animation: 12s linear 0s infinite normal none running spin-slow; }
#choice-dialog.is-spinning .roulette-ring { animation: 237.5ms ease-out 0s 1 normal none running spin-slow; }
#choice-dialog.is-spinning .roulette strong { opacity: 0.6; }
#choice-dialog .dialog-close:focus-visible { outline: none; border-radius: 50%; background: rgba(240, 184, 108, 0.16); }
.roulette-ring span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.roulette-ring span:nth-child(1) { top: -3px; left: calc(50% - 3px); }
.roulette-ring span:nth-child(2) { top: calc(50% - 3px); right: -3px; }
.roulette-ring span:nth-child(3) { bottom: -3px; left: calc(50% - 3px); }
.roulette-ring span:nth-child(4) { top: calc(50% - 3px); left: -3px; }
.spin-button { display: flex; width: 100%; justify-content: center; align-items: center; gap: 7px; margin-bottom: 15px; }
.spin-button span { color: var(--accent); }
.is-newly-opened { animation: 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 0s 1 normal none running reveal-in, 1800ms ease-out 0s 1 normal none running reveal-glow; }
@keyframes slow-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.03); opacity: 1; }
}
@keyframes spin-slow {
  100% { transform: rotate(360deg); }
}
@keyframes selected-pop {
  0% { transform: scale(0.94); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes reveal-in {
  0% { opacity: 0.2; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0px) scale(1); }
}
@keyframes reveal-glow {
  0%, 100% { box-shadow: rgba(136, 215, 174, 0) 0px 0px 0px; }
  30% { box-shadow: rgba(136, 215, 174, 0.32) 0px 0px 34px; }
}
@media (prefers-reduced-motion: reduce) {
*, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
@media (max-width: 560px) {
body { background: rgb(24, 37, 69); }
body::before { top: calc(env(safe-area-inset-top, 0px) + 5px); }
.safe-area-cover { position: fixed; top: 0px; right: 0px; left: 0px; z-index: 1000; display: block; height: calc(env(safe-area-inset-top, 0px) + 5px); overflow: hidden; border-bottom: 1px solid rgba(240, 184, 108, 0.32); background: none rgb(24, 37, 69); box-shadow: rgba(7, 12, 27, 0.22) 0px 2px 12px; opacity: 1; pointer-events: none; transform: translateZ(0px); }
.ios-blur-fix { position: fixed; top: 0px; right: 0px; left: 0px; z-index: 2147483647; display: block; height: 11px; background-color: rgb(24, 37, 69); background-clip: text; pointer-events: none; }
.shell { padding-top: calc(20px + env(safe-area-inset-top, 0px) + 5px); }
.hero { min-height: 174px; }
.hero-copy > p:last-child { font-size: 13px; }
.current-prize { min-height: 178px; padding: 21px; }
.current-number { width: 76px; height: 76px; flex-basis: 76px; border-radius: 23px; font-size: 32px; }
.current-prize h2 { font-size: 24px; }
.countdown { font-size: 12px; }
.redeem-strip { grid-template-columns: 1fr; gap: 11px; padding: 13px; }
.redeem-strip .message { grid-column: 1; margin: -4px 0px 0px; }
.revealed-gift-content { grid-template-columns: 92px minmax(0px, 1fr); gap: 12px; }
.revealed-gift-image { height: 120px; padding: 10px; }
.revealed-gift-content h3 { font-size: 17px; }
.selected-gift-meta { grid-template-columns: 38px minmax(0px, 1fr); }
.selected-gift-meta .selected-number { width: 36px; height: 36px; }
.gift-state { grid-column: 2; justify-self: start; }
.choice-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.choice-gift { min-height: 42px; padding: 4px 3px; }
.choice-gift strong { font-size: 16px; }
}
.sealed-view { display: grid; justify-items: center; width: min(100%, 520px); margin: 16vh auto 0px; padding: 42px 28px 34px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(91, 116, 164, 0.18), transparent 16rem), linear-gradient(145deg, rgba(30, 44, 76, 0.96), rgba(20, 29, 53, 0.96)); animation: 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 0s 1 normal none running sealed-in; }
.sealed-view h1 { margin-bottom: 10px; font-size: clamp(36px, 8vw, 58px); }
.sealed-view p:not(.eyebrow) { max-width: 350px; margin-bottom: 22px; }
.sealed-symbol { display: grid; width: 76px; height: 76px; margin-bottom: 22px; place-items: center; border: 1px solid rgba(240, 184, 108, 0.4); border-radius: 25px; background: rgba(240, 184, 108, 0.1); color: var(--accent); font-size: 38px; box-shadow: rgba(240, 184, 108, 0.04) 0px 0px 0px 12px, rgba(0, 0, 0, 0.2) 0px 18px 50px; animation: 3.2s ease-in-out 0s infinite normal none running sealed-float; }
.sealed-view .countdown { margin-bottom: 12px; }
@keyframes sealed-in {
  0% { opacity: 0; transform: translateY(14px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0px) scale(1); }
}
@keyframes sealed-float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@media (max-width: 560px) {
.sealed-view { margin-top: 15vh; padding: 34px 20px 28px; }
}
.intro-open { overflow: hidden; }
.welcome-overlay { position: fixed; inset: 0px; z-index: 30; display: grid; place-items: center; padding: 22px; overflow: hidden; background: radial-gradient(circle at 50% 8%, rgba(65, 86, 139, 0.42), transparent 28rem), rgba(7, 12, 27, 0.96); animation: 550ms ease-out 0s 1 normal none running intro-fade-in; }
.welcome-letter { position: relative; width: min(100%, 560px); max-height: calc(100dvh - 44px); overflow: hidden; padding: clamp(32px, 7vw, 62px) clamp(24px, 8vw, 68px) clamp(28px, 6vw, 52px); border: 1px solid rgba(240, 184, 108, 0.62); border-radius: 28px; background: radial-gradient(circle at 50% 0%, rgba(255, 225, 166, 0.12), transparent 17rem), linear-gradient(145deg, rgb(43, 65, 107), rgb(24, 37, 65) 68%, rgb(19, 29, 53)); box-shadow: rgba(0, 0, 0, 0.48) 0px 28px 100px, rgba(240, 184, 108, 0.08) 0px 0px 0px 1px inset; text-align: center; animation: 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 0s 1 normal none running letter-rise; }
.welcome-letter::before, .welcome-letter::after { position: absolute; width: 72px; height: 72px; border: 1px solid rgba(240, 184, 108, 0.2); border-radius: 50%; content: ""; pointer-events: none; }
.welcome-letter::before { top: -31px; left: -31px; }
.welcome-letter::after { right: -31px; bottom: -31px; }
.letter-spark { display: grid; width: 58px; height: 58px; margin: 0px auto 22px; place-items: center; border: 1px solid rgba(240, 184, 108, 0.52); border-radius: 19px; background: rgba(240, 184, 108, 0.13); color: var(--accent); font-size: 29px; box-shadow: rgba(240, 184, 108, 0.05) 0px 0px 0px 9px; animation: 3.2s ease-in-out 0s infinite normal none running letter-float; }
.welcome-letter h1 { margin-bottom: 25px; font-size: clamp(34px, 8vw, 56px); }
.letter-body { color: rgb(225, 229, 238); font-size: 16px; line-height: 1.7; }
.letter-body p { margin-bottom: 13px; }
.letter-signature { color: var(--accent); font-size: 21px; font-style: italic; font-weight: 700; margin: 22px 0px 29px !important; }
.letter-button { min-width: min(100%, 240px); min-height: 50px; font-size: 15px; box-shadow: rgba(240, 184, 108, 0.18) 0px 10px 30px; }
@keyframes intro-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes letter-rise {
  0% { opacity: 0; transform: translateY(22px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0px) scale(1); }
}
@keyframes letter-float {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}
@media (max-width: 560px) {
.welcome-overlay { padding: 12px; }
.welcome-letter { max-height: calc(100dvh - 24px); border-radius: 24px; }
.letter-body { font-size: 15px; }
}
@media (max-width: 560px) {
#choice-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
#choice-dialog .dialog-card { gap: 8px; padding: 20px 16px 16px; }
#choice-dialog .dialog-close { top: 8px; right: 10px; font-size: 24px; }
#choice-dialog h2 { margin-bottom: 0px; font-size: 22px; }
#choice-dialog .muted { margin: 0px; font-size: 13px; line-height: 1.25; }
#choice-dialog .roulette { width: 78px; height: 78px; margin: 0px auto 2px; }
#choice-dialog .roulette strong { font-size: 28px; }
#choice-dialog .roulette-ring { inset: 6px; }
#choice-dialog .spin-button { min-height: 36px; margin-bottom: 4px; padding: 6px 10px; }
#choice-dialog .field-label { font-size: 12px; }
#choice-dialog .choice-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 4px; }
#choice-dialog .choice-gift { min-height: 35px; padding: 2px; border-radius: 9px; }
#choice-dialog .choice-gift strong { font-size: 15px; }
#choice-dialog .choice-gift small { display: none; }
#choice-dialog .dialog-actions { margin-top: 2px; }
#choice-dialog .dialog-actions .button { min-height: 38px; }
}
