:root {
  font-family: 'Nunito Sans', sans-serif;
  font-synthesis: none;
  --bg: #f5f0ff;
  --surface: #fff;
  --ink: #2e194d;
  --muted: #79698e;
  --accent: #8545e9;
  --accent-deep: #6b2bc8;
  --soft: #e9dcff;
  --line: #e4d8f5;
  --lime: #cdf779;
  --lime-ink: #436b0f;
  --slice-a: #9657f5;
  --slice-b: #b48aff;
  --slice-gift: #ffe08a;
  --rim: #a96cff;
  --rim-bottom: #6730b0;
  --dock: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
body.dark { color-scheme: dark; --bg: #1d1231; --surface: #2a1b43; --ink: #fcf8ff; --muted: #bbacd0; --accent: #bc8cff; --accent-deep: #bc8cff; --soft: #3c245b; --line: #493064; --lime: #384a20; --lime-ink: #cdf779; --slice-a: #7c3cdd; --slice-b: #a25af4; --slice-gift: #f2bc50; --rim: #ae73fa; --rim-bottom: #572793; --dock: #2b1c44; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { border: 0; cursor: pointer; font: inherit; }
button:disabled { cursor: default; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1,h2,p { margin: 0; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.65px; line-height: 1.18; }
h2 { font-size: 15px; font-weight: 750; letter-spacing: -.2px; }
strong { font-weight: 700; }
.app { width: 100%; height: 100dvh; min-height: 540px; position: relative; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.header { height: 56px; padding: 7px 23px 5px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -.45px; font-weight: 800; }
.brand-mark { width: 28px; height: 28px; overflow: visible; }
.brand-mark .ears { stroke: var(--accent-deep); fill: #d8c7ea; stroke-width: 2; stroke-linejoin: round; }
.brand-mark .face { fill: #f4eade; }
.brand-mark .mask { fill: #65596e; }
.brand-mark .eye { fill: #fff; transform-origin: center; }
.brand-mark .nose { stroke: #65596e; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.icon-fill { fill: currentColor; fill-opacity: 0; transition: fill-opacity .3s; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center; }
.help { color: var(--muted); }
.help .icon { width: 20px; height: 20px; }
.content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px 24px 12px; scrollbar-width: none; position: relative; }
.content::-webkit-scrollbar { display: none; }
.nav-wrap { flex-shrink: 0; position: relative; z-index: 3; padding: 8px 32px 15px; height: 94px; background: linear-gradient(0deg,var(--bg) 72%,transparent); }
.dock { width: 100%; max-width: 326px; height: 68px; margin: auto; display: flex; align-items: center; padding: 4px 17px; border: 1px solid var(--line); border-radius: 38px; background: var(--dock); box-shadow: 0 7px 20px #38284305; }
.dock button { flex: 1; height: 58px; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; position: relative; }
.dock button .icon { width: 25px; height: 25px; }
.dock button.active { color: var(--accent-deep); font-weight: 750; }
.dock .active .icon-fill { fill-opacity: .22; }
.dock .active .icon-play { animation: turn-in .65s cubic-bezier(.2,.8,.2,1); }
.dock .active .icon-profile { animation: settle-in .4s ease-out; }
.dock-divider { width: 1px; height: 24px; background: var(--line); }
.scenery { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spark { position: absolute; color: var(--accent); opacity: .22; font-size: 21px; animation: drift 8s ease-in-out infinite alternate; }
.s0 { left: 8%; top: 26%; font-size: 15px; }
.s1 { right: 12%; top: 20%; font-size: 23px; animation-delay: -3s; }
.s2 { right: 6%; top: 56%; font-size: 14px; opacity: .12; }
.s3 { left: 14%; top: 75%; font-size: 11px; opacity: .14; }
.s4 { left: 40%; top: 13%; font-size: 9px; opacity: .18; }
.s5 { right: 30%; top: 86%; font-size: 10px; opacity: .12; }
.home-title { text-align: center; padding-top: 12px; }
.home-title h1 { font-size: 28px; }
.home-title p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.game-stage { position: relative; height: 450px; margin: 0 -13px; }
.sticker { display: block; width: 160px; height: 160px; pointer-events: none; }
.game-racco { position: absolute; width: 146px; height: 146px; left: calc(50% - 73px); top: 0; }
.wheel { width: 302px; height: 302px; position: absolute; bottom: 0; left: calc(50% - 151px); }
.wheel-shadow { position: absolute; left: 18%; width: 64%; height: 20px; bottom: -16px; border-radius: 50%; background: #a996c524; filter: blur(10px); }
.rim { position: absolute; inset: 0; background: var(--rim); padding: 8px; border-radius: 50%; box-shadow: 0 5px 0 var(--rim-bottom), inset 0 2px 1px #ffffff70; }
.rim:after { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid #ffffff45; pointer-events: none; }
.rotor { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; will-change: transform; }
.wheel-art { display: block; width: 100%; height: 100%; border-radius: 50%; }
.wheel-art > path { stroke: var(--surface); stroke-width: 1.2px; }
.no-gift-disc { fill: var(--surface); fill-opacity: .22; }
.wheel-art > path.no-gift-line { stroke: var(--muted); stroke-width: 2.3px; stroke-linecap: round; opacity: .38; }
.bear { display: inline-block; flex-shrink: 0; }
.wheel-bear { position: absolute; top: 10px; left: calc(50% - 38px); width: 76px; height: 76px; }
.pointer { position: absolute; top: -17px; left: calc(50% - 15px); width: 30px; height: 27px; transform-origin: 50% 3px; filter: drop-shadow(0 2px 1px #805c3740); z-index: 3; }
.pointer svg { width: 100%; height: 100%; }
.pointer path:first-child { fill: #ffcf43; stroke: #be8425; stroke-width: 1; }
.pointer path:last-child { fill: none; stroke: #fff5df; stroke-width: 2; stroke-linecap: round; }
.pointer.landed { filter: drop-shadow(0 0 8px #eac787); }
.hub { position: absolute; top: calc(50% - 48px); left: calc(50% - 48px); width: 96px; height: 96px; border-radius: 50%; border: 5px solid var(--bg); color: var(--accent-deep); background: var(--surface); box-shadow: 0 4px 10px #5d3e8520; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: transform .2s; }
.hub strong { font-weight: 750; font-size: 12px; line-height: 1.1; }
.hub .hub-symbol { display: flex; align-items: center; gap: 4px; }
.hub-symbol .icon { width: 27px; height: 27px; }
.hub-symbol b { font-size: 12px; }
.hub.has-ticket { background: var(--accent); color: #fff; }
.dark .hub.has-ticket { color: #30233f; }
.hub.has-ticket strong { font-size: 16px; }
.hub.has-ticket .icon { width: 20px; height: 20px; }
.hub:active { transform: scale(.95); }
.legend { display: flex; justify-content: center; gap: 22px; font-size: 11px; color: var(--muted); margin-top: 26px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.gift-dot { background: #d9bf89; }
.empty-dot { background: var(--rim); opacity: .7; }
.byline { text-align: center; margin-top: 15px; color: var(--muted); font-size: 10px; }
.primary,.secondary { width: 100%; min-height: 52px; padding: 13px 18px; border-radius: 17px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; font-weight: 750; transition: transform .16s, background .16s; }
.primary { color: #fff; background: var(--accent); box-shadow: 0 3px 0 #6b2bc8; margin-bottom: 3px; }
.dark .primary { color: #241036; box-shadow: 0 3px 0 #7c639e; }
.primary:active { transform: translateY(2px); }
.primary .icon { width: 19px; height: 19px; }
.secondary { background: var(--soft); color: var(--accent-deep); min-height: 46px; font-size: 13px; border-radius: 14px; }
.secondary .icon { width: 18px; height: 18px; }
.text-button { min-height: 42px; padding: 10px; background: transparent; color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.bottom-actions { margin-top: auto; padding-top: 25px; width: 100%; }
.bottom-actions > .text-button { width: 100%; margin-top: 6px; }
.scene-conditions .content,.scene-checking .content,.scene-level .content,.scene-error .content { display: flex; flex-direction: column; padding-top: 18px; }
.conditions-hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.conditions-hero h1 { font-size: 27px; }
.conditions-hero p { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.conditions-hero .sticker { width: 128px; height: 128px; margin-left: -14px; }
.task-card { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 17px; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { justify-content: space-between; }
.overline { color: var(--muted); font-size: 11px; }
.reward { padding: 5px 8px; background: var(--lime); color: var(--lime-ink); font-size: 10px; font-weight: 750; border-radius: 8px; display: flex; align-items: center; gap: 5px; }
.reward .icon { width: 14px; height: 14px; }
.channel-row { display: flex; align-items: center; gap: 12px; margin: 17px 0 19px; }
.channel-avatar { width: 42px; height: 42px; background: var(--soft); color: var(--accent-deep); display: grid; place-items: center; border-radius: 14px; font-size: 21px; font-weight: 800; position: relative; }
.channel-avatar > span { font-size: 11px; position: absolute; right: 5px; top: 4px; }
.channel-row strong { font-size: 14px; }
.channel-row p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.success { color: var(--lime-ink); margin-left: auto; }
.success .icon { width: 18px; height: 18px; }
.level-row { display: flex; align-items: center; gap: 11px; padding: 22px 2px; border-bottom: 1px solid var(--line); }
.soft-icon { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--soft); color: var(--accent-deep); }
.soft-icon .icon { width: 20px; height: 20px; }
.level-row strong { font-size: 12px; }
.level-row p { color: var(--muted); font-size: 10px; margin-top: 4px; }
.level-value { margin-left: auto; font-size: 12px; font-weight: 750; color: var(--accent-deep); background: var(--soft); border-radius: 9px; padding: 6px 8px; }
.level-value.low { color: #ab8250; background: #eee0c92b; }
.inline-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); padding-top: 18px; }
.inline-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.inline-note p { font-size: 11px; line-height: 1.6; }
.inline-note.notice { color: #a88c66; }
.scene-checking .primary .icon,.scene-checking .sticker { opacity: .85; }
.scene-checking .primary .icon { animation: rotate 2s linear infinite; }
.result-layout { display: flex; flex-direction: column; align-items: center; min-height: 100%; text-align: center; }
.result-hero { position: relative; width: 290px; height: 270px; margin: 10px auto 14px; }
.result-racco { width: 270px; height: 270px; margin: auto; position: relative; z-index: 1; }
.result-hero:before { content: ''; position: absolute; width: 225px; height: 185px; border-radius: 47% 53% 56% 44%; background: var(--soft); left: 33px; top: 62px; transform: rotate(-10deg); opacity: .65; }
.hero-spark { position: absolute; color: #c7b28a; }
.hero-spark.one { font-size: 25px; left: 14px; top: 72px; }
.hero-spark.two { font-size: 18px; right: 10px; top: 120px; }
.ticket-caption { color: var(--accent-deep); display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; margin: 8px 0 13px; }
.ticket-caption .icon { width: 17px; height: 17px; }
.lead { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.result-layout h1 { font-size: 28px; }
.result-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--accent-deep); margin-top: 24px; }
.result-status .icon { width: 17px; height: 17px; }
.delivery-copy { color: var(--muted); font-size: 10px; margin-top: 9px; }
.hero-bear { position: absolute; width: 195px; height: 195px; left: 36px; top: 17px; }
.celebrate-racco { position: absolute; width: 145px; height: 145px; right: -5px; bottom: -5px; }
.win-hero:before { background: #ead8b6; opacity: .2; }
.profile-hero { display: flex; align-items: center; gap: 13px; padding: 4px 0 8px; }
.avatar { width: 68px; height: 68px; border-radius: 24px; background: var(--soft); }
.avatar .sticker { width: 68px; height: 68px; }
.profile-hero h1 { font-size: 24px; }
.profile-hero p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.profile-section { margin-top: 16px; }
.profile-section h2 { margin-bottom: 11px; }
.empty-gift { border: 1px dashed var(--line); border-radius: 20px; min-height: 130px; padding: 15px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-gift > span { color: var(--accent); margin-bottom: 11px; }
.empty-gift > span .icon { width: 25px; height: 25px; }
.empty-gift strong { font-size: 13px; }
.empty-gift p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 6px; }
.attempt-row { display: flex; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); padding: 13px; border-radius: 17px; gap: 11px; color: var(--ink); }
.attempt-row strong { font-size: 12px; }
.attempt-row p { color: var(--muted); font-size: 10px; margin-top: 3px; }
.attempt-row > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.settings-list { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 15px; }
.settings-list button { display: flex; width: 100%; min-height: 49px; align-items: center; gap: 10px; background: transparent; color: var(--ink); font-size: 12px; text-align: left; }
.settings-list button + button { border-top: 1px solid var(--line); }
.settings-list button > .icon:first-child { width: 18px; height: 18px; color: var(--muted); }
.settings-list button > .icon:last-child { width: 13px; height: 13px; color: var(--muted); }
.settings-list small { margin-left: auto; font-size: 10px; color: var(--muted); }
.toggle { margin-left: auto; width: 32px; height: 19px; background: var(--line); border-radius: 20px; position: relative; }
.toggle:before { content: ''; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); position: absolute; top: 3px; left: 3px; transition: transform .2s; }
.toggle.on { background: var(--accent); }
.toggle.on:before { transform: translateX(13px); }
.profile-terms { margin: 4px auto 0; font-size: 11px; }
.gift-result { display: flex; align-items: center; gap: 13px; width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 20px; padding: 12px; text-align: left; }
.profile-bear { width: 70px; height: 76px; }
.gift-result strong { font-size: 14px; }
.gift-result p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.gift-result > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.welcome { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 31px 28px 26px; overflow-y: auto; }
.welcome-brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -.6px; }
.welcome-brand .brand-mark { width: 31px; height: 31px; }
.welcome-art { width: 100%; min-height: 245px; height: 340px; max-height: 43vh; display: grid; place-items: center; position: relative; flex: 1; margin: 20px 0; }
.welcome-art .sticker { width: 275px; height: 275px; position: relative; }
.welcome-halo { position: absolute; width: 245px; height: 225px; border-radius: 47% 53% 57% 43%; background: var(--soft); transform: rotate(-12deg); }
.welcome-copy { text-align: center; }
.eyebrow { color: var(--accent-deep); font-size: 12px; margin-bottom: 12px; }
.welcome h1 { font-size: 30px; letter-spacing: -.75px; }
.welcome .lead { margin-top: 14px; }
.welcome-actions { width: 100%; margin-top: auto; padding-top: 30px; }
.welcome-actions > p { text-align: center; font-size: 11px; color: var(--muted); margin-top: 18px; }
.scrim { position: absolute; inset: 0; z-index: 10; display: flex; align-items: flex-end; background: #15132138; backdrop-filter: blur(4px); animation: fade-in .2s; }
.sheet { width: 100%; max-height: 90%; overflow-y: auto; position: relative; padding: 12px 24px 30px; background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 50px #1513210c; animation: sheet-in .3s cubic-bezier(.2,.8,.3,1); }
.sheet-handle { width: 32px; height: 4px; border-radius: 5px; background: var(--line); margin: auto; }
.sheet h2 { font-size: 21px; font-weight: 750; margin: 25px 38px 23px 0; }
.close-sheet { position: absolute; top: 25px; right: 13px; color: var(--muted); }
.close-sheet .icon { width: 18px; height: 18px; }
.choice-list { border-top: 1px solid var(--line); }
.choice-list button { display: flex; align-items: center; gap: 12px; min-height: 64px; width: 100%; background: transparent; color: var(--ink); text-align: left; font-size: 14px; }
.choice-list button + button { border-top: 1px solid var(--line); }
.language-sign { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--accent-deep); font-size: 12px; font-weight: 700; }
.radio { width: 19px; height: 19px; border: 1.5px solid var(--line); margin-left: auto; border-radius: 50%; padding: 4px; }
.radio.selected { border-color: var(--accent); }
.radio.selected:before { content: ''; display: block; height: 100%; width: 100%; border-radius: 50%; background: var(--accent); }
.theme-swatch { width: 32px; height: 32px; border: 1px solid #c9c2d1; border-radius: 50%; background: #f5f0ff; }
.theme-swatch.dark { background: #232330; }
.theme-swatch.system { background: linear-gradient(90deg,#f5f0ff 50%,#232330 50%); }
.rules-mark { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; color: var(--accent-deep); background: var(--soft); margin-top: 22px; }
.rules-copy p { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 14px; }
.rules-test { display: flex; gap: 8px; align-items: flex-start; margin: 20px 0; padding: 14px; border-radius: 14px; background: var(--soft); }
.rules-test .icon { color: var(--accent-deep); width: 17px; height: 17px; margin-top: 2px; }
.rules-test p { margin: 0; font-size: 11px; }
.loading { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; position: relative; }
.loading-logo { width: 104px; height: 104px; border-radius: 34px; display: grid; place-items: center; background: var(--soft); margin-bottom: 20px; animation: breathe 2s ease-in-out infinite; }
.loading-logo .brand-mark { width: 70px; height: 70px; }
.loading-logo .eye { animation: blink 3s infinite; }
.loading > strong { font-size: 25px; font-weight: 800; letter-spacing: -.65px; }
.loading > p { margin-top: 14px; color: var(--muted); font-size: 12px; }
.loading-track { width: 90px; height: 3px; border-radius: 5px; background: var(--line); margin-top: 28px; overflow: hidden; }
.loading-track i { width: 35%; height: 100%; display: block; background: var(--accent); border-radius: 5px; animation: loading 1.6s ease-in-out infinite; }
.invisible-button { position: absolute; inset: 0; opacity: 0; }
.reduced *, .reduced *:before, .reduced *:after { animation: none !important; transition: none !important; }
@keyframes drift { to { transform: translateY(7px) rotate(16deg); } }
@keyframes turn-in { from { transform: rotate(-60deg); } to { transform: rotate(0); } }
@keyframes settle-in { 0% { transform: translateY(3px) scale(.85); } 60% { transform: translateY(-2px) scale(1.08); } }
@keyframes breathe { 50% { transform: rotate(-4deg) scale(1.04); border-radius: 40px; } }
@keyframes blink { 2%, 7% { transform: scaleY(.1); } 0%, 9%, 100% { transform: scaleY(1); } }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(35px); opacity: .5; } }
@media (max-height: 760px) {
  .game-stage { height: 405px; }
  .wheel { width: 280px; height: 280px; left: calc(50% - 140px); }
  .game-racco { width: 125px; height: 125px; left: calc(50% - 62.5px); }
  .wheel-bear { width: 68px; height: 68px; left: calc(50% - 34px); top: 8px; }
  .home-title { padding-top: 4px; }
  .legend { margin-top: 21px; }
  .byline { margin-top: 11px; }
  .result-hero { height: 235px; }
  .result-racco { width: 235px; height: 235px; }
}
@media (max-width: 360px) {
  .content { padding-left: 20px; padding-right: 20px; }
  .conditions-hero .sticker { width: 110px; height: 110px; }
  .conditions-hero h1 { font-size: 25px; }
  .nav-wrap { padding-left: 27px; padding-right: 27px; }
  .welcome h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }

.capture-static .sheet,.capture-static .scrim,.capture-static .dock .icon { animation: none; }

.scene-home .content { display: flex; flex-direction: column; }
.home-title { padding-top: 32px; }
.home-title h1 { font-size: 32px; letter-spacing: -.9px; }
.home-title p { font-size: 14px; margin-top: 10px; }
.game-stage { flex: 1; min-height: 360px; height: auto; margin: 0 -15px; display: grid; place-items: center; }
.game-stage:before { content: ''; position: absolute; width: 345px; height: 345px; max-width: 100%; border-radius: 50%; background: radial-gradient(circle,#b98fff66,transparent 70%); filter: blur(8px); }
.wheel { width: min(326px, 94%); height: auto; aspect-ratio: 1; position: relative; inset: auto; margin: -22px 0 0; }
.wheel-shadow { bottom: -33px; height: 20px; background: #8c43de36; }
.rim { padding: 9px; overflow: hidden; box-shadow: 0 7px 0 var(--rim-bottom),0 13px 26px #6720a824,inset 0 2px 1px #ffffffa0; }
.rim:after { inset: 3px; border: 2px solid #ffffff5c; }
.wheel-art > path { stroke: #ffffff40; stroke-width: 1.6; }
.wheel-art > path.no-gift-line { stroke: #fff; opacity: .85; }
.no-gift-disc { fill: white; fill-opacity: .16; }
.wheel-bear { width: 80px; height: 80px; top: 12px; left: calc(50% - 40px); }
.hub { width: 102px; height: 102px; top: calc(50% - 51px); left: calc(50% - 51px); border: 5px solid #a76ce8; box-shadow: 0 5px 0 #54288e30,0 8px 18px #32105635; }
.hub.has-ticket { background: #d4fa83; color: #3d5519; border-color: #fff0b7; }
.hub.has-ticket .icon-ticket { width: 30px; height: 30px; transform: rotate(-12deg); }
.hub.has-ticket .icon-fill { fill-opacity: .16; }
.pointer { width: 32px; height: 32px; top: -18px; left: calc(50% - 16px); filter: drop-shadow(0 3px 1px #8b541d55); }
.pointer path:first-child { stroke-width: 1.6; }
.primary { background: linear-gradient(180deg,#9655f5,#7c36db); box-shadow: 0 4px 0 #59229f; }
.dark .primary { color: white; background: linear-gradient(180deg,#a25bfb,#8840e7); box-shadow: 0 4px 0 #59258e; }
.primary:active { transform: translateY(3px) scale(.99); box-shadow: 0 1px 0 #59229f; }
.secondary { color: var(--accent-deep); font-weight: 800; }
.spark { opacity: .33; }
.s1,.s4 { color: #dca62a; }
.dock { box-shadow: 0 8px 28px #522b8610; }
.dock button.active:before { content: ''; position: absolute; width: 42px; height: 31px; border-radius: 14px; top: 5px; background: var(--soft); z-index: -1; animation: dock-pill .45s cubic-bezier(.2,.8,.2,1); }
.dock .active .icon-fill { fill-opacity: .35; }
.dock .active .icon-play { animation: wheel-select .85s cubic-bezier(.2,.8,.2,1); }
.dock .active .icon-profile { animation: profile-select .6s cubic-bezier(.2,.8,.2,1); }

.sticker > svg { display: block; }
.result-hero { width: min(320px,100%); height: 320px; margin: 22px auto 15px; }
.result-racco { width: 100%; height: 100%; }
.result-hero:before { width: 245px; height: 220px; left: calc(50% - 122px); top: 80px; opacity: .7; background: radial-gradient(ellipse,#cfadff,var(--soft)); }
.win-hero:before { background: radial-gradient(ellipse,#ffe492,var(--soft)); opacity: .65; }
.result-layout h1 { font-size: 31px; }
.result-layout .lead { margin-top: 8px; }
.result-layout .bottom-actions { padding: 24px 0 15px; }
.hero-spark { color: #e6aa25; }
.conditions-hero { align-items: center; margin-bottom: 25px; min-height: 175px; }
.conditions-hero .sticker { width: 150px; height: 150px; flex-shrink: 0; margin-right: -12px; }
.conditions-hero h1 { font-size: 29px; }
.conditions-hero p { max-width: 205px; }
.level-row { border: 0; padding: 23px 3px; }
.channel-avatar { background: #8545e9; color: white; }
.scene-welcome { background: linear-gradient(150deg,#a45bfa 0%,#833ee5 52%,#6330c6 100%); color: white; }
.scene-welcome .welcome-halo { background: #ffffff24; }
.scene-welcome .lead,.scene-welcome .welcome-actions > p { color: #f1e5ff; }
.scene-welcome .primary { background: #d8fc8b; color: #324713; box-shadow: 0 4px 0 #79aa33; }
.scene-welcome .spark { color: white; opacity: .3; }
.welcome-art .sticker { width: 300px; height: 300px; }
.welcome-halo { width: 270px; height: 230px; }
.profile-hero { padding-top: 10px; }
.empty-gift { background: var(--soft); border: 0; }
.gift-result { background: linear-gradient(125deg,var(--surface),var(--soft)); }
.theme-swatch.dark { background: #1d1231; }
.theme-swatch.system { background: linear-gradient(90deg,#f5f0ff 50%,#1d1231 50%); }
@keyframes wheel-select { 0% { transform: rotate(-105deg) scale(.8); } 65% { transform: rotate(8deg) scale(1.1); } 100% { transform: rotate(0) scale(1); } }
@keyframes profile-select { 0% { transform: translateY(4px) scale(.8); } 60% { transform: translateY(-2px) scale(1.08); } 100% { transform: none; } }
@keyframes head-nod { 35% { transform: rotate(-12deg); } 70% { transform: rotate(6deg); } }
@keyframes dock-pill { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (max-height: 720px) {
  .home-title { padding-top: 10px; }
  .game-stage { min-height: 300px; }
  .wheel { width: min(286px,91%); margin-top: 0; }
  .wheel-bear { width: 69px; height: 69px; left: calc(50% - 34.5px); top: 8px; }
  .result-hero { width: 250px; height: 250px; margin-top: 6px; }
  .result-hero:before { width: 205px; height: 180px; left: calc(50% - 102.5px); top: 55px; }
  .conditions-hero { min-height: 130px; margin-bottom: 16px; }
}
.spark { animation: star-drift 11s ease-in-out infinite alternate, star-glow 7s ease-in-out infinite; font-size: inherit; }
.spark .icon { width: 100%; height: 100%; stroke-width: 1.3; }
.spark:nth-child(2n) .icon-fill { fill-opacity: .65; }
.s0 { width: 14px; height: 14px; animation-delay: -2s,-4s; }
.s1 { width: 22px; height: 22px; animation-duration: 13s,9s; animation-delay: -6s,-1s; }
.s2 { width: 13px; height: 13px; animation-delay: -4s,-2s; }
.s3 { width: 12px; height: 12px; animation-duration: 15s,8s; animation-delay: -8s,-5s; }
.s4 { width: 10px; height: 10px; animation-delay: -3s,-6s; }
.s5 { width: 12px; height: 12px; animation-duration: 14s,10s; animation-delay: -7s,-1s; }
.s6 { width: 17px; height: 17px; left: 7%; top: 60%; animation-delay: -8s,-4s; }
.s7 { width: 10px; height: 10px; right: 8%; top: 80%; animation-delay: -1s,-3s; }
@keyframes star-drift { 0% { transform: translate(-3px,5px) rotate(-10deg); } 100% { transform: translate(8px,-9px) rotate(15deg); } }
@keyframes star-glow { 0%,100% { opacity: .12; } 50% { opacity: .4; } }
.wheel-rules { display: flex; justify-content: center; align-items: center; gap: 7px; width: 100%; min-height: 40px; background: transparent; color: var(--muted); font-size: 10px; padding: 6px 0 10px; }
.weekly-countdown { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; margin-top: 13px; color: var(--accent-deep); }
.weekly-countdown .icon { width: 16px; height: 16px; }
.weekly-countdown b { font-weight: 800; white-space: nowrap; }
.profile-banner { display: flex; align-items: center; gap: 15px; position: relative; overflow: hidden; border-radius: 25px; background: linear-gradient(115deg,#8a43e8,#a56bf2); padding: 14px; color: white; min-height: 113px; margin: 5px 0 20px; }
.profile-banner .avatar { width: 82px; height: 82px; border-radius: 21px; background: #ffffff25; flex-shrink: 0; }
.profile-banner .avatar .sticker { width: 82px; height: 82px; }
.profile-banner h1 { font-size: 25px; }
.profile-banner p { color: #eee0ff; font-size: 12px; margin-top: 5px; }
.profile-star { position: absolute; right: -10px; top: -9px; transform: rotate(15deg); opacity: .18; }
.profile-star .icon { width: 100px; height: 100px; stroke: none; }
.profile-star .icon-fill { fill-opacity: 1; }
.inventory-card { width: 100%; display: block; text-align: left; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); padding: 17px; box-shadow: 0 4px 0 #6c39a908; transition: transform .2s; }
.inventory-card:active { transform: scale(.985); }
.inventory-heading { display: flex; justify-content: space-between; align-items: center; }
.inventory-heading > span { display: flex; gap: 9px; align-items: center; }
.inventory-heading strong { font-size: 17px; font-weight: 800; }
.inventory-heading .icon-inventory { color: var(--accent-deep); }
.inventory-heading .icon-fill { fill-opacity: .2; }
.inventory-heading > .icon { width: 17px; height: 17px; color: var(--muted); }
.inventory-preview { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 16px; }
.inventory-slot { background: var(--soft); border: 1px solid var(--line); min-width: 0; border-radius: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 98px; color: var(--muted); font-size: 11px; }
.inventory-slot > .icon { width: 29px; height: 29px; opacity: .5; }
.inventory-slot.occupied { background: linear-gradient(145deg,#fff0ad,#ffd367); border-color: #edc558; color: #6a4318; }
.inventory-slot.occupied span:last-child { font-weight: 800; }
.inventory-slot .slot-bear { width: 64px; height: 64px; }
.inventory-slot.occupied { gap: 0; }
.inventory-summary { display: block; color: var(--muted); font-size: 11px; margin-top: 12px; }
.scene-profile .profile-section { margin-top: 24px; }
.scene-profile .profile-section h2 { font-size: 14px; margin-left: 2px; }
.settings-list button { min-height: 55px; }
.settings-list button > .icon:first-child { box-sizing: content-box; width: 18px; height: 18px; padding: 6px; border-radius: 10px; background: var(--soft); color: var(--accent-deep); }
.settings-list button:first-child > .icon:first-child { background: #def2ff; color: #3489c5; }
.settings-list button:nth-child(2) > .icon:first-child { background: #e8dcff; color: #8a4be3; }
.settings-list button:nth-child(3) > .icon:first-child { background: #e4f5c8; color: #5d8c26; }
.dark .settings-list button:first-child > .icon:first-child { background: #21394d; color: #79c6f7; }
.dark .settings-list button:nth-child(2) > .icon:first-child { background: #453067; color: #c39aff; }
.dark .settings-list button:nth-child(3) > .icon:first-child { background: #354727; color: #b0df73; }
.profile-terms { margin-top: 9px; }
.inventory-title { text-align: center; padding: 10px 0 27px; }
.inventory-emblem { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 21px; background: #8545e9; color: white; margin: 0 auto 16px; box-shadow: 0 4px 0 #5b2aa1; }
.inventory-emblem .icon { width: 31px; height: 31px; }
.inventory-emblem .icon-fill { fill-opacity: .2; }
.inventory-title h1 { font-size: 29px; }
.inventory-title p { margin-top: 9px; color: var(--muted); font-size: 12px; }
.inventory-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.inventory-grid .inventory-slot { min-height: 133px; font-size: 12px; }
.inventory-grid .slot-bear { width: 92px; height: 92px; }
.inventory-grid .empty-slot { border-style: dashed; }
.gift-spotlight { position: relative; width: 290px; height: 310px; display: grid; place-items: center; margin: 30px 0 20px; }
.gift-spotlight:before { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle,#ffe08a8a,transparent 70%); }
.detail-bear { width: 250px; height: 250px; z-index: 1; }
button:active > .icon,button:active > span > .icon { transform: scale(.9); }
.icon { transition: transform .2s, color .2s; }
.icon-detail { opacity: .65; }
@media (max-height: 740px) {
  .scene-profile .content { padding-top: 0; }
  .profile-banner { min-height: 94px; margin-bottom: 14px; }
  .profile-banner .avatar,.profile-banner .avatar .sticker { width: 65px; height: 65px; }
  .inventory-preview .inventory-slot { min-height: 84px; }
  .inventory-preview .slot-bear { width: 54px; height: 54px; }
  .scene-profile .profile-section { margin-top: 17px; }
  .inventory-grid .inventory-slot { min-height: 112px; }
  .inventory-title { padding-bottom: 20px; }
}
:root { --round-field: #8b4be2; --round-field-ink: #fff; --page-wash: #eee0ff; }
body.dark { --round-field: #542780; --round-field-ink: #e9d9ff; --page-wash: #29133f; }
.icon { stroke-width: 2.05; }
.icon-fill { fill: currentColor; fill-opacity: .22; transition: fill-opacity .3s; }
.icon-solid { fill: currentColor; stroke: none; }
.icon-cut { fill: var(--dock); stroke: none; }
.dock button .icon { width: 28px; height: 28px; }
.dock .active .icon-fill { fill-opacity: .34; }
.dock .icon-profile { stroke-width: 1.8; }
.icon-button .icon { width: 29px; height: 29px; }
.icon-button { color: var(--accent-deep); }
.help .icon { width: 27px; height: 27px; }
.scene-profile,.scene-inventory { background: radial-gradient(ellipse at 90% 13%,#a84cff25,transparent 50%),linear-gradient(180deg,var(--page-wash),var(--bg)); }
.scene-profile .content { display: flex; flex-direction: column; }
.profile-banner { min-height: 124px; padding: 18px; margin-bottom: 18px; border-radius: 27px; box-shadow: 0 5px 0 #5823a21a; }
.inventory-entry { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 13px 18px; color: white; background: linear-gradient(120deg,#8847e7,#7233cf); border-radius: 23px; box-shadow: 0 4px 0 #51249c; text-align: left; }
.inventory-entry strong { font-size: 18px; font-weight: 800; }
.entry-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 15px; background: #ffffff24; }
.entry-icon .icon { width: 30px; height: 30px; }
.inventory-entry > .icon { margin-left: auto; width: 19px; height: 19px; }
.inventory-entry:active { transform: translateY(2px); box-shadow: 0 2px 0 #51249c; }
.scene-profile .profile-section { margin-top: 30px; }
.settings-list { padding: 0 16px; border: 1px solid #a56ee562; border-radius: 25px; box-shadow: 0 5px 0 #8243bd0c; }
.settings-list button { min-height: 71px; font-size: 14px; gap: 12px; }
.app .settings-list button:nth-child(n) > .icon:first-child { width: 26px; height: 26px; padding: 7px; border-radius: 14px; background: #8b4be2; color: white; }
.settings-list button > .icon:last-child { color: var(--accent-deep); width: 17px; height: 17px; }
.settings-list small { font-size: 11px; color: var(--muted); }
.toggle { width: 37px; height: 23px; background: #c9b3e8; }
.toggle:before { width: 17px; height: 17px; background: #fff; }
.toggle.on { background: #8545e9; }
.toggle.on:before { transform: translateX(14px); }
.legal-links { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); min-height: 43px; flex-shrink: 0; }
.legal-links button { background: transparent; color: inherit; font-size: 10px; min-height: 40px; padding: 8px 4px; }
.scene-profile .legal-links { margin-top: auto; padding-top: 15px; }
.inventory-title { padding: 2px 0 24px; }
.inventory-title h1 { font-size: 29px; margin-top: 5px; }
.inventory-art { display: grid; place-items: center; position: relative; width: 110px; height: 106px; margin: 0 auto 4px; }
.inventory-art > .icon-inventory { width: 78px; height: 78px; color: #8545e9; stroke-width: 1.8; filter: drop-shadow(0 4px 0 #50288a20); animation: bag-sway 5s ease-in-out infinite; }
.inventory-art > .icon-inventory .icon-fill { fill: #a96af4; fill-opacity: .6; }
.inventory-art > .icon-inventory .icon-solid { fill: #ffd458; }
.dark .inventory-art > .icon-inventory { color: #c393ff; }
.dark .inventory-art > .icon-inventory .icon-fill { fill: #9d55ef; fill-opacity: .7; }
.inventory-art .bag-lid { transform-origin: 16px 9px; animation: bag-lid 5s ease-in-out infinite; }
.inventory-orbit { position: absolute; left: -2px; top: 22px; color: #d8a325; animation: orbit-glint 5s ease-in-out infinite; }
.inventory-orbit .icon { width: 20px; height: 20px; }
.inventory-orbit.second { left: auto; right: 0; top: 61px; animation-delay: -2s; }
.inventory-orbit.second .icon { width: 14px; height: 14px; }
.inventory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.inventory-grid .inventory-slot { min-height: 108px; border-radius: 22px; font-size: 11px; border: 1.5px solid #9e65e9; box-shadow: inset 0 2px 0 #ffffff15,0 3px 0 #6b34a52b; background: var(--round-field); color: var(--round-field-ink); }
.inventory-grid .empty-slot { border-style: solid; }
.inventory-grid .occupied { background: linear-gradient(145deg,#ffe794,#ffc54c); border-color: #dba531; color: #62401c; }
.inventory-grid .slot-bear { width: 75px; height: 75px; }
.secondary.channel-button { min-height: 50px; color: white; background: linear-gradient(180deg,#a260f5,#8545df); box-shadow: 0 3px 0 #5f2ba8; border-radius: 16px; }
.channel-button .icon { width: 23px; height: 23px; }
.channel-button:active { transform: translateY(2px); }
.reward { background: #d7f56b; color: #385018; padding: 7px 10px; border-radius: 12px; }
.reward .icon { width: 19px; height: 19px; }
.task-card { border-color: #b58be7; box-shadow: 0 4px 0 #8144ba10; }
.level-row { background: var(--surface); border: 1px solid #a967e884; border-radius: 19px; padding: 16px 13px; margin-top: 16px; }
.soft-icon { background: #8b4be2; color: white; border-radius: 14px; }
.level-value { background: #8545e9; color: white; border-radius: 11px; }
.success { display: grid; place-items: center; color: #4c7318; }
.success .icon { width: 28px; height: 28px; }
.sheet { border-top: 1px solid #ac78ed; padding: 13px 24px 27px; }
.sheet-emblem { margin-top: 22px; width: 55px; height: 55px; border-radius: 19px; display: grid; place-items: center; background: linear-gradient(145deg,#a967f6,#7c37d6); color: white; box-shadow: 0 3px 0 #592b99; }
.sheet-emblem .icon { width: 32px; height: 32px; }
.sheet h2 { margin: 22px 0 0; font-size: 25px; }
.sheet-caption { color: var(--muted); font-size: 12px; margin: 8px 0 24px; }
.choice-list { border: 0; margin-top: 23px; display: grid; gap: 11px; }
.choice-list button { min-height: 76px; padding: 12px 15px; background: var(--soft); border: 1.5px solid #ab7be26b; border-radius: 20px; font-size: 15px; font-weight: 750; gap: 15px; }
.choice-list button + button { border-top: 1.5px solid #ab7be26b; }
.choice-list button.chosen { background: linear-gradient(120deg,#9955ed,#7c38d5); color: white; border-color: #9b62e3; box-shadow: 0 3px 0 #623091; }
.flag { display: block; width: 43px; height: 30px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 0 #36154f24,0 0 0 1px #ffffff60; flex-shrink: 0; }
.flag svg { display: block; width: 100%; height: 100%; }
.selection-marker { margin-left: auto; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid #9c72c4; border-radius: 10px; }
.selection-marker.selected { background: #d7f56b; border: 0; color: #385317; }
.selection-marker .icon { width: 26px; height: 26px; }
.selection-marker .icon-fill { fill-opacity: 0; }
.theme-token { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: #ffc94f; color: #805619; }
.theme-token .icon { width: 30px; height: 30px; }
.theme-token.dark { background: #412063; color: #d5b4ff; }
.theme-token.system { background: #c8f175; color: #4d6928; }
.close-sheet { top: 21px; right: 14px; }
.close-sheet .icon { width: 29px; height: 29px; }
.legal-copy { margin: 25px 0; }
.legal-copy section + section { margin-top: 22px; }
.legal-copy h3 { font-size: 14px; margin: 0 0 7px; color: var(--ink); }
.legal-copy p { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 0; }
.spark .icon-fill { fill-opacity: .5; }
.spark:nth-child(2n) .icon-fill { fill-opacity: .85; }
.spark .icon { stroke-width: 1.45; }
.s0,.s2 { width: 18px; height: 18px; }
.s1 { width: 27px; height: 27px; }
.s3,.s5 { width: 16px; height: 16px; }
.s6 { width: 22px; height: 22px; }
@keyframes star-glow { 0%,100% { opacity: .24; } 50% { opacity: .58; } }
@keyframes bag-sway { 0%,100% { transform: rotate(-4deg) translateY(1px); } 50% { transform: rotate(4deg) translateY(-4px); } }
@keyframes bag-lid { 0%,30%,85%,100% { transform: translateY(0); } 50%,65% { transform: translateY(-1.5px); } }
@keyframes orbit-glint { 0%,100% { opacity: .25; transform: scale(.75); } 50% { opacity: .9; transform: scale(1.1) rotate(15deg); } }
@media (max-height:740px) {
  .profile-banner { min-height: 100px; padding: 13px; }
  .scene-profile .profile-section { margin-top: 24px; }
  .settings-list button { min-height: 62px; }
  .inventory-entry { min-height: 70px; }
  .inventory-grid .inventory-slot { min-height: 97px; }
  .inventory-art { height: 91px; }
}
.conditions-hero { margin-bottom: 22px; }

.hero-spark .icon{width:24px;height:24px}.hero-spark.two .icon{width:18px;height:18px}.channel-avatar>span .icon{width:11px;height:11px}
