:root {
  --bg: #f7f2e9;
  --bg-strong: #efe4d2;
  --surface: rgba(255, 250, 243, 0.92);
  --surface-strong: #fffdfa;
  --ink: #2f2419;
  --muted: #6c5842;
  --line: rgba(90, 67, 38, 0.12);
  --shadow: 0 20px 50px rgba(63, 41, 14, 0.12);
  --accent: #d96f32;
  --accent-2: #2f8f83;
  --accent-3: #f0b84b;
  --danger: #c94d4d;
  --success: #267b4a;
  --stesti-bg: linear-gradient(180deg, #e9f8ed 0%, #f8fff8 100%);
  --lakadlo-bg: linear-gradient(180deg, #ffe8f1 0%, #fff8fb 100%);
  --prusvih-bg: linear-gradient(180deg, #ffe4df 0%, #fff7f5 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 184, 75, 0.35), transparent 25%),
    radial-gradient(circle at top right, rgba(47, 143, 131, 0.18), transparent 25%),
    linear-gradient(180deg, #fbf6ee 0%, #f3eadc 100%);
  min-height: 100vh;
}

#app {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
}

.landing-shell,
.setup-shell {
  display: grid;
  gap: 22px;
}

.landing-hero {
  display: grid;
  gap: 22px;
  padding: 22px;
}

.landing-media {
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(90, 67, 38, 0.08);
  display: flex;
  justify-content: center;
}

.landing-image {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: auto;
}

.landing-copy {
  display: grid;
  gap: 16px;
}

.landing-paragraph {
  color: var(--muted);
  line-height: 1.65;
}

.landing-cta {
  max-width: 260px;
  background: linear-gradient(135deg, var(--accent), #ee9252);
  color: #fffdf9;
  box-shadow: 0 14px 24px rgba(217, 111, 50, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
  align-items: stretch;
}

.game-top-sticky {
  position: sticky;
  top: 16px;
  z-index: 12;
  margin-bottom: 22px;
}

.hero-copy,
.hero-actions,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 28px;
}

.hero-actions,
.panel {
  padding: 22px;
}

.hero-setup .hero-copy {
  background:
    linear-gradient(135deg, rgba(217, 111, 50, 0.12), rgba(240, 184, 75, 0.2)),
    var(--surface);
}

.hero-game .hero-copy {
  background:
    linear-gradient(135deg, rgba(47, 143, 131, 0.14), rgba(240, 184, 75, 0.2)),
    var(--surface);
}

.eyebrow,
.card-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 0.95;
  margin-bottom: 14px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

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

.hero-text {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.55;
}

.hero-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(90, 67, 38, 0.08);
}

.rules-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(90, 67, 38, 0.08);
}

.rules-panel h3 {
  margin-bottom: 10px;
}

.rules-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink);
  line-height: 1.5;
}

.warning-panel {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(240, 184, 75, 0.17);
  border: 1px solid rgba(240, 184, 75, 0.3);
  line-height: 1.6;
}

.setup-builder {
  padding: 24px;
}

.setup-builder-form {
  display: grid;
  gap: 20px;
}

.setup-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.setup-count-picker {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.player-setup-grid {
  display: grid;
  gap: 18px;
}

.player-setup-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(90, 67, 38, 0.08);
}

.player-setup-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

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

.setup-money-grid > div {
  display: grid;
  gap: 8px;
}

.setup-card-note {
  color: var(--muted);
  line-height: 1.5;
}

.setup-total-error {
  margin-top: -6px;
  color: var(--danger);
  font-weight: 800;
  line-height: 1.45;
}

.setup-total-error.is-ok {
  color: var(--success);
}

.setup-box-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.setup-box-help-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(90, 67, 38, 0.08);
}

.setup-box-help-card strong {
  font-size: 0.95rem;
}

.setup-box-help-card span {
  color: var(--accent);
  font-weight: 900;
}

.setup-box-help-card small {
  color: var(--muted);
  line-height: 1.45;
}

.setup-submit-row {
  display: flex;
  justify-content: flex-start;
}

.setup-info-card {
  align-self: stretch;
}

.setup-wizard-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 239, 0.96)),
    var(--surface);
}

.setup-wizard-card--player {
  box-shadow: 0 24px 48px rgba(63, 41, 14, 0.14);
}

