:root {
  --game-green: #2b7f68;
  --game-yellow: #f0cf3b;
  --game-red: #d9553f;
}

.game-guide-page .mark {
  border-radius: 14px;
  object-fit: cover;
}

.game-guide-page .primary-nav a {
  font-weight: 850;
}

.game-hero {
  padding-top: 54px;
}

.game-hero-content h1 {
  max-width: 980px;
  margin-inline: auto;
}

.game-command {
  padding-bottom: 30px;
}

.guide-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  min-height: auto;
  padding: clamp(18px, 3vw, 34px);
  cursor: default;
}

.guide-console:hover {
  transform: none;
}

.guide-console-copy h2 {
  max-width: 780px;
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .98;
}

.guide-console-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-actions .upload-choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}

.hero-actions .secondary {
  background: var(--sun);
}

.hero-actions .quiet {
  background: #fff;
}

.guide-preview {
  margin: 0;
  padding: 10px;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(42, 33, 27, .18);
  transform: rotate(.6deg);
}

.guide-preview img,
.media-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.guide-preview figcaption,
.media-card figcaption {
  margin-top: 8px;
  color: #6d6257;
  font-size: 14px;
}

.guide-preview figcaption {
  color: #f7eddc;
}

.dashboard-grid {
  margin-top: 18px;
}

.mini-route-card {
  min-height: 210px;
}

.mini-route-card h3 {
  margin-top: 0;
}

.mini-route-card a {
  color: var(--ink);
  text-decoration: none;
}

.guide-table-wrap {
  margin-top: 18px;
}

.guide-table th,
.guide-table td {
  vertical-align: top;
}

.guide-table td:first-child {
  font-weight: 900;
}

.guide-note {
  margin: 16px 0 0;
  padding: 16px 18px;
  color: #2a211b;
  background: #fff8e5;
  border: 2px solid var(--ink);
  border-left: 10px solid var(--game-red);
  border-radius: 18px;
}

.media-grid {
  margin-top: 18px;
}

.media-card {
  margin: 0;
  min-height: 0;
}

.legal-copy p {
  color: var(--muted);
  font-size: 18px;
}

.game-legal-hero {
  min-height: 360px;
}

@media (max-width: 980px) {
  .guide-console {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .game-guide-page {
    overflow-x: hidden;
  }

  .wrap,
  .tool-card,
  .upload,
  .info,
  .size-table-wrapper {
    max-width: calc(100vw - 20px);
  }

  .game-hero {
    padding-top: 34px;
  }

  .game-hero-content {
    width: 100%;
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }

  .tool-hero h1 {
    display: block;
    width: min(100%, 318px);
    max-width: 318px !important;
    margin-inline: auto;
    font-size: 30px !important;
    line-height: 1.12 !important;
    text-align: center;
    text-shadow: 1.5px 1.5px 0 #fff, 3px 3px 0 rgba(55,39,51,.08) !important;
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: wrap;
  }

  .tool-hero h1 span {
    display: block !important;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    transform: none !important;
    color: var(--ink) !important;
  }

  .guide-console {
    padding: 16px;
    gap: 16px;
  }

  .guide-console-copy h2 {
    max-width: 310px;
    margin-inline: auto;
    font-size: 26px;
    line-height: 1.08;
    text-align: center;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .upload-choose {
    width: 100%;
  }

  .guide-table,
  .guide-table thead,
  .guide-table tbody,
  .guide-table tr,
  .guide-table th,
  .guide-table td {
    display: block;
  }

  .guide-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .guide-table tr {
    padding: 10px 0;
    border-bottom: 2px solid rgba(55,39,51,.14);
  }

  .guide-table tr:last-child {
    border-bottom: 0;
  }

  .guide-table td {
    padding: 5px 12px;
    border-bottom: 0;
    white-space: normal !important;
  }

  .guide-table td:first-child {
    font-size: 14px;
  }
}
