* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #07171d;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #edf7f8;
  background:
    linear-gradient(180deg, #031016 0, #003f5c 230px, #07171d 230px, #07171d 100%);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

button,
select,
input {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid #48bdd0;
  border-radius: 6px;
  padding: 0 12px;
  color: #06141a;
  background: #78d8e4;
  cursor: pointer;
  font-weight: 900;
}

button:hover,
button:focus-visible {
  background: #b8edf2;
}

a {
  color: #88e7f2;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

.app-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 28px;
  color: #f4fbfb;
}

.header-copy {
  display: grid;
  gap: 8px;
}

.eyebrow {
  color: #e7c67a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.snapshot-panel {
  display: grid;
  gap: 5px;
  min-width: 210px;
  border: 1px solid rgba(136, 231, 242, 0.32);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(3, 16, 22, 0.62);
}

.snapshot-panel span,
.summary-grid span {
  color: #b9d2d7;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.snapshot-panel strong {
  font-size: 0.98rem;
}

.app-shell {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 44px;
}

.control-band,
.tab-band,
.hero-panel,
.notice-band,
.sticky-selection,
.table-wrap {
  border: 1px solid #21444f;
  border-radius: 8px;
  background: #0c222a;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.tab-band {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.tab-button {
  min-width: 150px;
  color: #d7eef1;
  border-color: #355d68;
  background: #07171d;
}

.tab-button:hover,
.tab-button:focus-visible {
  color: #06141a;
}

.tab-button.is-active,
.tab-button[aria-pressed="true"] {
  color: #06141a;
  border-color: #f2d58a;
  background: #e7c67a;
}

.tab-button:disabled {
  color: #6f878c;
  border-color: #24434b;
  background: #0b1b21;
  cursor: not-allowed;
}

.control-band {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr));
  gap: 12px;
  padding: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: #c3d9de;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #355d68;
  border-radius: 6px;
  padding: 0 11px;
  color: #edf7f8;
  background: #07171d;
}

select:focus,
input:focus {
  border-color: #78d8e4;
  outline: 3px solid rgba(120, 216, 228, 0.2);
}

.custom-control.is-hidden {
  display: none;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  overflow: hidden;
}

.bundle-art {
  min-height: 300px;
  background: #031016;
}

.bundle-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.bundle-details {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 24px;
}

.muted {
  color: #a7bdc3;
  line-height: 1.5;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.summary-grid div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  min-width: 0;
  border: 1px solid #244c58;
  border-radius: 8px;
  padding: 12px;
  background: #102d36;
}

.summary-grid span {
  color: #a7bdc3;
}

.summary-grid strong {
  align-self: end;
  min-width: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.summary-grid .verdict {
  max-width: 100%;
  border-radius: 8px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #a7bdc3;
  font-size: 0.92rem;
}

.notice-band {
  padding: 14px 16px;
  color: #dcebed;
  background: #102d36;
}

.sticky-selection {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px;
  background: rgba(7, 23, 29, 0.96);
}

.sticky-selection div {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #244c58;
  border-radius: 8px;
  padding: 10px 12px;
  background: #102d36;
}

.sticky-selection span {
  color: #a7bdc3;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sticky-selection strong {
  min-width: 0;
  font-size: 1.04rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sticky-selection .verdict {
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}

.table-wrap {
  overflow: hidden;
}

.comparison-scroll {
  overflow-x: auto;
  padding: 14px 18px 18px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #203f49;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #a7bdc3;
  font-size: 0.75rem;
  text-transform: uppercase;
}

td {
  font-size: 0.92rem;
  line-height: 1.35;
}

.game-title {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.game-title strong {
  font-size: 0.98rem;
}

.delivery {
  color: #a7bdc3;
  font-size: 0.82rem;
}

.price-cell {
  display: grid;
  gap: 4px;
}

.price-cell span {
  color: #a7bdc3;
  font-size: 0.8rem;
}

.verdict {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 900;
  white-space: nowrap;
}

.verdict.good {
  color: #063d2e;
  background: #bfe8cf;
}

.verdict.bad {
  color: #691717;
  background: #f1c1bd;
}

.verdict.neutral {
  color: #33260e;
  background: #ead6a3;
}

.store-name {
  font-weight: 900;
}

.empty-row {
  color: #a7bdc3;
}

.select-game {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 34px;
  position: relative;
}

.select-game input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: 0;
  opacity: 0;
}

.check-box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #78d8e4;
  border-radius: 5px;
  background: #07171d;
  box-shadow: inset 0 0 0 2px rgba(7, 23, 29, 0.8);
}

.check-box::after {
  content: "";
  width: 7px;
  height: 12px;
  border: solid #06141a;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.select-game input:checked + .check-box {
  border-color: #b8edf2;
  background: #78d8e4;
}

.select-game input:checked + .check-box::after {
  opacity: 1;
}

.select-game input:focus-visible + .check-box {
  outline: 3px solid rgba(120, 216, 228, 0.26);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 940px) {
  .app-header {
    align-items: start;
    flex-direction: column;
  }

  .snapshot-panel {
    width: 100%;
  }

  .control-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    background:
      linear-gradient(180deg, #031016 0, #003f5c 300px, #07171d 300px, #07171d 100%);
  }

  .app-header,
  .app-shell {
    width: min(100% - 24px, 1180px);
  }

  .app-header {
    padding-top: 26px;
  }

  .control-band,
  .sticky-selection,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .bundle-details {
    padding: 18px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
