/*
 * Cointoss.gg — Obsidian Mint
 * Site-wide visual system layered over the existing behavior styles.
 */

:root {
  --kick-green: #63f5a6;
  --kick-green-dim: #2fd986;
  --kick-green-soft: rgba(99, 245, 166, 0.11);
  --gold: #f2c96d;
  --gold-bright: #ffe7a7;
  --gold-dim: #b98a33;
  --gold-soft: rgba(242, 201, 109, 0.11);
  --heads: #78a9ff;
  --heads-soft: rgba(120, 169, 255, 0.12);
  --tails: #63f5a6;
  --tails-dim: #2fd986;
  --tails-soft: rgba(99, 245, 166, 0.11);
  --danger: #ff7c86;
  --danger-soft: rgba(255, 124, 134, 0.1);
  --bg-dark: #060909;
  --bg-panel: rgba(10, 15, 14, 0.94);
  --bg-elevated: #0e1514;
  --bg-soft: #131c1a;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(225, 255, 242, 0.075);
  --border-strong: rgba(225, 255, 242, 0.14);
  --text: #f4f8f6;
  --text-muted: #8c9b96;
  --glass: rgba(6, 10, 9, 0.82);
  --ring: 0 0 0 3px rgba(99, 245, 166, 0.16);
  --radius: 18px;
  --radius-sm: 13px;
  --radius-xs: 9px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.58);
  --surface:
    linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}

body.theme-felt,
body.seo-page-body,
body.admin-page-body {
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% -180px, rgba(99, 245, 166, 0.105), transparent 64%),
    radial-gradient(660px 460px at 103% 18%, rgba(120, 169, 255, 0.06), transparent 68%),
    radial-gradient(620px 420px at -8% 88%, rgba(242, 201, 109, 0.045), transparent 66%),
    #060909 !important;
}

/* The legacy game theme scopes its own tokens on body, so override them here too. */
body.theme-felt {
  --kick-green: #63f5a6;
  --kick-green-dim: #2fd986;
  --kick-green-soft: rgba(99, 245, 166, 0.11);
  --gold: #f2c96d;
  --gold-bright: #ffe7a7;
  --gold-dim: #b98a33;
  --gold-soft: rgba(242, 201, 109, 0.11);
  --bg-dark: #060909;
  --bg-elevated: #0e1514;
  --bg-soft: #131c1a;
  --heads: #78a9ff;
  --heads-soft: rgba(120, 169, 255, 0.12);
  --tails: #63f5a6;
  --tails-soft: rgba(99, 245, 166, 0.11);
  --border: rgba(225, 255, 242, 0.075);
  --border-strong: rgba(225, 255, 242, 0.14);
  --glass: rgba(6, 10, 9, 0.82);
  --text: #f4f8f6;
  --text-muted: #8c9b96;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Shared header and navigation */
body.theme-felt .header,
.seo-page-body .header,
.admin-page-body .header {
  min-height: 68px;
  padding: 0.72rem clamp(1rem, 2.3vw, 2rem);
  background: rgba(6, 10, 9, 0.82);
  border-bottom: 1px solid rgba(225, 255, 242, 0.075);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  position: relative;
}

.logo {
  gap: 0.62rem;
}

.logo-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow:
    0 0 0 1px rgba(242, 201, 109, 0.2),
    0 8px 22px rgba(242, 201, 109, 0.1);
}

