/* Suited Ape Society - SUITED ARCADE HUB (/time)
 * Cyberpunk dark arcade selection portal - responsive mobile, tablet & desktop
 */

:root {
  --bg-obsidian: #070a0f;
  --bg-card: rgba(11, 16, 25, 0.86);
  --lime: #ccff00;
  --cyan: #00e5ff;
  --magenta: #ff2a9d;
  --gold: #ffd426;
  --text-main: #f4f7fb;
  --text-muted: #93a3b8;
  --border-subtle: rgba(255, 255, 255, 0.11);
  --border-lime: rgba(204, 255, 0, 0.42);
  --font-display: 'Chakra Petch', 'Space Grotesk', system-ui, sans-serif;
  --font-ui: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

/* ==================== BACKGROUND LAYERS ==================== */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-watermark {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url('./assets/sas-logo.png') center 34% / min(480px, 68vw) no-repeat;
  opacity: 0.045;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 25%, transparent 45%, rgba(4, 6, 11, 0.78) 100%);
}

/* ==================== LAYOUT ==================== */
.page-wrap {
  position: relative;
  z-index: 5;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) clamp(14px, 3vw, 28px) max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.2vw, 34px);
}

/* ==================== TOP BAR ==================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: rgba(10, 15, 24, 0.82);
  border: 1px solid rgba(204, 255, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 14px 7px 9px;
  border-radius: 15px;
  transition: border-color 0.16s ease, transform 0.14s ease;
}

.brand-pill:hover {
  border-color: var(--lime);
  transform: translateY(-1px);
}

.brand-crest {
  width: 32px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.45));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(9, 14, 23, 0.84);
  border: 1px solid rgba(0, 229, 255, 0.36);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 0.15s ease, transform 0.14s ease, box-shadow 0.15s ease;
}

.live-pill:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.22);
}

.live-dot,
.live-dot-sm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: pulseDot 1.6s infinite;
}

.live-dot-sm {
  width: 7px;
  height: 7px;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.84); }
}

.share-mini-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.share-mini-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(204, 255, 0, 0.08);
}

/* ==================== HERO ==================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.34);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.kicker-icon {
  width: 17px;
  height: 15px;
  object-fit: contain;
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  line-height: 0.94;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.t-white {
  color: #ffffff;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.75);
}

.t-lime {
  color: var(--lime);
  text-shadow: 0 0 36px rgba(204, 255, 0, 0.48);
}

.hero-desc {
  max-width: 680px;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Profile Strip */
.profile-strip {
  margin-top: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(11, 16, 25, 0.82);
  border: 1px solid rgba(204, 255, 0, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.profile-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--lime);
  box-shadow: 0 0 14px rgba(204, 255, 0, 0.3);
}

.profile-id {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.change-name-btn {
  border: 1px solid rgba(204, 255, 0, 0.34);
  background: rgba(204, 255, 0, 0.08);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.change-name-btn:hover {
  background: rgba(204, 255, 0, 0.18);
  border-color: var(--lime);
  transform: translateY(-1px);
}

.change-name-btn:active {
  transform: scale(0.96);
}

.profile-k {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.profile-handle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.p-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.p-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.p-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
}

.p-val.lime, .lime { color: var(--lime); }
.p-val.gold, .gold { color: var(--gold); }
.p-val.cyan, .cyan { color: var(--cyan); }

.p-div {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== GAMES GRID ==================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 20, 32, 0.92) 0%, rgba(8, 11, 18, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.62);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-7px);
}

.card-apetime:hover {
  border-color: rgba(204, 255, 0, 0.72);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.75), 0 0 38px rgba(204, 255, 0, 0.18);
}

.card-suitedcar:hover {
  border-color: rgba(255, 212, 38, 0.72);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.75), 0 0 38px rgba(255, 212, 38, 0.18);
}

.card-suitris:hover {
  border-color: rgba(0, 229, 255, 0.75);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.75), 0 0 38px rgba(0, 229, 255, 0.22);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Visual Stage Top Half */
.card-stage {
  position: relative;
  height: 232px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-apetime {
  background: radial-gradient(circle at 50% 45%, #162c38 0%, #09101a 78%);
}

.stage-suitedcar {
  background: radial-gradient(circle at 50% 55%, #1e2438 0%, #090e18 78%);
}

.stage-suitris {
  background: radial-gradient(circle at 50% 50%, #171638 0%, #080b16 78%);
}

.stage-badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.num-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #e2ecf8;
  background: rgba(7, 10, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
}

.route-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(7, 10, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 9px;
}

.stage-glow {
  position: absolute;
  width: 210px;
  height: 160px;
  border-radius: 50%;
  filter: blur(26px);
  z-index: 1;
}

.glow-lime { background: rgba(204, 255, 0, 0.25); }
.glow-gold { background: rgba(255, 212, 38, 0.26); }
.glow-cyan { background: rgba(0, 229, 255, 0.26); }

/* Ape Time mini banana walls */
.mini-wall {
  position: absolute;
  width: 34px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    -28deg,
    #ffd824 0px,
    #ffd824 9px,
    #c27800 9px,
    #c27800 15px
  );
  border: 2px solid rgba(204, 255, 0, 0.72);
  opacity: 0.52;
  z-index: 1;
}

.wall-left { left: 26px; top: 0; height: 96px; border-top: none; }
.wall-right { right: 26px; bottom: 0; height: 108px; border-bottom: none; }

.ape-fly-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatApe 2.8s ease-in-out infinite;
}

.jet-flare {
  position: absolute;
  left: 10px;
  top: 52%;
  width: 44px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(204, 255, 0, 0.8) 45%, rgba(0, 229, 255, 0) 75%);
  transform: rotate(-36deg);
  filter: blur(4px);
}

.stage-art {
  position: relative;
  z-index: 2;
  object-fit: contain;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-ape {
  height: 168px;
  width: auto;
  margin-top: 14px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.85));
}

