/* ===================================================================
   Řachanda: Hordy z podzemí – rozhraní hry
   Tmavá kobka, jantarové akcenty, HUD nad canvasem a překryvná menu.
   =================================================================== */
:root {
  --rach-ink: #f2e9d6;
  --rach-dark: #14101a;
  --rach-panel: #1e1826;
  --rach-panel-2: #292036;
  --rach-line: rgba(242, 233, 214, 0.16);
  --rach-gold: #f0b13c;
  --rach-red: #d9503f;
  --rach-green: #6fd18a;
  --rach-blue: #6fb6e8;
  --rach-violet: #a578e0;
}

.rachanda-page {
  color: var(--rach-ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(240, 177, 60, 0.14), transparent 65%),
    linear-gradient(180deg, #191323 0%, #120e19 55%, #0d0a13 100%);
}

.rachanda-page .site-header {
  color: var(--rach-ink);
  background: rgba(24, 18, 32, 0.93);
  border-bottom-color: rgba(240, 177, 60, 0.22);
}

.rachanda-page .site-brand-mark {
  color: #1b1424;
  background: var(--rach-gold);
  box-shadow: 5px 5px 0 #7a3f2a;
}

.rachanda-page .site-brand-text span {
  color: rgba(242, 233, 214, 0.6);
}

.rachanda-page .site-nav a:hover,
.rachanda-page .site-nav a.active,
.rachanda-page .site-back-link:hover {
  background: rgba(240, 177, 60, 0.16);
}

.rachanda-page .site-footer {
  color: rgba(242, 233, 214, 0.7);
  background: #100c17;
  border-top-color: rgba(240, 177, 60, 0.18);
}

.rachanda-page .site-footer strong {
  color: var(--rach-gold);
}

.rach-main {
  width: 100%;
  padding: 0;
}

/* --------------------------------------------------------------- */
/* Herní plocha                                                     */
/* --------------------------------------------------------------- */
.rach-stage {
  position: relative;
  padding: clamp(10px, 1.6vw, 20px);
}

.rach-marquee {
  width: min(1320px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 auto 12px;
}

.rach-title-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rach-sigil {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #1b1424;
  background: linear-gradient(160deg, var(--rach-gold), #d0762c);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
}

.rach-title-lockup p {
  margin: 0 0 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rach-gold);
}

.rach-title-lockup h1 {
  margin: 0;
  font: 800 clamp(1.4rem, 3.4vw, 2.2rem)/1 Georgia, "Times New Roman", serif;
}

.rach-title-lockup h1 span {
  display: block;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(242, 233, 214, 0.68);
}

.rach-marquee-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rach-marquee-actions button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--rach-ink);
  font: 700 0.86rem/1 system-ui, sans-serif;
  background: var(--rach-panel-2);
  border: 2px solid var(--rach-line);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.rach-marquee-actions button:hover {
  background: #372b47;
  transform: translateY(-1px);
}

.rach-marquee-actions .round-tool {
  width: 40px;
  padding: 0;
  font-size: 1.05rem;
}

.rach-frame {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  overflow: hidden;
  border: 3px solid rgba(240, 177, 60, 0.35);
  border-radius: 16px;
  background: #0d0a13;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  touch-action: none;
}

#rach-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------- */
/* HUD                                                              */
/* --------------------------------------------------------------- */
.rach-hud {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  pointer-events: none;
}

.rach-hud.hidden {
  display: none;
}

.hud-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  font: 700 0.9rem/1 system-ui, sans-serif;
  background: rgba(20, 15, 27, 0.78);
  border: 2px solid var(--rach-line);
  border-radius: 999px;
  backdrop-filter: blur(3px);
}

.hud-chip span {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 233, 214, 0.6);
}

.hud-chip.is-gold strong {
  color: var(--rach-gold);
}

.hud-bars {
  flex: 1 1 240px;
  min-width: 220px;
  display: grid;
  gap: 5px;
}

.hud-bar {
  position: relative;
  height: 16px;
  overflow: hidden;
  background: rgba(20, 15, 27, 0.8);
  border: 2px solid var(--rach-line);
  border-radius: 999px;
}

.hud-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 0;
  border-radius: 999px;
  transition: width 0.12s linear;
}

