:root {
  --bg: #151515;
  --panel: #222222;
  --panel-2: #2a2a2a;
  --line: #4d4d4d;
  --text: #fafafa;
  --muted: #aaa7b1;
  --purple: #8b73e6;
  --purple-dark: #352e4c;
  --gold: #ffbd22;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: #090909;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
button { font: inherit; }
.app-shell {
  position: relative;
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow: hidden;
}
.screen { min-height: calc(100dvh - 76px); padding: 8px 10px 18px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.tool-group { display: flex; gap: 6px; }
.round-tool, .counter {
  display: grid; place-items: center; min-width: 34px; height: 32px;
  border: 1px solid #383838; border-radius: 17px; background: var(--panel-2);
  color: var(--text); cursor: pointer; font-weight: 700;
}
.counter { padding: 0 10px; font-size: 13px; }
.hero { text-align: center; padding: 8px 0 14px; }
.hero-icon { font-size: 59px; line-height: 1; filter: drop-shadow(0 4px 5px #0008); }
.hero h1 { font-size: 22px; margin: 13px 0 9px; }
.hero p { margin: 0; color: var(--text); font-size: 13px; }
.subtle-link { color: var(--purple); margin-top: 8px !important; }
.segmented {
  display: flex; padding: 3px; border: 1px solid #343434; border-radius: 22px;
  background: var(--panel); margin: 4px 0 10px;
}
.segmented button { flex: 1; padding: 8px; border: 0; border-radius: 18px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.segmented button.active { color: var(--purple); background: var(--purple-dark); }
.game-panel, .content-card { padding: 10px; border-radius: 18px; background: var(--panel); }
.gift-cards { display: flex; gap: 8px; }
.gift-card { flex: 1; min-height: 165px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; background: #1b1b1b; border-radius: 11px; font-size: 57px; }
.price { padding: 6px 10px; border-radius: 18px; background: #4a3a10; color: #ffcc40; font-size: 12px; font-weight: 700; }
.row { display: flex; align-items: center; justify-content: space-between; }
.demo-row { padding: 13px 0 1px; }
.switch { width: 38px; height: 22px; border-radius: 13px; border: 0; background: #a5a5a5; padding: 2px; cursor: pointer; }
.switch i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #292929; transition: transform .2s; }
.switch.on { background: var(--purple); }.switch.on i { transform: translateX(16px); background: white; }
.primary, .secondary { width: 100%; margin-top: 14px; padding: 15px 12px; border: 0; border-radius: 26px; color: white; cursor: pointer; font-size: 15px; font-weight: 700; }
.primary { background: var(--purple); }.secondary { background: #373143; }
.section-title { margin: 24px 6px 10px; font-size: 18px; font-weight: 700; }.section-title a { float: right; color: var(--purple); text-decoration: none; }
.prize-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.prize { min-height: 130px; padding: 9px 5px; border: 1px solid #4c4c4c; border-radius: 10px; text-align: center; background: #1b1b1b; }
.chance { display: block; font-size: 10px; font-weight: 700; }.prize b { display: block; margin: 10px 0; font-size: 30px; }
.list-card { overflow: hidden; padding: 0; }.leader { display: flex; align-items: center; min-height: 61px; padding: 7px 10px; border-bottom: 1px solid var(--line); }.leader:last-child { border-bottom: 0; }
.avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #a76626; font-size: 20px; }.avatar.dark { background: #373737; }.leader-info { margin-left: 10px; flex: 1; }.leader-name { font-size: 14px; }.leader-score { margin-top: 4px; color: var(--muted); font-size: 11px; }.rank { font-size: 17px; }
.history { display: flex; align-items: center; gap: 18px; width: calc(100% + 20px); margin: 4px -10px 20px; padding: 17px 23px; border: 0; background: var(--panel); color: var(--purple); text-align: left; cursor: pointer; }.history i { font-size: 23px; font-style: normal; }
.day-pill { width: fit-content; margin: 14px auto 10px; padding: 6px 11px; border-radius: 16px; background: #101010; font-size: 12px; font-weight: 700; }
.lottery-card { overflow: hidden; border-radius: 13px; background: #cf7770; }.lottery-main { display: flex; min-height: 111px; padding: 16px 19px; }.lottery-copy { flex: 1; }.lottery-copy h3 { margin: 2px 0 7px; font-size: 16px; }.lottery-copy p { margin: 0 0 8px; color: #ffe9e5; font-size: 13px; }.lottery-join { padding: 5px 10px; border: 1px solid #f6c1bc; border-radius: 15px; background: #df8b80; color: white; cursor: pointer; }.lottery-bear { align-self: center; font-size: 55px; }.lottery-footer { padding: 5px; background: #b95f65; text-align: center; font-size: 12px; }
.profile-avatar { display: grid; place-items: center; width: 82px; height: 82px; margin: 3px auto 8px; border-radius: 50%; background: #f8f8f8; color: #111; font-size: 45px; }.profile-name { text-align: center; margin: 0; font-size: 22px; }.profile-balance { margin: 12px 0 35px; text-align: center; font-size: 16px; }.empty-state { height: 212px; display: grid; place-content: center; text-align: center; }.empty-state span { font-size: 55px; }.empty-state p { margin-top: 17px; }
.bottom-nav { position: fixed; z-index: 3; bottom: 0; left: 50%; display: flex; width: min(100%, 460px); height: calc(70px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 4px 14px env(safe-area-inset-bottom); border-top: 1px solid #292929; background: #1b1b1b; }.bottom-nav button { flex: 1; border: 0; border-radius: 25px; background: transparent; color: var(--text); font-size: 11px; font-weight: 700; cursor: pointer; }.bottom-nav button span { display: block; margin-bottom: 3px; font-size: 22px; }.bottom-nav button.active { color: var(--purple); background: var(--purple-dark); }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: flex; align-items: end; justify-content: center; padding: 0; background: #000a; }.modal { width: min(100%, 460px); min-height: 310px; padding: 20px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #242424; animation: slide-up .2s ease-out; }.modal.full { min-height: 490px; }.modal .close { float: right; border: 0; background: transparent; color: #bbb; font-size: 29px; cursor: pointer; }.modal h2 { margin: 27px 0 17px; text-align: center; font-size: 19px; }.modal p { line-height: 1.35; }.rule { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0; font-size: 13px; font-weight: 700; }.check { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 7px; background: var(--purple); }.info-line { display: flex; gap: 15px; align-items: start; margin: 15px 0; font-size: 13px; font-weight: 700; }.info-line i { font-style: normal; font-size: 26px; }.modal-icon { display: block; margin: 15px auto 9px; text-align: center; font-size: 67px; }.purchase-title { margin-top: 15px !important; }.balance { float: right; margin: 1px 4px; text-align: right; font-size: 13px; font-weight: 700; }.purchase-copy { text-align: center; font-weight: 700; }.win-copy { text-align: center; font-size: 15px; }.danger-note { color: #ffdcad; }
#toast { position: fixed; z-index: 20; left: 50%; bottom: 88px; max-width: 90%; transform: translate(-50%, 25px); padding: 10px 15px; border-radius: 18px; background: #383142; color: white; opacity: 0; transition: .2s; pointer-events: none; font-size: 13px; }.show-toast { opacity: 1 !important; transform: translate(-50%, 0) !important; }
@keyframes slide-up { from { transform: translateY(40px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (min-width: 461px) { .bottom-nav { border-left: 1px solid #292929; border-right: 1px solid #292929; border-radius: 25px 25px 0 0; } }
