@scope (#destiny-game-runtime) {

:scope {
  --v11-surface: #fffaf0;
  --v11-surface-strong: #ffffff;
  --v11-surface-muted: #f1f5ed;
  --v11-ink: #173225;
  --v11-ink-muted: #4b6254;
  --v11-accent: #07633c;
  --v11-accent-strong: #064c30;
  --v11-accent-soft: #dfeee2;
  --v11-warm: #f4e7bd;
  --v11-focus: #0b3b26;
}

[data-v11-noncore] {
  display: none !important;
}

.v11-line-icon,
.v11-event-icon {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

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

.v11-event-icon {
  width: 18px;
  height: 18px;
}

.v11-focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: rgba(3, 54, 32, 0.88);
}

.v11-focus-panel {
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 20px;
  background: var(--v11-surface);
  color: var(--v11-ink);
  box-shadow: 0 24px 60px rgba(2, 35, 20, 0.42);
  overscroll-behavior: contain;
}

.v11-focus-title,
.v11-focus-intro {
  margin-top: 0;
  text-align: center;
}

.v11-focus-title {
  margin-bottom: 8px;
  color: var(--v11-ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.v11-focus-intro {
  margin-bottom: 20px;
  color: var(--v11-ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.v11-focus-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v11-focus-choice {
  min-width: 0;
  min-height: 92px;
  padding: 15px 16px;
  border: 1px solid rgba(7, 99, 60, 0.28);
  border-radius: 13px;
  background: var(--v11-surface-strong);
  color: var(--v11-ink);
  text-align: start;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(3, 54, 32, 0.08);
  transition-property: border-color, background-color, box-shadow;
  transition-duration: 120ms;
  transition-timing-function: ease-out;
}

.v11-focus-choice:hover {
  border-color: var(--v11-accent);
  background: var(--v11-surface-muted);
  box-shadow: 0 4px 12px rgba(3, 54, 32, 0.12);
}

.v11-focus-choice:focus-visible,
#screen-game .profile-toggle:focus-visible,
#screen-game .panel-tab:focus-visible,
#screen-game .opt-btn:focus-visible,
#screen-game .game-info-collapse:focus-visible,
#screen-game .game-info-close:focus-visible {
  outline: 3px solid var(--v11-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff;
}

.v11-focus-choice strong,
.v11-focus-choice span {
  display: block;
}

.v11-focus-choice strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.v11-focus-choice span {
  margin-top: 6px;
  color: var(--v11-ink-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  text-wrap: pretty;
}

:scope.v11-game-active #app {
  max-width: 1100px;
}

#screen-game .game-layout {
  display: block;
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

#screen-game .game-primary,
#screen-game .game-sidebar,
#screen-game .game-main {
  min-width: 0;
}

#screen-game .game-primary {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

#screen-game .game-main {
  display: flex;
  flex: 1;
}

#screen-game .card-stage {
  width: 100%;
}

#screen-game .game-header {
  display: block;
  border-radius: 14px;
  padding: 11px 14px;
}

#screen-game .hh-player {
  max-width: none;
  font-size: 0.98rem;
  font-weight: 700;
}

#screen-game .game-header-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-top: 3px;
  color: var(--text-1);
  font-size: 0.76rem;
  font-weight: 600;
}

#screen-game .game-header-meta .hh-club {
  max-width: 64%;
}

#screen-game .profile-toggle {
  position: relative;
  overflow: visible;
}

.v11-profile-icon {
  width: 19px;
  height: 19px;
}

.v11-profile-count {
  position: absolute;
  inset: -5px -5px auto auto;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--card-bg);
  border-radius: 999px;
  background: var(--v11-accent-strong);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.v11-profile-count[hidden] {
  display: none;
}

#screen-game .gauge-label {
  width: auto;
  min-width: 74px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.66rem;
}

#screen-game .game-sidebar {
  display: none;
}

.game-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.game-info-header h2 {
  flex: 1;
  margin: 0;
  color: var(--v11-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-info-collapse,
.game-info-close {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(7, 99, 60, 0.28);
  border-radius: 11px;
  background: var(--v11-surface-strong);
  color: var(--v11-accent-strong);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.game-info-collapse,
.game-info-close {
  display: inline-grid;
  width: 42px;
  padding: 0;
  place-items: center;
}

.game-info-collapse span,
.game-info-close span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.game-info-close {
  display: none;
}

#screen-game .profile-panel {
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

#screen-game .panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  overflow: visible;
}

#screen-game .panel-tab {
  display: grid;
  min-width: 0;
  min-height: 42px;
  padding: 7px 6px;
  place-items: center;
  border-color: rgba(7, 99, 60, 0.22);
  border-radius: 9px;
  background: var(--v11-surface-strong);
  color: var(--v11-ink-muted);
  font-size: 0.68rem;
  line-height: 1.25;
  overflow-wrap: break-word;
  white-space: normal;
}

#screen-game .panel-tab:hover {
  background: var(--v11-surface-muted);
}

