:root {
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", Tahoma, Verdana, sans-serif;
  --navy-950: #041019;
  --navy-900: #071a26;
  --navy-800: #0b2433;
  --navy-700: #12384b;
  --paper: #f3e3c3;
  --paper-light: #fbf1da;
  --paper-dark: #e4cfa5;
  --ink: #2a1a0d;
  --ink-soft: #5b4327;
  --gold: #c9a227;
  --gold-light: #e8cf86;
  --brass: #a77b3d;
  --brass-dark: #6c4c22;
  --red: #8e2f2f;
  --green: #2d6a4a;
  --cell: 24px;
  --gap: 1px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-950);
}

body {
  margin: 0;
  min-width: 1350px;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse 1100px 700px at 50% -18%, rgba(34, 84, 108, 0.55), transparent 62%),
    radial-gradient(ellipse 900px 620px at 8% 112%, rgba(19, 70, 82, 0.45), transparent 60%),
    radial-gradient(ellipse 900px 620px at 95% 105%, rgba(16, 54, 72, 0.4), transparent 58%),
    linear-gradient(180deg, #05131e 0%, #0a2231 42%, #06131d 100%);
  overflow-x: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(22deg, rgba(0, 0, 0, 0.055) 0 1px, transparent 1px 10px);
  opacity: 0.55;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sea-compass {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 1080px;
  height: 1080px;
  transform: translate(-50%, -50%);
  color: var(--gold-light);
  opacity: 0.045;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 1350px;
  margin: 0 auto;
  padding: 16px 12px 12px;
}

/* ---------- Шапка ---------- */

.masthead {
  position: relative;
  border: 1px solid rgba(201, 162, 74, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(18, 56, 75, 0.94), rgba(7, 26, 38, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 22px, transparent 22px 24px);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 80px rgba(0, 0, 0, 0.22);
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 162, 74, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px 16px;
}

.masthead__rope {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -5px;
  height: 8px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(45deg, #c9a76a 0 4px, #8a6535 4px 8px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
  opacity: 0.9;
}

.medallion {
  display: block;
  flex: none;
  width: 92px;
  height: 92px;
  padding: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8b45c, #7a5726 62%, #3b2a12);
  box-shadow:
    0 0 0 1px rgba(6, 20, 29, 0.9),
    0 10px 24px rgba(0, 0, 0, 0.55),
    inset 0 0 14px rgba(255, 235, 180, 0.28);
  text-decoration: none;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

a.medallion:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(6, 20, 29, 0.9),
    0 10px 26px rgba(0, 0, 0, 0.6),
    0 0 22px rgba(201, 162, 74, 0.28),
    inset 0 0 14px rgba(255, 235, 180, 0.35);
}

.medallion svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.titles {
  min-width: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 5px;
  color: var(--gold-light);
  font: 600 10px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.kicker span {
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 207, 134, 0.85));
}

.kicker span:last-child {
  background: linear-gradient(90deg, rgba(232, 207, 134, 0.85), transparent);
}

h1 {
  margin: 0 0 5px;
  color: var(--paper);
  font: 700 40px/1.04 var(--serif);
  letter-spacing: 0.005em;
  text-shadow:
    0 2px 0 #3a2411,
    0 10px 28px rgba(0, 0, 0, 0.5);
}

h1 em {
  color: var(--gold-light);
  font-style: normal;
}

.subtitle {
  margin: 0;
  color: #b5c7cf;
  font: 400 13.5px/1.35 var(--serif);
  letter-spacing: 0.015em;
}

.ship-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px 26px;
  align-items: end;
  margin-left: auto;
  padding-top: 2px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__label {
  color: #8ea6b2;
  font: 600 8.5px/1 var(--sans);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat strong {
  color: var(--gold-light);
  font: 700 24px/1 var(--serif);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.stat small {
  color: #93a9b4;
  font-size: 14px;
  font-weight: 400;
}

.progress {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
}

.progress > div {
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a6535, var(--gold-light));
  box-shadow: 0 0 8px rgba(232, 207, 134, 0.6);
  transition: width 0.3s ease;
}

/* ---------- Рабочая зона ---------- */

.workspace {
  display: grid;
  grid-template-columns: 270px 750px 270px;
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

/* ---------- Списки вопросов ---------- */

.clue-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 826px;
  overflow: hidden;
  border: 1px solid #b98f53;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 34%),
    radial-gradient(ellipse 140% 70% at 50% 0%, rgba(255, 250, 230, 0.55), transparent 70%),
    linear-gradient(180deg, #f7ead0 0%, #eedab4 55%, #e7cfa2 100%);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48),
    inset 0 0 50px rgba(120, 82, 34, 0.12);
}

.clue-panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 0;
  border: 1px solid rgba(90, 60, 30, 0.17);
  border-radius: 4px;
  pointer-events: none;
}

.clue-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, #b98f53 0 3px, #87622f 3px 6px);
  opacity: 0.8;
}

.clue-panel__head {
  position: relative;
  z-index: 1;
  padding: 17px 15px 11px;
  border-bottom: 1px solid rgba(90, 60, 30, 0.22);
}

.clue-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clue-panel__title h2 {
  margin: 0;
  color: #472b13;
  font: 700 18px/1.1 var(--serif);
  letter-spacing: 0.005em;
}

.icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: #8a6535;
}

.badge {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(138, 101, 53, 0.55);
  border-radius: 10px;
  color: #6b4b22;
  background: rgba(255, 250, 235, 0.45);
  font: 700 10px/1 var(--sans);
  letter-spacing: 0.05em;
}

.clue-list {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  padding: 7px 8px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #a77b3d rgba(120, 82, 34, 0.08);
}

.clue-list::-webkit-scrollbar {
  width: 8px;
}

.clue-list::-webkit-scrollbar-track {
  background: rgba(120, 82, 34, 0.08);
}

.clue-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: #a77b3d;
  background-clip: padding-box;
}

