:root {
  --text-dark: #4a3424;
  --text-soft: #8a6d4b;
  --cream: #fff0bd;
  --cream-2: #ffe6a5;
  --sky: #42c7ec;
  --sky-dark: #1aa7d7;
  --green: #78d332;
  --green-dark: #43a70e;
  --red: #ee2c29;
  --brown: #6a5238;
  --line: rgba(84, 52, 27, 0.28);
  --shadow-heavy: 0 24px 55px rgba(37, 24, 13, 0.36);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  min-height: 100vh;
  color: var(--text-dark);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }
button, input { font: inherit; }

.game-login-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05)),
    url("/login-assets/background.jpg") center center / cover no-repeat fixed,
    url("/login-assets/background.svg") center center / cover no-repeat fixed;
}

.game-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.36), transparent 32%);
  pointer-events: none;
}

.game-login-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 27vw;
  z-index: -1;
  pointer-events: none;
}

.game-login-shade--left {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.42), rgba(255,255,255,0));
}

.game-login-shade--right {
  right: 0;
  background: linear-gradient(270deg, rgba(8,34,22,0.66), rgba(8,34,22,0));
}

.game-login-stage {
  width: min(100%, 1180px);
  margin: 0 auto;
  min-height: calc(100vh - 86px);
  padding: 46px 24px 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: start;
}

.game-logo-panel {
  width: min(390px, 72vw);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,0.22)) drop-shadow(0 16px 28px rgba(0,0,0,0.22));
}

.game-logo {
  display: block;
  width: 100%;
  max-height: 166px;
  object-fit: contain;
}

.play-card {
  width: min(430px, calc(100vw - 40px));
  border-radius: 24px;
  box-shadow: var(--shadow-heavy), inset 0 0 0 4px rgba(255,255,255,0.95);
  overflow: visible;
  position: relative;
}

.play-card__header {
  border-radius: 24px 24px 0 0;
  min-height: 80px;
  padding: 22px 34px 18px;
  background: linear-gradient(180deg, #55d6f7 0%, var(--sky) 54%, var(--sky-dark) 100%);
  border: 4px solid rgba(255,255,255,0.92);
  border-bottom: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 114, 155, 0.36);
}

.play-card__header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 5vw, 37px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.04em;
  text-shadow:
    0 3px 0 rgba(25, 111, 151, 0.72),
    0 5px 0 rgba(0, 0, 0, 0.14);
}

.play-card__body {
  position: relative;
  padding: 22px 36px 26px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border: 4px solid rgba(255,255,255,0.92);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: inset 0 2px 12px rgba(138, 96, 36, 0.18);
}

.play-form {
  display: grid;
  gap: 14px;
}

.game-field {
  position: relative;
  display: grid;
  gap: 6px;
}

