@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #101510;
  --bg-deep: #0b100c;
  --panel: #172119;
  --panel-2: #1d2b20;
  --lime: #c1f879;
  --lime-soft: rgba(193, 248, 121, .16);
  --ink: #f6faef;
  --muted: #9eaf9b;
  --line: rgba(193, 248, 121, .24);
  --pink: #fa4d88;
  --purple: #786cff;
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: 'Space Grotesk', system-ui, sans-serif; overscroll-behavior: none; }
body { overflow-x: hidden; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.hidden { display: none !important; }

.app-shell { min-height: 100svh; background: radial-gradient(circle at 20% 0%, rgba(83, 117, 51, .14), transparent 31rem), var(--bg); }
.screen { min-height: var(--app-height, 100svh); }
.splash { width: min(100%, 460px); margin: 0 auto; padding: 25px 22px 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.splash::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(193,248,121,.16) 1px, transparent 1px); background-size: 19px 19px; opacity: .15; mask-image: linear-gradient(to bottom, #000 0%, transparent 68%); pointer-events: none; }
.splash-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 21px; font-weight: 700; letter-spacing: -.08em; line-height: 1; }
.wordmark span, .splash h1 em { color: var(--lime); font-style: normal; }
.status-dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 14px var(--lime); }
.eyebrow { color: var(--lime); font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .14em; line-height: 1.4; margin: 0; }
.splash .eyebrow { margin-top: 45px; }
.splash h1 { margin: 10px 0 0; font-size: clamp(42px, 12vw, 60px); line-height: .92; letter-spacing: -.065em; font-weight: 600; position: relative; z-index: 1; }
.hero-stage { height: 370px; margin: 4px -15px -2px; position: relative; display: grid; place-items: center; }
.hero-glow { position: absolute; width: 245px; height: 245px; border-radius: 50%; background: rgba(193,248,121,.14); filter: blur(31px); }
.hero-stage::after { content: ''; position: absolute; left: 50%; bottom: 45px; width: 180px; height: 32px; transform: translateX(-50%); background: rgba(0,0,0,.4); filter: blur(18px); border-radius: 50%; }
.hero-pepe { position: relative; z-index: 2; width: 272px; height: 320px; object-fit: contain; filter: drop-shadow(0 20px 15px rgba(0,0,0,.28)); animation: floatPepe 5s ease-in-out infinite; }
.orbit { position: absolute; border: 1px solid rgba(193,248,121,.17); border-radius: 50%; transform: rotate(-17deg); }
.orbit-a { width: 285px; height: 160px; }
.orbit-b { width: 330px; height: 240px; transform: rotate(68deg); border-color: rgba(250,77,136,.18); }
.brand-chip { position: absolute; z-index: 3; padding: 10px 12px; border: 1px solid rgba(245,255,240,.2); border-radius: 12px; background: rgba(25,35,26,.74); box-shadow: 0 10px 22px rgba(0,0,0,.22); font-size: 12px; font-weight: 700; backdrop-filter: blur(9px); }
.chip-stake { top: 39px; left: 22px; transform: rotate(-10deg); color: #fff; }
.chip-one { top: 19px; right: 50px; transform: rotate(12deg); color: #ffcc8b; }
.chip-tbank { top: 157px; right: 2px; transform: rotate(7deg); color: #ff8a9e; }
.chip-alpha { bottom: 51px; left: 48px; transform: rotate(9deg); color: #ff7075; }
.chip-bb { bottom: 49px; right: 40px; transform: rotate(-8deg); color: #b8afff; }
.chip-betboom { bottom: 2px; left: 50%; transform: translateX(-50%); font-size: 9px; letter-spacing: .06em; color: #d9f9b7; }
.chip-ring { left: 10px; top: 157px; width: 42px; height: 42px; padding: 0; border: 0; background: #6c57be; transform: rotate(-12deg); }
.chip-ring::before { content: ''; position: absolute; inset: 11px; border: 2px solid white; border-radius: 50%; }
.chip-ring span, .chip-ring i, .chip-ring b { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.chip-ring span { left: 16px; top: 9px; }.chip-ring i { left: 10px; top: 24px; }.chip-ring b { right: 9px; top: 24px; }
.main-prize-pill { width: fit-content; margin: -4px auto 0; padding: 9px 19px 11px; display: flex; align-items: baseline; gap: 8px; border: 1px solid var(--lime); border-radius: 999px; box-shadow: 0 0 24px rgba(193,248,121,.16); background: rgba(193,248,121,.06); position: relative; z-index: 3; }
.main-prize-pill span { color: var(--lime); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .13em; }.main-prize-pill strong { font-size: 15px; }.main-prize-pill small { color: var(--muted); font-size: 10px; }
.splash h2 { position: relative; z-index: 1; margin: 17px 0 3px; text-align: center; font-size: 37px; line-height: .98; letter-spacing: -.07em; }
.subcopy { position: relative; z-index: 1; margin: 0; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.3; }
.primary-cta { width: 100%; min-height: 57px; margin-top: 19px; border-radius: 19px; color: #15200e; background: var(--lime); font-size: 21px; font-weight: 700; letter-spacing: -.04em; box-shadow: 0 8px 28px rgba(193,248,121,.18); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(193,248,121,.28); background: #d1ff92; }
.primary-cta:active { transform: translateY(1px) scale(.99); }
@keyframes floatPepe { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }

.app-view { position: relative; height: var(--app-height, 100dvh); overflow: hidden; }
.app-header { position: absolute; z-index: 10; top: max(17px, env(safe-area-inset-top)); left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.record-chip { border: 1px solid rgba(193,248,121,.22); border-radius: 999px; padding: 7px 10px; color: var(--muted); background: rgba(16,21,16,.58); font-size: 10px; backdrop-filter: blur(12px); }
.record-chip strong { color: var(--ink); margin-left: 3px; }.tiny-star { color: var(--lime); }
.tab-panels, .tab-panel { height: 100%; }
.tab-panel { display: none; }.tab-panel.active { display: block; }
.game-panel { position: relative; overflow: hidden; background: #101810; }
.game-panel::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(193,248,121,.15) 1px, transparent 1px); background-size: 20px 20px; opacity: .18; pointer-events: none; }
#gameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.game-hud { position: absolute; z-index: 4; top: max(69px, calc(env(safe-area-inset-top) + 58px)); left: 20px; right: 20px; pointer-events: none; }
.progress-card { width: min(100%, 360px); margin: 0 auto; padding: 10px 13px 9px; border: 1px solid rgba(193,248,121,.2); border-radius: 17px; background: rgba(24,38,25,.63); backdrop-filter: blur(14px); }
.progress-card > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }.progress-card span { font-family: 'DM Mono', monospace; color: var(--muted); font-size: 8px; letter-spacing: .13em; }.progress-card strong { color: var(--lime); font-size: 11px; }
.progress-track { height: 8px; margin-top: 8px; position: relative; border-radius: 8px; background: rgba(255,255,255,.1); }.progress-track > span { display: block; height: 100%; width: 0%; border-radius: inherit; background: var(--lime); box-shadow: 0 0 10px rgba(193,248,121,.6); transition: width .25s ease; }.progress-track img { position: absolute; right: -5px; bottom: -8px; width: 26px; height: 31px; object-fit: contain; }
.overlay-card { position: absolute; z-index: 6; left: 20px; right: 20px; top: 50%; transform: translateY(-46%); margin: 0 auto; width: min(100%, 340px); padding: 25px 22px 21px; border: 1px solid rgba(193,248,121,.26); border-radius: 27px; text-align: center; background: rgba(17,28,18,.9); box-shadow: 0 20px 60px rgba(0,0,0,.36); backdrop-filter: blur(16px); }
.overlay-card h2 { margin: 8px 0; font-size: 28px; letter-spacing: -.06em; }.overlay-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }.overlay-card .primary-cta { margin-top: 21px; }.mini-pepe-wrap { width: 76px; height: 76px; margin: -10px auto 6px; border-radius: 23px; background: rgba(193,248,121,.1); }.mini-pepe-wrap img { width: 100%; height: 100%; object-fit: contain; }
.result-card { padding-top: 28px; }.result-card .result-mark { font-size: 39px; line-height: 1; color: var(--lime); }.result-card h2 { margin-top: 13px; }.result-card .reward-copy { color: var(--ink); font-size: 14px; }.result-card .reward-name { color: var(--lime); font-size: 19px; font-weight: 700; }.result-card .secondary-cta { margin-top: 16px; }
.toast { position: absolute; z-index: 12; bottom: calc(105px + var(--safe-bottom)); left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 15px; border: 1px solid rgba(193,248,121,.3); border-radius: 999px; background: rgba(19,31,20,.92); color: var(--lime); font-size: 12px; transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.bottom-nav { position: absolute; z-index: 8; left: 16px; right: 16px; bottom: var(--safe-bottom); min-height: 61px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 5px; border: 1px solid rgba(193,248,121,.2); border-radius: 23px; background: linear-gradient(110deg, rgba(24,40,25,.93), rgba(14,26,17,.86)); box-shadow: 0 14px 34px rgba(0,0,0,.35); backdrop-filter: blur(17px); }
.app-view.game-running .bottom-nav, .app-view[data-game-running] .bottom-nav { display: none !important; visibility: hidden; pointer-events: none; }
.nav-item { min-width: 0; border-radius: 17px; background: transparent; color: #789076; font-size: 10px; font-weight: 500; transition: .2s ease; }.nav-item.active { color: var(--lime); background: rgba(193,248,121,.13); box-shadow: inset 0 0 0 1px rgba(193,248,121,.23); }.nav-item:hover { color: var(--ink); }.nav-item span { white-space: nowrap; }

.collection-panel, .ranking-panel, .faq-panel { height: 100%; overflow-y: auto; padding: 86px 20px calc(104px + var(--safe-bottom)); scrollbar-width: thin; scrollbar-color: rgba(193,248,121,.35) transparent; }
.page-heading { max-width: 540px; margin: 0 auto 25px; }.page-heading h2 { margin: 7px 0 7px; font-size: 39px; letter-spacing: -.075em; line-height: .95; }.page-heading > p:last-child { margin: 0; max-width: 310px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.prize-list { max-width: 540px; margin: 0 auto; display: grid; gap: 12px; }.empty-state { padding: 34px 24px; border: 1px dashed rgba(193,248,121,.24); border-radius: 23px; text-align: center; color: var(--muted); }.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 7px; }.empty-state p { margin: 0; font-size: 13px; line-height: 1.4; }
.prize-card { position: relative; display: grid; grid-template-columns: 61px 1fr auto; align-items: center; gap: 13px; padding: 14px 14px 14px 12px; border: 1px solid rgba(193,248,121,.18); border-radius: 21px; background: linear-gradient(135deg, rgba(29,46,30,.93), rgba(18,29,20,.93)); overflow: hidden; }.prize-card::after { content: ''; position: absolute; right: -26px; top: -30px; width: 100px; height: 100px; border: 1px solid rgba(193,248,121,.11); border-radius: 50%; }.prize-avatar { width: 61px; height: 61px; border-radius: 17px; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #14200f; background: var(--lime); }.prize-avatar.pepe { background: #fa4d88; color: white; font-size: 25px; }.prize-avatar.tbank { background: #ff829b; }.prize-avatar.alpha { background: #ff715e; }.prize-avatar.bb { background: #a9a0ff; }.prize-card h3 { margin: 0 0 5px; font-size: 15px; letter-spacing: -.03em; }.prize-card p { margin: 0; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; line-height: 1.35; }.prize-card .timer { margin-top: 7px; color: var(--lime); font-size: 10px; }.prize-card.expired { opacity: .58; }.prize-card.expired .timer { color: #ba817e; }.code-button { position: relative; z-index: 1; padding: 8px 10px; border-radius: 10px; color: var(--lime); background: rgba(193,248,121,.1); font-family: 'DM Mono', monospace; font-size: 9px; white-space: nowrap; }.code-button:disabled { opacity: .45; cursor: not-allowed; }

.your-place-card { max-width: 540px; margin: 0 auto 18px; padding: 17px 18px; display: flex; justify-content: space-between; border: 1px solid var(--lime); border-radius: 21px; background: linear-gradient(100deg, rgba(193,248,121,.16), rgba(28,53,30,.54)); box-shadow: 0 0 25px rgba(193,248,121,.08); }.your-place-card span { display: block; color: var(--muted); font: 9px 'DM Mono', monospace; letter-spacing: .13em; }.your-place-card strong { display: block; margin-top: 5px; color: var(--lime); font-size: 29px; letter-spacing: -.07em; }.your-score { text-align: right; }.your-score strong { color: var(--ink); }.leaderboard { max-width: 540px; margin: 0 auto; display: grid; gap: 6px; }.leader-row { display: grid; grid-template-columns: 27px 32px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 15px; }.leader-row.you { border-color: rgba(193,248,121,.3); background: rgba(193,248,121,.1); }.leader-rank { color: var(--muted); font: 11px 'DM Mono', monospace; text-align: center; }.leader-row.top-1 .leader-rank { color: #ffd47c; }.leader-row.top-2 .leader-rank { color: #bdc8c0; }.leader-row.top-3 .leader-rank { color: #d79567; }.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #15200e; background: #b3d28c; font-weight: 700; font-size: 12px; }.you .avatar { color: #12200d; background: var(--lime); }.leader-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.leader-score { color: var(--lime); font: 11px 'DM Mono', monospace; }.demo-note, .server-note { max-width: 540px; margin: 20px auto 0; color: #728574; font-size: 11px; line-height: 1.45; }

.invite-banner { max-width: 540px; min-height: 205px; margin: 0 auto 31px; position: relative; overflow: hidden; display: flex; border: 1px solid rgba(193,248,121,.3); border-radius: 26px; background: linear-gradient(118deg, #253d29, #132318 72%); }.invite-banner::before { content: ''; position: absolute; left: -60px; bottom: -70px; width: 210px; height: 160px; border: 1px solid rgba(193,248,121,.15); border-radius: 50%; }.invite-copy { position: relative; z-index: 1; width: 65%; padding: 21px 0 19px 20px; }.invite-copy h2 { margin: 7px 0 8px; font-size: 26px; line-height: .92; letter-spacing: -.06em; }.invite-copy > p:not(.eyebrow) { max-width: 210px; margin: 0; color: #adbea8; font-size: 11px; line-height: 1.35; }.invite-banner img { position: absolute; right: -8px; bottom: -11px; z-index: 2; width: 43%; height: 215px; object-fit: contain; filter: drop-shadow(0 18px 16px rgba(0,0,0,.28)); }.secondary-cta { min-height: 36px; margin-top: 13px; padding: 0 16px; border: 1px solid var(--lime); border-radius: 12px; color: var(--lime); background: rgba(193,248,121,.1); font-size: 11px; font-weight: 700; }.secondary-cta:hover { background: var(--lime); color: #15200e; }.faq-heading { margin-bottom: 16px; }.odds-grid { max-width: 540px; margin: 0 auto 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.odds-card { min-height: 76px; padding: 11px 12px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: #253127; }.odds-card:last-child { grid-column: 1 / -1; min-height: 67px; flex-direction: row; align-items: center; }.odds-index { color: var(--muted); font: 9px 'DM Mono', monospace; }.odds-card strong { font-size: 13px; }.odds-card b { color: var(--lime); font: 12px 'DM Mono', monospace; }.pepe-odds { border-color: rgba(250,77,136,.55); background: linear-gradient(135deg, #422432, #292a28); }.pepe-odds strong { color: #ff8bad; }.tbank-odds { background: linear-gradient(135deg, #3d2c31, #292a28); }.alpha-odds { background: linear-gradient(135deg, #43302c, #292a28); }.bb-odds { background: linear-gradient(135deg, #302c4a, #292a28); }.stake-odds { background: linear-gradient(135deg, #2d3d2d, #202d23); }
.faq-list { max-width: 540px; margin: 0 auto; border-top: 1px solid rgba(193,248,121,.2); }.faq-list details { border-bottom: 1px solid rgba(193,248,121,.2); }.faq-list summary { list-style: none; padding: 17px 2px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: 13px; cursor: pointer; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary span { color: var(--lime); font: 21px 'DM Mono', monospace; transition: transform .2s ease; }.faq-list details[open] summary span { transform: rotate(45deg); }.faq-list details p { margin: -5px 20px 17px 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (min-width: 700px) { .app-view { max-width: 620px; margin: 0 auto; border-left: 1px solid rgba(193,248,121,.08); border-right: 1px solid rgba(193,248,121,.08); } }
@media (max-width: 355px) { .splash { padding-inline: 16px; }.hero-stage { height: 325px; }.hero-pepe { width: 232px; height: 280px; }.chip-tbank { right: -2px; }.invite-copy { width: 70%; padding-left: 16px; }.invite-banner img { right: -20px; width: 46%; }.invite-copy h2 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
