/* ============================================================
   Екран кампанії (ПК) — компактний layout без прокрутки
   ============================================================ */
@media (min-width: 1025px) {
  body.steam-edition #start-screen.screen.active {
    overflow: hidden;
    background: #12160e;
  }

  body.steam-edition #start-screen .camo-bg {
    opacity: 0.35;
    filter: saturate(0.85);
  }

  body.steam-edition #start-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 55% 45% at 12% 18%, rgba(126, 179, 60, 0.09), transparent 55%),
      radial-gradient(ellipse 45% 40% at 88% 75%, rgba(255, 216, 77, 0.06), transparent 50%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 35%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 0;
  }

  body.steam-edition .start-version-badge {
    display: none;
  }

  body.steam-edition .campaign-screen {
    position: relative;
    z-index: 1;
    width: min(100%, 1360px);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    padding: 16px 24px 14px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    overflow: hidden;
  }

  /* ---- Шапка ---- */
  body.steam-edition .campaign-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(201, 209, 153, 0.18);
    background: rgba(14, 18, 10, 0.72);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  }

  body.steam-edition .campaign-brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  body.steam-edition .campaign-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid rgba(255, 216, 77, 0.35);
    background: linear-gradient(145deg, rgba(74, 93, 42, 0.55), rgba(20, 26, 14, 0.9));
    color: #ffd84d;
    font-size: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body.steam-edition .campaign-title {
    margin: 0;
    font-family: var(--ui-font, 'Outfit', sans-serif);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #eef2dc;
    line-height: 1.15;
  }

  body.steam-edition .campaign-title em {
    font-style: normal;
    color: #c9d199;
    font-weight: 600;
  }

  body.steam-edition .campaign-subtitle {
    margin: 3px 0 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #8e9760;
    text-transform: uppercase;
  }

  body.steam-edition .campaign-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  body.steam-edition .campaign-chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(201, 209, 153, 0.28);
    background: rgba(0, 0, 0, 0.28);
    color: #e6edc1;
    font-family: var(--ui-font, 'Outfit', sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
    white-space: nowrap;
  }

  body.steam-edition .campaign-chip-btn:hover {
    border-color: rgba(255, 216, 77, 0.45);
    background: rgba(74, 93, 42, 0.35);
    transform: translateY(-1px);
  }

  body.steam-edition .campaign-chip-tutorial {
    border-color: rgba(126, 179, 60, 0.45);
    background: linear-gradient(135deg, rgba(90, 140, 52, 0.35), rgba(40, 58, 28, 0.55));
  }

  body.steam-edition .campaign-chip-support {
    color: #ffd84d;
  }

  body.steam-edition .campaign-version {
    padding: 6px 10px;
    border-radius: 999px;
    font-family: var(--ui-mono, monospace);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #1a1a0a;
    background: linear-gradient(180deg, #ffd84d, #c9a832);
    border: 1px solid rgba(255, 220, 120, 0.55);
  }

  body.steam-edition .campaign-sandbox-intro {
    display: none;
  }

  body.steam-edition.sandbox-site .campaign-sandbox-intro {
    display: block;
    grid-row: 1;
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 216, 77, 0.25);
    background: rgba(0, 0, 0, 0.35);
    font-size: 13px;
    line-height: 1.45;
    color: #c0c5a3;
    text-align: center;
  }

  /* ---- Основна зона ---- */
  body.steam-edition .campaign-main {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  body.steam-edition .campaign-tutorial-meta {
    display: none;
  }

  body.steam-edition .difficulty-section {
    margin: 0;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.steam-edition .section-label {
    margin: 0 0 10px;
    font-family: var(--ui-font, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9aa872;
    text-align: center;
  }

  body.steam-edition .section-label::before,
  body.steam-edition .section-label::after {
    content: '—';
    margin: 0 10px;
    opacity: 0.45;
  }

  body.steam-edition .difficulty-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0;
    align-items: stretch;
  }

  body.steam-edition .diff-card-inner {
    height: 100%;
    padding: 10px 10px 10px;
    border-radius: 14px;
    border: 1px solid var(--card-border, rgba(100, 118, 68, 0.4));
    background:
      radial-gradient(120% 90% at 50% -30%, var(--card-glow, rgba(126, 179, 60, 0.1)), transparent 58%),
      linear-gradient(165deg, rgba(28, 34, 20, 0.96) 0%, rgba(12, 16, 8, 0.98) 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s;
  }

  body.steam-edition .diff-card-inner::before {
    height: 2px;
    opacity: 0.9;
  }

  body.steam-edition .diff-card:hover .diff-card-inner {
    transform: translateY(-3px);
  }

  body.steam-edition .diff-card.selected .diff-card-inner {
    transform: translateY(-2px);
    border-color: #ffd84d;
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 216, 77, 0.28),
      0 0 24px rgba(255, 216, 77, 0.12);
  }

  body.steam-edition .diff-shield-badge {
    width: 46px;
    height: 52px;
    margin: 2px auto 6px;
  }

  body.steam-edition .diff-shield-mark {
    font-size: 18px;
    font-family: var(--ui-font, 'Outfit', sans-serif);
    font-weight: 800;
  }

  body.steam-edition .diff-shield-icon-svg {
    width: 22px;
    height: 22px;
  }

  body.steam-edition .diff-card-header {
    padding: 0 0 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  body.steam-edition .diff-name {
    font-family: var(--ui-font, 'Outfit', sans-serif);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-shadow: none;
  }

  body.steam-edition .diff-callsign {
    margin-top: 2px;
    font-size: 10px;
    font-style: normal;
    color: #8e9760;
    letter-spacing: 0.04em;
  }

  body.steam-edition .diff-online {
    margin-top: 4px;
    font-size: 9px;
  }

  body.steam-edition .diff-info {
    font-size: 10px;
    line-height: 1.42;
    color: #b0b89a;
  }

  body.steam-edition .diff-info li {
    margin-bottom: 3px;
    padding-left: 11px;
  }

  body.steam-edition .diff-info li::before {
    width: 4px;
    height: 4px;
    top: 0.5em;
  }

  body.steam-edition .diff-card-footer {
    margin-top: 8px;
    padding-top: 8px;
    gap: 4px;
  }

  body.steam-edition .diff-outcome {
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 9px;
    line-height: 1.35;
  }

  body.steam-edition .diff-outcome-label {
    font-size: 8px;
    margin-right: 4px;
  }

  body.steam-edition .diff-soon-badge {
    margin-top: 4px;
    padding: 2px 8px;
    font-size: 8px;
  }

  /* ---- Підвал ---- */
  body.steam-edition .campaign-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
  }

  body.steam-edition .campaign-footer-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
  }

  body.steam-edition .campaign-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
  }

  body.steam-edition .campaign-prep-actions {
    display: flex;
    gap: 8px;
    margin: 0;
    max-width: none;
    width: auto;
  }

  body.steam-edition .campaign-prep-btn {
    min-width: 0;
    flex: 0 1 auto;
    padding: 8px 14px;
    font-size: 11px;
    border-radius: 10px;
  }

  body.steam-edition .campaign-reset-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #6a7348;
    font-size: 11px;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  body.steam-edition .campaign-reset-btn:hover {
    color: #c9d199;
  }

  body.steam-edition .campaign-start-btn.start-btn {
    margin: 0;
    padding: 14px 36px;
    min-width: 240px;
    border-radius: 12px;
    border: 1px solid rgba(255, 216, 77, 0.45);
    outline: none;
    background: linear-gradient(135deg, #6a9438 0%, #3d5a22 55%, #2e4218 100%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-family: var(--ui-font, 'Outfit', sans-serif);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  }

  body.steam-edition .campaign-start-btn.start-btn .btn-corner {
    display: none;
  }

  body.steam-edition .campaign-start-btn.start-btn:not(:disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
  }

  body.steam-edition .campaign-disclaimer.footer-note {
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    color: #5a6348;
    text-align: center;
  }

  body.steam-edition .campaign-disclaimer .footer-note-sub {
    display: inline;
    margin-left: 8px;
    font-size: inherit;
    color: inherit;
    opacity: 0.85;
  }

  body.steam-edition .campaign-disclaimer .footer-note-sub::before {
    content: '· ';
  }

  body.steam-edition .start-footer-meta {
    display: none;
  }

  body.steam-edition .steam-campaign-back {
    top: 18px;
    left: max(18px, calc((100vw - 1360px) / 2 + 8px));
    z-index: 11002;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
  }

  @media (max-height: 820px) {
    body.steam-edition .campaign-screen {
      padding: 10px 18px 10px;
      gap: 10px;
    }

    body.steam-edition .campaign-header {
      padding: 8px 12px;
    }

    body.steam-edition .campaign-mark {
      width: 38px;
      height: 38px;
      font-size: 18px;
    }

    body.steam-edition .campaign-title {
      font-size: 18px;
    }

    body.steam-edition .diff-shield-badge {
      width: 40px;
      height: 46px;
      margin-bottom: 4px;
    }

    body.steam-edition .diff-name {
      font-size: 13px;
    }

    body.steam-edition .diff-info {
      font-size: 9px;
      line-height: 1.38;
    }

    body.steam-edition .diff-outcome {
      font-size: 8px;
      padding: 3px 6px;
    }

    body.steam-edition .campaign-start-btn.start-btn {
      padding: 11px 28px;
      min-width: 200px;
      font-size: 13px;
    }
  }

  @media (max-height: 700px) {
    body.steam-edition .diff-card-footer {
      display: none;
    }

    body.steam-edition .diff-info li:nth-child(n + 3) {
      display: none;
    }
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body.steam-edition .difficulty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.steam-edition .diff-card-body,
  body.steam-edition .diff-card-footer {
    display: none;
  }

  body.steam-edition .diff-shield-badge {
    width: 36px;
    height: 42px;
  }

  body.steam-edition .diff-name {
    font-size: 12px;
  }
}
