:root {
  color-scheme: dark;
  --bg: #04060d;
  --bg-ink: #080b15;
  --bg-grid: rgba(77, 104, 148, 0.13);
  --panel: rgba(8, 14, 27, 0.92);
  --panel-strong: rgba(11, 18, 34, 0.98);
  --panel-soft: rgba(12, 22, 36, 0.76);
  --line: rgba(112, 130, 176, 0.26);
  --line-bright: rgba(129, 103, 255, 0.76);
  --text: #f7fbff;
  --muted: #9ea9bc;
  --soft: #cad2df;
  --mint: #27f4cb;
  --cyan: #40dff7;
  --blue: #51a8ff;
  --violet: #9567ff;
  --magenta: #ef48ff;
  --green: #6bf079;
  --amber: #ffd05a;
  --orange: #ff9a4a;
  --red: #ff5f78;
  --radius: 8px;
  --tap: 44px;
  --shell-width: 720px;
  --portrait-width: 620px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --glow-mint: 0 0 18px rgba(39, 244, 203, 0.26);
  --glow-violet: 0 0 22px rgba(149, 103, 255, 0.26);
  --font-ui: Bahnschrift, "Aptos Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Aptos", Bahnschrift, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-number: Bahnschrift, "Cascadia Mono", "Segoe UI", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(80, 110, 155, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 110, 155, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, #050712 0%, #08111a 46%, #090610 100%);
  background-size: 52px 52px, 52px 52px, auto;
  color: var(--text);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(39, 244, 203, 0.11), transparent 32%),
    linear-gradient(245deg, rgba(149, 103, 255, 0.13), transparent 36%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 50% -10%, rgba(39, 244, 203, 0.16), transparent 38%);
  opacity: 0.7;
  mix-blend-mode: screen;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--mint);
  color: #04100e;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell,
.shell {
  width: min(100%, var(--shell-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 16px 32px;
}

.top-nav,
.page-title-row,
.section-header,
.match-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.top-nav {
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  gap: 12px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.65rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  padding: 5px;
  border: 1px solid rgba(39, 244, 203, 0.46);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(6, 12, 24, 0.95), rgba(24, 11, 38, 0.88));
  box-shadow: var(--glow-mint);
}

.brand span {
  background: linear-gradient(90deg, #fff 0%, var(--mint) 44%, var(--violet) 78%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.top-actions,
.button-row,
.inline-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-button,
.button,
button,
.match-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  gap: 9px;
  border: 1px solid rgba(39, 244, 203, 0.72);
  border-radius: var(--radius);
  padding: 10px 15px;
  background:
    linear-gradient(135deg, rgba(39, 244, 203, 0.86), rgba(68, 134, 255, 0.78) 48%, rgba(149, 103, 255, 0.86));
  color: #fbfdff;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(39, 244, 203, 0.16);
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button.secondary,
.wallet-button.connected,
.icon-button {
  border-color: rgba(84, 109, 157, 0.48);
  background: rgba(9, 15, 28, 0.88);
  box-shadow: none;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
.label,
.badge,
.player-name,
.rank,
.play-card,
.metric-card strong,
.token-number,
.token-pill strong {
  font-family: var(--font-ui);
}

h1 {
  margin-bottom: 12px;
  font-size: 2.18rem;
  line-height: 1.04;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: 1.26rem;
  line-height: 1.16;
  font-weight: 900;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

p {
  line-height: 1.5;
}

p,
small,
.muted,
label span,
.label {
  color: var(--muted);
}

.eyebrow,
.label {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arena-panel,
.status-card,
.card {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(10, 18, 32, 0.98), rgba(7, 11, 24, 0.94)),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 28px),
    linear-gradient(90deg, rgba(39, 244, 203, 0.08), rgba(149, 103, 255, 0.09));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -18px 48px rgba(0, 0, 0, 0.16);
}

.arena-panel,
.card,
.status-card {
  padding: 16px;
}

.compact {
  padding: 14px;
}

.page-title-row {
  margin: 0 0 14px;
}

.centered-panel {
  display: grid;
  gap: 18px;
  place-items: stretch;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.92fr);
  align-items: center;
  gap: 18px;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(149, 103, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(4, 8, 17, 0.9), rgba(6, 8, 21, 0.78) 54%, rgba(17, 7, 32, 0.88)),
    url("/static/img/generated/solchess/hero-lobby-arena.webp") center / cover no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 26%, rgba(39, 244, 203, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 12, 0.1), rgba(2, 5, 12, 0.56) 58%, rgba(3, 4, 12, 0.72));
}

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

.board-stage,
.board-wrap {
  min-width: 0;
  width: 100%;
}

.hero-panel .board-stage {
  border: 1px solid rgba(39, 244, 203, 0.2);
  border-radius: var(--radius);
  padding: 7px;
  background: rgba(3, 7, 16, 0.66);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(39, 244, 203, 0.12);
}

.board-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(122, 142, 210, 0.72);
  border-radius: var(--radius);
  background: #090d18;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 36px rgba(39, 244, 203, 0.08),
    0 22px 52px rgba(0, 0, 0, 0.44);
}

.board-square {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--text);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.board-square:disabled {
  opacity: 1;
}

.board-square.dark {
  background:
    linear-gradient(145deg, rgba(12, 16, 36, 0.98), rgba(5, 10, 25, 0.98)),
    linear-gradient(45deg, rgba(39, 244, 203, 0.06), transparent 58%);
}

.board-square.light {
  background:
    linear-gradient(145deg, rgba(93, 96, 143, 0.98), rgba(64, 73, 112, 0.98)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08), transparent 64%);
}