body.theme-felt .logo-text,
.seo-page-body .logo-text,
.admin-page-body .logo-text {
  color: #f7faf8;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.logo-dot,
body.theme-felt .logo-dot {
  color: var(--kick-green);
  -webkit-text-fill-color: var(--kick-green);
}

.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.27rem;
  border: 1px solid rgba(225, 255, 242, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.site-nav a {
  position: relative;
  padding: 0.48rem 0.78rem;
  border-radius: 9px;
  color: #8d9b96;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover {
  color: #eaf2ee;
  background: rgba(255, 255, 255, 0.045);
}

.site-nav a.is-active {
  color: #ecfff5;
  background: rgba(99, 245, 166, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 245, 166, 0.13);
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: var(--kick-green);
  transform: translateX(-50%);
  box-shadow: 0 0 9px rgba(99, 245, 166, 0.7);
}

body.theme-felt .live-badge,
.seo-page-body .live-badge {
  padding: 0.25rem 0.55rem 0.25rem 0.42rem;
  border-color: rgba(255, 101, 111, 0.22);
  background: rgba(255, 101, 111, 0.075);
  color: #ff8991;
  box-shadow: none;
  font-size: 0.59rem;
}

.live-badge-dot {
  width: 0.34rem;
  height: 0.34rem;
}

.btn {
  border-radius: 11px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

body .btn-kick,
body.theme-felt .btn-kick {
  color: #04140d;
  border: 1px solid rgba(180, 255, 215, 0.32);
  background: linear-gradient(180deg, #72f8b1 0%, #51e99b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 8px 24px rgba(58, 222, 143, 0.16);
}

body .btn-kick:hover,
body.theme-felt .btn-kick:hover {
  color: #03120b;
  background: linear-gradient(180deg, #8affc2 0%, #63f5a6 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 30px rgba(58, 222, 143, 0.24);
}

body .btn-ghost {
  color: #c0ccc7;
  border-color: rgba(225, 255, 242, 0.105);
  background: rgba(255, 255, 255, 0.035);
}

body .btn-ghost:hover {
  color: #f4f8f6;
  border-color: rgba(225, 255, 242, 0.18);
  background: rgba(255, 255, 255, 0.065);
}

/* Game shell */
body.theme-felt .game-panel.casino-shell {
  width: 100%;
  max-width: 1180px;
  padding: 1.4rem 1.35rem 2rem;
}

body.theme-felt .casino-table {
  border-radius: 24px;
}

body.theme-felt .casino-table-inner {
  padding: 1.05rem;
  border: 1px solid rgba(225, 255, 242, 0.085);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012) 44%),
    rgba(9, 14, 13, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 25px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

body.theme-felt .casino-rail.round-info {
  min-height: 58px;
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.85rem 0.65rem 0.95rem;
  border: 1px solid rgba(225, 255, 242, 0.065);
  border-radius: 14px;
  background: rgba(2, 6, 5, 0.34);
}

body.theme-felt .round-label {
  color: #81908b;
  font-size: 0.73rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

body.theme-felt .round-label strong {
  color: #f5f9f7;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.025em;
}

body.theme-felt .phase-badge {
  padding: 0.34rem 0.62rem;
  border-color: rgba(99, 245, 166, 0.2);
  border-radius: 8px;
  background: rgba(99, 245, 166, 0.09);
  color: var(--kick-green);
  box-shadow: none;
  font-size: 0.62rem;
  letter-spacing: 0.065em;
}

body.theme-felt .history-compact {
  padding: 0.32rem 0.42rem 0.32rem 0.7rem;
  border: 1px solid rgba(225, 255, 242, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

body.theme-felt .history-label,
body.theme-felt .history-counts {
  color: #687671;
}

body.theme-felt .history-bar-mini {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
}

body.theme-felt .history-bar-heads {
  background: var(--heads);
}

body.theme-felt .history-bar-tails {
  background: var(--tails);
}

body.theme-felt .game-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 1rem;
}

body.theme-felt .game-col-flip {
  min-height: 470px;
  padding: 1.05rem 0.9rem 1rem;
  border: 1px solid rgba(225, 255, 242, 0.07);
  border-radius: 18px;
  background:
    radial-gradient(330px 230px at 50% 48%, rgba(99, 245, 166, 0.065), transparent 72%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.022), rgba(0, 0, 0, 0.19)),
    #060a09;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -80px 100px rgba(0, 0, 0, 0.2);
}

body.theme-felt .coin-stage {
  min-height: 365px;
}

body.theme-felt .coin-stage-glow {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 53%, rgba(99, 245, 166, 0.12), transparent 35%),
    radial-gradient(ellipse at 50% 72%, rgba(242, 201, 109, 0.055), transparent 46%);
}

body.theme-felt .result-banner {
  color: #dffff0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 0 25px rgba(99, 245, 166, 0.32);
}

body.theme-felt .timer-wrap {
  padding: 0 0.7rem;
}

body.theme-felt .timer-bar {
  height: 5px;
  margin: 0.55rem 0 0.55rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

body.theme-felt .timer-fill {
  background: linear-gradient(90deg, #37dc8b, #7affb7);
  box-shadow: 0 0 14px rgba(99, 245, 166, 0.35);
}

body.theme-felt .timer-text {
  color: #91a09b;
  font-size: 0.75rem;
  font-weight: 600;
}

body.theme-felt .recent-strip,
.game-flip-stack > .recent-strip {
  min-height: 45px;
  padding: 0.54rem 0.75rem;
  border: 1px solid rgba(225, 255, 242, 0.065);
  border-radius: 13px;
  background: rgba(7, 12, 11, 0.78);
}

body.theme-felt .recent-strip-label {
  color: #71807b;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

body.theme-felt .recent-dot {
  width: 0.72rem;
  height: 0.72rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

body.theme-felt .recent-dot:first-child {
  width: 0.88rem;
  height: 0.88rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 3px rgba(255, 255, 255, 0.045);
}

body.theme-felt .game-col-play {
  gap: 0.85rem;
}

body.theme-felt .login-prompt,
body.theme-felt .bet-controls,
body.theme-felt .bets-section {
  border: 1px solid rgba(225, 255, 242, 0.07);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    rgba(12, 18, 17, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.theme-felt .login-prompt {
  position: relative;
  min-height: 205px;
  padding: 1.7rem 1.45rem;
  overflow: hidden;
}

body.theme-felt .login-prompt::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -78px;
  top: -85px;
  border-radius: 50%;
  background: rgba(99, 245, 166, 0.09);
  filter: blur(4px);
  pointer-events: none;
}

body.theme-felt .login-prompt-badge {
  border-color: rgba(99, 245, 166, 0.17);
  border-radius: 999px;
  background: rgba(99, 245, 166, 0.075);
  color: #88f9bd;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

body.theme-felt .login-prompt-title {
  margin-top: 0.78rem;
  color: #f7faf8;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

body.theme-felt .login-prompt p {
  max-width: 360px;
  color: #8f9d98;
  font-size: 0.83rem;
  line-height: 1.55;
}

body.theme-felt .bet-controls {
  padding: 1.05rem;
}

body.theme-felt .bet-controls-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.025em;
}

body.theme-felt .amount-input-wrap,
.deposit-amount-row,
.admin-date-input,
.admin-date-field input[type='date'],
.admin-users-search,
.admin-users-sort,
.tip-modal-input,
.username-modal-input,
.deposit-input,
.chat-form input {
  border-color: rgba(225, 255, 242, 0.09);
  background: rgba(1, 5, 4, 0.42);
  color: #f4f8f6;
}

body.theme-felt .amount-input-wrap:focus-within,
.deposit-amount-row:focus-within,
.tip-modal-input:focus,
.username-modal-input:focus,
.deposit-input:focus,
.chat-form input:focus {
  border-color: rgba(99, 245, 166, 0.46);
  background: rgba(2, 7, 5, 0.68);
  box-shadow: var(--ring);
}

body.theme-felt .chip-btn,
.deposit-quick-btn,
.tip-quick-btn {
  border-color: rgba(225, 255, 242, 0.085);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #bfcbc6;
}

body.theme-felt .chip-btn:hover,
.deposit-quick-btn:hover,
.tip-quick-btn:hover {
  border-color: rgba(99, 245, 166, 0.3);
  background: rgba(99, 245, 166, 0.08);
  color: #eafff3;
}

body.theme-felt .btn-heads,
body.theme-felt .btn-tails {
  min-height: 76px;
  border-radius: 14px;
  box-shadow: none !important;
  overflow: hidden;
}

body.theme-felt .btn-heads {
  border-color: rgba(120, 169, 255, 0.36) !important;
  background:
    linear-gradient(145deg, rgba(120, 169, 255, 0.22), rgba(120, 169, 255, 0.07)),
    #101a28 !important;
}

body.theme-felt .btn-tails {
  border-color: rgba(99, 245, 166, 0.32) !important;
  background:
    linear-gradient(145deg, rgba(99, 245, 166, 0.2), rgba(99, 245, 166, 0.055)),
    #0d1e17 !important;
}

body.theme-felt .btn-heads:hover:not(:disabled) {
  border-color: rgba(120, 169, 255, 0.65) !important;
  background:
    linear-gradient(145deg, rgba(120, 169, 255, 0.32), rgba(120, 169, 255, 0.1)),
    #101d2e !important;
  box-shadow: 0 13px 28px rgba(61, 115, 211, 0.15) !important;
}

body.theme-felt .btn-tails:hover:not(:disabled) {
  border-color: rgba(99, 245, 166, 0.58) !important;
  background:
    linear-gradient(145deg, rgba(99, 245, 166, 0.29), rgba(99, 245, 166, 0.08)),
    #0d2118 !important;
  box-shadow: 0 13px 28px rgba(47, 217, 134, 0.14) !important;
}

body.theme-felt .btn-heads .bet-side-icon,
body.theme-felt .btn-tails .bet-side-icon {
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-felt .btn-heads .bet-mult,
body.theme-felt .btn-tails .bet-mult {
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

body.theme-felt .bets-section {
  padding: 0.95rem;
}

body.theme-felt .bets-section-head {
  margin-bottom: 0.72rem;
}

body.theme-felt .bets-section h3 {
  font-family: var(--font-display);
  font-size: 0.86rem;
}

body.theme-felt .bets-list {
  min-height: 122px;
  border-color: rgba(225, 255, 242, 0.055);
  border-radius: 11px;
  background: rgba(2, 6, 5, 0.38);
}

body.theme-felt .fair-panel {
  margin-top: 0.9rem;
  border-color: rgba(99, 245, 166, 0.105);
  border-radius: 15px;
  background: rgba(9, 16, 13, 0.82);
}

body.theme-felt .fair-toggle {
  min-height: 50px;
  padding: 0.75rem 0.95rem;
}

body.theme-felt .fair-toggle-label {
  color: #d8e6df;
  font-size: 0.8rem;
}

body.theme-felt .fair-toggle-label::before {
  content: '';
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.55rem;
  border: 1px solid var(--kick-green);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #0a100e, 0 0 9px rgba(99, 245, 166, 0.45);
  vertical-align: 0.02rem;
}

body.theme-felt .fair-badge {
  border-color: rgba(99, 245, 166, 0.17);
  border-radius: 999px;
  background: rgba(99, 245, 166, 0.075);
  color: #7df7b4;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

body.theme-felt .fair-details {
  border-top-color: rgba(225, 255, 242, 0.065);
  background: rgba(1, 5, 4, 0.2);
}

.fair-value,
.deposit-value,
.flip-detail-code {
  border-color: rgba(225, 255, 242, 0.07);
  background: rgba(0, 0, 0, 0.27);
  color: #9fc1ff;
}

/* Chat */
body.theme-felt .chat-panel {
  width: 360px;
  border-left-color: rgba(225, 255, 242, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%),
    #080d0c;
  box-shadow: -20px 0 55px rgba(0, 0, 0, 0.24);
}

body.theme-felt .chat-header {
  min-height: 58px;
  padding: 0.85rem 1rem;
  border-bottom-color: rgba(225, 255, 242, 0.065);
  background: rgba(8, 13, 12, 0.94);
}

body.theme-felt .chat-header h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: -0.025em;
}

body.theme-felt .online-pill {
  border-color: rgba(99, 245, 166, 0.14);
  background: rgba(99, 245, 166, 0.055);
}

body.theme-felt .chat-messages {
  padding: 0.65rem 0.72rem;
  gap: 0.18rem;
}

body.theme-felt .chat-message {
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  color: #c4cfca;
}

body.theme-felt .chat-message:hover {
  background: rgba(255, 255, 255, 0.028);
}

body.theme-felt .chat-form,
body.theme-felt .chat-locked {
  border-top-color: rgba(225, 255, 242, 0.065);
  background: #080d0c;
}

body.theme-felt .chat-toggle {
  background: linear-gradient(180deg, #78fbb5, #4ce899);
  color: #06160e;
  box-shadow: 0 12px 34px rgba(47, 217, 134, 0.28);
}

/* Home supporting content and footer */
body.theme-felt .seo-home {
  max-width: 1180px;
  padding: 2rem 1.35rem 0;
}

body.theme-felt .seo-home-inner {
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  border-color: rgba(225, 255, 242, 0.075);
  border-radius: 22px;
  background:
    radial-gradient(500px 230px at 0% 0%, rgba(99, 245, 166, 0.055), transparent 72%),
    rgba(10, 15, 14, 0.86);
}

body.theme-felt .seo-home h2 {
  max-width: 650px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.045em;
}

body.theme-felt .seo-home-inner > p {
  max-width: 820px;
  color: #93a19c;
  line-height: 1.72;
}

body.theme-felt .seo-home-grid {
  gap: 0.85rem;
  margin-top: 1.45rem;
}

body.theme-felt .seo-home-grid article {
  min-height: 150px;
  padding: 1.25rem;
  border-color: rgba(225, 255, 242, 0.065);
  border-radius: 15px;
  background: rgba(2, 7, 5, 0.35);
}

body.theme-felt .seo-home-grid h3 {
  font-family: var(--font-display);
  color: #e9f1ed;
  letter-spacing: -0.025em;
}

body.theme-felt .seo-faq {
  margin-top: 0.9rem;
  border-color: rgba(225, 255, 242, 0.065);
  border-radius: 14px;
  background: rgba(2, 7, 5, 0.28);
}

.site-footer {
  color: #7e8c87;
}

body.theme-felt .site-footer-in-layout {
  max-width: 1180px;
  margin-top: 1.35rem;
  border-color: rgba(225, 255, 242, 0.065);
}

.site-footer-nav a {
  color: #9ba8a3;
}

.site-footer-nav a:hover {
  color: var(--kick-green);
}

/* Standalone editorial pages */
body.seo-page-body {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.seo-page-body .header {
  position: sticky;
  top: 0;
  z-index: 500;
}

.seo-page {
  width: 100%;
  max-width: 1160px;
  padding: clamp(3.5rem, 8vw, 6.6rem) 2rem 4.5rem;
}

.seo-article {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.seo-article::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -130px;
  left: -160px;
  width: 480px;
  height: 340px;
  border-radius: 50%;
  background: rgba(99, 245, 166, 0.075);
  filter: blur(90px);
  pointer-events: none;
}

.seo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(99, 245, 166, 0.17);
  border-radius: 999px;
  background: rgba(99, 245, 166, 0.07);
  color: #77f5b1;
  font-size: 0.63rem;
  letter-spacing: 0.105em;
}

.seo-kicker::before {
  content: '';
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--kick-green);
  box-shadow: 0 0 9px rgba(99, 245, 166, 0.6);
}

.seo-article h1 {
  max-width: 820px;
  margin: 0;
  color: #f5f9f7;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6vw, 4.65rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.seo-lead {
  max-width: 820px;
  margin: 1.4rem 0 0;
  color: #9ba9a4;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.72;
  letter-spacing: -0.018em;
}

.seo-lead strong {
  color: #dbffeb;
}

.seo-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin: 2.15rem 0 3.4rem;
  overflow: hidden;
  border: 1px solid rgba(225, 255, 242, 0.075);
  border-radius: 16px;
  background: rgba(225, 255, 242, 0.065);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.seo-metrics > div {
  min-height: 86px;
  padding: 1rem 1.2rem;
  background: rgba(8, 13, 12, 0.96);
}

.seo-metrics strong,
.seo-metrics span {
  display: block;
}

.seo-metrics strong {
  color: #f2f8f5;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.seo-metrics span {
  margin-top: 0.3rem;
  color: #74827d;
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.seo-metrics-process strong {
  color: var(--kick-green);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.seo-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.seo-card,
.seo-article section.seo-card {
  position: relative;
  min-height: 230px;
  margin: 0;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(225, 255, 242, 0.075);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 55%),
    rgba(10, 15, 14, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 44px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.seo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 245, 166, 0.16);
  background:
    linear-gradient(145deg, rgba(99, 245, 166, 0.055), transparent 58%),
    rgba(11, 17, 15, 0.94);
}

.seo-card-featured {
  grid-column: 1 / -1;
  min-height: auto;
}

.seo-card-index {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  margin-bottom: 1.15rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(99, 245, 166, 0.14);
  border-radius: 999px;
  background: rgba(99, 245, 166, 0.065);
  color: #72efa9;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.seo-card-responsible .seo-card-index {
  border-color: rgba(242, 201, 109, 0.17);
  background: rgba(242, 201, 109, 0.07);
  color: var(--gold-bright);
}

.seo-article h2 {
  margin: 0;
  color: #edf5f1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.seo-article .seo-card p,
.seo-article .seo-card li {
  color: #8f9d98;
  font-size: 0.9rem;
  line-height: 1.68;
}

.seo-article .seo-card h2 + p,
.seo-article .seo-card h2 + ol,
.seo-article .seo-card h2 + ul {
  margin-top: 0.75rem;
}

.seo-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0;
  list-style: none;
  counter-reset: verify-step;
}

.seo-steps li {
  position: relative;
  min-height: 88px;
  padding: 0.85rem 0.9rem 0.85rem 2.75rem;
  border: 1px solid rgba(225, 255, 242, 0.06);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.19);
  counter-increment: verify-step;
}

.seo-steps li::before {
  content: counter(verify-step, decimal-leading-zero);
  position: absolute;
  top: 0.9rem;
  left: 0.85rem;
  color: var(--kick-green);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.seo-article code {
  border: 1px solid rgba(120, 169, 255, 0.13);
  border-radius: 7px;
  background: rgba(120, 169, 255, 0.07);
  color: #abc7ff;
}

.seo-cta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.3rem 0 0;
  padding: 1.2rem;
  border: 1px solid rgba(225, 255, 242, 0.075);
  border-radius: 16px;
  background: rgba(10, 15, 14, 0.76);
}

.seo-page-body .site-footer {
  margin-top: 0;
  border-top-color: rgba(225, 255, 242, 0.065);
  background: rgba(5, 9, 8, 0.55);
}

/* Account menus and overlays */
.user-dashboard-trigger,
body.theme-felt .user-dashboard-trigger {
  border-color: rgba(225, 255, 242, 0.085);
  background: rgba(255, 255, 255, 0.028);
}

.user-dashboard-trigger:hover,
.user-dashboard.open .user-dashboard-trigger {
  border-color: rgba(225, 255, 242, 0.15);
  background: rgba(255, 255, 255, 0.055);
}

.user-dashboard-menu {
  padding: 0.55rem;
  border-color: rgba(225, 255, 242, 0.12);
  border-radius: 15px;
  background: rgba(12, 18, 16, 0.98);
  box-shadow: var(--shadow-lg);
}

.user-dashboard-item {
  border-radius: 9px;
  color: #cbd5d1;
}

.user-dashboard-item:hover {
  background: rgba(99, 245, 166, 0.065);
  color: #effaf4;
}

body.theme-felt .balance {
  border-color: rgba(99, 245, 166, 0.16);
  background: rgba(99, 245, 166, 0.07);
  color: #82f8b9;
}

.username-modal-backdrop,
.tip-modal-backdrop,
.deposit-modal-backdrop,
.admin-confirm-backdrop,
.phantom-android-sheet {
  background: rgba(2, 5, 4, 0.75);
  backdrop-filter: blur(12px) saturate(0.85);
  -webkit-backdrop-filter: blur(12px) saturate(0.85);
}

.username-modal,
.tip-modal,
.deposit-modal,
.admin-confirm-modal {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  border: 1px solid rgba(225, 255, 242, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.038), transparent 48%),
    #0c1311;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 35px 100px rgba(0, 0, 0, 0.62);
}

.username-modal-body,
.tip-modal-body,
.deposit-modal-body,
.admin-confirm-body {
  min-height: 0;
  overflow-y: auto;
}

.username-modal-header,
.username-modal-footer,
.tip-modal-header,
.tip-modal-footer,
.deposit-modal-header,
.deposit-modal-footer,
.admin-confirm-header,
.admin-confirm-footer {
  flex-shrink: 0;
}

.username-modal-header h3,
.tip-modal-header h3,
.deposit-modal-header h3,
.admin-confirm-header h3 {
  color: #f2f7f5;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.tip-modal-header,
.deposit-modal-header,
.deposit-modal-footer,
.admin-confirm-header,
.admin-confirm-footer {
  border-color: rgba(225, 255, 242, 0.065);
}

.deposit-modal-close,
.tip-modal-close,
.admin-confirm-close {
  border: 1px solid rgba(225, 255, 242, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #80908a;
}

.deposit-modal-close:hover,
.tip-modal-close:hover,
.admin-confirm-close:hover {
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
}

.activity-tabs,
.activity-table-wrap {
  border-color: rgba(225, 255, 242, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.activity-tab.is-active {
  border-color: rgba(99, 245, 166, 0.2);
  background: rgba(99, 245, 166, 0.08);
  color: #7cf5b4;
}

.activity-table th,
.activity-table td {
  border-color: rgba(225, 255, 242, 0.055);
}

.flip-detail-hero,
.flip-detail-pool,
.flip-detail-row {
  border-color: rgba(225, 255, 242, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

/* Admin application */
body.admin-page-body {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-page-body .header {
  position: sticky;
  top: 0;
  z-index: 500;
}

.admin-page-badge {
  border-color: rgba(242, 201, 109, 0.2);
  border-radius: 999px;
  background: rgba(242, 201, 109, 0.08);
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

.admin-page {
  width: 100%;
  max-width: 1380px;
  padding: clamp(2.4rem, 5vw, 4.3rem) clamp(1rem, 3vw, 2.5rem) 5rem;
}

.admin-page-intro {
  margin-bottom: 1.7rem;
}

.admin-page-kicker {
  margin: 0 0 0.55rem !important;
  color: var(--kick-green) !important;
  font-size: 0.65rem !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-page-intro h1 {
  color: #f4f8f6;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.admin-page-intro p:not(.admin-page-kicker) {
  max-width: 620px;
  margin-top: 0.7rem;
  color: #8b9994;
  line-height: 1.6;
}

.admin-tabs {
  position: sticky;
  top: 82px;
  z-index: 100;
  gap: 0.28rem;
  margin-bottom: 1.2rem;
  padding: 0.36rem;
  overflow-x: auto;
  border: 1px solid rgba(225, 255, 242, 0.075);
  border-radius: 14px;
  background: rgba(8, 13, 12, 0.88);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.admin-tab {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: #83918c;
  font-size: 0.77rem;
  font-weight: 700;
}

.admin-tab:hover {
  color: #e5eee9;
  background: rgba(255, 255, 255, 0.035);
}

.admin-tab.is-active {
  color: #eafff3;
  background: rgba(99, 245, 166, 0.09);
  box-shadow: inset 0 0 0 1px rgba(99, 245, 166, 0.14);
}

.admin-cards {
  gap: 1rem;
}

.admin-card,
.admin-treasury,
.admin-treasury-txs-card,
.admin-user-edit {
  border: 1px solid rgba(225, 255, 242, 0.075);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), transparent 50%),
    rgba(10, 15, 14, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 45px rgba(0, 0, 0, 0.15);
}

.admin-card {
  padding: 1.3rem;
}

.admin-card-head h2,
.admin-treasury-txs-head h2,
.admin-user-edit h2 {
  color: #ebf3ef;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.admin-card-head p,
.admin-card-danger-hint,
.admin-user-edit-hint,
.admin-treasury-meta {
  color: #82908b;
  line-height: 1.55;
}

.admin-card-status {
  border-color: rgba(225, 255, 242, 0.07);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
}

.admin-card-status.is-on {
  border-color: rgba(99, 245, 166, 0.16);
  background: rgba(99, 245, 166, 0.065);
  color: #7af5b2;
}

.admin-card-danger-zone,
.admin-wd-threshold-row,
.admin-user-chat-ban {
  border-color: rgba(255, 124, 134, 0.12);
  border-radius: 12px;
  background: rgba(255, 124, 134, 0.035);
}

.admin-toggle-track {
  border: 1px solid rgba(225, 255, 242, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.admin-toggle input:checked + .admin-toggle-track {
  border-color: rgba(99, 245, 166, 0.34);
  background: #38dc8d;
  box-shadow: 0 0 18px rgba(56, 220, 141, 0.16);
}

.admin-deposits-card,
.admin-users-layout {
  border-color: rgba(225, 255, 242, 0.075);
}

.admin-deposit-toolbar,
.admin-users-toolbar-row {
  border-color: rgba(225, 255, 242, 0.065);
  background: rgba(0, 0, 0, 0.13);
}

.admin-range-btn {
  border-color: rgba(225, 255, 242, 0.075);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #84928d;
}

.admin-range-btn:hover,
.admin-range-btn.is-active {
  border-color: rgba(99, 245, 166, 0.2);
  background: rgba(99, 245, 166, 0.075);
  color: #83f7b9;
}

.admin-stat {
  border-color: rgba(225, 255, 242, 0.065);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.21);
}

.admin-stat-value,
.admin-treasury-sol {
  color: #eef7f2;
  font-family: var(--font-display);
}

.admin-deposit-table-wrap,
.admin-users-table-wrap,
.admin-treasury-txs-wrap {
  border-color: rgba(225, 255, 242, 0.07);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.18);
}

.admin-deposit-table th,
.admin-deposit-table td,
.admin-treasury-txs-table th,
.admin-treasury-txs-table td {
  border-color: rgba(225, 255, 242, 0.055);
}

.admin-deposit-table th,
.admin-treasury-txs-table th {
  color: #71807a;
  background: rgba(255, 255, 255, 0.018);
}

.admin-deposit-table tbody tr:hover td,
.admin-treasury-txs-table tbody tr:hover td {
  background: rgba(99, 245, 166, 0.025);
}

.admin-status-pill {
  border-radius: 999px;
}

.admin-confirm-modal.is-danger {
  border-color: rgba(255, 124, 134, 0.26);
}

/* Responsive */
@media (max-width: 1120px) {
  .site-nav {
    left: 47%;
  }

  body.theme-felt .chat-panel {
    width: 330px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  body.theme-felt .header,
  .seo-page-body .header,
  .admin-page-body .header {
    min-height: 62px;
    padding: 0.62rem 0.85rem;
  }

  body.theme-felt .game-panel.casino-shell {
    padding: 0.8rem 0.65rem 1.3rem;
  }

  body.theme-felt .casino-table-inner {
    padding: 0.72rem;
    border-radius: 18px;
  }

  body.theme-felt .game-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.theme-felt .game-col-flip {
    min-height: 440px;
  }

  body.theme-felt .recent-strip,
  .game-flip-stack > .recent-strip {
    padding: 0.52rem 0.65rem;
    border-radius: 12px;
  }

  body.theme-felt .chat-panel {
    width: min(92vw, 390px);
    border: 1px solid rgba(225, 255, 242, 0.09);
    border-radius: 18px 0 0 18px;
  }

  .seo-page {
    padding: 3.6rem 1.15rem 3rem;
  }

  .seo-article h1 {
    font-size: clamp(2.45rem, 11vw, 3.6rem);
  }

  .admin-page {
    padding-top: 2.7rem;
  }

  .admin-tabs {
    top: 70px;
  }
}

@media (max-width: 640px) {
  .logo {
    gap: 0.48rem;
  }

  .logo-mark {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }

  body.theme-felt .logo-text,
  .seo-page-body .logo-text,
  .admin-page-body .logo-text {
    font-size: 0.95rem;
  }

  .header-left,
  .header-right {
    gap: 0.42rem;
  }

  body.theme-felt .live-badge,
  .seo-page-body .live-badge {
    display: none;
  }

  #phantom-login-btn {
    min-width: 0;
    min-height: 38px;
    padding: 0.52rem 0.72rem;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
  }

  .header-right > .sound-toggle {
    min-width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .seo-page-body .header-right .btn,
  .admin-page-body .header-right > .btn {
    min-height: 36px;
    padding: 0.48rem 0.72rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  body.theme-felt .casino-rail.round-info {
    align-items: stretch;
    min-height: 0;
    padding: 0.7rem;
  }

  body.theme-felt .history-compact {
    width: 100%;
    padding: 0.4rem 0.25rem;
    border: 0;
    border-top: 1px solid rgba(225, 255, 242, 0.055);
    border-radius: 0;
    background: transparent;
  }

  body.theme-felt .game-col-flip {
    min-height: 430px;
    padding: 0.7rem 0.55rem 0.85rem;
  }

  body.theme-felt .coin-stage {
    min-height: 345px;
  }

  body.theme-felt .login-prompt {
    min-height: 0;
    padding: 1.45rem 1.05rem;
  }

  body.theme-felt .bets-section,
  body.theme-felt .bet-controls {
    padding: 0.85rem;
  }

  body.theme-felt .btn-heads,
  body.theme-felt .btn-tails {
    min-height: 70px;
  }

  body.theme-felt .seo-home {
    padding: 1.2rem 0.65rem 0;
  }

  body.theme-felt .seo-home-inner {
    padding: 1.3rem;
    border-radius: 18px;
  }

  .seo-page {
    padding: 2.9rem 1rem 2.5rem;
  }

  .seo-article h1 {
    font-size: clamp(2.2rem, 12.5vw, 3.15rem);
    line-height: 1.02;
  }

  .seo-lead {
    margin-top: 1.05rem;
    font-size: 0.96rem;
  }

  .seo-metrics {
    margin: 1.6rem 0 2.3rem;
    border-radius: 14px;
  }

  .seo-metrics > div {
    min-height: 76px;
    padding: 0.85rem 0.7rem;
  }

  .seo-metrics strong {
    font-size: 1.05rem;
  }

  .seo-metrics span {
    font-size: 0.58rem;
    letter-spacing: 0.035em;
  }

  .seo-cards,
  .seo-steps {
    grid-template-columns: 1fr;
  }

  .seo-card,
  .seo-article section.seo-card {
    min-height: 0;
    padding: 1.3rem;
  }

  .seo-cta-row {
    align-items: stretch;
    flex-direction: column;
    padding: 0.9rem;
  }

  .seo-cta-row .btn {
    justify-content: center;
    width: 100%;
  }

  .admin-page {
    padding: 2.2rem 0.75rem 4rem;
  }

  .admin-tabs {
    top: 66px;
    margin-right: -0.1rem;
    margin-left: -0.1rem;
  }

  .admin-tab {
    flex: 0 0 auto;
  }

  .username-modal,
  .tip-modal,
  .deposit-modal,
  .admin-confirm-modal {
    border-radius: 17px;
  }
}

@media (max-width: 410px) {
  body.theme-felt .header,
  .seo-page-body .header,
  .admin-page-body .header {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
  }

  body.theme-felt .logo-text,
  .seo-page-body .logo-text,
  .admin-page-body .logo-text {
    font-size: 0.9rem;
  }

  #phantom-login-btn {
    padding-right: 0.58rem;
    padding-left: 0.58rem;
    font-size: 0.66rem;
  }

  .header-right > .sound-toggle {
    display: none;
  }

  .seo-page-body .header-right .btn {
    padding-right: 0.62rem;
    padding-left: 0.62rem;
  }

  .admin-page-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-card,
  .btn,
  .site-nav a,
  .recent-dot {
    transition: none !important;
  }
}