#screen-game .panel-tab.is-active {
  border-color: var(--v11-accent);
  background: var(--v11-accent);
  color: #fff;
}

#screen-game .panel-body {
  max-height: none;
  overflow: visible;
  color: var(--v11-ink);
}

#screen-game .panel-section,
#screen-game .panel-empty {
  color: var(--v11-ink-muted);
}

#screen-game .panel-path {
  overflow-x: visible;
  overflow-wrap: anywhere;
}

.v11-profile-status h3 {
  margin: 18px 0 7px;
  color: var(--v11-ink-muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.v11-profile-fact {
  margin: 0 0 10px;
  color: var(--v11-ink-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.v11-profile-fact strong {
  color: var(--v11-ink);
  font-weight: 700;
}

.v11-fact-separator {
  color: var(--v11-accent);
  font-weight: 800;
}

.v11-profile-direction {
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--v11-warm);
}

.v11-profile-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.v11-profile-item {
  padding: 9px 10px;
  border-inline-start: 3px solid var(--v11-accent);
  border-radius: 7px;
  background: var(--v11-surface-muted);
}

.v11-profile-item strong,
.v11-profile-item span {
  display: block;
}

.v11-profile-item strong {
  color: var(--v11-ink);
  font-size: 0.78rem;
}

.v11-profile-item span {
  margin-top: 3px;
  color: var(--v11-ink-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.v11-profile-empty {
  margin: 0;
  color: var(--v11-ink-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

#screen-game .btn-retire {
  background: var(--v11-surface-strong);
}

#screen-game .game-card {
  min-height: 360px;
  justify-content: center;
  padding: 24px 20px;
  background: var(--v11-surface-strong);
}

#screen-game .card-tag {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 14px;
  color: var(--v11-ink-muted);
  text-align: center;
  text-wrap: balance;
}

#screen-game .card-icon {
  display: inline-flex;
  margin: 0;
  color: var(--v11-accent);
}

#screen-game .event-text,
#screen-game .result-text {
  width: 100%;
  max-width: 65ch;
  flex: none;
  margin: 0 auto 20px;
  color: var(--v11-ink);
  line-height: 1.55;
  overflow-wrap: break-word;
  text-align: start;
  text-wrap: pretty;
}

#screen-game .event-text.is-short-copy,
#screen-game .result-text.is-short-copy {
  text-align: center;
}

#screen-game .event-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: min(100%, 520px);
  margin: 0 auto;
}

#screen-game .opt-btn {
  min-height: 48px;
  background: var(--v11-surface-muted);
  border-color: rgba(7, 99, 60, 0.22);
  color: var(--v11-ink);
  line-height: 1.4;
  text-align: start;
}

#screen-game .opt-btn:hover {
  border-color: var(--v11-accent);
  background: var(--v11-accent-soft);
}

#screen-game .fx-chips {
  justify-content: center;
  width: min(100%, 520px);
  margin: 0 auto 12px;
}

#screen-game .fx-good {
  border-color: rgba(7, 99, 60, 0.35);
  background: var(--v11-accent-soft);
  color: #075331;
}

#screen-game .fx-bad {
  border-color: rgba(158, 55, 45, 0.35);
  background: #f8e8e4;
  color: #8e3028;
}

#screen-game .fx-money,
#screen-game .fx-trophy {
  border-color: rgba(126, 91, 0, 0.35);
  background: var(--v11-warm);
  color: #664900;
}

#screen-game .fx-trait,
#screen-game .fx-neutral {
  border-color: rgba(7, 99, 60, 0.25);
  background: var(--v11-surface-muted);
  color: var(--v11-ink-muted);
}

.v11-effect-explanations {
  display: grid;
  gap: 7px;
  width: min(100%, 520px);
  padding: 0;
  margin: 0 auto 16px;
  list-style: none;
}

.v11-effect-explanation {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--v11-surface-muted);
  color: var(--v11-ink-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.v11-effect-explanation strong {
  color: var(--v11-ink);
  font-size: 0.74rem;
}

#screen-game #btn-next {
  width: min(100%, 220px);
  margin: 2px auto 0;
}

.v11-feedback,
.v11-retirement-echoes {
  padding: 13px 14px;
  border: 1px solid rgba(7, 99, 60, 0.22);
  border-radius: 11px;
  background: var(--v11-surface-muted);
  color: var(--v11-ink);
}

.v11-feedback {
  width: min(100%, 520px);
  margin: 18px auto 0;
}