.board-square.from {
  box-shadow: inset 0 0 0 3px var(--violet);
}

.board-square.to {
  box-shadow: inset 0 0 0 3px var(--mint);
}

.board-square.check {
  box-shadow: inset 0 0 0 3px var(--red);
}

.board-square.selected {
  box-shadow: inset 0 0 0 4px var(--amber);
}

.board-square.legal::after,
.board-square.premove::after,
.board-square.pending::after {
  content: "";
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: rgba(39, 244, 203, 0.72);
  pointer-events: none;
}

.board-square.premove::after {
  background: rgba(149, 103, 255, 0.78);
}

.board-square.pending::after {
  background: rgba(255, 208, 90, 0.78);
}

.piece {
  display: grid;
  width: 76%;
  height: 76%;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.38);
}

.piece.white {
  background: linear-gradient(180deg, #fff, #d8e1ef);
  color: #121827;
}

.piece.black {
  background: linear-gradient(180deg, #2b3144, #070a12);
  color: #f5f7fb;
}

.piece-img {
  width: 88%;
  height: 88%;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 8px 6px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 5px rgba(39, 244, 203, 0.18))
    saturate(1.12)
    contrast(1.06);
}

.piece-img.white {
  filter:
    drop-shadow(0 8px 6px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.22))
    saturate(1.08)
    contrast(1.08);
}

.piece-img.black {
  filter:
    drop-shadow(0 8px 6px rgba(0, 0, 0, 0.66))
    drop-shadow(0 0 6px rgba(149, 103, 255, 0.3))
    saturate(1.18)
    contrast(1.08);
}

.coord-label {
  position: absolute;
  z-index: 1;
  display: none;
  color: rgba(247, 251, 255, 0.54);
  font-family: var(--font-number);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.board-square:nth-child(8n + 1) .coord-rank {
  display: block;
}

.coord-rank {
  left: 4px;
  top: 4px;
}

.coord-file {
  right: 4px;
  bottom: 4px;
}

.board-files {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  padding-top: 5px;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-number);
  font-weight: 900;
}

.play-stack {
  display: grid;
  align-content: center;
  gap: 14px;
}

.play-stack::before {
  content: "5+3 Fast Chess";
  color: var(--violet);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.play-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 98px;
  gap: 16px;
  border: 1px solid rgba(39, 244, 203, 0.72);
  border-radius: var(--radius);
  padding: 19px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 0 28px rgba(39, 244, 203, 0.18), 0 16px 34px rgba(0, 0, 0, 0.32);
}

.play-card.casual {
  background: linear-gradient(135deg, rgba(39, 244, 203, 0.86), rgba(62, 101, 214, 0.78) 72%);
}

.play-card.competitive {
  border-color: rgba(239, 72, 255, 0.86);
  background: linear-gradient(135deg, rgba(151, 60, 242, 0.95), rgba(85, 14, 145, 0.88) 52%, rgba(18, 80, 103, 0.72));
  box-shadow: inset 0 0 28px rgba(239, 72, 255, 0.2), 0 16px 34px rgba(0, 0, 0, 0.34);
}

