/* LUCKY777 — neon casino theme: deep purple, gold and red-7 neon.
   Layout v2: sticky header with wallet connect, live board, working
   mint panel, slot machine, leaderboard, contracts, FAQ. */
:root {
  --bg: #12051f;
  --bg-deep: #0b0214;
  --panel: #22103a;
  --panel-2: #1a0b2e;
  --line: #ffd34d33;
  --line-soft: #b26bff2e;
  --gold: #ffd34d;
  --gold-light: #ffe98a;
  --gold-deep: #c9930a;
  --red: #ff2d55;
  --red-glow: #ff2d5599;
  --violet: #b26bff;
  --ivory: #fdf6e3;
  --body: #e9def7;
  --muted: #b7a6d6;
  --green: #3dff7a;
  --dark-on-gold: #2a1400;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 50% -120px, #ff2d5526, transparent 60%),
    radial-gradient(1100px 620px at 85% 240px, #7b2ff72b, transparent 60%),
    radial-gradient(800px 500px at 8% 700px, #ffd34d10, transparent 55%),
    var(--bg);
  color: var(--body);
  font-family: "Rubik", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--gold-light); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; word-break: break-all; }
.muted { color: var(--muted); }
h1, h2, h3 { color: var(--ivory); line-height: 1.2; }
h2 { font-size: 1.7rem; margin: 0 0 14px; }
section { padding: 52px 0 8px; }
button { font-family: inherit; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 2, 20, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-in { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img.seven { width: 38px; height: 38px; display: block; }
/* legacy seal used by the paper pages' brand marks — styled to match the new emblem */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: radial-gradient(circle at 35% 30%, #3b1166, #150329);
  border: 2px solid var(--gold);
  color: var(--gold); font-family: "Bungee", "Noto Sans SC", sans-serif; font-size: 27px;
  box-shadow: 0 0 14px #ffd34d44, inset 0 0 0 2px #ff2d5577, inset 0 0 10px #00000055;
  text-shadow: 2px 2px 0 #ff2d5588;
}
.wordmark { color: var(--ivory); font-family: "Bungee", "Noto Sans SC", sans-serif; font-size: 18px; letter-spacing: .5px; line-height: 1.1; }
.wordmark .n7 { color: var(--gold); text-shadow: 0 0 10px #ffd34d88; }
.wordmark small { display: block; font-family: "Rubik", sans-serif; font-size: 10px; letter-spacing: 3px; color: var(--muted); font-weight: 600; }
nav.main { display: flex; gap: 18px; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 8px 0 9px; }
.nav-strip { border-top: 1px solid var(--line-soft); }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { white-space: nowrap; }
nav.main a { color: var(--body); text-decoration: none; font-size: 14.5px; font-weight: 500; }
nav.main a:hover { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--dark-on-gold); box-shadow: 0 0 18px #ffd34d55, 0 4px 14px #00000066;
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.07); }
.btn-gold:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { border-color: var(--line); color: var(--gold-light); background: transparent; }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; }
.btn-red {
  background: radial-gradient(circle at 35% 30%, #ff7d97, var(--red) 60%, #c40f35);
  color: #fff; text-shadow: 0 1px 2px #00000088; box-shadow: 0 0 18px var(--red-glow), 0 4px 14px #00000066;
}
.btn-red:hover:not(:disabled) { filter: brightness(1.1); }
.btn-red:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-connect { padding: 9px 17px; font-size: 14px; white-space: nowrap; }
.btn-connect.connected { background: var(--panel); color: var(--gold-light); border-color: var(--gold-deep); box-shadow: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line-soft); border-radius: 999px; overflow: hidden; }
.lang-toggle a { padding: 5px 11px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.lang-toggle a.on { background: var(--gold); color: var(--dark-on-gold); }

/* ---------- hero ---------- */
.hero { padding: 38px 0 4px; text-align: center; }
.hero .emblem { width: 106px; height: 106px; margin: 0 auto 4px; display: block; filter: drop-shadow(0 10px 30px #ff2d5540); }
.chip {
  display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.6px; white-space: nowrap; max-width: 100%; color: var(--gold-light); border: 1px solid var(--line);
  background: #ffd34d0f; box-shadow: inset 0 0 12px #ffd34d14;
}
.hero h1 {
  font-family: "Bungee", "Noto Sans SC", sans-serif; font-size: clamp(44px, 9vw, 84px);
  margin: 12px 0 4px; color: var(--ivory); letter-spacing: 1px;
}
.hero h1 .n7 { color: var(--gold); text-shadow: 0 0 12px #ffd34daa, 0 0 42px #ffd34d55; }
.hero h1 .seven-red { color: var(--red); text-shadow: 0 0 12px var(--red), 0 0 46px var(--red-glow); }
.tagline { font-size: clamp(19px, 3vw, 25px); color: var(--gold-light); font-weight: 600; margin: 8px 0 4px; }
.hero .sub { max-width: 600px; margin: 10px auto 0; color: var(--muted); text-align: left; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin: 20px 0 2px; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 7px 16px;
  border-radius: 999px; border: 1px solid var(--line-soft); background: var(--panel-2);
  font-size: 14px; font-weight: 600; color: var(--body);
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-pill.live .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-pill.done .dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 24px 0 4px; }
.stat-strip .cell, .stat-grid .cell {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 10px; text-align: center;
}
.stat-strip .num, .stat-grid .num { font-size: 21px; font-weight: 800; color: var(--ivory); }
.stat-strip .num small, .stat-grid .num small { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-strip .lbl, .stat-grid .lbl { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat-grid .num.hl { color: var(--gold); text-shadow: 0 0 12px #ffd34d55; }

/* ---------- cards / board ---------- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-soft); border-radius: 20px; padding: 26px;
  box-shadow: 0 18px 44px #00000055;
}
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.board-head .pct { font-size: 26px; font-weight: 800; color: var(--gold); text-shadow: 0 0 14px #ffd34d55; }
.progress { height: 16px; border-radius: 999px; background: #0b0214; border: 1px solid var(--line-soft); overflow: hidden; margin: 14px 0 4px; }
.progress .fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(45deg, var(--gold) 0 14px, var(--gold-deep) 14px 28px);
  box-shadow: 0 0 16px #ffd34d88; transition: width .8s ease;
}
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.step { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; }
.step h3 { margin: 0 0 6px; font-size: 15.5px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); }
.step .k { color: var(--red); font-family: "Bungee", sans-serif; font-size: 13px; text-shadow: 0 0 8px var(--red-glow); }
.row-btns { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- mint panel / wallet ---------- */
.mint-card { border-color: var(--gold-deep); box-shadow: 0 0 0 1px #ffd34d22, 0 18px 44px #00000055; margin-top: 6px; }
section#mint .card + .card { margin-top: 20px; }
.mint-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mint-head h3 { margin: 0; font-size: 1.25rem; }
.phase-tag {
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--gold-deep); color: var(--gold);
  background: #ffd34d12;
}
.wallet-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.wallet-addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; color: var(--ivory); word-break: break-all; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; border: 1px solid var(--line-soft); background: var(--panel-2); color: var(--muted);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.badge.ok { color: var(--gold-light); border-color: var(--gold-deep); }
.badge.ok .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.badge.err { color: #ff8fa5; border-color: #ff2d5577; }
.badge.err .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.mint-body { margin-top: 18px; border-top: 1px dashed var(--line-soft); padding-top: 18px; }
.mint-msg { font-size: 15px; color: var(--body); margin: 0 0 14px; }
.mint-msg b { color: var(--gold-light); }
.qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.qty-label { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--gold-deep); border-radius: 999px; overflow: hidden; background: var(--bg-deep); }
.stepper button {
  width: 50px; height: 50px; border: 0; background: transparent; color: var(--gold);
  font-size: 24px; font-weight: 800; cursor: pointer; line-height: 1;
}
.stepper button:hover:not(:disabled) { background: #ffd34d1c; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper .qty-val { min-width: 60px; text-align: center; font-size: 24px; font-weight: 800; color: var(--ivory); }
.stepper .qty-max { font-size: 12.5px; font-weight: 700; color: var(--gold-light); background: transparent; border: 0; border-left: 1px solid var(--line-soft); width: auto; padding: 0 14px; height: 50px; cursor: pointer; }
.cost-line { font-size: 15px; color: var(--muted); }
.stepper.locked { border-style: dashed; opacity: .85; }
.stepper.locked button { cursor: not-allowed; }
.lock-note {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--gold-light);
  background: #ffd34d10; border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 12px; margin: 0 0 14px;
}
.qty-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.qty-chip {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--gold-light); font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.qty-chip:hover { border-color: var(--gold); }
.qty-chip.on { background: var(--gold); color: var(--dark-on-gold); border-color: var(--gold); }
.cost-line b { color: var(--ivory); font-size: 17px; }
.ref-line { font-size: 13.5px; color: var(--muted); margin: 2px 0 14px; }
.ref-line b { color: var(--gold-light); }
.mint-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-big { padding: 16px 36px; font-size: 18px; font-family: "Bungee", "Noto Sans SC", sans-serif; letter-spacing: .5px; }
.mint-actions .btn-big { flex: 1 1 auto; }
.tx-status { margin-top: 16px; font-size: 14.5px; min-height: 24px; color: var(--muted); display: none; }
.tx-status.show { display: block; }
.tx-status.ok { color: var(--green); }
.tx-status.err { color: #ff8fa5; }
.tx-status a { color: var(--gold-light); }
.my-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.my-grid .cell {
  background: var(--bg-deep); border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 8px; text-align: center;
}
.my-grid .num { font-size: 18px; font-weight: 800; color: var(--ivory); }
.my-grid .num.hl { color: var(--gold); }
.my-grid .lbl { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.invite-box { margin-top: 18px; border-top: 1px dashed var(--line-soft); padding-top: 16px; }
.invite-box .lbl { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.invite-line { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.invite-line .inv-url {
  flex: 1; min-width: 240px; background: var(--bg-deep); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 10px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--gold-light);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nowallet { margin-top: 16px; border: 1px dashed var(--line); border-radius: 14px; padding: 16px; background: #ffd34d08; }
.nowallet .links { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.btn-o {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--gold-light); background: transparent; text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer;
}
.btn-o:hover { border-color: var(--gold); }

/* ---------- modal ---------- */
.ov {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 0, 12, .78); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.md {
  width: 100%; max-width: 430px; background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--gold-deep); border-radius: 20px; padding: 24px; box-shadow: 0 30px 70px #000000aa;
  max-height: 88vh; overflow-y: auto;
}
.md-t { font-size: 18px; font-weight: 800; color: var(--ivory); margin-bottom: 10px; }
.md-s { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.md .pv-rows { margin: 12px 0; }
.md .pv-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.md .pv-row span:first-child { color: var(--muted); }
.md .pv-row span:last-child { color: var(--ivory); font-weight: 700; text-align: right; word-break: break-all; }
.md-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 10px;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--bg-deep);
  color: var(--ivory); font-size: 15px; font-weight: 700; cursor: pointer;
}
.md-opt:hover { border-color: var(--gold); }
.md-opt img { width: 26px; height: 26px; border-radius: 6px; }
.md-opt small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.md-x {
  display: block; width: 100%; margin-top: 14px; padding: 11px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: transparent; color: var(--muted); font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.md-x:hover { color: var(--ivory); border-color: var(--muted); }
.md .err { color: #ff8fa5; font-size: 14px; margin-top: 10px; }

/* ---------- slot machine ---------- */
.machine {
  max-width: 560px; margin: 22px auto 0; padding: 26px 22px 22px; text-align: center;
  background: linear-gradient(180deg, #2c1250, #170829);
  border: 2px solid var(--gold-deep); border-radius: 26px;
  box-shadow: 0 0 0 4px #0b0214, 0 0 34px #ffd34d33, 0 24px 50px #00000077;
  position: relative;
}
.machine::before {
  content: ""; position: absolute; inset: 8px; border-radius: 20px;
  border: 1px dashed #ffd34d3d; pointer-events: none;
}
.machine .marquee {
  font-family: "Bungee", "Noto Sans SC", sans-serif; font-size: 24px; color: var(--gold);
  text-shadow: 0 0 10px #ffd34daa, 0 0 30px #ffd34d55; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.machine .marquee img { width: 34px; height: 34px; }
.jackpot-line { margin-top: 8px; font-size: 15px; color: var(--body); }
.jackpot-line b { color: var(--red); font-size: 21px; text-shadow: 0 0 10px var(--red-glow); }
.reels { display: flex; gap: 12px; justify-content: center; margin: 20px 0 6px; }
.reel {
  width: 104px; height: 118px; border-radius: 14px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #fffbe9, #f3e6bd 60%, #e6d194);
  border: 3px solid var(--gold-deep); box-shadow: inset 0 10px 18px #00000033, inset 0 -10px 18px #00000033;
  display: flex; align-items: center; justify-content: center;
}
.reel .sym { font-size: 62px; line-height: 1; user-select: none; }
.reel .sym .seven { font-family: "Bungee", sans-serif; color: var(--red); text-shadow: 0 0 6px #ff2d5577, 2px 2px 0 #7a0c22; }
.reel.spinning .sym { animation: reelblur .12s linear infinite; }
@keyframes reelblur { 0% { transform: translateY(-7px); filter: blur(2px); } 50% { transform: translateY(7px); filter: blur(3px); } 100% { transform: translateY(-7px); filter: blur(2px); } }
.reel.win { border-color: var(--red); box-shadow: 0 0 22px var(--red-glow), inset 0 0 14px #ff2d5533; }
.lever-row { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.spin-btn {
  font-family: "Bungee", "Noto Sans SC", sans-serif; font-size: 20px; letter-spacing: 1px;
  padding: 13px 38px; border-radius: 999px; border: 2px solid #7a0c22; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ff7d97, var(--red) 60%, #c40f35);
  color: #fff; text-shadow: 0 1px 2px #00000088; box-shadow: 0 0 20px var(--red-glow), 0 6px 16px #00000066;
}
.spin-btn:hover:not(:disabled) { filter: brightness(1.1); }
.spin-btn:disabled { opacity: .55; cursor: wait; }
.slot-msg { min-height: 28px; margin-top: 14px; font-weight: 700; font-size: 17px; color: var(--gold-light); }
.slot-msg.win { color: var(--gold); text-shadow: 0 0 14px #ffd34daa; font-size: 20px; }
.slot-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.mode-tag { font-size: 12px; letter-spacing: 1.5px; font-weight: 700; color: var(--violet); text-transform: uppercase; }

/* ---------- paytable / leaderboard ---------- */
table.pay, table.rank, .paper-body table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
table.pay th, table.pay td, table.rank th, table.rank td, .paper-body th, .paper-body td {
  padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 15px;
}
table.pay th, table.rank th, .paper-body th { color: var(--gold-light); font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; }
table.pay td.syms { font-size: 19px; letter-spacing: 2px; white-space: nowrap; }
table.pay td.syms .sym-hash { font-family: "Bungee", "Noto Sans SC", sans-serif; color: var(--gold); text-shadow: 0 0 10px #ffd34d88; margin-right: 3px; }
table.pay td.syms .sym-dot { font-family: "Bungee", sans-serif; color: var(--muted); margin-left: 5px; }
table.pay td.syms.syms-dim { color: var(--muted); font-size: 16px; letter-spacing: 3px; }
table.pay td.syms .seven, table.rank td .seven { color: var(--red); font-family: "Bungee", sans-serif; text-shadow: 0 0 8px var(--red-glow); }
table.pay td.prize { font-weight: 800; color: var(--gold); white-space: nowrap; }
table.rank td.rk { color: var(--gold); font-weight: 800; width: 52px; }
table.rank td.sh { text-align: right; font-weight: 700; color: var(--ivory); }
table.rank th:last-child { text-align: right; }
.rank-empty { color: var(--muted); text-align: center !important; padding: 18px 12px !important; }

/* ---------- contracts / faq ---------- */
.contract-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.contract-row .role { min-width: 170px; font-weight: 700; color: var(--ivory); }
.contract-row .mono { flex: 1; min-width: 0; color: var(--body); }
.copy-btn {
  border: 1px solid var(--line); background: transparent; color: var(--gold-light);
  border-radius: 8px; padding: 5px 11px; cursor: pointer; font-size: 13px;
}
.copy-btn:hover { border-color: var(--gold); }
details.faq { border: 1px solid var(--line-soft); border-radius: 14px; padding: 15px 18px; margin: 10px 0; background: var(--panel-2); }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--ivory); }
details.faq p { color: var(--muted); margin: 9px 0 2px; }

/* ---------- live wins feed ---------- */
.wins-card { margin-top: 18px; }
.wins-title { margin: 0 0 6px; font-size: 16.5px; display: flex; align-items: center; gap: 9px; }
.wins-title .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); flex: none; }
.win-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.win-row:last-child { border-bottom: 0; }
.win-reels { font-size: 19px; letter-spacing: 2px; white-space: nowrap; }
.win-reels .seven { color: var(--red); font-family: "Bungee", sans-serif; text-shadow: 0 0 8px var(--red-glow); }
.win-prize { font-weight: 800; color: var(--gold); margin-left: auto; text-align: right; }
.win-prize .bnb { color: var(--red); text-shadow: 0 0 8px var(--red-glow); }
.win-who { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted); }
.win-time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.wins-empty { color: var(--muted); font-size: 14.5px; margin: 6px 0 2px; }

/* ---------- paper ---------- */
.paper-body { padding: 46px 20px 10px; max-width: 820px; }
.paper-body h1 { font-family: "Bungee", "Noto Sans SC", sans-serif; font-size: 34px; }
.paper-body h2 { margin-top: 34px; font-size: 1.3rem; color: var(--gold-light); }
.paper-body p, .paper-body li { color: var(--body); }
.paper-body .structural {
  border-left: 3px solid var(--gold); padding: 10px 16px; background: #ffd34d0d; border-radius: 0 10px 10px 0;
}

/* ---------- footer ---------- */
footer.site { margin-top: 70px; border-top: 1px solid var(--line-soft); background: var(--bg-deep); }
.footer-in { padding: 28px 20px 34px; display: flex; flex-direction: column; gap: 14px; }
footer.site .brand img.seven { width: 34px; height: 34px; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer.site nav a:hover { color: var(--gold-light); }
.disclaimer { color: var(--muted); font-size: 13px; margin: 0; }

@media (max-width: 860px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-grid, .steps, .my-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-stats { grid-template-columns: 1fr; }
  .header-actions { margin-left: auto; }
  .reel { width: 88px; height: 102px; }
  .reel .sym { font-size: 52px; }
  .btn-big { width: 100%; }
}

/* ---------- small screens (phones ~390px) ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  section { padding: 38px 0 4px; }
  .card { padding: 18px 16px; }
  .header-in { padding-top: 7px; padding-bottom: 7px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img.seven { width: 32px; height: 32px; }
  .wordmark { font-size: 15px; }
  .wordmark small { display: none; }
  .header-actions { gap: 8px; }
  .lang-toggle a { padding: 4px 9px; font-size: 12px; }
  .btn-connect { padding: 8px 13px; font-size: 13px; }
  nav.main { gap: 15px; padding: 6px 0 8px; }
  nav.main a { font-size: 13.5px; }
  .hero { padding: 26px 0 2px; }
  .hero .emblem { width: 88px; height: 88px; }
  .chip { font-size: 10.5px; letter-spacing: 1.1px; padding: 5px 11px; }
  .stat-strip { gap: 8px; margin-top: 18px; }
  .stat-grid, .my-grid { gap: 8px; }
  .slot-stats { gap: 8px; }
  /* tables: fit the viewport, nothing clipped, no sideways scroll */
  table.pay th, table.pay td, table.rank th, table.rank td { padding: 8px 6px; font-size: 12.5px; }
  table.pay td.syms { font-size: 15px; letter-spacing: 1px; white-space: normal; }
  table.pay td.prize { white-space: normal; font-size: 12.5px; }
  table.rank { table-layout: fixed; }
  table.rank th:first-child { width: 30px; }
  table.rank th:last-child { width: 58px; }
  table.rank td .mono { font-size: 11px; }
  /* contracts: label + copy on one line, address full width below */
  .contract-row {
    display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 5px;
    grid-template-areas: "role copy" "addr addr"; padding: 12px 0;
  }
  .contract-row .role { grid-area: role; min-width: 0; font-size: 14.5px; align-self: center; }
  .contract-row .mono { grid-area: addr; font-size: 12.5px; letter-spacing: 0; }
  .contract-row .copy-btn { grid-area: copy; }
  /* mint block */
  .qty-row { gap: 10px; }
  .cost-line { flex-basis: 100%; }
  .machine { padding: 20px 12px 18px; }
  .win-row { gap: 8px; }
  .win-reels { font-size: 17px; }
  .win-prize { font-size: 14px; }
}