.v11-feedback h3,
.v11-retirement-echoes h3 {
  margin: 0;
  color: var(--v11-accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.v11-feedback p,
.v11-retirement-echoes p {
  margin: 6px 0 0;
  color: var(--v11-ink-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

#screen-final .final-actions {
  flex-wrap: wrap;
}

#screen-final .final-actions .btn {
  min-width: 150px;
}

@media (min-width: 1240px) {
  :scope.v11-game-active #app {
    padding-right: 12px;
    padding-left: 12px;
  }

  #screen-game .game-layout {
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(260px, 300px);
    gap: 18px;
    align-items: start;
    justify-content: center;
    max-width: 978px;
  }

  #screen-game .game-layout.info-collapsed {
    grid-template-columns: minmax(0, 680px);
    max-width: 680px;
  }

  #screen-game .game-layout.info-collapsed .game-sidebar {
    display: none;
  }

  #screen-game .game-main {
    display: block;
  }

  #screen-game .game-sidebar {
    display: block;
    padding: 16px;
    border-radius: 16px;
    background: var(--v11-surface);
    box-shadow: 0 10px 28px var(--shadow);
  }

  #screen-game .game-card {
    min-height: 520px;
    padding: 30px 32px;
  }

  #screen-game .card-stage {
    justify-content: flex-start;
  }
}

@media (max-width: 1239.98px) {
  #screen-game .game-sidebar {
    position: fixed;
    inset: 12px;
    z-index: 900;
    display: none;
    flex-direction: column;
    max-width: 640px;
    max-height: calc(100dvh - 24px);
    padding: 16px;
    margin: auto;
    overflow-y: auto;
    border-radius: 18px;
    background: var(--v11-surface);
    box-shadow: 0 24px 70px rgba(2, 35, 20, 0.55);
    overscroll-behavior: contain;
  }

  #screen-game .game-sidebar.is-mobile-open {
    display: flex;
  }

  :scope.v11-info-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 899;
    background: rgba(3, 54, 32, 0.72);
  }

  .game-info-collapse {
    display: none;
  }

  .game-info-close {
    display: inline-grid;
  }

  #screen-game .panel-body {
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  :scope.v11-game-active #app {
    padding-right: 12px;
    padding-left: 12px;
  }

  .v11-focus-overlay {
    align-items: start;
    padding: 12px;
  }

  .v11-focus-panel {
    max-height: none;
    padding: 18px 14px;
  }

  .v11-focus-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  #screen-game .gauges {
    flex-direction: column;
    gap: 6px;
  }

  #screen-game .gauge-label {
    min-width: 86px;
  }

  #screen-game .game-card {
    min-height: 390px;
    padding: 22px 16px;
  }

  .v11-effect-explanation {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  #screen-final .final-actions {
    flex-direction: column;
  }

  #screen-final .final-actions .btn {
    width: 100%;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v11-focus-choice {
    transition-duration: 0.01ms;
  }
}

/* --------------------------------------------------------------------------
   Sunny pitch card system — representative vertical slice
   -------------------------------------------------------------------------- */

:scope {
  --ui-page: #f7f3e9;
  --ui-card: #fffefa;
  --ui-muted: #f3f7f1;
  --ui-line: #dce7df;
  --ui-line-strong: #bfd4c7;
  --ui-ink: #17352a;
  --ui-ink-muted: #60756c;
  --ui-grass: #16734b;
  --ui-grass-strong: #0d5738;
  --ui-grass-soft: #e3f2e9;
  --ui-sky: #1687bd;
  --ui-sky-strong: #116b99;
  --ui-sky-soft: #e1f3fb;
  --ui-sun: #f4c84a;
  --ui-sun-soft: #fff4bf;
  --ui-danger: #be433b;
  --ui-danger-soft: #fff0ee;
  --ui-radius-sm: 10px;
  --ui-radius-md: 16px;
  --ui-radius-lg: 24px;
  --ui-shadow-sm: 0 2px 8px rgba(29, 65, 49, 0.08);
  --ui-shadow-md: 0 14px 34px rgba(29, 65, 49, 0.12);
  --ui-shadow-lg: 0 28px 70px rgba(29, 65, 49, 0.18);
  --v11-surface: var(--ui-card);
  --v11-surface-strong: #fff;
  --v11-surface-muted: var(--ui-muted);
  --v11-ink: var(--ui-ink);
  --v11-ink-muted: var(--ui-ink-muted);
  --v11-accent: var(--ui-grass);
  --v11-accent-strong: var(--ui-grass-strong);
  --v11-accent-soft: var(--ui-grass-soft);
  --v11-warm: var(--ui-sun-soft);
  --v11-focus: var(--ui-sky-strong);
  min-width: 320px;
  color: var(--ui-ink);
  background: var(--ui-page);
}

:scope::before {
  background:
    radial-gradient(circle at 12% -8%, rgba(244, 200, 74, 0.42), transparent 31rem),
    radial-gradient(circle at 91% 9%, rgba(110, 197, 233, 0.28), transparent 28rem),
    linear-gradient(180deg, rgba(225, 243, 251, 0.78), transparent 34rem),
    repeating-linear-gradient(90deg, rgba(22, 115, 75, 0.025) 0 92px, transparent 92px 184px),
    var(--ui-page);
}