.play-card strong {
  display: block;
  font-size: 1.28rem;
}

.play-card span:last-child {
  min-width: 0;
}

.play-card small {
  color: #e8fff9;
  font-size: 1rem;
  font-weight: 900;
}

.as-button {
  cursor: pointer;
}

.play-icon,
.icon-card,
.nav-icon,
.send-icon,
.back-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.play-icon.bolt::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 7px;
  width: 10px;
  height: 29px;
  transform: skew(-18deg);
  background: #fff;
  clip-path: polygon(45% 0, 100% 0, 67% 39%, 100% 39%, 31% 100%, 46% 54%, 14% 54%);
}

.play-icon.cup::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  width: 20px;
  height: 17px;
  border: 4px solid #fff;
  border-top-width: 5px;
  border-radius: 2px 2px 9px 9px;
  box-shadow: 0 17px 0 -6px #fff;
}

.icon-card {
  width: 24px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-card::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.icon-card.large {
  width: 58px;
  height: 44px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.success,
.dot.success {
  color: var(--green);
}

.dot.success {
  display: inline-block;
  background: var(--green);
}

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

.danger {
  color: var(--red);
}

.violet {
  color: var(--violet);
}

.blue {
  color: var(--blue);
}

.mint {
  color: var(--mint);
}

.badge,
.status-dot {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  gap: 7px;
  border: 1px solid rgba(100, 119, 164, 0.4);
  border-radius: var(--radius);
  padding: 4px 9px;
  background: rgba(8, 13, 24, 0.72);
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.badge.success {
  border-color: rgba(107, 240, 121, 0.38);
  color: var(--green);
}

.badge.warning {
  border-color: rgba(255, 208, 90, 0.46);
  color: var(--amber);
}

.badge.danger {
  border-color: rgba(255, 95, 120, 0.46);
  color: var(--red);
}

.token-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(100%, 560px);
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(105, 122, 177, 0.42);
  border-radius: var(--radius);
  padding: 13px 15px;
  background:
    linear-gradient(90deg, rgba(16, 47, 55, 0.82), rgba(15, 15, 38, 0.96)),
    rgba(10, 18, 31, 0.9);
  box-shadow: var(--shadow);
}

.token-pill::before,
.arena-panel::before,
.status-card::before,
.card::before,
.asset-card::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.arena-panel,
.status-card,
.card,
.token-pill,
.metric-card,
.asset-card {
  position: relative;
}

.arena-panel::before,
.status-card::before,
.card::before,
.token-pill::before,
.metric-card::before,
.asset-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
  opacity: 0.72;
}

.token-pill > img:first-child,
.token-status > img,
.token-detail > img {
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(145deg, rgba(39, 244, 203, 0.15), rgba(149, 103, 255, 0.22));
  box-shadow: var(--glow-mint), var(--glow-violet);
}

.profile-panel > img:not(.profile-banner-art),
.match-hud img,
.avatar-img {
  object-fit: cover;
}

.profile-panel > img:not(.profile-banner-art) {
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#070b14, #070b14) padding-box,
    linear-gradient(135deg, var(--mint), var(--violet), var(--magenta)) border-box;
  box-shadow:
    0 0 28px rgba(39, 244, 203, 0.22),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.feature-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.feature-panel.solo {
  grid-template-columns: 1fr;
  justify-items: center;
}

.feature-panel.wide-art {
  grid-template-columns: 1fr;
  padding: 0;
}

.store-showcase {
  margin-bottom: 14px;
}

.feature-art {
  display: block;
  width: min(100%, 150px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(39, 244, 203, 0.34);
  border-radius: var(--radius);
  background: #050812;
  box-shadow:
    0 0 24px rgba(39, 244, 203, 0.16),
    0 18px 46px rgba(0, 0, 0, 0.34);
}

.token-detail > img.feature-art,
.feature-panel .feature-art {
  border-radius: var(--radius);
  padding: 0;
}

.feature-art.wide {
  width: 100%;
  height: clamp(150px, 28vw, 250px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: var(--radius);
}

.token-pill strong {
  display: block;
  font-size: 1.36rem;
}

.token-pill strong span,
.token-number {
  color: var(--mint);
}

.chain-mark {
  opacity: 0.96;
  filter: drop-shadow(0 0 10px rgba(149, 103, 255, 0.5));
}

.chat-list,
.row-list,
.timeline-list {
  display: grid;
  gap: 10px;
}

.chat-list.tall {
  gap: 14px;
}

.chat-row,
.game-row,
.finance-row,
.timeline-list article,
.leaderboard-list li {
  display: grid;
  align-items: center;
  min-height: 54px;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

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

.chat-row p {
  margin-bottom: 0;
}

.chat-row span,
.game-row span,
.finance-row span,
.timeline-list span {
  color: var(--muted);
}

.avatar-dot,
.avatar-img {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, var(--mint), var(--violet) 60%, #0b1020);
  box-shadow: 0 0 18px rgba(39, 244, 203, 0.16);
}

.avatar-img {
  object-fit: cover;
  background: #070b14;
}

.avatar-dot::after {
  content: attr(data-initial);
  color: #eafffb;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 900;
}

.avatar-dot.violet {
  background: radial-gradient(circle at 35% 28%, var(--violet), #101935 68%);
}

.avatar-dot.blue {
  background: radial-gradient(circle at 35% 28%, var(--blue), #101935 68%);
}

.avatar-dot.success,
.avatar-dot.mint {
  background: radial-gradient(circle at 35% 28%, var(--green), #0d2b24 68%);
}

.avatar-dot.danger {
  background: radial-gradient(circle at 35% 28%, var(--red), #2c1116 68%);
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.button-row {
  margin: 12px 0;
}

input,
select {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid rgba(102, 119, 164, 0.42);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(5, 9, 18, 0.86);
  color: var(--text);
  font: inherit;
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.send-icon {
  width: 22px;
  height: 18px;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 20% 52%);
  background: var(--cyan);
}

.back-icon {
  width: 18px;
  height: 18px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.split-grid,
.metric-grid,
.asset-grid,
.action-grid,
.toggle-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-metrics {
  gap: 10px;
}

.store-metrics .metric-card {
  padding: 12px;
}

.store-metrics .metric-card strong {
  font-size: 1.12rem;
}

.asset-grid,
.action-grid,
.toggle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asset-grid {
  align-items: stretch;
}

.store-grid {
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.asset-card {
  min-width: 0;
  border: 1px solid rgba(100, 119, 164, 0.34);
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(145deg, rgba(9, 18, 32, 0.94), rgba(8, 10, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.metric-card span,
.asset-card span {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 7px 0;
  color: var(--text);
  font-size: 1.48rem;
  overflow-wrap: anywhere;
}

.metric-card.success strong {
  color: var(--green);
}

.metric-card.warning strong {
  color: var(--amber);
}

.metric-card.danger strong {
  color: var(--red);
}

.metric-card.blue strong {
  color: var(--blue);
}

.metric-card.violet strong {
  color: var(--violet);
}

.game-row,
.finance-row {
  grid-template-columns: auto 1fr auto;
}

.leaderboard-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li {
  grid-template-columns: 34px auto minmax(0, 1fr) auto auto;
  min-height: 58px;
  border: 1px solid rgba(104, 121, 166, 0.28);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: rgba(7, 12, 23, 0.55);
}

.leaderboard-list li:first-child {
  border-color: rgba(255, 208, 90, 0.58);
  background: linear-gradient(90deg, rgba(255, 208, 90, 0.12), rgba(8, 13, 24, 0.62));
}

.rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(149, 103, 255, 0.22);
  color: var(--text);
  font-weight: 900;
}

.leaderboard-list li:first-child .rank {
  background: linear-gradient(135deg, var(--amber), #f7a832);
  color: #1f1605;
}

.player-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.country {
  color: var(--muted);
  font-size: 0.84rem;
}

.token-status,
.profile-panel,
.token-detail,
.wallet-connect-preview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.profile-panel {
  min-height: 150px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 17, 0.84), rgba(7, 11, 24, 0.72) 48%, rgba(6, 8, 18, 0.9)),
    linear-gradient(145deg, rgba(39, 244, 203, 0.09), rgba(149, 103, 255, 0.14)),
    rgba(8, 14, 27, 0.94);
}

.profile-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -48px 26%;
  z-index: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(39, 244, 203, 0.2), rgba(239, 72, 255, 0.16), transparent);
  filter: blur(20px);
  opacity: 0.9;
}

.profile-banner-art {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.34;
  filter: saturate(1.14) contrast(1.06);
}

.status-strip,
.quote-list,
.datagrid,
dl {
  margin: 0;
}

.status-strip,
.quote-list {
  display: grid;
  gap: 8px;
}

.status-strip div,
.quote-list div,
.datagrid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

dt {
  color: var(--muted);
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--text);
}

.deposit-destination {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
}

.qr-art {
  border-radius: var(--radius);
  background: #080d17;
  box-shadow: var(--glow-mint);
}

.amount-line strong {
  color: var(--mint);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0;
  list-style: none;
}

.stepper li {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.stepper li span {
  display: block;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.stepper li.current {
  color: var(--violet);
}

.stepper li.current span {
  border-color: var(--violet);
  box-shadow: 0 0 0 6px rgba(149, 103, 255, 0.16);
}

.timeline-list article {
  grid-template-columns: minmax(90px, auto) 1fr;
}

.asset-card {
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 34, 0.98), rgba(5, 9, 18, 0.98)),
    linear-gradient(135deg, rgba(39, 244, 203, 0.08), rgba(149, 103, 255, 0.12));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.asset-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(39, 244, 203, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(239, 72, 255, 0.13), transparent 38%);
  opacity: 0.84;
}

.token-pill > *,
.arena-panel > *,
.status-card > *,
.card > *,
.metric-card > *,
.asset-card > * {
  position: relative;
  z-index: 1;
}

.asset-card img {
  width: 100%;
  height: 160px;
  max-height: none;
  border-bottom: 1px solid rgba(39, 244, 203, 0.18);
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  background: #070b14;
  filter: saturate(1.16) contrast(1.08);
  box-shadow:
    inset 0 -52px 48px rgba(0, 0, 0, 0.46),
    0 18px 46px rgba(39, 244, 203, 0.1);
}

.asset-card > span,
.asset-card > h2,
.asset-card > h3,
.asset-card > p,
.asset-card > dl,
.asset-card > form,
.asset-card > .button {
  margin-right: 12px;
  margin-left: 12px;
}

.asset-card > span {
  color: var(--violet);
  font-weight: 900;
}

.asset-card > p {
  margin-bottom: 0;
  color: var(--soft);
  font-size: 0.92rem;
}

.asset-card h2,
.asset-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.asset-card form {
  margin-bottom: 12px;
}

.asset-card button {
  width: 100%;
}

.quote-list.compact div {
  padding: 4px 0;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  border: 1px solid rgba(100, 119, 164, 0.42);
  border-radius: var(--radius);
  overflow: hidden;
}

.segmented button,
.segmented a {
  min-height: 36px;
  border: 0;
  border-radius: 0;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.segmented button[aria-pressed="true"],
.segmented a[aria-pressed="true"] {
  background: rgba(149, 103, 255, 0.28);
  color: var(--text);
}

.leaderboard-prize-art {
  display: block;
  width: min(100%, 360px);
  margin: 12px auto 16px;
  border: 1px solid rgba(149, 103, 255, 0.42);
  border-radius: var(--radius);
  background: #050812;
  box-shadow: var(--glow-violet), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.home-summary-grid {
  align-items: start;
}

.home-summary-grid .arena-panel {
  height: 100%;
}

.home-summary-grid .row-list,
.home-summary-grid .leaderboard-list {
  gap: 6px;
}

.home-token-status {
  overflow: hidden;
}

.home-token-status::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(39, 244, 203, 0.18), transparent 66%);
}

.control-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.control-form label {
  margin: 0;
}

.control-form button {
  align-self: end;
}

.match-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100%, var(--portrait-width));
  gap: 14px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(100, 119, 164, 0.34);
  border-radius: var(--radius);
  padding: 14px 14px 20px;
  background:
    linear-gradient(180deg, rgba(4, 7, 15, 0.78), rgba(5, 8, 17, 0.94)),
    rgba(5, 8, 17, 0.94);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.match-shell[data-rich-match-art]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 6, 14, 0.52), rgba(4, 7, 15, 0.9) 74%),
    url("/static/img/generated/solchess/match-arena-showcase.webp") center top / cover no-repeat;
  opacity: 0.36;
}

.match-shell[data-rich-match-art]::after {
  content: "";
  position: absolute;
  inset: 36% -12% auto;
  z-index: -1;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(39, 244, 203, 0.22), rgba(149, 103, 255, 0.2), transparent);
  filter: blur(28px);
  opacity: 0.74;
}

.match-shell > * {
  position: relative;
  z-index: 1;
}

.match-topbar h1 {
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}

.match-topbar h1 span {
  color: var(--mint);
}

.match-hud {
  display: grid;
  grid-template-columns: 92px 1fr minmax(128px, 0.34fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(100, 119, 164, 0.36);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(9, 16, 30, 0.96), rgba(6, 11, 22, 0.96)),
    linear-gradient(90deg, rgba(149, 103, 255, 0.08), rgba(39, 244, 203, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.match-hud.player {
  grid-template-columns: minmax(128px, 0.34fr) 1fr 92px;
  border-color: rgba(39, 244, 203, 0.36);
}

.match-hud img {
  width: 86px;
  height: 86px;
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#070b14, #070b14) padding-box,
    linear-gradient(135deg, var(--mint), var(--violet), var(--magenta)) border-box;
  box-shadow:
    0 0 24px rgba(39, 244, 203, 0.16),
    0 16px 28px rgba(0, 0, 0, 0.34);
}

.match-hud h2 {
  margin: 0 0 4px;
}

.match-hud strong {
  color: var(--mint);
}

.clock {
  position: relative;
  display: grid;
  min-width: 116px;
  min-height: 70px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(39, 244, 203, 0.38);
  border-radius: var(--radius);
  background: rgba(4, 8, 16, 0.78);
  font-family: var(--font-number);
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: inset 0 0 22px rgba(39, 244, 203, 0.08);
}

.clock::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 10px;
  left: 12%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint) 0 58%, rgba(255, 255, 255, 0.12) 58% 100%);
}

.match-board-slot {
  position: relative;
  padding: 0 6px;
}

.promotion-tray {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(78%, 320px);
  gap: 8px;
  transform: translateX(-50%);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(7, 11, 18, 0.96);
  box-shadow: var(--shadow);
}

.promotion-tray[hidden] {
  display: none;
}

.promotion-tray button {
  min-height: 52px;
  font-size: 1.1rem;
}

.match-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.match-actions button,
.match-action {
  flex-direction: column;
  min-width: 0;
  min-height: 74px;
  padding: 8px;
  border-color: rgba(100, 119, 164, 0.42);
  background:
    linear-gradient(145deg, rgba(16, 26, 48, 0.98), rgba(8, 11, 25, 0.96)),
    linear-gradient(135deg, rgba(39, 244, 203, 0.12), rgba(149, 103, 255, 0.16));
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

.match-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border: 1px solid rgba(107, 240, 121, 0.3);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(8, 32, 21, 0.72);
}

.match-status.reconnecting,
.wallet-button.reconnecting {
  border-color: rgba(255, 208, 90, 0.48);
  color: var(--amber);
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 15;
  width: min(100%, var(--portrait-width));
  max-height: 46vh;
  transform: translateX(-50%);
  overflow: auto;
  border: 1px solid var(--line-bright);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 12px 16px 22px;
  background: rgba(8, 11, 18, 0.98);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
}

.bottom-sheet[hidden] {
  display: none;
}

.sheet-handle {
  width: 52px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 99px;
  background: var(--line);
}

.emote-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.emote-grid button {
  display: grid;
  min-height: 112px;
  gap: 5px;
  padding: 10px;
  align-content: start;
  overflow: hidden;
}

.emote-grid button.selected {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(39, 244, 203, 0.16);
}

.emote-art {
  width: 100%;
  height: 62px;
  border: 1px solid rgba(39, 244, 203, 0.22);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  background: rgba(5, 8, 17, 0.88);
  filter: saturate(1.14) contrast(1.06);
}

.emote-grid small {
  color: var(--muted);
  font-weight: 900;
}

.replay-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 16px;
  align-items: start;
  overflow: hidden;
}

.rich-match-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 17, 0.52), rgba(5, 8, 17, 0.9)),
    url("/static/img/generated/solchess/match-arena-showcase.webp") center top / cover no-repeat;
  opacity: 0.28;
}

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

.message-stack {
  margin-bottom: 12px;
}

.message {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(10, 18, 31, 0.86);
}

.toggle-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(100, 119, 164, 0.34);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(10, 18, 31, 0.82);
}

