@font-face {
  font-family: Bricolage;
  src: url("assets/display.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1745ed;
  --ink: #15233d;
  --muted: #596577;
  --line: #dce2ec;
  --paper: #f6f8fc;

  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Bricolage, Arial, sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p {
  line-height: 1.6;
}

:focus-visible {
  outline: 3px solid #ef831a;
  outline-offset: 3px;
}

::selection {
  color: white;
  background: var(--blue);
}

.wrap {
  width: min(1380px, calc(100% - 5rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  padding: 1rem;
  z-index: 20;
  background: white;
}

.skip-link:focus {
  top: 1rem;
}

.preview-banner {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: #10295d;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.045em;
  text-align: center;
}

.preview-banner > span {
  color: #d5def7;
  font-weight: 400;
  letter-spacing: 0;
}

.shop-header {
  background: white;
  border-bottom: 1px solid var(--line);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-block: 1.1rem;
}

.brand {
  font-family: Bricolage, Arial, sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.1;
  text-decoration: none;
  color: var(--blue);
  white-space: nowrap;
}

.brand > span {
  color: #ef831a;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  margin-inline: auto;
  padding-left: 1rem;
  border: 1px solid #c5cede;
  border-radius: 0.5rem;
  background: var(--paper);
}

.search-form:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding-block: 0.85rem;
  color: var(--ink);
}

.search-submit {
  padding: 0.85rem 1rem;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
  background: transparent;
}

.search-submit:hover {
  background: #e5ecff;
}

.cart-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.65rem 0;
  background: none;
  border: none;
  font-weight: 700;
  color: var(--ink);
}

.cart-trigger > span {
  display: grid;
  place-items: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding-inline: 0.2rem;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 0.8rem;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.header-nav a {
  padding-block: 0.9rem;
  border-bottom: 3px solid transparent;
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: 600;
}

.header-nav a[aria-current] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.header-nav :where(a:hover) {
  color: var(--blue);
}

.header-note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.catalog-intro {
  position: relative;
  overflow: hidden;
  margin-block: 1.25rem;
  min-height: 210px;
  border-radius: 0.6rem;
  background: #e6eeff;
}

.catalog-intro > div {
  width: 66%;
  padding: 1.5rem 2rem;
}

.catalog-intro h1 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

:where(.catalog-intro) .overline {
  color: var(--blue);
  margin-bottom: 0.7rem;
}

.catalog-intro :where(p:not(.overline)) {
  max-width: 31rem;
  margin-bottom: 0.4rem;
  color: #435473;
}

:where(.catalog-intro) .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.catalog-intro > img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 36%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  mask-image: linear-gradient(to right, transparent, black 16%);
}

.overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.095em;
  line-height: 1.5;
}

.game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.game-tabs button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid #c6d0e1;
  border-radius: 0.45rem;
  color: var(--ink);
  background: white;
  font-size: 0.9375rem;
  font-weight: 600;
}

.game-tabs button[aria-pressed="true"] {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.game-tabs :where(button:hover) {
  border-color: var(--blue);
}

.game-tabs span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.catalog-layout {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 2rem;
}

.filters {
  align-self: start;
}

.filters summary {
  display: none;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.3rem 0 1.7rem;
}

.filter-heading h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9375rem;
  letter-spacing: 0;
  margin: 0;
}

.text-button {
  color: var(--blue);
  background: transparent;
  border: none;
  padding: 0.3rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.text-button:hover {
  color: #0b2aa2;
}

.filter-field {
  margin-bottom: 1.5rem;
}

.filter-field > label,
.field > label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
}

select,
.field > input,
.price-input {
  min-height: 44px;
  width: 100%;
  border: 1px solid #bcc8db;
  border-radius: 0.35rem;
  background: white;
  color: var(--ink);
}

select {
  padding: 0.75rem 2rem 0.75rem 0.75rem;
}

.price-input {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 0.8rem;
}

.price-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0.7rem 0.5rem 0.7rem 0;
}