#app {
  width: 100%;
  max-width: 1180px;
  padding: clamp(14px, 2.5vw, 30px) clamp(14px, 3vw, 34px) 42px;
}

.screen { animation-duration: 260ms; }

.btn,
.btn-modal,
.setup-back,
.dice-all,
.dice-btn,
.nat-card,
.origin-card,
#screen-game .opt-btn,
#screen-game .panel-tab,
#screen-game .profile-toggle,
#screen-game .game-info-collapse,
#screen-game .game-info-close {
  touch-action: manipulation;
}

.btn:focus-visible,
.btn-modal:focus-visible,
.setup-back:focus-visible,
.dice-all:focus-visible,
.dice-btn:focus-visible,
.nat-card:focus-visible,
.origin-card:focus-visible,
#screen-game .profile-toggle:focus-visible,
#screen-game .panel-tab:focus-visible,
#screen-game .opt-btn:focus-visible,
#screen-game .game-info-collapse:focus-visible,
#screen-game .game-info-close:focus-visible {
  outline: 3px solid var(--ui-sky-strong);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ui-card);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ui-sky-strong);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ui-card);
}

.btn {
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-sm);
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: none;
}

.btn-primary {
  border-color: var(--ui-grass);
  background: var(--ui-grass);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 115, 75, 0.2);
}

.btn-primary:hover { background: var(--ui-grass-strong); }

.btn-secondary {
  border-color: var(--ui-line);
  background: var(--ui-card);
  color: var(--ui-grass-strong);
  box-shadow: var(--ui-shadow-sm);
}

/* Home */
#screen-home {
  min-height: calc(100dvh - 72px);
  justify-content: center;
}

.home-wrap {
  position: relative;
  isolation: isolate;
  width: min(100%, 620px);
  padding: clamp(36px, 8vw, 66px) clamp(24px, 7vw, 62px) clamp(30px, 6vw, 50px);
  overflow: hidden;
  gap: 16px;
  border: 1px solid var(--ui-line-strong);
  border-radius: clamp(24px, 5vw, 34px);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--ui-shadow-lg);
}

.home-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 128px;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, 0.76) 49.6% 50.4%, transparent 50.4%),
    linear-gradient(135deg, var(--ui-grass), #2f8a59);
}

.home-wrap .title {
  margin: 72px 0 0;
  color: var(--ui-grass-strong);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 10vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-wrap .wm-11-img { height: 0.63em; vertical-align: -0.01em; }

.home-wrap .tagline {
  max-width: 460px;
  color: var(--ui-ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.7;
  text-wrap: pretty;
}

.home-wrap > .btn { width: min(100%, 340px); max-width: none; }

.home-wrap #btn-resume:not([style*="display:none"]):not([style*="display: none"]) + #btn-start {
  border-color: var(--ui-line-strong);
  background: var(--ui-card);
  color: var(--ui-grass-strong);
  box-shadow: var(--ui-shadow-sm);
}

/* Shared creation step */
:is(#screen-nationality, #screen-position, #screen-origin, #screen-lifestyle, #screen-entourage, #screen-academy) {
  align-self: center;
  width: min(100%, 760px);
  min-height: min(760px, calc(100dvh - 60px));
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--ui-shadow-md);
}

.setup-top { min-height: 44px; margin-bottom: 10px; }

.setup-back,
.dice-all {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  box-shadow: none;
}

.setup-back { background: var(--ui-muted); color: var(--ui-grass-strong); }

.dice-all {
  border-color: #efd77a;
  background: var(--ui-sun-soft);
  color: #6c5005;
}

.setup-steps { gap: 7px; margin: 10px 0 18px; }

.step-dot {
  width: 30px;
  height: 5px;
  border-radius: 99px;
  background: var(--ui-line);
}

.step-dot.done { background: #8ac7a8; }
.step-dot.active { background: var(--ui-grass); box-shadow: none; }
.screen-title-row { align-items: center; gap: 12px; }

:is(#screen-nationality, #screen-position, #screen-origin, #screen-lifestyle, #screen-entourage, #screen-academy) .screen-title {
  margin: 4px 0 3px;
  color: var(--ui-ink);
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  text-wrap: balance;
}

:is(#screen-nationality, #screen-position, #screen-origin, #screen-lifestyle, #screen-entourage, #screen-academy) .screen-sub {
  max-width: 530px;
  margin: 0 auto 24px;
  color: var(--ui-ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.dice-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #b8ddec;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-sky-soft);
  color: var(--ui-sky-strong);
}

.grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.list-cards { gap: 10px; }

.nat-card,
.origin-card {
  min-width: 0;
  min-height: 96px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-md);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-sm);
}

.origin-card { min-height: 0; padding: 15px 16px; }

.nat-card:hover,
.origin-card:hover {
  border-color: var(--ui-grass);
  background: var(--ui-grass-soft);
  transform: translateY(-2px);
}

