:root {
  --bg: #090a13;
  --panel: rgba(255, 255, 255, 0.075);
  --panel2: rgba(255, 255, 255, 0.115);
  --text: #f7f7fb;
  --muted: #a8aec8;
  --line: rgba(255, 255, 255, 0.13);
  --good: #54f2a7;
  --warn: #ffd166;
  --bad: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(100, 72, 255, 0.42), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(27, 229, 173, 0.24), transparent 36rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel2);
  border-radius: 14px;
  padding: 0.82rem 0.9rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.17);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button.primary {
  border-color: rgba(84, 242, 167, 0.45);
  background: linear-gradient(135deg, rgba(84, 242, 167, 0.32), rgba(100, 72, 255, 0.42));
}

button.secondary {
  border-color: rgba(255, 209, 102, 0.45);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  padding: 0.78rem 0.85rem;
  outline: none;
}

input:focus {
  border-color: rgba(84, 242, 167, 0.65);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1.2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 26px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem;
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--good);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.3rem;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.95;
}

h2 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.subcopy {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 0;
}

.walletCard,
.roomCard,
.gateCard,
.pool {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  padding: 0.9rem;
}

.walletCard strong,
.walletCard small,
.gateCard strong,
.gateCard small,
.gateCard span,
.gateCard em,
.pool strong,
.pool span,
.roomCard strong,
.roomCard span {
  display: block;
}

.walletCard small,
.gateCard small,
.gateCard span,
.pool span,
.roomCard span {
  color: var(--muted);
  font-size: 0.78rem;
}


.gateCard {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
}

.gateStats {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.gateCard em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.gateCard em.ok {
  color: var(--good);
}

.gateCard em.blocked {
  color: var(--bad);
}

.dot {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: var(--bad);
  box-shadow: 0 0 18px var(--bad);
}

.dot.connected {
  background: var(--good);
  box-shadow: 0 0 18px var(--good);
}

.grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 260px;
  gap: 1rem;
  align-items: start;
}

.controlsPanel,
.leaderboardPanel,
.gamePanel {
  padding: 1rem;
}

.controlsPanel {
  display: grid;
  gap: 0.9rem;
}

.modeRow,
.joinRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.joinRow {
  grid-template-columns: 1fr auto;
}

.divider {
  height: 1px;
  background: var(--line);
}

.roomCard {
  justify-content: space-between;
  align-items: center;
}

.roomCard button {
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
}

.rules {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.rules p {
  margin-bottom: 0.55rem;
}

.warning {
  color: var(--warn);
}

.statusBar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.statusBar small {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
}


.roundActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: -0.2rem 0 0.8rem;
}

canvas {
  width: 100%;
  max-height: calc(100vh - 260px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.3);
  display: block;
  touch-action: none;
}

.leaderboardPanel ol {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.45rem;
  min-height: 5rem;
}

.leaderboardPanel li {
  padding: 0.66rem 0.72rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
}

.eventLog {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.eventLog p {
  margin-bottom: 0.55rem;
}


.chatPanel {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 20px;
  padding: 0.85rem;
  display: grid;
  gap: 0.65rem;
}
.chatHeader {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.chatHeader small {
  color: var(--muted);
  font-size: 0.78rem;
}
.chatMessages {
  height: 128px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 0.65rem;
}
.chatMessages p {
  margin: 0 0 0.45rem;
  display: grid;
  gap: 0.15rem;
}
.chatMessages strong {
  color: var(--good);
  font-size: 0.78rem;
}
.chatMessages span {
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}
.chatInputRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}
.chatInputRow button {
  padding-left: 1rem;
  padding-right: 1rem;
}

.mobilePad {
  display: none;
  margin-top: 0.8rem;
  text-align: center;
}

.mobilePad button {
  min-width: 4rem;
  margin: 0.15rem;
  padding: 0.9rem 1rem;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero,
  .statusBar {
    flex-direction: column;
    align-items: stretch;
  }
  
.roundActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: -0.2rem 0 0.8rem;
}

canvas {
    min-height: 360px;
  }
  .mobilePad {
    display: block;
  }
}