.toggle-grid input {
  width: auto;
}

.bottom-nav {
  position: sticky;
  bottom: 14px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(calc(100% - 24px), var(--portrait-width));
  gap: 4px;
  margin: 14px auto 0;
  border: 1px solid rgba(100, 119, 164, 0.42);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(6, 10, 19, 0.96);
  box-shadow: var(--shadow);
}

.bottom-nav a {
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-items: center;
  gap: 4px;
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
}

.bottom-nav a:hover,
.bottom-nav a:focus-visible {
  background: rgba(39, 244, 203, 0.1);
  color: var(--mint);
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--mint), var(--blue), var(--violet));
}

.nav-icon.home {
  clip-path: polygon(50% 0, 100% 43%, 86% 43%, 86% 100%, 60% 100%, 60% 70%, 40% 70%, 40% 100%, 14% 100%, 14% 43%, 0 43%);
}

.nav-icon.swords {
  clip-path: polygon(15% 0, 50% 35%, 85% 0, 100% 15%, 65% 50%, 100% 85%, 85% 100%, 50% 65%, 15% 100%, 0 85%, 35% 50%, 0 15%);
}

.nav-icon.trophy {
  border-radius: 50% 50% 45% 45%;
}

.nav-icon.wallet {
  border-radius: 4px;
}