.hud-bar.is-xp i {
  background: linear-gradient(90deg, #6fb6e8, #a578e0);
}

.hud-bar.is-hp i {
  background: linear-gradient(90deg, #d9503f, #f07a4a);
}

.hud-bar b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 0.66rem/1 system-ui, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hud-pause {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  color: var(--rach-ink);
  font-size: 1rem;
  background: rgba(20, 15, 27, 0.8);
  border: 2px solid var(--rach-line);
  border-radius: 10px;
  cursor: pointer;
}

.hud-boss {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(560px, 92%);
  text-align: center;
}

.hud-boss.hidden {
  display: none;
}

.hud-boss strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb3a6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hud-boss .hud-bar {
  height: 13px;
  border-color: rgba(217, 80, 63, 0.6);
}

.hud-boss .hud-bar i {
  background: linear-gradient(90deg, #ff5b46, #ffa04a);
}

.hud-dock {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dock-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.78rem;
  background: rgba(20, 15, 27, 0.82);
  border: 2px solid rgba(240, 177, 60, 0.4);
  border-radius: 8px;
}

.dock-item i {
  font-style: normal;
  font-size: 0.98rem;
  color: var(--rach-gold);
}

.dock-item b {
  color: rgba(242, 233, 214, 0.85);
}

.dock-item.is-passive {
  border-color: rgba(111, 182, 232, 0.45);
}

.dock-item.is-passive i {
  color: var(--rach-blue);
}

.rach-banner {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 22px;
  font: 800 clamp(1rem, 2.4vw, 1.5rem)/1.2 Georgia, serif;
  text-align: center;
  color: #1b1424;
  background: var(--rach-gold);
  border-radius: 12px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.rach-toast {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: 300px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(20, 15, 27, 0.94);
  border: 2px solid var(--rach-gold);
  border-radius: 10px;
}

.rach-joystick {
  position: absolute;
  width: 118px;
  height: 118px;
  margin: -59px 0 0 -59px;
  border: 3px solid rgba(242, 233, 214, 0.32);
  border-radius: 50%;
  background: rgba(20, 15, 27, 0.32);
  pointer-events: none;
}

.rach-joystick i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  background: rgba(240, 177, 60, 0.7);
  border-radius: 50%;
}

/* --------------------------------------------------------------- */
/* Překryvné obrazovky                                              */
/* --------------------------------------------------------------- */
.rach-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 24px);
  overflow-y: auto;
  background: rgba(13, 10, 19, 0.86);
  backdrop-filter: blur(3px);
}

.rach-overlay.hidden,
.hidden {
  display: none;
}

.rach-card {
  width: min(880px, 100%);
  padding: clamp(16px, 2.6vw, 28px);
  background: linear-gradient(180deg, var(--rach-panel), #171122);
  border: 3px solid rgba(240, 177, 60, 0.4);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6);
}

.rach-card.is-narrow {
  width: min(460px, 100%);
  text-align: center;
}

.rach-card .card-eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rach-gold);
}

.rach-card h2 {
  margin: 0 0 10px;
  font: 800 clamp(1.5rem, 3.4vw, 2.2rem)/1.05 Georgia, serif;
}

.rach-card p.lead {
  margin: 0 0 16px;
  color: rgba(242, 233, 214, 0.78);
  line-height: 1.5;
}

.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

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

.stage-strip {
  display: grid;
  gap: 8px;
}

.stage-chip {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  padding: 8px 12px;
  text-align: left;
  color: var(--rach-ink);
  background: var(--rach-panel-2);
  border: 2px solid var(--rach-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.stage-chip:hover:not(:disabled) {
  transform: translateX(2px);
  border-color: rgba(240, 177, 60, 0.55);
}

.stage-chip.is-active {
  border-color: var(--rach-gold);
  background: #3a2c1c;
}

.stage-chip.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.chip-index {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-weight: 800;
  color: #1b1424;
  background: var(--rach-gold);
  border-radius: 9px;
}

.stage-chip strong {
  font-size: 0.98rem;
}

.stage-chip small {
  font-size: 0.74rem;
  color: rgba(242, 233, 214, 0.62);
}

.stage-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-detail h3 {
  margin: 0;
  font: 800 1.4rem/1.1 Georgia, serif;
}

.stage-detail .detail-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rach-violet);
}

.stage-detail p {
  margin: 0;
  color: rgba(242, 233, 214, 0.78);
  line-height: 1.5;
}

.detail-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(13, 10, 19, 0.55);
  border: 2px solid var(--rach-line);
  border-radius: 10px;
}

.detail-facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 233, 214, 0.6);
}