.nat-card.card-rolled,
.origin-card.card-rolled {
  border-color: var(--ui-sky);
  background: var(--ui-sky-soft);
  box-shadow: 0 0 0 3px rgba(22, 135, 189, 0.16), var(--ui-shadow-sm);
}

.nat-flag-img { border-color: var(--ui-line-strong); box-shadow: none; }

/* Player identity and progress */
:scope.v11-game-active #app { max-width: 1180px; }
#screen-game .game-layout { max-width: 720px; }

#screen-game .game-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-md);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-sm);
}

#screen-game .hh-player {
  align-self: center;
  color: var(--ui-ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

#screen-game .game-header-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  color: var(--ui-ink-muted);
}

#screen-game .game-header-meta #hh-age {
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--ui-sun-soft);
  color: #6c5005;
}

#screen-game .game-header-meta .hh-club {
  display: flex;
  max-width: 220px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  text-align: right;
}

.v11-club-crest {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  background: var(--ui-muted);
  color: var(--ui-grass-strong);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
}

.v11-club-crest img { display: block; width: 100%; height: 100%; }
.v11-club-crest.is-fallback { background: var(--ui-grass-soft); }

#screen-game .game-subheader { gap: 8px; margin: 9px 0; }

#screen-game .sub-item {
  min-height: 44px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-sm);
}

#screen-game .ovr-badge { border-color: #efd77a; background: var(--ui-sun-soft); }

#screen-game .gauges {
  gap: 14px;
  padding: 11px 13px;
  margin: 0 0 8px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: rgba(255, 254, 250, 0.78);
}

#screen-game .gauge-label {
  min-width: 82px;
  color: var(--ui-ink-muted);
  font-size: 0.66rem;
  font-weight: 700;
}

#screen-game .gauge-bar,
#screen-game .age-progress { background: #dfe9e3; }

#screen-game .gauge-bar { height: 7px; }
#screen-game .age-progress { height: 5px; margin: 0 4px 14px; }
#screen-game .age-progress-fill { background: linear-gradient(90deg, var(--ui-sky), var(--ui-grass)); }

/* Event and result cards */
#screen-game .game-card {
  position: relative;
  min-height: 430px;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--ui-line);
  border-top: 5px solid var(--ui-grass);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-md);
}

#screen-game .game-card:is(.tone-great, .tone-good) {
  border-color: #8fc5a8;
  border-top-color: var(--ui-grass);
  box-shadow: var(--ui-shadow-md);
}

#screen-game .game-card:is(.tone-bad, .tone-terrible) {
  border-color: #e5aaa5;
  border-top-color: var(--ui-danger);
  box-shadow: var(--ui-shadow-md);
}

#screen-game .game-card.tone-moment {
  border-color: #a8d6e9;
  border-top-color: var(--ui-sky);
  box-shadow: var(--ui-shadow-md);
}

#screen-game .card-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-bottom: 18px;
  border: 1px solid #b8ddec;
  border-radius: 99px;
  background: var(--ui-sky-soft);
  color: var(--ui-sky-strong);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}

#screen-game :is(.event-text, .result-text) {
  max-width: 58ch;
  margin: 0 auto 24px;
  color: var(--ui-ink);
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.72;
  text-wrap: pretty;
}

#screen-game :is(.event-text, .result-text).is-short-copy {
  align-content: center;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
}

#screen-game .event-options { display: grid; gap: 10px; }

#screen-game .opt-btn {
  position: relative;
  min-height: 54px;
  padding: 13px 42px 13px 15px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  color: var(--ui-ink);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

#screen-game .opt-btn::after {
  content: none;
  display: none;
}

#screen-game .opt-btn:hover {
  border-color: var(--ui-grass);
  background: var(--ui-grass-soft);
  transform: translateY(-1px);
}

#screen-game .opt-btn:is(:disabled, .thinking) {
  background: var(--ui-muted);
  color: var(--ui-ink-muted);
  opacity: 0.62;
}

#screen-game .opt-btn:is(:disabled, .thinking)::after { content: "—"; color: var(--ui-ink-muted); }
#screen-game .opt-hint { border-color: #b8ddec; background: var(--ui-sky-soft); color: var(--ui-sky-strong); }
#screen-game .fx-chips { justify-content: center; }
#screen-game .fx-chip { border-radius: 99px; }
#screen-game .fx-good { border-color: #9bcbb1; background: var(--ui-grass-soft); color: var(--ui-grass-strong); }
#screen-game .fx-bad { border-color: #e5aaa5; background: var(--ui-danger-soft); color: #98342e; }

#screen-game :is(.fx-money, .fx-trophy) {
  border-color: #efd77a;
  background: var(--ui-sun-soft);
  color: #765706;
}

.v11-effect-explanation,
.v11-feedback { border: 1px solid var(--ui-line); background: var(--ui-muted); }

/* Profile sidebar / drawer */
.game-info-header { padding-bottom: 12px; border-bottom: 1px solid var(--ui-line); }
.game-info-header h2 { color: var(--ui-ink); font-weight: 700; letter-spacing: 0.015em; text-transform: none; }