.clue-item {
  margin: 0;
}

.clue-btn {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 6px 7px;
  border: 0;
  border-radius: 4px;
  color: #3d2a17;
  background: transparent;
  font: 400 12.5px/1.33 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}

.clue-btn:hover {
  background: rgba(167, 123, 61, 0.13);
}

.clue-btn:focus-visible {
  outline: 2px solid #8a5a1e;
  outline-offset: -2px;
}

.clue-item.is-active .clue-btn {
  background: linear-gradient(90deg, #f0d489, #f7e6b6 78%, rgba(247, 230, 182, 0.35));
  box-shadow: inset 3px 0 0 #8a5a1e, 0 1px 3px rgba(120, 82, 34, 0.18);
}

.clue-num {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid #b98f53;
  border-radius: 50%;
  color: #5b3d1b;
  background: linear-gradient(180deg, #fdf3d9, #e4c990);
  font: 700 10.5px/20px var(--sans);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.clue-text {
  padding-top: 2px;
}

.clue-item.is-done .clue-num {
  border-color: #2d6a4a;
  color: #fff;
  background: linear-gradient(180deg, #79a98a, #3f7a57);
}

.clue-item.is-done .clue-text {
  color: #687d6c;
}

.clue-item.is-done .clue-text::after {
  content: " ✓";
  color: var(--green);
  font-weight: 700;
}

/* ---------- Центральная колонка ---------- */

.board-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 750px;
}

.active-clue {
  position: relative;
  display: flex;
  gap: 12px;
  min-height: 60px;
  padding: 9px 14px;
  overflow: hidden;
  border: 1px solid #b98f53;
  border-radius: 6px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 45%),
    linear-gradient(180deg, #f8ecd2, #ecd6ab);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.active-clue::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 5px;
  background: repeating-linear-gradient(45deg, #b98f53 0 3px, #87622f 3px 6px);
  opacity: 0.55;
}

.active-clue__label {
  flex: none;
  align-self: stretch;
  padding-right: 9px;
  border-right: 1px solid rgba(90, 60, 30, 0.24);
  color: #8a6535;
  font: 700 8px/1 var(--sans);
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.active-clue__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 9px;
  align-content: center;
  min-width: 0;
}

.active-clue__num {
  color: #8a4f1d;
  font: 700 23px/1 var(--serif);
  font-variant-numeric: tabular-nums;
}

.active-clue__dir {
  align-self: center;
  color: #7b603b;
  font: 700 9px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.active-clue__text {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 3px 0 0;
  color: #3a2815;
  font: 400 13.5px/1.32 var(--serif);
}

/* ---------- Сетка ---------- */

.board {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 750px;
  height: 700px;
  padding: 12px;
  border: 1px solid var(--brass);
  border-radius: 8px;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(76, 137, 156, 0.3), transparent 68%),
    linear-gradient(180deg, #123a4d 0%, #0c2a3b 52%, #08202e 100%);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(232, 207, 134, 0.12),
    inset 0 0 70px rgba(0, 0, 0, 0.28);
}

.board::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(232, 207, 134, 0.13);
  border-radius: 4px;
  pointer-events: none;
}

.board::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  background:
    radial-gradient(circle at 9px 9px, #e8cf86 0 1.8px, #6c4c22 1.8px 3.2px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 9px) 9px, #e8cf86 0 1.8px, #6c4c22 1.8px 3.2px, transparent 3.6px),
    radial-gradient(circle at 9px calc(100% - 9px), #e8cf86 0 1.8px, #6c4c22 1.8px 3.2px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #e8cf86 0 1.8px, #6c4c22 1.8px 3.2px, transparent 3.6px);
}

.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-rows: var(--cell);
  grid-template-columns: repeat(29, var(--cell));
  gap: var(--gap);
  width: max-content;
  margin: 0 auto;
}

.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cell);
  height: var(--cell);
  padding: 0;
  border: 0;
  border-radius: 1.5px;
  color: var(--ink);
  background: linear-gradient(180deg, #fcf3de 0%, #f1dfb8 100%);
  box-shadow: inset 0 0 0 1px rgba(120, 85, 45, 0.26);
  font: 700 14px/1 var(--serif);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.cell:hover {
  background: linear-gradient(180deg, #fff8e7, #f7e7c3);
}

.cell:focus {
  outline: none;
}

.cell__num {
  position: absolute;
  top: 0.5px;
  left: 1.6px;
  color: #6b4a25;
  font: 700 7.5px/1 var(--sans);
  letter-spacing: -0.04em;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cell__letter {
  position: relative;
  z-index: 1;
  transform: translateY(0.5px);
  pointer-events: none;
}

.cell.is-word {
  color: #2a1706;
  background: linear-gradient(180deg, #ffe7a4 0%, #f2c965 100%);
  box-shadow:
    inset 0 0 0 1px #c58c2c,
    inset 0 8px 12px rgba(255, 255, 255, 0.16);
}

.cell.is-word .cell__num {
  color: #7a4a10;
}

.cell.is-active {
  z-index: 2;
  color: #241304;
  background: linear-gradient(180deg, #ffd56b 0%, #e3a326 100%);
  box-shadow:
    inset 0 0 0 2px #7a450a,
    0 0 0 1px rgba(255, 228, 150, 0.9),
    0 0 18px rgba(255, 194, 62, 0.75);
}

.cell.is-revealed {
  color: #1d5a7a;
}

.cell.is-correct {
  color: var(--green);
}

.cell.is-wrong {
  color: #7e1f1f;
  background: linear-gradient(180deg, #f7d6cb 0%, #eeb2a1 100%);
  box-shadow: inset 0 0 0 1px #b45b4b, 0 0 10px rgba(180, 70, 55, 0.35);
  animation: cell-shake 0.34s ease;
}

@keyframes cell-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-1.5px); }
  40% { transform: translateX(1.5px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
}

/* ---------- Кнопки ---------- */

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

.btn {
  position: relative;
  padding: 10px 15px;
  border: 1px solid var(--brass);
  border-radius: 4px;
  color: #f0dfb9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 45%),
    linear-gradient(180deg, #27495d, #152f40);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.btn--gold {
  border-color: #e8cf86;
  color: #2a1908;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 45%),
    linear-gradient(180deg, #e0bd68, #b3872f);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(232, 190, 90, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 0 rgba(255, 245, 220, 0.35);
}

.btn--quiet {
  border-color: rgba(167, 123, 61, 0.55);
  color: #b9cbd3;
  background: linear-gradient(180deg, rgba(25, 55, 71, 0.6), rgba(10, 28, 39, 0.75));
}

/* ---------- Подвал ---------- */

.footer {
  margin: 20px 0 4px;
  color: #91a7b2;
  text-align: center;
}

.footer__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__rule {
  flex: 1;
  max-width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.45), transparent);
}

.footer p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 600 9.5px/1.4 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer__icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.footer__hint {
  justify-content: center;
  margin-top: 5px !important;
  color: #708994;
  font: 400 10.5px/1.4 var(--sans) !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
}

.footer__back {
  justify-content: center;
  margin-top: 8px !important;
}

.menu-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(201, 162, 74, 0.35);
  color: var(--gold);
  font: 600 10px/1.4 var(--sans);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.menu-link:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ---------- Меню кроссвордов ---------- */

.ship-stats--menu {
  gap: 4px 32px;
}

.stat__check {
  color: #96c8a8 !important;
  text-shadow: 0 0 14px rgba(90, 170, 120, 0.45);
}

.menu {
  margin-top: 24px;
}

.menu-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto 20px;
  color: #9db1ba;
  font: 400 13px/1.4 var(--serif);
  text-align: center;
}

.menu-lead p {
  margin: 0;
}

.menu-lead__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.45));
}

.menu-lead__rule:last-child {
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.45), transparent);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #b98f53;
  border-radius: 10px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(180deg, #f7ead0 0%, #eedab4 55%, #e6cda0 100%);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 3;
  border: 1px solid rgba(90, 60, 30, 0.17);
  border-radius: 5px;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(201, 162, 74, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.game-card:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.game-card__cover {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid #b98f53;
}

.game-card__cover--ship {
  background:
    radial-gradient(ellipse 110% 90% at 50% 0%, rgba(49, 108, 132, 0.9), transparent 68%),
    linear-gradient(180deg, #12384b 0%, #0a2433 58%, #071a26 100%);
}

.game-card__cover--parts {
  background:
    radial-gradient(ellipse 110% 90% at 50% 0%, rgba(45, 100, 112, 0.9), transparent 68%),
    linear-gradient(180deg, #113444 0%, #0a2433 58%, #071a26 100%);
}

.game-card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.game-card__number {
  position: absolute;
  top: 8px;
  left: 18px;
  z-index: 1;
  color: rgba(232, 207, 134, 0.14);
  font: 700 78px/1 var(--serif);
  letter-spacing: -0.03em;
}

.game-card__tag {
  position: absolute;
  bottom: 14px;
  left: 18px;
  z-index: 1;
  padding: 5px 10px;
  border: 1px solid rgba(232, 207, 134, 0.45);
  border-radius: 3px;
  color: var(--gold-light);
  background: rgba(7, 26, 38, 0.7);
  font: 700 9px/1 var(--sans);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.game-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 24px 22px;
}

.game-card__eyebrow {
  margin: 0 0 6px;
  color: #8a6535;
  font: 700 9px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.game-card__title {
  margin: 0 0 10px;
  color: #472b13;
  font: 700 31px/1.08 var(--serif);
}

.game-card__desc {
  flex: 1;
  margin: 0 0 16px;
  color: #4a3520;
  font: 400 14px/1.5 var(--serif);
}

.game-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.game-card__stats span {
  padding: 5px 9px;
  border: 1px solid rgba(138, 101, 53, 0.45);
  border-radius: 12px;
  color: #5b3d1b;
  background: rgba(255, 250, 235, 0.42);
  font: 600 10px/1 var(--sans);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.game-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #e8cf86;
  border-radius: 4px;
  color: #2a1908;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 45%),
    linear-gradient(180deg, #e0bd68, #b3872f);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.14s ease;
}

.game-card__cta svg {
  width: 15px;
  height: 15px;
}

.game-card:hover .game-card__cta {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 45%),
    linear-gradient(180deg, #efd483, #c39a3e);
}

.footer--menu {
  margin-top: 24px;
}

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 150;
  max-width: 560px;
  padding: 11px 18px;
  border: 1px solid var(--brass);
  border-radius: 5px;
  color: var(--paper);
  background: linear-gradient(180deg, #123347, #0a2230);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  font: 600 12px/1.4 var(--sans);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Модальные окна ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(3, 12, 18, 0.72);
  backdrop-filter: blur(3px);
}

.overlay[hidden] {
  display: none;
}

.win {
  position: relative;
  width: 430px;
  padding: 28px 30px 26px;
  border: 1px solid #b98f53;
  border-radius: 10px;
  color: #3a2815;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(255, 252, 240, 0.7), transparent 70%),
    linear-gradient(180deg, #f8ecd3, #e8cfa2);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 0 60px rgba(120, 82, 34, 0.16);
  text-align: center;
}

.win::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(90, 60, 30, 0.22);
  border-radius: 5px;
  pointer-events: none;
}

.win__seal {
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 11px;
  border: 2px solid var(--red);
  border-radius: 3px;
  color: var(--red);
  font: 700 9px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  opacity: 0.88;
}

.win__seal--red {
  border-color: #7a3a2a;
  color: #7a3a2a;
}

.win h2 {
  margin: 0 0 9px;
  color: #472b13;
  font: 700 32px/1.1 var(--serif);
}

.win p {
  margin: 0 0 20px;
  color: #5b4327;
  font: 400 14px/1.5 var(--serif);
}

.win__stats {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-bottom: 22px;
}

.win__stats div {
  color: #7b603b;
  font: 600 9px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.win__stats strong {
  display: block;
  margin-top: 5px;
  color: #472b13;
  font: 700 24px/1 var(--serif);
  letter-spacing: 0;
  text-transform: none;
}

.win--confirm {
  width: 400px;
}

.win__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.confetti[hidden] {
  display: none;
}