.setup-step-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.setup-step-form input,
.setup-step-form select {
  width: 100%;
  border: 1px solid rgba(100, 76, 45, 0.16);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

.setup-progress {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.setup-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(90, 67, 38, 0.16);
}

.setup-progress-dot.active {
  width: 34px;
  background: linear-gradient(135deg, var(--accent), #ee9252);
}

.setup-submit-row--wizard {
  justify-content: space-between;
  align-items: center;
}

.solo-result {
  margin-bottom: 22px;
}

.solo-result--excellent {
  background: linear-gradient(135deg, rgba(108, 197, 116, 0.18), rgba(255, 248, 221, 0.95));
}

.solo-result--close {
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.22), rgba(255, 248, 221, 0.95));
}

.solo-result--good {
  background: linear-gradient(135deg, rgba(111, 190, 213, 0.18), rgba(255, 248, 221, 0.95));
}

.solo-result--retry {
  background: linear-gradient(135deg, rgba(242, 144, 104, 0.16), rgba(255, 248, 221, 0.95));
}

.solo-result-text {
  margin: 0 0 12px;
  color: rgba(67, 52, 38, 0.9);
  line-height: 1.6;
}

.pill,
.section-chip,
.player-badge,
.turn-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.85rem;
}

.pill,
.section-chip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(90, 67, 38, 0.08);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.dice-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 0 4px;
}

.dice-visual {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 242, 231, 0.96));
  border: 1px solid rgba(90, 67, 38, 0.14);
  box-shadow:
    0 18px 30px rgba(63, 41, 14, 0.12),
    inset 0 -6px 14px rgba(240, 184, 75, 0.14);
}

.dice-visual.is-rolling {
  animation: dice-bounce 0.16s ease-in-out infinite alternate;
}

.dice-face {
  font-size: 4.3rem;
  line-height: 1;
  color: var(--ink);
}

.dice-message {
  min-height: 1.5em;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

@keyframes dice-bounce {
  from {
    transform: translateY(-2px) rotate(-6deg) scale(0.98);
  }

  to {
    transform: translateY(3px) rotate(6deg) scale(1.03);
  }
}

.setup-panel {
  align-self: start;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form textarea,
.stack-form select,
.stack-form input,
button {
  font: inherit;
}

.stack-form textarea,
.stack-form select,
.stack-form input {
  width: 100%;
  border: 1px solid rgba(100, 76, 45, 0.16);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
}

button {
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

.action-primary,
.stack-form button {
  background: linear-gradient(135deg, var(--accent), #ee9252);
  color: #fffdf9;
  box-shadow: 0 14px 24px rgba(217, 111, 50, 0.24);
}

.action-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border: 1px solid rgba(90, 67, 38, 0.08);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.85fr);
  gap: 22px;
}

.players-overview {
  margin-top: 22px;
}

.players-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.main-column,
.side-column,
.players-stack,
.history-list,
.event-list {
  display: grid;
  gap: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(47, 36, 25, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: #fffaf3;
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 28px 80px rgba(35, 24, 12, 0.28);
  border: 1px solid rgba(90, 67, 38, 0.12);
}

.modal-player-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.modal-context {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-player-pill {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(90, 67, 38, 0.06);
}

.modal-player-pill span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.modal-player-pill strong {
  font-size: 0.98rem;
}

.modal-card--stesti {
  background: var(--stesti-bg);
}

.modal-card--lakadlo {
  background: var(--lakadlo-bg);
}

.modal-card--prusvih {
  background: var(--prusvih-bg);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.modal-actions--split > button {
  flex: 1 1 220px;
}

.choice-buy {
  background: linear-gradient(135deg, #2a9c52, #45b86a);
  color: #fffdfa;
  box-shadow: 0 14px 24px rgba(38, 123, 74, 0.28);
}

.choice-skip {
  background: linear-gradient(135deg, #d45858, #ea7878);
  color: #fffdfa;
  box-shadow: 0 14px 24px rgba(201, 77, 77, 0.28);
}

.modal-hero {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(90, 67, 38, 0.08);
}

.modal-hero--stesti {
  background: rgba(255, 255, 255, 0.62);
}

.modal-hero--lakadlo {
  background: rgba(255, 255, 255, 0.64);
}

.modal-hero--prusvih {
  background: rgba(255, 255, 255, 0.64);
}

.modal-hero-image {
  width: min(100%, 320px);
  justify-self: center;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(47, 36, 25, 0.16));
}

.modal-hero-image--tile {
  width: min(100%, 240px);
}

.modal-hero-copy h2 {
  margin-bottom: 8px;
}

.modal-hero-text {
  color: var(--muted);
  line-height: 1.55;
}

.event-card,
.history-item {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(90, 67, 38, 0.06);
  color: var(--ink);
}

.event-card--soft {
  margin-top: 14px;
}

.event-card p,
.history-item p {
  line-height: 1.5;
}

.loan-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(201, 77, 77, 0.1);
  color: #8c2f2f;
  line-height: 1.55;
  font-weight: 700;
}

.highlight-card {
  border-width: 2px;
}

.highlight-card--stesti {
  border-color: rgba(38, 123, 74, 0.26);
}

.highlight-card--lakadlo {
  border-color: rgba(217, 111, 50, 0.26);
}

.highlight-card--prusvih {
  border-color: rgba(201, 77, 77, 0.26);
}

.deck-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.deck-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 220px;
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 233, 0.92));
  color: var(--ink);
  border: 1px solid rgba(90, 67, 38, 0.08);
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(63, 41, 14, 0.08);
}

.deck-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(63, 41, 14, 0.14);
}

.deck-button-image {
  width: 100%;
  max-width: 150px;
  height: 122px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 16px rgba(47, 36, 25, 0.16));
}