.game-info-collapse,
.game-info-close {
  border-color: var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-muted);
  color: var(--ui-grass-strong);
}

#screen-game .panel-tab { border-color: var(--ui-line); background: var(--ui-muted); color: var(--ui-ink-muted); }
#screen-game .panel-tab.is-active { border-color: var(--ui-grass); background: var(--ui-grass); color: #fff; }
#screen-game .panel-body { color: var(--ui-ink); scrollbar-color: var(--ui-line-strong) transparent; }

/* Confirmation dialog */
.modal-overlay {
  padding: 18px;
  background: rgba(20, 53, 41, 0.62);
  backdrop-filter: blur(4px);
}

.modal-box {
  width: min(100%, 460px);
  padding: clamp(24px, 6vw, 34px);
  border: 1px solid var(--ui-line);
  border-top: 5px solid var(--ui-sun);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-lg);
}

.modal-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--ui-sun-soft);
  font-size: 1.45rem;
}

.modal-title {
  color: var(--ui-ink);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

.modal-message { color: var(--ui-ink-muted); line-height: 1.65; text-wrap: pretty; }
.btn-modal { min-height: 46px; border-radius: var(--ui-radius-sm); }
.btn-modal-cancel { border-color: var(--ui-line); background: var(--ui-muted); color: var(--ui-ink); }
.btn-modal-confirm { border-color: var(--ui-grass); background: var(--ui-grass); }

@media (min-width: 1240px) {
  #screen-game .game-layout {
    grid-template-columns: minmax(0, 680px) minmax(280px, 320px);
    gap: 22px;
    max-width: 1022px;
  }

  #screen-game .game-layout.info-collapsed {
    grid-template-columns: minmax(0, 720px);
    max-width: 720px;
  }

  #screen-game .game-sidebar {
    position: sticky;
    top: 24px;
    max-height: calc(100dvh - 48px);
    padding: 18px;
    overflow-y: auto;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-card);
    box-shadow: var(--ui-shadow-md);
  }

  #screen-game .game-card { min-height: 540px; }
}

@media (max-width: 1239.98px) {
  #screen-game .game-sidebar {
    inset: 0 0 0 auto;
    width: min(92vw, 420px);
    max-width: none;
    max-height: 100dvh;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    border: 0;
    border-left: 1px solid var(--ui-line);
    border-radius: 24px 0 0 24px;
    background: var(--ui-card);
    box-shadow: -20px 0 60px rgba(20, 53, 41, 0.24);
  }

  :scope.v11-info-open::after {
    background: rgba(20, 53, 41, 0.58);
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 599.98px) {
  #app { padding-right: 12px; padding-left: 12px; }
  #screen-home { min-height: calc(100dvh - 44px); }
  .home-wrap { padding-right: 20px; padding-left: 20px; }

  :is(#screen-nationality, #screen-position, #screen-origin, #screen-lifestyle, #screen-entourage, #screen-academy) {
    min-height: calc(100dvh - 24px);
    padding: 16px;
    border-radius: 20px;
  }

  .setup-back,
  .dice-all { min-height: 40px; padding: 8px 10px; font-size: 0.76rem; }

  .step-dot { width: 24px; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .nat-card { min-height: 90px; padding: 12px 8px; }
  .nat-flag-img { width: 50px; height: 33px; }

  #screen-game .game-header { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #screen-game .game-header-meta { grid-template-columns: auto minmax(0, 1fr); }
  #screen-game .game-header-meta .hh-club { max-width: none; }
  #screen-game .game-subheader { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #screen-game .sub-item { min-width: 0; font-size: 0.72rem; }
  #screen-game .game-card { min-height: 420px; padding: 21px 16px; }
  #screen-game .opt-btn { min-height: 52px; }
  .modal-actions { flex-direction: column; }
  .btn-modal { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .game-card,
  .fx-chip,
  .card-rolled,
  .modal-box,
  .nat-card,
  .origin-card,
  #screen-game .opt-btn {
    animation: none;
    transition-duration: 0.01ms;
  }
}

.home-wrap .home-brand-image {
  width: clamp(148px, 36vw, 224px);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(20, 53, 41, 0.2);
}

/* --------------------------------------------------------------------------
   Shared profile panes and full-career states — stage 2
   -------------------------------------------------------------------------- */

#screen-game .v11-profile-tabview {
  display: grid;
  gap: 15px;
}

#screen-game .v11-tab-section {
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-md);
  background: var(--ui-card);
}

#screen-game .v11-tab-section-title {
  margin: 0 0 10px;
  color: var(--ui-ink-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

#screen-game .v11-profile-meter-row {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

#screen-game .v11-profile-meter-row:first-of-type { margin-top: 0; }

#screen-game .v11-profile-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ui-ink-muted);
  font-size: 0.74rem;
}

#screen-game .v11-profile-meter-head strong {
  color: var(--ui-ink);
  font-variant-numeric: tabular-nums;
}

