/* My Ghost. Builds on styles.css (tokens, header, buttons).
   Look: "Sofia after dark": the club pass and vouchers are tickets, the wheel
   and the game are arcade cabinets, navigation is a thumb-reach tab bar. */
.member-page {
  color-scheme: dark;
  --card: #0c0e14; --card-2: #12151d; --edge: #1e2230; --bone: #f2ecdc; --ink: #041104;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 64px;
}
.member-main [hidden] { display: none !important; }
.member-main { padding: 1.25rem 0 4rem; max-width: 1080px; }
.member-main .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; }
.member-main :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mp-ico { display: inline-grid; place-items: center; flex: none; }
.mp-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Header: one row on every screen ---- */
.member-page .nav { flex-wrap: nowrap; gap: .6rem; }
.member-nav { list-style: none; display: flex; align-items: center; gap: .5rem; margin: 0 0 0 auto; padding: 0; }
.member-nav a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; min-width: 40px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--edge); color: #e4e7f5; text-decoration: none; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: .78rem; }
.member-nav a:hover { border-color: var(--green); color: #fff; }
.member-nav a.is-main { background: var(--green); border-color: var(--green); color: var(--ink); }
.member-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Messages ---- */
#notice { overflow-wrap: anywhere; margin: 1rem auto 0; max-width: 520px; padding: .8rem 1rem; border-radius: 14px; border: 1px solid #3a2560; background: #1a1028; color: #eadcff; text-align: center; font-weight: 600; font-size: .92rem; }
#notice:empty { display: none; }
.is-member #notice { position: fixed; left: 12px; right: 12px; bottom: calc(var(--app-bar-h, 0px) + env(safe-area-inset-bottom) + 12px); z-index: 95; margin: 0 auto; box-shadow: 0 12px 30px #000c; animation: mp-rise .25s ease-out; }
@keyframes mp-rise { from { opacity: 0; translate: 0 8px; } }

/* ---- Signed out ---- */
.member-login { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding-top: 1rem; }
.ml-chip { display: inline-block; padding: .4rem .8rem; border-radius: 999px; border: 1px solid #2c5a31; color: var(--green); font-size: .78rem; font-weight: 700; }
.member-login h1 { font-size: clamp(3.4rem, 9vw, 6rem); line-height: .9; margin: 1rem 0 .8rem; }
.member-login h1 em { font-style: normal; color: var(--green); }
.ml-lead { color: #c3c9d8; line-height: 1.55; max-width: 44ch; margin: 0; }
.ml-benefits { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 520px; }
.ml-benefits li { display: grid; gap: .5rem; align-content: start; padding: .9rem; border: 1px solid var(--edge); border-radius: 16px; background: var(--card); }
.ml-benefits .mp-ico { width: 28px; height: 28px; color: var(--green); }
.ml-benefits strong { display: block; font-size: .95rem; }
.ml-benefits small { color: var(--muted); line-height: 1.35; display: block; margin-top: .15rem; }
.ml-card { padding: 1.5rem; border-radius: 24px; border: 1px solid #2a1c44; background: radial-gradient(120% 90% at 100% 0%, #25123d 0%, var(--card) 60%); }
.ml-card h2 { font-size: 2rem; margin-bottom: .4rem; }
.ml-card label { display: grid; gap: .4rem; margin: .9rem 0; font-weight: 700; font-size: .9rem; }
.ml-card input { min-height: 54px; border-radius: 14px; border: 1px solid #3d4456; background: #070a10; color: #fff; padding: 0 1rem; font: inherit; font-size: 1.1rem; }
.ml-card input:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
.ml-submit { width: 100%; min-height: 54px !important; margin-top: .2rem; font-size: .95rem !important; }
.ml-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; margin-top: .6rem; font: inherit; min-height: 44px; }
.ml-switch { display: block; margin: .8rem auto 0; }
.ml-sent { color: #cfe2c9; font-size: .9rem; }
.ml-card form > .ml-sent { margin: .7rem 0 0; }
.ml-guest { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--edge); color: var(--muted); font-size: .9rem; text-align: center; }
.ml-guest a, .mp-small a { color: var(--green); }
.ml-invite { margin: .9rem 0 0; padding: .75rem .9rem; border-radius: 14px; border: 1px dashed var(--purple); background: #1a1028; color: #eadcff; font-weight: 600; }

/* ---- Primary navigation: bottom tab bar on phones, side rail on desktop ---- */
.mp-subnav a { position: relative; color: #8f97ab; text-decoration: none; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mp-subnav .mp-ico { width: 24px; height: 24px; }
.mp-subnav a[aria-current="page"] { color: var(--green); }
.mp-subnav a.has-dot .mp-ico::after { content: ""; position: absolute; top: -2px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #0a0c11; }
.mp-subnav .mp-ico { position: relative; }
@media (max-width: 899.98px) {
  /* The site's app bar owns the bottom edge; the My Ghost tabs sit under the header and stay in view. */
  .mp-subnav { position: sticky; top: var(--gb-header-h, 72px); z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: -1.25rem 0 1rem; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); border-bottom: 1px solid var(--edge); }
  .mp-subnav a { display: grid; justify-items: center; align-content: center; gap: .25rem; min-height: 60px; font-size: .64rem; }
  .mp-subnav a[aria-current="page"]::before { content: ""; position: absolute; bottom: -1px; width: 100%; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }
  /* Меню and Количка are in the app bar; the header keeps the logo and the language switch. */
  .has-app-bar .member-nav li:has(> a) { display: none; }
}
@media (min-width: 900px) {
  #account { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
  #account > * { grid-column: 2; min-width: 0; }
  #account > .mp-subnav { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 96px; display: grid; gap: .2rem; padding: .5rem; border: 1px solid var(--edge); border-radius: 20px; background: var(--card); }
  .mp-subnav a { display: flex; align-items: center; gap: .75rem; min-height: 50px; padding: 0 .85rem; border-radius: 13px; font-size: .8rem; }
  .mp-subnav a:hover { color: #fff; background: var(--card-2); }
  .mp-subnav a[aria-current="page"] { background: #10230f; }
  .is-member #notice { left: auto; right: 24px; bottom: 24px; width: min(420px, calc(100% - 48px)); }
}

/* ---- Second-level switch inside a tab ---- */
.mp-seg { display: flex; gap: .25rem; padding: .25rem; margin: 0 0 1.1rem; border-radius: 15px; border: 1px solid var(--edge); background: var(--card); max-width: 520px; }
.mp-seg a { flex: 1; min-height: 44px; display: grid; place-items: center; padding: 0 .5rem; border-radius: 11px; color: #cfd6ea; text-decoration: none; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.mp-seg a[aria-current="page"] { background: var(--bone); color: #101010; }

/* ---- Home: the club pass ---- */
.mp-pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 100px; border-radius: 22px; background: var(--green); color: var(--ink); overflow: hidden; box-shadow: 0 22px 50px -26px #4bff3fb3; }
.mp-pass-main { padding: 1.05rem 1.15rem 1.2rem; min-width: 0; }
.mp-pass-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.mp-pass-brand { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.mp-pass-brand .mp-ico { width: 18px; height: 18px; }
.mp-email { margin: .25rem 0 0; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .04em; opacity: .8; overflow-wrap: anywhere; }
.mp-pass-label { margin: .9rem 0 0; font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.mp-pass-tier { font-size: clamp(2.8rem, 12vw, 4rem); line-height: .92; overflow-wrap: anywhere; }
.mp-stamps { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .95rem; }
.mp-stamp { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #04110466; display: grid; place-items: center; }
.mp-stamp.is-on { border: 0; background: var(--ink); color: var(--green); rotate: -8deg; }
.mp-stamp.is-on:nth-child(even) { rotate: 6deg; }
.mp-stamp .mp-ico { width: 20px; height: 20px; }
.mp-pass-bar { height: 10px; margin-top: .95rem; border-radius: 99px; background: #04110433; overflow: hidden; }
.mp-pass-bar span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.mp-pass-next { margin: .55rem 0 0; font-weight: 700; font-size: .88rem; line-height: 1.35; }
.mp-pass-next small { display: block; font-weight: 600; opacity: .75; }
.mp-pass-stub { position: relative; display: grid; align-content: center; justify-items: center; gap: .05rem; padding: 1rem .5rem; border-left: 2px dashed #04110455; text-align: center; }
.mp-pass-stub::before, .mp-pass-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.mp-pass-stub::before { top: -11px; }
.mp-pass-stub::after { bottom: -11px; }
.mp-pass-stub strong { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 2.3rem; line-height: 1; }
.mp-pass-stub span { font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .7rem; }
.mp-pass-stub span:last-child { margin-bottom: 0; }
.mp-app { display: flex; gap: .6rem; align-items: center; margin: .8rem 0 0; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--edge); background: var(--card); color: #c3c9d8; font-size: .85rem; }
.mp-app .mp-ico { width: 22px; height: 22px; color: var(--green); }

/* ---- Home: what you can do now ---- */
.mp-kicker { display: flex; align-items: center; gap: .7rem; margin: 1.5rem 0 .7rem; color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.mp-kicker::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.mp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.mp-tile { position: relative; display: grid; align-content: start; gap: .2rem; justify-items: start; text-align: left; min-height: 0; padding: .95rem; border-radius: 20px; border: 1px solid var(--edge); background: var(--card); color: var(--text); font: inherit; cursor: pointer; overflow: hidden; transition: border-color .15s, translate .15s; }
.mp-tile:hover { border-color: #3a4258; }
.mp-tile:active { translate: 0 1px; }
.mp-tile strong { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 1.4rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.mp-tile small { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.mp-tile-art { width: 68px; height: 68px; margin-bottom: .55rem; pointer-events: none; }
.mp-tile-art svg { width: 100%; height: 100%; display: block; }
.mp-tile.is-ready { border-color: var(--green); background: linear-gradient(165deg, #10260f, var(--card) 72%); }
.mp-tile.is-ready small { color: var(--green); font-weight: 800; }
.mp-tile.is-ready small::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: var(--green); animation: mp-pulse 1.6s ease-in-out infinite; }
@keyframes mp-pulse { 50% { opacity: .25; } }
.mp-tile--wide { grid-column: 1 / -1; min-height: 76px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; align-content: center; column-gap: .9rem; }
.mp-tile--wide > .mp-ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--card-2); color: var(--green); grid-row: 1 / span 2; }
.mp-tile--wide strong { grid-column: 2; align-self: end; font-size: 1.2rem; }
.mp-tile--wide small { grid-column: 2; align-self: start; }
.mp-tile--wide .mp-tile-end { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
.mp-tile--wide .mp-tile-end .mp-ico { width: 20px; height: 20px; }
.mp-chip { display: inline-grid; place-items: center; min-height: 30px; padding: 0 .6rem; border-radius: 9px; background: var(--green); color: var(--ink); font-family: Anton, Impact, sans-serif; font-size: 1.05rem; line-height: 1; }
.mp-tile--invite { border-color: #3a2560; background: linear-gradient(120deg, #1d1030, var(--card) 70%); }
.mp-tile--invite > .mp-ico { background: #2a1846; color: #c9a4ff; }
.mp-tile--order { grid-template-columns: minmax(0, 1fr); row-gap: .5rem; cursor: default; padding: 1rem; }
.mp-tile--order strong, .mp-tile--order small { grid-column: 1; }
.mp-tile--order .btn { width: 100%; }

/* ---- Sections ---- */
.mp-section { padding: 0 0 .5rem; }
.mp-section > h2 { font-size: clamp(2.2rem, 8vw, 3rem); line-height: .95; }
.mp-section > h2 + :not(.mp-lead) { margin-top: 1rem; }
.mp-section h3 { font-size: 1.3rem; margin: 1.2rem 0 .6rem; }
.mp-lead { color: var(--muted); margin: .45rem 0 1rem; line-height: 1.5; max-width: 60ch; }
.mp-card { padding: 1rem 1.1rem; margin: .6rem 0; border-radius: 18px; border: 1px solid var(--edge); background: var(--card); display: grid; gap: .35rem; justify-items: start; }
.mp-card p { margin: 0; color: #c3c9d8; }
.mp-card small { color: var(--muted); }
.mp-total { font-weight: 800; color: #fff !important; }
.mp-actions, .mp-row-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mp-card .mp-row-actions { margin-top: .4rem; }
.mp-empty { padding: 1.4rem 1rem; border-radius: 18px; border: 1px dashed var(--edge); color: var(--muted); text-align: center; }
.mp-small { color: var(--muted); font-size: .85rem; margin-top: 1rem; line-height: 1.5; }
.mp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.mp-stat { padding: .8rem; border-radius: 14px; background: var(--card); border: 1px solid var(--edge); }
.mp-stat strong { display: block; font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; }
.mp-stat span { color: var(--muted); font-size: .8rem; }
.mp-link { color: #cfd6ea; font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 .4rem; }
.mp-link:hover { color: var(--green); }

/* ---- Vouchers: tickets ---- */
.mp-vouchers { display: grid; gap: .7rem; }
.mp-voucher { grid-template-columns: 112px minmax(0, 1fr); padding: 0; gap: 0; margin: 0; overflow: hidden; justify-items: stretch; }
.mp-voucher-stub { position: relative; display: grid; place-content: center; justify-items: center; gap: .3rem; padding: 1rem .4rem; background: var(--green); color: var(--ink); text-align: center; }
.mp-voucher-stub::after { content: ""; position: absolute; top: 0; bottom: 0; right: -7px; width: 14px; background: radial-gradient(circle at 7px 8px, var(--card) 5px, transparent 5.6px) 0 0 / 14px 16px repeat-y; }
.mp-voucher-value { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 2.2rem; line-height: 1; }
.mp-voucher-src { font-size: .6rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mp-voucher-body { display: grid; gap: .3rem; padding: .9rem 1rem .9rem 1.25rem; justify-items: start; min-width: 0; }
.mp-voucher code { font-family: var(--mono); font-size: .95rem; letter-spacing: .1em; color: #fff; overflow-wrap: anywhere; }
.mp-voucher .btn { width: 100%; margin-top: .35rem; }

/* ---- Wheel: an arcade wheel ---- */
.wheel-box { display: grid; gap: 1.1rem; justify-items: center; padding: 1.4rem 1rem 1.3rem; border-radius: 26px; border: 1px solid #2a1c44; background: radial-gradient(120% 70% at 50% 0%, #2a1447 0%, var(--card) 62%); text-align: center; }
.wheel-stage { position: relative; width: min(100%, 360px); aspect-ratio: 1; }
.wheel-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 26px #000b); }
.wheel-rotor { transform-origin: 160px 160px; transform-box: view-box; }
.wheel-bulb { fill: var(--bone); }
.wheel-bulb:nth-of-type(odd) { animation: wheel-blink 1.4s steps(1) infinite; }
.wheel-bulb:nth-of-type(even) { animation: wheel-blink 1.4s steps(1) -.7s infinite; }
@keyframes wheel-blink { 50% { fill: #5b5f6b; } }
.wheel-pointer { position: absolute; top: -8px; left: 50%; translate: -50% 0; z-index: 1; filter: drop-shadow(0 4px 3px #000c); }
.wheel-pointer::before { content: ""; display: block; width: 34px; height: 44px; background: var(--green); clip-path: polygon(50% 100%, 0 24%, 14% 0, 86% 0, 100% 24%); }
.wheel-side { display: grid; gap: .8rem; justify-items: center; width: 100%; }
.wheel-ready { font-size: 1.05rem; font-weight: 800; margin: 0; }
.wheel-spin { min-height: 60px !important; width: min(100%, 320px); font-family: Anton, Impact, sans-serif; font-weight: 400 !important; font-size: 1.5rem !important; letter-spacing: .06em !important; border-radius: 16px !important; box-shadow: 0 6px 0 #1f8f18, 0 16px 30px -12px #4bff3f99; }
.wheel-spin:active { translate: 0 4px; box-shadow: 0 2px 0 #1f8f18; }
.wheel-result { display: grid; gap: .3rem; justify-items: center; }
.wheel-result small { color: var(--muted); }
.wheel-win { font-family: Anton, Impact, sans-serif; font-size: 2.4rem; line-height: 1; color: var(--green); margin: 0; text-transform: uppercase; }
.wheel-miss { font-weight: 800; margin: 0; }
.wheel-prizes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: .2rem 0 0; padding: 0; }
.wheel-prizes li { padding: .3rem .65rem; border-radius: 999px; border: 1px solid #3a2560; background: #160d26; color: #e2d3ff; font-size: .78rem; font-weight: 800; }
.wheel-prizes-title { margin: .4rem 0 0; color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

/* ---- Game: catch the ghost ---- */
.game-box { display: grid; gap: .9rem; justify-items: stretch; padding: 1.2rem 1rem 1.3rem; border-radius: 26px; border: 1px solid #1d3a1f; background: radial-gradient(120% 70% at 50% 0%, #12300f 0%, var(--card) 62%); }
.game-text, .game-risk, .game-message { margin: 0; color: #c9d1c4; line-height: 1.5; }
.game-message { padding: .7rem .9rem; border-radius: 14px; border: 1px solid #3a2560; background: #1a1028; color: #eadcff; font-weight: 600; }
.game-win { margin: 0; font-family: Anton, Impact, sans-serif; font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1; color: var(--green); text-transform: uppercase; }
.game-risk { padding: .7rem .9rem; border-radius: 14px; border: 1px solid #7a5a1d; background: #241a08; color: #ffe2a3; font-size: .9rem; }
.game-cooldown { margin: 0; font-family: Anton, Impact, sans-serif; font-size: 1.7rem; line-height: 1.1; text-transform: uppercase; }
.game-left, .game-keys, .game-wait { color: var(--muted); margin: 0; font-size: .85rem; text-align: center; }
.game-ladder { list-style: none; counter-reset: lvl; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; align-items: end; }
.game-ladder li { counter-increment: lvl; position: relative; display: grid; align-content: end; gap: .2rem; min-height: 112px; padding: 2.2rem .6rem .65rem; border-radius: 14px; border: 1px solid var(--edge); background: #070a10cc; }
.game-ladder li:nth-child(2) { min-height: 132px; border-color: #4a2d7e; background: #160d26; }
.game-ladder li:nth-child(3) { min-height: 152px; border-color: var(--green); background: #0f220e; }
.game-ladder li:nth-child(n+4) { min-height: 152px; }
.game-ladder li::before { content: counter(lvl); position: absolute; top: .55rem; left: .6rem; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1d2230; color: #fff; font-weight: 900; font-size: .72rem; }
.game-ladder li:nth-child(3)::before { background: var(--green); color: var(--ink); }
.game-ladder strong { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: clamp(1.5rem, 6.4vw, 2rem); line-height: 1; }
.game-ladder li:nth-child(3) strong { color: var(--green); }
.game-ladder span { color: #b9c4b5; font-size: .72rem; line-height: 1.25; }
.game-start, .game-take, .game-risk-btn { min-height: 56px !important; }
.game-start { width: 100%; font-family: Anton, Impact, sans-serif; font-weight: 400 !important; font-size: 1.4rem !important; letter-spacing: .06em !important; border-radius: 16px !important; box-shadow: 0 6px 0 #1f8f18, 0 16px 30px -12px #4bff3f99; }
.game-start:active { translate: 0 4px; box-shadow: 0 2px 0 #1f8f18; }
.game-box .mp-row-actions { display: grid; gap: .5rem; }
.game-take.btn-dark { background: var(--bone); color: #101010; border-color: var(--bone); }
.game-stage { position: relative; width: min(100%, 340px); aspect-ratio: 1; justify-self: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; }
.game-svg { width: 100%; height: 100%; display: block; }
.game-track { fill: none; stroke: #151a26; stroke-width: 32; }
.game-track-line { fill: none; stroke: #2a3142; stroke-width: 1.5; stroke-dasharray: 3 9; }
.game-zone { fill: none; stroke: var(--green); stroke-width: 32; stroke-linecap: round; filter: drop-shadow(0 0 10px #4bff3f99); }
.game-ghost-body { fill: #fff; stroke: #050507; stroke-width: 2; }
.game-hud { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; width: min(100%, 340px); justify-self: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.game-hits { color: var(--green); font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 1.5rem; line-height: 1; }
.game-clock { color: #cfd6ea; font-family: var(--mono); font-size: .9rem; }
.game-timebar { height: 8px; border-radius: 99px; background: #1b2231; overflow: hidden; }
.game-timebar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--green)); transform-origin: left; }
.game-count { position: absolute; inset: 0; display: grid; place-items: center; font-family: Anton, Impact, sans-serif; font-size: 6rem; color: #fff; background: #050507cc; border-radius: 50%; }
.game-stage.is-hit .game-zone { animation: game-hit .25s ease-out; }
.game-stage.is-miss .game-track { stroke: #5c1a1a; }
@keyframes game-hit { from { stroke-width: 46; } }
.game-tap { justify-self: center; min-height: 60px !important; width: min(100%, 340px); border-radius: 16px !important; }

/* ---- Invite a friend ---- */
.invite-split { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; margin: 0 0 1rem; max-width: 520px; }
.invite-split div { display: grid; gap: .15rem; padding: 1rem; text-align: center; }
.invite-split div:first-child { background: var(--green); color: var(--ink); border-right: 2px dashed #04110466; }
.invite-split div:last-child { background: var(--purple); color: #fff; }
.invite-split span { font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.invite-split strong { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 2.4rem; line-height: 1; }
.invite-box { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; max-width: 520px; }
.invite-box input { flex: 1 1 100%; min-width: 0; min-height: 50px; border-radius: 14px; border: 1px solid #3d4456; background: #070a10; color: #fff; padding: 0 .9rem; font: inherit; font-family: var(--mono); font-size: .82rem; }
.invite-box input:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
.invite-box .btn { flex: 1 1 140px; }
.invite-copied { display: block; min-height: 1.2rem; color: var(--green); font-size: .85rem; margin: .4rem 0; }
.invite-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }

/* ---- Orders: receipts ---- */
.mp-order { justify-items: stretch; gap: .6rem; }
.mp-order header { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--edge); }
.mp-order header strong { font-family: var(--mono); font-size: .88rem; letter-spacing: .02em; }
.mp-order .mp-total { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 1.4rem; }
.mp-order-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; color: #dfe4f2; }
.mp-order-items li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); }
.mp-order-items b { color: var(--green); font-weight: 800; }
.mp-order .mp-row-actions .btn { flex: 1 1 auto; }

/* ---- Addresses, settings ---- */
.mp-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .8rem; padding: 1rem; margin: .8rem 0; border-radius: 18px; border: 1px solid #2c5a31; background: #0b120c; }
.mp-editor label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.mp-editor input { min-height: 48px; border-radius: 12px; border: 1px solid #3d4456; background: #070a10; color: #fff; padding: 0 .8rem; font: inherit; }
.mp-editor button { grid-column: 1 / -1; justify-self: start; }
.mp-list { display: grid; margin: 0 0 1rem; border-radius: 18px; border: 1px solid var(--edge); background: var(--card); overflow: hidden; }
.mp-list > * { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; min-height: 60px; padding: .6rem 1rem; border: 0; border-top: 1px solid var(--edge); background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.mp-list > :first-child { border-top: 0; }
.mp-list > div { cursor: default; }
.mp-list .mp-ico { width: 22px; height: 22px; color: var(--muted); }
.mp-list span b { display: block; font-weight: 700; }
.mp-list span small { color: var(--muted); }
.mp-list .mp-end { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.mp-list a:hover, .mp-list button:hover { background: var(--card-2); }
.mp-danger { color: #ff9b9b !important; }
.mp-danger .mp-ico { color: #ff9b9b; }
.mp-phone-gate { margin-top: 1rem; padding: 1.1rem; border-radius: 20px; border: 1px dashed var(--purple); background: #1a1028; display: grid; gap: .6rem; }
.mp-phone-gate h2 { font-size: 1.6rem; }
.mp-phone-gate p { margin: 0; color: #d8cde6; }
.mp-phone-gate form { display: flex; flex-wrap: wrap; gap: .5rem; }
.mp-phone-gate input { flex: 1 1 200px; min-width: 0; min-height: 50px; border-radius: 14px; border: 1px solid #3d4456; background: #070a10; color: #fff; padding: 0 .9rem; font: inherit; }

/* ---- Wider screens ---- */
@media (min-width: 900px) {
  .mp-pass { grid-template-columns: minmax(0, 1fr) 150px; }
  .mp-pass-main { padding: 1.5rem 1.7rem 1.6rem; }
  .mp-pass-tier { font-size: 4.6rem; }
  .mp-stamp { width: 40px; height: 40px; }
  .mp-tiles { gap: .9rem; }
  .mp-tile { padding: 1.2rem; }
  .mp-tile-art { width: 92px; height: 92px; }
  .mp-tile strong { font-size: 1.7rem; }
  .mp-tile--wide { grid-column: auto; min-height: 92px; }
  .mp-tile--order { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
  .mp-tile--order .btn { grid-column: 2; grid-row: 1 / span 2; width: auto; }
  .wheel-box { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 2.4rem; padding: 2rem; justify-items: start; align-items: center; text-align: left; }
  .wheel-stage { width: 100%; max-width: 380px; }
  .wheel-side, .wheel-result { justify-items: start; }
  .wheel-prizes { justify-content: flex-start; }
  .game-box { padding: 2rem; max-width: 640px; }
  .mp-vouchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-section > .mp-card, .mp-section > .mp-empty, .mp-list { max-width: 640px; }
}
@media (max-width: 760px) {
  .member-login { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 0; }
  .ml-card { order: -1; padding: 1.2rem; }
  .member-login h1 { font-size: 3.2rem; }
  .mp-editor { grid-template-columns: 1fr; }
  .member-nav { gap: .35rem; }
  .member-nav .mn-cart { padding: 0; }
  .member-nav .mn-cart span { display: none; }
  .member-page .brand-text { font-size: 1.1rem; }
  .member-page .brand-icon { width: 34px; height: 34px; }
}
@media (max-width: 380px) {
  .mp-pass { grid-template-columns: minmax(0, 1fr) 84px; }
  .mp-tile strong { font-size: 1.2rem; }
  .mp-voucher { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-rotor { transition: none !important; }
  .wheel-bulb, .mp-tile.is-ready small::before, .is-member #notice { animation: none !important; }
  .game-stage.is-hit .game-zone { animation: none; }
}
@media (max-width: 440px) { .mp-tile-end .mp-chip:nth-child(n+2) { display: none; } }
@media (max-width: 899.98px) {
  .wheel-box { padding: 1.1rem .9rem 1.2rem; gap: .9rem; }
  .wheel-stage { width: min(100%, 320px); }
}
.wheel-note { text-align: center; margin-top: .8rem; }
/* Nothing on this page may widen it: long codes, links or messages wrap. */
.member-main p, .member-main small, .member-main code { overflow-wrap: anywhere; }
