/* ==========================================================================
   ARKADE LOUNGE — Digital Platform Access
   --------------------------------------------------------------------------
   A price list that has to stay readable at forty products. Denominations
   are the thing people scan for, so they carry the display face and the
   price sits directly under them.
   ========================================================================== */

.pa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block-end: var(--sp-7);
}

.pa-filter {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-sm);
  min-block-size: 2.75rem;
  padding-inline: var(--sp-5);
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.pa-filter:hover { border-color: var(--line-strong); color: var(--text); }

.pa-filter[aria-pressed='true'] {
  background: var(--accent-quiet);
  border-color: var(--purple-400);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   PLATFORMS
   -------------------------------------------------------------------------- */

.pa-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9);
}

.pa-platform__head {
  align-items: center;
  display: flex;
  gap: var(--sp-4);
  margin-block-end: var(--sp-4);
}

.pa-platform__titles { min-inline-size: 0; }

/* THE BRAND MARK, beside the name. The monochrome SVG marks arrive drawn in
   black and are inverted to white here; the tile behind them is what makes
   a white mark read on a near-black page. */
.pa-mark {
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  block-size: 4.5rem;
  display: inline-flex;
  flex: 0 0 auto;
  inline-size: 4.5rem;
  justify-content: center;
  object-fit: contain;
  /* The owner's card artwork fills the tile; a bare mark gets breathing room
     so a single glyph does not press against the border. */
  padding: 0.35rem;
}

.pa-mark--mono {
  filter: invert(1);
  padding: 0.9rem;
}

.pa-mark--initial {
  color: var(--accent-text);
  font-size: var(--fs-h4);
  line-height: 1;
}

.pa-platform__name {
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-hero);
  margin: 0;
}

.pa-platform__blurb {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: var(--sp-1) 0 0;
}

.pa-denominations {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
}

.pa-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
}

/* THE BUTTONS HAVE TO FIT THE CARD. A card is under ten rem wide and
   "PAY AT THE COUNTER" in a spaced, upper-case face is wider than that, so
   it ran out of both sides of its own border. Inside a card the label may
   wrap, the spacing is tighter, and the side padding is what the card can
   spare — nothing else about the button changes. */
.pa-card .btn {
  letter-spacing: 0.04em;
  line-height: 1.25;
  padding-inline: var(--sp-3);
  white-space: normal;
}

.pa-card__denom {
  color: var(--text);
  font-size: var(--fs-h4);
  letter-spacing: var(--tracking-hero);
}

.pa-card__detail {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  margin-block-start: -0.15rem;
}

.pa-card__price {
  color: var(--accent-text);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
}

/* HOW LONG IT TAKES. Quiet — it is a detail, not a warning. The card pushes
   it to sit just above the buttons so the wait and the button that commits
   to it are read together. */
.pa-card__when {
  font-size: var(--fs-xs);
  margin-block-end: var(--sp-1);
}

/* --------------------------------------------------------------------------
   THE TOTAL
   --------------------------------------------------------------------------
   The service charge is a separate line rather than folded into the price,
   because a customer who sees only one number at the gateway and a different
   one here has been misled, however small the difference.
   -------------------------------------------------------------------------- */

.pa-total {
  border-block-start: 1px solid var(--line-soft);
  margin-block: var(--sp-4);
  padding-block-start: var(--sp-3);
}

.pa-total__row {
  display: flex;
  gap: var(--sp-3);
  justify-content: space-between;
  padding-block: var(--sp-1);
}

.pa-total__row--sum {
  border-block-start: 1px solid var(--line-soft);
  font-size: var(--fs-h4);
  margin-block-start: var(--sp-2);
  padding-block-start: var(--sp-2);
}

.pa-total__note {
  font-size: var(--fs-xs);
  margin-block-start: var(--sp-2);
}

.pa-note {
  margin-block-start: var(--sp-7);
  max-inline-size: var(--container-text);
}

.pa-info {
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  line-height: var(--lh-body);
  margin-block-start: var(--sp-5);
}

.pa-info p { margin: 0; }

/* --------------------------------------------------------------------------
   RESERVATION DIALOG
   -------------------------------------------------------------------------- */

.pa-dialog {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--text);
  inline-size: min(94vw, 30rem);
  max-block-size: 92vh;
  padding: 0;
}

.pa-dialog::backdrop { background: rgba(19, 18, 24, 0.88); }

.pa-form,
.pa-done {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  position: relative;
}

.pa-dialog__close {
  background: var(--surface-high);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  block-size: 2.75rem;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  inline-size: 2.75rem;
  inset-block-start: var(--sp-3);
  inset-inline-end: var(--sp-3);
  line-height: 1;
  position: absolute;
}

.pa-dialog__close:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.pa-form__title {
  font-size: var(--fs-h4);
  margin: 0;
  /* Leaves room for the close button rather than running under it. */
  padding-inline-end: 3rem;
}

.pa-form__price {
  color: var(--accent-text);
  font-weight: var(--fw-bold);
  margin: 0;
}

.pa-form__notice p { margin: 0; }

.pa-done__body {
  color: var(--text-2);
  line-height: var(--lh-body);
  margin: 0;
}

.pa-done .btn { align-self: flex-start; }


/* --------------------------------------------------------------------------
   BANK DETAILS TO TRANSFER TO
   --------------------------------------------------------------------------
   Read once and typed into a banking app, usually on the same phone. So the
   account number is monospaced and set large enough to check a digit at a
   time, and each label sits directly above its value rather than beside it —
   a two-column table at 375px wraps the number mid-digit.
   -------------------------------------------------------------------------- */

.pa-bank {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  margin-block: var(--sp-4);
  padding: var(--sp-4);
}

.pa-bank__rows {
  display: grid;
  gap: var(--sp-1) var(--sp-4);
  margin: 0 0 var(--sp-3);
}

@media (min-width: 30rem) {
  .pa-bank__rows {
    grid-template-columns: auto 1fr;
  }
}

.pa-bank__label {
  color: var(--text-dim);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pa-bank__value {
  color: var(--text);
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  margin: 0 0 var(--sp-2);
  /* Selectable in one go: somebody copying an account number should not
     have to catch the boundaries by hand. */
  user-select: all;
  overflow-wrap: anywhere;
}

@media (min-width: 30rem) {
  .pa-bank__value {
    margin-block-end: 0;
  }
}

.pa-bank__note {
  color: var(--text-dim);
  font-size: var(--fs-xs);
  margin-block-start: var(--sp-2);
}