.art-car {
  width: 86%;
  max-width: 280px;
  height: auto;
  margin-top: 22px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.88));
  animation: idleCar 2.4s ease-in-out infinite;
}

.art-suitris {
  height: 158px;
  width: auto;
  margin-top: 12px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.88));
  animation: floatApe 3.2s ease-in-out infinite;
}

.game-card:hover .stage-art {
  transform: scale(1.06);
}

@keyframes floatApe {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes idleCar {
  0%, 100% { transform: translateY(0px) rotate(-0.4deg); }
  50% { transform: translateY(-5px) rotate(0.5deg); }
}

/* Suited Car subtle highway lanes */
.road-lanes {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-evenly;
  opacity: 0.25;
  pointer-events: none;
}

.road-lanes span {
  width: 2px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold) 0px,
    var(--gold) 18px,
    transparent 18px,
    transparent 42px
  );
}

/* Suitris floating neon tetromino blocks */
.tetro-cluster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.t-block {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  opacity: 0.78;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.35), inset -2px -2px 0 rgba(0, 0, 0, 0.35);
}

.b-cyan { background: #00e5ff; }
.b-gold { background: #ffd426; }
.b-lime { background: #ccff00; }
.b-magenta { background: #ff2a9d; }

.stage-live-tag {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(6, 11, 19, 0.88);
  border: 1px solid rgba(0, 229, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
}

/* Card Body */
.card-body {
  flex: 1 1 auto;
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.accent-lime { color: var(--lime); }
.accent-gold { color: var(--gold); }
.accent-cyan { color: var(--cyan); }

.mode-chip {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 7px;
  white-space: nowrap;
}

.chip-lime { background: rgba(204, 255, 0, 0.14); color: var(--lime); border: 1px solid rgba(204, 255, 0, 0.38); }
.chip-gold { background: rgba(255, 212, 38, 0.14); color: var(--gold); border: 1px solid rgba(255, 212, 38, 0.38); }
.chip-cyan { background: rgba(0, 229, 255, 0.14); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.42); }

.card-desc {
  font-size: 0.87rem;
  line-height: 1.48;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #d6e2f2;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 4px 8px;
}

.card-record-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 11px;
  background: rgba(6, 10, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rec-k {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.rec-v {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.09em;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta-lime {
  background: linear-gradient(135deg, #d8ff1f 0%, #b5f200 100%);
  color: #070a0f;
  box-shadow: 0 8px 24px rgba(204, 255, 0, 0.28);
}

.cta-gold {
  background: linear-gradient(135deg, #ffe24d 0%, #ffb800 100%);
  color: #070a0f;
  box-shadow: 0 8px 24px rgba(255, 212, 38, 0.28);
}

.cta-cyan {
  background: linear-gradient(135deg, #3df2ff 0%, #00c4ff 100%);
  color: #060b12;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
}

.cta-arrow {
  font-size: 1.15rem;
  transition: transform 0.18s ease;
}

.game-card:hover .cta-arrow {
  transform: translateX(4px);
}

/* ==================== FOOTER & SHARE BANNER ==================== */
.hub-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.share-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.08) 0%, rgba(0, 229, 255, 0.08) 100%);
  border: 1px solid rgba(204, 255, 0, 0.28);
}

.share-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 3px;
}

.share-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
}

.share-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sec {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 16, 25, 0.86);
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.btn-sec:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-1px);
}

.btn-x:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 20px;
  height: 18px;
  object-fit: contain;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.14s ease;
}

.footer-links a:hover {
  color: var(--lime);
}

/* Local Name Modal */
.name-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.name-modal-card {
  width: min(390px, 100%);
  background: linear-gradient(180deg, rgba(14, 20, 32, 0.98) 0%, rgba(8, 11, 18, 0.99) 100%);
  border: 1px solid rgba(204, 255, 0, 0.5);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 36px rgba(204, 255, 0, 0.14);
}

.name-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 4px;
}

.name-modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.name-modal-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.name-modal-input {
  width: 100%;
  background: rgba(6, 10, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 11px 13px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  outline: none;
  margin-bottom: 14px;
}

.name-modal-input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.14);
}

.name-modal-actions {
  display: flex;
  gap: 10px;
}

.name-modal-actions .btn-sec {
  flex: 1;
}

.btn-save-name {
  flex: 1.2;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #d8ff1f 0%, #b5f200 100%);
  color: #070a0f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.14s ease;
}

.btn-save-name:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

/* Toast */
.toast {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: rgba(14, 22, 34, 0.96);
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hidden {
  display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1020px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
  }

  .profile-stats {
    justify-content: space-between;
    gap: 8px;
  }

  .p-stat {
    align-items: flex-start;
  }

  .p-div {
    display: none;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .share-banner {
    padding: 15px 16px;
  }

  .share-btns {
    width: 100%;
  }

  .btn-sec {
    flex: 1;
    text-align: center;
  }
}
