/* ------------------------------------------------------------------
   LuckyMe — shared web styles (landing + /play/ app + legal pages)
   Design tokens match the Seeker app rebrand.
------------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --bg0: #05070C;
  --bg1: #0A0F17;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-deep: rgba(13, 18, 28, 0.9);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.22);
  --line-purple: rgba(153, 69, 255, 0.3);
  --line-cyan: rgba(0, 209, 255, 0.28);
  --line-emerald: rgba(20, 241, 149, 0.28);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --soft: #64748B;
  --purple: #9945FF;
  --purple-deep: #7C3AED;
  --cyan: #00D1FF;
  --emerald: #14F195;
  --amber: #F59E0B;
  --danger: #FB7185;
  --violet: #C4B5FD;
  --cta-grad: linear-gradient(135deg, #9945FF 0%, #7C3AED 45%, #00D1FF 130%);
  --hover-line: rgba(0, 209, 255, 0.44);
  --solana-glow: 0 16px 34px rgba(153, 69, 255, 0.22), 0 0 24px rgba(0, 209, 255, 0.16), 0 0 18px rgba(20, 241, 149, 0.12);
  --solana-glow-strong: 0 18px 42px rgba(153, 69, 255, 0.28), 0 0 30px rgba(0, 209, 255, 0.2), 0 0 22px rgba(20, 241, 149, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(153, 69, 255, 0.14), transparent 34rem),
    radial-gradient(circle at 95% 30%, rgba(0, 209, 255, 0.07), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.08), transparent 34rem),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a { -webkit-tap-highlight-color: transparent; font: inherit; }
button { cursor: pointer; color: inherit; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 10px; }

h1, h2, h3, p { margin: 0; }
h1 { color: #fff; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; font-weight: 850; letter-spacing: -0.02em; }
h2 { color: #fff; font-size: clamp(20px, 3vw, 26px); line-height: 1.18; font-weight: 800; letter-spacing: -0.01em; }
h3 { color: #fff; font-size: 16px; line-height: 1.25; font-weight: 750; }
p { color: var(--muted); line-height: 1.55; font-size: 15px; overflow-wrap: anywhere; }

.eyebrow {
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.label {
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead { font-size: 17px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.success { color: var(--emerald); }
.warning { color: var(--amber); }
.danger { color: var(--danger); }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------------- buttons ---------------- */

.button, .primary-button, .secondary-button, .icon-button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 160ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button, .primary-button {
  color: #fff;
  background: var(--cta-grad);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35), 0 0 20px rgba(0, 209, 255, 0.12);
}