.nav-icon.more {
  height: 8px;
  width: 28px;
  border-radius: 99px;
}

@media (max-width: 760px) {
  .app-shell,
  .shell {
    width: 100%;
    padding: 12px 10px 18px;
  }

  .top-nav {
    margin-bottom: 10px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .wallet-button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .token-pill {
    grid-template-columns: 42px minmax(0, 1fr) 36px;
    gap: 9px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .token-pill > img:first-child {
    width: 42px;
    height: 42px;
    padding: 4px;
  }

  .token-pill strong {
    font-size: 1.08rem;
    line-height: 1.08;
  }

  .token-pill .label {
    margin-bottom: 2px;
    font-size: 0.68rem;
  }

  .token-pill .chain-mark {
    width: 36px;
    height: 36px;
  }

  .hero-panel,
  .split-grid,
  .metric-grid,
  .metric-grid.two,
  .metric-grid.three,
  .metric-grid.four,
  .asset-grid,
  .asset-grid.compact,
  .action-grid,
  .toggle-grid,
  .replay-layout,
  .control-form {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1.03fr) minmax(136px, 0.97fr);
    align-items: start;
    gap: 8px;
    padding: 10px;
  }

  .hero-panel .board-grid {
    border-radius: 7px;
  }

  .hero-panel .board-files {
    font-size: 0.58rem;
  }

  .play-stack {
    gap: 8px;
  }

  .play-stack::before {
    font-size: 0.62rem;
  }

  .play-stack h1 {
    margin-bottom: 0;
    font-size: 1.08rem;
  }

  .play-card {
    min-height: 62px;
    gap: 7px;
    padding: 9px;
  }

  .play-card strong {
    font-size: 0.8rem;
    line-height: 1.08;
    white-space: normal;
  }

  .play-card small {
    font-size: 0.72rem;
  }

  .play-icon {
    width: 32px;
    height: 32px;
  }

  .home-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
  }

  .home-summary-grid .arena-panel {
    height: auto;
    padding: 9px;
  }

  .home-summary-grid .section-header {
    gap: 6px;
  }

  .home-summary-grid h2 {
    font-size: 0.88rem;
  }

  .home-summary-grid .section-header a {
    font-size: 0.7rem;
    font-weight: 900;
  }

  .home-summary-grid .game-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    min-height: 34px;
    gap: 6px;
    padding: 4px 0;
  }

  .home-summary-grid .game-row strong,
  .home-summary-grid .game-row span {
    font-size: 0.7rem;
    line-height: 1.12;
  }

  .home-summary-grid .avatar-img,
  .home-summary-grid .avatar-dot {
    width: 26px;
    height: 26px;
  }

  .home-summary-grid .leaderboard-list {
    margin-top: 8px;
  }

  .home-summary-grid .leaderboard-list li {
    grid-template-columns: 23px 26px minmax(0, 1fr) auto;
    min-height: 34px;
    gap: 5px;
    padding: 4px 5px;
  }

  .home-summary-grid .leaderboard-list .rank {
    width: 22px;
    height: 22px;
    font-size: 0.66rem;
  }

  .home-summary-grid .leaderboard-list .country {
    display: none;
  }

  .home-summary-grid .leaderboard-list .player-name,
  .home-summary-grid .leaderboard-list strong {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .home-token-status {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .home-token-status > img {
    width: 48px;
    height: 48px;
  }

  .home-token-status .status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .home-token-status .status-strip div {
    display: grid;
    gap: 2px;
    border-bottom: 0;
    padding: 0;
  }

  .home-token-status dt,
  .home-token-status dd {
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .home-token-status .button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .asset-grid.store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .metric-grid.three.store-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-metrics .metric-card {
    padding: 9px;
  }

  .store-metrics .metric-card span,
  .store-metrics .metric-card small {
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .store-metrics .metric-card strong {
    margin: 4px 0;
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .store-grid .asset-card img {
    height: 118px;
  }

  .store-grid .asset-card > span,
  .store-grid .asset-card > p {
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .store-grid .asset-card h2,
  .store-grid .asset-card h3 {
    font-size: 0.86rem;
    line-height: 1.12;
  }

  .store-grid .asset-card > span,
  .store-grid .asset-card > h2,
  .store-grid .asset-card > h3,
  .store-grid .asset-card > p,
  .store-grid .asset-card > dl,
  .store-grid .asset-card > form,
  .store-grid .asset-card > .button {
    margin-right: 10px;
    margin-left: 10px;
  }

  .store-grid .quote-list.compact div {
    padding: 3px 0;
    font-size: 0.68rem;
  }

  .store-grid .asset-card button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .leaderboard-prize-art {
    height: 142px;
    object-fit: cover;
    object-position: center;
  }

  .deposit-destination,
  .token-status,
  .profile-panel,
  .token-detail,
  .wallet-connect-preview {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    min-height: 124px;
    gap: 10px;
    padding: 12px;
  }

  .profile-panel > img:not(.profile-banner-art) {
    width: 72px;
    height: 72px;
  }

  .profile-panel h1 {
    margin-bottom: 4px;
    font-size: 1.12rem;
    line-height: 1.1;
  }

  .profile-panel p {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .qr-art {
    width: 160px;
    justify-self: center;
  }

  .section-header,
  .page-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .leaderboard-list li {
    grid-template-columns: 32px auto 1fr auto;
  }

  .country {
    display: none;
  }

  .home-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .home-summary-grid .arena-panel {
    height: auto;
  }

  .home-summary-grid .leaderboard-list li {
    grid-template-columns: 23px 26px minmax(0, 1fr) auto;
    min-height: 34px;
    gap: 5px;
    padding: 4px 5px;
  }

  .home-summary-grid .leaderboard-list .rank {
    width: 22px;
    height: 22px;
    font-size: 0.66rem;
  }

  .home-summary-grid .leaderboard-list .country {
    display: none;
  }

  .home-summary-grid .leaderboard-list .player-name,
  .home-summary-grid .leaderboard-list strong,
  .home-summary-grid .game-row strong,
  .home-summary-grid .game-row span {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .home-token-status {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .match-topbar .wallet-button {
    display: none;
  }

  .match-shell {
    gap: 10px;
    padding: 10px 10px 14px;
  }

  .match-hud {
    grid-template-columns: 68px minmax(0, 1fr) minmax(104px, 0.34fr);
    gap: 10px;
    padding: 10px;
  }

  .match-hud.player {
    grid-template-columns: minmax(104px, 0.34fr) minmax(0, 1fr) 68px;
  }

  .match-hud img {
    width: 66px;
    height: 66px;
  }

  .clock {
    min-width: 0;
    min-height: 64px;
    font-size: 1.72rem;
  }

  .match-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .match-actions button,
  .match-action {
    min-height: 58px;
    font-size: 0.76rem;
  }

  .bottom-nav {
    padding: 6px;
  }

  .bottom-nav a {
    min-height: 48px;
  }

  .emote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 430px) {
  .top-nav {
    align-items: center;
  }

  h1 {
    font-size: 1.64rem;
  }

  .token-pill {
    grid-template-columns: 42px minmax(0, 1fr) 34px;
  }

  .token-pill .chain-mark {
    display: block;
    width: 34px;
    height: 34px;
  }

  .bottom-nav {
    width: calc(100% - 16px);
    bottom: 8px;
  }

  .bottom-nav a {
    font-size: 0.68rem;
  }

  .play-card strong {
    font-size: 1.07rem;
  }
}

@media (max-width: 360px) {
  .hero-panel,
  .asset-grid.store-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