.deck-button-label {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.deck-button-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.deck-stesti {
  background: linear-gradient(180deg, rgba(226, 246, 228, 0.98), rgba(251, 255, 250, 0.95));
}

.deck-lakadlo {
  background: linear-gradient(180deg, rgba(255, 231, 241, 0.98), rgba(255, 249, 251, 0.95));
}

.deck-prusvih {
  background: linear-gradient(180deg, rgba(255, 232, 228, 0.98), rgba(255, 249, 248, 0.95));
}

.deck-button.active {
  color: #fffdfa;
  border-color: rgba(47, 143, 131, 0.54);
  box-shadow: 0 18px 34px rgba(47, 143, 131, 0.28);
}

.deck-stesti.active {
  background: linear-gradient(180deg, rgba(47, 143, 131, 0.98), rgba(83, 182, 170, 0.98));
}

.deck-lakadlo.active {
  background: linear-gradient(180deg, rgba(217, 111, 50, 0.98), rgba(238, 146, 82, 0.98));
}

.deck-prusvih.active {
  background: linear-gradient(180deg, rgba(201, 77, 77, 0.98), rgba(226, 112, 112, 0.98));
}

.deck-button.active .deck-button-hint {
  color: rgba(255, 253, 250, 0.86);
}

.card-tag {
  display: inline-flex;
  align-self: start;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.card-effect {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  font-size: 1rem;
}

.card-effect.positive {
  background: rgba(38, 123, 74, 0.12);
  color: var(--success);
}

.card-effect.negative {
  background: rgba(201, 77, 77, 0.12);
  color: var(--danger);
}

.card-effect.star {
  background: rgba(240, 184, 75, 0.2);
  color: #9a6500;
}

.card-effect.neutral {
  background: rgba(90, 67, 38, 0.08);
  color: var(--ink);
}

.box-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.box-choice-grid--compact {
  margin-top: 12px;
}

.box-choice-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  min-height: 168px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(90, 67, 38, 0.08);
  box-shadow: 0 10px 18px rgba(63, 41, 14, 0.08);
}

.expense-source-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  min-height: 156px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(90, 67, 38, 0.08);
  box-shadow: 0 10px 18px rgba(63, 41, 14, 0.08);
}

.expense-source-button span {
  font-size: 0.94rem;
  font-weight: 900;
}

.expense-source-button small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.expense-options {
  margin-top: 16px;
}

.expense-lesson {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(240, 184, 75, 0.16);
  color: #8a5b00;
  line-height: 1.55;
  font-weight: 700;
}