.game-field label {
  font-size: 16px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: #4e3824;
  text-shadow: 0 1px 0 rgba(255,255,255,0.72);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.game-input {
  width: 100%;
  min-height: 44px;
  padding: 9px 76px 9px 16px;
  color: #382514;
  font-size: 16px;
  font-weight: 900;
  border-radius: 8px;
  border: 1px solid rgba(84, 52, 27, 0.35);
  background: linear-gradient(180deg, #fff8d9 0%, #edd595 100%);
  box-shadow:
    inset 0 3px 6px rgba(79, 50, 24, 0.22),
    0 1px 0 rgba(255,255,255,0.75);
  outline: none;
}

.game-input:focus {
  border-color: rgba(0, 145, 192, 0.8);
  box-shadow:
    inset 0 3px 6px rgba(79, 50, 24, 0.22),
    0 0 0 3px rgba(84, 207, 246, 0.32),
    0 1px 0 rgba(255,255,255,0.75);
}

.password-toggle {
  position: absolute;
  right: 42px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #5b472c;
  font-size: 22px;
  font-weight: 1000;
  cursor: pointer;
  opacity: 0.92;
}

.status-icon {
  position: absolute;
  right: 11px;
  width: 24px;
  height: 24px;
  display: none;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
  text-shadow: 0 2px 0 rgba(255,255,255,0.75);
}

.status-icon--error { color: #ec2e1f; }
.status-icon--ok { color: #5fbe23; }
.game-field.is-invalid .status-icon--error { display: grid; }
.game-field.is-valid .status-icon--ok { display: grid; }
.game-field--password .status-icon--ok { right: 10px; }
.game-field--password.is-valid .password-toggle { right: 43px; }

.validation-bubble {
  position: absolute;
  z-index: 5;
  color: #fff;
  font-weight: 1000;
  line-height: 1.18;
  box-shadow: 0 5px 0 rgba(0,0,0,0.18), 0 15px 24px rgba(0,0,0,0.22);
}

.validation-bubble--error {
  top: 27px;
  left: calc(100% + 12px);
  width: 232px;
  padding: 13px 15px;
  border-radius: 4px;
  background: var(--red);
  font-size: 15px;
  display: none;
}

.validation-bubble--error::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 23px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 10px solid var(--red);
}

.game-field.is-invalid .validation-bubble--error { display: block; }

.validation-bubble--hint {
  top: 25px;
  right: calc(100% + 12px);
  width: 260px;
  padding: 14px 18px;
  border-radius: 4px;
  background: var(--brown);
  font-size: 15px;
}

.validation-bubble--hint::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 24px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 10px solid var(--brown);
}

.game-field--password.is-valid .validation-bubble--hint,
.game-field--password.has-value .validation-bubble--hint { display: none; }

.legal-copy {
  margin: 2px 0 10px;
  color: #c09252;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 1000;
}

.legal-copy a {
  color: #6a4c2d;
  text-decoration: none;
}

.legal-copy a:hover { text-decoration: underline; }

.play-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  font-size: 27px;
  font-weight: 1000;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #a5ea56 0%, var(--green) 46%, var(--green-dark) 100%);
  box-shadow:
    inset 0 4px 0 rgba(255,255,255,0.45),
    inset 0 -5px 0 rgba(43, 112, 8, 0.34),
    0 5px 0 rgba(94, 61, 28, 0.35),
    0 12px 18px rgba(83, 49, 18, 0.23);
  text-shadow: 0 3px 0 rgba(54, 125, 17, 0.72);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.play-button:hover { filter: saturate(1.05) brightness(1.02); }
.play-button:active { transform: translateY(3px); box-shadow: inset 0 4px 0 rgba(255,255,255,0.35), inset 0 -3px 0 rgba(43, 112, 8, 0.34), 0 2px 0 rgba(94, 61, 28, 0.35); }

.divider {
  margin: 21px 0 14px;
  height: 1px;
  background: rgba(78, 56, 36, 0.55);
  box-shadow: 0 1px 0 rgba(255,255,255,0.65);
}

.login-link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #3e2b1c;
  font-size: 15px;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.form-message {
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
}

.form-message--notice { background: #56b620; }
.form-message--alert { background: var(--red); }

.game-footer {
  width: 100%;
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 13px 20px 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(30, 36, 26, 0.72), rgba(13, 20, 18, 0.72));
  text-align: center;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.social-row span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #5c594d;
  background: #fff;
  font-size: 15px;
  font-weight: 1000;
}

.game-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.game-footer a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 1000;
}

.game-footer a:hover { text-decoration: underline; }

.dashboard-shell {
  min-height: 100vh;
  padding: 32px 20px;
  background: #0b1020;
  color: #eef3ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-header {
  max-width: 1080px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #89b8ff;
  margin-bottom: 6px;
}

.dashboard-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  background: #111833;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.panel--wide { grid-column: 1 / -1; }
.panel ul { padding-left: 18px; color: #a9b6d3; }
.btn { border: 0; border-radius: 14px; padding: 14px 18px; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-secondary { background: rgba(255,255,255,0.08); color: #eef3ff; border: 1px solid rgba(255,255,255,0.08); text-decoration: none; }

@media (max-width: 1120px) {
  .validation-bubble--hint {
    position: static;
    width: auto;
    margin-top: 5px;
    box-shadow: none;
  }
  .validation-bubble--hint::after { display: none; }
  .validation-bubble--error {
    position: static;
    width: auto;
    margin-top: 6px;
    box-shadow: none;
  }
  .validation-bubble--error::before { display: none; }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  .game-login-page { background-attachment: scroll; }
  .game-login-stage { min-height: calc(100vh - 112px); padding: 24px 16px 18px; }
  .game-logo-panel { margin-bottom: 14px; }
  .play-card { width: min(100%, 430px); }
  .play-card__header { min-height: 72px; padding: 20px 26px 15px; }
  .play-card__body { padding: 20px 24px 24px; }
  .game-footer { min-height: 112px; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Zapařeno v3 – modern post-login dashboard
   Palette: white / black / gold. Scope intentionally starts at .modern-dashboard
   so the game-style login page stays unchanged.
---------------------------------------------------------------------------- */
:root {
  --dash-black: #050505;
  --dash-black-2: #101010;
  --dash-white: #ffffff;
  --dash-ivory: #f7f1df;
  --dash-muted: #8c877b;
  --dash-line: rgba(255, 255, 255, 0.12);
  --dash-line-dark: rgba(10, 10, 10, 0.1);
  --dash-gold: #d7ad55;
  --dash-gold-2: #f4d489;
  --dash-gold-3: #8b6729;
  --dash-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
}

.modern-dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 0;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(215, 173, 85, 0.22), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, #0a0a0a 0%, #171717 35%, #f5f0e4 35.2%, #ffffff 100%);
  color: var(--dash-black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.modern-dashboard *,
.modern-dashboard *::before,
.modern-dashboard *::after { box-sizing: border-box; }
.modern-dashboard a { color: inherit; }
.modern-dashboard code {
  background: rgba(255,255,255,0.12);
  color: inherit;
  padding: 2px 6px;
  border-radius: 7px;
}

.dashboard-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
  opacity: .42;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.dashboard-orb--gold {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -110px;
  background: radial-gradient(circle, rgba(244, 212, 137, 0.62), transparent 68%);
}
.dashboard-orb--white {
  width: 260px;
  height: 260px;
  left: 220px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82), transparent 70%);
  animation-delay: -3s;
}

.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(5,5,5,.96), rgba(17,17,17,.94));
  border-right: 1px solid rgba(244, 212, 137, 0.16);
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 2;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #14120d;
  background: linear-gradient(135deg, var(--dash-gold-2), var(--dash-gold));
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 10px 28px rgba(215, 173, 85, .3);
}
.brand-mark strong,
.brand-mark small { display: block; }
.brand-mark strong { font-size: 18px; letter-spacing: -.03em; }
.brand-mark small { color: rgba(255,255,255,.56); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; margin-top: 2px; }

.dash-nav { display: grid; gap: 9px; }
.dash-nav__item {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(255,255,255,.66);
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.dash-nav__item:hover,
.dash-nav__item.is-active {
  transform: translateX(3px);
  color: #fff;
  border-color: rgba(244, 212, 137, .22);
  background: linear-gradient(90deg, rgba(244,212,137,.18), rgba(244,212,137,.03));
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.sidebar-card__label,
.dash-eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--dash-gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 950;
}
.sidebar-card strong { display: block; color: #fff; font-size: 18px; margin-bottom: 8px; }
.sidebar-card p { color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.5; margin: 0; }

.dash-main {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 48px) 60px;
}

.dash-topbar,
.hero-dashboard,
.panel-card,
.stat-card {
  backdrop-filter: blur(18px);
}

.dash-topbar {
  min-height: 74px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--dash-shadow);
}
.account-chip { display: flex; align-items: center; gap: 12px; }
.account-chip__avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: #080808;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(0,0,0,.16);
}
.account-chip strong,
.account-chip small { display: block; }
.account-chip strong { font-size: 15px; }
.account-chip small { color: #777164; font-size: 12px; margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.gold-button,
.ghost-button,
.outline-button,
.play-mini {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 950;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}
.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  color: #16120b;
  background: linear-gradient(135deg, var(--dash-gold-2), var(--dash-gold));
  box-shadow: 0 16px 34px rgba(139, 103, 41, .24), inset 0 1px 0 rgba(255,255,255,.45);
}
.gold-button:hover,
.play-mini:hover { transform: translateY(-2px); filter: brightness(1.03); }
.gold-button--compact { min-height: 44px; padding: 0 16px; }
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  color: #0b0b0b;
  background: rgba(0,0,0,.045);
  border: 1px solid rgba(0,0,0,.08);
}
.outline-button { background: transparent; }
.ghost-button:hover,
.outline-button:hover { background: rgba(0,0,0,.08); transform: translateY(-1px); }

.dash-flash {
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #111;
  background: rgba(244,212,137,.62);
  border: 1px solid rgba(139,103,41,.22);
  font-weight: 850;
}

.hero-dashboard {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 24px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.68)),
    radial-gradient(circle at 78% 20%, rgba(244,212,137,.5), transparent 32%);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--dash-shadow);
  overflow: hidden;
  position: relative;
}
.hero-dashboard::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(5,5,5,.12), rgba(244,212,137,.18));
}
.hero-dashboard__copy { position: relative; z-index: 1; align-self: center; }
.hero-dashboard h1 {
  margin: 0;
  max-width: 720px;
  color: #080808;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: .94;
  letter-spacing: -.065em;
}
.hero-dashboard p {
  max-width: 640px;
  color: #635d51;
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.level-card {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 250px;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 26px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(145deg, #070707, #171717);
  border: 1px solid rgba(244,212,137,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 70px rgba(0,0,0,.24);
}
.level-ring {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #111 0 58%, transparent 59%),
    conic-gradient(var(--dash-gold-2) var(--ring-progress), rgba(255,255,255,.11) 0);
}
.level-ring span,
.level-ring strong { grid-area: 1 / 1; display: block; }
.level-ring span { align-self: start; margin-top: 42px; color: rgba(255,255,255,.52); font-size: 10px; letter-spacing: .18em; font-weight: 950; }
.level-ring strong { align-self: end; margin-bottom: 34px; color: #fff; font-size: 44px; line-height: 1; }
.level-card__title { margin: 0 0 4px; color: #fff; font-size: 18px; font-weight: 950; }
.level-card__meta { margin: 0 0 12px; color: rgba(255,255,255,.58); font-size: 13px; }

.mini-progress,
.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,.09);
}
.level-card .mini-progress { background: rgba(255,255,255,.12); }
.mini-progress span,
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-gold-2), var(--dash-gold-3));
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.mini-progress--thin { height: 7px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.stat-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 18px 50px rgba(0,0,0,.11);
}
.stat-card span { color: #777164; font-weight: 850; }
.stat-card strong { color: #050505; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.05em; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 18px;
}
.content-column { display: grid; gap: 18px; align-content: start; }
.panel-card {
  padding: 24px;
  border-radius: 32px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 22px 65px rgba(0,0,0,.11);
}
.panel-card--black {
  color: #fff;
  background: linear-gradient(145deg, #080808, #191919);
  border-color: rgba(244,212,137,.18);
}
.panel-card--black p { color: rgba(255,255,255,.66); line-height: 1.6; }
.panel-card--black .last-refresh { color: rgba(244,212,137,.75); }
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.04em;
}
.panel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #16120b;
  background: rgba(244,212,137,.58);
  font-size: 12px;
  font-weight: 950;
}

.progress-list,
.game-list,
.activity-list { display: grid; gap: 12px; }
.progress-row {
  padding: 18px;
  border-radius: 22px;
  background: rgba(5,5,5,.035);
  border: 1px solid rgba(5,5,5,.055);
}
.progress-row__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.progress-row strong,
.progress-row small { display: block; }
.progress-row small,
.progress-row p { color: #777164; }
.progress-row p { margin: 10px 0 0; font-size: 13px; font-weight: 800; }
.progress-row__top > span { color: #0a0a0a; font-weight: 950; }

.game-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(5,5,5,.035);
  border: 1px solid rgba(5,5,5,.055);
  transition: transform .2s ease, background .2s ease;
}
.game-row:hover { transform: translateY(-2px); background: rgba(5,5,5,.055); }
.game-cover {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #16120b;
  background: linear-gradient(135deg, #fff, var(--dash-gold-2));
  font-size: 30px;
  font-weight: 950;
}
.game-row__titleline { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.game-row__titleline strong { color: #070707; font-size: 17px; }
.game-row__titleline span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #5f471c;
  background: rgba(244,212,137,.32);
  font-size: 11px;
  font-weight: 950;
}
.game-row p { margin: 5px 0 11px; color: #777164; font-size: 13px; }
.play-mini {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 14px;
  color: #16120b;
  background: linear-gradient(135deg, var(--dash-gold-2), var(--dash-gold));
}

.wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wallet-card {
  min-height: 138px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border-radius: 24px;
  border: 1px solid rgba(5,5,5,.08);
  background: #fff;
}
.wallet-card span,
.wallet-card small { color: #777164; font-weight: 850; }
.wallet-card strong { display: block; color: #070707; font-size: 30px; letter-spacing: -.05em; }
.wallet-card--primary { background: linear-gradient(145deg, #fff8df, #f1ca70); }
.wallet-card--dark { color: #fff; background: linear-gradient(145deg, #070707, #202020); border-color: rgba(244,212,137,.18); }
.wallet-card--dark span,
.wallet-card--dark small { color: rgba(255,255,255,.66); }
.wallet-card--dark strong { color: #fff; }
.wallet-card--light { background: #fff; }
.wallet-card--soft { background: #f7f1df; }

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(5,5,5,.08);
}
.activity-item:last-child { border-bottom: 0; }
.activity-item > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #16120b;
  background: rgba(244,212,137,.45);
  font-weight: 950;
}
.activity-item strong,
.activity-item small { display: block; }
.activity-item strong { color: #0b0b0b; line-height: 1.25; }
.activity-item small { color: #777164; margin-top: 4px; }

.reveal-card {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.modern-dashboard.is-pulsing .panel-card,
.modern-dashboard.is-pulsing .stat-card,
.modern-dashboard.is-pulsing .hero-dashboard {
  animation: pulseGold .65s ease;
}

@keyframes pulseGold {
  0% { box-shadow: 0 22px 65px rgba(0,0,0,.11); }
  45% { box-shadow: 0 22px 65px rgba(139,103,41,.22), 0 0 0 1px rgba(244,212,137,.38); }
  100% { box-shadow: 0 22px 65px rgba(0,0,0,.11); }
}
@keyframes orbFloat {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-24px,28px,0) scale(1.08); }
}

  @keyframes zaparenoHeaderToggleIdle {
    0%, 72% { opacity: 1; color: #080808; }
    100% { opacity: .34; color: rgba(8,8,8,0); }
  }
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle:hover,
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle:focus-visible,
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle:active,
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle.is-tap-active {
    animation: none !important; opacity: 1 !important; color: #080808 !important;
  }
  .modern-dashboard--retro-hub .retro-header .retro-mobile-menu-toggle {
    display: none !important; visibility: hidden !important; pointer-events: none !important;
  }

@media (max-width: 1180px) {
  .modern-dashboard { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: relative;
    height: auto;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .dash-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sidebar-card { display: none; }
}

@media (max-width: 920px) {
  .dash-main { padding: 18px 14px 42px; }
  .hero-dashboard { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .dash-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-topbar { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; }
  .topbar-actions > *, .topbar-actions form, .topbar-actions form .gold-button { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions > * { width: 100%; }
  .stat-grid,
  .wallet-grid { grid-template-columns: 1fr; }
  .game-row { grid-template-columns: 54px minmax(0, 1fr); }
  .game-cover { width: 54px; height: 54px; border-radius: 16px; }
  .play-mini { grid-column: 1 / -1; justify-content: center; }
}

/* Zapařeno v5 – non-beta accounts, clan cards and server game launch states */
.dash-flash--alert {
  border-color: rgba(190, 18, 60, .28);
  background: rgba(255, 241, 242, .95);
  color: #8f1232;
}

.game-row--disabled {
  opacity: .72;
}

.game-row--disabled:hover {
  transform: none;
}

.play-mini--disabled {
  cursor: not-allowed;
  background: #151515;
  color: rgba(255,255,255,.62);
  box-shadow: none;
}

.clan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.clan-card {
  min-height: 160px;
  border: 1px solid rgba(5,5,5,.09);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215,173,85,.22), transparent 38%),
    linear-gradient(145deg, #fff, #f7f2e8);
  box-shadow: 0 18px 35px rgba(8,8,8,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.clan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(8,8,8,.10);
}

.clan-card small {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  color: #5d5138;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.clan-card strong {
  display: block;
  margin-top: 16px;
  color: #080808;
  font-size: 18px;
}

.clan-card p {
  margin: 8px 0 0;
  color: #716956;
  font-size: 14px;
  line-height: 1.55;
}

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

/* --------------------------------------------------------------------------
   v7 login redesign
   -------------------------------------------------------------------------- */

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

.game-login-page--v7 {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 15% 15%, rgba(212, 180, 92, 0.14), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(212, 180, 92, 0.10), transparent 22%),
    radial-gradient(circle at 85% 78%, rgba(212, 180, 92, 0.14), transparent 20%),
    linear-gradient(180deg, #fafaf7 0%, #f4f3ee 100%);
  color: #111;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.game-login-page--v7::before,
.game-login-page--v7::after,
.game-login-page--v7 .game-login-shade,
.game-login-page--v7 .game-logo-panel,
.game-login-page--v7 .social-row,
.game-login-page--v7 .game-footer nav,
.game-login-page--v7 .divider,
.game-login-page--v7 .legal-copy,
.game-login-page--v7 .login-link,
.game-login-page--v7 .play-card__header {
  display: none !important;
}

.login-topbar {
  padding: 28px 36px 0;
}

.login-topbar__label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1d1d1d;
}

.game-login-page--v7 .game-login-stage {
  position: relative;
  width: min(1320px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: 34px 32px 20px;
  display: grid;
  place-items: center;
}

.floating-tile {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #f1dfaa 0%, #caa657 100%);
  color: #1f1f1f;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.7);
  user-select: none;
  animation: floatTile 5.5s ease-in-out infinite;
}

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

.floating-tile--profile,
.floating-tile--chat,
.floating-tile--cap,
.floating-tile--code,
.floating-tile--settings,
.floating-tile--book,
.floating-tile--idea,
.floating-tile--code-bottom {
  width: 78px;
  height: 78px;
  font-size: 32px;
}

.floating-tile--keys {
  top: 112px;
  left: 150px;
  width: 158px;
  height: 116px;
  padding: 10px;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: transparent;
  box-shadow: none;
}

.floating-tile--keys span {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1b1b1b;
  color: #f0d58a;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.floating-tile--profile { top: 228px; left: 86px; }
.floating-tile--gamepad {
  top: 360px;
  left: 172px;
  width: 126px;
  height: 96px;
  border-radius: 28px;
  font-size: 56px;
  background: linear-gradient(180deg, #1c1c1c 0%, #050505 100%);
  color: #e0bc68;
}
.floating-tile--chat { bottom: 186px; left: 82px; }
.floating-tile--cap { top: 164px; right: 184px; background: linear-gradient(180deg, #2d2d2d 0%, #111 100%); color: #e5c06d; }
.floating-tile--code { top: 270px; right: 290px; }
.floating-tile--settings { top: 270px; right: 94px; }
.floating-tile--book { top: 430px; right: 202px; }
.floating-tile--idea { bottom: 138px; right: 242px; }
.floating-tile--code-bottom { bottom: 186px; right: 90px; }

.game-login-page--v7 .play-card {
  width: min(520px, calc(100vw - 44px));
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.10);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.75);
}

.play-card--clean .play-card__brand {
  padding: 70px 40px 56px;
  text-align: center;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f0f0f;
}

.game-login-page--v7 .play-card__body.play-card__body--clean {
  padding: 0 38px 36px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.game-login-page--v7 .play-form {
  display: grid;
  gap: 18px;
}

.game-login-page--v7 .game-field {
  gap: 0;
}

.game-login-page--v7 .input-wrap--clean {
  align-items: center;
}

.game-login-page--v7 .game-input--clean {
  min-height: 68px;
  border-radius: 18px;
  border: 2px solid #1f1f1f;
  background: rgba(255,255,255,0.76);
  box-shadow: none;
  padding: 14px 58px 14px 66px;
  color: #171717;
  font-size: 18px;
  font-weight: 500;
}

.game-login-page--v7 .game-input--clean::placeholder {
  color: #3a3a3a;
  opacity: 0.9;
}

.game-login-page--v7 .game-input--clean:focus {
  border-color: #c9a04d;
  box-shadow: 0 0 0 4px rgba(201, 160, 77, 0.14);
}

.game-login-page--v7 .input-icon {
  position: absolute;
  left: 22px;
  z-index: 2;
  font-size: 22px;
  opacity: 0.72;
}

.game-login-page--v7 .password-toggle--clean {
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #8d835e;
  font-size: 19px;
}

.game-login-page--v7 .game-field.is-valid .status-icon--ok,
.game-login-page--v7 .game-field.is-invalid .status-icon--error {
  display: none;
}

.game-login-page--v7 .play-button--clean {
  margin-top: 12px;
  min-height: 66px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #101010 0%, #000 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(0,0,0,0.18);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.game-login-page--v7 .play-button--clean:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 40px rgba(0,0,0,0.2);
  background: linear-gradient(180deg, #202020 0%, #050505 100%);
}

.game-login-page--v7 .login-links {
  margin-top: 18px;
  text-align: center;
}

.game-login-page--v7 .login-links a,
.game-login-page--v7 .register-copy a {
  color: #aa8a41;
  text-decoration: none;
  font-weight: 600;
}

.game-login-page--v7 .login-links a:hover,
.game-login-page--v7 .register-copy a:hover {
  text-decoration: underline;
}

.game-login-page--v7 .register-copy {
  margin: 28px 0 0;
  text-align: center;
  color: #313131;
  font-size: 16px;
}

.game-login-page--v7 .form-message {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.35;
}

.game-login-page--v7 .form-message--notice {
  background: rgba(206, 181, 114, 0.18);
  color: #4d3910;
  border: 1px solid rgba(206, 181, 114, 0.45);
}

.game-login-page--v7 .form-message--alert {
  background: rgba(190, 54, 54, 0.10);
  color: #7d2222;
  border: 1px solid rgba(190, 54, 54, 0.22);
}

.game-login-page--v7 .validation-bubble--error,
.game-login-page--v7 .validation-bubble--hint {
  display: none !important;
}

.game-footer--clean {
  padding: 22px 20px 34px;
  text-align: center;
  color: #2f2f2f;
  font-size: 18px;
}

@media (max-width: 1100px) {
  .floating-tile--keys { left: 34px; }
  .floating-tile--profile,
  .floating-tile--chat,
  .floating-tile--gamepad { left: 28px; }
  .floating-tile--cap,
  .floating-tile--code,
  .floating-tile--settings,
  .floating-tile--book,
  .floating-tile--idea,
  .floating-tile--code-bottom { right: 28px; }
  .floating-tile--code { right: 132px; }
  .floating-tile--book { right: 130px; }
  .floating-tile--idea { right: 138px; }
}

@media (max-width: 900px) {
  .floating-tile { opacity: .55; transform: scale(.86); }
  .floating-tile--keys { transform: scale(.78); transform-origin: top left; }
}

@media (max-width: 760px) {
  .login-topbar { padding: 20px 18px 0; }
  .login-topbar__label { font-size: 16px; }
  .game-login-page--v7 .game-login-stage {
    padding: 24px 14px 10px;
  }
  .floating-tile { display: none; }
  .game-login-page--v7 .play-card { width: min(100%, 520px); }
  .play-card--clean .play-card__brand {
    padding: 42px 22px 30px;
    font-size: 34px;
  }
  .game-login-page--v7 .play-card__body.play-card__body--clean {
    padding: 0 18px 22px;
  }
  .game-login-page--v7 .game-input--clean {
    min-height: 60px;
    font-size: 17px;
    padding-left: 56px;
  }
  .game-login-page--v7 .play-button--clean {
    min-height: 58px;
    font-size: 18px;
  }
  .game-footer--clean {
    font-size: 15px;
    padding-bottom: 22px;
  }
}

/* --------------------------------------------------------------------------
   v8 login polish — closer to supplied reference
   -------------------------------------------------------------------------- */

.game-login-page--v7 {
  background:
    radial-gradient(circle at 5% 8%, rgba(224, 214, 176, .20), transparent 28%),
    radial-gradient(circle at 78% 14%, rgba(230, 206, 144, .18), transparent 24%),
    radial-gradient(circle at 83% 78%, rgba(224, 191, 96, .16), transparent 22%),
    linear-gradient(135deg, #f9f9f6 0%, #f3f2ed 43%, #faf8ef 100%);
}

.game-login-page--v7 .game-login-stage::before {
  content: "";
  position: absolute;
  inset: 20px;
  background:
    radial-gradient(circle at 12% 42%, rgba(34,34,34,.05), transparent 8%),
    radial-gradient(circle at 72% 37%, rgba(189,151,70,.10), transparent 9%),
    radial-gradient(circle at 80% 57%, rgba(34,34,34,.055), transparent 10%),
    radial-gradient(circle at 18% 68%, rgba(189,151,70,.10), transparent 9%);
  filter: blur(2px);
  pointer-events: none;
}

.login-topbar {
  padding: 34px 42px 0;
}

.login-topbar__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .015em;
}

.game-login-page--v7 .play-card {
  width: min(552px, calc(100vw - 44px));
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow:
    0 34px 80px rgba(28,28,28,.12),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.play-card--clean .play-card__brand {
  padding: 92px 40px 72px;
  font-size: clamp(42px, 4.1vw, 58px);
  font-weight: 900;
}

.game-login-page--v7 .play-card__body.play-card__body--clean {
  padding: 0 42px 38px;
}

.game-login-page--v7 .play-form {
  gap: 17px;
}

.game-login-page--v7 .game-input--clean {
  min-height: 70px;
  border: 3px solid #151515;
  border-radius: 17px;
  background: rgba(255,255,255,.70);
  font-size: 22px;
  font-weight: 500;
  padding-left: 74px;
}

.game-login-page--v7 .input-icon {
  left: 24px;
  font-size: 24px;
  color: #918753;
  opacity: 1;
}

.game-login-page--v7 .password-toggle--clean {
  color: #9a8e5b;
  font-size: 22px;
  right: 20px;
}

.game-login-page--v7 .play-button--clean {
  min-height: 72px;
  margin-top: 14px;
  border-radius: 16px;
  font-size: 22px;
  background: #000;
}

.game-login-page--v7 .login-links {
  margin-top: 20px;
  font-size: 18px;
}

.game-login-page--v7 .register-copy {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 500;
}

.game-login-page--v7 .register-copy a,
.game-login-page--v7 .login-links a {
  color: #9f8d4d;
  font-weight: 700;
}

.floating-tile {
  box-shadow:
    0 26px 42px rgba(37, 31, 18, .13),
    inset 0 1px 0 rgba(255,255,255,.78),
    inset 0 -8px 18px rgba(111,78,24,.11);
  border: 1px solid rgba(255,255,255,.5);
}

.floating-tile--profile,
.floating-tile--chat,
.floating-tile--code,
.floating-tile--settings,
.floating-tile--book,
.floating-tile--idea,
.floating-tile--code-bottom {
  border-radius: 19px;
}

.floating-tile--gamepad {
  top: 354px;
  left: 178px;
  width: 142px;
  height: 104px;
  color: #dfbe6a;
}

.floating-tile--keys {
  top: 120px;
  left: 182px;
}

.floating-tile--profile { top: 250px; left: 92px; }
.floating-tile--chat { bottom: 190px; left: 92px; }
.floating-tile--cap { top: 154px; right: 210px; }
.floating-tile--code { top: 282px; right: 324px; }
.floating-tile--settings { top: 286px; right: 118px; }
.floating-tile--book { top: 446px; right: 226px; }
.floating-tile--idea { bottom: 142px; right: 256px; }
.floating-tile--code-bottom { bottom: 196px; right: 108px; }

.game-footer--clean {
  padding: 18px 20px 38px;
  font-size: 18px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   v10.3 login background — uses supplied Zapařeno/Sarvátky background image
   -------------------------------------------------------------------------- */
.game-login-page--v7 {
  background:
    linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.18) 40%, rgba(255,255,255,.06)),
    url("/login-assets/zapareno-login-background.png") center center / cover no-repeat !important;
}

.game-login-page--v7 .floating-tile,
.game-login-page--v7 .game-login-stage::before {
  display: none !important;
}

.game-login-page--v7 .play-card {
  background: rgba(255,255,255,.78) !important;
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
}

.game-login-page--v7 .game-login-stage {
  padding-top: 22px;
}

/* --------------------------------------------------------------------------
   v10.4 login: původní game-like layout, paleta bílá / černá / zlatá
   -------------------------------------------------------------------------- */
.game-login-page--gold {
  background:
    radial-gradient(circle at 20% 15%, rgba(216, 178, 96, .16), transparent 30%),
    radial-gradient(circle at 78% 70%, rgba(216, 178, 96, .12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7f5ee 48%, #ece6d6 100%) !important;
  color: #111;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}
.game-login-page--gold::before {
  display: block !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.72), rgba(255,255,255,.94)),
    repeating-linear-gradient(45deg, rgba(0,0,0,.025) 0 1px, transparent 1px 14px) !important;
}
.game-login-page--gold .game-login-shade--left {
  display: block !important;
  background: linear-gradient(90deg, rgba(255,255,255,.82), rgba(255,255,255,0)) !important;
}
.game-login-page--gold .game-login-shade--right {
  display: block !important;
  background: linear-gradient(270deg, rgba(0,0,0,.18), rgba(0,0,0,0)) !important;
}
.game-login-page--gold .game-logo-panel--text {
  width: min(440px, 74vw);
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 0 rgba(0,0,0,.12)) drop-shadow(0 18px 28px rgba(0,0,0,.18));
}
.game-login-page--gold .game-logo-text {
  width: 100%;
  text-align: center;
  color: #111;
  font-size: clamp(46px, 7vw, 84px);
  line-height: .95;
  font-weight: 1000;
  letter-spacing: -.06em;
  text-shadow:
    0 2px 0 #fff,
    0 5px 0 rgba(208, 166, 74, .55),
    0 9px 18px rgba(0,0,0,.18);
}
.game-login-page--gold .play-card {
  box-shadow: 0 28px 60px rgba(0,0,0,.25), inset 0 0 0 4px rgba(255,255,255,.96);
}
.game-login-page--gold .play-card__header {
  background: linear-gradient(180deg, #2c2c2c 0%, #141414 58%, #050505 100%) !important;
  border-color: rgba(255,255,255,.96) !important;
  box-shadow: inset 0 -2px 0 rgba(216, 178, 96, .65) !important;
}
.game-login-page--gold .play-card__header h1 {
  color: #fff;
  text-shadow:
    0 3px 0 rgba(0,0,0,.75),
    0 5px 0 rgba(216,178,96,.24) !important;
}
.game-login-page--gold .play-card__body {
  background: linear-gradient(180deg, #fffdf6 0%, #efe2be 100%) !important;
  border-color: rgba(255,255,255,.96) !important;
  box-shadow: inset 0 2px 12px rgba(141, 105, 35, .18) !important;
}
.game-login-page--gold .game-field label {
  color: #181818 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.9) !important;
}
.game-login-page--gold .game-input {
  color: #111 !important;
  border: 1px solid rgba(0,0,0,.42) !important;
  background: linear-gradient(180deg, #ffffff 0%, #ead9ac 100%) !important;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.16), 0 1px 0 rgba(255,255,255,.75) !important;
}
.game-login-page--gold .game-input:focus {
  border-color: rgba(191, 146, 46, .95) !important;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.16), 0 0 0 3px rgba(216,178,96,.35), 0 1px 0 rgba(255,255,255,.75) !important;
}
.game-login-page--gold .status-icon--error { color: #c71818 !important; }
.game-login-page--gold .status-icon--ok { color: #b89031 !important; }
.game-login-page--gold .validation-bubble--error {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid rgba(216,178,96,.5);
}
.game-login-page--gold .validation-bubble--error::before { border-right-color: #111 !important; }
.game-login-page--gold .validation-bubble--hint {
  background: #3a2d14 !important;
  color: #fffdf5 !important;
  border: 1px solid rgba(216,178,96,.45);
}
.game-login-page--gold .validation-bubble--hint::after { border-left-color: #3a2d14 !important; }
.game-login-page--gold .legal-copy {
  color: #8b6b2c !important;
}
.game-login-page--gold .legal-copy a,
.game-login-page--gold .login-link { color: #111 !important; }
.game-login-page--gold .play-button {
  background: linear-gradient(180deg, #1f1f1f 0%, #050505 100%) !important;
  border: 2px solid rgba(216,178,96,.76) !important;
  color: #fff !important;
  text-shadow: 0 2px 0 rgba(0,0,0,.75) !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.20), 0 5px 0 #8d6b25, 0 14px 22px rgba(0,0,0,.22) !important;
}
.game-login-page--gold .play-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #d8b260 0%, #aa7c27 100%) !important;
  color: #111 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.45) !important;
}
.game-login-page--gold .divider { background: rgba(0,0,0,.25) !important; }
.game-login-page--gold .game-footer {
  background: rgba(0,0,0,.78) !important;
  color: #fff !important;
}
.game-login-page--gold .game-footer a,
.game-login-page--gold .game-footer small { color: #f5df9d !important; }
.game-login-page--gold .social-row span {
  background: rgba(255,255,255,.95) !important;
  color: #111 !important;
}

/* --------------------------------------------------------------------------
   v10.5 dashboard cleanup — sjednocení s loginem + reálná data profilu
   -------------------------------------------------------------------------- */
.modern-dashboard--gold {
  background:
    radial-gradient(circle at 18% 14%, rgba(216, 178, 96, .18), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(216, 178, 96, .13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7f5ee 48%, #ece6d6 100%) !important;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

.modern-dashboard--gold .dash-sidebar {
  background: linear-gradient(180deg, #2c2c2c 0%, #141414 58%, #050505 100%);
  box-shadow: inset -2px 0 0 rgba(216,178,96,.45), 18px 0 40px rgba(0,0,0,.12);
}

.modern-dashboard--gold .brand-mark__icon,
.modern-dashboard--gold .account-chip__avatar,
.modern-dashboard--gold .overview-card__icon {
  background: linear-gradient(180deg, #d8b260 0%, #aa7c27 100%);
  color: #111;
  text-shadow: 0 1px 0 rgba(255,255,255,.42);
}

.dash-nav--sections { gap: 22px; }
.dash-nav-group { display: grid; gap: 9px; }
.dash-nav-group h2 {
  margin: 0 0 2px;
  padding: 0 14px;
  color: #f5df9d;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dash-nav__item--disabled {
  cursor: not-allowed;
  opacity: .58;
}
.dash-nav__item small {
  margin-left: auto;
  color: rgba(245,223,157,.82);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sidebar-card--clean { background: rgba(255,255,255,.055); }

.modern-dashboard--gold .dash-topbar,
.modern-dashboard--gold .hero-dashboard,
.modern-dashboard--gold .panel-card,
.modern-dashboard--gold .overview-card,
.modern-dashboard--gold .wallet-card,
.modern-dashboard--gold .game-row {
  box-shadow: 0 24px 55px rgba(37, 24, 13, 0.16), inset 0 0 0 1px rgba(255,255,255,.65);
}

.modern-dashboard--gold .dash-topbar,
.modern-dashboard--gold .panel-card,
.modern-dashboard--gold .overview-card {
  background: rgba(255,253,246,.86);
  border-color: rgba(255,255,255,.92);
}

.hero-dashboard--clean {
  background:
    linear-gradient(135deg, rgba(255,253,246,.96), rgba(239,226,190,.72)),
    radial-gradient(circle at 78% 20%, rgba(216,178,96,.34), transparent 32%) !important;
}
.hero-dashboard--clean h1 {
  text-shadow: 0 2px 0 #fff, 0 5px 0 rgba(208,166,74,.42), 0 12px 24px rgba(0,0,0,.08);
}
.level-card--clean {
  background: linear-gradient(180deg, #2c2c2c 0%, #141414 58%, #050505 100%);
  border: 2px solid rgba(216,178,96,.48);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.overview-card {
  min-height: 146px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,253,246,.86);
  border: 1px solid rgba(255,255,255,.82);
}
.overview-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 1000;
}
.overview-card small,
.overview-card p { color: #7d6a3a; font-weight: 850; }
.overview-card small { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.overview-card strong { display: block; color: #050505; margin: 4px 0; font-size: clamp(24px, 3.3vw, 36px); line-height: 1; letter-spacing: -.05em; }
.overview-card p { margin: 0; font-size: 13px; line-height: 1.35; }

.content-grid--clean { grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); }
.game-list--cards { gap: 16px; }
.game-row--wide {
  grid-template-columns: 82px minmax(0, 1fr) auto;
  padding: 18px;
  background: rgba(255,255,255,.72);
}
.game-row--wide .game-cover {
  width: 82px;
  height: 82px;
  background: linear-gradient(180deg, #d8b260 0%, #aa7c27 100%);
  color: #111;
}
.game-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.game-stat-strip > span {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 15px;
  background: rgba(0,0,0,.045);
  border: 1px solid rgba(0,0,0,.06);
}
.game-stat-strip small { color: #7d6a3a; font-size: 11px; font-weight: 900; }
.game-stat-strip strong { color: #0b0b0b; font-size: 20px; line-height: 1; }

.app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clan-card--muted { opacity: .78; }
.progress-row--compact { margin-top: 4px; }

.modern-dashboard--gold .gold-button,
.modern-dashboard--gold .play-mini {
  background: linear-gradient(180deg, #1f1f1f 0%, #050505 100%);
  border: 2px solid rgba(216,178,96,.76);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.16), 0 5px 0 #8d6b25, 0 14px 22px rgba(0,0,0,.16);
}
.modern-dashboard--gold .gold-button:hover,
.modern-dashboard--gold .play-mini:hover {
  background: linear-gradient(180deg, #d8b260 0%, #aa7c27 100%);
  color: #111;
}
.modern-dashboard--gold .ghost-button,
.modern-dashboard--gold .outline-button {
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.56);
}

@media (max-width: 1180px) {
  .dash-nav--sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .content-grid--clean { grid-template-columns: 1fr; }
  .game-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .overview-grid,
  .app-grid { grid-template-columns: 1fr; }
  .game-row--wide { grid-template-columns: 58px minmax(0, 1fr); }
  .game-row--wide .game-cover { width: 58px; height: 58px; }
}

/* Zapařeno v10.6 – commerce, subscription, inventory and multiplayer dashboard polish */
.access-card,
.inventory-row {
  border: 1px solid rgba(194, 153, 64, .18);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(248,244,235,.78));
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(24, 18, 9, .08);
}
.access-card strong { display:block; color:#18130c; font-size:1.05rem; margin-bottom:6px; }
.access-card p, .muted-text { color:rgba(24,19,12,.68); line-height:1.55; margin:.35rem 0 .7rem; }
.clean-list { list-style:none; padding:0; margin:0 0 12px; display:grid; gap:7px; }
.clean-list li { color:rgba(24,19,12,.72); font-size:.92rem; }
.inventory-list { display:grid; gap:10px; margin-top:10px; }
.inventory-list--boosts { margin-top:16px; padding-top:14px; border-top:1px solid rgba(24,19,12,.08); }
.inventory-row { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:10px; }
.inventory-row strong { display:block; color:#18130c; }
.inventory-row small { display:block; color:rgba(24,19,12,.62); line-height:1.35; margin-top:3px; }
.inventory-row > span { border:1px solid rgba(194,153,64,.24); background:#fffaf1; color:#18130c; border-radius:999px; padding:5px 9px; font-weight:800; font-size:.82rem; }
.outline-button--tiny { padding:7px 10px; font-size:.78rem; border-radius:999px; }
@media (max-width: 720px) { .inventory-row { grid-template-columns: 1fr auto; } .inventory-row form { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   v10.7 registration, branding, footer and dashboard settings polish
   -------------------------------------------------------------------------- */
.game-login-page--gold .game-logo-panel--image {
  width: min(210px, 42vw);
  margin-bottom: 14px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
.game-logo--zapareno {
  width: 100%;
  max-height: 164px;
  object-fit: contain;
  border-radius: 28px;
}
.legal-copy--auth {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
.divider--auth { margin: 18px 0 14px; }
.auth-switch-copy {
  margin: 0;
  text-align: center;
  color: #111;
  font-size: 15px;
  font-weight: 850;
}
.auth-switch-copy a {
  color: #8d6b25;
  text-decoration: none;
  border-bottom: 1px solid rgba(141,107,37,.35);
}
.auth-switch-copy a:hover { color: #111; border-bottom-color: #111; }
.game-login-page--gold .game-field--nick .game-input,
.game-login-page--gold .game-field--password-confirmation .game-input { padding-right: 16px; }
.game-footer--legal {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 18px 22px;
}
.social-row--legal {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.social-row--legal a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #111 !important;
  box-shadow: inset 0 0 0 1px rgba(216,178,96,.35), 0 8px 18px rgba(0,0,0,.18);
  transition: transform .18s ease, background .18s ease;
}
.social-row--legal a:hover { transform: translateY(-2px); background: #d8b260; }
.social-row--legal svg { width: 19px; height: 19px; fill: currentColor; }
.game-footer--legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}
.game-footer--legal nav a {
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.game-footer--legal nav a:hover { text-decoration: underline; }
.game-footer--legal small { font-size: 13px; letter-spacing: .01em; }

.brand-mark--logo { gap: 12px; }
.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.account-chip__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
}
.topbar-actions--settings { position: relative; }
.settings-menu { position: relative; }
.settings-menu summary { list-style: none; cursor: pointer; user-select: none; }
.settings-menu summary::-webkit-details-marker { display: none; }
.settings-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,253,246,.98);
  border: 1px solid rgba(216,178,96,.42);
  box-shadow: 0 28px 70px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.72);
}
.settings-popover__header { display: grid; gap: 3px; margin-bottom: 12px; }
.settings-popover__header strong { color: #111; font-size: 18px; }
.settings-popover__header small { color: #7d6a3a; font-weight: 800; }
.settings-list { display: grid; gap: 8px; margin: 0 0 14px; }
.settings-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
}
.settings-list dt { color: #7d6a3a; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.settings-list dd { margin: 0; color: #111; font-weight: 900; text-align: right; }
.settings-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.settings-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(216,178,96,.18);
  color: #5f471c;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}
.settings-links a:hover { background: rgba(216,178,96,.36); }
.settings-logout { width: 100%; justify-content: center; }

.legal-page {
  min-height: 100vh;
  padding: 28px;
  color: #111;
  background:
    radial-gradient(circle at 20% 15%, rgba(216, 178, 96, .16), transparent 30%),
    radial-gradient(circle at 78% 70%, rgba(216, 178, 96, .12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7f5ee 48%, #ece6d6 100%);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}
.legal-header {
  width: min(1120px, 100%);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  text-decoration: none;
  font-weight: 1000;
  font-size: 22px;
}
.legal-brand img { width: 46px; height: 46px; border-radius: 14px; object-fit: contain; background: transparent; }
.legal-header nav { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: flex-end; }
.legal-header nav a { color: #5f471c; font-weight: 900; text-decoration: none; }
.legal-header nav a:hover { text-decoration: underline; }
.legal-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 32px;
  background: rgba(255,253,246,.92);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 24px 55px rgba(37, 24, 13, 0.16), inset 0 0 0 1px rgba(255,255,255,.65);
}
.legal-card h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 62px); line-height: .95; letter-spacing: -.06em; }
.legal-card p { color: #5f5748; line-height: 1.68; font-size: 17px; }
.legal-lead { color: #111 !important; font-size: 20px !important; font-weight: 850; }
.legal-card .gold-button { margin-top: 12px; display: inline-flex; }
@media (max-width: 720px) {
  .legal-page { padding: 16px; }
  .legal-header { align-items: flex-start; flex-direction: column; }
  .settings-popover { right: auto; left: 50%; transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   v10.8 logo, settings layer, clans and old-build item cleanup
   -------------------------------------------------------------------------- */
.modern-dashboard--gold .dash-main { position: relative; z-index: 1; overflow: visible; }
.modern-dashboard--gold .dash-topbar { position: relative; z-index: 120; overflow: visible; }
.modern-dashboard--gold .content-grid,
.modern-dashboard--gold .hero-dashboard,
.modern-dashboard--gold .overview-grid,
.modern-dashboard--gold .panel-card { position: relative; z-index: 1; }
.modern-dashboard--gold .topbar-actions--settings { display: flex; align-items: center; gap: 12px; z-index: 130; }
.modern-dashboard--gold .settings-menu { z-index: 140; }
.modern-dashboard--gold .settings-popover { z-index: 9999; }
.outline-button--logout { white-space: nowrap; }
.topbar-actions--settings form { margin: 0; }
.inline-text-link { color: #8d6b25; font-weight: 950; text-decoration: none; border-bottom: 1px solid rgba(141,107,37,.35); }
.inline-text-link:hover { color: #111; border-bottom-color: #111; }
.overview-grid:has(.overview-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inventory-row strong::first-letter { text-transform: uppercase; }
@media (max-width: 1180px) {
  .overview-grid:has(.overview-card:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .topbar-actions--settings { width: 100%; justify-content: space-between; }
  .overview-grid:has(.overview-card:nth-child(3):last-child) { grid-template-columns: 1fr; }
}


/* v10.9 legacy mechanics polish – keeps v10.8 visual language */
.collectible-slots {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
}
.collectible-slot {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(91, 67, 42, .18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,232,169,.58));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.collectible-slot--empty {
  background: rgba(255,255,255,.34);
  border-style: dashed;
}
.collectible-slot__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8df, #e7bd63);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 18px rgba(102, 70, 24, .16);
  font-size: 24px;
}
.collectible-slot strong,
.collectible-slot small {
  display: block;
}
.collectible-slot strong {
  font-size: 14px;
  color: #3a2818;
}
.collectible-slot small {
  color: rgba(74, 52, 36, .68);
  font-size: 12px;
}

/* Zapařeno v10.10 – account settings, subscription clarity and friends system */
.settings-form {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(216,178,96,.32);
  border-radius: 18px;
  background: rgba(255, 250, 235, .72);
}
.settings-form label {
  display: grid;
  gap: 5px;
  color: #7d6a3a;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.settings-form input[type="text"] {
  width: 100%;
  border: 1px solid rgba(34, 24, 14, .18);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: #130d08;
  font-size: 14px;
  font-weight: 850;
  padding: 9px 10px;
  outline: none;
}
.settings-form input[type="text"]:focus {
  border-color: rgba(196, 147, 45, .72);
  box-shadow: 0 0 0 3px rgba(216,178,96,.2);
}
.settings-save { width: 100%; justify-content: center; }
.subscription-action-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(216,178,96,.28);
  background: linear-gradient(145deg, rgba(255,247,224,.92), rgba(238,202,129,.62));
}
.subscription-action-box div { display: grid; gap: 4px; }
.subscription-action-box strong { color: #111; }
.subscription-action-box small { color: #735d2c; font-weight: 850; }
.store-catalog-drawer {
  margin-top: 14px;
  border: 1px solid rgba(216,178,96,.25);
  border-radius: 20px;
  background: rgba(255, 250, 235, .56);
  overflow: hidden;
}
.store-catalog-drawer summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #22180e;
  font-weight: 950;
  list-style-position: inside;
}
.store-catalog-drawer[open] summary { border-bottom: 1px solid rgba(216,178,96,.18); }
.inventory-list--catalog { padding: 12px; }
.friend-add-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}
.friend-add-form input[type="text"] {
  min-width: 0;
  border: 1px solid rgba(216,178,96,.28);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  color: #150d08;
  font-weight: 850;
  padding: 11px 13px;
  outline: none;
}
.friend-add-form input[type="text"]:focus {
  border-color: rgba(216,178,96,.72);
  box-shadow: 0 0 0 3px rgba(216,178,96,.18);
}
.friend-section-title {
  margin: 12px 0 8px;
  color: #7d6a3a;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.friend-list .activity-item span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff4cf, #d8b260);
  color: #14100b;
  font-weight: 950;
  font-size: 12px;
}
.activity-item--actions {
  align-items: center;
  grid-template-columns: auto 1fr auto;
}
.friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .subscription-action-box,
  .friend-add-form,
  .activity-item--actions { grid-template-columns: 1fr; display: grid; }
  .friend-actions { justify-content: stretch; }
  .friend-actions form,
  .friend-actions button { width: 100%; }
}

/* Zapařeno v10.11 – social panel, clan growth unlocks and single-panel game carousel */
.game-carousel {
  position: relative;
  display: grid;
  gap: 14px;
}
.game-carousel__viewport {
  position: relative;
  min-height: 360px;
}
.game-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(22px) scale(.985);
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(12, 10, 7, .82), rgba(34, 24, 10, .54)),
    var(--game-bg) center center / contain no-repeat,
    linear-gradient(135deg, #fff7df, #d8b260);
  border: 1px solid rgba(216, 178, 96, .42);
  box-shadow: 0 24px 54px rgba(31, 22, 10, .18);
  transition: opacity .24s ease, transform .24s ease;
}
.game-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.game-slide__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.24), transparent 34%), linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.02));
  pointer-events: none;
}
.game-slide__cover,
.game-slide__content,
.game-slide__actions { position: relative; z-index: 1; }
.game-slide__cover {
  width: 96px;
  min-height: 210px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #1d1508;
  font-size: 42px;
  font-weight: 1000;
  background: linear-gradient(180deg, rgba(255,239,183,.94), rgba(216,178,96,.92));
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.46), 0 18px 38px rgba(0,0,0,.18);
}
.game-slide__content {
  display: grid;
  align-content: center;
  min-width: 0;
  color: #fff7df;
}
.game-slide__content .game-row__titleline strong {
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
  text-shadow: 0 3px 0 rgba(0,0,0,.24);
}
.game-slide__content .game-row__titleline span {
  background: rgba(255,255,255,.88);
  color: #18130c;
}
.game-slide__content p {
  margin: 8px 0 14px;
  color: rgba(255,250,236,.86);
  font-weight: 900;
}
.game-slide__actions {
  display: grid;
  place-items: center;
}
.game-slide--disabled { filter: grayscale(.2); }
.game-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.game-stat-grid > span {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.game-stat-grid small { color: rgba(255,246,221,.78); font-size: 11px; font-weight: 950; }
.game-stat-grid strong { color: #fff; font-size: 22px; line-height: 1; }
.game-carousel__arrow {
  position: absolute;
  top: calc(50% - 34px);
  z-index: 4;
  width: 42px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: #22180e;
  font-size: 40px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0,0,0,.14);
  transition: transform .15s ease, background .15s ease;
}
.game-carousel__arrow:hover { transform: translateY(-2px); background: rgba(255,255,255,.86); }
.game-carousel__arrow--prev { left: -14px; }
.game-carousel__arrow--next { right: -14px; }
.game-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.game-dot {
  border: 1px solid rgba(216,178,96,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  color: #362713;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}
.game-dot.is-active {
  background: linear-gradient(180deg, #1f1f1f, #050505);
  color: #fff;
  border-color: rgba(216,178,96,.76);
}
.clan-dashboard-grid,
.social-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.social-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clan-stat-card,
.social-metrics span,
.social-box {
  border: 1px solid rgba(216,178,96,.24);
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,247,224,.62));
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(31, 22, 10, .08);
}
.clan-stat-card small,
.social-metrics small {
  display: block;
  color: #7d6a3a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.clan-stat-card strong,
.social-metrics strong {
  display: block;
  margin: 4px 0;
  color: #111;
  font-size: 24px;
  line-height: 1.05;
}
.clan-stat-card span { color: rgba(24,19,12,.68); font-size: 12px; font-weight: 850; }
.clan-member-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.clan-member-chip {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(216,178,96,.18);
}
.clan-member-chip > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff4cf, #d8b260);
  color: #14100b;
  font-weight: 950;
  font-size: 12px;
}
.clan-member-chip strong { display:block; color:#111; }
.clan-member-chip small { color:#7d6a3a; font-weight:850; }
.panel-card--social { overflow: visible; }
.social-panel-grid {
  display: grid;
  gap: 12px;
}
.social-box__heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.social-box__heading strong { color: #111; font-size: 1.05rem; }
.social-box__heading small { color: #7d6a3a; font-weight: 850; }
.message-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.message-stream {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.message-stream > strong { color: #111; }
.message-list {
  min-height: 120px;
  max-height: 220px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(216,178,96,.18);
}
.message-list article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.message-list article > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(216,178,96,.34);
  color: #14100b;
  font-size: 11px;
  font-weight: 950;
}
.message-list p { margin: 0; color: rgba(24,19,12,.78); font-size: 13px; line-height: 1.35; }
.message-list p strong { display: block; color: #111; margin-bottom: 2px; }
.social-message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.social-message-form input[type="text"] {
  min-width: 0;
  border: 1px solid rgba(216,178,96,.28);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  color: #150d08;
  font-weight: 850;
  padding: 10px 12px;
  outline: none;
}
.social-message-form input:disabled,
.social-message-form input[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 1100px) {
  .game-slide { grid-template-columns: 78px minmax(0, 1fr); }
  .game-slide__actions { grid-column: 1 / -1; justify-items: start; }
  .game-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .message-columns { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .game-carousel__viewport { min-height: 470px; }
  .game-slide { grid-template-columns: 1fr; }
  .game-slide__cover { width: 64px; min-height: 64px; }
  .game-stat-grid,
  .clan-dashboard-grid,
  .social-metrics { grid-template-columns: 1fr; }
  .game-carousel__arrow { top: 18px; width: 36px; height: 48px; font-size: 30px; }
  .game-carousel__arrow--prev { left: 12px; }
  .game-carousel__arrow--next { right: 12px; }
  .social-message-form { grid-template-columns: 1fr; }
}

/* v10.12 social top layer – připnuté social centrum v horní liště */
.social-top-menu {
  position: relative;
  z-index: 150;
}
.social-top-menu summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.social-top-menu summary::-webkit-details-marker { display: none; }
.social-top-trigger {
  gap: 8px;
  white-space: nowrap;
  background: rgba(216,178,96,.18);
  border-color: rgba(216,178,96,.32);
}
.social-top-trigger strong,
.social-status-pill {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #111, #2c2418);
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  padding: 0 7px;
}
.social-popover--topbar {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(720px, calc(100vw - 34px));
  max-height: min(760px, calc(100vh - 120px));
  overflow: auto;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255,253,246,.985);
  border: 1px solid rgba(216,178,96,.42);
  box-shadow: 0 34px 80px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.78);
}
.social-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.social-popover__header strong { display: block; color: #111; font-size: 20px; }
.social-popover__header small { color: #7d6a3a; font-weight: 900; }
.social-quick-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.social-quick-metrics span {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(216,178,96,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,247,224,.66));
}
.social-quick-metrics small {
  display: block;
  color: #7d6a3a;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.social-quick-metrics strong { display: block; color: #111; font-size: 22px; }
.social-tabs { display: grid; gap: 12px; }
.social-tab-input { position: absolute; opacity: 0; pointer-events: none; }
.social-tab-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(0,0,0,.045);
}
.social-tab-labels label {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 14px;
  color: #5f471c;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.social-tab-labels label:hover { transform: translateY(-1px); background: rgba(216,178,96,.18); }
.social-tab-panel { display: none; gap: 10px; }
#social-tab-requests:checked ~ .social-tab-labels label[for="social-tab-requests"],
#social-tab-friends:checked ~ .social-tab-labels label[for="social-tab-friends"],
#social-tab-messages:checked ~ .social-tab-labels label[for="social-tab-messages"] {
  background: linear-gradient(135deg, var(--dash-gold-2), var(--dash-gold));
  color: #151006;
  box-shadow: 0 12px 26px rgba(139,103,41,.18);
}
#social-tab-requests:checked ~ .social-tab-panels .social-tab-panel--requests,
#social-tab-friends:checked ~ .social-tab-panels .social-tab-panel--friends,
#social-tab-messages:checked ~ .social-tab-panels .social-tab-panel--messages {
  display: grid;
}
.social-compact-list {
  max-height: 260px;
  overflow: auto;
}
.social-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social-suggestion-row span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #5f471c;
  background: rgba(216,178,96,.18);
  font-size: 12px;
  font-weight: 950;
}
.direct-thread-list {
  display: grid;
  gap: 10px;
}
.direct-thread-list--panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}
.direct-thread-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(216,178,96,.22);
}
.direct-thread-card.has-unread {
  border-color: rgba(216,178,96,.68);
  box-shadow: 0 14px 34px rgba(139,103,41,.16);
}
.direct-thread-card__head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.direct-thread-card__head > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff4cf, #d8b260);
  color: #14100b;
  font-size: 12px;
  font-weight: 1000;
}
.direct-thread-card strong { display: block; color: #111; }
.direct-thread-card small { color: #7d6a3a; font-weight: 900; }
.direct-thread-card p {
  margin: 0;
  color: rgba(24,19,12,.72);
  font-size: 13px;
  line-height: 1.35;
}
.social-room-mini {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(216,178,96,.18);
}
.social-room-mini > strong { color: #111; }
.direct-message-panel { margin-bottom: 12px; }
.outline-button--tiny {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
}
@media (max-width: 960px) {
  .social-popover--topbar { right: auto; left: 50%; transform: translateX(-50%); }
  .direct-thread-list--panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .social-top-menu,
  .social-top-trigger { width: 100%; }
  .social-popover--topbar { left: 0; transform: none; width: calc(100vw - 32px); }
  .social-quick-metrics,
  .social-tab-labels { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   v10.13 room HUD layout – sticky tiled topbar, wallet drawer and library tabs
   -------------------------------------------------------------------------- */
.modern-dashboard--room {
  grid-template-columns: 318px minmax(0, 1fr);
}

.modern-dashboard--room .dash-main--room {
  width: min(100%, 1420px);
  padding-top: 0;
}

.dash-sidebar--room {
  gap: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.dash-nav--room {
  gap: 12px;
}

.sidebar-stack {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.side-info-card {
  margin-top: 0;
  padding: 15px;
  border-color: rgba(216,178,96,.22);
}

.side-info-card strong {
  font-size: 17px;
  line-height: 1.18;
}

.side-info-card p {
  margin-bottom: 10px;
}

.side-mini-list {
  display: grid;
  gap: 8px;
}

.side-mini-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
}

.side-mini-list article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #d8b260 0%, #aa7c27 100%);
  color: #111;
  font-weight: 1000;
}

.side-mini-list strong,
.side-mini-list small {
  display: block;
}

.side-mini-list strong {
  color: #fff;
  font-size: 13px;
}

.side-mini-list small {
  color: rgba(255,255,255,.56);
  font-size: 11px;
  line-height: 1.25;
}

.side-progress {
  height: 8px;
  background: rgba(255,255,255,.12);
}

.modern-dashboard--room .dash-topbar--sticky {
  position: sticky !important;
  top: 0;
  z-index: 900;
  margin: 0 0 22px;
  border-radius: 0 0 28px 28px;
  border-top: 0;
  padding: 10px 12px;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(190px, .86fr) minmax(0, 2.4fr);
  align-items: stretch;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,253,246,.98), rgba(245,232,194,.93));
  box-shadow: 0 20px 44px rgba(37,24,13,.18), inset 0 -1px 0 rgba(216,178,96,.32);
}

.topbar-actions--hud {
  display: grid !important;
  grid-template-columns: minmax(150px, .9fr) minmax(190px, 1.15fr) auto auto auto;
  align-items: stretch !important;
  gap: 10px !important;
  position: relative;
}

.hud-tile,
.social-top-trigger,
.settings-menu > summary,
.hud-logout {
  min-height: 58px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(54,36,15,.16) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,244,213,.72)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 22px rgba(91,67,42,.09);
  color: #111 !important;
  text-decoration: none;
}

.hud-tile:hover,
.social-top-trigger:hover,
.settings-menu > summary:hover,
.hud-logout:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(236,203,124,.78)) !important;
}

.hud-tile small,
.hud-tile em,
.social-top-trigger span {
  display: block;
  color: #7d6a3a;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hud-tile strong {
  display: block;
  color: #111;
  font-size: 17px;
  line-height: 1.08;
}

.hud-tile--identity {
  justify-content: flex-start;
  background: linear-gradient(180deg, #2c2c2c 0%, #0c0c0c 100%) !important;
  color: #fff !important;
  border-color: rgba(216,178,96,.54) !important;
}

.hud-tile--identity strong,
.hud-tile--identity small {
  color: #fff;
}

.hud-tile--identity small {
  color: rgba(245,223,157,.78);
}

.hud-tile--wallet {
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  list-style: none;
}

.hud-tile--wallet::-webkit-details-marker,
.wallet-top-menu summary::-webkit-details-marker { display: none; }

.hud-tile--wallet em {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(216,178,96,.24);
  color: #5f471c;
  white-space: nowrap;
}

.hud-tile--level {
  justify-content: space-between;
  align-items: center;
}

.hud-tile--level > div {
  min-width: 120px;
  display: grid;
  gap: 6px;
}

.mini-progress--hud {
  height: 7px;
  background: rgba(0,0,0,.09);
}

.wallet-top-menu,
.hud-menu {
  position: relative;
  z-index: 220;
}

.hud-popover,
.wallet-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(860px, calc(100vw - 34px));
  max-height: min(780px, calc(100vh - 118px));
  overflow: auto;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255,253,246,.988);
  border: 1px solid rgba(216,178,96,.42);
  box-shadow: 0 34px 80px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.78);
}

.hud-popover__header,
.wallet-drawer-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.hud-popover__header {
  margin-bottom: 14px;
}

.hud-popover__header strong,
.wallet-drawer-title strong {
  display: block;
  color: #111;
  font-size: 20px;
}

.hud-popover__header small,
.wallet-drawer-title small {
  color: #7d6a3a;
  font-weight: 900;
}

.wallet-drawer-section {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(216,178,96,.2);
}

.wallet-drawer-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.wallet-drawer-section--split {
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: 14px;
  align-items: start;
}

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

.wallet-grid--drawer .wallet-card {
  min-height: 112px;
  padding: 14px;
}

.wallet-access-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(216,178,96,.24);
  background: linear-gradient(145deg, rgba(255,247,224,.94), rgba(238,202,129,.58));
}

.wallet-access-box strong,
.wallet-access-box small {
  display: block;
}

.wallet-access-box small {
  color: rgba(24,19,12,.66);
  margin-top: 3px;
}

.wallet-wide-action {
  width: 100%;
}

.collectible-slots--drawer {
  margin-bottom: 0;
}

.inventory-list--drawer {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.store-catalog-drawer--wallet {
  margin-top: 10px;
}

.dashboard-library-hero {
  min-height: 0;
  display: block;
  padding: clamp(18px, 3vw, 28px);
}

.dashboard-library-hero::after { display: none; }

.library-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.library-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.library-heading h1 {
  margin: 0;
  color: #080808;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .94;
  letter-spacing: -.055em;
  text-shadow: 0 2px 0 #fff, 0 5px 0 rgba(208,166,74,.36), 0 12px 24px rgba(0,0,0,.07);
}

.library-heading p:not(.dash-eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: #635d51;
  font-size: 16px;
  line-height: 1.55;
}

.library-tabs {
  display: grid;
  gap: 14px;
}

.library-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.library-tab-labels {
  width: fit-content;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(0,0,0,.055);
  border: 1px solid rgba(255,255,255,.72);
}

.library-tab-labels label {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 14px;
  color: #5f471c;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.library-tab-labels label:hover {
  transform: translateY(-1px);
  background: rgba(216,178,96,.18);
}

#library-tab-games:checked ~ .library-tab-labels label[for="library-tab-games"],
#library-tab-apps:checked ~ .library-tab-labels label[for="library-tab-apps"] {
  background: linear-gradient(135deg, var(--dash-gold-2), var(--dash-gold));
  color: #151006;
  box-shadow: 0 12px 26px rgba(139,103,41,.18);
}

.library-panel { display: none; }

#library-tab-games:checked ~ .library-panels .library-panel--games,
#library-tab-apps:checked ~ .library-panels .library-panel--apps {
  display: block;
}

.game-carousel--library .game-carousel__viewport {
  min-height: 360px;
}

.app-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-library-card {
  min-height: 170px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(216,178,96,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,247,224,.66));
  box-shadow: 0 16px 34px rgba(24,18,9,.08);
}

.app-library-card > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #111;
  background: linear-gradient(180deg, #d8b260 0%, #aa7c27 100%);
  font-weight: 1000;
  font-size: 24px;
}

.app-library-card strong,
.app-library-card small {
  display: block;
}

.app-library-card strong {
  color: #111;
  font-size: 18px;
}

.app-library-card small {
  color: #7d6a3a;
  font-weight: 950;
  margin-top: 3px;
}

.app-library-card p {
  color: rgba(24,19,12,.66);
  margin: 10px 0 0;
  line-height: 1.45;
}

.app-library-card--muted {
  opacity: .86;
  border-style: dashed;
}

.overview-grid--room a {
  text-decoration: none;
}

.dashboard-secondary-grid {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
}

.level-card--horizontal {
  min-height: 172px;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 16px;
}

.level-card--horizontal .level-ring {
  width: 122px;
  height: 122px;
}

.level-card--horizontal .level-ring span { margin-top: 36px; }
.level-card--horizontal .level-ring strong { margin-bottom: 28px; font-size: 38px; }

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

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

.social-metrics span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(216,178,96,.22);
  background: rgba(255,255,255,.65);
}

.social-metrics small {
  color: #7d6a3a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
}

.social-metrics strong {
  color: #111;
  font-size: 26px;
  line-height: 1;
}

.modern-dashboard--room .social-top-menu,
.modern-dashboard--room .settings-menu {
  align-self: stretch;
  display: flex;
}

.modern-dashboard--room .social-top-menu > summary,
.modern-dashboard--room .settings-menu > summary {
  width: 100%;
}

.modern-dashboard--room .social-top-trigger strong,
.modern-dashboard--room .social-status-pill {
  background: linear-gradient(145deg, #111, #2c2418);
  color: #fff;
}

.modern-dashboard--room .settings-popover,
.modern-dashboard--room .social-popover--topbar,
.modern-dashboard--room .wallet-popover {
  z-index: 9999;
}

.modern-dashboard--room .outline-button--logout,
.modern-dashboard--room .hud-logout {
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .modern-dashboard--room {
    grid-template-columns: 1fr;
  }
  .dash-sidebar--room {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .sidebar-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }
  .topbar-actions--hud {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .modern-dashboard--room .dash-topbar--sticky {
    grid-template-columns: 1fr;
  }
  .topbar-actions--hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wallet-drawer-section--split,
  .wallet-grid--drawer,
  .app-library-grid,
  .progress-list--room {
    grid-template-columns: 1fr;
  }
  .dashboard-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .modern-dashboard--room .dash-main--room {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar-stack,
  .topbar-actions--hud,
  .social-metrics {
    grid-template-columns: 1fr;
  }
  .library-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .library-heading .gold-button {
    width: 100%;
  }
  .library-tab-labels {
    width: 100%;
  }
  .hud-popover,
  .wallet-popover,
  .social-popover--topbar,
  .settings-popover {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    width: calc(100vw - 24px) !important;
  }
  .level-card--horizontal {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* ===============================
   Dashboard v10.15 retro tile shell
   =============================== */
html.dashboard-modal-open,
html.dashboard-modal-open body {
  overflow: hidden;
}

.modern-dashboard--retro-hub {
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  gap: 18px;
}

.modern-dashboard--retro-hub button,
.modern-dashboard--retro-hub a,
.modern-dashboard--retro-hub input[type="submit"] {
  -webkit-tap-highlight-color: rgba(216, 178, 96, .24);
  touch-action: manipulation;
}

.modern-dashboard--retro-hub .retro-sidebar {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: visible;
  gap: 18px;
  padding: 18px;
}

.retro-brand {
  border-radius: 0;
  border: 1px solid rgba(216,178,96,.36);
  background: linear-gradient(180deg, rgba(34,32,29,.94), rgba(16,16,15,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.18);
}

.retro-brand:active,
.retro-brand.is-tap-active {
  transform: translateY(2px);
  box-shadow: inset 0 3px 10px rgba(0,0,0,.42), 0 4px 12px rgba(0,0,0,.2);
}

.retro-nav {
  display: grid;
  gap: 10px;
}

.retro-nav h2 {
  margin: 0 0 4px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 1000;
}

.retro-nav__tile {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  font-size: 19px;
  line-height: 1;
  font-weight: 1000;
  text-align: left;
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(90deg, rgba(80,73,61,.72), rgba(45,43,39,.52));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 22px rgba(0,0,0,.11);
  cursor: pointer;
  transition: transform .1s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
}

.retro-nav__tile .retro-nav__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: rgba(244,212,137,.92);
  font-size: 18px;
  line-height: 1;
}

.retro-nav__tile:hover,
.retro-nav__tile:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #202020, #070707);
  border-color: rgba(216,178,96,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 2px rgba(216,178,96,.10), 0 15px 26px rgba(0,0,0,.24);
  outline: none;
}

.retro-nav__tile:active,
.retro-nav__tile.is-active,
.retro-nav__tile.is-tap-active {
  transform: translateY(2px) scale(.992);
  color: #fff;
  background: linear-gradient(180deg, #111, #000);
  border-color: rgba(244,212,137,.92);
  box-shadow: inset 0 4px 12px rgba(0,0,0,.62), 0 3px 0 rgba(216,178,96,.36);
}

.retro-sidebar-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.retro-sidebar-info article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: end;
  padding: 13px;
  border: 1px solid rgba(216,178,96,.28);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(22,22,21,.94), rgba(8,8,8,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.retro-sidebar-info small {
  color: rgba(244,212,137,.76);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 950;
}

.retro-sidebar-info strong {
  grid-row: span 2;
  color: #fff;
  font-size: 30px;
  line-height: .9;
}

.retro-sidebar-info span {
  color: rgba(255,255,255,.52);
  font-size: 12px;
  font-weight: 800;
}

.retro-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100vh;
  padding: 8px 18px 18px 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  overflow: hidden;
}

.retro-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.retro-header-grid {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, .72fr) minmax(120px, .72fr) 92px 92px;
  border: 1px solid rgba(10,10,10,.82);
  background: rgba(0,0,0,.7);
  box-shadow: 0 18px 36px rgba(0,0,0,.16);
}

.retro-header-tile,
.retro-header form.button_to {
  min-width: 0;
}

.retro-header form.button_to {
  display: contents;
}

.retro-header-tile {
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid rgba(0,0,0,.78);
  border-radius: 0;
  color: #111;
  background: linear-gradient(180deg, #a9a9a7, #8f8e8b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, filter .14s ease, box-shadow .12s ease, background .14s ease;
}

.retro-header-tile:last-child {
  border-right: 0;
}

.retro-header-tile:hover,
.retro-header-tile:focus-visible {
  background: linear-gradient(180deg, #d8b260, #a77924);
  color: #080808;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 0 0 2px rgba(17,17,17,.22);
}

.retro-header-tile:active,
.retro-header-tile.is-tap-active {
  transform: translateY(2px);
  filter: brightness(.92);
  box-shadow: inset 0 4px 14px rgba(0,0,0,.32);
}

.retro-header-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #050505;
  font-size: 25px;
  line-height: 1;
  font-weight: 1000;
}

.retro-header-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.retro-header-text strong {
  color: inherit;
  font-size: 17px;
  line-height: 1;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.retro-header-text small {
  color: rgba(17,17,17,.7);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.retro-header-tile--profile {
  background: linear-gradient(180deg, #2e2e2d, #0c0c0c);
  color: #fff;
  border-color: rgba(216,178,96,.34);
}

.retro-header-tile--profile .retro-header-icon {
  color: #111;
  background: linear-gradient(180deg, #d8b260, #a77924);
  border: 1px solid rgba(255,255,255,.18);
}

.retro-header-tile--profile .retro-header-text small {
  color: rgba(244,212,137,.8);
}

.retro-header-tile--profile:hover {
  background: linear-gradient(180deg, #151515, #000);
  color: #fff;
}

.retro-header-tile--icon-only {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
}

.retro-header-tile--icon-only .retro-header-icon {
  width: 100%;
  height: 100%;
  font-size: 34px;
}

.retro-header-tile--logout {
  width: 100%;
}

.retro-workspace {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: 0;
  border: 1px solid rgba(216,178,96,.22);
  background: linear-gradient(180deg, rgba(255,253,247,.94), rgba(244,236,211,.88));
  box-shadow: 0 22px 44px rgba(25,17,8,.12);
}

.retro-workspace-section {
  display: none;
  height: 100%;
  overflow: auto;
  align-content: start;
  gap: 18px;
  padding-right: 4px;
}

.retro-workspace-section.is-active {
  display: grid;
}

.retro-workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.retro-workspace-heading h1 {
  margin: 0;
  color: #080808;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: .94;
  letter-spacing: -.055em;
  text-shadow: 0 2px 0 #fff, 0 5px 0 rgba(208,166,74,.32), 0 12px 24px rgba(0,0,0,.07);
}

.retro-workspace-heading p:not(.dash-eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: #635d51;
  font-size: 16px;
  line-height: 1.55;
}

.retro-action-button {
  white-space: nowrap;
}

.retro-tab-labels {
  border-radius: 0;
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(216,178,96,.26);
}

.retro-tab-labels label {
  border-radius: 0;
}

.retro-tab-labels label:active,
.retro-tab-labels label.is-tap-active,
.retro-pressable:active,
.retro-pressable.is-tap-active,
.gold-button:active,
.outline-button:active {
  transform: translateY(2px) scale(.99);
  filter: brightness(.94);
}

.retro-workspace-grid {
  display: grid;
  gap: 14px;
}

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

.retro-workspace-grid--three {
  grid-template-columns: 1.05fr 1fr 1fr;
}

.retro-content-card,
.retro-panel-card,
.retro-modal-card {
  border-radius: 0 !important;
  border: 1px solid rgba(216,178,96,.28) !important;
  box-shadow: 0 16px 34px rgba(24,18,9,.08), inset 0 1px 0 rgba(255,255,255,.52) !important;
}

.retro-content-card.is-visible,
.retro-panel-card.is-visible {
  opacity: 1;
  transform: none;
}

.retro-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.retro-level-card {
  margin-bottom: 0;
}

.retro-game-carousel .game-carousel__viewport,
.retro-game-carousel .game-slide {
  min-height: 330px;
}

.compact-scroll {
  max-height: 340px;
  overflow: auto;
  padding-right: 2px;
}

.retro-list {
  display: grid;
  gap: 9px;
}

.retro-list-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(216,178,96,.2);
  border-radius: 0;
  background: rgba(255,255,255,.68);
}

.retro-list-row > span:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #d8b260, #a77924);
  color: #111;
  font-weight: 1000;
}

.retro-list-row strong,
.retro-list-row small {
  display: block;
}

.retro-list-row small {
  color: #6a6256;
  line-height: 1.32;
}

.retro-inline-box {
  border-radius: 0;
}

.retro-inline-form,
.friend-add-form--topbar,
.social-message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.retro-inline-form input[type="text"],
.friend-add-form--topbar input,
.social-message-form input,
.retro-settings-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 0;
  border: 1px solid rgba(216,178,96,.34);
  background: rgba(255,255,255,.82);
  color: #111;
  padding: 10px 13px;
  outline: none;
}

.retro-inline-form input:focus,
.retro-settings-form input:focus {
  border-color: rgba(216,178,96,.86);
  box-shadow: 0 0 0 3px rgba(216,178,96,.2);
}

.retro-settings-form {
  display: grid;
  gap: 10px;
}

.retro-settings-form label {
  display: grid;
  gap: 7px;
  color: #5a4630;
  font-weight: 900;
}

.settings-links--header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.settings-links--header a {
  color: #7d6a3a;
  text-decoration: none;
  font-weight: 950;
}

.activity-item--actions {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.retro-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: none;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(4px);
}

.retro-modal-backdrop.is-open {
  display: block;
}

.retro-modal {
  position: fixed;
  inset: 0;
  z-index: 9991;
  display: none;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  pointer-events: none;
}

.retro-modal.is-open {
  display: grid;
}

.retro-modal-window {
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid rgba(216,178,96,.82);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255,253,246,.99), rgba(244,235,207,.99));
  box-shadow: 0 42px 110px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.72);
  pointer-events: auto;
  animation: retroModalIn .16s ease-out;
}

@keyframes retroModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.retro-modal-header {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(180deg, #222, #070707);
  border-bottom: 1px solid rgba(216,178,96,.58);
}

.retro-modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: .95;
  letter-spacing: -.04em;
}

.retro-modal-header .dash-eyebrow {
  color: rgba(244,212,137,.88);
}

.retro-modal-close {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: 1px solid rgba(244,212,137,.66);
  background: linear-gradient(180deg, #d8b260, #a77924);
  color: #111;
  font-size: 42px;
  line-height: 1;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 10px 20px rgba(0,0,0,.22);
}

.retro-modal-close:hover,
.retro-modal-close:focus-visible {
  background: linear-gradient(180deg, #fff0bd, #d8b260);
  outline: none;
}

.retro-modal-close:active,
.retro-modal-close.is-tap-active {
  transform: translateY(2px);
  box-shadow: inset 0 4px 12px rgba(0,0,0,.22);
}

.retro-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.retro-modal-panel {
  display: none;
  gap: 16px;
}

.retro-modal-panel.is-active {
  display: grid;
}

.retro-modal-grid {
  display: grid;
  gap: 14px;
}

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

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

.retro-modal-card {
  padding: 14px;
  background: rgba(255,255,255,.72);
}

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

.retro-social-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.retro-social-metrics article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(216,178,96,.26);
  background: rgba(255,255,255,.72);
}

.retro-social-metrics small {
  color: #7d6a3a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 950;
}

.retro-social-metrics strong {
  color: #111;
  font-size: 30px;
  line-height: 1;
}

@media (hover: none) {
  .retro-nav__tile:hover {
    background: linear-gradient(90deg, rgba(80,73,61,.72), rgba(45,43,39,.52));
    border-color: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 22px rgba(0,0,0,.11);
  }

  .retro-nav__tile:active,
  .retro-nav__tile.is-active,
  .retro-nav__tile.is-tap-active {
    background: linear-gradient(180deg, #111, #000);
    border-color: rgba(244,212,137,.92);
  }
}

@media (max-width: 1420px) {
  .retro-header-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .retro-workspace-grid--three,
  .retro-modal-grid--three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1180px) {
  .modern-dashboard--retro-hub {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .modern-dashboard--retro-hub .retro-sidebar {
    overflow: visible;
  }

  .retro-main {
    height: auto;
    min-height: 100vh;
    padding: 0 14px 16px;
    overflow: visible;
  }

  .retro-workspace {
    height: auto;
  }

  .retro-workspace-section {
    height: auto;
    overflow: visible;
  }

  .retro-workspace-grid--two,
  .retro-workspace-grid--three,
  .retro-card-grid,
  .retro-modal-grid--two,
  .retro-modal-grid--three,
  .retro-wallet-grid,
  .retro-social-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .modern-dashboard--retro-hub {
    gap: 12px;
  }

  .modern-dashboard--retro-hub .retro-sidebar {
    padding: 14px;
  }

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

  .retro-header-tile {
    min-height: 66px;
    grid-template-columns: 1fr;
    gap: 3px;
    justify-items: center;
    padding: 6px !important;
    text-align: center;
  }

  .retro-header-tile--profile .retro-header-text small,
  .retro-header-text small {
    display: none;
  }

  .retro-header-text strong {
    font-size: 12px;
  }

  .retro-header-icon {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .retro-workspace-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .retro-list-row,
  .activity-item--actions,
  .retro-inline-form,
  .friend-add-form--topbar,
  .social-message-form {
    grid-template-columns: 1fr;
  }

  .retro-list-row > span:first-child {
    width: 100%;
  }

  .retro-modal {
    padding: 10px;
  }

  .retro-modal-window {
    max-height: calc(100vh - 20px);
  }

  .retro-modal-header {
    min-height: 72px;
    padding: 12px;
  }

  .retro-modal-close {
    width: 50px;
    height: 50px;
  }
}

/* ===============================
   Dashboard UX refinement v10.16
   =============================== */
.flash-toast,
.dash-flash,
.form-message {
  animation: zapFlashIn .18s ease-out both;
  will-change: opacity, transform, max-height, margin, padding;
}

.flash-toast.is-hiding,
.dash-flash.is-hiding,
.form-message.is-hiding {
  animation: zapFlashOut .72s ease-in forwards;
}

@keyframes zapFlashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zapFlashOut {
  0% { opacity: 1; transform: translateY(0); max-height: 140px; }
  72% { opacity: 0; transform: translateY(-10px); max-height: 140px; }
  100% { opacity: 0; transform: translateY(-10px); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
}

.play-mode-switch {
  min-width: min(420px, 100%);
  display: grid;
  gap: 8px;
  justify-items: end;
}

.play-mode-switch__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 0;
  border: 1px solid rgba(216,178,96,.78);
  background: #080808;
  box-shadow: 0 10px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}

.play-mode-switch__button {
  min-height: 46px;
  border: 0;
  border-right: 1px solid rgba(216,178,96,.46);
  border-radius: 0;
  background: linear-gradient(180deg, #242424, #080808);
  color: rgba(255,255,255,.82);
  font-weight: 1000;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.play-mode-switch__button:last-child { border-right: 0; }
.play-mode-switch__button.is-active {
  background: linear-gradient(180deg, #d8b260, #9a711d);
  color: #111;
}
.play-mode-switch__button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.play-mode-switch__button:not(:disabled):active,
.play-mode-switch__button.is-tap-active {
  transform: translateY(2px);
  box-shadow: inset 0 5px 14px rgba(0,0,0,.32);
}
.play-mode-switch small {
  max-width: 420px;
  color: #6d6456;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.retro-game-carousel {
  overflow: hidden;
}

.retro-game-carousel .game-carousel__viewport {
  overflow: hidden;
}

.retro-game-carousel .game-slide {
  overflow: hidden;
}

.retro-game-carousel .game-carousel__arrow {
  top: 0;
  bottom: 0;
  height: 100%;
  min-height: 100%;
  transform: none;
  border-radius: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(10,10,10,.82), rgba(0,0,0,.92));
  border-color: rgba(216,178,96,.52);
}

.retro-game-carousel .game-carousel__arrow:active,
.retro-game-carousel .game-carousel__arrow.is-tap-active {
  transform: translateY(2px);
  box-shadow: inset 0 8px 18px rgba(0,0,0,.38);
}

.retro-game-carousel .game-carousel__arrow--prev { left: 0; }
.retro-game-carousel .game-carousel__arrow--next { right: 0; }

.clan-unlock-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.clan-unlock-tile {
  min-height: 58px;
  padding: 9px;
  border: 1px dashed rgba(216,178,96,.32);
  background: rgba(15,15,15,.06);
  display: grid;
  gap: 3px;
  align-content: center;
}

.clan-unlock-tile.is-unlocked {
  border-style: solid;
  border-color: rgba(216,178,96,.82);
  background: linear-gradient(180deg, #181818, #050505);
}

.clan-unlock-tile strong {
  color: #111;
  font-size: 13px;
}
.clan-unlock-tile small {
  color: #776c5d;
  font-size: 11px;
}
.clan-unlock-tile.is-unlocked strong { color: #f4d489; }
.clan-unlock-tile.is-unlocked small { color: rgba(255,255,255,.72); }

.clan-tax-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px auto;
  gap: 10px;
  align-items: end;
}

.clan-tax-form label {
  display: grid;
  gap: 4px;
  color: #5a4630;
  font-weight: 900;
}

.clan-tax-form input[type="number"],
.retro-settings-form input[type="password"] {
  width: 100%;
  min-height: 44px;
  border-radius: 0;
  border: 1px solid rgba(216,178,96,.34);
  background: rgba(255,255,255,.82);
  color: #111;
  padding: 10px 13px;
  outline: none;
}

.clan-tax-readonly {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(216,178,96,.34);
  background: rgba(255,255,255,.68);
}

.clan-tax-readonly strong {
  font-size: 34px;
  line-height: 1;
  color: #111;
}

.clan-tax-readonly span {
  color: #6d6456;
  font-weight: 800;
}

.profile-summary-card {
  align-content: start;
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 2px solid rgba(216,178,96,.78);
  background: linear-gradient(180deg, #1b1b1b, #040404);
  color: #f4d489;
  font-size: 34px;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 16px 30px rgba(0,0,0,.18);
}

.account-action-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-action-stack form,
.account-action-stack button {
  width: 100%;
}

@media (max-width: 720px) {
  .play-mode-switch {
    justify-items: stretch;
  }

  .play-mode-switch small {
    text-align: left;
  }

  .clan-tax-form {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   v10.17 cleanup: subtle library carousel, social tabs, clan XP share
   =============================== */
.game-login-page .form-message {
  animation: zapFlashIn .18s ease-out, zapFlashOut .72s ease-in 3.6s forwards;
  will-change: opacity, transform, max-height;
}

.retro-game-carousel {
  position: relative;
  gap: 0;
  border: 1px solid rgba(216,178,96,.28);
  background: #080808;
  box-shadow: 0 16px 32px rgba(22,16,8,.14);
}

.retro-game-carousel .game-carousel__viewport {
  min-height: clamp(260px, 36vh, 420px);
  overflow: hidden;
}

.retro-game-carousel .game-slide {
  min-height: clamp(260px, 36vh, 420px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 28px 72px 72px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.28) 58%, rgba(0,0,0,.72)),
    var(--game-bg) center center / contain no-repeat,
    linear-gradient(135deg, #0a0a0a, #d8b260);
}

.retro-game-carousel .game-slide__backdrop {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 38%),
    radial-gradient(circle at 18% 14%, rgba(216,178,96,.2), transparent 28%);
}

.retro-game-carousel .game-slide__cover {
  position: absolute;
  right: 82px;
  top: 28px;
  width: 96px;
  min-height: 96px;
  opacity: .24;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(216,178,96,.92), rgba(167,121,36,.82));
  box-shadow: none;
  pointer-events: none;
}

.retro-game-carousel .game-slide__content {
  align-content: end;
  max-width: 780px;
  padding: 18px;
  border: 1px solid rgba(216,178,96,.36);
  background: linear-gradient(180deg, rgba(12,12,12,.82), rgba(0,0,0,.72));
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
}

.retro-game-carousel .game-slide__content .game-row__titleline strong {
  font-size: clamp(24px, 3.3vw, 42px);
}

.retro-game-carousel .game-slide__actions {
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
}

.retro-game-carousel .game-carousel__arrow {
  width: 54px;
  font-size: 58px;
  opacity: .86;
  border-top: 0;
  border-bottom: 0;
}

.retro-game-carousel .game-carousel__arrow:hover,
.retro-game-carousel .game-carousel__arrow:focus-visible {
  opacity: 1;
  background: linear-gradient(180deg, rgba(25,25,25,.94), rgba(0,0,0,1));
}

.retro-game-carousel .game-carousel__dots {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 16px;
  z-index: 24;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
}

.retro-game-carousel .game-dot {
  border-radius: 0;
  border: 1px solid rgba(216,178,96,.38);
  background: rgba(0,0,0,.62);
  color: rgba(255,255,255,.78);
  box-shadow: none;
}

.retro-game-carousel .game-dot.is-active {
  background: linear-gradient(180deg, #d8b260, #a77924);
  color: #111;
  border-color: rgba(255,255,255,.46);
}

.library-panels,
.library-panel {
  min-width: 0;
  overflow: hidden;
}

.wallet-card--action {
  cursor: pointer;
  text-align: left;
}

.wallet-card--action:hover,
.wallet-card--action:focus-visible {
  filter: brightness(1.06) saturate(1.04);
  outline: 2px solid rgba(216,178,96,.66);
  outline-offset: 2px;
}

.gold-request-form {
  display: grid;
  gap: 14px;
}

.gold-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gold-amount-tile {
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,178,96,.34);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(244,226,177,.68));
  color: #111;
  font-weight: 1000;
  cursor: pointer;
}

.gold-amount-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gold-amount-tile:has(input:checked) {
  background: linear-gradient(180deg, #1b1b1b, #050505);
  border-color: rgba(216,178,96,.86);
  color: #f4d489;
  box-shadow: inset 0 0 0 2px rgba(216,178,96,.18);
}

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

.social-section-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.social-section-tab {
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 0;
  border: 1px solid rgba(216,178,96,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(244,226,177,.62));
  color: #111;
  cursor: pointer;
  text-align: left;
}

.social-section-tab > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #d8b260, #a77924);
  color: #111;
  font-weight: 1000;
}

.social-section-tab strong,
.social-section-tab small {
  display: block;
}

.social-section-tab small {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.62);
  color: #111;
  font-size: 13px;
  font-weight: 1000;
}

.social-section-tab:hover,
.social-section-tab:focus-visible,
.social-section-tab.is-active {
  background: linear-gradient(180deg, #1b1b1b, #050505);
  border-color: rgba(216,178,96,.9);
  color: #fff;
  outline: none;
}

.social-section-tab:hover small,
.social-section-tab:focus-visible small,
.social-section-tab.is-active small {
  background: linear-gradient(180deg, #d8b260, #a77924);
  color: #111;
}

.social-section-panel {
  display: none;
}

.social-section-panel.is-active {
  display: block;
}

.activity-item--mine {
  background: rgba(216,178,96,.12);
}

.clan-tax-form--dual {
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr) 92px auto;
}

.store-clean-grid .store-items-card {
  grid-column: span 1;
}

@media (min-width: 1421px) {
  .store-clean-grid {
    grid-template-columns: .85fr 1.25fr .95fr;
  }
}

@media (max-width: 920px) {
  .retro-game-carousel .game-slide {
    grid-template-columns: 1fr;
    padding: 20px 58px 74px;
  }

  .retro-game-carousel .game-slide__actions {
    justify-self: start;
  }

  .retro-game-carousel .game-carousel__dots {
    left: 58px;
    right: 58px;
  }

  .social-section-tabs,
  .gold-amount-grid,
  .retro-wallet-grid--compact,
  .clan-tax-form--dual {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   v10.18 mobile/social/slider cleanup
   =============================== */
.retro-mobile-topbar,
.retro-mobile-menu-close,
.retro-mobile-menu-toggle {
  display: none;
}

.retro-game-carousel .game-carousel__arrow {
  color: #f4d489 !important;
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(216,178,96,.72);
  background: linear-gradient(180deg, rgba(216,178,96,.82), rgba(118,82,19,.78)) !important;
  border: 1px solid rgba(255,235,176,.9) !important;
  opacity: .94;
}

.retro-game-carousel .game-carousel__arrow:hover,
.retro-game-carousel .game-carousel__arrow:focus-visible {
  color: #fff7dc !important;
  background: linear-gradient(180deg, rgba(244,212,137,.94), rgba(150,104,24,.9)) !important;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.32), 0 0 22px rgba(216,178,96,.36);
}

.retro-game-carousel .game-slide {
  background:
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18) 58%, rgba(0,0,0,.55)),
    var(--game-bg) center center / contain no-repeat,
    linear-gradient(135deg, #0a0a0a, #d8b260) !important;
}

.retro-game-carousel .game-slide__content {
  background: linear-gradient(180deg, rgba(12,12,12,.68), rgba(0,0,0,.58)) !important;
  backdrop-filter: blur(2px);
}

.retro-game-carousel .game-slide__cover {
  opacity: .16 !important;
}

.gold-slider-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(216,178,96,.34);
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(244,226,177,.58));
}

.gold-slider-readout {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: linear-gradient(180deg, #1a1a1a, #050505);
  color: #fff;
}

.gold-slider-readout span,
.gold-slider-readout small {
  color: rgba(244,212,137,.78);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 950;
}

.gold-slider-readout strong {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  line-height: .95;
}

.gold-slider {
  width: 100%;
  accent-color: #d8b260;
  cursor: pointer;
}

.gold-slider::-webkit-slider-runnable-track {
  height: 12px;
  background: linear-gradient(90deg, #111, #d8b260);
  border: 1px solid rgba(0,0,0,.55);
}

.gold-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -9px;
  border-radius: 0;
  border: 2px solid #111;
  background: linear-gradient(180deg, #fff1c2, #d8b260);
  box-shadow: 0 4px 0 rgba(0,0,0,.28);
}

.gold-slider::-moz-range-track {
  height: 12px;
  background: linear-gradient(90deg, #111, #d8b260);
  border: 1px solid rgba(0,0,0,.55);
}

.gold-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 2px solid #111;
  background: linear-gradient(180deg, #fff1c2, #d8b260);
  box-shadow: 0 4px 0 rgba(0,0,0,.28);
}

.gold-slider-scale {
  display: flex;
  justify-content: space-between;
  color: #665b4d;
  font-size: 12px;
  font-weight: 950;
}

.message-thread-list {
  display: grid;
  gap: 8px;
}

.message-thread-button {
  width: 100%;
  border: 1px solid rgba(216,178,96,.22);
  background: rgba(255,255,255,.64);
  color: #111;
  text-align: left;
  cursor: pointer;
}

.message-thread-button:hover,
.message-thread-button:focus-visible,
.message-thread-button.is-active {
  border-color: rgba(216,178,96,.9);
  background: linear-gradient(180deg, #171717, #050505);
  color: #fff;
  outline: none;
}

.message-thread-button em {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(0,0,0,.34);
  background: linear-gradient(180deg, #d8b260, #a77924);
  color: #111;
  font-style: normal;
  font-weight: 1000;
}

.message-conversation-panel {
  display: none;
  gap: 12px;
}

.message-conversation-panel.is-active {
  display: grid;
}

.message-bubble-list {
  min-height: 240px;
}

@media (max-width: 920px) {
  html.dashboard-mobile-menu-open,
  html.dashboard-mobile-menu-open body {
    overflow: hidden;
  }

  .modern-dashboard--retro-hub {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    gap: 0;
  }

  .retro-mobile-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    align-items: stretch;
    min-height: 72px;
    border: 1px solid rgba(216,178,96,.42);
    background: linear-gradient(180deg, #1d1d1d, #070707);
    box-shadow: 0 16px 32px rgba(0,0,0,.2);
  }

  .retro-mobile-topbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #fff;
  }

  .retro-mobile-topbar__brand strong,
  .retro-mobile-topbar__brand small {
    display: block;
  }

  .retro-mobile-topbar__brand strong {
    font-size: 25px;
    line-height: .95;
  }

  .retro-mobile-topbar__brand small {
    margin-top: 4px;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 1000;
  }

  .retro-mobile-topbar__menu,
  .retro-mobile-menu-close {
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid rgba(216,178,96,.42);
    background: linear-gradient(180deg, #d8b260, #a77924);
    color: #111;
    font-size: 34px;
    font-weight: 1000;
    cursor: pointer;
  }

  .retro-mobile-menu-toggle {
    display: none !important;
  }

  .modern-dashboard--retro-hub .retro-sidebar {
    position: fixed;
    inset: 0;
    z-index: 2200;
    width: 100vw;
    height: 100dvh;
    padding: 18px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 16px;
    overflow: auto;
    background:
      radial-gradient(circle at 18% 12%, rgba(216,178,96,.18), transparent 34%),
      linear-gradient(180deg, #151515, #030303);
    border-right: 0;
    transform: translateX(-104%);
    transition: transform .22s ease;
  }

  .modern-dashboard--retro-hub.is-mobile-menu-open .retro-sidebar {
    transform: translateX(0);
  }

  .retro-mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(0,0,0,.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 10px 22px rgba(0,0,0,.32);
  }

  .modern-dashboard--retro-hub .retro-sidebar .retro-brand {
    padding-right: 72px;
  }

  .retro-nav__tile {
    min-height: 64px;
    border-radius: 0;
    font-size: 21px;
  }

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

  .retro-main {
    min-height: 100vh;
    padding: 10px;
    gap: 10px;
  }

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

  .retro-header-tile {
    min-height: 58px;
  }

  .retro-workspace {
    padding: 12px;
  }

  .retro-workspace-heading h1 {
    font-size: clamp(30px, 11vw, 44px);
  }

  .retro-game-carousel .game-carousel__viewport,
  .retro-game-carousel .game-slide {
    min-height: 0 !important;
  }

  .retro-game-carousel .game-slide {
    display: grid;
    grid-template-columns: 1fr;
    align-content: end;
    padding: 72px 44px 62px !important;
  }

  .retro-game-carousel .game-slide__content {
    padding: 14px;
    max-width: none;
  }

  .retro-game-carousel .game-slide__content .game-row__titleline {
    gap: 8px;
  }

  .retro-game-carousel .game-slide__content .game-row__titleline strong {
    font-size: clamp(24px, 9vw, 34px);
  }

  .retro-game-carousel .game-slide__actions {
    justify-self: stretch;
  }

  .retro-game-carousel .game-slide__actions .play-mini,
  .retro-game-carousel .game-slide__actions form,
  .retro-game-carousel .game-slide__actions button {
    width: 100%;
  }

  .retro-game-carousel .game-carousel__arrow {
    width: 38px;
    font-size: 38px;
  }

  .retro-game-carousel .game-carousel__dots {
    left: 44px !important;
    right: 44px !important;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retro-game-carousel .game-dot {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 11px;
    white-space: normal;
  }

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

  .social-messages-grid,
  .social-section-tabs {
    grid-template-columns: 1fr !important;
  }

  .message-bubble-list {
    min-height: 170px;
  }
}

@media (max-width: 520px) {
  .retro-header-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retro-sidebar-info {
    grid-template-columns: 1fr;
  }

  .retro-game-carousel .game-slide {
    padding: 58px 36px 70px !important;
  }

  .retro-game-carousel .game-carousel__arrow {
    width: 32px;
    font-size: 32px;
  }

  .retro-game-carousel .game-carousel__dots {
    left: 36px !important;
    right: 36px !important;
  }
}

/* ===============================
   v10.19 mobile header/menu polish + social read cleanup
   =============================== */
@media (max-width: 920px) {
  .retro-mobile-topbar.retro-mobile-controls {
    position: sticky;
    top: 0;
    z-index: 1800;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0;
    min-height: 58px;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  .retro-mobile-controls .retro-mobile-topbar__menu {
    pointer-events: auto;
    display: grid;
    place-items: center;
    width: 62px;
    height: 58px;
    border: 1px solid rgba(0,0,0,.74);
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 10px 22px rgba(0,0,0,.24);
    font-size: 31px;
    line-height: 1;
    font-weight: 1000;
    cursor: pointer;
  }

  .retro-mobile-controls .retro-mobile-topbar__menu--nav {
    background: linear-gradient(180deg, #d8b260, #9f721c);
    color: #070707;
    border-color: rgba(244,212,137,.75);
  }

  .retro-mobile-controls .retro-mobile-topbar__menu--header {
    margin-left: 6px;
    background: linear-gradient(180deg, #b9b9b6, #81817f);
    color: #111;
    border-color: rgba(255,255,255,.2);
    transition: transform .18s ease, filter .14s ease;
  }

  .retro-mobile-controls .retro-mobile-topbar__menu--header.is-active {
    transform: rotate(180deg);
    background: linear-gradient(180deg, #d8b260, #a77924);
  }

  .retro-mobile-topbar__brand {
    display: none !important;
  }

  .modern-dashboard--retro-hub .retro-header {
    display: none;
  }

  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header {
    display: block;
    position: sticky;
    top: 58px;
    z-index: 1700;
    animation: retroMobileHeaderDrop .18s ease-out;
  }

  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid {
    box-shadow: 0 18px 36px rgba(0,0,0,.3);
  }

  .retro-main {
    padding-top: 8px;
  }

  .retro-game-carousel .game-carousel__viewport,
  .retro-game-carousel .game-slide {
    min-height: clamp(214px, 58vw, 296px) !important;
  }

  .retro-game-carousel .game-slide {
    align-content: end;
    padding: 34px 34px 46px !important;
  }

  .retro-game-carousel .game-slide__content {
    padding: 10px 12px;
    border-color: rgba(216,178,96,.26);
    background: linear-gradient(180deg, rgba(10,10,10,.56), rgba(0,0,0,.48)) !important;
    backdrop-filter: blur(1px);
  }

  .retro-game-carousel .game-slide__content p {
    margin: 6px 0 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  .retro-game-carousel .game-slide__content .game-row__titleline strong {
    font-size: clamp(20px, 7vw, 28px);
  }

  .retro-game-carousel .game-stat-grid {
    display: none;
  }

  .retro-game-carousel .mini-progress {
    height: 6px;
  }

  .retro-game-carousel .game-slide__actions {
    margin-top: 8px;
  }

  .retro-game-carousel .game-carousel__dots {
    left: 34px !important;
    right: 34px !important;
    bottom: 7px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .retro-game-carousel .game-carousel__dots::-webkit-scrollbar {
    display: none;
  }

  .retro-game-carousel .game-dot {
    flex: 0 0 auto;
    min-width: 92px;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 10px;
  }
}

.retro-game-carousel .game-carousel__arrow {
  color: #111 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
  background: linear-gradient(180deg, rgba(244,212,137,.96), rgba(151,107,27,.96)) !important;
  border-color: rgba(255,244,207,.96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 20px rgba(216,178,96,.28);
  opacity: .92;
}

.retro-game-carousel .game-carousel__arrow:hover,
.retro-game-carousel .game-carousel__arrow:focus-visible {
  color: #000 !important;
  background: linear-gradient(180deg, #ffecb5, #d8b260) !important;
  opacity: 1;
}

.message-thread-button[data-unread-count="0"] em,
.message-thread-button em:empty {
  display: none;
}

@keyframes retroMobileHeaderDrop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .retro-game-carousel .game-carousel__viewport,
  .retro-game-carousel .game-slide {
    min-height: clamp(196px, 60vw, 264px) !important;
  }

  .retro-game-carousel .game-slide {
    padding: 28px 30px 44px !important;
  }

  .retro-game-carousel .game-carousel__arrow {
    width: 30px;
    font-size: 30px;
  }

  .retro-game-carousel .game-carousel__dots {
    left: 30px !important;
    right: 30px !important;
  }
}

/* ===============================
   v10.20 mobile controls + runtime wallet cleanup
   =============================== */
@media (max-width: 920px) {
  .retro-mobile-topbar.retro-mobile-controls {
    position: fixed !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 56px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: rgba(10,10,10,.94) !important;
    border-bottom: 1px solid rgba(216,178,96,.34) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.32) !important;
    pointer-events: auto !important;
  }

  .retro-mobile-controls .retro-mobile-topbar__menu {
    width: 100% !important;
    min-width: 0 !important;
    height: 56px !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.24) !important;
  }

  .retro-mobile-controls .retro-mobile-topbar__menu--nav {
    border-left: 0 !important;
    border-right-color: rgba(0,0,0,.52) !important;
  }

  .retro-mobile-controls .retro-mobile-topbar__menu--header {
    margin-left: 0 !important;
    border-left-color: rgba(255,255,255,.08) !important;
    border-right: 0 !important;
  }

  .retro-main {
    padding-top: 64px !important;
  }

  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header {
    top: 56px !important;
    left: 0;
    right: 0;
    width: 100%;
  }

  .retro-workspace-section[data-section-name="library"] .retro-workspace-heading {
    gap: 10px;
  }

  .retro-game-carousel .game-carousel__viewport,
  .retro-game-carousel .game-slide {
    min-height: clamp(180px, 52vw, 250px) !important;
  }

  .retro-game-carousel .game-slide {
    padding: 24px 30px 39px !important;
  }

  .retro-game-carousel .game-slide__content {
    max-width: min(100%, 520px);
    padding: 9px 10px !important;
    background: linear-gradient(180deg, rgba(10,10,10,.46), rgba(0,0,0,.38)) !important;
  }

  .retro-game-carousel .game-slide__content p {
    display: none;
  }

  .retro-game-carousel .game-slide__content .game-row__titleline {
    gap: 7px;
  }

  .retro-game-carousel .game-slide__content .game-row__titleline strong {
    font-size: clamp(18px, 6.2vw, 25px) !important;
  }

  .retro-game-carousel .game-slide__actions .play-mini,
  .retro-game-carousel .game-slide__actions .gold-button,
  .retro-game-carousel .game-slide__actions .outline-button {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .retro-game-carousel .game-carousel__dots {
    bottom: 5px !important;
  }
}

@media (max-width: 520px) {
  .retro-game-carousel .game-carousel__viewport,
  .retro-game-carousel .game-slide {
    min-height: clamp(168px, 50vw, 226px) !important;
  }

  .retro-game-carousel .game-slide {
    padding: 20px 28px 38px !important;
  }

  .play-mode-switch__form {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===============================
   v10.22 frontend cleanup: wallet, slots, desktop header hiding
   =============================== */
.retro-desktop-header-toggle {
  position: sticky;
  top: 0;
  z-index: 620;
  justify-self: end;
  width: 74px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,178,96,.72);
  border-top: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #d8b260, #9f721c);
  color: #080808;
  font-size: 22px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.36);
  cursor: pointer;
}

.retro-desktop-header-toggle.is-collapsed {
  background: linear-gradient(180deg, #b9b9b6, #81817f);
  border-color: rgba(255,255,255,.24);
}

.modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header {
  display: none;
}

.modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header {
  display: block;
  animation: retroMobileHeaderDrop .18s ease-out;
}

.modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header-grid {
  box-shadow: 0 18px 42px rgba(216,178,96,.28), 0 22px 44px rgba(0,0,0,.28);
}

.retro-wallet-grid--lean {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.wallet-card--boost {
  background: linear-gradient(180deg, #161616, #050505) !important;
  border-color: rgba(216,178,96,.46) !important;
  color: #fff !important;
}

.wallet-card--boost span,
.wallet-card--boost small {
  color: rgba(244,212,137,.82) !important;
}

.wallet-card--boost strong {
  color: #fff !important;
}

.wallet-rule-note {
  margin: -2px 0 10px;
  padding: 10px 12px;
  border-left: 3px solid rgba(216,178,96,.84);
  background: rgba(0,0,0,.045);
}

.retro-sidebar {
  align-content: start;
}

.retro-nav {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .retro-desktop-header-toggle {
    display: none;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header,
  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header {
    display: none;
  }

  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header {
    display: block;
  }

  .retro-mobile-topbar.retro-mobile-controls {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

@media (max-width: 680px) {
  .retro-wallet-grid--lean {
    grid-template-columns: 1fr !important;
  }
}

/* v10.23 – Zapařníček, activepointy a reward kalkulace */
.retro-nav__tile--guide {
  margin-top: 10px;
  border-color: rgba(216,178,96,.48) !important;
  background: linear-gradient(180deg, rgba(24,24,24,.94), rgba(8,8,8,.96)) !important;
  color: #fff !important;
}

.retro-nav__tile--guide .retro-nav__icon {
  background: linear-gradient(180deg, #f1cc63, #9b6b17);
  color: #111;
  font-weight: 1000;
}

.retro-nav__tile--guide small {
  margin-left: auto;
  color: rgba(245,223,157,.82);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.zaparnicek-panel {
  display: grid;
  gap: 14px;
}

.zaparnicek-welcome-card {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(135deg, rgba(20,20,20,.96), rgba(48,35,13,.94));
  color: #fff;
  border-color: rgba(216,178,96,.42);
}

.zaparnicek-welcome-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
  line-height: .95;
  letter-spacing: -.04em;
}

.zaparnicek-welcome-card p:not(.dash-eyebrow) {
  margin: 0;
  color: rgba(255,245,220,.78);
  line-height: 1.5;
}

.zaparnicek-mascot {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(216,178,96,.74);
  background: radial-gradient(circle at 50% 32%, #ffe59b, #bc821f 52%, #111 54%);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.22), 0 18px 36px rgba(0,0,0,.28);
  clip-path: polygon(12% 0, 88% 0, 100% 16%, 100% 84%, 88% 100%, 12% 100%, 0 84%, 0 16%);
}

.zaparnicek-mascot span {
  color: #111;
  font-size: 44px;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.zaparnicek-actions,
.account-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.zaparnicek-progress-card .mini-progress {
  margin: 10px 0 8px;
}

.zaparnicek-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zaparnicek-point {
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
}

.zaparnicek-point em {
  display: block;
  margin-top: 6px;
  color: rgba(72,58,34,.82);
  font-size: 12px;
  line-height: 1.35;
  font-style: normal;
}

.zaparnicek-point.is-completed {
  border-color: rgba(74,151,39,.36);
  background: rgba(130,205,83,.12);
}

.reward-rules-card {
  grid-column: 1 / -1;
}

.reward-rule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.reward-rule-summary article {
  padding: 12px;
  border: 1px solid rgba(216,178,96,.24);
  background: rgba(255,248,229,.72);
  display: grid;
  gap: 4px;
}

.reward-rule-summary span {
  color: #7d6a3a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
}

.reward-rule-summary strong {
  color: #111;
  font-size: 24px;
  line-height: 1;
}

.reward-rule-list .retro-list-row {
  grid-template-columns: 42px minmax(0,1fr) auto;
}

@media (max-width: 860px) {
  .zaparnicek-welcome-card,
  .zaparnicek-sections,
  .reward-rule-summary,
  .zaparnicek-point {
    grid-template-columns: 1fr;
  }

  .zaparnicek-mascot {
    width: 72px;
    height: 72px;
  }

  .zaparnicek-actions > form,
  .zaparnicek-actions .gold-button,
  .zaparnicek-actions .outline-button {
    width: 100%;
  }
}


/* v10.24 commerce cleanup */
.wallet-drawer-title--stacked {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(216,178,96,.22);
}

.retro-list-row--empty {
  opacity: .72;
  border-style: dashed;
}

.store-clean-grid.retro-workspace-grid--two {
  align-items: start;
}

.retro-wallet-grid--lean .wallet-card--boost small {
  max-width: 100%;
  overflow-wrap: anywhere;
}


/* ===============================
   v10.25 Wallet-first economy cleanup
   =============================== */
.wallet-subscription-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin: 14px 0;
}

.wallet-plan-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.wallet-plan-card--premium {
  border-color: rgba(216,178,96,.48);
  background:
    linear-gradient(135deg, rgba(216,178,96,.22), rgba(255,255,255,.72) 44%, rgba(10,10,10,.08)),
    rgba(255,255,255,.76);
}

.wallet-plan-card--premium::after {
  content: "PREMIUM";
  position: absolute;
  right: -34px;
  top: 18px;
  width: 140px;
  transform: rotate(35deg);
  text-align: center;
  padding: 4px 0;
  color: #111;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  background: linear-gradient(180deg, #d8b260, #a17324);
  box-shadow: 0 8px 16px rgba(0,0,0,.18);
}

.wallet-plan-status {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 0;
  border: 2px solid rgba(10,10,10,.82);
  background: linear-gradient(180deg, rgba(255,248,225,.96), rgba(216,178,96,.2));
}

.wallet-plan-status strong,
.wallet-plan-status small {
  display: block;
}

.wallet-plan-status strong {
  color: #111;
  font-size: 22px;
  line-height: 1.05;
}

.wallet-plan-status small {
  color: #6d5d44;
  font-weight: 900;
}

.wallet-plan-action {
  width: 100%;
}

.premium-benefit-list {
  display: grid;
  gap: 8px;
}

.premium-benefit-list span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(216,178,96,.28);
  background: rgba(255,255,255,.64);
  color: #111;
  font-weight: 950;
}

.wallet-slot-card,
.wallet-consumable-card {
  margin-top: 14px;
}

.wallet-slot-carousel,
.wallet-consumable-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 280px);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
}

.wallet-slot-tile,
.wallet-consumable-tile {
  scroll-snap-align: start;
  min-height: 190px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 2px solid rgba(10,10,10,.86);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(245,232,194,.78));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -4px 0 rgba(0,0,0,.12), 0 10px 20px rgba(0,0,0,.08);
}

.wallet-slot-tile.is-filled {
  border-color: rgba(216,178,96,.86);
  background: linear-gradient(180deg, rgba(22,22,22,.95), rgba(8,8,8,.92));
  color: #fff;
}

.wallet-slot-tile.is-filled small,
.wallet-slot-tile.is-filled strong {
  color: #fff;
}

.wallet-slot-tile.is-locked {
  opacity: .52;
  filter: grayscale(.55);
}

.wallet-slot-tile__main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.wallet-slot-tile__main > span,
.wallet-consumable-tile > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(216,178,96,.76);
  background: #0a0a0a;
  color: #d8b260;
  font-size: 24px;
  font-weight: 1000;
}

.wallet-slot-tile__main strong,
.wallet-slot-tile__main small,
.wallet-consumable-tile strong,
.wallet-consumable-tile small,
.wallet-consumable-tile em {
  display: block;
}

.wallet-slot-tile__main small,
.wallet-consumable-tile small {
  color: #6d5d44;
  line-height: 1.35;
}

.wallet-slot-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.wallet-slot-picker form,
.wallet-slot-picker button,
.wallet-consumable-tile form,
.wallet-consumable-tile button {
  width: 100%;
}

.wallet-consumable-tile {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
}

.wallet-consumable-tile form,
.wallet-consumable-tile em {
  grid-column: 1 / -1;
}

.wallet-consumable-tile.is-active {
  border-color: rgba(69, 178, 72, .8);
  background: linear-gradient(180deg, rgba(234,255,232,.95), rgba(181,230,160,.72));
}

.wallet-consumable-tile em {
  padding: 9px 10px;
  background: #0a0a0a;
  color: #d8b260;
  font-style: normal;
  text-align: center;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.wallet-active-consumable {
  margin-top: 12px;
  padding: 12px;
  border: 2px solid rgba(216,178,96,.74);
  background: linear-gradient(180deg, #141414, #070707);
  color: #fff;
}

.wallet-active-consumable strong,
.wallet-active-consumable small {
  display: block;
  color: #fff;
}

.wallet-active-consumable small {
  color: rgba(216,178,96,.9);
  margin-top: 4px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .wallet-subscription-grid {
    grid-template-columns: 1fr;
  }

  .wallet-slot-carousel,
  .wallet-consumable-carousel {
    grid-auto-columns: minmax(78vw, 1fr);
  }

  .wallet-plan-card {
    min-height: 0;
  }
}

/* v10.26: wallet fixes */
.wallet-active-consumable--stack {
  display: grid;
  gap: 6px;
}
.wallet-active-consumable--stack small {
  display: block;
}
.wallet-slot-picker .outline-button,
.wallet-slot-picker button {
  min-height: 34px;
  border-width: 2px;
}

/* v10.27: responsive dashboard header modal windows and wallet carousels */
.retro-modal {
  align-items: center;
  overflow: auto;
}

.retro-modal-window {
  width: min(1120px, calc(100vw - 24px));
  max-height: min(860px, calc(100dvh - 24px));
}

.wallet-slot-carousel,
.wallet-consumable-carousel {
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.wallet-slot-tile,
.wallet-consumable-tile {
  min-width: 0;
}

.wallet-slot-picker .button_to,
.wallet-slot-picker form,
.wallet-slot-picker input[type="submit"],
.wallet-slot-picker button {
  min-width: 0;
}

.wallet-slot-picker input[type="submit"] {
  white-space: normal;
  line-height: 1.15;
}

@media (max-width: 760px) {
  .retro-modal {
    padding: 6px;
    place-items: start center;
  }

  .retro-modal-window {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .retro-modal-body {
    padding: 10px;
  }

  .retro-modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .wallet-slot-carousel,
  .wallet-consumable-carousel {
    grid-auto-columns: minmax(84vw, 1fr);
    gap: 10px;
    padding-bottom: 12px;
  }

  .wallet-slot-tile,
  .wallet-consumable-tile {
    min-height: 0;
  }

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

  .wallet-slot-picker input[type="submit"],
  .wallet-slot-picker button {
    min-height: 42px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .wallet-slot-picker {
    grid-template-columns: 1fr;
  }
}


/* v10.28 wallet modal cleanup: no horizontal carousels, tap-to-pick slots */
.wallet-slot-carousel,
.wallet-consumable-carousel {
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scroll-snap-type: none !important;
  padding: 4px 0 !important;
}

.wallet-slot-tile,
.wallet-consumable-tile {
  min-width: 0 !important;
  scroll-snap-align: none !important;
}

.wallet-slot-picker--details {
  display: grid;
  gap: 8px;
}

.wallet-slot-picker--details summary {
  list-style: none;
  cursor: pointer;
  width: 100%;
}

.wallet-slot-picker--details summary::-webkit-details-marker {
  display: none;
}

.wallet-slot-picker--details[open] summary {
  background: linear-gradient(180deg, #d8b260, #a77924) !important;
  color: #111 !important;
}

.wallet-slot-picker__choices {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 2px solid rgba(10,10,10,.82);
  background: rgba(255,255,255,.76);
}

.wallet-slot-picker__choices form,
.wallet-slot-picker__choices button {
  width: 100%;
}

.retro-modal-window {
  width: min(1080px, calc(100vw - 16px)) !important;
  max-height: calc(100dvh - 18px) !important;
}

.retro-modal-body {
  overflow: auto !important;
}

@media (max-width: 760px) {
  .retro-modal {
    padding: 6px !important;
    place-items: stretch !important;
  }

  .retro-modal-window {
    width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
  }

  .retro-modal-header {
    min-height: 62px !important;
    padding: 10px 12px !important;
  }

  .retro-modal-header h2 {
    font-size: clamp(24px, 8vw, 34px) !important;
  }

  .retro-modal-close {
    width: 48px !important;
    height: 48px !important;
    font-size: 34px !important;
  }

  .wallet-subscription-grid,
  .retro-wallet-grid,
  .wallet-slot-carousel,
  .wallet-consumable-carousel {
    grid-template-columns: 1fr !important;
  }

  .wallet-slot-tile,
  .wallet-consumable-tile {
    min-height: 0 !important;
  }
}

/* v10.30.1 safe shared-header preview only. Dashboard header remains unchanged. */
.global-header-preview {
  --ghp-gold: #d8b260;
  --ghp-gold-dark: #8a641f;
  --ghp-black: #0b0b0b;
  --ghp-cream: #fff4d4;
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 2px solid var(--ghp-gold);
  background: linear-gradient(180deg, #181818, #070707);
  box-shadow: 0 12px 24px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.08);
}

.global-header-preview__tile {
  min-height: 64px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border: 1px solid rgba(216,178,96,.72);
  background: linear-gradient(180deg, #1b1b1b, #050505);
  color: var(--ghp-cream);
  cursor: default;
  font: inherit;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 0 rgba(0,0,0,.24);
}

.global-header-preview__tile span { font-size: 20px; line-height: 1; }
.global-header-preview__tile strong { color: #fff; font-size: 13px; line-height: 1.1; }
.global-header-preview__tile small { color: rgba(255,244,212,.72); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 820px) {
  .global-header-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v10.35 dynamic platform product cards */
.app-library-card--active {
  border-color: rgba(216, 178, 96, .62) !important;
  background: linear-gradient(180deg, rgba(20,20,20,.96), rgba(7,7,7,.94)) !important;
  color: #fff;
}
.app-library-card--active small,
.app-library-card--active p { color: rgba(245, 223, 157, .78); }
.app-library-card .play-mini { display: inline-flex; margin-top: 10px; width: fit-content; }


/* Monetization MVP */
.monetization-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 18px;
  padding: 16px 18px;
  border: 3px solid rgba(17, 17, 17, .82);
  background: linear-gradient(180deg, #fff8df 0%, #ecd28e 100%);
  box-shadow: 0 12px 30px rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.72);
}
.monetization-strip h2 { margin: 0 0 5px; font-size: clamp(22px, 3vw, 34px); line-height: 1; letter-spacing: -.05em; }
.monetization-strip p { margin: 0; font-weight: 800; color: #5b412a; }
.monetization-strip__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.zapareno-ad-slot {
  margin: 14px 0 20px;
  padding: 12px;
  border: 2px dashed rgba(74,52,36,.45);
  background: rgba(255,248,223,.76);
  color: #4a3424;
  text-align: center;
}
.zapareno-ad-slot[hidden] { display: none !important; }
.zapareno-ad-slot__label { font-size: 12px; font-weight: 1000; text-transform: uppercase; letter-spacing: .12em; opacity: .74; }
.zapareno-ad-slot__box { margin-top: 8px; min-height: 76px; display: grid; place-items: center; border: 2px solid rgba(17,17,17,.32); background: rgba(255,255,255,.48); font-weight: 900; }
@media (max-width: 760px) { .monetization-strip { display: grid; } .monetization-strip__actions { justify-content: stretch; } }


/* v10.36.2: show the whole managed product image in dashboard cards instead of cropping it. */
.retro-game-carousel .game-slide,
.game-slide {
  background-color: #100d09 !important;
}
.game-slide__backdrop {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.04)) !important;
}

/* v10.36.2: make preview ad slots visible during MVP testing. */
.zapareno-ad-slot:not([hidden]) {
  display: block;
}
.zapareno-ad-slot__box[data-provider="preview"] {
  min-height: 92px;
  background: repeating-linear-gradient(-45deg, rgba(216,178,96,.22) 0 10px, rgba(255,255,255,.7) 10px 20px);
}


/* ===============================
   v10.37.0 — dashboard modal embed used by global header in games/apps
   The iframe renders the same Rails dashboard modal instead of a JS imitation.
   =============================== */
body.zapareno-dashboard-modal-embed {
  margin: 0 !important;
  width: 100vw !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  background: transparent !important;
}

body.zapareno-dashboard-modal-embed .modern-dashboard {
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  display: block !important;
  overflow: hidden !important;
  background: transparent !important;
}

body.zapareno-dashboard-modal-embed .retro-sidebar,
body.zapareno-dashboard-modal-embed .retro-mobile-topbar,
body.zapareno-dashboard-modal-embed .retro-desktop-header-toggle,
body.zapareno-dashboard-modal-embed .retro-header,
body.zapareno-dashboard-modal-embed .dash-flash,
body.zapareno-dashboard-modal-embed .zapareno-ad-slot,
body.zapareno-dashboard-modal-embed .retro-workspace {
  display: none !important;
}

body.zapareno-dashboard-modal-embed .retro-main {
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 0 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

body.zapareno-dashboard-modal-embed .retro-modal-backdrop.is-open {
  display: block !important;
}

body.zapareno-dashboard-modal-embed .retro-modal.is-open {
  display: grid !important;
  pointer-events: none !important;
}

body.zapareno-dashboard-modal-embed .retro-modal-window {
  pointer-events: auto !important;
}

@media (max-width: 920px) {
  body.zapareno-dashboard-modal-embed .retro-modal {
    padding: 8px !important;
  }

  body.zapareno-dashboard-modal-embed .retro-modal-window {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }
}


/* ===============================
   v10.37.1 — dashboard canonical header hide/reveal phase 1
   Same visual behavior used by games/apps: toggle under open header, grey reveal toggle when hidden.
   =============================== */
@media (min-width: 921px) {
  .modern-dashboard--retro-hub .retro-main {
    position: relative;
  }

  .modern-dashboard--retro-hub .retro-desktop-header-toggle {
    position: fixed !important;
    top: 74px !important;
    right: 0 !important;
    z-index: 720 !important;
    width: 74px !important;
    height: 28px !important;
    min-height: 28px !important;
    border: 1px solid rgba(216,178,96,.72) !important;
    border-top: 0 !important;
    background: linear-gradient(180deg, #d8b260, #9f721c) !important;
    color: #080808 !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.36) !important;
    transition: top .24s ease, background .18s ease, box-shadow .18s ease, transform .1s ease !important;
  }

  .modern-dashboard--retro-hub .retro-header {
    display: block !important;
    max-height: 76px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    transform: translateY(0) !important;
    transition: max-height .24s ease, opacity .18s ease, transform .24s ease, visibility .18s ease !important;
  }

  .modern-dashboard--retro-hub .retro-header::before,
  .modern-dashboard--retro-hub .retro-header::after {
    content: none !important;
    display: none !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header {
    display: block !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-14px) !important;
    pointer-events: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header-grid {
    box-shadow: none !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-desktop-header-toggle {
    top: 0 !important;
    background: linear-gradient(180deg, #b9b9b6, #81817f) !important;
    border-color: rgba(255,255,255,.24) !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.28) !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header {
    display: block !important;
    max-height: 76px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    animation: none !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-desktop-header-toggle {
    top: 74px !important;
    background: linear-gradient(180deg, #d8b260, #9f721c) !important;
    border-color: rgba(216,178,96,.72) !important;
  }
}

/* ===============================
   v10.37.2 — header phase 1b: real dashboard responsive rules
   - desktop keeps all six header tiles; it never collapses to a broken 3-column strip
   - tablet uses the same hamburger/mobile controls as phone
   - desktop hide control is a full-width bar under the header
   =============================== */
@media (min-width: 1181px) {
  .modern-dashboard--retro-hub .retro-mobile-topbar.retro-mobile-controls {
    display: none !important;
  }

  .modern-dashboard--retro-hub .retro-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 700 !important;
    overflow: visible !important;
    margin-bottom: 28px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: transform .24s ease, opacity .18s ease, max-height .24s ease !important;
  }

  .modern-dashboard--retro-hub .retro-header-grid {
    height: 74px !important;
    min-height: 74px !important;
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, .72fr) minmax(120px, .72fr) 92px 92px !important;
    border: 1px solid rgba(10,10,10,.82) !important;
    background: rgba(0,0,0,.70) !important;
    box-shadow: 0 18px 36px rgba(0,0,0,.16) !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform .24s ease, opacity .18s ease, visibility .18s ease, box-shadow .18s ease !important;
  }

  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(216,178,96,.72) !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #d8b260, #9f721c) !important;
    color: #080808 !important;
    font-size: 22px !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.36) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 730 !important;
    transition: background .18s ease, box-shadow .18s ease, transform .24s ease !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header {
    display: block !important;
    max-height: 0 !important;
    margin-bottom: 28px !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header-grid {
    transform: translateY(-110%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header > .retro-desktop-header-toggle {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: linear-gradient(180deg, #b9b9b6, #81817f) !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    border-top: 0 !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.28) !important;
    pointer-events: auto !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header {
    max-height: none !important;
    pointer-events: auto !important;
  }

  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header-grid {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: 1px solid rgba(10,10,10,.82) !important;
    background: rgba(0,0,0,.70) !important;
    box-shadow: 0 18px 36px rgba(0,0,0,.16) !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 1180px) {
  html.dashboard-mobile-menu-open,
  html.dashboard-mobile-menu-open body {
    overflow: hidden;
  }

  .modern-dashboard--retro-hub {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    gap: 0 !important;
  }

  .modern-dashboard--retro-hub .retro-sidebar {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2200 !important;
    width: 100vw !important;
    height: 100dvh !important;
    overflow: auto !important;
    display: none !important;
  }

  .modern-dashboard--retro-hub.is-mobile-menu-open .retro-sidebar {
    display: grid !important;
  }

  .modern-dashboard--retro-hub .retro-main {
    min-height: 100vh !important;
    height: auto !important;
    padding: 64px 14px 16px !important;
    overflow: visible !important;
  }

  .modern-dashboard--retro-hub .retro-mobile-topbar.retro-mobile-controls {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    z-index: 2100 !important;
    width: 100vw !important;
    min-height: 56px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    align-items: stretch !important;
    background: rgba(10,10,10,.94) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(216,178,96,.34) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.32) !important;
    pointer-events: auto !important;
  }

  .modern-dashboard--retro-hub .retro-mobile-controls .retro-mobile-topbar__menu {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 56px !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.24) !important;
    font-size: 31px !important;
    line-height: 1 !important;
    font-weight: 1000 !important;
    cursor: pointer !important;
  }

  .modern-dashboard--retro-hub .retro-mobile-controls .retro-mobile-topbar__menu--nav {
    background: linear-gradient(180deg, #d8b260, #9f721c) !important;
    color: #070707 !important;
    border-right: 1px solid rgba(0,0,0,.52) !important;
  }

  .modern-dashboard--retro-hub .retro-mobile-controls .retro-mobile-topbar__menu--header {
    margin-left: 0 !important;
    background: linear-gradient(180deg, #b9b9b6, #81817f) !important;
    color: #111 !important;
    border-left: 1px solid rgba(255,255,255,.08) !important;
    transition: transform .18s ease, filter .14s ease, background .18s ease !important;
  }

  .modern-dashboard--retro-hub .retro-mobile-controls .retro-mobile-topbar__menu--header.is-active {
    transform: rotate(180deg) !important;
    background: linear-gradient(180deg, #d8b260, #a77924) !important;
  }

  .modern-dashboard--retro-hub .retro-header {
    display: none !important;
    margin: 0 !important;
  }

  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header {
    display: block !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2000 !important;
    width: 100vw !important;
    animation: retroMobileHeaderDrop .18s ease-out !important;
  }

  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid {
    width: 100vw !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    border: 1px solid rgba(10,10,10,.82) !important;
    background: rgba(0,0,0,.70) !important;
    box-shadow: 0 18px 36px rgba(0,0,0,.30) !important;
  }

  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle {
    display: none !important;
  }

  .modern-dashboard--retro-hub .retro-header-tile {
    min-height: 62px !important;
    grid-template-columns: 1fr !important;
    gap: 3px !important;
    justify-items: center !important;
    padding: 6px !important;
    text-align: center !important;
  }

  .modern-dashboard--retro-hub .retro-header-text small {
    display: none !important;
  }

  .modern-dashboard--retro-hub .retro-header-text strong {
    font-size: 12px !important;
  }

  .modern-dashboard--retro-hub .retro-header-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 22px !important;
  }
}

/* ===============================
   v10.37.3 — canonical dashboard header/tablet final pass.
   Tablet uses the same hamburger/mobile controls; desktop and product header share the same toggle rhythm.
   =============================== */
@media (min-width: 1181px) {
  .modern-dashboard--retro-hub .retro-mobile-topbar.retro-mobile-controls { display: none !important; }
  .modern-dashboard--retro-hub .retro-header {
    position: sticky !important; top: 0 !important; z-index: 700 !important; display: block !important;
    height: 102px !important; min-height: 102px !important; max-height: 102px !important; margin: 0 0 0 !important; padding: 0 !important;
    overflow: visible !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
    opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; pointer-events: auto !important;
    transition: max-height .24s ease, height .24s ease, opacity .18s ease, transform .24s ease, visibility .18s ease !important;
  }
  .modern-dashboard--retro-hub .retro-header::before, .modern-dashboard--retro-hub .retro-header::after { content: none !important; display: none !important; }
  .modern-dashboard--retro-hub .retro-header-grid {
    width: 100% !important; height: 74px !important; min-height: 74px !important; display: grid !important;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, .72fr) minmax(120px, .72fr) 92px 92px !important;
    border: 1px solid rgba(10,10,10,.82) !important; border-bottom: 0 !important; background: rgba(0,0,0,.70) !important;
    box-shadow: 0 18px 36px rgba(0,0,0,.16) !important; overflow: hidden !important; transform: translateY(0) !important;
    opacity: 1 !important; visibility: visible !important; transition: transform .24s ease, opacity .18s ease, visibility .18s ease, box-shadow .18s ease !important;
  }
  .modern-dashboard--retro-hub .retro-header form.button_to { display: contents !important; }
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle {
    position: absolute !important; top: 74px !important; left: 0 !important; right: 0 !important; width: 100% !important; min-width: 100% !important;
    height: 28px !important; min-height: 28px !important; display: grid !important; place-items: center !important; padding: 0 !important;
    border: 1px solid rgba(216,178,96,.72) !important; border-top: 0 !important; border-radius: 0 !important;
    background: linear-gradient(180deg, #d8b260, #9f721c) !important; color: #080808 !important; font-size: 22px !important; font-weight: 1000 !important; line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.36) !important; cursor: pointer !important; pointer-events: auto !important; z-index: 730 !important;
    transition: background .18s ease, box-shadow .18s ease, transform .24s ease, opacity .22s ease, color .18s ease !important;
    animation: zaparenoHeaderToggleIdle 3.8s ease 1.2s forwards !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header {
    max-height: 28px !important; min-height: 28px !important; height: 28px !important; margin-bottom: 0 !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; opacity: 1 !important; visibility: visible !important; pointer-events: none !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header-grid {
    transform: translateY(-112%) !important; opacity: 0 !important; visibility: hidden !important; border: 0 !important; box-shadow: none !important; pointer-events: none !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header > .retro-desktop-header-toggle {
    position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; min-width: 100% !important;
    background: linear-gradient(180deg, #b9b9b6, #81817f) !important; border: 1px solid rgba(255,255,255,.24) !important; border-top: 0 !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.28) !important; pointer-events: auto !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header { height: 102px !important; min-height: 102px !important; max-height: 102px !important; pointer-events: auto !important; }
  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header-grid {
    transform: translateY(0) !important; opacity: 1 !important; visibility: visible !important; border: 1px solid rgba(10,10,10,.82) !important; border-bottom: 0 !important;
    background: rgba(0,0,0,.70) !important; box-shadow: 0 18px 36px rgba(0,0,0,.16) !important; pointer-events: auto !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header > .retro-desktop-header-toggle { position: absolute !important; top: 74px !important; background: linear-gradient(180deg, #d8b260, #9f721c) !important; border-color: rgba(216,178,96,.72) !important; }
}

@media (max-width: 1180px) {
  html.dashboard-mobile-menu-open, html.dashboard-mobile-menu-open body { overflow: hidden !important; }
  .modern-dashboard--retro-hub { grid-template-columns: 1fr !important; min-height: 100dvh !important; height: auto !important; gap: 0 !important; overflow: visible !important; }
  .modern-dashboard--retro-hub .retro-main { width: 100% !important; height: auto !important; min-height: 100dvh !important; padding: 64px 14px 16px !important; overflow: visible !important; }
  .modern-dashboard--retro-hub .retro-mobile-topbar.retro-mobile-controls {
    position: fixed !important; left: 0 !important; right: 0 !important; top: 0 !important; z-index: 2600 !important; width: 100vw !important; min-height: 56px !important;
    display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 !important; align-items: stretch !important;
    background: rgba(10,10,10,.94) !important; border: 0 !important; border-bottom: 1px solid rgba(216,178,96,.34) !important; box-shadow: 0 12px 24px rgba(0,0,0,.32) !important; pointer-events: auto !important;
  }
  .modern-dashboard--retro-hub .retro-mobile-controls .retro-mobile-topbar__menu {
    display: grid !important; place-items: center !important; width: 100% !important; height: 56px !important; min-width: 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.24) !important; font-size: 31px !important; line-height: 1 !important; font-weight: 1000 !important; cursor: pointer !important;
  }
  .modern-dashboard--retro-hub .retro-mobile-controls .retro-mobile-topbar__menu--nav { background: linear-gradient(180deg, #d8b260, #9f721c) !important; color: #070707 !important; border-right: 1px solid rgba(0,0,0,.52) !important; }
  .modern-dashboard--retro-hub .retro-mobile-controls .retro-mobile-topbar__menu--header { margin-left: 0 !important; background: linear-gradient(180deg, #b9b9b6, #81817f) !important; color: #111 !important; border-left: 1px solid rgba(255,255,255,.08) !important; transition: transform .18s ease, filter .14s ease, background .18s ease !important; }
  .modern-dashboard--retro-hub .retro-mobile-controls .retro-mobile-topbar__menu--header.is-active { transform: rotate(180deg) !important; background: linear-gradient(180deg, #d8b260, #a77924) !important; }
  .modern-dashboard--retro-hub .retro-sidebar { position: fixed !important; inset: 0 !important; z-index: 2550 !important; width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; display: none !important; overflow: auto !important; padding-top: 64px !important; }
  .modern-dashboard--retro-hub.is-mobile-menu-open .retro-sidebar { display: grid !important; }
  .modern-dashboard--retro-hub.is-mobile-menu-open .retro-nav, .modern-dashboard--retro-hub.is-mobile-menu-open .retro-nav__tile { visibility: visible !important; opacity: 1 !important; }
  .modern-dashboard--retro-hub .retro-header { display: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header { display: block !important; position: fixed !important; top: 56px !important; left: 0 !important; right: 0 !important; z-index: 2500 !important; width: 100vw !important; max-height: calc(100dvh - 56px) !important; overflow: auto !important; animation: retroMobileHeaderDrop .18s ease-out !important; }
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid { width: 100vw !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; border: 1px solid rgba(10,10,10,.82) !important; background: rgba(0,0,0,.70) !important; box-shadow: 0 18px 36px rgba(0,0,0,.30) !important; overflow: visible !important; }
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid > *, .modern-dashboard--retro-hub.is-mobile-header-open .retro-header form.button_to { display: grid !important; visibility: visible !important; opacity: 1 !important; }
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid > .retro-mobile-menu-toggle { display: none !important; visibility: hidden !important; pointer-events: none !important; }
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle { display: none !important; }
  .modern-dashboard--retro-hub .retro-header-tile { min-height: 64px !important; grid-template-columns: 38px minmax(0, 1fr) !important; gap: 8px !important; justify-items: stretch !important; padding: 6px 10px !important; text-align: left !important; }
  .modern-dashboard--retro-hub .retro-header-tile--icon-only { grid-template-columns: 1fr !important; place-items: center !important; }
  .modern-dashboard--retro-hub .retro-header-text small { display: block !important; font-size: 8px !important; }
  .modern-dashboard--retro-hub .retro-header-text strong { font-size: 12px !important; }
  .modern-dashboard--retro-hub .retro-header-icon { width: 34px !important; height: 34px !important; font-size: 22px !important; }
}
@media (max-width: 520px) {
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid { grid-template-columns: 1fr !important; }
  .modern-dashboard--retro-hub .retro-header-tile { min-height: 58px !important; }
}


/* ===============================
   v10.37.5 — final polish pass: disappearing header toggles + cover images + transparent carousel arrows
   =============================== */
@media (min-width: 1181px) {
  .modern-dashboard--retro-hub .retro-header {
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    margin: 0 !important;
    overflow: visible !important;
    transition: height .24s ease, max-height .24s ease, opacity .18s ease, transform .24s ease !important;
  }
  .modern-dashboard--retro-hub .retro-header-grid {
    height: 74px !important;
    min-height: 74px !important;
  }
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle {
    top: 74px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    opacity: 1 !important;
    animation: zaparenoHeaderToggleVanish 3.4s ease 1.1s forwards !important;
    will-change: opacity, transform !important;
  }
  @keyframes zaparenoHeaderToggleVanish {
    0%, 62% { opacity: 1; color: #080808; }
    100% { opacity: 0; color: rgba(8,8,8,0); }
  }
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle:hover,
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle:focus-visible,
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle:active,
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle.is-tap-active,
  .modern-dashboard--retro-hub.is-desktop-header-peeking .retro-header > .retro-desktop-header-toggle {
    animation: none !important;
    opacity: 1 !important;
    color: #080808 !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header-grid {
    transform: translateY(-112%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header > .retro-desktop-header-toggle {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    opacity: 0 !important;
    color: rgba(8,8,8,0) !important;
    background: linear-gradient(180deg, #b9b9b6, #81817f) !important;
    border-color: rgba(255,255,255,.24) !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    animation: none !important;
    transition: opacity .18s ease, color .18s ease, box-shadow .18s ease, background .18s ease !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header > .retro-desktop-header-toggle:hover,
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header > .retro-desktop-header-toggle:focus-visible,
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header > .retro-desktop-header-toggle:active,
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header > .retro-desktop-header-toggle.is-tap-active,
  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header > .retro-desktop-header-toggle {
    opacity: 1 !important;
    color: #080808 !important;
    box-shadow: 0 6px 14px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.28) !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header {
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    pointer-events: auto !important;
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden.is-desktop-header-peeking .retro-header > .retro-desktop-header-toggle {
    position: absolute !important;
    top: 74px !important;
    background: linear-gradient(180deg, #d8b260, #9f721c) !important;
    border-color: rgba(216,178,96,.72) !important;
  }
}

/* Universal dashboard carousel imagery: fill the whole slide area without letterboxing. */
.game-slide,
.retro-game-carousel .game-slide,
.app-carousel .game-slide,
.app-slide {
  background:
    linear-gradient(125deg, rgba(12, 10, 7, .72), rgba(34, 24, 10, .44)),
    var(--game-bg) center center / cover no-repeat,
    linear-gradient(135deg, #fff7df, #d8b260) !important;
  background-color: #100d09 !important;
}
.retro-game-carousel .game-slide__backdrop,
.game-slide__backdrop {
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.04)) !important;
}

/* Carousel side arrows: subtle by default, solid on hover/focus/tap. */
.game-carousel__arrow,
.retro-game-carousel .game-carousel__arrow {
  opacity: .42 !important;
  background: linear-gradient(180deg, rgba(244,212,137,.62), rgba(151,107,27,.62)) !important;
  border-color: rgba(255,244,207,.58) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 0 18px rgba(216,178,96,.12) !important;
  transition: opacity .2s ease, transform .18s ease, background .2s ease, box-shadow .2s ease, filter .18s ease !important;
}
.game-carousel__arrow:hover,
.game-carousel__arrow:focus-visible,
.game-carousel__arrow:active,
.game-carousel__arrow.is-tap-active,
.retro-game-carousel .game-carousel__arrow:hover,
.retro-game-carousel .game-carousel__arrow:focus-visible,
.retro-game-carousel .game-carousel__arrow:active,
.retro-game-carousel .game-carousel__arrow.is-tap-active {
  opacity: 1 !important;
  transform: translateY(-2px) !important;
  background: linear-gradient(180deg, #ffecb5, #d8b260) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 0 24px rgba(216,178,96,.30) !important;
}

/* Keep the leftover mobile-menu tile out of header grids if older markup is still cached. */
.modern-dashboard--retro-hub .retro-header-grid > .retro-mobile-menu-toggle,
.zapareno-global-header .retro-header-grid > .retro-mobile-menu-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ===============================
   v10.37.6 — unified game/app boards + commerce CTA polish
   =============================== */
.retro-game-carousel .game-carousel__viewport {
  min-height: clamp(360px, 36vw, 440px) !important;
}

.retro-game-carousel .game-slide,
.app-carousel .game-slide {
  grid-template-columns: minmax(0, 1fr) minmax(138px, 172px) !important;
  gap: 18px !important;
  align-items: stretch !important;
  padding: 22px 72px 72px !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.60), rgba(0,0,0,.20) 58%, rgba(0,0,0,.56)),
    var(--game-bg) center center / cover no-repeat,
    linear-gradient(135deg, #0a0a0a, #d8b260) !important;
}

.retro-game-carousel .game-slide__cover,
.app-carousel .game-slide__cover {
  right: 92px !important;
  top: 30px !important;
  width: 92px !important;
  min-height: 92px !important;
  opacity: .18 !important;
}

.retro-game-carousel .game-slide__content,
.app-carousel .game-slide__content {
  align-self: end !important;
  max-width: min(860px, 100%) !important;
  min-height: 176px !important;
  align-content: center !important;
  padding: 22px 24px !important;
  border: 1px solid rgba(216,178,96,.42) !important;
  background: linear-gradient(180deg, rgba(12,12,12,.74), rgba(0,0,0,.62)) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(2px);
}

.retro-game-carousel .game-slide__content .game-row__titleline,
.app-carousel .game-slide__content .game-row__titleline {
  align-items: center !important;
  gap: 12px !important;
}

.retro-game-carousel .game-slide__content .game-row__titleline strong,
.app-carousel .game-slide__content .game-row__titleline strong {
  font-size: clamp(30px, 4vw, 52px) !important;
  line-height: .98 !important;
}

.game-slide__commerce {
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 2px;
  padding: 8px 10px;
  border: 1px solid rgba(216,178,96,.34);
  background: rgba(0,0,0,.38);
  color: #fff7df;
}

.game-slide__commerce div {
  display: grid;
  gap: 2px;
}

.game-slide__commerce small {
  color: rgba(244,212,137,.76);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.game-slide__commerce strong {
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 1000;
}

.game-slide__commerce > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8b260, #a77924);
  color: #111;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.game-slide__commerce.is-owned > span,
.game-slide__commerce.is-owned {
  border-color: rgba(244,212,137,.58);
}

.retro-game-carousel .game-slide__actions,
.app-carousel .game-slide__actions {
  align-self: end !important;
  justify-self: stretch !important;
  display: grid !important;
  align-content: end !important;
  gap: 10px !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.retro-game-carousel .game-slide__actions form,
.app-carousel .game-slide__actions form,
.retro-game-carousel .game-slide__actions .button_to,
.app-carousel .game-slide__actions .button_to {
  display: contents !important;
}

.retro-game-carousel .game-slide__actions .play-mini,
.app-carousel .game-slide__actions .play-mini,
.retro-game-carousel .game-slide__actions .gold-button,
.app-carousel .game-slide__actions .gold-button,
.retro-game-carousel .game-slide__actions .outline-button,
.app-carousel .game-slide__actions .outline-button {
  width: 100% !important;
  min-height: 52px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  text-align: center !important;
  white-space: normal !important;
}

.game-buy-button {
  border: 1px solid rgba(255,244,207,.76) !important;
  background: linear-gradient(180deg, #d8b260, #a77924) !important;
  color: #111 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 7px 0 rgba(88,58,11,.72) !important;
  font-weight: 1000 !important;
}

.game-buy-disabled {
  opacity: .62 !important;
  filter: grayscale(.2) !important;
}

.retro-game-carousel .game-carousel__arrow {
  opacity: .26 !important;
}

.retro-game-carousel:hover .game-carousel__arrow,
.retro-game-carousel:focus-within .game-carousel__arrow,
.retro-game-carousel .game-carousel__arrow:hover,
.retro-game-carousel .game-carousel__arrow:focus-visible,
.retro-game-carousel .game-carousel__arrow:active,
.retro-game-carousel .game-carousel__arrow.is-tap-active {
  opacity: 1 !important;
}

@media (max-width: 920px) {
  .retro-game-carousel .game-carousel__viewport,
  .retro-game-carousel .game-slide,
  .app-carousel .game-slide {
    min-height: clamp(300px, 74vw, 420px) !important;
  }

  .retro-game-carousel .game-slide,
  .app-carousel .game-slide {
    grid-template-columns: 1fr !important;
    align-content: end !important;
    padding: 54px 44px 68px !important;
  }

  .retro-game-carousel .game-slide__content,
  .app-carousel .game-slide__content {
    min-height: 0 !important;
    padding: 14px !important;
  }

  .retro-game-carousel .game-slide__content .game-row__titleline strong,
  .app-carousel .game-slide__content .game-row__titleline strong {
    font-size: clamp(24px, 8vw, 38px) !important;
  }

  .game-slide__commerce {
    width: 100%;
    margin-top: 8px;
  }

  .retro-game-carousel .game-slide__actions,
  .app-carousel .game-slide__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .retro-game-carousel .game-slide,
  .app-carousel .game-slide {
    padding: 42px 34px 60px !important;
  }

  .game-slide__commerce {
    align-items: stretch;
    flex-direction: column;
  }

  .game-slide__commerce > span {
    justify-content: center;
  }
}

/* ===============================
   v10.37.7 — mobile/header/card polish
   - dashboard copy cleanup
   - cover thumbnail in top-right product square
   - invisible idle hide-toggle hitzone
   - stricter single-column mobile content
   =============================== */

/* Product square uses the same full cover image as a real thumbnail, not an icon placeholder. */
.retro-game-carousel .game-slide__cover.game-slide__cover--thumb,
.app-carousel .game-slide__cover.game-slide__cover--thumb,
.game-slide__cover.game-slide__cover--thumb {
  display: block !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.22)),
    var(--game-bg) center center / cover no-repeat !important;
  border: 2px solid rgba(216,178,96,.58) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 14px 30px rgba(0,0,0,.24) !important;
  opacity: .82 !important;
}
.retro-game-carousel .game-slide__cover.game-slide__cover--thumb span,
.app-carousel .game-slide__cover.game-slide__cover--thumb span,
.game-slide__cover.game-slide__cover--thumb span {
  display: none !important;
}

/* Header hide toggle is a hit-zone after idle: visually gone until hover/focus/tap. */
@media (min-width: 1181px) {
  .modern-dashboard--retro-hub .retro-header > .retro-desktop-header-toggle {
    animation: zaparenoHeaderToggleVanishHard 3.1s ease 1.05s forwards !important;
  }
  @keyframes zaparenoHeaderToggleVanishHard {
    0%, 58% { opacity: 1; color: #080808; box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.36); }
    100% { opacity: 0; color: rgba(8,8,8,0); box-shadow: none; }
  }
  .modern-dashboard--retro-hub.is-desktop-header-hidden .retro-header > .retro-desktop-header-toggle {
    opacity: 0 !important;
    color: rgba(8,8,8,0) !important;
    box-shadow: none !important;
  }
}

/* Tablet/mobile dashboard header: all six header tiles must be present; no extra grey hamburger tile. */
@media (max-width: 1180px) {
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid > .retro-header-tile,
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header form.button_to {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid > .retro-mobile-menu-toggle {
    display: none !important;
  }
  .modern-dashboard--retro-hub .retro-workspace,
  .modern-dashboard--retro-hub .retro-workspace-section,
  .modern-dashboard--retro-hub .retro-workspace-heading,
  .modern-dashboard--retro-hub .library-panels,
  .modern-dashboard--retro-hub .game-stat-grid,
  .modern-dashboard--retro-hub .game-slide__actions {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 560px) {
  .modern-dashboard--retro-hub.is-mobile-header-open .retro-header-grid {
    grid-template-columns: 1fr !important;
  }
  .retro-game-carousel .game-slide__cover.game-slide__cover--thumb,
  .app-carousel .game-slide__cover.game-slide__cover--thumb {
    right: 40px !important;
    top: 42px !important;
    width: 72px !important;
    min-height: 72px !important;
  }
}

/* v10.37.9 — PWA client install entry from dashboard brand tile */
.retro-brand--install {
  cursor: pointer;
}

.retro-brand--install small {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html.zapareno-install-ready .retro-brand--install small::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px rgba(215, 181, 91, 0.75);
  vertical-align: 0.05em;
}

.zapareno-install-dialog {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.zapareno-install-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.zapareno-install-dialog__panel {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(215, 181, 91, 0.65);
  background: linear-gradient(180deg, rgba(23, 22, 18, 0.98), rgba(10, 9, 7, 0.98));
  color: #f6f0df;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 255, 255, 0.08);
  padding: clamp(1.15rem, 3vw, 1.6rem);
  animation: zapInstallPanelIn 180ms ease-out both;
}

.zapareno-install-dialog__panel h2 {
  margin: 0.2rem 2.5rem 0.9rem 0;
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1;
}

.zapareno-install-dialog__body {
  color: rgba(246, 240, 223, 0.84);
  font-weight: 700;
  line-height: 1.55;
}

.zapareno-install-dialog__body p {
  margin: 0.65rem 0;
}

.zapareno-install-dialog__body ol {
  margin: 0.75rem 0 0.75rem 1.25rem;
  padding: 0;
}

.zapareno-install-dialog__body li + li {
  margin-top: 0.4rem;
}

.zapareno-install-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.zapareno-install-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(215, 181, 91, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #f6f0df;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
}

.zapareno-install-dialog-open {
  overflow: hidden;
}

@keyframes zapInstallPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* v10.37.10 — Android PWA install hardening */
.zapareno-install-dialog__secondary {
  border: 1px solid rgba(215, 181, 91, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #f6f0df;
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  font-weight: 900;
  cursor: pointer;
}

html.zapareno-install-checking .retro-brand--install small::after {
  animation: zapInstallPulse 720ms ease-in-out infinite alternate;
}

@keyframes zapInstallPulse {
  from { opacity: 0.35; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1.1); }
}


/* v10.37.11 — safer product card information layout.
   Keeps uploaded thumbnails/backgrounds intact; only repositions product text and commerce. */
.retro-game-carousel .game-slide,
.app-carousel .game-slide {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) !important;
  grid-template-areas:
    "content actions" !important;
  align-items: stretch !important;
}

.retro-game-carousel .game-slide__content,
.app-carousel .game-slide__content {
  align-self: start !important;
  justify-self: start !important;
  width: min(720px, 100%) !important;
  min-height: 0 !important;
  align-content: start !important;
  padding: 16px 18px !important;
  background: linear-gradient(180deg, rgba(10,10,10,.62), rgba(0,0,0,.42)) !important;
}

.retro-game-carousel .game-slide__content .game-row__titleline,
.app-carousel .game-slide__content .game-row__titleline {
  align-items: flex-start !important;
}

.retro-game-carousel .game-slide__content .game-row__titleline strong,
.app-carousel .game-slide__content .game-row__titleline strong {
  font-size: clamp(24px, 3.6vw, 46px) !important;
}

.retro-game-carousel .game-slide__actions,
.app-carousel .game-slide__actions {
  align-self: end !important;
  gap: 9px !important;
}

.retro-game-carousel .game-slide__actions .game-slide__commerce,
.app-carousel .game-slide__actions .game-slide__commerce {
  width: 100% !important;
  margin: 0 !important;
  order: 2 !important;
  border-radius: 14px !important;
}

.retro-game-carousel .game-slide__actions .game-buy-button,
.app-carousel .game-slide__actions .game-buy-button,
.retro-game-carousel .game-slide__actions .game-buy-disabled,
.app-carousel .game-slide__actions .game-buy-disabled {
  order: 3 !important;
}

@media (max-width: 920px) {
  .retro-game-carousel .game-slide,
  .app-carousel .game-slide {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "content"
      "actions" !important;
    align-content: space-between !important;
    padding: 54px 44px 34px !important;
  }

  .retro-game-carousel .game-slide__content,
  .app-carousel .game-slide__content {
    max-width: calc(100% - 104px) !important;
  }

  .retro-game-carousel .game-slide__actions,
  .app-carousel .game-slide__actions {
    align-self: end !important;
  }
}

@media (max-width: 560px) {
  .retro-game-carousel .game-slide,
  .app-carousel .game-slide {
    padding: 34px 22px 26px !important;
    min-height: 430px !important;
  }

  .retro-game-carousel .game-slide__content,
  .app-carousel .game-slide__content {
    max-width: calc(100% - 88px) !important;
    padding: 12px !important;
  }

  .retro-game-carousel .game-slide__content p,
  .app-carousel .game-slide__content p {
    font-size: 12px !important;
  }

  .retro-game-carousel .game-slide__cover.game-slide__cover--thumb,
  .app-carousel .game-slide__cover.game-slide__cover--thumb {
    right: 22px !important;
    top: 28px !important;
    width: 74px !important;
    min-height: 74px !important;
    opacity: .9 !important;
  }
}

/* v10.38.13 — rewardpass UI */
.reward-pass-trigger {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.reward-pass-trigger:hover,
.reward-pass-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
  outline: 2px solid rgba(251, 191, 36, .45);
  outline-offset: 3px;
}

.reward-pass-trigger__hint {
  display: inline-flex;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #92400e;
}

.reward-pass-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.reward-pass-shell {
  display: grid;
  gap: 16px;
}

.reward-pass-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(120, 53, 15, .16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(254, 243, 199, .92), rgba(255, 251, 235, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.reward-pass-hero h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 32px);
}

.reward-pass-level-pill {
  min-width: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(17, 24, 39, .94);
  color: #fff7ed;
}

.reward-pass-level-pill span,
.reward-pass-level-pill small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .78;
}

.reward-pass-level-pill strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.reward-pass-progress {
  height: 12px;
}

.reward-pass-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.reward-pass-node {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 118px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(120, 53, 15, .14);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.reward-pass-node::after {
  content: "";
  position: absolute;
  inset: auto 14px 10px 14px;
  height: 4px;
  border-radius: 99px;
  background: rgba(120, 53, 15, .14);
}

.reward-pass-node--claimed::after,
.reward-pass-node--starter::after {
  background: linear-gradient(90deg, #f59e0b, #22c55e);
}

.reward-pass-node--ready::after {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

.reward-pass-node--locked {
  opacity: .62;
  filter: grayscale(.25);
}

.reward-pass-node.is-current {
  border-color: rgba(245, 158, 11, .65);
  box-shadow: 0 14px 32px rgba(245, 158, 11, .16);
}

.reward-pass-node__level {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 54px;
  border-radius: 18px;
  background: #111827;
  color: #fff7ed;
}

.reward-pass-node__level span {
  font-size: 10px;
  letter-spacing: .08em;
  opacity: .72;
}

.reward-pass-node__level strong {
  font-size: 22px;
  line-height: 1;
}

.reward-pass-node__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(251, 191, 36, .18);
  font-size: 22px;
}

.reward-pass-node__body h4 {
  margin: 0;
  font-size: 15px;
}

.reward-pass-node__body p {
  margin: 4px 0 0;
  color: rgba(67, 56, 202, .78);
  font-size: 12px;
}

.reward-pass-node__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reward-pass-node__topline span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.reward-pass-node--claimed .reward-pass-node__topline span,
.reward-pass-node--starter .reward-pass-node__topline span {
  background: rgba(34, 197, 94, .16);
  color: #166534;
}

.reward-pass-node--ready .reward-pass-node__topline span {
  background: rgba(250, 204, 21, .22);
  color: #92400e;
}

.reward-pass-rules {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .06);
}

.reward-pass-rules p {
  margin: 0;
  color: rgba(15, 23, 42, .72);
  font-size: 13px;
}

@media (max-width: 720px) {
  .reward-pass-hero {
    flex-direction: column;
  }

  .reward-pass-node {
    grid-template-columns: auto 1fr;
  }

  .reward-pass-node__icon {
    display: none;
  }
}

/* v10.38.13 — rewardpass manual claim polish */
.reward-pass-rail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 12px;
}

.reward-pass-viewport {
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.reward-pass-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: max-content;
}

.reward-pass-node {
  width: min(260px, calc(100vw - 120px));
  text-align: left;
}

.reward-pass-node.is-claimable {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reward-pass-node.is-claimable:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, .45);
  box-shadow: 0 16px 34px rgba(245, 158, 11, .14);
}

.reward-pass-node.is-claiming {
  pointer-events: none;
  opacity: .82;
}

.reward-pass-node.is-claimed-now {
  animation: reward-pass-claim-pop .5s ease;
}

.reward-pass-node__claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .16);
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.reward-pass-node__claim--done {
  background: rgba(34, 197, 94, .16);
  color: #166534;
}

.reward-pass-node__claim--locked {
  background: rgba(15, 23, 42, .08);
  color: rgba(15, 23, 42, .46);
}

.reward-pass-nav {
  align-self: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(120, 53, 15, .16);
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  font-size: 28px;
  line-height: 1;
}

.reward-pass-flyup {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .94);
  color: #fff7ed;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  pointer-events: none;
  animation: reward-pass-flyup 1s ease forwards;
}

.js-wallet-gold-value.is-wallet-pop,
.retro-header-tile strong.is-wallet-pop {
  animation: reward-pass-wallet-pop .55s ease;
}

@keyframes reward-pass-flyup {
  0% { opacity: 0; transform: translateY(10px) scale(.92); }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(1.02); }
}

@keyframes reward-pass-wallet-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes reward-pass-claim-pop {
  0% { transform: scale(.98); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@media (max-width: 720px) {
  .reward-pass-rail {
    grid-template-columns: 1fr;
  }

  .reward-pass-nav {
    justify-self: center;
  }

  .reward-pass-node {
    width: min(240px, calc(100vw - 96px));
  }
}

/* v10.38.13 — level selector + rewardpass back flow */
.reward-pass-selector .level-card {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.reward-pass-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 12px;
  padding: 9px 14px;
  border: 1px solid rgba(120, 53, 15, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #78350f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* v10.38.15 — tester feedback questionnaire UI */
.feedback-card-button,
.feedback-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, .72);
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #111827;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 12px 24px rgba(245, 158, 11, .22);
}

.feedback-card-button--disabled,
.feedback-card-status {
  border-color: rgba(255,255,255,.28);
  background: rgba(17, 24, 39, .82);
  color: rgba(255,255,255,.76);
  box-shadow: none;
}

.feedback-card-button--done,
.feedback-card-status--done {
  border-color: rgba(34, 197, 94, .45);
  background: rgba(17, 24, 39, .92);
  color: #bbf7d0;
}

.feedback-questionnaire-shell {
  display: grid;
  gap: 18px;
  color: #fff7ed;
}

.feedback-questionnaire-card,
.feedback-questionnaire-loading,
.feedback-questionnaire-hero,
.feedback-module {
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 24, 39, .96), rgba(0, 0, 0, .92));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.08);
}

.feedback-questionnaire-card,
.feedback-questionnaire-loading {
  padding: 22px;
}

.feedback-questionnaire-card h3,
.feedback-questionnaire-loading h3,
.feedback-questionnaire-hero h3,
.feedback-module h4 {
  margin: 0;
  color: #fff7ed;
}

.feedback-questionnaire-card p,
.feedback-questionnaire-loading p,
.feedback-questionnaire-hero p {
  color: rgba(255,255,255,.72);
}

.feedback-questionnaire-card--done {
  border-color: rgba(34, 197, 94, .42);
}

.feedback-questionnaire-card--error {
  border-color: rgba(248, 113, 113, .52);
}

.feedback-questionnaire-form {
  display: grid;
  gap: 16px;
}

.feedback-questionnaire-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.feedback-reward-pill {
  min-width: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #111827;
}

.feedback-reward-pill span,
.feedback-reward-pill small {
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.feedback-reward-pill strong {
  font-size: 28px;
  line-height: 1;
}

.feedback-questionnaire-modules {
  display: grid;
  gap: 14px;
}

.feedback-module {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.feedback-module header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-module header span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .16);
  color: #facc15;
  font-size: 11px;
  font-weight: 950;
}

.feedback-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  color: #fff7ed;
}

.feedback-field legend,
.feedback-field > span {
  color: #fff7ed;
  font-weight: 900;
}

.feedback-field em {
  margin-left: 8px;
  color: #facc15;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.feedback-rating-grid,
.feedback-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-rating-option input,
.feedback-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-rating-option span,
.feedback-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, .28);
  background: rgba(255,255,255,.08);
  color: #fff7ed;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.feedback-rating-option input:checked + span,
.feedback-choice input:checked + span {
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #111827;
  transform: translateY(-2px);
}

.feedback-rating-option--na span {
  min-width: 124px;
}

.feedback-field textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, .28);
  background: rgba(0, 0, 0, .38);
  color: #fff7ed;
  padding: 12px 14px;
  font: inherit;
}

.feedback-field textarea::placeholder {
  color: rgba(255,255,255,.42);
}

.feedback-field small,
.feedback-questionnaire-footer small {
  color: rgba(255,255,255,.62);
}

.feedback-questionnaire-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.feedback-submit-reward {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.feedback-submit-reward span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .18);
  color: #facc15;
  font-weight: 950;
}

@media (max-width: 720px) {
  .feedback-questionnaire-hero {
    flex-direction: column;
  }

  .feedback-reward-pill {
    width: 100%;
  }
}