#screen-game .v11-profile-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--ui-muted);
}

#screen-game .v11-profile-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ui-sky), var(--ui-grass));
}

#screen-game .v11-tab-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#screen-game .v11-tab-list-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-muted);
  color: var(--ui-ink-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

#screen-game .v11-tab-list-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

#screen-game .v11-tab-list-value {
  flex: 0 0 auto;
  color: var(--ui-ink);
  font-variant-numeric: tabular-nums;
}

#screen-game .v11-tab-empty {
  margin: 0;
  padding: 8px 2px;
}

#screen-game .v11-profile-item[data-status-kind="comeback_pending"],
#screen-game .v11-profile-item[data-status-kind="body_sacrifice"] {
  border-inline-start-color: var(--ui-danger);
  background: var(--ui-danger-soft);
}

#screen-game .v11-profile-item[data-status-kind="contract_final_year"],
#screen-game .v11-profile-item[data-status-kind="previous_objective_failed"] {
  border-inline-start-color: var(--ui-sun);
  background: var(--ui-sun-soft);
}

#screen-game .v11-profile-item[data-status-kind="rival_teammate"],
#screen-game .v11-profile-item[data-status-kind="captain_removed"],
#screen-game .v11-profile-item[data-status-kind="fan_unforgiven"] {
  border-inline-start-color: var(--ui-sky);
  background: var(--ui-sky-soft);
}

#screen-game .game-card[data-ui-card-kind="event"] .card-tag {
  border-color: var(--ui-line-strong);
}

#screen-game .game-card[data-ui-category="career"] {
  border-top-color: var(--ui-sky);
}

#screen-game .game-card[data-ui-category="health"] {
  border-top-color: var(--ui-danger);
}

#screen-game .game-card[data-ui-category="team"] {
  border-top-color: var(--ui-sun);
}

#screen-game .game-card[data-ui-card-kind="result"] .card-tag {
  background: var(--ui-grass-soft);
  border-color: #9bcbb1;
  color: var(--ui-grass-strong);
}

/* Retirement summary uses the same card language as events and profile panes. */

#screen-final {
  width: min(100%, 900px);
  gap: 16px;
}

#screen-final .player-card {
  width: 100%;
  max-width: 860px;
  border: 1px solid var(--ui-line-strong);
  border-top: 5px solid var(--ui-grass);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-lg);
  color: var(--ui-ink);
}

#screen-final .player-card[data-ui-tier="goat"],
#screen-final .player-card[data-ui-tier="icone"] {
  border-top-color: var(--ui-sun);
}

#screen-final .pc-tier {
  border-color: var(--ui-line-strong);
  background: var(--ui-grass-soft);
  color: var(--ui-grass-strong);
}

#screen-final .pc-section-label {
  margin-top: 22px;
  color: var(--ui-ink-muted);
  font-size: 0.72rem;
}

#screen-final .pc-section-label[data-ui-empty="true"] {
  color: var(--ui-ink-muted);
}

#screen-final :is(.pc-stats, .pc-trophies, .pc-path, .rival-compare) {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-md);
  background: var(--ui-muted);
  box-shadow: none;
}

#screen-final :is(.pc-stats, .pc-trophies) .stat-row {
  min-height: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(191, 212, 199, 0.55);
}

#screen-final :is(.pc-stats, .pc-trophies) .stat-row:last-child { border-bottom: 0; }

#screen-final .pc-story,
#screen-final .pc-untaken,
#screen-final .rival-verdict {
  padding: 14px 16px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-md);
  background: var(--ui-card);
  color: var(--ui-ink-muted);
  line-height: 1.65;
}

#screen-final .rival-verdict[hidden] { display: none; }

#screen-final :is(.pc-stats, .pc-trophies, .pc-path, .rival-compare, .pc-story, .pc-untaken).is-empty:not(:has(.v11-final-empty)) {
  display: none;
}

#screen-final .v11-final-empty {
  display: block;
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--ui-line-strong);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-ink-muted);
  background: var(--ui-muted);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

#screen-final .v11-final-club-crest {
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-inline-end: 8px;
  vertical-align: middle;
  place-items: center;
  border-radius: 7px;
  background: var(--ui-grass-soft);
  color: var(--ui-grass-strong);
  font-size: .62rem;
  font-weight: 800;
}

#screen-final .v11-final-club-crest img {
  display: block;
  width: 100%;
  height: 100%;
}

#screen-final .pc-name,
#screen-final .pc-club,
#screen-final .pc-trajectory,
#screen-final .pc-percentile,
#screen-final .pc-stats,
#screen-final .pc-trophies,
#screen-final .pc-path,
#screen-final .rival-compare,
#screen-final .pc-story,
#screen-final .pc-untaken {
  overflow-wrap: anywhere;
}

#screen-final .pc-stats,
#screen-final .pc-trophies {
  font-variant-numeric: tabular-nums;
}

