:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17324d;
  background: #eaf7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.25), transparent 34rem),
    linear-gradient(145deg, #edfaff, #dff4f3);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(720px, 100%);
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(17, 94, 89, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(20, 83, 95, 0.16);
}

.eyebrow {
  margin: 0 0 8px;
  color: #0f766e;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  margin: 0;
  color: #0f4c5c;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
}

.lead {
  margin: 16px 0 28px;
  color: #48677c;
  font-size: 1.08rem;
  line-height: 1.6;
}

.summary-grid,
.context-list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
}

.summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.game-version {
  margin: 0 0 16px;
  color: #48677c;
  font-weight: 700;
}

.summary-grid div,
.context-list div {
  padding: 16px;
  border-radius: 16px;
  background: #f2faf9;
  border: 1px solid #d9efec;
}

dt {
  color: #638093;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #17324d;
  font-weight: 700;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

select,
input,
button {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font: inherit;
}

select {
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid #b8d8d5;
  color: #17324d;
  background: white;
}

input {
  width: 100%;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid #b8d8d5;
  color: #17324d;
  background: white;
}

button {
  border: 0;
  padding: 12px 18px;
  color: white;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.2);
}

button:hover { filter: brightness(1.05); }
button:disabled { opacity: 0.6; cursor: wait; }

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e40af;
}

.notice.error {
  background: #fff1f2;
  color: #be123c;
}

.notice.warning { background: #fff7ed; color: #9a3412; }

.installer-card { width: min(980px, 100%); }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.secondary-link, .primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  color: #0f766e;
  background: #ecfdf5;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.primary-link { color: white; background: linear-gradient(135deg, #0f766e, #0284c7); }
.installer-section { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid #d9efec; }
.step-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: #0f766e; font-weight: 900; }
.section-content h2, .result-panel h2 { margin: 4px 0 18px; color: #17324d; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-help { margin: -4px 0 0; color: #638093; font-size: .92rem; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.check-row input { width: 20px; min-height: 20px; margin: 0; }
.confirmation-panel, .result-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px; border-radius: 18px; background: #f2faf9; border: 1px solid #d9efec; }
.confirmation-panel p { margin: 6px 0 0; color: #48677c; }
.confirmation-panel button { width: auto; min-width: 190px; }
.result-panel { display: block; }

.hidden { display: none !important; }

@media (max-width: 620px) {
  .summary-grid,
  .selector-grid { grid-template-columns: 1fr; }
  .card { border-radius: 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .page-heading, .confirmation-panel { align-items: stretch; flex-direction: column; }
  .installer-section { grid-template-columns: 1fr; }
}