.button.secondary, .secondary-button {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.icon-button {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
  color: var(--violet);
  background: rgba(153, 69, 255, 0.1);
  border: 1px solid var(--line-purple);
}

.button:hover, .primary-button:hover, .secondary-button:hover, .icon-button:hover { text-decoration: none; }
.button:active, .primary-button:active, .secondary-button:active, .icon-button:active { transform: scale(0.98); opacity: 0.82; }
.primary-button[disabled], .secondary-button[disabled], .icon-button[disabled] { opacity: 0.42; cursor: not-allowed; transform: none; }

/* ---------------- shared surfaces ---------------- */

.panel, .pool-card, .list-row, .wallet-card, .feature, .mini-card, .review-panel, .step-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.panel { padding: 18px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.row > * { min-width: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
  color: var(--violet);
  background: rgba(153, 69, 255, 0.1);
  border: 1px solid var(--line-purple);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.chip:nth-child(2) { color: var(--cyan); background: rgba(0, 209, 255, 0.08); border-color: var(--line-cyan); }
.chip:nth-child(3) { color: var(--emerald); background: rgba(20, 241, 149, 0.07); border-color: var(--line-emerald); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.status-pill.warning { color: #FBD38D; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.28); }
.status-pill.success { color: var(--emerald); background: rgba(20, 241, 149, 0.08); border-color: rgba(20, 241, 149, 0.26); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.dot-live { background: var(--emerald); box-shadow: 0 0 12px rgba(20, 241, 149, 0.55); }
.dot-sync { background: var(--amber); box-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }

.notice {
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.07);
  color: #FBD38D;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.notice.success { border-color: rgba(20, 241, 149, 0.28); background: rgba(20, 241, 149, 0.07); color: var(--emerald); }
.notice.danger { border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.07); color: var(--danger); }

.refund-explainer {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line-emerald);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.09), rgba(0, 209, 255, 0.045));
  box-shadow: 0 0 28px rgba(20, 241, 149, 0.07);
}
.refund-explainer strong { color: var(--emerald); font-size: 16px; }
.refund-explainer p { font-size: 13.5px; }

.list { display: grid; gap: 10px; }
.list-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.list-row > * { min-width: 0; }
.list-row p { font-size: 13px; }
.list-row strong { flex: 0 0 auto; max-width: 40%; font-size: 13px; text-align: right; overflow-wrap: anywhere; letter-spacing: 0.05em; }

.code-box {
  margin: 0;
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(3, 5, 10, 0.7);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
}

/* ---------------- landing ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(10, 15, 23, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, filter 180ms ease;
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 0 10px rgba(20, 241, 149, 0.25)); }

.navlinks { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); }
.navlinks a { color: var(--muted); font-size: 14px; font-weight: 700; transition: transform 180ms ease, color 180ms ease, text-shadow 180ms ease; }
.navlinks a:hover { color: #fff; text-decoration: none; }
.navlinks .button { min-height: 40px; padding: 0 18px; font-size: 14px; color: #fff; }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 48px) clamp(28px, 5vw, 64px);
}

.landing-copy { display: grid; gap: 18px; justify-items: start; }
.landing-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.landing-art { position: relative; display: grid; place-items: center; }
.landing-art img {
  width: min(100%, 460px);
  height: auto;
  filter: drop-shadow(0 30px 80px rgba(124, 58, 237, 0.35));
}

.section-band { padding: clamp(24px, 4vw, 48px) clamp(16px, 5vw, 48px); }
.section-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 22px; }
.section-inner.two-col { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 56px); }

.pool-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.mini-card {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 209, 255, 0.08), transparent 12rem),
    var(--panel-deep);
  border-color: var(--line-cyan);
  box-shadow: 0 0 26px rgba(0, 209, 255, 0.07);
}
.mini-card span { color: var(--soft); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.mini-card strong { color: var(--cyan); font-size: 24px; font-weight: 850; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mini-card:nth-child(2) { border-color: var(--line-purple); box-shadow: 0 0 26px rgba(153, 69, 255, 0.09); background: radial-gradient(circle at 90% 0%, rgba(153, 69, 255, 0.1), transparent 12rem), var(--panel-deep); }
.mini-card:nth-child(2) strong { color: var(--purple); }
.mini-card:nth-child(3) { border-color: rgba(124, 58, 237, 0.32); box-shadow: 0 0 26px rgba(124, 58, 237, 0.09); background: radial-gradient(circle at 90% 0%, rgba(124, 58, 237, 0.1), transparent 12rem), var(--panel-deep); }
.mini-card:nth-child(3) strong { color: var(--violet); }
.mini-card.premium { border-color: rgba(192, 132, 252, 0.3); box-shadow: 0 0 26px rgba(192, 132, 252, 0.1); background: radial-gradient(circle at 90% 0%, rgba(192, 132, 252, 0.1), transparent 12rem), var(--panel-deep); }
.mini-card.premium strong { color: #C084FC; }
.mini-card small { color: var(--muted); font-size: 12px; font-weight: 750; }

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: 20px 18px; display: grid; gap: 10px; align-content: start; }
.feature h2 { font-size: 17px; }
.feature p { font-size: 14px; }

.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card { padding: 20px 18px; display: grid; gap: 10px; align-content: start; }
.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--violet);
  background: rgba(153, 69, 255, 0.12);
  border: 1px solid var(--line-purple);
  font-size: 14px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.step-card h3 { font-size: 15.5px; }
.step-card p { font-size: 13.5px; }

.muted-band { background: rgba(3, 5, 10, 0.4); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px clamp(16px, 5vw, 48px) 40px;
  color: var(--soft);
  font-size: 13.5px;
}
.footer a { color: var(--muted); margin-left: 16px; font-weight: 700; transition: transform 180ms ease, color 180ms ease, text-shadow 180ms ease; }
.footer a:first-child { margin-left: 0; }
.footer a:hover { color: #fff; text-decoration: none; }

/* ---------------- legal pages ---------------- */

.legal-main { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 48px) 64px; display: grid; gap: 16px; }
.legal-main h1 { font-size: clamp(26px, 4vw, 34px); }
.legal-main h2 { font-size: 19px; margin-top: 10px; }
.legal-main li { color: var(--muted); line-height: 1.55; font-size: 15px; }

/* ---------------- How to Play ---------------- */

.how-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(16px, 5vw, 48px) 72px;
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}
.how-hero { max-width: 760px; display: grid; gap: 16px; }
.how-main > section { display: grid; gap: 18px; }
.how-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}
.how-grid .step-card { min-width: 0; }
.clarification-panel { display: grid; gap: 12px; border-color: var(--line-cyan); }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--panel-deep);
}
.rules-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.rules-table caption { padding: 14px 16px 0; color: var(--soft); text-align: left; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.rules-table th, .rules-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.rules-table thead th { color: var(--soft); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.rules-table tbody th { color: #fff; }
.rules-table tbody td { color: var(--muted); font-variant-numeric: tabular-nums; }
.rules-table tbody tr:last-child th, .rules-table tbody tr:last-child td { border-bottom: 0; }
.how-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.how-cta > div { display: grid; gap: 7px; }

/* ---------------- /play/ app shell ---------------- */

.app-body { min-height: 100dvh; }

.app-shell {
  max-width: 720px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 108px);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  margin: 0 -16px 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 10px;
  background: rgba(10, 15, 23, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.app-brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; transition: transform 180ms ease, filter 180ms ease; }
.app-brand:hover { text-decoration: none; }
.app-brand img { width: 42px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(20, 241, 149, 0.25)); }
.app-brand-text { display: grid; gap: 1px; min-width: 0; }
.app-brand-text strong { display: block; font-size: 18px; font-weight: 850; letter-spacing: -0.01em; line-height: 1.05; }
.app-brand-text small { display: block; color: var(--soft); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.top-actions { display: flex; align-items: center; gap: 8px; }

.wallet-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--violet);
  background: rgba(153, 69, 255, 0.1);
  border: 1px solid var(--line-purple);
  font-size: 13px;
  font-weight: 800;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(153, 69, 255, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.screen { display: grid; gap: 14px; animation: screen-in 220ms ease; }
.screen[hidden], [hidden] { display: none !important; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.screen-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 22px 18px 20px;
  border: 1px solid var(--line-purple);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 0%, rgba(153, 69, 255, 0.16), transparent 22rem),
    radial-gradient(circle at 10% 100%, rgba(0, 209, 255, 0.1), transparent 20rem),
    var(--panel-deep);
  box-shadow: 0 0 36px rgba(124, 58, 237, 0.16);
  backdrop-filter: blur(20px);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.hero-art { display: block; width: min(56%, 250px); height: auto; margin: 0 auto; }
.hero-copy { display: grid; gap: 14px; }

.hero-panel .actions, .wallet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wallet-actions > * { flex: 1 1 150px; }

/* pool cards (markup produced by app.js) */

.pool-grid { display: grid; gap: 12px; }
@media (min-width: 620px) { .pool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pool-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  background:
    radial-gradient(circle at 90% 0%, rgba(153, 69, 255, 0.1), transparent 16rem),
    var(--panel-deep);
  border-color: var(--line-purple);
  box-shadow: 0 0 26px rgba(153, 69, 255, 0.08);
}
.pool-card-footer { display: flex; min-width: 0; flex-direction: column; gap: 12px; align-self: stretch; }
.pool-card:nth-child(4n+1) { border-color: var(--line-cyan); box-shadow: 0 0 26px rgba(0, 209, 255, 0.07); background: radial-gradient(circle at 90% 0%, rgba(0, 209, 255, 0.08), transparent 16rem), var(--panel-deep); }
.pool-card:nth-child(4n+1) .entry { color: var(--cyan); }
.pool-card:nth-child(4n+2) .entry { color: var(--purple); }
.pool-card:nth-child(4n+3) { border-color: rgba(124, 58, 237, 0.32); box-shadow: 0 0 26px rgba(124, 58, 237, 0.09); background: radial-gradient(circle at 90% 0%, rgba(124, 58, 237, 0.1), transparent 16rem), var(--panel-deep); }
.pool-card:nth-child(4n+3) .entry { color: var(--violet); }
.pool-card:nth-child(4n) { border-color: rgba(192, 132, 252, 0.3); box-shadow: 0 0 26px rgba(192, 132, 252, 0.1); background: radial-gradient(circle at 90% 0%, rgba(192, 132, 252, 0.1), transparent 16rem), var(--panel-deep); }
.pool-card:nth-child(4n) .entry { color: #C084FC; }

.pool-title { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pool-title > div { min-width: 0; }
.pool-title h3 { margin-top: 3px; }

.pool-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #FBD38D;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.26);
  flex: 0 0 auto;
  max-width: 58%;
  overflow-wrap: anywhere;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.pool-chip.success {
  color: var(--emerald);
  background: rgba(20, 241, 149, 0.08);
  border-color: rgba(20, 241, 149, 0.26);
}
.pool-chip.warning {
  color: #FBD38D;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.26);
}

.entry { display: flex; align-items: baseline; gap: 6px; color: #fff; font-size: 30px; font-weight: 850; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.entry span { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }

.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact {
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.fact .label { display: block; margin-bottom: 5px; font-size: 10px; }
.fact strong { display: block; color: #fff; font-size: 12.5px; line-height: 1.2; overflow-wrap: anywhere; }
.jackpot-fact { border-color: rgba(20, 241, 149, 0.18); background: rgba(20, 241, 149, 0.045); }
.jackpot-fact strong { color: var(--emerald); }
.pool-jackpot-fomo {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 220, 91, .62);
  border-radius: 999px;
  color: #fff2a2;
  background: linear-gradient(105deg, rgba(93, 66, 4, .82), rgba(27, 92, 41, .76));
  box-shadow: 0 0 20px rgba(255, 204, 56, .18), inset 0 0 12px rgba(255, 237, 128, .08);
}
.pool-jackpot-fomo span {
  color: #ffe36f;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.pool-jackpot-fomo i { font-style: normal; filter: drop-shadow(0 0 6px rgba(255, 224, 84, .9)); }
.pool-jackpot-fomo strong { color: #fff8c8; font-size: 13px; line-height: 1; text-shadow: 0 0 12px rgba(255, 224, 92, .45); }
.time-fact { border-color: rgba(0, 209, 255, 0.18); background: rgba(0, 209, 255, 0.045); }
.time-fact strong { color: var(--cyan); font-variant-numeric: tabular-nums; }

.pool-card p { font-size: 12.5px; color: var(--soft); }
.pool-card .primary-button { width: 100%; }
.pool-card-footer .primary-button { margin-top: auto; }

.minimum-target {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(181, 255, 110, .36);
  border-radius: 13px;
  background: rgba(1, 29, 21, .91);
  box-shadow: inset 0 0 22px rgba(104, 209, 75, .05);
}
.minimum-target-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.minimum-target-head .label { color: #c7e4c7; }
.minimum-target-head > strong { color: #f0ffc2; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.minimum-target.success { border-color: rgba(69, 247, 158, .48); background: rgba(2, 44, 30, .94); }
.minimum-target.warning { border-color: rgba(244, 194, 73, .38); background: rgba(37, 35, 16, .92); }
.minimum-progress { height: 13px; overflow: hidden; border: 1px solid rgba(192, 255, 105, .20); border-radius: 999px; background: rgba(0, 10, 8, .72); box-shadow: inset 0 2px 5px rgba(0,0,0,.38); }
.minimum-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--emerald));
  transition: width 300ms ease;
}
.minimum-target.warning .minimum-progress > span { background: linear-gradient(90deg, var(--purple), var(--amber)); }
.minimum-message { color: #d7ead8 !important; font-size: 12.5px !important; font-weight: 750; }
.minimum-wallets { color: #dfffa9 !important; font-weight: 800; }
.minimum-clarification { color: #9eb8a4 !important; font-size: 11.5px !important; }

/* wallet cards (markup produced by app.js) */

.wallet-grid { display: grid; gap: 12px; }
@media (min-width: 620px) { .wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wallet-card { padding: 16px; display: grid; gap: 12px; align-content: start; }
.wallet-card.active { border-color: var(--line-emerald); box-shadow: 0 0 26px rgba(20, 241, 149, 0.08); }
.wallet-card p { font-size: 13px; }
.wallet-card strong { font-size: 12px; letter-spacing: 0.06em; }
.wallet-connect-card, .wallet-menu { max-width: 620px; }
.wallet-option-list { display: grid; gap: 8px; }
.wallet-option {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-weight: 800;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.wallet-option strong { color: var(--emerald); font-size: 11px; }
.wallet-option:hover { border-color: var(--line-emerald); background: rgba(20, 241, 149, 0.08); }
.wallet-menu-note { margin-top: 2px; font-size: 12px; color: var(--soft); }
.wallet-uri-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(20, 241, 149, 0.18);
  background: rgba(20, 241, 149, 0.045);
}
.wallet-uri-box p { font-size: 12.5px; }

body.wallet-modal-open { overflow: hidden; }
.wallet-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(12px);
}
.wallet-modal {
  width: min(920px, 100%);
  max-height: min(860px, calc(100dvh - 36px));
  overflow: auto;
  border: 1px solid var(--line-purple);
  border-radius: 20px;
  color: #fff;
  background: #111525;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 45px rgba(153, 69, 255, 0.14);
}
.wallet-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(185, 255, 109, .26);
  background:
    linear-gradient(135deg, rgba(17, 88, 45, .95), rgba(2, 33, 28, .98)),
    url("/assets/app-theme/home/luckyme-home-background-v2.png") center 35% / cover;
  backdrop-filter: blur(18px);
}
.wallet-modal-head h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 40px); }
.wallet-modal-head p { max-width: 720px; color: #b9d1bf; font-size: 15px; }
.wallet-modal-head a { color: var(--soft); text-decoration: underline; }
.wallet-modal-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 38px;
  line-height: 1;
}
.wallet-modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.wallet-modal-body { display: grid; gap: 28px; padding: 26px; }
.wallet-modal-section { display: grid; gap: 14px; }
.wallet-modal-section h3 { font-size: 22px; }
.wallet-modal-message { margin: 0; }
.wallet-modal-uri { display: grid; gap: 12px; }
.wallet-modal-uri code {
  display: block;
  max-height: 96px;
  overflow: auto;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--soft);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  user-select: none;
}
.wallet-modal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wallet-modal-option {
  min-height: 142px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 18px 12px;
  border: 1px solid rgba(177, 255, 105, .24);
  border-radius: 16px;
  color: #fff;
  background: rgba(2, 39, 28, .82);
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.wallet-modal-option:hover {
  transform: translateY(-2px);
  border-color: rgba(205, 255, 110, .58);
  background: rgba(32, 91, 44, .72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.wallet-modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  padding: 5px;
  color: #fff;
  background: rgba(4, 28, 25, .90);
  border: 1px solid rgba(207, 255, 132, .28);
  font-size: 24px;
  font-weight: 900;
}
.wallet-modal-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.wallet-modal-note { color: var(--soft); font-size: 13px; }
.walletconnect-option { grid-template-columns: auto 1fr auto; min-height: 82px; place-items: center start; text-align: left; }
.walletconnect-option .wallet-modal-icon { width: 48px; height: 48px; border-radius: 14px; background: #0d63d8; }
.walletconnect-option strong { justify-self: end; color: #dfff9b; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.wallet-modal-option:disabled { cursor: wait; transform: none; opacity: 0.58; }
.wallet-modal-controls { display: flex; justify-content: flex-end; margin-top: 10px; }
.wallet-modal-controls .secondary-button { min-width: 130px; }
.walletconnect-qr {
  width: min(100%, 320px);
  height: auto;
  justify-self: center;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}
.walletconnect-qr-loading {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 700px) {
  .wallet-modal-backdrop { align-items: end; padding: 0; }
  .wallet-modal { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .wallet-modal-head, .wallet-modal-body { padding: 20px 16px; }
  .wallet-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-modal-option { min-height: 122px; }
}

/* review */

.review-panel { padding: 18px; display: grid; gap: 14px; border-color: var(--line-purple); box-shadow: 0 0 28px rgba(153, 69, 255, 0.1); }
.review-summary { display: grid; gap: 10px; }
.review-target { padding: 15px; }
.how-screen .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.how-screen .how-intro { display: grid; gap: 8px; }
.ticket-control {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(14, 20, 32, 0.72);
}
.ticket-control strong { display: block; margin-top: 4px; font-size: 28px; line-height: 1; }
.ticket-control p { margin-top: 4px; color: var(--muted); }
.stepper {
  display: grid;
  grid-template-columns: 42px minmax(74px, 96px) 42px;
  gap: 8px;
  align-items: center;
}
.stepper .icon-button { min-height: 42px; padding: 0; font-size: 18px; }
.stepper input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(3, 5, 10, 0.54);
  text-align: center;
  font: inherit;
  font-weight: 800;
}
.stepper input:focus {
  outline: 2px solid rgba(0, 209, 255, 0.32);
  border-color: var(--hover-line);
}
.ticket-quick-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(14, 20, 32, 0.72);
}
.ticket-quantity-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.quantity-button {
  min-width: 48px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: rgba(3, 5, 10, 0.54);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.quantity-button:hover, .quantity-button.selected {
  border-color: var(--purple);
  background: rgba(153, 69, 255, 0.2);
}
.custom-ticket-quantity {
  display: grid;
  gap: 4px;
  min-width: 142px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.custom-ticket-quantity input {
  width: 142px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: rgba(3, 5, 10, 0.54);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-transform: none;
}
.custom-ticket-quantity input:focus {
  outline: 2px solid rgba(0, 209, 255, 0.32);
  border-color: var(--hover-line);
}

@media (max-width: 560px) {
  .ticket-quick-select { align-items: flex-start; flex-direction: column; }
}

/* ------------------------------------------------------------------
   LuckyMe final green theme — local candidate, 2026-07-18
   Visual-only layer. Pool, wallet and settlement behavior is unchanged.
------------------------------------------------------------------- */

.luckyme-final-site,
.luckyme-final-app {
  --bg0: #03120f;
  --bg1: #06231a;
  --panel: rgba(5, 48, 31, 0.62);
  --panel-deep: rgba(3, 27, 21, 0.93);
  --line: rgba(169, 255, 113, 0.20);
  --line-strong: rgba(188, 255, 115, 0.38);
  --line-purple: rgba(177, 108, 255, 0.40);
  --line-cyan: rgba(91, 236, 218, 0.38);
  --line-emerald: rgba(150, 255, 82, 0.52);
  --text: #fbfff6;
  --muted: #b7c9bd;
  --soft: #88a494;
  --amber: #ffd35a;
  --violet: #d4bbff;
  --cta-grad: linear-gradient(135deg, #b9f753 0%, #34d67c 48%, #35c8bd 100%);
  --hover-line: rgba(190, 255, 100, 0.72);
  --solana-glow: 0 18px 42px rgba(70, 228, 114, 0.20), 0 0 28px rgba(180, 244, 75, 0.13);
  background:
    radial-gradient(circle at 20% 8%, rgba(152, 255, 87, 0.18), transparent 30rem),
    radial-gradient(circle at 90% 36%, rgba(41, 208, 158, 0.14), transparent 28rem),
    linear-gradient(rgba(1, 25, 19, 0.40), rgba(1, 16, 14, 0.84)),
    url("/assets/brand/luckyme-mark-small.webp") 97% 12% / 128px auto no-repeat,
    linear-gradient(160deg, #0a3823 0%, #06231a 42%, #030d12 100%);
}

.luckyme-final-site::before,
.luckyme-final-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(circle at 8% 74%, rgba(94, 188, 58, 0.20) 0 5%, transparent 13%),
    radial-gradient(circle at 93% 82%, rgba(58, 196, 105, 0.16) 0 6%, transparent 15%),
    radial-gradient(circle at 54% 42%, rgba(244, 213, 82, 0.07) 0 1px, transparent 3px);
  background-size: auto, auto, 38px 38px;
}

.luckyme-final-site h1,
.luckyme-final-site h2,
.luckyme-final-site h3,
.luckyme-final-app h1,
.luckyme-final-app h2,
.luckyme-final-app h3 { text-shadow: 0 3px 18px rgba(0, 0, 0, 0.50); }

.luckyme-final-site .eyebrow,
.luckyme-final-app .eyebrow,
.luckyme-final-app .label { color: #a8f5cf; }

.luckyme-final-site .site-nav,
.luckyme-final-app .app-topbar {
  background: linear-gradient(180deg, rgba(3, 37, 25, 0.96), rgba(3, 26, 22, 0.84));
  border-color: rgba(177, 255, 105, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(1.15);
}

.luckyme-final-site .brand span,
.luckyme-final-app .app-brand strong {
  color: #ffe48b;
  text-shadow: 0 0 16px rgba(255, 215, 86, 0.18);
}

.luckyme-final-site .landing-hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100vh - 76px));
  border-bottom: 1px solid rgba(187, 255, 106, 0.18);
}

.luckyme-final-site .landing-hero::after,
.luckyme-final-app .hero-panel::after {
  content: "✦";
  position: absolute;
  right: 7%;
  top: 12%;
  color: #ffe275;
  font-size: 30px;
  filter: drop-shadow(0 0 12px rgba(255, 226, 117, 0.7));
}

.luckyme-final-site .landing-copy { max-width: 690px; }
.luckyme-final-site .landing-copy h1 { font-size: clamp(42px, 6vw, 72px); }
.luckyme-final-site .landing-art img {
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 28px rgba(117, 246, 84, 0.18));
}

.luckyme-final-site .button,
.luckyme-final-app .primary-button {
  color: #042018;
  border: 1px solid rgba(234, 255, 190, 0.64);
  box-shadow: 0 12px 32px rgba(61, 216, 117, 0.26), inset 0 1px rgba(255,255,255,.48);
}

.luckyme-final-site .button.secondary,
.luckyme-final-app .secondary-button,
.luckyme-final-app .icon-button {
  background: rgba(3, 39, 29, 0.72);
  border-color: rgba(166, 255, 103, 0.30);
}

.luckyme-final-site .chip,
.luckyme-final-app .chip {
  color: #dfffb5;
  background: rgba(56, 154, 78, 0.16);
  border-color: rgba(171, 255, 104, 0.32);
}

.luckyme-final-site .section-band,
.luckyme-final-site .muted-band { background: rgba(3, 28, 21, 0.46); border-color: rgba(156, 237, 91, 0.12); }

.luckyme-final-site .mini-card,
.luckyme-final-site .feature,
.luckyme-final-site .step-card,
.luckyme-final-app .panel,
.luckyme-final-app .pool-card,
.luckyme-final-app .list-row,
.luckyme-final-app .wallet-card,
.luckyme-final-app .step-card,
.luckyme-final-app .review-panel {
  background: linear-gradient(145deg, rgba(18, 83, 43, 0.68), rgba(3, 37, 30, 0.76));
  border-color: rgba(177, 255, 105, 0.28);
  box-shadow: inset 0 1px rgba(255,255,255,.045), 0 18px 40px rgba(0,0,0,.20);
}

.luckyme-final-site .mini-card:hover,
.luckyme-final-app .pool-card:hover {
  border-color: rgba(205, 255, 110, 0.70);
  box-shadow: 0 16px 42px rgba(71, 226, 103, 0.18), inset 0 0 34px rgba(117, 238, 72, 0.08);
}

.luckyme-final-app .app-shell { background: transparent; }
.luckyme-final-app .hero-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 91, 45, 0.76), rgba(3, 34, 28, 0.80));
  border-color: rgba(184, 255, 104, 0.42);
  box-shadow: var(--solana-glow);
}
.luckyme-final-app .hero-art {
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.38)) drop-shadow(0 0 22px rgba(139, 241, 72, .18));
}

.luckyme-final-app .wallet-pill,
.luckyme-final-app .status-pill {
  background: rgba(4, 44, 31, 0.78);
  border-color: rgba(178, 255, 110, 0.28);
}

.luckyme-final-app .bottom-nav {
  background: linear-gradient(180deg, rgba(3, 41, 29, 0.97), rgba(2, 23, 26, 0.98));
  border-color: rgba(175, 255, 101, 0.22);
  box-shadow: 0 -15px 36px rgba(0, 0, 0, 0.34);
}
.luckyme-final-app .nav-item.active {
  color: #f9df7c;
  background: linear-gradient(135deg, rgba(85, 196, 78, 0.23), rgba(49, 195, 165, 0.12));
  border-color: rgba(205, 255, 109, 0.42);
}

.luckyme-final-app .wallet-modal {
  background: linear-gradient(155deg, rgba(8, 65, 38, 0.98), rgba(2, 23, 25, 0.99));
  border-color: rgba(185, 255, 109, 0.38);
}

@media (min-width: 900px) {
  .luckyme-final-app .bottom-nav {
    background: linear-gradient(180deg, rgba(3, 42, 29, 0.98), rgba(2, 21, 24, 0.99));
  }
}

@media (max-width: 560px) {
  .luckyme-final-site .landing-hero { min-height: auto; }
  .luckyme-final-site .landing-copy h1 { font-size: 40px; }
  .luckyme-final-app .hero-panel::after { display: none; }
}

/* ------------------------------------------------------------------
   Exact APK visual system — website candidate v2
------------------------------------------------------------------- */

.luckyme-apk-site,
.luckyme-final-app {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(1, 25, 18, 0.28), rgba(1, 13, 18, 0.66)),
    url("/assets/app-theme/home/luckyme-home-background-v2.png") center / cover fixed no-repeat;
}

.apk-site-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(18px, 5vw, 54px);
  background: rgba(2, 35, 24, 0.82);
  border-bottom: 1px solid rgba(184, 255, 112, 0.20);
  backdrop-filter: blur(18px);
}
.apk-site-logo { display: block; width: min(225px, 44vw); }
.apk-site-logo img { display: block; width: 100%; height: auto; }
.apk-site-top-actions { display: flex; align-items: center; gap: 9px; }
.apk-mainnet,
.apk-wallet-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid rgba(190, 255, 111, 0.25);
  border-radius: 999px;
  color: #f6fff2;
  background: rgba(2, 49, 34, 0.66);
  font-size: 13px;
  font-weight: 800;
}
.apk-wallet-link { border-color: rgba(176, 106, 255, 0.48); color: #d8bdff; }
.apk-wallet-link:hover { text-decoration: none; }
.apk-mainnet i { width: 8px; height: 8px; border-radius: 50%; background: #86ff74; box-shadow: 0 0 12px #6fff78; }

.apk-site-home {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 66px) clamp(16px, 4vw, 34px) 132px;
  display: grid;
  gap: 24px;
}
.apk-site-intro { max-width: 690px; display: grid; gap: 12px; }
.apk-site-intro h1 { font-size: clamp(38px, 7vw, 62px); line-height: .98; }
.apk-site-intro p:last-child { max-width: 620px; color: #d5dfd7; font-size: clamp(15px, 2.2vw, 18px); }
.apk-site-grid,
.web-apk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.apk-site-card,
.web-apk-card {
  position: relative;
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px 12px 22px;
  border: 2px solid rgba(167, 255, 83, 0.76);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(160deg, rgba(67, 168, 47, 0.46), rgba(1, 51, 31, 0.76));
  box-shadow: inset 0 0 0 5px rgba(228,255,158,.12), 0 9px 26px rgba(0,0,0,.30), 0 0 18px rgba(108,255,64,.13);
  text-align: center;
  text-decoration: none;
}
.apk-site-card::after,
.web-apk-card::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(240,255,170,.28); border-radius: 18px; pointer-events: none; }
.apk-site-card:hover,
.web-apk-card:hover { transform: translateY(-2px); border-color: #d4ff73; text-decoration: none; }
.apk-site-card img,
.web-apk-card img {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(76%, 210px);
  height: min(76%, 210px);
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 9px 12px rgba(0,0,0,.36));
}
.apk-site-card strong,
.web-apk-card strong { position: relative; z-index: 1; font-size: clamp(21px, 3vw, 28px); line-height: 1; text-shadow: 0 3px 7px #00130a; }
.apk-site-card small,
.web-apk-card small { position: relative; z-index: 1; color: rgba(239, 249, 238, 0.76); font-size: 12px; }
.apk-site-boundary { max-width: 700px; margin: 0 auto; text-align: center; color: rgba(220, 233, 221, .64); font-size: 12px; }

.apk-site-bottom {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 30;
  width: min(720px, calc(100% - 22px));
  min-height: 78px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(176, 255, 103, 0.27);
  border-radius: 22px;
  background: rgba(1, 32, 26, 0.94);
  box-shadow: 0 16px 40px rgba(0,0,0,.52);
  backdrop-filter: blur(20px);
}
.apk-site-bottom a { min-width: 0; display: grid; place-items: center; gap: 1px; padding: 4px 2px; border: 1px solid transparent; border-radius: 15px; color: #b5c4bb; }
.apk-site-bottom a:hover { text-decoration: none; }
.apk-site-bottom a.active { color: #ffdf67; border-color: rgba(185, 255, 102, 0.44); background: rgba(44, 119, 49, 0.28); }
.apk-site-bottom img { width: 42px; height: 42px; object-fit: cover; object-position: 50% 35%; border-radius: 10px; mix-blend-mode: screen; }
.apk-site-bottom span { overflow: hidden; max-width: 100%; font-size: 11px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }

/* /play uses the same exact background and card system. */
.luckyme-final-app .app-topbar { background: rgba(2, 35, 24, 0.84); }
.luckyme-final-app .apk-wordmark img { width: min(215px, 42vw); max-height: 58px; object-fit: contain; }
.luckyme-final-app .app-brand.apk-wordmark { min-width: 160px; }
.web-apk-home { gap: 18px; }
.web-apk-intro { display: grid; gap: 10px; padding: 6px 4px 0; }
.web-apk-intro h1 { font-size: clamp(34px, 6vw, 52px); line-height: .98; }
.web-apk-intro > p:last-child { max-width: 600px; color: #d4ded5; }
.web-apk-card { min-height: 235px; font: inherit; cursor: pointer; }
.web-apk-status {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(179,255,105,.24);
  border-radius: 16px;
  background: rgba(2, 44, 30, .70);
}
.web-apk-status > span:first-child { min-width: 0; display: grid; gap: 1px; }
.web-apk-status small { color: #9eb3a4; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.web-apk-status strong { color: #fff; font-size: 17px; }
.web-apk-status em { overflow: hidden; color: #a9b9ad; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.luckyme-final-app .bottom-nav .nav-item img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: 9px;
  mix-blend-mode: screen;
}
.luckyme-final-app .bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Activity mirrors the three-view Seeker APK ledger. */
.activity-page { max-width: 980px; }
.activity-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 4px 0;
}
.activity-head > div { display: grid; gap: 5px; }
.activity-head h2 { font-size: clamp(30px, 5vw, 42px); }
.activity-head p { font-size: 13px; }
.activity-wallet {
  min-width: 170px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(179, 255, 105, .27);
  border-radius: 13px;
  background: rgba(2, 44, 30, .68);
  text-align: right;
}
.activity-wallet small,
.activity-summary small { color: #91a69a; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.activity-wallet strong { overflow: hidden; max-width: 210px; color: #f3fff1; font: 800 12px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.activity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(179, 255, 105, .24);
  border-radius: 17px;
  background: rgba(2, 44, 30, .68);
  overflow: hidden;
}
.activity-summary > span { display: grid; place-items: center; gap: 2px; min-height: 68px; padding: 9px; text-align: center; }
.activity-summary > span + span { border-left: 1px solid rgba(179, 255, 105, .16); }
.activity-summary strong { color: #efffc8; font-size: 24px; line-height: 1; }
.activity-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(179, 255, 105, .22);
  border-radius: 16px;
  background: rgba(1, 34, 25, .72);
}
.activity-tabs button {
  min-height: 44px;
  border: 1px solid rgba(164, 235, 104, .18);
  border-radius: 11px;
  color: #bdd9bd;
  background: linear-gradient(145deg, rgba(16, 65, 39, .46), rgba(2, 37, 29, .66));
  font-weight: 850;
}
.activity-tabs button[aria-selected="true"] {
  color: #f4ffc9;
  border-color: rgba(192, 255, 105, .50);
  background: linear-gradient(135deg, rgba(70, 152, 48, .50), rgba(18, 88, 46, .42));
  box-shadow: inset 0 0 16px rgba(154, 255, 92, .08);
}
.activity-list { display: grid; gap: 9px; }
.activity-row {
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(163, 255, 111, .18);
  border-radius: 15px;
  color: #fff;
  background: rgba(1, 31, 22, .75);
  text-align: left;
}
button.activity-row:hover { border-color: rgba(192, 255, 105, .52); }
.activity-row > span:first-child { min-width: 0; display: grid; gap: 4px; }
.activity-row small { color: #b8c5bb; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.activity-row strong { color: #f6fff1; font-size: 15px; }
.activity-row em { color: #82968a; font-size: 10px; font-style: normal; }
.activity-row > b,
.activity-proof { flex: 0 0 auto; font-size: 11px; font-weight: 900; }
.activity-proof { color: #7bf8ff; }
.round-winners { color: #dae8dc; font-size: 12px; line-height: 1.45; }
.round-winners strong { color: #f6df74; font-size: inherit; }
.activity-result { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; }
.activity-result b { color: #c9d5cc; font-size: 12px; }
.activity-result.won b { color: #f6df74; }
.activity-result.refund b { color: #77f4bf; }
.activity-result a { color: #7bf8ff; font-size: 10px; font-weight: 850; }
.activity-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 26px;
  border: 1px solid rgba(163, 255, 111, .18);
  border-radius: 18px;
  background: rgba(1, 31, 22, .70);
  text-align: center;
}
.activity-empty img { width: 92px; height: 92px; object-fit: cover; border-radius: 20px; mix-blend-mode: screen; }
.activity-empty p { max-width: 420px; font-size: 12px; }
.activity-empty .primary-button,
.activity-empty .secondary-button { margin-top: 5px; }
.activity-safety {
  padding: 11px 13px;
  border: 1px solid rgba(180, 255, 106, .24);
  border-radius: 12px;
  color: #b9d7bc;
  background: rgba(2, 43, 29, .72);
  font-size: 10px;
  line-height: 1.4;
}

.wallet-screen-head {
  padding: 18px 20px;
  border: 1px solid rgba(185, 255, 109, .26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(16, 83, 43, .84), rgba(2, 35, 29, .90)),
    url("/assets/app-theme/home/luckyme-home-background-v2.png") center 34% / cover;
  box-shadow: inset 0 0 24px rgba(121, 238, 82, .05);
}
.wallet-screen-head .label { color: #b9e1b8; }
.wallet-screen > .panel { background: rgba(2, 43, 29, .82); }

/* Compact, pool-only web guide using the same hierarchy as the APK. */
.compact-how-head { align-items: end; }
.compact-how-head > div { display: grid; gap: 5px; }
.compact-how-head p { font-size: 12px; }
.how-mainnet-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(202, 255, 99, .38);
  border-radius: 999px;
  color: #dfffb2;
  background: rgba(44, 111, 36, .34);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.how-pool-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.how-pool-guide article {
  min-width: 0;
  min-height: 88px;
  display: grid;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(163, 255, 111, .20);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(16, 72, 42, .76), rgba(1, 31, 22, .88));
}
.how-pool-guide article::before { content: ""; width: 26px; height: 4px; border-radius: 999px; background: #67e8f9; box-shadow: 0 0 12px currentColor; }
.how-pool-guide .how-pool-normal::before { background: #c7ff68; }
.how-pool-guide .how-pool-high::before { background: #f6df74; }
.how-pool-guide .how-pool-premium::before { background: #c7a6ff; }
.how-pool-guide article > span { min-width: 0; display: grid; gap: 2px; }
.how-pool-guide strong { font-size: 17px; }
.how-pool-guide b { color: #efffc7; font-size: 13px; }
.how-pool-guide small { color: #879b8e; font-size: 9px; }
.compact-how-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.compact-how-steps li {
  min-width: 0;
  min-height: 102px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(163, 255, 111, .16);
  border-radius: 14px;
  background: rgba(1, 29, 20, .60);
}
.compact-how-steps li > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(202, 255, 99, .45); border-radius: 9px; color: #efffc5; background: rgba(74, 155, 50, .28); font-size: 11px; font-weight: 950; }
.compact-how-steps li > div { min-width: 0; display: grid; gap: 3px; }
.compact-how-steps strong { font-size: 13px; }
.compact-how-steps p { color: #8ea094; font-size: 10px; line-height: 1.35; }
.compact-how-note { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid rgba(255, 220, 103, .22); border-radius: 13px; background: rgba(57, 42, 8, .46); }
.compact-how-note strong { color: #fff1b5; font-size: 13px; }
.compact-how-note p { color: rgba(255, 244, 199, .70); font-size: 10px; line-height: 1.4; }

/* The live pool list uses each pool's approved APK artwork as its watermark. */
.luckyme-final-app .pool-card {
  min-height: 360px;
  justify-content: flex-end;
  background-position: center, calc(100% - 16px) 58px;
  background-size: 100% 100%, 84px 84px;
  background-repeat: no-repeat, no-repeat;
  background-color: rgba(2, 43, 28, .84);
}
.luckyme-final-app .pool-card:nth-child(4n+1) { background-image: linear-gradient(180deg, transparent 22%, rgba(2,34,25,.88) 62%), url("/assets/app-theme/pools/mini-watermark-v1.png"); }
.luckyme-final-app .pool-card:nth-child(4n+2) { background-image: linear-gradient(180deg, transparent 22%, rgba(2,34,25,.88) 62%), url("/assets/app-theme/pools/normal-watermark-v1.png"); }
.luckyme-final-app .pool-card:nth-child(4n+3) { background-image: linear-gradient(180deg, transparent 22%, rgba(2,34,25,.88) 62%), url("/assets/app-theme/pools/high-watermark-v1.png"); }
.luckyme-final-app .pool-card:nth-child(4n) { background-image: linear-gradient(180deg, transparent 22%, rgba(2,34,25,.88) 62%), url("/assets/app-theme/pools/premium-watermark-v1.png"); }

.review-panel {
  background-position: center, center 38px !important;
  background-size: 100% 100%, 165px 165px !important;
  background-repeat: no-repeat, no-repeat !important;
}
.review-pool-mini { background-image: linear-gradient(180deg, rgba(2,37,28,.30), rgba(2,37,28,.96) 250px), url("/assets/app-theme/pools/mini-watermark-v1.png") !important; }
.review-pool-normal { background-image: linear-gradient(180deg, rgba(2,37,28,.30), rgba(2,37,28,.96) 250px), url("/assets/app-theme/pools/normal-watermark-v1.png") !important; }
.review-pool-high { background-image: linear-gradient(180deg, rgba(2,37,28,.30), rgba(2,37,28,.96) 250px), url("/assets/app-theme/pools/high-watermark-v1.png") !important; }
.review-pool-premium { background-image: linear-gradient(180deg, rgba(2,37,28,.30), rgba(2,37,28,.96) 250px), url("/assets/app-theme/pools/premium-watermark-v1.png") !important; }
.purchase-confirmation { display: grid; gap: 4px; border-color: rgba(70, 247, 160, .46); background: rgba(2, 55, 35, .90); }
.purchase-confirmation strong { color: #efffc2; font-size: 16px; }
.purchase-confirmation span { color: #c5e8cb; font-size: 12px; }

/* Static public pages use the same visual shell as Home and /play. */
.static-page .shell { min-height: 100dvh; }
.static-page .static-content {
  position: relative;
  z-index: 1;
  padding-bottom: 132px;
}
.static-page .how-hero,
.static-page .legal-main {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(179,255,105,.22);
  border-radius: 22px;
  background: rgba(2, 43, 29, .72);
  box-shadow: inset 0 0 28px rgba(124,255,91,.035), 0 12px 34px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
}
.static-page .legal-main { margin-top: clamp(28px, 5vw, 56px); }
.static-page .legal-main h2 { color: #dfff9b; }
.static-page .legal-main p,
.static-page .legal-main li { color: rgba(239,249,240,.72); }
.static-page .step-card,
.static-page .panel,
.static-page .table-wrap,
.static-page .refund-explainer {
  border-color: rgba(179,255,105,.20);
  background: rgba(2, 43, 29, .70);
}
.static-page .step-num { color: #e3ff8d; background: rgba(87,153,39,.20); border-color: rgba(185,255,102,.38); }
.static-page .rules-table thead th,
.static-page .rules-table caption { color: #a8c6ae; }
.static-page .rules-table tbody td { color: rgba(239,249,240,.72); }
.static-page .static-footer { padding-bottom: 126px; }

/* Compact APK-style social hub for the public website. */
.web-social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.web-social-card {
  min-width: 0;
  min-height: 255px;
  display: grid;
  grid-template-rows: 145px auto auto auto;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(179,255,105,.26);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(155deg, rgba(20,83,47,.62), rgba(1,31,22,.82));
  box-shadow: inset 0 0 24px rgba(255,255,255,.02), 0 8px 22px rgba(0,0,0,.20);
  text-decoration: none;
}
.web-social-card:hover { border-color: #d4ff73; text-decoration: none; transform: translateY(-2px); }
.web-social-card img { width: 145px; height: 145px; justify-self: center; object-fit: cover; border-radius: 24px; mix-blend-mode: screen; }
.web-social-card strong { font-size: 20px; line-height: 1; }
.web-social-card small { color: rgba(255,255,255,.62); line-height: 1.3; }
.web-social-card span { color: #dfff9b; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.web-social-card.social-discord { border-color: rgba(175,145,255,.38); background: linear-gradient(155deg, rgba(61,43,98,.60), rgba(1,31,22,.82)); }
.web-social-card.social-discord span { color: #c8b5ff; }
.web-social-card.social-web { border-color: rgba(75,242,218,.34); }
.web-social-card.social-web span { color: #72f7e7; }
.web-social-card.social-support { border-color: rgba(255,220,95,.34); background: linear-gradient(155deg, rgba(92,67,17,.58), rgba(1,31,22,.82)); }
.web-social-card.social-support span { color: #ffe275; }
.social-safety { color: rgba(255,244,199,.78); background: rgba(48,38,9,.62); }

@media (min-width: 900px) {
  .luckyme-final-app .app-shell { max-width: 1050px; }
  .luckyme-final-app .web-apk-grid { max-width: 820px; }
  .luckyme-final-app .bottom-nav { grid-template-columns: 1fr; grid-template-rows: 92px repeat(5, 54px); }
  .luckyme-final-app .bottom-nav::before { background-image: url("/assets/app-theme/home/luckyme-wordmark-v2.png"); background-size: 205px auto; background-position: 8px center; }
  .luckyme-final-app .bottom-nav .nav-item img { width: 39px; height: 39px; }
}

@media (max-width: 560px) {
  .apk-site-topbar { min-height: 66px; padding: 10px 14px; }
  .apk-mainnet { display: none; }
  .apk-wallet-link { min-height: 36px; padding: 0 13px; }
  .apk-site-home { padding-top: 26px; gap: 18px; }
  .apk-site-intro h1 { font-size: 38px; }
  .apk-site-grid, .web-apk-grid { gap: 9px; }
  .apk-site-card, .web-apk-card { min-height: 205px; padding: 8px 7px 17px; border-radius: 20px; }
  .apk-site-card img, .web-apk-card img { width: 86%; height: 74%; top: 43%; }
  .apk-site-card strong, .web-apk-card strong { font-size: 19px; }
  .apk-site-card small, .web-apk-card small { display: none; }
  .apk-site-bottom { min-height: 70px; bottom: 7px; }
  .apk-site-bottom img { width: 36px; height: 36px; }
  .apk-site-bottom span { font-size: 9px; }
  .luckyme-final-app .apk-wordmark img { width: 156px; }
  .luckyme-final-app .app-topbar { min-width: 0; gap: 6px; }
  .luckyme-final-app .app-brand.apk-wordmark { min-width: 0; flex: 1 1 auto; }
  .luckyme-final-app .top-actions { min-width: 0; flex: 0 1 auto; gap: 5px; }
  .luckyme-final-app .top-actions .status-pill { max-width: 92px; padding: 5px 8px; font-size: 8px; letter-spacing: .03em; overflow: hidden; }
  .luckyme-final-app .wallet-pill { min-height: 34px; max-width: 78px; padding: 0 10px; font-size: 11px; }
  .web-apk-intro h1 { font-size: 34px; }
  .web-apk-card { min-height: 198px; }
  .web-apk-status em { max-width: 190px; }
  .static-page .static-content { padding-bottom: 112px; }
  .static-page .how-hero,
  .static-page .legal-main { padding: 20px 16px; border-radius: 18px; }
  .static-page .static-footer { padding-bottom: 104px; }
  .web-social-grid { gap: 9px; }
  .web-social-card { min-height: 215px; grid-template-rows: 116px auto auto auto; padding: 9px; border-radius: 17px; }
  .web-social-card img { width: 116px; height: 116px; border-radius: 20px; }
  .web-social-card strong { font-size: 17px; }
  .web-social-card small { font-size: 10px; }
}

/* bottom nav */

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: max(12px, env(safe-area-inset-left, 12px));
  right: max(12px, env(safe-area-inset-right, 12px));
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  max-width: 688px;
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 7px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 15, 23, 0.94);
  backdrop-filter: blur(22px);
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.45), 0 0 30px rgba(124, 58, 237, 0.08);
}

.nav-item {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: opacity 160ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item:active { transform: scale(0.97); }
.nav-item.active {
  color: var(--violet);
  background: rgba(153, 69, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(153, 69, 255, 0.24), 0 0 16px rgba(153, 69, 255, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover, .app-brand:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 18px rgba(0, 209, 255, 0.18));
  }

  .navlinks a:not(.button):hover, .footer a:hover {
    transform: translateY(-1px);
    color: #fff;
    text-shadow: 0 0 16px rgba(0, 209, 255, 0.36), 0 0 20px rgba(153, 69, 255, 0.2);
  }

  .button:not([disabled]):hover, .primary-button:not([disabled]):hover {
    transform: translateY(-2px);
    box-shadow: var(--solana-glow-strong);
  }

  .button.secondary:hover, .secondary-button:not([disabled]):hover, .icon-button:hover, .wallet-option:hover {
    transform: translateY(-2px);
    border-color: var(--hover-line);
    background: rgba(0, 209, 255, 0.08);
    box-shadow: var(--solana-glow);
  }

  .hero-panel:hover, .panel:hover, .pool-card:hover, .list-row:hover, .wallet-card:hover,
  .feature:hover, .mini-card:hover, .review-panel:hover, .step-card:hover {
    transform: translateY(-2px);
    border-color: var(--hover-line);
    box-shadow: var(--solana-glow);
  }

  .pool-card:hover, .mini-card:hover {
    box-shadow: var(--solana-glow-strong);
  }

  .chip:hover, .status-pill:hover, .pool-chip:hover, .fact:hover, .wallet-pill:hover, .step-num:hover {
    transform: translateY(-1px);
    border-color: var(--hover-line);
    background: rgba(0, 209, 255, 0.075);
    box-shadow: 0 10px 24px rgba(153, 69, 255, 0.16), 0 0 16px rgba(0, 209, 255, 0.16);
  }

  .nav-item:hover {
    transform: translateY(-1px);
    color: var(--cyan);
    background: rgba(0, 209, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 209, 255, 0.18), 0 0 18px rgba(153, 69, 255, 0.14);
  }

  .nav-item.active:hover {
    color: #fff;
    background: rgba(153, 69, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(0, 209, 255, 0.2), var(--solana-glow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button, .primary-button, .secondary-button, .icon-button,
  .hero-panel, .panel, .pool-card, .list-row, .wallet-card, .feature, .mini-card, .review-panel, .step-card,
  .chip, .status-pill, .pool-chip, .fact, .wallet-pill, .step-num, .wallet-option, .nav-item, .brand, .app-brand, .navlinks a, .footer a {
    transition: none;
  }

  .button:hover, .primary-button:hover, .secondary-button:hover, .icon-button:hover,
  .hero-panel:hover, .panel:hover, .pool-card:hover, .list-row:hover, .wallet-card:hover, .feature:hover, .mini-card:hover,
  .review-panel:hover, .step-card:hover, .chip:hover, .status-pill:hover, .pool-chip:hover, .fact:hover,
  .wallet-pill:hover, .step-num:hover, .wallet-option:hover, .nav-item:hover, .brand:hover, .app-brand:hover, .navlinks a:hover, .footer a:hover {
    transform: none;
  }

  .minimum-progress > span { transition: none; }
}

/* ---------------- /play/ desktop layout (full-width, sidebar nav) ---------------- */

@media (min-width: 800px) and (pointer: fine) {
  .app-body { --pad: clamp(28px, 3.5vw, 64px); }

  .app-shell,
  .luckyme-final-app .app-shell {
    max-width: none;
    margin: 0 0 0 250px;
    padding: 0 var(--pad) 64px;
  }

  .app-topbar {
    margin: 0 calc(var(--pad) * -1) 22px;
    padding: 14px var(--pad) 12px;
  }

  /* bottom nav becomes a fixed left sidebar */
  .bottom-nav {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 250px;
    height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 18px 14px;
    border: 0;
    border-right: 1px solid var(--line-strong);
    border-radius: 0;
    background: rgba(8, 12, 19, 0.96);
    box-shadow: 12px 0 44px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 92px repeat(6, 54px);
    align-items: stretch;
    gap: 8px;
  }

  .bottom-nav::before {
    content: "";
    display: block;
    background: url("/assets/brand/luckyme-mark-small.webp") no-repeat 16px center / 58px auto;
    border-bottom: 1px solid var(--line);
    margin: 0 2px 8px;
  }

  .nav-item {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 16px;
    font-size: 14.5px;
    font-weight: 750;
    border-radius: 13px;
  }
  .nav-item svg { width: 21px; height: 21px; }

  /* content uses the full page */
  .screen { gap: 18px; }

  .hero-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    padding: 34px 36px;
    gap: 24px;
  }
  .hero-copy { grid-column: 1; grid-row: 1; gap: 16px; }
  .hero-panel .hero-art { grid-column: 2; grid-row: 1; width: min(88%, 330px); }

  .pool-grid, #home-pools { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* keep long text readable */
  .review-panel, .screen > .list, .screen > .notice { max-width: 920px; }
}

@media (min-width: 1360px) {
  .pool-grid, #home-pools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wallet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 620px) {
  .pool-title > div {
    display: grid;
    grid-template-rows: minmax(38px, auto) auto;
    align-content: start;
  }
  @supports (grid-template-rows: subgrid) {
    .pool-card {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
    }
  }
}

@media (min-width: 1360px) {
  @supports not (grid-template-rows: subgrid) {
    .pool-title { min-height: 61px; }
    .minimum-target { min-height: 185px; }
    .facts-grid { min-height: 282px; }
  }
}

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .landing-hero { grid-template-columns: 1fr; text-align: left; }
  .landing-art { order: -1; }
  .landing-art img { width: min(72%, 340px); }
  .section-inner.two-col { grid-template-columns: 1fr; }
  .feature-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .pool-strip { grid-template-columns: 1fr 1fr; }
  .navlinks a:not(.button):not(.nav-how) { display: none; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { min-height: 0; }
  .luckyme-final-app .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .luckyme-final-app .fact { min-height: 52px; padding: 8px 9px; }
  .luckyme-final-app .pool-card {
    background-position: center, calc(100% - 12px) 58px;
    background-size: 100% 100%, 72px 72px;
  }
  .luckyme-final-app .pool-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(1,24,17,.02) 12%, rgba(1,28,20,.38) 29%, rgba(1,27,19,.94) 50%);
  }
  .luckyme-final-app .pool-card > * { position: relative; z-index: 1; }
  .how-grid, .how-screen .how-grid { grid-template-columns: 1fr; }
  .activity-head { align-items: stretch; flex-direction: column; }
  .activity-wallet { min-width: 0; text-align: left; }
  .activity-tabs { gap: 4px; padding: 5px; }
  .activity-tabs button { min-height: 40px; padding: 0 5px; font-size: 12px; }
  .activity-row { align-items: flex-start; }
  .activity-row.public-round { flex-direction: column; }
  .activity-row.public-round > .activity-proof,
  .activity-row.public-round > b { align-self: flex-end; }
  .activity-empty { min-height: 250px; }
  .how-pool-guide { gap: 7px; }
  .how-pool-guide article { min-height: 78px; padding: 10px 12px; }
  .how-pool-guide strong { font-size: 14px; }
  .how-pool-guide b { font-size: 11px; }
  .how-pool-guide small { font-size: 7.5px; }
  .compact-how-steps { grid-template-columns: 1fr; }
  .compact-how-steps li { min-height: 82px; }
  .how-cta { align-items: stretch; flex-direction: column; }
  .how-cta .button { width: 100%; }
}

/* ------------------------------------------------------------------
   Desktop-first web application fit — approved direction 2026-07-18
   Keeps every primary tab inside the browser viewport without page scroll.
------------------------------------------------------------------- */

.desktop-pool-summary { display: none; }
.screen[hidden] { display: none !important; }

.wallet-modal-connected {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(190, 255, 105, .32);
  border-radius: 16px;
  background: rgba(4, 57, 36, .72);
}
.wallet-modal-connected > div { min-width: 0; display: grid; gap: 4px; }
.wallet-modal-connected .mono { overflow: hidden; color: #cbe0ce; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-disconnect-button { min-width: 132px; }

@media (min-width: 800px) and (pointer: fine) {
  html, body.app-body { height: 100%; overflow: hidden; }

  .app-body { --desktop-sidebar: 218px; --desktop-pad: clamp(22px, 2.2vw, 42px); }

  .app-shell,
  .luckyme-final-app .app-shell {
    width: auto;
    height: 100dvh;
    min-height: 0;
    max-width: none;
    margin: 0 0 0 var(--desktop-sidebar);
    padding: 0 var(--desktop-pad) 14px;
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr);
    overflow: hidden;
  }

  .app-topbar {
    position: relative;
    min-height: 58px;
    margin: 0 calc(var(--desktop-pad) * -1);
    padding: 8px var(--desktop-pad);
    justify-content: flex-end;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  /* The sidebar owns the single desktop logo. */
  .app-topbar .app-brand { display: none; }

  .bottom-nav,
  .luckyme-final-app .bottom-nav {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: var(--desktop-sidebar);
    height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 15px 12px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 82px repeat(5, 52px);
    align-items: stretch;
    gap: 7px;
    transform: none;
    border: 0;
    border-right: 1px solid rgba(180, 255, 103, .18);
    border-radius: 0;
    background: rgba(1, 35, 26, .58);
    box-shadow: 10px 0 34px rgba(0, 0, 0, .22);
    backdrop-filter: blur(20px) saturate(1.06);
  }

  .bottom-nav::before,
  .luckyme-final-app .bottom-nav::before {
    content: "";
    display: block;
    margin: 0 2px 7px;
    border-bottom: 1px solid rgba(181, 255, 104, .16);
    background: url("/assets/app-theme/home/luckyme-wordmark-v2.png") center / 184px auto no-repeat;
  }

  .nav-item {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 0 13px;
    border-radius: 13px;
    font-size: 14px;
  }

  .luckyme-final-app .bottom-nav .nav-item img { width: 36px; height: 36px; }
  .nav-item:hover,
  .nav-item.active,
  .nav-item.active:hover {
    color: #f3ffc8 !important;
    border-color: rgba(196, 255, 104, .46) !important;
    background: rgba(69, 157, 56, .24) !important;
    box-shadow: inset 0 0 0 1px rgba(184, 255, 103, .18), 0 0 18px rgba(96, 226, 83, .14) !important;
  }

  .app-shell > main { min-width: 0; min-height: 0; padding-top: 10px; overflow: hidden; }
  .screen {
    width: 100%;
    height: 100%;
    min-height: 0;
    gap: 11px;
    align-content: start;
    overflow: hidden;
  }

  .screen-head { min-height: 52px; }
  .screen-head h2 { font-size: 30px; }

  /* Four APK-style entrances, 2 x 2, instead of long desktop columns. */
  .pool-screen { grid-template-rows: 48px 18px minmax(0, 1fr); }
  .pool-screen > .soft { font-size: 13px; line-height: 1.3; }
  #pool-list {
    width: min(100%, 1320px);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  #pool-list .pool-card {
    grid-row: auto !important;
    min-height: 0;
    height: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 11px 14px;
    cursor: pointer;
    background-position: center, calc(100% - 20px) 50%;
    background-size: 100% 100%, clamp(92px, 9vw, 138px) clamp(92px, 9vw, 138px);
  }
  #pool-list .pool-card:hover { transform: translateY(-2px); }
  #pool-list .pool-title { align-items: center; }
  #pool-list .pool-title > div { display: block; min-height: 0; }
  #pool-list .pool-title h3 { font-size: 20px; }
  #pool-list .entry { font-size: 29px; }
  #pool-list .pool-jackpot-fomo {
    position: absolute;
    top: 64px;
    right: clamp(112px, 10vw, 150px);
    z-index: 2;
    min-height: 29px;
    gap: 8px;
    padding: 5px 10px;
  }
  #pool-list .pool-jackpot-fomo span { font-size: 8px; }
  #pool-list .pool-jackpot-fomo strong { font-size: 12px; }
  #pool-list .minimum-target { gap: 5px; padding: 8px 11px; max-width: 74%; }
  #pool-list .minimum-target,
  #pool-list .minimum-target.warning {
    border-color: rgba(181, 255, 110, .27);
    background: rgba(1, 29, 21, .76);
    box-shadow: inset 0 0 22px rgba(104, 209, 75, .04);
  }
  #pool-list .minimum-target.warning .minimum-progress > span {
    background: linear-gradient(90deg, var(--purple), var(--cyan), var(--emerald));
  }
  #pool-list .minimum-clarification { display: none; }
  #pool-list .minimum-progress { height: 10px; }
  #pool-list .minimum-message { font-size: 11px !important; }
  #pool-list .facts-grid,
  #pool-list .pool-card-footer { display: none; }

  #pool-list .desktop-pool-summary {
    width: 72%;
    display: grid;
    grid-template-columns: .8fr .8fr 1.4fr;
    gap: 6px;
    margin-top: auto;
  }
  .desktop-pool-summary > span {
    min-width: 0;
    display: grid;
    gap: 1px;
    padding: 6px 8px;
    border: 1px solid rgba(180, 255, 104, .15);
    border-radius: 10px;
    background: rgba(1, 30, 22, .70);
  }
  .desktop-pool-summary small { color: #93ac9b; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .desktop-pool-summary strong { overflow: hidden; color: #f1ffc9; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

  /* Home, Activity, How To and Social remain inside the viewport. */
  .web-apk-home { grid-template-rows: minmax(112px, auto) minmax(0, 1fr); gap: 10px; }
  .web-apk-intro { width: min(100%, 1200px); margin: 0 auto; padding-top: 0; gap: 5px; }
  .web-apk-intro h1 { font-size: clamp(30px, 2.7vw, 43px); line-height: .96; }
  .web-apk-intro p:last-child { max-width: 760px; font-size: 14px; line-height: 1.35; }
  .web-apk-grid {
    width: min(100%, 1200px);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
  .web-apk-card { min-height: 0; height: 100%; padding-bottom: 13px; border-radius: 20px; }
  .web-apk-card img { width: min(62%, 176px); height: min(62%, 176px); top: 43%; }
  .web-apk-card strong { font-size: clamp(17px, 1.6vw, 23px); }
  .web-apk-card small { font-size: 10px; }
  .web-apk-status { display: none; }

  .activity-page { max-width: none; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
  .activity-head h2 { font-size: 34px; }
  .activity-summary > span { min-height: 56px; }
  .activity-tabs button { min-height: 38px; }
  .activity-list { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .activity-empty { min-height: 0; height: 100%; }
  .activity-row { min-height: 70px; padding: 9px 12px; }

  .how-screen { grid-template-rows: auto auto auto auto auto; }
  .how-pool-guide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how-pool-guide article { min-height: 72px; padding: 9px 12px; }
  .compact-how-steps li { min-height: 82px; padding: 8px 10px; }
  .compact-how-note { padding: 9px 12px; }

  .web-social-grid {
    height: min(100%, 620px);
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .web-social-card,
  .web-social-card.social-x,
  .web-social-card.social-discord,
  .web-social-card.social-web,
  .web-social-card.social-support {
    min-height: 0;
    grid-template-rows: minmax(88px, 1fr) auto auto auto;
    border-color: rgba(179, 255, 105, .26) !important;
    background: linear-gradient(155deg, rgba(20, 83, 47, .62), rgba(1, 31, 22, .82)) !important;
  }
  .web-social-card img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    border-radius: 0;
    mix-blend-mode: normal;
  }
  .web-social-card span,
  .web-social-card.social-discord span,
  .web-social-card.social-web span,
  .web-social-card.social-support span { color: #dfff9b; }
  .web-social-card:hover,
  .web-social-card.social-x:hover,
  .web-social-card.social-discord:hover,
  .web-social-card.social-web:hover,
  .web-social-card.social-support:hover {
    border-color: #d4ff73 !important;
    background: linear-gradient(155deg, rgba(36, 114, 57, .72), rgba(2, 43, 29, .88)) !important;
    box-shadow: 0 12px 30px rgba(76, 226, 88, .17), inset 0 0 26px rgba(180, 255, 105, .05) !important;
  }

  .wallet-screen { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
  .wallet-grid { min-height: 0; align-content: start; }
  .wallet-modal { max-height: min(760px, calc(100dvh - 44px)); }

  .screen[data-screen="review"] { grid-template-rows: auto minmax(0, 1fr); }
  .screen[data-screen="review"] .review-panel { min-height: 0; overflow: auto; scrollbar-width: thin; }
}

/* ------------------------------------------------------------------
   Desktop floating shell v7 — no solid top or side rails.
   Navigation and status controls float directly over the shared artwork.
------------------------------------------------------------------- */

@media (min-width: 800px) and (pointer: fine) {
  .luckyme-final-app .app-topbar,
  .app-topbar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .luckyme-final-app .bottom-nav,
  .bottom-nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .luckyme-final-app .bottom-nav::before,
  .bottom-nav::before {
    border: 0 !important;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .42));
  }

  .luckyme-final-app .bottom-nav .nav-item,
  .bottom-nav .nav-item,
  .luckyme-final-app .bottom-nav .nav-item:hover,
  .bottom-nav .nav-item:hover,
  .luckyme-final-app .bottom-nav .nav-item.active,
  .bottom-nav .nav-item.active,
  .luckyme-final-app .bottom-nav .nav-item.active:hover,
  .bottom-nav .nav-item.active:hover {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .luckyme-final-app .bottom-nav .nav-item:hover,
  .bottom-nav .nav-item:hover { transform: translateX(3px); }

  .luckyme-final-app .bottom-nav .nav-item:hover img,
  .bottom-nav .nav-item:hover img,
  .luckyme-final-app .bottom-nav .nav-item.active img,
  .bottom-nav .nav-item.active img {
    filter: drop-shadow(0 0 12px rgba(183, 255, 103, .55)) drop-shadow(0 6px 10px rgba(0, 0, 0, .42));
  }

  .luckyme-final-app .bottom-nav .nav-item.active,
  .bottom-nav .nav-item.active { color: #ffe77e !important; }
}