#screen-final .final-actions .btn,
#screen-final #btn-replay {
  min-height: 48px;
  touch-action: manipulation;
}

#screen-final .path-step {
  border-left-color: var(--ui-line-strong);
}

#screen-final .path-step::before {
  background: var(--ui-grass);
}

#screen-final .path-age { color: var(--ui-grass-strong); }
#screen-final .path-club { color: var(--ui-ink); }
#screen-final .path-country { color: var(--ui-ink-muted); }

#screen-final .final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

#screen-final .final-actions .btn { margin: 0; }

@media (max-width: 599.98px) {
  #screen-final .player-card { padding: 22px 16px 28px; }
  #screen-final .fut-head { gap: 12px; }
  #screen-final .pc-name { font-size: 1.25rem; }
  #screen-final .final-actions { flex-direction: column; }
  #screen-final .final-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #screen-final .player-card { animation: none; }
}

/* Shared event surface contract: full-width choices and centered copy. */
#screen-game .game-layout,
#screen-game .card-stage,
#screen-game .game-card {
  width: 100%;
  max-width: 680px;
}

:scope.v11-game-active #app,
:scope.v11-game-active #screen-game,
#screen-game .game-primary,
#screen-game .game-main,
#screen-game .card-stage {
  min-height: 0;
  flex: none;
}

#screen-game .card-stage { justify-content: flex-start; }
#screen-game :is(.event-text, .result-text) { flex: none; }

@media (max-width: 1080px) {
  #app { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  #app { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
}

#screen-game .game-layout {
  position: relative;
  margin-inline: auto;
}

#screen-game .game-card {
  box-sizing: border-box;
  min-height: 0;
  height: auto;
  justify-content: center;
  overflow: visible;
}

#screen-game .game-card > *,
#screen-game .game-card :is(.card-tag, .event-text, .result-text, .opt-btn,
  .v11-feedback, .v11-retirement-echoes, .v11-effect-result, .v11-effect-explanation) {
  text-align: center;
}

#screen-game .event-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

#screen-game .event-options .opt-btn {
  width: 100%;
  min-width: 0;
  padding-inline: 15px;
  grid-column: auto;
  justify-self: stretch;
}

#screen-game .opt-btn::after,
#screen-game .opt-btn:is(:disabled, .thinking)::after {
  content: none !important;
  display: none;
}

#screen-game .v11-effect-results {
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
  margin: 0 auto 16px;
}

#screen-game .v11-effect-result {
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-muted);
  color: var(--ui-ink-muted);
  line-height: 1.45;
}

#screen-game .v11-effect-result.fx-good {
  border-color: #9bcbb1;
  background: var(--ui-grass-soft);
  color: var(--ui-grass-strong);
}

#screen-game .v11-effect-result.fx-bad {
  border-color: #e5aaa5;
  background: var(--ui-danger-soft);
  color: #98342e;
}

#screen-game .v11-effect-result.fx-money,
#screen-game .v11-effect-result.fx-trophy {
  border-color: #efd77a;
  background: var(--ui-sun-soft);
  color: #765706;
}

#screen-game .v11-effect-value {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  align-items: baseline;
  color: var(--ui-ink);
  font-variant-numeric: tabular-nums;
}

#screen-game .v11-effect-metric { font-weight: 700; }
#screen-game .v11-effect-delta { font-weight: 800; }
#screen-game .v11-effect-explanation { margin: 0; font-size: .78rem; }

#screen-game .v11-effect-explanations { display: none; }

#screen-game .gauge {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

#screen-game .gauge-value {
  min-width: 3.2em;
  color: var(--ui-ink);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: end;
}

#screen-game .age-progress-wrap {
  display: grid;
  gap: 4px;
  width: 100%;
}

#screen-game .age-progress-label {
  color: var(--ui-ink-muted);
  font-size: .64rem;
  font-weight: 700;
  text-align: center;
}

#screen-game .age-progress {
  margin-bottom: 12px;
}

.modal-icon .v11-line-icon {
  width: 24px;
  height: 24px;
  margin: auto;
}

#screen-nationality .grid-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#screen-nationality .nat-card[hidden],
#screen-nationality .dice-all[hidden] {
  display: none !important;
}

@media (min-width: 1240px) {
  #screen-game .game-layout {
    display: block;
    max-width: 680px;
  }

  #screen-game .game-layout.info-collapsed {
    max-width: 680px;
  }

  #screen-game .game-sidebar {
    position: absolute;
    inset: 0 auto auto calc(100% + 18px);
    width: clamp(260px, 21vw, 300px);
    max-height: calc(100dvh - 48px);
  }

  #screen-game .profile-toggle {
    display: inline-flex;
  }

  #screen-game .game-card {
    min-height: 0;
    padding: 24px;
  }
}

@media (max-width: 599.98px) {
  #screen-nationality .grid-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #screen-game .gauge {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr) auto;
  }
}

}

body.v11-info-open {
  overflow: hidden;
}