.field-hint {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  margin-block: 0.6rem;
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.9375rem;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.condition-guide {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.condition-guide h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.condition-guide p,
.condition-guide > span {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.condition-guide strong {
  color: var(--ink);
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.results-toolbar h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

#result-count {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.result-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.result-controls > select {
  width: auto;
  font-size: 0.875rem;
}

.view-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: white;
}

.view-switch button {
  min-height: 36px;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  border-radius: 0.2rem;
}

.view-switch button[aria-pressed="true"] {
  background: #e8eeff;
  color: var(--blue);
  font-weight: 700;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-filters:not(:empty) {
  margin-bottom: 1.25rem;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #b5c5eb;
  border-radius: 0.3rem;
  color: #123cac;
  background: #eaf0ff;
  font-size: 0.875rem;
}

.filter-chip > span {
  font-size: 1.1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: white;
}

.product-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.3rem;
  min-height: 238px;
  border: none;
  background: #edf0f6;
}

.product-card:nth-child(3n + 2) .product-image {
  background: #eaf1f7;
}

.product-card:nth-child(3n) .product-image {
  background: #eeedf6;
}

.product-image img {
  height: 205px;
  width: auto;
  border-radius: 0.45rem;
  box-shadow: 0 5px 12px rgb(21 35 61 / 17%);
  transition: transform 160ms;
}

.details-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.4rem 0.65rem;
  border-radius: 0.3rem;
  background: white;
  color: var(--blue);
  font-size: 0.75rem;
  opacity: 0;
}

.product-image:where(:hover) img {
  transform: translateY(-3px);
}

.product-image:hover .details-hint,
.product-image:focus-visible .details-hint {
  opacity: 1;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.product-game {
  margin-bottom: 0.4rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-info h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.product-title {
  text-align: left;
  padding: 0;
  color: var(--ink);
  font: inherit;
  border: none;
  background: none;
}

.product-title:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.product-set {
  min-height: 2.7em;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.condition-pill {
  padding: 0.3rem 0.45rem;
  border-radius: 0.2rem;
  background: #edf1f7;
  color: #455168;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.product-price > strong {
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}

.stock-label {
  font-size: 0.875rem;
  color: #32644d;
}

.low-stock {
  color: #875116;
}

.add-button,
.table-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 42px;
  width: 100%;
  padding: 0.65rem 0.8rem;
  color: var(--blue);
  border: 1px solid #b5c6f1;
  border-radius: 0.3rem;
  background: #f6f8ff;
  font-size: 0.875rem;
  font-weight: 700;
}

.table-add {
  width: 140px;
  font-size: 0.8125rem;
}

.add-button:hover,
.table-add:hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.add-button:disabled,
.table-add:disabled {
  color: #697386;
  background: #f2f3f5;
  border-color: var(--line);
  font-weight: 400;
}

.add-button > span {
  font-size: 1.15rem;
}

.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: white;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

th {
  padding: 1rem;
  color: var(--muted);
  background: #edf1f8;
  font-size: 0.8125rem;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

td small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.inventory-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ink);
}

.inventory-card img {
  width: 40px;
  height: 56px;
  object-fit: contain;
}

.inventory-card:where(:hover) strong {
  color: var(--blue);
  text-decoration: underline;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  text-align: center;
  border: 1px dashed #c4cfdf;
  border-radius: 0.5rem;
  background: white;
}

.empty-state p {
  color: var(--muted);
}

.shop-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-block: 4rem;
  padding: 2.5rem;
  background: #e5edfc;
  border-radius: 0.5rem;
}

.shop-about h2 {
  font-size: 2.2rem;
  margin-bottom: 0;
}

.shop-about p {
  margin-bottom: 0;
}

.shop-about a {
  color: var(--blue);
  display: inline-block;
  margin-top: 0.5rem;
}

.shop-about .overline {
  margin-bottom: 0.8rem;
  color: var(--blue);
}

.shop-footer,
.checkout-footer {
  background: #10295d;
  color: #d5def7;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1.2fr 1fr;
  gap: 2.5rem;
  padding-block: 2.75rem 2rem;
}

.footer-grid > * {
  min-width: 0;
}

.shop-footer :where(a),
.checkout-footer :where(a) {
  text-decoration-color: #7e97c8;
  text-underline-offset: 0.25em;
}

.shop-footer :where(a:hover),
.checkout-footer :where(a:hover) {
  color: white;
  text-decoration-color: currentcolor;
}

.shop-footer .brand {
  color: white;
  font-size: 1.8rem;
}

.footer-brand p {
  margin-block: 1rem 0.5rem;
  font-size: 1rem;
}

.footer-story {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-grid h2 {
  margin: 0 0 1rem;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}

.footer-navigation :where(a:hover) {
  text-decoration: underline;
}

.footer-visit address {
  font-style: normal;
  margin-bottom: 0.5rem;
}

.footer-visit strong {
  color: white;
  font-weight: 400;
}

.footer-visit > a {
  display: block;
  width: fit-content;
  padding-block: 0.4rem;
}

.footer-hours dl {
  margin: 0 0 0.75rem;
}

.footer-hours :where(dl) > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 0 0.75rem;
  padding-bottom: 0.4rem;
}

.footer-hours dd {
  margin: 0;
  color: white;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.footer-hours p {
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom,
.checkout-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid #3b5180;
}

.checkout-footer-content {
  padding-block: 1.75rem;
}

dialog {
  padding: 0;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

dialog::backdrop {
  background: rgb(9 23 47 / 48%);
  backdrop-filter: blur(2px);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.close-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 1.8rem;
}

.close-button:hover {
  background: #e9effc;
}

.card-dialog {
  width: min(850px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  border-radius: 0.8rem;
  overflow: auto;
}

.card-dialog > .close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: 44% 56%;
}

.detail-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem;
  background: #edf1f8;
}

.detail-image img {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  box-shadow: 0 10px 24px rgb(21 35 61 / 15%);
}

.detail-copy {
  padding: 4rem 2rem 2rem;
}

.detail-copy h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.detail-copy .overline {
  color: var(--blue);
}

.muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

.detail-price {
  font-size: 1.7rem;
}

.detail-specs {
  margin-block: 1.5rem;
}

.detail-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.detail-specs dt {
  color: var(--muted);
}

.detail-specs dd {
  margin: 0;
  text-align: right;
}

#detail-status {
  color: #32644d;
  font-size: 0.875rem;
  margin-top: 0.7rem;
}

.cart-dialog {
  width: min(480px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  margin: 0 0 0 auto;
  border-radius: 0;
  overflow: auto;
}

.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.cart-heading .overline {
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.cart-heading h2 {
  margin-bottom: 0;
}

.cart-heading :where(h2) > span {
  color: var(--muted);
  font-size: 1.1rem;
}

.cart-items {
  padding-inline: 1.5rem;
}

.cart-item,
.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.cart-item > img,
.summary-item > img {
  width: 56px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
}

.cart-item > strong,
.summary-item > strong {
  margin-left: auto;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info > strong {
  font-size: 0.9375rem;
}

.cart-item-info p,
.cart-item-info > span {
  margin-block: 0.4rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.quantity-controls > button:where(:not(.remove-item)) {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid #bbc8df;
  border-radius: 0.2rem;
  color: var(--ink);
  background: white;
}

.quantity-controls > button:where(:disabled) {
  background: #edf0f4;
  color: #8a91a0;
}

.quantity-controls > span {
  min-width: 1.3rem;
  text-align: center;
  font-size: 0.875rem;
}

.remove-item {
  margin-left: 0.2rem;
  background: none;
  border: 0;
  padding: 0.3rem;
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: underline;
}

.stock-limit {
  display: block;
  color: #875116;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.cart-undo {
  padding: 0.7rem 1.5rem;
  background: #eef3ff;
  font-size: 0.875rem;
}

.cart-bottom {
  padding: 1.5rem;
}

.shipping-note {
  padding: 0.8rem;
  border-radius: 0.3rem;
  background: #eaf1ff;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #214587;
}

.totals {
  margin: 1.5rem 0;
}

.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
}

.totals dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.totals .total-row {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 700;
}

.total-row span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 46px;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--blue);
  border-radius: 0.35rem;
  background: var(--blue);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.primary-button:hover {
  background: #1036c6;
}

.secondary-button {
  background: white;
  color: var(--blue);
  border-color: #c4d1ef;
}

.secondary-button:hover {
  background: #eaf0ff;
}

.full-width {
  width: 100%;
}

.continue-shopping {
  display: block;
  margin: 1rem auto;
}

.cart-dialog .empty-state {
  border: 0;
  padding-top: 5rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  max-width: calc(100% - 2rem);
  width: max-content;
  color: white;
  background: #12264e;
  border-radius: 0.5rem;
  box-shadow: 0 8px 30px rgb(21 35 61 / 20%);
  font-size: 0.875rem;
}

.toast button {
  flex-shrink: 0;
  padding: 0.3rem;
  color: white;
  border: none;
  background: none;
  text-decoration: underline;
  font-size: 0.875rem;
}

.toast button:where(:last-child) {
  font-size: 1.4rem;
  text-decoration: none;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.return-link {
  color: var(--blue);
  font-size: 0.9375rem;
}

.checkout-main {
  max-width: 1170px;
  padding-block: 2.5rem 4rem;
}

.checkout-title {
  margin-bottom: 2.5rem;
}

.checkout-title h1 {
  font-size: 2.8rem;
}

.checkout-title .overline {
  color: var(--blue);
}

.checkout-title > p:where(:last-child) {
  color: var(--muted);
  margin-bottom: 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1.7rem;
  margin: 0;
  list-style: none;
}

.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.checkout-steps :where(li) > span {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: #e3e9f3;
  color: #56647b;
}

.checkout-steps [aria-current="step"] {
  color: var(--blue);
  font-weight: 700;
}

.checkout-steps :where([aria-current="step"]) > span {
  color: white;
  background: var(--blue);
}

.checkout-steps :where(.step-complete) > span {
  color: white;
  background: #32644d;
}

.checkout-panel,
.order-summary {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: white;
}

.checkout-panel h2 {
  margin-bottom: 0.7rem;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.panel-heading h2,
.panel-heading h3 {
  margin-bottom: 0;
}

.panel-heading + p {
  margin-top: 1rem;
}

.field {
  margin-block: 1.25rem;
}

.field > input {
  padding: 0.8rem;
}

.field input:where(:user-invalid) {
  border-color: #a63125;
}

.field-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 0.8rem;
}

.field-row .field {
  margin-block: 0;
}

#delivery-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.shipping-options {
  margin: 2rem 0;
  padding: 0;
  border: 0;
}

.shipping-options legend {
  font-weight: 700;
  margin-bottom: 1rem;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  padding: 1rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  cursor: pointer;
}

.radio-card:has(input:checked) {
  border-color: var(--blue);
  background: #f4f7ff;
}

.radio-card > span {
  flex: 1;
}

.radio-card strong {
  font-size: 0.875rem;
}

.radio-card small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 0.3rem;
}

.order-summary {
  position: sticky;
  top: 1.5rem;
}

.order-summary h2 {
  font-size: 1.4rem;
}

.demo-payment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 1rem;
  margin-block: 2rem;
  border: 1px solid var(--blue);
  border-radius: 0.4rem;
  background: #f4f7ff;
}

.demo-payment p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.visa-label {
  padding: 0.5rem;
  color: #173a8c;
  border: 1px solid #c8d3eb;
  border-radius: 0.2rem;
  background: white;
  font-weight: 800;
  font-style: italic;
}

.selected-label {
  margin-left: auto;
  color: var(--blue);
  font-size: 0.75rem;
}

.demo-note {
  padding: 1rem;
  background: #edf2fa;
  border-radius: 0.3rem;
  color: #445269;
  font-size: 0.875rem;
  line-height: 1.6;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.review-block {
  margin-block: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.review-block p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.confirmation {
  max-width: 700px;
  margin: auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: white;
  text-align: center;
}

.confirmation-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  color: #32644d;
  background: #e3f4eb;
  font-size: 2rem;
}

.confirmation h2 {
  font-size: 2.5rem;
}

.confirmation > p {
  max-width: 32rem;
  margin-inline: auto;
  color: var(--muted);
}

.confirmation-receipt {
  text-align: left;
  padding: 1.5rem;
  margin-block: 2rem;
  background: var(--paper);
  border-radius: 0.4rem;
}

.confirmation-receipt .summary-item:last-child {
  border-bottom: 0;
}

@media (width <= 1250px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wrap {
    width: calc(100% - 3rem);
  }

  .header-main {
    gap: 1.5rem;
  }

  .catalog-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (width <= 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }

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

  .brand {
    font-size: 1.65rem;
  }

  .header-note {
    display: none;
  }

  .search-submit {
    display: none;
  }

  .header-main {
    gap: 1rem;
  }

  .results-toolbar {
    flex-wrap: wrap;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
  }

  .checkout-panel,
  .order-summary {
    padding: 1.25rem;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .field-row .field:first-child {
    grid-column: 1 / -1;
  }

  .checkout-steps {
    gap: 0.5rem;
  }
}

@media (width <= 760px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .preview-banner {
    display: block;
    font-size: 0.75rem;
  }

  .preview-banner > span {
    display: block;
    margin-top: 0.2rem;
  }

  .header-main {
    flex-wrap: wrap;
    padding-block: 1rem;
    justify-content: space-between;
    gap: 1rem;
  }

  .search-form {
    order: 3;
    flex-basis: 100%;
  }

  .search-submit {
    display: block;
  }

  .header-nav nav {
    gap: 0 1rem;
  }

  .header-nav a {
    font-size: 0.875rem;
  }

  .catalog-intro {
    margin-block: 1rem;
    min-height: 0;
  }

  .catalog-intro > div {
    width: 67%;
    padding: 1.1rem;
  }

  .catalog-intro h1 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
  }

  .catalog-intro > img {
    width: 35%;
    object-position: 48% center;
  }

  .catalog-intro :where(p:not(.overline)) {
    font-size: 0.875rem;
  }

  .game-tabs {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .game-tabs button {
    font-size: 0.8125rem;
    padding: 0.7rem;
    gap: 0.5rem;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .filters summary {
    display: list-item;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.85rem 1rem;
    border: 1px solid #c5cede;
    border-radius: 0.35rem;
    background: white;
    cursor: pointer;
  }

  .filters form {
    padding: 1.25rem;
    border: 1px solid var(--line);
    background: white;
  }

  .condition-guide {
    display: none;
  }

  .filter-heading {
    margin-top: 0;
  }

  .results-toolbar {
    align-items: center;
  }

  .result-controls {
    width: 100%;
    justify-content: space-between;
  }

  .result-controls > select {
    flex: 1;
  }

  .product-grid {
    gap: 0.75rem;
  }

  .product-image {
    min-height: 0;
    padding: 1rem 0.65rem;
  }

  .product-image img {
    height: auto;
    max-height: 230px;
    width: 100%;
    object-fit: contain;
    box-shadow: none;
    border-radius: 0.35rem;
  }

  .product-info {
    padding: 0.8rem;
  }

  .product-info h3 {
    font-size: 1.1rem;
  }

  .product-set {
    font-size: 0.75rem;
  }

  .card-meta {
    gap: 0.4rem;
  }

  .product-price {
    display: block;
  }

  .stock-label {
    display: block;
    margin-top: 0.35rem;
  }

  .add-button {
    font-size: 0.8125rem;
    padding-inline: 0.65rem;
  }

  .shop-about {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.25rem;
    margin-block: 2.5rem;
  }

  .shop-about h2 {
    font-size: 1.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 2rem;
    font-size: 0.875rem;
  }

  .footer-brand,
  .footer-navigation {
    grid-column: 1 / -1;
  }

  .footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
  }

  .footer-navigation h2 {
    margin-bottom: 0.5rem;
  }

  .footer-hours :where(dl) > div {
    padding-bottom: 0.65rem;
  }

  .footer-bottom {
    gap: 0.5rem;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-image {
    padding: 1.5rem;
  }

  .detail-image img {
    height: 240px;
    width: auto;
  }

  .detail-copy {
    padding: 1.5rem;
  }

  .toast {
    flex-wrap: wrap;
    gap: 0.7rem;
    bottom: 0.75rem;
  }

  .toast > span {
    flex-basis: 100%;
  }

  .checkout-header {
    flex-wrap: wrap;
    padding-block: 1.25rem;
  }

  .checkout-header .brand {
    font-size: 1.8rem;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .order-summary #summary-items {
    max-height: 240px;
    overflow: auto;
  }

  .checkout-main {
    padding-top: 1.75rem;
  }

  .checkout-title h1 {
    font-size: 2.3rem;
  }

  .checkout-title .overline {
    font-size: 0.75rem;
  }

  .checkout-actions > button {
    flex: 1;
    min-width: 130px;
  }

  .confirmation {
    padding: 1.5rem;
  }

  .confirmation h2 {
    font-size: 2rem;
  }

  .confirmation-receipt {
    padding: 1rem;
  }
}

@media (width <= 360px) {
  .brand {
    font-size: 1.5rem;
  }

  .game-tabs button {
    flex: 1;
    justify-content: center;
  }

  .game-tabs button:last-child {
    flex-basis: 100%;
  }

  .cart-item {
    gap: 0.5rem;
  }

  .cart-item > img {
    width: 42px;
    height: 60px;
  }

  .cart-heading,
  .cart-bottom {
    padding: 1rem;
  }

  .cart-items {
    padding-inline: 1rem;
  }

  .quantity-controls {
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-image img {
    transition: none;
  }
}

.apply-filters {
  margin-top: 1rem;
}

.story-main {
  padding-block: 3rem 4rem;
}

.story-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-hero .overline {
  color: var(--blue);
}

.story-hero p:where(:not(.overline)) {
  max-width: 34rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.story-hero img {
  border-radius: 0.75rem;
  height: auto;
}

.story-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 4rem;
}

.story-values article {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.story-values .overline {
  color: var(--blue);
  display: block;
  margin-bottom: 1rem;
}

.story-values p {
  color: var(--muted);
}

.story-values a,
.story-values button {
  font-size: 0.9375rem;
  color: var(--blue);
}

@media (width <= 760px) {
  .story-main {
    padding-block: 2rem;
  }

  .story-hero,
  .story-values {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-values {
    padding-top: 2rem;
  }
}

.catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-block: 1.5rem 1.25rem;
}

.catalog-heading h1 {
  font-size: 2rem;
  margin: 0;
}

.catalog-heading p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

.purchase-controls {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: end;
}

.product-info .purchase-controls {
  margin-top: auto;
}

.purchase-quantity {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.purchase-quantity input {
  width: 100%;
  height: 44px;
  padding: 0.5rem;
  background: white;
  color: var(--ink);
  border: 1px solid #bbc8db;
  border-radius: 0.3rem;
  font-size: 1rem;
}

.purchase-quantity input:disabled {
  color: #697386;
  background: #f2f3f5;
}

.purchase-controls .add-button,
.purchase-controls .table-add {
  min-height: 44px;
  width: 100%;
}

.purchase-compact {
  min-width: 210px;
}

@media (width <= 760px) {
  .header-nav nav {
    gap: 1.5rem;
  }

  .catalog-heading {
    display: block;
    padding-block: 1.25rem 1rem;
  }

  .catalog-heading h1 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }

  .purchase-controls {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.4rem;
  }

  .purchase-controls .add-button {
    padding-inline: 0.4rem;
    gap: 0.3rem;
    font-size: 0.8125rem;
  }

  .purchase-controls .add-button > span {
    display: none;
  }
}

.shop-header:has(.search-form[hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: max(2.5rem, calc((100% - 1380px) / 2));
}

.shop-header:has(.search-form[hidden]) > .wrap {
  width: auto;
  margin-inline: 0;
}

.shop-header:has(.search-form[hidden]) .header-nav a {
  padding-block: 1.5rem;
}

.home-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-block: 1.25rem 3rem;
}

.home-highlights article {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: white;
}

.home-highlights .overline,
.static-visit .overline {
  color: var(--blue);
}

.home-highlights h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.home-highlights p:where(:not(.overline)) {
  max-width: 34rem;
  color: var(--muted);
}

.home-highlights address,
.static-visit address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: 1.65;
}

.home-highlights .home-event-card {
  background: #edf3ff;
  border-color: #cbd7ed;
}

.visit-hours {
  font-size: 0.9375rem;
}

.visit-hours > span {
  font-size: 0.8125rem;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.home-links .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.static-story-values {
  grid-template-columns: 1fr 1fr;
}

.static-visit {
  max-width: 44rem;
  padding-bottom: 3rem;
}

@media (width <= 1250px) {
  .shop-header:has(.search-form[hidden]) {
    padding-inline: 1.5rem;
  }
}

@media (width <= 760px) {
  .shop-header:has(.search-form[hidden]) {
    display: block;
    padding-inline: 1rem;
  }

  .shop-header:has(.search-form[hidden]) .header-main {
    padding-block: 1rem 0.25rem;
  }

  .shop-header:has(.search-form[hidden]) .header-nav a {
    padding-block: 0.85rem;
  }

  .shop-header:has(.search-form[hidden]) .header-nav nav {
    gap: 1rem;
  }

  .home-highlights,
  .static-story-values {
    grid-template-columns: 1fr;
  }

  .home-highlights {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .home-highlights article {
    padding: 1.25rem;
  }
}
