/* Coin Casino in CasinoPad's look, on top of base.css: the floating pill nav, gradient type and buttons, white cards on
   lavender, the glossy game tiles, the 3D hero. Reads tokens only. */

/* ---------- the page ---------- */
html { scroll-behavior: smooth; }
body { background: var(--bg); font-size: 16px; overflow-x: hidden; }
h1, h2, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.94; }
h2 { font-size: clamp(42px, 5.4vw, 80px); }
h3, .h3 { font: 700 21px/1.2 var(--font-text); letter-spacing: -0.02em; }
.gt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent { color: var(--pu); }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.lede b { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { font: 600 13px var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--pu); margin-bottom: 12px; }
.kicker-dot { display: none; }
.label { font: 500 12px var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
main { padding-bottom: 0; }

/* ---------- header: the floating nav ---------- */
#top { position: fixed; left: 0; right: 0; top: 0; z-index: 40; background: transparent; border: 0; backdrop-filter: none; box-shadow: none; transition: background var(--t), box-shadow var(--t); }
#top.s { background: rgba(246, 248, 253, 0.82); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
body { padding-top: var(--top-h); }
body.has-demo { padding-top: calc(var(--top-h) + 30px); }
body.home { padding-top: 0; }
.demo-strip { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 12.5px; padding: 0 var(--gut); height: 30px; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.demo-strip b { color: var(--mg); margin-right: 4px; }
.top-bar { height: var(--top-h); width: 100%; max-width: none; padding: 0 28px; gap: 18px; }
.brand { gap: 10px; }
.brand-mark { width: 30px; height: 30px; border: 0; border-radius: 0; display: inline-grid; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font: 800 23px/1 var(--font-display); letter-spacing: -0.035em; white-space: nowrap; }
.brand-word i { font-style: normal; }
.nav { gap: 6px; padding: 5px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.75); box-shadow: var(--ring); margin-left: auto; }
.nav a { height: 36px; padding: 0 16px; border-radius: var(--r-pill); display: grid; place-items: center; font-weight: 600; font-size: 14.5px; color: var(--muted); border: 0; }
.nav a:hover, .nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
.top-actions { margin-left: auto; gap: 8px; }
.top-actions .ca.small { display: none; }

/* ---------- buttons ---------- */
.btn { height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); color: var(--ink); font-weight: 700; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); border-color: transparent; background: var(--surface); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -12px rgba(79, 70, 229, 0.7); }
.btn.primary:hover { background: var(--grad); filter: none; }
.btn.ink, .top-cta { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(10, 12, 27, 0.6); }
.btn.ink:hover, .top-cta:hover { background: var(--ink); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; transform: none; }
.top-cta { height: 42px; padding: 0 18px; font-size: 14.5px; }
.wallet-btn { height: 42px; font-size: 14.5px; }
.link-arrow { color: var(--pu); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { background: var(--surface); box-shadow: var(--ring); }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- chips, pills ---------- */
.chip { height: 26px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); font: 600 12px var(--font-mono); box-shadow: none; }
.chip.done { background: #EAFBF3; color: #0E6E4B; }
.chip.demo { background: #FFF1F6; color: #C2185B; }
.seg { gap: 6px; padding: 0; border: 0; background: none; flex-wrap: wrap; }
.seg button, .chips button { height: 38px; padding: 0 15px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--ring); font-weight: 600; font-size: 14px; color: var(--muted); border: 0; }
.seg button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chips { gap: 6px; }

/* ---------- cards, forms ---------- */
.card { background: var(--surface); border: 0; border-radius: 28px; box-shadow: var(--shadow); padding: 26px; }
.card-head h2, .card-head .h3 { font: 700 22px/1.2 var(--font-text); letter-spacing: -0.02em; }
.input, .prefix { height: 52px; border-radius: 16px; border: 0; box-shadow: 0 0 0 1px var(--line-2); background: var(--surface); }
.prefix .input { box-shadow: none; }
.input:focus, .prefix:focus-within { box-shadow: 0 0 0 2px var(--pu); border: 0; }
textarea.input { min-height: 90px; }
.drop { border-radius: 20px; border: 2px dashed var(--line-2); background: var(--bg); }
.drop.over { border-color: var(--pu); }
.drop img { border-radius: 18px; }
.problem { color: var(--pk); }
.banner { border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.banner.good { background: #EAFBF3; box-shadow: 0 0 0 1px #B6EED3; color: #0E6E4B; }
.ca { margin: 0; height: auto; padding: 12px 16px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .8); box-shadow: var(--ring); }
.ca-soon { color: var(--pu); font-weight: 600; }

/* ---------- section heads ---------- */
.sec { padding: 110px 0 0; }
.hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 40px; flex-wrap: wrap; }
.hd .k { font: 600 13px var(--font-mono); color: var(--pu); }
.hd h1, .hd h2 { margin-top: 12px; }
.hd h1 { font-size: clamp(48px, 6.4vw, 96px); }
.hd p { max-width: 440px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.page-top { padding-top: 70px; }

/* ---------- hero: the 3D wheel ---------- */
.hero { position: relative; display: block; min-height: 100svh; overflow: hidden; padding: 0; background: radial-gradient(60% 70% at 72% 52%, #FFFFFF 0%, #EAF0FF 42%, var(--bg) 72%); }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.hc { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--top-h) + 40px); padding-bottom: 60px; }
.tag { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; height: 36px; padding: 0 14px 0 6px; border-radius: var(--r-pill); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -16px rgba(30, 40, 120, .45); font-weight: 600; font-size: 14px; }
.tag i { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; }
.hero h1 { font-size: clamp(54px, 7vw, 112px); line-height: .92; letter-spacing: -.05em; margin-top: 22px; max-width: 700px; }
.hero .sub { margin-top: 24px; max-width: 500px; font-size: 19.5px; line-height: 1.5; color: var(--muted); }
.hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hstats { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; align-items: stretch; }
.hstats > div { padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .8); box-shadow: var(--ring); font: 500 12.5px var(--font-mono); color: var(--muted); }
.hstats b { display: block; margin-top: 3px; font: 700 20px var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.hstats .ca-pill b { color: var(--pu); }
.res { position: absolute; z-index: 3; right: 5vw; bottom: 9vh; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.now { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(20, 30, 90, .5); font-weight: 700; font-size: 17px; white-space: nowrap; }
.now b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 16px; flex: none; }
.now span { font: 500 13px var(--font-mono); color: var(--muted); }
.now .now-tile { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; flex: none; }
.now .now-tile svg { width: 100%; height: 100%; }
.hist { display: flex; gap: 6px; }
.hist b { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 600 13px var(--font-mono); }
.c-red { background: var(--pk); }
.c-black { background: var(--ink); }
.c-zero { background: var(--pu); }

/* ---------- the casino picker and the lobby ---------- */
.hpick { margin-top: 40px; padding: 22px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(20, 30, 90, .45); }
.hpl { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 17px; }
.hpl i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; flex: none; }
.hpl span { color: var(--muted); font-weight: 600; margin-left: auto; font-size: 14px; }
.houses { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 16px; }
.hs { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 18px; background: #F3F6FC; box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: transform .3s var(--ease), box-shadow .3s; cursor: pointer; border: 0; }
.hs:hover { transform: translateY(-3px); }
.hs img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .35); }
.hs b { font-size: 17px; }
.hs small { font: 500 11.5px var(--font-mono); color: var(--muted); line-height: 1.45; }
.hs.on { background: #fff; box-shadow: 0 0 0 2px var(--pk), 0 18px 34px -16px rgba(79, 70, 229, .4); }
.hs.on::after { content: '✓'; position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.hs.cu { justify-content: center; align-items: center; text-align: center; border: 2px dashed var(--line); box-shadow: none; background: transparent; }
.hs.cu.on { border-color: var(--pk); }
.hnote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.cats { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.cats button { height: 42px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; background: #fff; box-shadow: var(--ring); color: var(--muted); border: 0; cursor: pointer; }
.cats button.on { background: var(--ink); color: #fff; box-shadow: none; }
.lobby { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 22px; perspective: 1400px; }
.tile { position: relative; display: block; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -30px rgba(20, 30, 90, .5); transition: transform .45s var(--ease), box-shadow .45s; transform-style: preserve-3d; text-align: left; cursor: pointer; color: inherit; }
.tile .art { display: block; width: 100%; aspect-ratio: 300 / 380; }
.tile .art svg { width: 100%; height: 100%; }
.tile .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 13px; background: linear-gradient(0deg, rgba(10, 12, 27, .72), rgba(10, 12, 27, 0)); color: #fff; }
.tile .meta b { display: block; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.tile .meta span { font: 500 11.5px var(--font-mono); opacity: .85; }
.tile .add { position: absolute; right: 10px; top: 10px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); font: 600 12.5px var(--font-text); display: flex; align-items: center; gap: 6px; transition: all .25s; color: var(--ink); }
.tile .hb { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45); z-index: 2; }
.tile.on { box-shadow: 0 0 0 3px var(--pu), 0 26px 50px -24px rgba(79, 70, 229, .7); }
.tile.on .add { background: var(--ink); color: #fff; }
.tile:hover { box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(20, 30, 90, .6); }
.tile.on:hover { box-shadow: 0 0 0 3px var(--pu), 0 30px 60px -24px rgba(79, 70, 229, .7); }
.lobby-go { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 18px 18px 18px 24px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.lobby-go p { font-weight: 600; font-size: 16px; }
.lobby-go p span { color: var(--muted); font-weight: 500; }

/* ---------- the coin card ---------- */
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.coin-card { position: relative; display: grid; gap: 12px; padding: 0 0 18px; border: 0; border-radius: 26px; background: #fff; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.coin-card > :not(.cc-art) { margin-inline: 18px; }
a.coin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border: 0; }
.cc-art { position: relative; height: 150px; display: flex; justify-content: center; align-items: center; background: radial-gradient(80% 90% at 50% 100%, #FFFFFF, #EAF0FF 55%, #DDE6FA); overflow: hidden; }
.cc-fan { position: relative; width: 100%; height: 100%; }
.cc-fan .ft { position: absolute; bottom: -18px; width: 74px; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 22px -12px rgba(15, 25, 80, .6); transform-origin: 50% 120%; }
.cc-fan .ft svg { width: 100%; height: auto; display: block; }
.cc-empty { font: 500 12.5px var(--font-mono); color: var(--muted); }
.coin-art { display: inline-grid; flex: none; border-radius: 50%; background: none; }
.coin-art svg { width: 100%; height: 100%; }
.coin-card-head { margin-top: 4px; }
.coin-name { font: 700 18px/1.2 var(--font-text); letter-spacing: -.02em; }
.coin-sym { font: 500 12.5px var(--font-mono); color: var(--muted); }
.coin-games { display: flex; flex-wrap: wrap; gap: 6px; }
.game-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: var(--r-pill); background: var(--bg-2); font: 600 12px var(--font-text); color: var(--ink-2); }
.game-tag .gi { width: 20px; height: 20px; border-radius: 6px; overflow: hidden; display: inline-flex; }
.game-tag .gi svg { width: 100%; height: 100%; }
.game-tag b { font: 600 11px var(--font-mono); color: var(--muted); }
.coin-card-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.coin-card-nums > div { padding: 10px; border-radius: 14px; background: var(--bg); box-shadow: var(--ring); display: grid; gap: 2px; }
.coin-card-nums .label { font-size: 11px; }
.coin-card-nums .num { font: 700 15px var(--font-display); letter-spacing: -.02em; }
.coin-card-last { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.won { background: var(--good); }
.dot.lost { background: var(--pk); }
.skeleton { min-height: 360px; }
.skeleton .sk { margin-inline: 18px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--bg), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
.skeleton .sk-table { height: 150px; margin: 0 !important; border-radius: 0; }

/* ---------- the pit log ---------- */
.log-card { padding: 8px 22px; }
.feed-row { grid-template-columns: 34px 80px minmax(0, 1fr) 96px 160px 92px 64px; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: center; }
.feed-row:last-child { border-bottom: 0; }
.feed-row.note { grid-template-columns: 34px 80px minmax(0, 1fr) 92px 64px; }
.feed-row.no-coin { grid-template-columns: 34px minmax(0, 1fr) 96px 160px 92px 64px; }
.feed-row.note.no-coin { grid-template-columns: 34px minmax(0, 1fr) 92px 64px; }
.feed-glyph { display: inline-grid; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; color: #fff; }
.feed-glyph svg { width: 100%; height: 100%; }
.feed-glyph.mk { background: var(--grad); padding: 6px; }
.feed-sym { font: 600 13px var(--font-mono); color: var(--ink-2); }
a.feed-sym:hover { color: var(--pu); }
.feed-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-text b { font-weight: 700; }
.res-tag { font: 600 13px var(--font-mono); }
.won { color: var(--good); }
.lost { color: var(--pk); }
.feed-money { font: 500 13px var(--font-mono); text-align: right; }
.tx { justify-content: flex-end; font: 500 12px var(--font-mono); }
.feed-time { font: 500 12.5px var(--font-mono); }
.pad { padding: 18px 0; }

/* ---------- how it works cards ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.st { padding: 26px; border-radius: 26px; background: #fff; box-shadow: var(--ring); }
.st .n { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 700 18px var(--font-mono); color: #fff; }
.st h3 { margin-top: 18px; font-weight: 700; font-size: 23px; letter-spacing: -.02em; line-height: 1.1; }
.st p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.how-foot { margin-top: 22px; font: 500 13px/1.6 var(--font-mono); color: var(--dim); max-width: 70em; }

/* ---------- the closing band ---------- */
.end { padding: 130px 0; text-align: center; }
.end h2 { font-size: clamp(54px, 8vw, 128px); line-height: .92; letter-spacing: -.05em; }
.end p { margin: 20px auto 0; max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.end .btn { margin-top: 30px; }

/* ---------- footer ---------- */
#foot { padding: 40px 0 60px; color: var(--muted); font-size: 13px; line-height: 1.65; border-top: 1px solid var(--line); background: var(--bg); }
.foot { grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: start; }
.foot-brand { display: grid; gap: 8px; max-width: 46em; }
.foot-brand p { margin: 0; font-size: 13px; }
.foot-brand b { color: var(--ink); }
.foot-brand .brand-word { color: var(--ink); }
.foot-links { gap: 16px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.foot-links a:hover { color: var(--pu); }
.foot-base { border-top: 1px solid var(--line); font-size: 13px; }
.foot-base .link { color: var(--muted); }

/* ---------- empty states, modal, toasts, menus ---------- */
.empty { padding: 50px 16px; }
.empty-mark { width: 64px; height: 64px; display: inline-grid; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 30px -14px rgba(20, 30, 90, .6); }
.empty-mark svg { width: 100%; height: 100%; }
.empty h3 { font: 800 30px/1.05 var(--font-display); letter-spacing: -.035em; }
.empty h1 { font-size: clamp(48px, 7vw, 96px); }
.modal-veil { background: rgba(10, 12, 27, .3); backdrop-filter: blur(8px); }
.modal-panel { background: #fff; border: 0; border-radius: 26px; box-shadow: 0 40px 80px -40px rgba(15, 25, 80, .6); }
.modal-head h2 { font: 800 26px/1.05 var(--font-display); letter-spacing: -.035em; }
.toast { background: var(--ink); color: #fff; font-weight: 600; }
.menu { background: #fff; border: 0; border-radius: 18px; box-shadow: var(--shadow-2); }
.menu-item:hover { background: var(--surface-2); }
.wallet-row { background: #F1F4FB; border: 0; border-radius: 16px; font-weight: 600; }
.wallet-row:hover:not([disabled]) { box-shadow: 0 0 0 2px var(--pu); }
.flow-steps li.now .flow-mark { border-color: var(--pu); }
.flow-steps li.done .flow-mark { background: var(--grad); color: #fff; border-color: transparent; }
.notes .icon { color: var(--good); }

/* ---------- phones ---------- */
.tabbar { display: none; }
@media (max-width: 1100px) {
  .lobby { grid-template-columns: repeat(3, 1fr); }
  .houses { grid-template-columns: repeat(4, 1fr); }
  .how { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .res { right: 16px; bottom: 16px; }
  .feed-row { grid-template-columns: 34px 70px minmax(0, 1fr) 84px 140px 60px; }
  .feed-row .tx { display: none; }
  .feed-row.note { grid-template-columns: 34px 70px minmax(0, 1fr) 60px; }
  .feed-row.no-coin { grid-template-columns: 34px minmax(0, 1fr) 84px 140px 60px; }
  .feed-row.note.no-coin { grid-template-columns: 34px minmax(0, 1fr) 60px; }
}
@media (max-width: 860px) {
  .top-bar { padding: 0 16px; }
  .top-cta { display: none; }
  .tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; justify-content: space-around; padding: 5px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -20px rgba(20, 30, 90, .55); }
  .tabbar a { padding: 9px 14px; border-radius: var(--r-pill); color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
  .tabbar a[aria-current] { background: var(--ink); color: #fff; }
  #foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .foot { grid-template-columns: 1fr; }
  .hero { min-height: auto; display: flex; flex-direction: column; }
  .hc { order: 1; min-height: auto; padding-top: calc(var(--top-h) + 30px + 24px); padding-bottom: 0; }
  #stage { order: 2; position: relative; inset: auto; height: 340px; margin-top: 8px; }
  .res { order: 3; position: relative; right: auto; bottom: auto; align-items: flex-start; padding: 0 var(--gut) 10px; margin-top: -36px; }
  .demo-strip { font-size: 11.5px; }
  .demo-strip .long { display: none; }
  .sec { padding-top: 80px; }
}
@media (max-width: 640px) {
  .houses { grid-template-columns: repeat(2, 1fr); }
  .lobby { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .how { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero .sub { font-size: 17px; }
  .hero .cta .btn { flex: 1; }
  .hstats > div { flex: 1 1 40%; }
  .brand-word { font-size: 21px; }
  .wallet-btn { padding: 0 14px; }
  .feed-row, .feed-row.no-coin { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 2px 10px; }
  .feed-row .feed-glyph { grid-row: 1 / span 2; }
  .feed-row .feed-sym { grid-column: 2; grid-row: 1; }
  .feed-row .feed-text { grid-column: 2; grid-row: 2; white-space: normal; }
  .feed-row .res-tag { grid-column: 3; grid-row: 1; text-align: right; }
  .feed-row .feed-money { grid-column: 3; grid-row: 2; }
  .feed-row .feed-time { display: none; }
  .feed-row.no-coin .feed-text { grid-row: 1 / span 2; }
  .feed-row.note, .feed-row.note.no-coin { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .feed-row.note .feed-text { grid-column: 2; grid-row: 2; }
  .feed-row.note .feed-time { display: block; grid-column: 3; grid-row: 1; }
  .end { padding: 90px 0; }
  .lobby-go .btn { width: 100%; }
}

/* ==========================================================================================================
   Coin Casino's own UI on CasinoPad's layout: a floating glass nav island, rounded-square buttons, pill labels,
   one stats strip, a dotted hero ground, a dark closing panel and a dark footer.
   ========================================================================================================== */
#top { padding: 10px 14px 0; }
#top.s { background: transparent; backdrop-filter: none; box-shadow: none; }
.demo-strip { margin: -10px -14px 10px; }
.top-bar { height: 62px; padding: 0 10px 0 18px; border-radius: 20px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(20, 30, 90, .45); transition: box-shadow var(--t), background var(--t); }
#top.s .top-bar { background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--line-2), 0 20px 44px -26px rgba(20, 30, 90, .55); }
.nav { background: var(--bg-2); box-shadow: none; padding: 4px; border-radius: 14px; }
.nav a { height: 34px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(10, 12, 27, .12); }

.btn { border-radius: 14px; }
.btn.lg { border-radius: 16px; }
.btn.sm { border-radius: 11px; }
.top-cta, .wallet-btn { border-radius: 12px; }
.btn.primary { background: var(--grad); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 30px -12px rgba(59, 130, 246, .65); }
.seg button, .chips button, .cats button { border-radius: 12px; }

.hd .k, .coin-title .k { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: #E9EEFF; color: var(--pu); font: 600 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; width: fit-content; }
.hd .k::before, .coin-title .k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.hd > div { display: grid; justify-items: start; }
h2 { font-size: clamp(40px, 4.8vw, 72px); }
.tag i { border-radius: 8px; }

.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(10, 12, 27, .1) 1.2px, transparent 1.4px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(65% 70% at 70% 50%, #000 0%, transparent 78%); mask-image: radial-gradient(65% 70% at 70% 50%, #000 0%, transparent 78%); }
.hstats { gap: 0; align-self: flex-start; padding: 4px; border-radius: 18px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.hstats > div { background: none; box-shadow: none; border-radius: 0; padding: 10px 18px; border-left: 1px solid var(--line); }
.hstats > div:first-child { border-left: 0; }
.now { border-radius: 18px; }
.now b { border-radius: 12px; }
.c-zero { background: var(--good); }

.card { border-radius: 24px; }
.coin-card { border-radius: 22px; }
.tile { border-radius: 18px; }
.tile .add { border-radius: 10px; }
.hs { border-radius: 16px; }
.hs.on { box-shadow: 0 0 0 2px var(--pu), 0 18px 34px -16px rgba(79, 70, 229, .4); }
.hpick, .lobby-go { border-radius: 22px; }
.st { border-radius: 22px; box-shadow: var(--shadow); }
.st .n { border-radius: 12px; }
.cc-art { background: radial-gradient(80% 90% at 50% 100%, #FFFFFF, #EAF0FF 55%, #DDE6FA); }

.end { padding: 110px 0 120px; }
.end .wrap { padding: 96px 24px; border-radius: 32px; color: #fff; background: radial-gradient(60% 120% at 50% 0%, rgba(79, 70, 229, .6), transparent 70%), radial-gradient(40% 80% at 90% 100%, rgba(6, 182, 212, .35), transparent 70%), var(--ink); box-shadow: 0 40px 80px -40px rgba(20, 30, 90, .7); }
.end h2 { color: #fff; }
.end p { color: rgba(255, 255, 255, .7); }

#foot { background: var(--ink); color: rgba(255, 255, 255, .6); border-top: 0; }
.foot-brand .brand-word, .foot-brand b { color: #fff; }
.foot-links { color: rgba(255, 255, 255, .85); }
.foot-links a:hover { color: #fff; }
.foot-base { border-top-color: rgba(255, 255, 255, .12); }
.foot-base .link, .foot .muted, .foot-base .muted { color: rgba(255, 255, 255, .6); }

@media (max-width: 860px) {
  #top { padding: 8px 10px 0; }
  .demo-strip { margin: -8px -10px 8px; }
  .top-bar { height: 58px; padding: 0 8px 0 14px; }
  .hstats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hstats > div { border-left: 0; border-top: 1px solid var(--line); }
  .hstats > div:nth-child(-n+2) { border-top: 0; }
  .hstats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .hstats > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
  .end .wrap { padding: 70px 20px; border-radius: 26px; }
}
