  /* Dark theme: near-black purple page, deep purple cards, sea blue and teal accents */
  :root {
    color-scheme: dark;
    --ink: #0a6ea8; --ink-deep: #2e1065; --purple: #7c3aed; --gold: #2dd4bf; --action: #1590d0; --link: #67d6f7;
    --win: #22c55e; --red: #f87171; --bg: #0e0a1c; --card: #18132e; --input: #221b3d;
    --text: #ece9fb; --muted: #a39dc4; --line: #2e2752;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Barlow", "Segoe UI", Arial, sans-serif; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

  /* Header */
  header { background: linear-gradient(90deg, #4c1d95, #6d28d9 45%, #0a6ea8); color: #fff; position: sticky; top: 0; z-index: 10; }
  header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; line-height: 1.05; letter-spacing: .02em; } .logo img { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); } .logo b { display: block; font-size: 21px; } .logo b span { color: var(--gold); } .logo small { display: block; font-size: 10.5px; letter-spacing: .22em; color: #c4b5fd; }
  nav { display: flex; gap: 4px; flex: 1; }
  nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; opacity: .85; }
  nav a:hover, nav a.on { opacity: 1; background: rgba(255,255,255,.12); }
  nav a.on { color: var(--gold); }
  .signin { background: var(--gold); color: #134e4a; font-weight: 700; padding: 8px 18px; border-radius: 999px; }
  .burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; }

  /* Page heading and date filter */
  main { padding: 32px 0 56px; }
  h1 { font-size: 30px; margin: 0 0 16px; }
  .dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
  .chip { border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 8px 18px; border-radius: 999px; font-weight: 600; }
  .chip.on { background: linear-gradient(90deg, var(--purple), var(--ink)); border-color: transparent; color: #fff; }
  .dates input[type=date] { background: var(--input); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; }
  .showing { color: var(--muted); margin: 0 0 24px; }

  /* Match sections */
  section.tier { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 24px; overflow: hidden; }
  .tier-head { background: linear-gradient(90deg, #251a4a, #0d2a42); display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .tier-head h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; }
  .badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
  .badge.safe2, .badge.safe5 { background: var(--ink); color: #fff; }
.badge.odds10, .badge.odds20 { background: var(--purple); color: #fff; }
.badge.special { background: var(--win); color: #fff; }
/* SPECIAL FRIDAY SAFETY VVIP: its own box, in green */
section.tier.special { border: 2px solid var(--win); box-shadow: 0 6px 20px rgba(22,163,74,.12); }
section.tier.special .tier-head { background: linear-gradient(90deg, #0d3b25, #0d2a42); }
section.tier.special .tier-head h2 { color: #86efac; }
.badge.auto { background: #0c3550; color: #7dd3fc; }
/* A category inside a box (Safest 2+ / 5+, 10+ / 20+) */
.cat + .cat { border-top: 6px solid var(--bg); }
.cat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cat-head h3 { margin: 0 auto 0 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.cat-head a { color: var(--link); font-weight: 600; }
.cat-head .total { color: var(--muted); }
.cat-head .total b { color: var(--text); }
  .tier-head a { color: var(--link); font-weight: 600; }
  .empty { padding: 40px 20px; text-align: center; color: var(--muted); }
  .empty strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
  table { width: 100%; border-collapse: collapse; }
  th, td { padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--line); }
  th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  tr:last-child td { border-bottom: 0; }
  .res { font-weight: 700; }
  .res.won { color: var(--win); } .res.lost { color: var(--red); } .res.pending { color: var(--muted); }


  /* Footer */
  footer { background: linear-gradient(135deg, #2e1065, #083a5c); color: #ddd6fe; padding: 40px 0 20px; }
  .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  footer h3 { color: #fff; font-size: 15px; margin: 0 0 10px; }
  footer ul { list-style: none; margin: 0; padding: 0; }
  footer li { margin: 6px 0; }
  footer a:hover { color: var(--gold); }
  .social { display: flex; gap: 10px; }
  .social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
  .social svg { width: 18px; height: 18px; fill: currentColor; }
  .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 13px; text-align: center; }

  /* Recover ticket dialog */
  dialog { border: 0; border-radius: 14px; padding: 24px; width: min(420px, calc(100% - 32px)); }
  dialog::backdrop { background: rgba(46,16,101,.6); }
  dialog h2 { margin: 0 0 8px; }
  dialog input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin: 8px 0 16px; }
  .btn { background: var(--action); color: #fff; border: 0; padding: 10px 20px; border-radius: 8px; font-weight: 700; }
  .btn.ghost { background: none; color: var(--muted); }

  @media (max-width: 760px) {
    nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: linear-gradient(180deg, #4c1d95, #0a6ea8); flex-direction: column; padding: 8px 16px 16px; }
    nav.open { display: flex; }
    .burger { display: block; margin-left: auto; }
    .signin { order: 3; }
    .cols { grid-template-columns: 1fr 1fr; }
    th, td { padding: 10px 12px; }
    .hide-sm { display: none; }
  }

/* ===== Landing page ===== */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(circle at 20% 10%, rgba(139,92,246,.55), transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(10,110,168,.7), transparent 55%),
              linear-gradient(160deg, #2e1065, #3b0f80 45%, #083a5c); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16zM28 62v35M2 16 0 15M54 16l2-1' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 97px; }
.hero .wrap { position: relative; padding: 64px 16px 72px; }
.hero-mark { width: 148px; height: 148px; filter: drop-shadow(0 12px 32px rgba(45,212,191,.35)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } }
.hero h1 { font-size: clamp(30px, 6vw, 54px); line-height: 1.05; margin: 18px 0 6px; letter-spacing: .03em; }
.hero h1 span { color: var(--gold); }
.hero .sub { letter-spacing: .32em; font-weight: 700; color: #c4b5fd; font-size: 13px; margin: 0 0 18px; }
.hero p.lead { max-width: 560px; margin: 0 auto 28px; font-size: 18px; color: #e9e5ff; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta a { padding: 13px 26px; border-radius: 999px; font-weight: 700; }
.cta .main { background: var(--gold); color: #134e4a; box-shadow: 0 8px 24px rgba(45,212,191,.35); }
.cta .alt { border: 2px solid rgba(255,255,255,.5); }
.cta a:hover { transform: translateY(-1px); }

.section { padding: 56px 0; }
.section h2.title { text-align: center; font-size: 28px; margin: 0 0 6px; }
.section p.intro { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 520px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: relative; overflow: hidden; }
.hex { width: 52px; height: 58px; display: grid; place-items: center; color: #fff; margin-bottom: 14px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(135deg, #8b5cf6, #0a6ea8); }
.hex svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature.high .hex { background: linear-gradient(135deg, #2dd4bf, #6d28d9); }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; padding: 8px 12px; }
.step b { counter-increment: step; display: inline-grid; place-items: center; width: 44px; height: 50px; margin-bottom: 10px; color: #fff; font-size: 18px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(135deg, #7c3aed, #0a6ea8); }
.step b::before { content: counter(step); }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); }
.alt-bg { background: linear-gradient(180deg, #160f30, #0b1d31); }

.band { border-radius: 20px; padding: 36px 28px; display: flex; align-items: center; gap: 24px; color: #fff;
  background: linear-gradient(120deg, #4c1d95, #6d28d9 50%, #0a6ea8); }
.band img { width: 84px; height: 84px; flex-shrink: 0; }
.band h2 { margin: 0 0 4px; font-size: 24px; }
.band p { margin: 0; color: #e9e5ff; }
.band .cta { margin-left: auto; }

@media (max-width: 760px) {
  .features, .steps { grid-template-columns: 1fr; }
  .band { flex-direction: column; text-align: center; }
  .band .cta { margin: 0; }
  .hero-mark { width: 116px; height: 116px; }
}

.tier-head .open { color: var(--win); font-weight: 700; }
.locked { display: inline-block; padding: 0 6px; border-radius: 4px; background: #2b2350; color: transparent; text-shadow: 0 0 8px rgba(196,181,253,.6); }

/* Dark theme: elements browsers draw light by default */
dialog { background: var(--card); color: var(--text); border: 1px solid var(--line); }
dialog input { background: var(--input); color: var(--text); }
.feature { color: var(--text); }
a.btn, .btn { color: #fff; }

/* ===== Containers: gradient edges in the logo's colours, hexagon headers ===== */
:root {
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16zM28 62v35M2 16 0 15M54 16l2-1' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
  --edge-safe: linear-gradient(135deg, #8b5cf6, #0a6ea8 45%, #2dd4bf 70%, #8b5cf6);
  --edge-high: linear-gradient(135deg, #2dd4bf, #7c3aed 40%, #0a6ea8 70%, #2dd4bf);
  --edge-special: linear-gradient(135deg, #22c55e, #2dd4bf 40%, #0a6ea8 70%, #22c55e);
  --edge-soft: linear-gradient(135deg, rgba(139,92,246,.75), rgba(10,110,168,.55), rgba(45,212,191,.7));
}
section.tier {
  --edge: var(--edge-safe); --glow: rgba(124,58,237,.35);
  border: 2px solid transparent; border-radius: 22px; margin-bottom: 30px; overflow: hidden;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box;
  background-size: 100% 100%, 300% 300%;
  box-shadow: 0 18px 45px -22px var(--glow);
  animation: edge-flow 9s ease-in-out infinite alternate;
}
#box-high { --edge: var(--edge-high); --glow: rgba(45,212,191,.28); }
section.tier.special { --edge: var(--edge-special); --glow: rgba(34,197,94,.32); border-width: 2px; }
@keyframes edge-flow { from { background-position: 0 0, 0% 0%; } to { background-position: 0 0, 100% 100%; } }
@media (prefers-reduced-motion: reduce) { section.tier { animation: none; } }

/* Box header: hexagon icon, title, one-line subtitle, faint hex pattern */
section.tier .tier-head {
  position: relative; justify-content: flex-start; gap: 14px; padding: 18px 22px;
  background: radial-gradient(circle at 0 0, var(--glow), transparent 65%), linear-gradient(90deg, #1d1540, #0c2236);
  border-bottom: 1px solid var(--line);
}
section.tier .tier-head::after { content: ""; position: absolute; inset: 0; background-image: var(--hex); background-size: 42px 73px; opacity: .06; pointer-events: none; }
section.tier.special .tier-head { background: radial-gradient(circle at 0 0, var(--glow), transparent 65%), linear-gradient(90deg, #0c2e22, #0c2236); }
.tier-head h2 { font-size: 21px; letter-spacing: .01em; }
.tier-head .sub { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.hexicon { flex-shrink: 0; width: 46px; height: 52px; display: grid; place-items: center; color: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--edge); }
.hexicon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Category inside a box: coloured stripe on its left edge */
.cat { --cat: linear-gradient(180deg, #0a6ea8, #1590d0); position: relative; }
.cat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cat); }
#safe5 { --cat: linear-gradient(180deg, #0a6ea8, #2dd4bf); }
#odds10 { --cat: linear-gradient(180deg, #6d28d9, #8b5cf6); }
#odds20 { --cat: linear-gradient(180deg, #7c3aed, #2dd4bf); }
#special { --cat: linear-gradient(180deg, #22c55e, #2dd4bf); }
.cat + .cat { border-top: 1px solid var(--line); }
.cat-head { background: rgba(255,255,255,.015); padding: 14px 22px; }
.badge.safe2 { background: linear-gradient(135deg, #0a6ea8, #1590d0); }
.badge.safe5 { background: linear-gradient(135deg, #0a6ea8, #14b8a6); }
.badge.odds10 { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.badge.odds20 { background: linear-gradient(135deg, #7c3aed, #0d9488); }
.badge.special { background: linear-gradient(135deg, #16a34a, #0d9488); }
.cat-head .total { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(45,212,191,.35); background: rgba(45,212,191,.08); font-size: 13.5px; }
.cat-head .total b { color: var(--gold); }

/* Rows, odds and results */
section.tier tbody tr { transition: background .15s; }
section.tier tbody tr:hover { background: rgba(124,58,237,.09); }
section.tier th { background: rgba(255,255,255,.02); }
.odd { display: inline-block; min-width: 46px; text-align: center; padding: 3px 8px; border-radius: 8px; font-weight: 700;
  background: rgba(10,110,168,.18); color: #7dd3fc; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.won { background: rgba(34,197,94,.15); color: #4ade80; }
.pill.lost { background: rgba(248,113,113,.15); color: #fca5a5; }
.pill.pending { background: rgba(163,157,196,.12); color: var(--muted); }
.pill.void { background: rgba(163,157,196,.08); color: #8f89b3; text-decoration: line-through; }
.res .score { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-top: 3px; }

/* Empty category: a faint hexagon above the message */
section.tier .empty::before { content: ""; display: block; width: 34px; height: 38px; margin: 0 auto 12px; opacity: .45;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--cat, var(--edge)); }

/* Landing cards share the gradient edge */
.feature { border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-soft) border-box; border-radius: 18px; }
.feature:hover { box-shadow: 0 14px 40px -20px rgba(124,58,237,.55); }

@media (max-width: 760px) {
  section.tier { border-radius: 18px; }
  section.tier .tier-head { padding: 16px; }
  .hexicon { width: 40px; height: 46px; }
  .cat-head { padding: 12px 16px; }
}

/* Phones: kick-off and league go under the match name; a table still too wide scrolls inside its box */
.tablewrap { overflow-x: auto; }
.when-sm { display: none; }
@media (max-width: 760px) {
  .when-sm { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
  section.tier th, section.tier td { padding: 10px 8px; font-size: 14px; }
  section.tier td:first-child, section.tier th:first-child { padding-left: 14px; }
  .odd { min-width: 0; padding: 3px 6px; }
  .pill { padding: 3px 8px; font-size: 12px; }
}

/* Overview cards: each box is one tap target that opens its own page */
.back { display: inline-block; margin: 0 0 6px; color: var(--link); font-weight: 600; }
.back:hover { text-decoration: underline; }
section.tier.card { transition: transform .18s ease, box-shadow .18s ease; }
section.tier.card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -22px var(--glow); }
.boxlink { display: block; color: inherit; }
.boxlink:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 20px; }
.tier-head .go { margin-left: auto; font-size: 34px; line-height: 1; color: var(--muted); transition: transform .18s, color .18s; }
section.tier.card:hover .go { transform: translateX(4px); color: var(--gold); }
.sumrow { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 14px 22px; }
.sumrow + .sumrow { border-top: 1px solid var(--line); }
.sumname { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.facts { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); }
.facts b.gold { color: var(--gold); }
.facts .none { font-style: italic; }
.boxcta { display: block; padding: 12px 22px; border-top: 1px solid var(--line); font-weight: 700; color: var(--link); background: rgba(255,255,255,.02); }
section.tier.card:hover .boxcta { color: var(--gold); }
@media (max-width: 760px) { .sumrow { padding: 12px 16px; } .boxcta { padding: 12px 16px; } }
.back[hidden] { display: none; }

/* Category cards: each line opens its own page */
a.sumrow { color: inherit; transition: background .15s; }
a.sumrow:hover { background: rgba(124,58,237,.12); }
a.sumrow:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.go.sm { font-size: 24px; line-height: 1; color: var(--muted); margin-left: 4px; transition: transform .15s, color .15s; }
a.sumrow:hover .go.sm { transform: translateX(3px); color: var(--gold); }
a.boxcta:hover { color: var(--gold); }

/* Phones: header fits on one line; hero buttons stack full width */
.signin, .cta a { white-space: nowrap; }
@media (max-width: 760px) {
  header .wrap { gap: 12px; }
  .logo { gap: 8px; }
  .logo img { width: 34px; height: 34px; }
  .logo b { font-size: 17px; white-space: nowrap; }
  .logo small { font-size: 8.5px; letter-spacing: .16em; white-space: nowrap; }
  .signin { padding: 7px 14px; font-size: 14px; }
  .hero .wrap { padding: 44px 16px 52px; }
  .hero .cta { flex-direction: column; align-items: stretch; max-width: 340px; margin: 0 auto; }
  .hero .cta a { text-align: center; }
}
@media (max-width: 360px) { .logo small { display: none; } }

/* ===== Header account area ===== */
.auth { display: flex; align-items: center; gap: 8px; }
.login-link { font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); white-space: nowrap; }
.login-link:hover { background: rgba(255,255,255,.12); }
.hello { font-weight: 700; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.logout { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.logout:hover { background: rgba(255,255,255,.12); }
@media (max-width: 760px) {
  .auth { order: 3; gap: 6px; }
  .login-link { padding: 6px 11px; font-size: 14px; }
  .hello { max-width: 90px; font-size: 14px; }
  .logout { padding: 5px 10px; font-size: 13px; }
}
@media (max-width: 420px) { .logo small { display: none; } .logo b { font-size: 16px; } }

/* ===== Log in / Register ===== */
.authcard { max-width: 480px; margin: 36px auto 56px; padding: 28px; border-radius: 22px; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-safe) border-box; box-shadow: 0 20px 50px -24px rgba(124,58,237,.5); }
.authhead { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.authhead img { width: 54px; height: 54px; }
.authhead h1 { margin: 0; font-size: 26px; }
.authhead p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: var(--input); margin-bottom: 18px; }
.tab { border: 0; background: none; color: var(--muted); padding: 9px; border-radius: 999px; font-weight: 700; }
.tab.on { background: linear-gradient(90deg, var(--purple), var(--ink)); color: #fff; }
.field { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.field input, .field select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--input); color: var(--text); font: inherit; font-size: 15px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(45,212,191,.18); }
.phone, .pw { display: flex; margin-top: 6px; }
.phone input, .pw input { margin-top: 0; }
.dial { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: #2a2150; color: var(--text); font-weight: 700; min-width: 64px; }
.phone input { border-radius: 0 10px 10px 0; }
.pw input { border-radius: 10px 0 0 10px; }
.showpw { border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: #2a2150; color: var(--link); font-weight: 700; padding: 0 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two .field { margin-bottom: 4px; }
.hint { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--gold); flex-shrink: 0; }
.btn.big { width: 100%; padding: 13px; font-size: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--ink)); }
.btn.big:hover { filter: brightness(1.1); }
.authcard .note { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; text-align: center; }
.authcard .note.err { color: var(--red); } .authcard .note.ok { color: var(--win); }
.authfoot { text-align: center; margin: 16px 0 0; color: var(--muted); }
.authfoot a { color: var(--link); font-weight: 700; }
.authfoot.small { font-size: 13px; margin-top: 8px; }
@media (max-width: 520px) { .authcard { padding: 20px 16px; margin: 20px auto 40px; } .two { grid-template-columns: 1fr; gap: 0; } .two .field { margin-bottom: 14px; } }
/* Small phones: logo, menu, Log in and Register all fit on one header line */
@media (max-width: 420px) {
  header .wrap { gap: 8px; }
  .logo img { width: 32px; height: 32px; }
  .logo b { font-size: 14px; }
  .burger { font-size: 24px; }
  .login-link { padding: 5px 9px; font-size: 13px; }
  .auth .signin { padding: 6px 11px; font-size: 13px; }
}
@media (max-width: 340px) { .logo > span { display: none; } }

/* ===== My account / Terms ===== */
.authcard.wide { max-width: 760px; margin: 24px auto; }
.authcard.wide:first-child { margin-top: 36px; }
.cardtitle { margin: 0 0 6px; font-size: 20px; }
.muted { color: var(--muted); margin: 0 0 14px; }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.details div { background: var(--input); border-radius: 12px; padding: 12px 14px; }
.details dt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.details dd { margin: 2px 0 0; font-weight: 700; word-break: break-word; }
.inline { display: flex; gap: 10px; margin-top: 14px; }
.inline input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; text-transform: uppercase; }
.empty-line { color: var(--muted); font-style: italic; margin: 6px 0; }
.openlink { color: var(--link); font-weight: 700; white-space: nowrap; }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.linkbtn { background: none; border: 0; color: var(--link); font-weight: 700; padding: 0; }
a.hello { color: inherit; }
a.hello:hover { color: var(--gold); }
.check a, .terms a { color: var(--link); }
.terms h2 { font-size: 17px; margin: 22px 0 6px; }
.terms p { color: #d6d1f0; margin: 0 0 10px; }
@media (max-width: 520px) { .details { grid-template-columns: 1fr; } }
#tickets .badge { border-radius: 8px; display: inline-block; line-height: 1.35; }

/* ===== Bottom bar: Me, Virtual, Casino, A–Z Menu (every public page) ===== */
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px max(8px, calc((100% - 640px) / 2)) calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 11, 34, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid transparent; border-image: linear-gradient(90deg, #8b5cf6, #0a6ea8, #2dd4bf) 1; }
.bottombar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.bottombar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bottombar a:hover { color: var(--text); }
.bottombar a.on { color: var(--gold); background: rgba(45,212,191,.1); }
body.has-bottombar { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

/* Coming-soon pages */
.soon { text-align: center; padding: 40px 28px; }
.hexicon.big { width: 76px; height: 86px; margin: 0 auto 14px; display: grid; background: var(--edge-safe); }
.hexicon.big svg { width: 34px; height: 34px; }
.soon h1 { margin: 0 0 8px; }
.soon .lead { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.soonbtns { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 20px auto 0; }
.btn.ghostbtn { background: none; border: 1px solid var(--line); color: var(--text); padding: 12px; border-radius: 999px; text-align: center; }
.btn.big { display: block; text-align: center; }

/* A–Z menu */
.find { width: 100%; max-width: 520px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; margin-bottom: 12px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.letters a { min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 8px; background: var(--input); color: var(--link); font-weight: 700; }
.azgroup { margin-bottom: 18px; border-radius: 16px; overflow: hidden; border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-soft) border-box; scroll-margin-top: 80px; }
.azgroup h2 { margin: 0; padding: 8px 16px; font-size: 15px; color: var(--gold); background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.azitem { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: inherit; }
.azitem + .azitem { border-top: 1px solid var(--line); }
.azitem:hover { background: rgba(124,58,237,.1); }
.azitem b { display: block; }
.azitem small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
/* The header menu styles apply to every <nav>; the bottom bar is a nav too, so undo them here */
nav.bottombar { top: auto; flex: none; flex-direction: row; display: grid; }
/* Me tab: green dot and first name when logged in, "Log in" when not */
.bottombar a { position: relative; }
.bottombar a span { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottombar .dot { display: none; position: absolute; top: 5px; left: calc(50% + 7px); width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #100b22; }
.bottombar a.in .dot { display: block; }
.bottombar a.in { color: var(--text); }
.bottombar a.in.on { color: var(--gold); }

/* ===== Virtual page ===== */
.vpage { padding-top: 24px; }
.vhero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: 24px; margin-bottom: 34px;
  border: 2px solid transparent; background: linear-gradient(135deg, #1d1440, #0c2236) padding-box, var(--edge-high) border-box; box-shadow: 0 24px 60px -30px rgba(45,212,191,.45); }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--gold); margin-bottom: 10px; }
.vhero h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.08; margin: 0 0 12px; }
.vhero .lead { color: #d6d1f0; font-size: 17px; margin: 0 0 18px; }
.vbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.vbtns .btn.big { width: auto; padding: 12px 24px; }
.vbtns .ghostbtn { padding: 12px 22px; }
.tiny { color: var(--muted); font-size: 12.5px; }
.vhero .tiny { margin: 14px 0 0; }
.terminal { background: #07050f; border-radius: 16px; border: 1px solid #2e2752; overflow: hidden; box-shadow: 0 18px 40px -20px #000; }
.tbar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #151029; }
.tbar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .tbar i:nth-child(2) { background: #fbbf24; } .tbar i:nth-child(3) { background: #22c55e; }
.tbar span { margin-left: 8px; color: var(--muted); font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
.terminal pre { margin: 0; padding: 14px; min-height: 190px; color: #5eead4; font: 12.5px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.vsec { margin-bottom: 36px; scroll-margin-top: 80px; }
.vtitle { font-size: 24px; margin: 0 0 14px; }
.vgames { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.vgame { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 10px; border-radius: 16px; border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-soft) border-box; opacity: .7; }
.vgame.live { opacity: 1; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-special) border-box; }
.vgame svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vgame span { color: var(--muted); font-size: 12.5px; }
.vgame.live span { color: #4ade80; font-weight: 700; }
.vsteps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: v; }
.vsteps li { counter-increment: v; position: relative; padding: 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.vsteps li::before { content: counter(v); position: absolute; top: 12px; right: 14px; color: var(--muted); font-weight: 700; }
.vsteps svg { width: 30px; height: 30px; fill: none; stroke: var(--link); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; margin-bottom: 8px; }
.vsteps b { display: block; margin-bottom: 4px; }
.vsteps span { color: var(--muted); font-size: 14px; }
.vcard { padding: 20px; border-radius: 20px; border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-safe) border-box; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border: 2px dashed #3b3270; border-radius: 16px; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { background: rgba(45,212,191,.06); border-color: var(--gold); }
.drop svg { width: 38px; height: 38px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop span { color: var(--muted); font-size: 13px; }
.progress { position: relative; height: 34px; margin-top: 12px; border-radius: 999px; background: var(--input); overflow: hidden; }
.progress div { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--purple), var(--ink), var(--gold)); transition: width .2s; }
.progress span { position: relative; display: grid; place-items: center; height: 100%; font-size: 13px; font-weight: 700; }
.vcard .note { min-height: 1.3em; margin: 10px 0; font-weight: 600; }
.vcard .note.ok { color: var(--win); } .vcard .note.err { color: var(--red); }
.vtable { width: 100%; }
.vtable td { vertical-align: middle; }
.team-in, .odd-in, .vtable select { font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; }
.team-in { display: block; width: 100%; min-width: 120px; margin: 2px 0; }
.odd-in { width: 62px; text-align: center; }
.vtable select { max-width: 150px; }
.vrowbtns { display: flex; gap: 10px; margin: 12px 0; }
.vrowbtns .ghostbtn { padding: 8px 16px; }
.vresult { margin-top: 10px; }
.vstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vstats div { background: var(--input); border-radius: 12px; padding: 12px; }
.vstats span { display: block; color: var(--muted); font-size: 12.5px; }
.vstats b { font-size: 20px; }
.vstats b.gold { color: var(--gold); }
.vfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.vfacts div { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.vfacts b { display: block; margin-bottom: 4px; color: var(--gold); }
.vfacts span { color: #d6d1f0; font-size: 14px; }
@media (max-width: 860px) {
  .vhero { grid-template-columns: 1fr; padding: 22px 18px; }
  .vgames { grid-template-columns: repeat(3, 1fr); }
  .vsteps { grid-template-columns: 1fr 1fr; }
  .vstats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .vgames { grid-template-columns: 1fr 1fr; } .vsteps { grid-template-columns: 1fr; } .odd-in { width: 54px; } }

/* Virtual: credits and packages */
.balance { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: var(--input); }
.balance span { color: var(--muted); font-size: 13.5px; }
.balance b { font-size: 22px; color: var(--gold); }
.balance a { margin-left: auto; color: var(--link); font-weight: 700; }
.vpacks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.vpack { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 18px; border-radius: 20px; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-soft) border-box; }
.vpack.top { background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-high) border-box; box-shadow: 0 18px 40px -22px rgba(45,212,191,.5); }
.pname { font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.pcredits { color: var(--muted); } .pcredits span { font-size: 38px; font-weight: 700; color: var(--text); }
.pprice { font-size: 22px; font-weight: 700; margin-top: 2px; }
.vpack .btn.big { margin-top: 12px; }
.actfee { grid-column: 1 / -1; text-align: center; }
.paybox { margin-top: 14px; }

/* Local prices on the packages */
.pbase { color: var(--muted); font-size: 13px; margin-top: -2px; }
.payamount { display: flex; flex-direction: column; margin: 8px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--input); }
.payamount span { color: var(--muted); font-size: 12.5px; }
.payamount b { font-size: 26px; color: var(--gold); }
.payamount small { color: var(--muted); }
.actfee a { color: var(--link); font-weight: 700; }

/* Virtual hub and section pages */
.vpagetitle { margin: 0 0 18px; }
.vhub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.vhubcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; color: inherit; border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-soft) border-box; transition: transform .15s, box-shadow .15s; }
.vhubcard:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -22px rgba(124,58,237,.6); }
.vhubcard:hover .go.sm { color: var(--gold); transform: translateX(3px); }
.vhubcard .hexicon { width: 44px; height: 50px; background: var(--edge-safe); }
.vhubcard b { display: block; }
.vhubcard small { display: block; color: var(--muted); font-size: 13px; }
.vhubcard .go.sm { margin-left: auto; }
/* hidden must win over the hero's grid layout on the Virtual section pages */
.vpage [hidden] { display: none !important; }
/* Hub cards: a clear button on each */
.vhubcard { flex-wrap: wrap; }
.vhubtext { flex: 1; min-width: 150px; }
.vopen { flex-basis: 100%; margin-top: 4px; text-align: center; padding: 10px 14px; border-radius: 999px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--ink)); transition: filter .15s; }
.vhubcard:hover .vopen { filter: brightness(1.15); }

/* Slip reader locked until a package is bought */
.vcard.vlocked { text-align: center; padding: 30px 20px; }
.vnotice { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

/* Casino page */
.chero { grid-template-columns: 1fr; }
.cgames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cgame { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 14px 20px; border-radius: 20px; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-high) border-box; }
.cgame svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cgame b { font-size: 17px; }
.cgame > span:last-child { color: var(--muted); font-size: 13.5px; }
.cbadge { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(124,58,237,.25); color: #c4b5fd; }
@media (max-width: 860px) { .cgames { grid-template-columns: 1fr 1fr; } }

/* ===== Me page ===== */
.mepage { max-width: 760px; padding-top: 22px; }
.meprofile { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; margin-bottom: 14px; border: 2px solid transparent;
  background: radial-gradient(circle at 0 0, rgba(124,58,237,.45), transparent 60%), linear-gradient(120deg, #1d1440, #0c2236) padding-box, var(--edge-safe) border-box;
  box-shadow: 0 20px 50px -26px rgba(124,58,237,.6); }
.meavatar { flex-shrink: 0; width: 68px; height: 76px; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: #fff; letter-spacing: .02em;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--edge-safe); }
.mewho h1 { margin: 0; font-size: 23px; line-height: 1.15; word-break: break-word; }
.mewho p { margin: 4px 0 0; color: #c4bfe6; font-size: 14px; }
.mewelcome { margin-bottom: 18px; }
.mewelcome .lead { color: #d6d1f0; margin: 0 0 12px; }
.mestats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mestats a { display: block; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: inherit; }
.mestats a:hover { border-color: #4b3f8a; }
.mestats span { display: block; color: var(--muted); font-size: 12.5px; }
.mestats b { font-size: 26px; }
.mestats b.gold { color: var(--gold); }
.meactions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.meactions .btn.big, .meactions .ghostbtn { width: 100%; text-align: center; padding: 13px; }
.megroup { margin-bottom: 16px; border-radius: 18px; overflow: hidden; border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-soft) border-box; }
.megroup h2 { margin: 0; padding: 10px 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.merow { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: inherit; }
.merow + .merow { border-top: 1px solid var(--line); }
.merow:hover { background: rgba(124,58,237,.1); }
.merow:hover .go.sm { color: var(--gold); transform: translateX(3px); }
.meicon { flex-shrink: 0; width: 36px; height: 40px; display: grid; place-items: center; color: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(135deg, #6d28d9, #0a6ea8); }
.meicon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.merow:nth-child(3n) .meicon { background: linear-gradient(135deg, #0a6ea8, #14b8a6); }
.merow:nth-child(3n+1) .meicon { background: linear-gradient(135deg, #7c3aed, #0d9488); }
.melabel { flex: 1; font-weight: 600; }
.mevalue { color: var(--gold); font-weight: 700; }
.melogout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 4px 0 10px; padding: 12px; border-radius: 999px;
  border: 1px solid rgba(248,113,113,.4); background: rgba(248,113,113,.06); color: #fca5a5; font-weight: 700; }
.melogout .meicon { width: 26px; height: 28px; background: rgba(248,113,113,.25); }
.melogout .meicon svg { width: 14px; height: 14px; }
.melogout:hover { background: rgba(248,113,113,.14); }
.mesubtitle { margin: 4px 0 14px; }
.mesub { margin-top: 0 !important; }
.mepage [hidden] { display: none !important; }
@media (max-width: 420px) { .mestats b { font-size: 22px; } .meprofile { padding: 18px 16px; } .meavatar { width: 58px; height: 66px; font-size: 20px; } }

/* Five tabs: a little tighter on small phones */
@media (max-width: 380px) { .bottombar a { font-size: 11px; padding: 6px 2px; } .bottombar svg { width: 22px; height: 22px; } }

/* ===== AlkaCoin ===== */
.akc-i { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: .3em; }
.wcard { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 22px; margin-bottom: 14px; border: 2px solid transparent;
  background: radial-gradient(circle at 0 50%, rgba(45,212,191,.28), transparent 55%), linear-gradient(120deg, #1d1440, #0c2236) padding-box, var(--edge-high) border-box;
  box-shadow: 0 20px 50px -26px rgba(45,212,191,.55); }
.wcoin { width: 92px; height: 92px; flex-shrink: 0; filter: drop-shadow(0 10px 22px rgba(45,212,191,.35)); animation: coinspin 7s ease-in-out infinite; }
@keyframes coinspin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
@media (prefers-reduced-motion: reduce) { .wcoin { animation: none; } }
.wbal { font-size: 34px; font-weight: 700; line-height: 1.1; }
.wlocal { color: #c4bfe6; font-size: 14px; margin-top: 4px; }
.wabout { margin: 0 0 18px; font-size: 14px; }
.wbuy { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 14px 16px; }
.wopt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--input); color: var(--text); }
.wopt .akc-i { width: 30px; height: 30px; margin: 0 0 4px; }
.wopt span { color: var(--muted); font-size: 13px; }
.wopt:hover, .wopt.on { border-color: var(--gold); background: rgba(45,212,191,.08); }
.wpay { padding: 0 16px 16px; }
td.plus { color: #4ade80; } td.minus { color: #fca5a5; }
.akcstat b { display: flex; align-items: center; }
.akcprice { display: flex; align-items: center; justify-content: center; }
.akcprice .akc-i { width: 26px; height: 26px; }
.wallettag { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--input); }
.wallettag a { margin-left: auto; color: var(--link); font-weight: 700; }
.buyakc { display: inline-flex; align-items: center; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; color: #134e4a;
  background: linear-gradient(90deg, #5eead4, #2dd4bf); box-shadow: 0 6px 16px -8px rgba(45,212,191,.7); }
.buyakc:hover { filter: brightness(1.08); }
.buyakc:disabled { opacity: .6; }
@media (max-width: 560px) { .wbuy { grid-template-columns: repeat(3, 1fr); } .wcard { padding: 18px 16px; } .wcoin { width: 72px; height: 72px; } .wbal { font-size: 28px; } }

/* ===== Balances: header (every page) and the Me profile card ===== */
.hbal { display: inline-flex; align-items: center; gap: 2px; padding: 5px 12px 5px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(8, 5, 20, .35); border: 1px solid rgba(94, 234, 212, .45); font-weight: 700; }
.hbal .akc-i { width: 20px; height: 20px; margin-right: 4px; }
.hbal:hover { border-color: var(--gold); }
.hbuy { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: #134e4a; font-weight: 700; white-space: nowrap; }
.hbuy span { font-size: 18px; line-height: 1; }
.hbuy i { font-style: normal; }
.hbuy:hover { filter: brightness(1.08); }
@media (max-width: 760px) {
  .auth .hello { display: none; }                      /* the bottom bar's Me tab shows the name */
  .hbal { padding: 4px 10px 4px 6px; font-size: 14px; }
  .hbuy { padding: 5px 11px; font-size: 14px; }
}
@media (max-width: 420px) {
  .hbal .akc-i { width: 18px; height: 18px; }
  .hbuy { width: 30px; height: 30px; padding: 0; justify-content: center; }
  .hbuy i { display: none; }                           /* just "+" on small phones */
}
.meprofile { flex-wrap: wrap; }
.mebal { flex-basis: 100%; display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 12px 14px; border-radius: 16px; background: rgba(8, 5, 20, .35); border: 1px solid rgba(94, 234, 212, .3); }
.mebal-amt { display: flex; align-items: center; gap: 10px; color: inherit; flex: 1; min-width: 0; }
.mebal-amt .akc-i { width: 40px; height: 40px; margin: 0; }
.mebal-amt small { display: block; color: #c4bfe6; font-size: 12px; }
.mebal-amt b { display: block; font-size: 24px; line-height: 1.1; color: var(--gold); }
.mebal-amt em { display: block; font-style: normal; color: #c4bfe6; font-size: 13px; }
.mebal-buy { white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: var(--gold); color: #134e4a; font-weight: 700; }
.mepage [hidden] { display: none !important; }

/* ===== Deposit page ===== */
.depcard { padding: 22px; border-radius: 22px; margin-bottom: 18px; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-high) border-box; box-shadow: 0 20px 50px -26px rgba(45,212,191,.45); }
.depbal { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--input); margin-bottom: 16px; color: var(--muted); }
.depbal b { margin-left: auto; color: var(--gold); font-size: 17px; }
.deplabel { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.depamt { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: var(--input); border: 2px solid var(--line); }
.depamt:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(45,212,191,.15); }
.depamt .akc-i { width: 30px; height: 30px; margin: 0; }
.depamt input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 30px; font-weight: 700; outline: none; }
.depamt span { color: var(--muted); font-weight: 700; font-size: 18px; }
.depchips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 12px; }
.depchips button { padding: 9px 0; border-radius: 999px; border: 1px solid var(--line); background: var(--input); color: var(--text); font-weight: 700; }
.depchips button.on, .depchips button:hover { border-color: var(--gold); color: var(--gold); }
.deppay { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(120deg, rgba(124,58,237,.18), rgba(45,212,191,.12)); border: 1px solid rgba(94,234,212,.3); }
.deppay span { color: #c4bfe6; font-size: 13px; }
.deppay b { font-size: 30px; color: var(--gold); line-height: 1.15; }
.deppay small { color: #c4bfe6; }
.tabs.three { grid-template-columns: repeat(3, 1fr); }
.tabs.three .tab { font-size: 13.5px; padding: 9px 4px; }
.dephow { padding: 12px 14px; border-radius: 12px; background: var(--input); margin: 0 0 16px; }
.dephow b span { color: var(--gold); }
.dephow p { margin: 6px 0 0; color: #d6d1f0; font-size: 14px; }
.depcard .note { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; text-align: center; }
.depcard .note.err { color: var(--red); } .depcard .note.ok { color: var(--win); }
@media (max-width: 420px) { .depcard { padding: 18px 14px; } .depamt input { font-size: 26px; } .deppay b { font-size: 26px; } }

/* Deposit: crypto */
.tabs.four { grid-template-columns: repeat(4, 1fr); }
.tabs.four .tab { font-size: 13px; padding: 9px 2px; }
.depcrypto { margin: 0 0 16px; }
.coins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.coin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--input); color: var(--text); }
.coin small { color: var(--muted); font-size: 11.5px; }
.coin.on, .coin:hover { border-color: var(--gold); background: rgba(45,212,191,.08); }
.coin span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.cbadge-usdt { background: #26a17b; } .cbadge-usdc { background: #2775ca; } .cbadge-btc { background: #f7931a; }
.cbadge-sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.dephow.crypto b span { color: var(--gold); }
.cnet { margin: 10px 0 6px; color: #d6d1f0; font-size: 14px; }
.caddr { display: flex; gap: 8px; align-items: stretch; }
.caddr code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; background: #07050f; border: 1px solid #2e2752; color: #5eead4; font: 13px/1.4 ui-monospace, Consolas, monospace; word-break: break-all; }
.btn.copy { padding: 0 16px; border-radius: 10px; }
.cwarn { margin: 8px 0 0; color: #fcd34d; font-size: 13px; }
@media (max-width: 420px) { .tabs.four .tab { font-size: 12px; } .coin span { width: 34px; height: 34px; font-size: 10px; } }

/* Withdraw page */
.wfields { margin-bottom: 4px; }
.depchips:has(button:nth-child(5)) { grid-template-columns: repeat(5, 1fr); }

/* SportyBet code bar on a category */
.sbcode { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(45,212,191,.1), rgba(124,58,237,.08)); }
.sbc-l { color: var(--muted); font-size: 13px; font-weight: 600; }
.sbc-v { font-family: ui-monospace, Consolas, monospace; font-size: 20px; letter-spacing: .12em; color: var(--gold); }
.sbc-copy { margin-right: 10px; padding: 6px 16px; border-radius: 999px; border: 0; background: var(--gold); color: #134e4a; font-weight: 700; }
.sbc-copy.done { background: var(--win); color: #fff; }
.sbcode.locked-code .sbc-v { color: var(--muted); letter-spacing: .2em; }
@media (max-width: 760px) { .sbcode { padding: 10px 16px; } .sbc-v { font-size: 18px; } }

/* Casino game pages */
.cghero { grid-template-columns: 1fr auto; }
.cgicon { width: 110px; height: 124px; }
.cgicon svg { width: 52px; height: 52px; }
.cgame.live { color: inherit; }
.cgame.live:hover { box-shadow: 0 16px 36px -20px rgba(45,212,191,.6); }
.cbadge.on { background: rgba(45,212,191,.2); color: #5eead4; }
.cgame .vopen { margin-top: 10px; flex-basis: auto; width: 100%; }
.cgrad { display: flex; align-items: center; gap: 8px; }
.cgrad input[type=radio] { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
tr.cgpick { background: rgba(45,212,191,.07); }
.cgfacts { margin-top: 14px; }
@media (max-width: 760px) { .cghero { grid-template-columns: 1fr; } .cgicon { display: none; } }
.cgame > .vopen { color: #fff; }
@media (max-width: 760px) { #opts .team-in { min-width: 90px; } }

/* Casino calculators */
.calcgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; margin-bottom: 6px; }

.coins.gws { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.coins.gws .coin { padding: 14px 6px; }
.depform-hide { display: none; }

/* ---- Community: players' predictions and winning tickets ---- */
.vhero.chero { grid-template-columns: 1fr; }
.cpage textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; resize: vertical; }
.cgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .cgrid2 { grid-template-columns: 1fr; } }
.cpickrow { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 0; margin: 0 0 12px; }
.cpickrow legend { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-weight: 700; color: var(--gold); }
.cdel { border: 0; background: none; color: var(--red); font-size: 13px; font-weight: 600; cursor: pointer; }
.cdel[hidden] { display: none; }
.ctotal { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--input); margin-bottom: 14px; color: var(--muted); font-weight: 600; }
.ctotal b { color: var(--gold); font-size: 22px; }
.cfeed { display: grid; gap: 12px; }
.cslip { padding: 14px 16px; border-radius: 18px; border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-high) border-box; }
.cslip-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.cslip-head b { font-size: 16.5px; margin-right: auto; }
.cslip-head > span:not([class]) { color: var(--muted); font-size: 13px; }
.cslip ul { list-style: none; margin: 0; padding: 0; }
.cslip li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.cslip li small { display: block; color: var(--muted); font-size: 12.5px; }
.cpick { font-weight: 700; color: #c4b5fd; text-align: right; }
.codds { min-width: 48px; text-align: center; padding: 4px 8px; border-radius: 8px; background: rgba(45,212,191,.12); color: var(--gold); font-weight: 700; }
.cslip-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.cslip-foot b { color: var(--text); }
.ccode { display: inline-flex; align-items: center; gap: 8px; }
.ccode b { font-family: ui-monospace, monospace; letter-spacing: .08em; color: var(--gold) !important; }
.ccode button { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; }
.cnote { margin: 10px 0 0; color: #d6d1f0; font-style: italic; }
.cwhy { margin: 10px 0 0; color: var(--red); font-size: 14px; }
.cres { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(163,157,196,.15); color: var(--muted); }
.cres.won { background: rgba(34,197,94,.18); color: #4ade80; } .cres.lost { background: rgba(239,68,68,.15); color: #f87171; }
.cstat { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.cstat.wait { background: rgba(251,191,36,.15); color: #fcd34d; } .cstat.live { background: rgba(34,197,94,.18); color: #4ade80; } .cstat.no { background: rgba(239,68,68,.15); color: #f87171; }
.cwins { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
#myWins.cfeed { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cwin { border-radius: 18px; overflow: hidden; border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-special) border-box; display: flex; flex-direction: column; }
.cwin img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #07050f; }
.cwin-wait { aspect-ratio: 3 / 4; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); background: #07050f; font-size: 14px; }
.cwin-body { padding: 12px 14px 14px; }
.cwin-nums { display: flex; gap: 14px; color: var(--muted); font-size: 14px; }
.cwin-nums b { color: var(--gold); }
.cpreview { display: block; max-width: 100%; max-height: 420px; margin: 14px auto 0; border-radius: 12px; border: 1px solid var(--line); }
.cpage .vcard { max-width: 720px; }
.cfeed > *, .cwins > * { min-width: 0; }
.cslip li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cpick { max-width: 38vw; overflow-wrap: anywhere; }
@media (max-width: 520px) { .cslip { padding: 12px; } .cslip li { gap: 8px; } }
.cwin-wait { aspect-ratio: auto; padding: 26px 16px; }
.csbload { display: flex; flex-direction: column; gap: 6px; padding: 14px; margin-bottom: 16px; border-radius: 14px; border: 1px dashed var(--gold); background: rgba(45,212,191,.06); }
.csbload .tiny { margin: 0; color: var(--muted); font-size: 13px; }
.csbrow { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; margin-top: 4px; }
.csbrow select, .csbrow input { min-width: 0; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; }
.csbrow input { text-transform: uppercase; }
.csbrow .btn { padding: 10px 18px; border-radius: 10px; }
.csbload .note { margin: 4px 0 0; min-height: 0; }
@media (max-width: 420px) { .csbrow { grid-template-columns: 1fr 1fr; } .csbrow input { grid-column: 1 / -1; grid-row: 1; } }

/* ---- Support chat ---- */
.chatpage { padding-top: 18px; }
.chatbox { display: flex; flex-direction: column; max-width: 760px; height: calc(100dvh - 210px); min-height: 420px; border-radius: 20px; overflow: hidden;
  border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-high) border-box; }
.chathead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(90deg, rgba(124,58,237,.35), rgba(13,148,136,.25)); border-bottom: 1px solid var(--line); }
.chathead b { display: block; } .chathead small { color: var(--muted); font-size: 12.5px; }
.chatav { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #07050f; }
.chatav img { width: 28px; height: 28px; }
.chatav::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid var(--card); }
.chatlog { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.chatgate { flex: 1; padding: 22px 18px; }
.chatgate p { color: var(--muted); margin-top: 0; }
.chatday { align-self: center; margin: 8px 0 4px; padding: 3px 12px; border-radius: 999px; background: var(--input); color: var(--muted); font-size: 12px; font-weight: 600; }
.msg { max-width: 82%; padding: 9px 12px 6px; border-radius: 16px; overflow-wrap: anywhere; }
.msg p { margin: 0; line-height: 1.4; }
.msg time { display: block; margin-top: 3px; font-size: 11px; color: rgba(255,255,255,.6); text-align: right; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--purple), #4c1d95); border-bottom-right-radius: 5px; }
.msg.them { align-self: flex-start; background: #1f2a44; border: 1px solid #2c3a5c; border-bottom-left-radius: 5px; }
.msg.them time { text-align: left; color: var(--muted); }
.chatwelcome { margin: auto 0 0; padding: 14px; border-radius: 16px; background: var(--input); }
.chatwelcome p { margin: 0 0 10px; color: #d6d1f0; }
.chatchips { display: flex; flex-wrap: wrap; gap: 8px; }
.chatchips button { border: 1px solid var(--gold); background: none; color: var(--gold); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chatform { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.chatform textarea { flex: 1; resize: none; max-height: 140px; padding: 11px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; line-height: 1.35; }
.chatform textarea:focus { outline: none; border-color: var(--gold); }
.chatsend { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: linear-gradient(135deg, var(--purple), var(--ink)); }
.chatsend svg { width: 20px; height: 20px; fill: #fff; }
.chatsend:disabled { opacity: .5; }
.chatform[hidden], .chatlog[hidden], .chatgate[hidden] { display: none; }
.chatnote { margin: 0; padding: 0 14px; min-height: 0; }
.chatnote:empty { display: none; }
.chatnote.err { color: var(--red); padding: 6px 14px 10px; }

.bottombar a.reply::before { content: ""; position: absolute; top: 6px; left: calc(50% + 6px); width: 9px; height: 9px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 2px var(--bg, #0e0a1c); }
.bottombar a { position: relative; }
.mebadge { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f43f5e; color: #fff; }

/* ---- Telegram channel ---- */
.tgstrip { padding: 26px 0 30px; }
.tgcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; color: inherit; text-decoration: none;
  background: linear-gradient(120deg, #1b84c9, #229ed9 45%, #2dd4bf); box-shadow: 0 18px 40px -24px rgba(34,158,217,.8); transition: transform .15s, filter .15s; }
.tgcard:hover { transform: translateY(-2px); filter: brightness(1.06); }
.tgicon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.tgicon svg { width: 26px; height: 26px; fill: #229ed9; }
.tgtext { flex: 1; min-width: 0; color: #fff; }
.tgtext b { display: block; font-size: 17px; }
.tgtext small { display: block; opacity: .9; font-size: 13.5px; }
.tgjoin { flex: none; padding: 9px 20px; border-radius: 999px; background: #fff; color: #1683c4; font-weight: 700; }
@media (max-width: 480px) { .tgtext small { display: none; } .tgjoin { padding: 8px 14px; } }
.meicon svg path[d^="M21 4 2.5"] { fill: currentColor; stroke: none; }
.social { flex-wrap: wrap; }

/* ---- Free games ---- */
.freecta { padding-bottom: 0; }
.freebtn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; color: #fff; text-decoration: none;
  border: 2px solid transparent; background: linear-gradient(120deg, #6d28d9, #0a6ea8 55%, #0d9488) padding-box, var(--edge-high) border-box;
  background-size: 100% 100%, 300% 300%; animation: edge-flow 9s ease-in-out infinite alternate;
  box-shadow: 0 20px 44px -22px rgba(45,212,191,.7); transition: transform .15s, filter .15s; }
.freebtn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.freegift { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(45,212,191,.5); }
.freetext { flex: 1; min-width: 0; }
.freetext b { display: block; font-size: clamp(17px, 2.6vw, 22px); line-height: 1.15; }
.freetext small { display: block; color: #d6d1f0; font-size: 14px; margin-top: 3px; }
.freebtn .go { color: var(--gold); font-size: 30px; }
.badge.free_long { background: linear-gradient(135deg, #7c3aed, #0a6ea8); color: #fff; }
.badge.free, .badge.free1, .badge.free2, .badge.free3, .badge.free4, .badge.free5, .badge.free6 { background: linear-gradient(135deg, #0a6ea8, #14b8a6); color: #fff; }
.tier.free .hexicon { background: linear-gradient(135deg, #8b5cf6, #0a6ea8 55%, #2dd4bf); }
.freenote { color: var(--muted); font-size: 14px; margin: -4px 0 14px; }
section.tier.free { --edge: linear-gradient(135deg, #2dd4bf, #8b5cf6 35%, #0a6ea8 65%, #2dd4bf); --glow: rgba(45,212,191,.32); border-width: 2px; }
section.tier.free .tier-head { background: radial-gradient(circle at 0 0, rgba(124,58,237,.45), transparent 65%), linear-gradient(90deg, #2a1660, #0b3a52 60%, #0c3b3a); }
section.tier.free .tier-head h2 { color: #fff; }
section.tier.free .tier-head h2 span { filter: drop-shadow(0 0 6px rgba(45,212,191,.6)); }
.cta a.main.vipcta { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: .02em; white-space: normal; text-align: center; line-height: 1.25; font-size: clamp(14px, 3.9vw, 17px); max-width: 100%; box-sizing: border-box; }

/* ---- Players' ranking ---- */
.rankbox { margin: 0 0 22px; padding: 16px; border-radius: 20px; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-safe) border-box; }
.rankbox h2 { margin: 0 0 2px; font-size: 20px; }
.rankbox .tiny { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.ranktable { width: 100%; }
.ranktable td, .ranktable th { text-align: left; }
.ranktable .rk { font-size: 18px; font-weight: 700; color: var(--gold); width: 54px; }
.ranktable tr.top b { color: #fff; }
.ranktable .pill { min-width: 30px; text-align: center; display: inline-block; }
.crank { margin-left: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(45,212,191,.14); color: var(--gold); white-space: nowrap; }
.cgift { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(124,58,237,.35), rgba(45,212,191,.3)); color: #fff; }

/* ---- Slots ---- */
.slotbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.slotbar b { color: var(--gold); }
.slotpage .note { min-height: 0; margin: 0 0 12px; font-weight: 600; } .slotpage .note.ok { color: var(--win); } .slotpage .note.err { color: var(--red); }
.slotpage .note:empty { display: none; }
.slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.slot { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-safe) border-box; transition: transform .15s; min-width: 0; }
.slot:not(.sold):hover { transform: translateY(-2px); }
.slot.sold { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #3b3270, #2a2450) border-box; }
.slotimg { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a1660, #0b3a52); display: grid; place-items: center; }
.slotimg img { width: 100%; height: 100%; object-fit: cover; }
.slotimg img.ph { width: 64px; height: 64px; object-fit: contain; opacity: .8; }
.slot.sold .slotimg img { filter: grayscale(.85) brightness(.6); }
.slotlabel { position: absolute; top: 10px; left: 10px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.slotlabel.a { background: #16a34a; color: #fff; }
.slotlabel.s { background: #e11d48; color: #fff; transform: rotate(-4deg); box-shadow: 0 6px 16px -6px rgba(225,29,72,.8); }
.slotbody { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.slotbody h2 { margin: 0 0 4px; font-size: 18px; overflow-wrap: anywhere; }
.slotwhen { margin: 0 0 6px; color: var(--gold); font-size: 13.5px; font-weight: 600; }
.slotdesc { margin: 0 0 10px; color: #d6d1f0; font-size: 14px; overflow-wrap: anywhere; }
.slotfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.slotprice b { display: block; font-size: 18px; color: #fff; } .slotprice small { color: var(--muted); font-size: 12.5px; }
.slotbtn { padding: 10px 18px; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--ink)); white-space: nowrap; }
.slotbtn:disabled { background: #2a2450; color: var(--muted); cursor: not-allowed; }
.slot.sold h2, .slot.sold .slotprice b { color: var(--muted); }
.slotimg { overflow: hidden; } .slotimg img:not(.ph) { position: absolute; inset: 0; }

.guestform { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.guestform h3 { margin: 0 0 4px; } .guestform > p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.guestform textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; resize: vertical; }
.guestform .note { min-height: 0; margin: 0 0 10px; font-weight: 600; } .guestform .note.ok { color: var(--win); } .guestform .note.err { color: var(--red); }
.chatgate { overflow-y: auto; }

/* ---- Pricing ---- */
.pricegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pricecard { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; color: inherit; text-decoration: none; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-safe) border-box; transition: transform .15s; }
.pricecard:hover { transform: translateY(-2px); }
.pricecard.special { background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-special) border-box; }
.pricecard.free { background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge-high) border-box; }
.pricecard b { font-size: 15.5px; }
.pricecard .pp { font-size: 26px; font-weight: 700; color: var(--gold); }
.pricecard .pp.off { font-size: 17px; color: var(--muted); }
.pricecard small { color: var(--muted); font-size: 13px; }
.codds.r-won { background: rgba(34,197,94,.2); color: #4ade80; } .codds.r-won::after { content: " ✓"; }
.codds.r-lost { background: rgba(239,68,68,.18); color: #f87171; text-decoration: line-through; }
.codds.r-void { background: rgba(163,157,196,.15); color: var(--muted); }

.paybox { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #07050f; border: 1px solid var(--line); }
.payrow { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.payrow + .payrow { border-top: 1px solid var(--line); }
.payrow span { color: var(--muted); font-size: 13px; min-width: 110px; }
.payrow b { flex: 1; color: #fff; font-size: 16px; letter-spacing: .02em; overflow-wrap: anywhere; }
.payrow .btn.copy { padding: 5px 12px; font-size: 13px; }
.paybox + .paybox { margin-top: 8px; }
.paydetails { margin: 8px 0 2px; color: #d6d1f0; font-size: 14px; }

/* ---- Page loader (site.js): logo in a spinning ring while the next page opens ---- */
#pageload { position: fixed; inset: 0; z-index: 9998; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(14, 10, 28, .78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
#pageload.on { opacity: 1; visibility: visible; }
.pl-spin { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.pl-spin img { width: 50px; height: 50px; animation: pl-pulse 1.6s ease-in-out infinite; }
.pl-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 15%, #8b5cf6 40%, #0a6ea8 65%, #2dd4bf 90%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: pl-spin .9s linear infinite; }
.pl-dots { display: flex; gap: 6px; } .pl-dots i { width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; animation: pl-dot 1s ease-in-out infinite; }
.pl-dots i:nth-child(2) { animation-delay: .15s; background: #0a6ea8; } .pl-dots i:nth-child(3) { animation-delay: .3s; background: #8b5cf6; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-pulse { 50% { transform: scale(.92); filter: drop-shadow(0 0 10px rgba(45,212,191,.5)); } }
@keyframes pl-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pl-ring, .pl-spin img, .pl-dots i { animation-duration: 2.5s; } }

/* The new page's first paint, while it loads (class set in <head>, removed by site.js) */
html.navving body::before { content: ""; position: fixed; inset: 0; z-index: 9997;
  background: url("/logo-mark.svg") center calc(50% - 8px) / 50px no-repeat, #0e0a1c; }
html.navving body::after { content: ""; position: fixed; z-index: 9998; left: 50%; top: 50%; width: 84px; height: 84px; margin: -50px 0 0 -42px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 15%, #8b5cf6 40%, #0a6ea8 65%, #2dd4bf 90%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: pl-spin .9s linear infinite; }
.cat-head .soon { color: var(--muted); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(163,157,196,.12); }
.payrow b.paynum { white-space: nowrap; overflow-wrap: normal; font-size: 15px; } .payrow span { min-width: 92px; }