.box-choice-button span {
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.box-choice-image {
  width: 100%;
  max-width: 104px;
  height: 90px;
  object-fit: contain;
  display: block;
}

.box-choice-domov {
  background: linear-gradient(180deg, #ecf5ff 0%, #fbfdff 100%);
}

.box-choice-rezerva {
  background: linear-gradient(180deg, #f0ecff 0%, #fcfbff 100%);
}

.box-choice-kapsa {
  background: linear-gradient(180deg, #fff2e8 0%, #fffaf7 100%);
}

.box-choice-sen {
  background: linear-gradient(180deg, #fff4d8 0%, #fffdf7 100%);
}

.goal-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.player-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(90, 67, 38, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.player-card.current {
  background:
    linear-gradient(135deg, rgba(47, 143, 131, 0.08), rgba(240, 184, 75, 0.1)),
    rgba(255, 255, 255, 0.82);
  border-color: rgba(47, 143, 131, 0.22);
}

.player-card-top,
.progress-head,
.turn-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.player-badge.good {
  background: rgba(38, 123, 74, 0.12);
  color: var(--success);
}

.player-badge.danger {
  background: rgba(201, 77, 77, 0.12);
  color: var(--danger);
}

.progress-block {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.progress-head {
  font-size: 0.92rem;
  color: var(--muted);
}

.progress-head strong {
  color: var(--ink);
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(108, 88, 66, 0.12);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
}

.progress-fill.dream {
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.stat-box {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(90, 67, 38, 0.06);
}

.stat-box span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-box strong {
  font-size: 1rem;
}

.board-panel {
  overflow: hidden;
}

.board-rows {
  display: grid;
  gap: 16px;
}

.board-row-block {
  display: grid;
  gap: 10px;
}

.board-row-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.board-tile {
  min-height: 132px;
  border-radius: 22px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(90, 67, 38, 0.08);
  background: rgba(255, 255, 255, 0.78);
  justify-content: center;
}

.board-tile span {
  font-size: 0.92rem;
  font-weight: 700;
}

.tile-image {
  width: 100%;
  height: 92px;
  object-fit: contain;
  display: block;
}

.board-tile small {
  min-height: 20px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.board-tile.focused {
  outline: 3px solid rgba(47, 143, 131, 0.45);
  transform: translateY(-2px);
}

.tile-start {
  background: linear-gradient(180deg, #e9f8de, #f8fff2);
}

.tile-skola {
  background: linear-gradient(180deg, #fff3cf, #fffaf0);
}

.tile-prace {
  background: linear-gradient(180deg, #dff3ff, #f6fbff);
}

.tile-lakadlo {
  background: linear-gradient(180deg, #ffe0cb, #fff7f1);
}

.tile-prusvih {
  background: linear-gradient(180deg, #ffd6d1, #fff6f5);
}

.tile-banka {
  background: linear-gradient(180deg, #e9e1ff, #faf8ff);
}

.tile-pondeli {
  background: linear-gradient(180deg, #d9f6f1, #f5fffd);
}

.tile-cil {
  background: linear-gradient(180deg, #ffe4a6, #fff9ea);
}

.error,
.success,
.info {
  font-weight: 800;
  line-height: 1.45;
}

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

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

.info {
  color: #2a5ca8;
}

@media (max-width: 1080px) {
  .hero,
  .dashboard-grid,
  .game-top-sticky .hero {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .side-column {
    order: -1;
  }

  .game-top-sticky {
    position: static;
  }
}

@media (max-width: 760px) {
  #app {
    padding: 16px;
  }

  .hero-copy,
  .hero-actions,
  .panel,
  .modal-card {
    padding: 18px;
    border-radius: 22px;
  }

  .board-grid,
  .box-choice-grid,
  .modal-player-summary,
  .setup-money-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .players-overview-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .player-card-top,
  .progress-head,
  .setup-topbar {
    flex-direction: column;
    align-items: start;
  }

  .modal-actions,
  .modal-actions--split {
    flex-direction: column;
  }

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

  .deck-button {
    min-height: 198px;
  }

  .deck-button-image {
    max-width: 142px;
    height: 114px;
  }

  .board-tile {
    min-height: 120px;
    padding: 8px;
  }

  .tile-image {
    height: 82px;
  }

  .dice-visual {
    width: 98px;
    height: 98px;
    border-radius: 24px;
  }

  .dice-face {
    font-size: 3.4rem;
  }
}

@media (min-width: 761px) {
  .landing-image {
    max-height: 540px;
    width: auto;
    max-width: 100%;
  }
}

@media (min-width: 980px) {
  .board-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .modal-hero {
    grid-template-columns: 280px 1fr;
    align-items: center;
  }

  .board-tile {
    min-height: 148px;
  }

  .tile-image {
    height: 108px;
  }
}

.result-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.solo-result .event-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
