@charset "UTF-8";
@import url("https://use.typekit.net/kva4hup.css");

:root {
  --bg: #07141f;
  --panel: rgba(255, 212, 120, 0.95);
  --panel-edge: rgba(255, 212, 120, 0.4);
  --text: #09131a;
  --text-soft: #243745;
  --accent: #ffd478;
  --hero-text: #d7dee2;
  --hero-muted: #9eaab1;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --content-width: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "proxima-nova", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 212, 120, 0.08), transparent 28%),
    linear-gradient(180deg, #081723 0%, #04111a 100%);
  color: var(--text);
}

.container {
  width: min(calc(100% - 32px), 1180px);
  margin: 24px auto 40px;
}

header {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 180px;
  border: 1px solid rgba(177, 179, 179, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(7, 20, 31, 0.92), rgba(15, 34, 48, 0.78));
  box-shadow: var(--shadow);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 31, 0.95) 0%, rgba(7, 20, 31, 0.65) 50%, rgba(7, 20, 31, 0.2) 100%),
    radial-gradient(circle at top right, rgba(255, 212, 120, 0.16), transparent 30%);
}

.logo {
  position: relative;
  z-index: 1;
  max-width: 14ch;
  margin: 0;
  padding: 40px 36px;
  color: var(--hero-text);
  font-family: "ff-tisa-sans-web-pro", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.gallery {
  display: block;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  background: transparent;
}

.thumbnail {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.thumbnail > a {
  display: block;
}

.cards {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  opacity: 1;
  background: rgba(9, 19, 26, 0.08);
}

.thumbnail h4 {
  margin: 18px 0 10px;
  color: var(--text);
  font-family: "ff-tisa-sans-web-pro", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.tag {
  margin: 0 0 18px;
  color: #5f4c18;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.text_column {
  width: 100%;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.82;
  text-align: left;
}

.text_column + .text_column {
  margin-top: 16px;
}

.thumbnail h3 {
  margin: 28px 0 12px;
  color: var(--text);
  font-family: "ff-tisa-sans-web-pro", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  text-align: left;
}

.thumbnail ul {
  margin: 0;
  padding-left: 22px;
  color: var(--text-soft);
  text-align: left;
}

.thumbnail li + li {
  margin-top: 10px;
}

.thumbnail em {
  font-style: italic;
}

.battle-map {
  margin: 0 0 24px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(9, 19, 26, 0.08);
}

.battle-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.battle-map-header h3 {
  margin: 0;
}

.battle-map-status {
  color: #5f4c18;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.battle-map-figure {
  margin: 0;
}

.battle-map-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #d7bc86 0%, #c8a76a 100%);
  box-shadow: inset 0 0 0 1px rgba(9, 19, 26, 0.12);
}

.battle-map-grid line {
  stroke: rgba(73, 49, 12, 0.2);
  stroke-width: 1;
}

.battle-map-grid text,
.battle-map-label,
.battle-map-terrain {
  fill: rgba(54, 38, 16, 0.82);
  font-family: "proxima-nova", "Segoe UI", sans-serif;
}

.battle-map-grid text,
.battle-map-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.battle-map-terrain {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.battle-map-boundary {
  stroke: rgba(73, 49, 12, 0.5);
  stroke-dasharray: 9 8;
  stroke-width: 2;
}

.battle-map-phase {
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.battle-map-phase.is-active {
  opacity: 1;
}

.battle-map-arrow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.battle-map-arrow-blue {
  stroke: #245fa8;
}

.battle-map-arrow-red {
  stroke: #9a2d23;
}

.battle-map-front {
  stroke: rgba(17, 24, 39, 0.6);
  stroke-width: 3;
  stroke-dasharray: 5 5;
}

.battle-map-unit {
  rx: 8;
  ry: 8;
  stroke-width: 2;
}

.battle-map-unit-blue {
  fill: rgba(36, 95, 168, 0.92);
  stroke: #102845;
}

.battle-map-unit-red {
  fill: rgba(154, 45, 35, 0.92);
  stroke: #4b1510;
}

.battle-map-unit-text {
  fill: #f8fafc;
  font-family: "ff-tisa-sans-web-pro", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.battle-map-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.battle-map-step {
  padding: 14px 16px;
  border: 1px solid rgba(73, 49, 12, 0.15);
  border-radius: 14px;
  background: rgba(255, 247, 229, 0.58);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.battle-map-step.is-active {
  border-color: rgba(36, 95, 168, 0.45);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 12px 24px rgba(9, 19, 26, 0.12);
  transform: translateY(-2px);
}

.battle-map-step-title {
  display: block;
  margin: 0 0 6px;
  color: var(--text);
  font-family: "ff-tisa-sans-web-pro", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.battle-map-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.battle-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.battle-map-button {
  min-width: 88px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #0f2230;
  color: #f8fafc;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.battle-map-button[disabled] {
  opacity: 0.4;
  cursor: default;
}

.battle-map-caption {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 20px), 1180px);
    margin-top: 10px;
  }

  .logo,
  .thumbnail {
    padding: 20px;
  }

  .logo {
    max-width: 10ch;
  }

  .cards {
    max-height: 320px;
  }

  .battle-map {
    padding: 14px;
  }

  .battle-map-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .battle-map-step-list {
    grid-template-columns: 1fr;
  }
}