a { color: var(--good); }
select {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(0, 0, 0, 0.34);
  border-radius: 12px;
  padding: 0.78rem 0.85rem;
  outline: none;
}
.complianceCard,
.cosmeticsCard,
.voteCard {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.35;
}
.check input {
  width: auto;
  margin-top: 0.15rem;
}
.smallGrid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 0.55rem;
}
.muted {
  color: var(--muted);
  line-height: 1.35;
}
.compactBoard {
  min-height: 0 !important;
  margin-bottom: 1rem;
}
.compactBoard li {
  padding: 0.45rem 0.55rem;
  font-size: 0.86rem;
}
.voteOptions {
  display: grid;
  gap: 0.65rem;
}
.voteCard strong,
.voteCard small,
.voteCard em {
  display: block;
}
.voteCard small,
.voteCard em {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.voteCard em {
  color: var(--warn);
  font-style: normal;
}
.voteCard button {
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
}
.legalDoc {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.2rem;
  line-height: 1.6;
}
.legalDoc .panel {
  padding: 1.4rem;
}
.legalDoc li { margin-bottom: 0.45rem; }
@media (max-width: 1100px) {
  .smallGrid { grid-template-columns: 1fr; }
}

/* Landing page */
a { color: inherit; }
.topNav {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  background: rgba(9, 10, 19, 0.7);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  position: sticky;
  top: 0.75rem;
  z-index: 20;
}
.topNav .brand { font-weight: 900; text-decoration: none; }
.topNav div { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.topNav a { color: var(--muted); text-decoration: none; font-weight: 750; font-size: 0.92rem; }
.topNav a:hover { color: var(--text); }
.navButton,
.primaryLink,
.secondaryLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.12rem;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid var(--line);
}
.navButton,
.primaryLink { color: #06140f !important; background: var(--good); border-color: rgba(84,242,167,.8); }
.secondaryLink { color: var(--text); background: var(--panel2); }
.landingHero {
  width: min(1180px, calc(100% - 2rem));
  margin: 3.5rem auto 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
  align-items: center;
}
.heroCopy h1 { font-size: clamp(3rem, 8vw, 7.3rem); letter-spacing: -0.07em; }
.heroCopy h1 span { color: var(--good); text-shadow: 0 0 36px rgba(84,242,167,.44); }
.lead { font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.55; max-width: 760px; color: var(--muted); }
.heroActions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.4rem; }
.heroActions.compactActions { align-content: center; align-items: center; }
.microStats,
.rewardSteps,
.statGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.microStats div,
.rewardSteps div,
.statGrid div,
.infoPanel,
.livePanel,
.featureGrid article,
.tierGrid article {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  border-radius: 22px;
  padding: 1rem;
}
.microStats span,
.rewardSteps span,
.statGrid span { color: var(--muted); display: block; font-size: .8rem; }
.microStats strong,
.rewardSteps strong,
.statGrid strong { display: block; margin-top: .25rem; font-size: 1.02rem; }
.arenaPreview {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    radial-gradient(circle at 25% 18%, rgba(84,242,167,.24), transparent 14rem),
    radial-gradient(circle at 80% 74%, rgba(141,124,255,.32), transparent 16rem),
    rgba(255,255,255,.05);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  box-shadow: var(--shadow);
}
.gridGlow { position:absolute; inset:0; background: radial-gradient(circle, transparent, rgba(0,0,0,.4)); }
.orb,
.playerDot { position: absolute; border-radius: 999px; display: grid; place-items: center; font-weight: 950; }
.orb { width: 44px; height: 44px; color: #07130e; background: var(--good); box-shadow: 0 0 38px var(--good); }
.orbA { left: 18%; top: 38%; }
.orbB { right: 18%; bottom: 28%; background: var(--warn); box-shadow: 0 0 38px var(--warn); }
.playerDot { width: 82px; height: 82px; color: white; background: linear-gradient(135deg, var(--good), #108b63); box-shadow: 0 0 46px rgba(84,242,167,.62); }
.playerA { left: 30%; bottom: 22%; }
.playerB { right: 26%; top: 25%; background: linear-gradient(135deg, #8d7cff, #4931b8); box-shadow: 0 0 46px rgba(141,124,255,.62); }
.previewCard { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; gap: .25rem; border: 1px solid var(--line); border-radius: 24px; background: rgba(0,0,0,.34); padding: 1rem; backdrop-filter: blur(10px); }
.previewCard small { color: var(--muted); }
.landingSection {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,.055);
  box-shadow: var(--shadow);
}
.sectionTitle { max-width: 760px; margin-bottom: 1rem; }
.sectionTitle h2,
.landingSection h2 { font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: 1; letter-spacing: -0.04em; }
.sectionTitle p,
.landingSection p,
.checkList { color: var(--muted); line-height: 1.65; }
.featureGrid,
.tierGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.tierGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.featureGrid article strong,
.tierGrid article strong { display: block; margin-bottom: .5rem; font-size: 1.05rem; }
.featureGrid article p,
.tierGrid article p { margin: 0; font-size: .94rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.infoPanel h3,
.livePanel h3 { margin-top: 0; }
.checkList { display: grid; gap: .65rem; padding-left: 1.2rem; }
.checkList code { word-break: break-all; color: var(--text); }
.legalBlock { background: linear-gradient(135deg, rgba(255,209,102,.12), rgba(255,255,255,.05)); }
.siteFooter { width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 2rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.siteFooter a { color: var(--good); }
.profileStats { display: grid; gap: .75rem; }
.profileStats .statGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.profileStats .statGrid div { padding: .75rem; border-radius: 16px; }
.profileStats h3 { margin: 0; font-size: .95rem; }
.missionList { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.missionList li { display: flex; justify-content: space-between; gap: .5rem; border: 1px solid var(--line); border-radius: 13px; padding: .55rem .65rem; color: var(--muted); }
.missionList strong { color: var(--text); }

@media (max-width: 980px) {
  .landingHero,
  .split { grid-template-columns: 1fr; }
  .featureGrid,
  .tierGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arenaPreview { min-height: 420px; }
}
@media (max-width: 640px) {
  .topNav { position: static; border-radius: 24px; align-items: flex-start; }
  .topNav,
  .topNav div { flex-direction: column; }
  .microStats,
  .rewardSteps,
  .statGrid,
  .featureGrid,
  .tierGrid { grid-template-columns: 1fr; }
  .heroActions a { width: 100%; }
}

/* Coin Clash neon-gold branding refresh */
:root {
  --bg: #050006;
  --panel: rgba(10, 7, 23, 0.78);
  --panel2: rgba(255, 255, 255, 0.11);
  --text: #fff8e9;
  --muted: #c8bed8;
  --line: rgba(255, 213, 79, 0.22);
  --good: #00f5ff;
  --warn: #ffd34d;
  --bad: #ff3d81;
  --gold: #ffd34d;
  --gold2: #ff9f1c;
  --cyan: #00f5ff;
  --magenta: #ff22e6;
  --purple: #7d2cff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.56), 0 0 44px rgba(255, 34, 230, 0.08);
}

body {
  background:
    radial-gradient(circle at 16% 8%, rgba(0, 245, 255, 0.26), transparent 26rem),
    radial-gradient(circle at 85% 12%, rgba(255, 34, 230, 0.28), transparent 28rem),
    radial-gradient(circle at 50% 0%, rgba(255, 211, 77, 0.12), transparent 20rem),
    linear-gradient(135deg, #07000b 0%, #130826 44%, #02080f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 5%, black, transparent 75%);
}

body.landingBody::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: url('/assets/coin-clash-banner.png') center top / min(1600px, 120vw) auto no-repeat;
  opacity: 0.16;
  filter: saturate(1.35) contrast(1.1);
}

.panel,
.landingSection,
.topNav,
.walletCard,
.roomCard,
.gateCard,
.pool,
.complianceCard,
.cosmeticsCard,
.voteCard,
.chatPanel,
.chatMessages,
.microStats div,
.rewardSteps div,
.statGrid div,
.infoPanel,
.livePanel,
.featureGrid article,
.tierGrid article {
  border-color: rgba(255, 211, 77, 0.23);
  background:
    linear-gradient(135deg, rgba(255, 211, 77, 0.09), rgba(255, 34, 230, 0.06) 45%, rgba(0, 245, 255, 0.07)),
    rgba(7, 3, 16, 0.78);
}

.panel,
.landingSection {
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(0,245,255,0.05);
}

button.primary,
.primaryLink,
.navButton {
  color: #130300 !important;
  border-color: rgba(255, 211, 77, 0.9) !important;
  background: linear-gradient(135deg, #fff06a 0%, #ffd34d 35%, #ff9f1c 72%, #ff22e6 120%) !important;
  box-shadow: 0 0 24px rgba(255, 211, 77, 0.25), inset 0 1px 0 rgba(255,255,255,.55);
}

button.secondary,
.secondaryLink,
button:not(.primary) {
  border-color: rgba(0, 245, 255, 0.28);
}

button:hover:not(:disabled),
.primaryLink:hover,
.secondaryLink:hover,
.navButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(0, 245, 255, 0.18), 0 0 34px rgba(255, 34, 230, 0.12);
}

input:focus,
select:focus {
  border-color: rgba(255, 211, 77, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 211, 77, 0.12);
}

.eyebrow,
a,
.topNav a:hover,
.siteFooter a,
.chatMessages strong {
  color: var(--cyan);
}

.warning,
.gateCard em.ok,
.heroCopy h1 span,
.microStats strong,
.rewardSteps strong,
.statGrid strong {
  color: var(--gold);
}

.brandWithLogo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brandWithLogo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255,211,77,.4));
}

.brandWithLogo span {
  color: #fff8e9;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.topNav {
  background: rgba(5, 0, 10, 0.76);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 0 36px rgba(255,34,230,.11);
}

.landingHero {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
}

.heroLogoWrap {
  width: min(360px, 70vw);
  margin-bottom: 1rem;
}

.heroLogoWrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 26px rgba(0,245,255,.25)) drop-shadow(0 0 34px rgba(255,34,230,.22));
}

.heroCopy h1 {
  text-shadow: 0 4px 0 rgba(0,0,0,.45), 0 0 30px rgba(255,34,230,.18);
}

.heroCopy h1 span {
  text-shadow: 0 0 26px rgba(255,211,77,.5), 0 0 44px rgba(255,159,28,.25);
}

.heroVisualStack {
  display: grid;
  gap: 1rem;
}

.promoBannerCard {
  border: 1px solid rgba(255, 211, 77, 0.34);
  border-radius: 28px;
  overflow: hidden;
  background: #030006;
  box-shadow: var(--shadow), 0 0 44px rgba(255, 34, 230, 0.15), 0 0 38px rgba(0,245,255,.12);
}

.promoBannerCard img {
  display: block;
  width: 100%;
  height: auto;
}

.arenaPreview {
  min-height: 360px;
  background:
    linear-gradient(rgba(255, 211, 77, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, .075) 1px, transparent 1px),
    radial-gradient(circle at 25% 18%, rgba(0,245,255,.24), transparent 14rem),
    radial-gradient(circle at 80% 74%, rgba(255,34,230,.28), transparent 16rem),
    radial-gradient(circle at 50% 50%, rgba(255,211,77,.09), transparent 18rem),
    rgba(4, 2, 11, .72);
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
  border-color: rgba(255, 211, 77, 0.28);
}

.orb {
  background: var(--cyan);
  box-shadow: 0 0 38px var(--cyan), 0 0 16px white inset;
}

.orbB {
  background: var(--gold);
  box-shadow: 0 0 38px var(--gold), 0 0 16px white inset;
}

.playerDot {
  color: #120400;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 0 46px rgba(255,211,77,.62), 0 0 18px rgba(255,255,255,.28) inset;
}

.playerB {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 46px rgba(255,34,230,.48), 0 0 26px rgba(0,245,255,.36);
}

.gameBrandBlock {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gameHeroLogo {
  width: clamp(92px, 15vw, 160px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 22px rgba(255,211,77,.32)) drop-shadow(0 0 26px rgba(255,34,230,.18));
}

.hero.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,0,10,.92), rgba(7,3,18,.72)),
    url('/assets/coin-clash-banner.png') center / cover no-repeat;
  border-color: rgba(255, 211, 77, .32);
}

.hero.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 75% 15%, rgba(255, 211, 77, .22), transparent 18rem), radial-gradient(circle at 8% 80%, rgba(0,245,255,.13), transparent 16rem);
}