.detail-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.hero-field {
  display: grid;
  gap: 5px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 233, 214, 0.6);
}

.hero-field input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--rach-ink);
  font: 700 1rem/1 system-ui, sans-serif;
  background: rgba(13, 10, 19, 0.7);
  border: 2px solid var(--rach-line);
  border-radius: 10px;
}

.big-button {
  width: 100%;
  min-height: 60px;
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 10px 18px;
  color: #1b1424;
  font: 800 1.12rem/1 system-ui, sans-serif;
  background: linear-gradient(160deg, var(--rach-gold), #d97f2c);
  border: none;
  border-radius: 14px;
  box-shadow: 0 6px 0 #86451c;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.big-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #86451c;
}

.big-button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #86451c;
}

.big-button small {
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.8;
}

.ghost-button {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 16px;
  color: var(--rach-ink);
  font: 700 0.94rem/1 system-ui, sans-serif;
  background: var(--rach-panel-2);
  border: 2px solid var(--rach-line);
  border-radius: 12px;
  cursor: pointer;
}

.ghost-button:hover {
  border-color: rgba(240, 177, 60, 0.5);
}

.resume-button {
  border-color: rgba(111, 209, 138, 0.5);
}

.resume-button small {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(242, 233, 214, 0.66);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed var(--rach-line);
}

.meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.8rem;
  background: rgba(13, 10, 19, 0.55);
  border: 2px solid var(--rach-line);
  border-radius: 999px;
}

.meta-strip b {
  color: var(--rach-gold);
}

/* Karty vylepšení */
.levelup-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 14px;
}

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

.upgrade-card {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 16px 12px;
  text-align: center;
  color: var(--rach-ink);
  background: linear-gradient(180deg, #2c2338, #1d1728);
  border: 2px solid rgba(240, 177, 60, 0.35);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s;
}

.upgrade-card:hover {
  transform: translateY(-4px);
  border-color: var(--rach-gold);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.7rem;
  color: #1b1424;
  background: linear-gradient(160deg, var(--rach-gold), #d0762c);
  border-radius: 14px;
}

.card-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rach-violet);
}

.upgrade-card strong {
  font: 800 1.02rem/1.2 Georgia, serif;
}

.card-text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(242, 233, 214, 0.75);
}

.card-pips {
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--rach-gold);
}

/* Výsledek běhu */
.result-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

@media (max-width: 560px) {
  .result-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.result-facts div {
  padding: 10px;
  text-align: center;
  background: rgba(13, 10, 19, 0.55);
  border: 2px solid var(--rach-line);
  border-radius: 12px;
}

.result-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 233, 214, 0.6);
}

.result-facts dd {
  margin: 4px 0 0;
  font: 800 1.3rem/1 Georgia, serif;
  color: var(--rach-gold);
}

.result-build {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.pause-mark {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  color: var(--rach-gold);
}

/* --------------------------------------------------------------- */
/* Dialogy                                                          */
/* --------------------------------------------------------------- */
.rach-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: min(86svh, 780px);
  margin: auto;
  padding: 0;
  color: var(--rach-ink);
  background: linear-gradient(180deg, var(--rach-panel), #171122);
  border: 3px solid rgba(240, 177, 60, 0.4);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.rach-dialog::backdrop {
  background: rgba(9, 7, 13, 0.76);
  backdrop-filter: blur(4px);
}

.rach-dialog > div,
.rach-dialog > form {
  padding: clamp(16px, 3vw, 26px);
}

.rach-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--rach-line);
}

.rach-dialog header span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rach-gold);
}

.rach-dialog header h2 {
  margin: 2px 0 0;
  font: 800 clamp(1.4rem, 3.4vw, 2rem)/1 Georgia, serif;
}

.rach-dialog header button {
  width: 38px;
  height: 38px;
  color: var(--rach-ink);
  font-size: 1.2rem;
  background: var(--rach-panel-2);
  border: 2px solid var(--rach-line);
  border-radius: 10px;
  cursor: pointer;
}

.rach-dialog ol,
.rach-dialog ul.plain {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.rach-dialog ol li,
.rach-dialog ul.plain li {
  margin-bottom: 8px;
}

.dialog-confirm {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  color: #1b1424;
  font: 800 1rem/1 system-ui, sans-serif;
  background: var(--rach-gold);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.forge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(13, 10, 19, 0.55);
  border: 2px solid var(--rach-line);
  border-radius: 12px;
}

.forge-head b {
  color: var(--rach-gold);
  font-size: 1.1rem;
}

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

.forge-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(13, 10, 19, 0.5);
  border: 2px solid var(--rach-line);
  border-radius: 12px;
}