.hero.panel > * {
  position: relative;
  z-index: 1;
}

canvas {
  border-color: rgba(255, 211, 77, 0.28);
  box-shadow: inset 0 0 70px rgba(0,245,255,.06), 0 0 34px rgba(255,34,230,.06);
  background:
    radial-gradient(circle at 50% 20%, rgba(255,211,77,.09), transparent 18rem),
    radial-gradient(circle at 80% 75%, rgba(255,34,230,.12), transparent 20rem),
    rgba(0,0,0,.42);
}

.chatPanel {
  box-shadow: inset 0 0 24px rgba(0,245,255,.05);
}

.legalBlock {
  background: linear-gradient(135deg, rgba(255, 211, 77, .15), rgba(255, 34, 230, .08), rgba(0, 245, 255, .08));
}

@media (max-width: 980px) {
  .landingHero { grid-template-columns: 1fr; }
  .heroLogoWrap { margin-inline: auto; }
  .heroCopy { text-align: center; }
  .heroActions { justify-content: center; }
}

@media (max-width: 640px) {
  .gameBrandBlock { align-items: flex-start; }
  .gameHeroLogo { width: 84px; }
  .promoBannerCard { border-radius: 20px; }
  .arenaPreview { min-height: 300px; }
}

/* Agent + roadmap expansion */
.panelLink { margin-top: 0.8rem; width: 100%; }
.coinHero { position: relative; }
.coinHero::before {
  content: "";
  position: absolute;
  inset: -2rem;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 8% 20%, rgba(0,245,255,.18), transparent 18rem), radial-gradient(circle at 92% 12%, rgba(255,34,230,.2), transparent 24rem), radial-gradient(circle at 50% 55%, rgba(255,211,77,.08), transparent 28rem);
  filter: blur(2px);
}
.emphasisPanel {
  position: relative;
  overflow: hidden;
}
.emphasisPanel::after,
.agentFlowCard::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(255,211,77,.35), transparent 62%);
  pointer-events: none;
}
.perkGrid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.perkGrid article {
  border: 1px solid rgba(0,245,255,.22);
  border-radius: 22px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0,245,255,.08), rgba(255,34,230,.06)), rgba(5,0,10,.68);
}
.perkGrid span { display:block; color: var(--muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.12em; font-weight:900; }
.perkGrid strong { display:block; margin-top:.45rem; color: var(--text); line-height:1.35; }
.agentBlock {
  background:
    radial-gradient(circle at 12% 20%, rgba(0,245,255,.14), transparent 22rem),
    radial-gradient(circle at 90% 30%, rgba(255,34,230,.16), transparent 22rem),
    rgba(255,255,255,.055);
}
.agentFlowCard {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,211,77,.24);
  border-radius: 26px;
  padding: 1.1rem;
  background: rgba(5,0,10,.76);
}
.agentFlowCard h3 { margin-top: 0; }
.agentFlowCard ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.agentFlowCard li { display: grid; grid-template-columns: 38px 1fr; gap: .75rem; align-items: start; }
.agentFlowCard li span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #130300;
  font-weight: 950;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  box-shadow: 0 0 18px rgba(255,211,77,.25);
}
.agentFlowCard p { margin: 0; color: var(--muted); line-height: 1.45; }
.roadmapSection { overflow: hidden; }
.roadmapParallax {
  display: grid;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  gap: .9rem;
  min-height: 420px;
  perspective: 1000px;
}
.roadCard {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255,211,77,.25);
  border-radius: 28px;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,211,77,.18), transparent 10rem),
    radial-gradient(circle at 90% 78%, rgba(0,245,255,.16), transparent 12rem),
    linear-gradient(160deg, rgba(255,34,230,.08), rgba(7,3,16,.86) 45%, rgba(0,245,255,.08));
  box-shadow: var(--shadow);
  transform: translateY(26px) rotateX(5deg) scale(.98);
  opacity: .72;
  transition: transform .65s cubic-bezier(.2,.8,.2,1), opacity .65s ease, border-color .65s ease;
}
.roadCard.active,
.roadCard:hover {
  transform: translateY(0) rotateX(0deg) scale(1);
  opacity: 1;
  border-color: rgba(255,211,77,.52);
}
.roadCard::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 90deg, transparent, rgba(255,211,77,.18), transparent, rgba(255,34,230,.14), transparent, rgba(0,245,255,.14), transparent);
  animation: coinSpinGlow 7s linear infinite;
  opacity: .45;
}
.roadCard > * { position: relative; z-index: 1; }
.roadCard span { color: var(--cyan); text-transform: uppercase; letter-spacing: .13em; font-weight: 950; font-size: .75rem; }
.roadCard h3 { margin: .6rem 0; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: .95; }
.roadCard p { color: var(--muted); line-height: 1.55; }
@keyframes coinSpinGlow { to { transform: rotate(360deg); } }
.coinRain {
  position: absolute;
  color: var(--gold);
  font-size: 2rem;
  filter: drop-shadow(0 0 16px rgba(255,211,77,.5));
  animation: coinFloat 4.8s ease-in-out infinite;
}
.coinRainA { left: 10%; top: 12%; }
.coinRainB { right: 12%; top: 48%; animation-delay: -2s; }
@keyframes coinFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity:.85; }
  50% { transform: translate3d(18px,-22px,0) scale(1.2); opacity:1; }
}
.whitepaperHero {
  width: min(1040px, calc(100% - 2rem));
  margin: 2rem auto 1rem;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border: 1px solid rgba(255,211,77,.25);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,211,77,.1), rgba(255,34,230,.06), rgba(0,245,255,.06)), rgba(5,0,10,.78);
  box-shadow: var(--shadow);
}
.whitepaperHero h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.whitepaperDoc {
  width: min(1040px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 1rem;
}
.whitepaperDoc section,
.agentDoc section {
  border: 1px solid rgba(255,211,77,.2);
  border-radius: 26px;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: rgba(5,0,10,.72);
  box-shadow: var(--shadow);
}
.whitepaperDoc h2,
.agentDoc h2 { font-size: clamp(1.55rem, 4vw, 2.6rem); line-height: 1; margin-bottom: .8rem; }
.whitepaperDoc p,
.whitepaperDoc li,
.agentDoc p,
.agentDoc li { color: var(--muted); line-height: 1.65; }
.whitepaperDoc code,
.agentDoc code { color: var(--gold); word-break: break-word; }
.tokenomicsTable {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.tokenomicsTable div {
  border: 1px solid rgba(0,245,255,.22);
  border-radius: 18px;
  padding: .9rem;
  background: rgba(0,245,255,.05);
}
.tokenomicsTable span { display:block; color: var(--muted); font-size:.8rem; }
.tokenomicsTable strong { display:block; margin-top:.3rem; font-size:1.1rem; }
.agentDoc {
  width: min(1040px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 1rem;
}
.agentChecklist { display: grid; gap: .65rem; padding-left: 1.2rem; }
.agentWarning { color: var(--warn) !important; }
.holderBenefitList { columns: 2; }
.holderBenefitList li { break-inside: avoid; margin-bottom: .4rem; }
.perkCardPlay {
  border: 1px solid rgba(255,211,77,.22);
  border-radius: 18px;
  padding: .9rem;
  background: linear-gradient(135deg, rgba(255,211,77,.08), rgba(0,245,255,.05)), rgba(0,0,0,.18);
}
.perkCardPlay ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }
@media (max-width: 1100px) {
  .roadmapParallax { grid-template-columns: 1fr; min-height: 0; }
  .roadCard { min-height: 220px; }
  .perkGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .perkGrid, .tokenomicsTable { grid-template-columns: 1fr; }
  .holderBenefitList { columns: 1; }
}

/* Active lobby / custom entry patch */
.customEntryCard,
.activeLobbyCard {
  border: 1px solid rgba(255, 211, 77, 0.18);
  background: linear-gradient(145deg, rgba(255, 211, 77, 0.08), rgba(0, 245, 255, 0.045), rgba(255, 34, 230, 0.055));
  border-radius: 18px;
  padding: 14px;
  margin: 14px 0;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.18);
}
.customEntryCard h2,
.activeLobbyCard h2 {
  margin: 0 0 8px;
}
.coinPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 0 12px;
  border: 1px solid rgba(255, 211, 77, 0.35);
  border-radius: 14px;
  color: #ffd34d;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.22);
}
.activeLobbies {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}
.lobbyItem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(0, 245, 255, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}
.lobbyItem strong,
.lobbyItem small,
.lobbyItem em {
  display: block;
}
.lobbyItem strong { color: #fff; }
.lobbyItem small { color: rgba(255, 255, 255, 0.68); margin-top: 2px; }
.lobbyItem em { color: #00f5ff; font-style: normal; font-weight: 800; margin-top: 4px; }
.lobbyItem button { white-space: nowrap; }
@media (max-width: 720px) {
  .lobbyItem { grid-template-columns: 1fr; }
  .lobbyItem button { width: 100%; }
}