.forge-row.is-maxed {
  border-color: rgba(111, 209, 138, 0.45);
}

.forge-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  color: #1b1424;
  background: linear-gradient(160deg, var(--rach-gold), #d0762c);
  border-radius: 12px;
}

.forge-copy strong {
  display: block;
  font-size: 0.98rem;
}

.forge-copy small {
  display: block;
  margin: 2px 0 4px;
  font-size: 0.8rem;
  color: rgba(242, 233, 214, 0.7);
}

.forge-pips {
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--rach-gold);
}

.forge-buy {
  min-height: 42px;
  min-width: 92px;
  padding: 0 14px;
  color: #1b1424;
  font: 800 0.92rem/1 system-ui, sans-serif;
  background: var(--rach-gold);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.forge-buy:disabled {
  color: rgba(242, 233, 214, 0.5);
  background: var(--rach-panel-2);
  border: 2px solid var(--rach-line);
  cursor: not-allowed;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.stats-grid div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(13, 10, 19, 0.5);
  border: 2px solid var(--rach-line);
  border-radius: 10px;
}

.stats-grid dt {
  font-size: 0.78rem;
  color: rgba(242, 233, 214, 0.7);
}

.stats-grid dd {
  margin: 0;
  font-weight: 800;
  color: var(--rach-gold);
}

.rach-table-wrap {
  overflow-x: auto;
}

.rach-dialog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rach-dialog th,
.rach-dialog td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--rach-line);
  white-space: nowrap;
}

.rach-dialog th {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 233, 214, 0.6);
}

.rach-dialog tr.is-win td {
  color: var(--rach-green);
}

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

.ach-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(13, 10, 19, 0.5);
  border: 2px solid var(--rach-line);
  border-radius: 12px;
  opacity: 0.62;
}

.ach-item.is-done {
  opacity: 1;
  border-color: rgba(240, 177, 60, 0.5);
}

.ach-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  color: rgba(242, 233, 214, 0.5);
  background: var(--rach-panel-2);
  border-radius: 12px;
}

.ach-item.is-done .ach-icon {
  color: #1b1424;
  background: linear-gradient(160deg, var(--rach-gold), #d0762c);
}

.ach-item strong {
  display: block;
  font-size: 0.96rem;
}

.ach-item small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: rgba(242, 233, 214, 0.7);
}

.ach-flag {
  font-size: 1.1rem;
  color: var(--rach-green);
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px dashed var(--rach-line);
  font-size: 0.8rem;
  color: rgba(242, 233, 214, 0.65);
}

.dialog-footer button {
  min-height: 40px;
  padding: 0 14px;
  color: #ffd7cf;
  font: 700 0.86rem/1 system-ui, sans-serif;
  background: rgba(217, 80, 63, 0.22);
  border: 2px solid rgba(217, 80, 63, 0.55);
  border-radius: 10px;
  cursor: pointer;
}

/* --------------------------------------------------------------- */
/* Popis hry pod plochou                                            */
/* --------------------------------------------------------------- */
.rach-info {
  width: min(1320px, 100%);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(30, 24, 38, 0.7);
  border: 2px solid var(--rach-line);
  border-radius: 18px;
}

@media (max-width: 860px) {
  .rach-info {
    grid-template-columns: 1fr;
  }
}

.rach-info .eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rach-gold);
}

.rach-info h2 {
  margin: 0 0 10px;
  font: 800 clamp(1.4rem, 3vw, 2rem)/1.15 Georgia, serif;
}

.rach-info p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: rgba(242, 233, 214, 0.82);
}

.rach-info ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
  color: rgba(242, 233, 214, 0.82);
}

.rach-info dl {
  display: grid;
  gap: 8px;
  align-content: start;
  margin: 0;
}

.rach-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(13, 10, 19, 0.5);
  border: 2px solid var(--rach-line);
  border-radius: 10px;
}

.rach-info dt {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 233, 214, 0.6);
}

.rach-info dd {
  margin: 0;
  font-weight: 700;
}

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

@media (prefers-reduced-motion: reduce) {
  .upgrade-card,
  .big-button,
  .stage-chip {
    transition: none;
  }
}
