/* Urban Adventure Quest — load after Bootstrap. */

/* 1. Design tokens */
:root {
  --uaq-container-max-width: 1240px;
}

/* 2. Base styles and typography */
@font-face {
  font-family: "Sunlight Dreams";
  src: url("../fonts/sunlight-dreams/sunlight-dreams.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Inter", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Sunlight Dreams", Georgia, serif;
  font-weight: 400;
}

/*
 * UAQ heading scale from the marketing site (phone / tablet / desktop).
 * :where() keeps specificity at a bare element so component headings
 * (.game-section h2, .purchase-login__heading, ...) still size themselves.
 */
:where(body.game-theme) h1 { font-size: 42px; line-height: 1.15; }
:where(body.game-theme) h2 { font-size: 32px; line-height: 1.2; }
:where(body.game-theme) h3 { font-size: 26px; line-height: 1.2; }
:where(body.game-theme) h4 { font-size: 22px; line-height: 1.2; }
:where(body.game-theme) h5 { font-size: 17px; line-height: 1.2; }
@media (width > 767px) {
  :where(body.game-theme) h1 { font-size: 48px; }
  :where(body.game-theme) h2 { font-size: 38px; }
  :where(body.game-theme) h3 { font-size: 30px; }
  :where(body.game-theme) h4 { font-size: 24px; }
  :where(body.game-theme) h5 { font-size: 18px; }
}
@media (width > 1024px) {
  :where(body.game-theme) h1 { font-size: 58px; }
  :where(body.game-theme) h2 { font-size: 44px; }
  :where(body.game-theme) h3 { font-size: 34px; }
  :where(body.game-theme) h4 { font-size: 26px; }
  :where(body.game-theme) h5 { font-size: 20px; }
}

/* 3. Shared layout: header, navigation, footer */

/* Shared simplified header. */
.simple-header { background: #fff; border-bottom: 3px solid #004c4c; }
.simple-header__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 12px 20px 24px; }
.simple-header__logo { display: block; flex-shrink: 0; width: 150px; }
.simple-header__logo img { display: block; width: 100%; height: auto; }
.simple-header__actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.simple-header__contact { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; max-width: 100%; padding: 16px 48px; border: 0; border-radius: 50px; background: #3c7f72; color: #fff; font: 700 18px/24px "Inter", sans-serif; text-decoration: none; }
.simple-header__contact:hover { background: #3c7065; color: #fff; }
.simple-header__sign-in { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; color: #000; font: 400 16px/1.5 "Inter", sans-serif; text-decoration: none; white-space: nowrap; }
.simple-header__sign-in:hover { color: #004c4c; }
.simple-header a:focus-visible { outline: 3px solid #e8bf3e; outline-offset: 4px; }
@media (width > 767px) {
  .simple-header__inner { flex-direction: row; justify-content: space-between; min-height: 138px; padding-block: 10px; }
  .simple-header__actions { flex-direction: row; gap: 32px; }
}
@media (width > 1366px) {
  .simple-header__inner { padding-inline: 0; }
}

/*
 * Elementor-style fluid container with a 1240px maximum outer width.
 * Loaded after Bootstrap, this replaces .container's stepped max-widths.
 * Includes 20px horizontal padding through laptop, zero on desktop.
 * .container-fluid and responsive container variants are unchanged.
 */
.container {
  width: 100%;
  max-width: var(--uaq-container-max-width);
  margin-inline: auto;
 /* padding-inline: 20px; */
}

@media (width > 1366px) {
  .container { padding-inline: 0; }
}

/* Shared simplified copyright and legal footer. */
.site-footer__bottom { background: #184b4b; color: #fff; font-size: 14px; line-height: 1.5; }
.site-footer__bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: 70px; padding: 20px; text-align: center; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.site-footer__legal li + li::before { content: "|"; margin-inline: 5px; }
.site-footer__bottom-inner a, .site-footer__legal a { color: #fff; text-decoration: none; }
.site-footer__bottom-inner a:hover, .site-footer__bottom-inner a:focus-visible, .site-footer__legal a:hover, .site-footer__legal a:focus-visible { color: #e8bf3e; }
.site-footer a:focus-visible { outline: 3px solid #d86729; outline-offset: 3px; }
@media (width > 767px) {
  .site-footer__bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (width > 1366px) {
  .site-footer__bottom-inner { padding-inline: 0; }
}

/* 4. Components: keep responsive rules beside each component */

/* 5. Page-specific styles */

/* Purchase landing page. Header and footer retain the approved site design. */
.purchase { padding: 56px 20px 72px; }
.purchase__title { margin: 0 0 32px; color: #000; }
.purchase__title span { color: #e8bf3e; }
.purchase__intro { margin: 0 0 32px; color: #000; font-size: 18px; line-height: 1.4; }
.purchase__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.purchase__button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 16px 24px; border: 0; border-radius: 50px; background: #3c7f72; color: #fff; font: 700 18px/24px "Inter", sans-serif; text-align: center; text-decoration: none; }
.purchase__button--voucher { background: #d86729; }
.purchase__button:disabled { cursor: not-allowed; }
.purchase__button:focus-visible { outline: 3px solid #004c4c; outline-offset: 4px; }
.purchase__note { margin: 16px 0 0; font-size: 14px; color: #555; }

@media (width > 767px) {
  .purchase { padding-block: 100px 120px; }
  .purchase__button { width: auto; padding-inline: 48px; }
}

@media (width > 1366px) {
  .purchase { padding-inline: 0; }
}

/* 6. Project utilities */

/* Standalone sign-in card */
.sign-in { display: flex; justify-content: center; padding: 48px 20px; }
.sign-in__card { width: 100%; max-width: 480px; padding: 32px; border-radius: 10px; background: #fff; box-shadow: 0 10px 50px rgb(0 0 0 / 10%); color: #333; }
.sign-in__card h1 { margin: 0 0 24px; text-align: center; color: #000; }
.sign-in__fields { display: grid; gap: 16px; padding: 0; margin: 0; border: 0; min-width: 0; }
.sign-in__fields > input { width: 100%; min-width: 0; height: 50px; padding: 8px 16px; border: 1px solid #d9d9d9; border-radius: 5px; background: #fff; color: #333; font: 400 16px/20px "Inter", sans-serif; }
.sign-in__fields > input::placeholder { color: #333; opacity: 1; }
.sign-in__remember { display: flex; align-items: baseline; gap: 5px; margin-block: 8px 0; font-size: 16px; line-height: 20px; }
.sign-in__remember input { flex-shrink: 0; }
.sign-in__submit { width: 100%; margin-top: 24px; }
.sign-in__forgot { display: inline-block; margin-top: 24px; color: #333; font-size: 16px; font-weight: 300; font-style: italic; line-height: 20px; text-decoration: none; }
.sign-in__forgot:hover { color: #333; text-decoration: underline; }
.sign-in input:focus-visible, .sign-in__forgot:focus-visible { outline: 3px solid #004c4c; outline-offset: 3px; }
@media (width > 1024px) {
  .sign-in { padding-block: 80px; }
}

/* Voucher account step reuses purchase-login layout and validation. */
.purchase-redeem .quest-form__team { margin-top: 0; }
.purchase-redeem__team-help { margin: 0 0 16px; font-size: 18px; line-height: 20px; }

/* Gift card checkout preview */
.giftcard { padding: 48px 20px; color: #000; }
.giftcard__title { margin: 0 0 32px; text-align: center; }
.giftcard__title span { color: #e8bf3e; }
.giftcard__intro { margin: 0 0 32px; font-size: 18px; line-height: 20px; text-align: center; }
.giftcard__form { width: 100%; max-width: 728px; margin-inline: auto; }
.giftcard__form section, .giftcard__type { margin: 0 0 32px; }
.giftcard h2, .giftcard__type legend { margin: 0 0 32px; font-family: "Sunlight Dreams", Georgia, serif; font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
.giftcard h2.giftcard__billing-title { font-size: 32px; margin-bottom: 24px; }
.giftcard__fields { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.giftcard__fields input, .giftcard__fields select { width: 100%; min-width: 0; height: 50px; border: 1px solid #d9d9d9; border-radius: 5px; padding: 8px 16px; background: #fff; color: #000; font: 400 16px/20px "Inter", sans-serif; }
.giftcard__fields input::placeholder { opacity: 1; color: #333; }
.giftcard__fields:disabled input { opacity: 1; cursor: not-allowed; }
.giftcard__type { border: 0; padding: 0; min-width: 0; }
.giftcard__type label, .giftcard__opt-in { display: flex; align-items: baseline; gap: 6px; font-size: 18px; line-height: 1.4; }
.giftcard__type label + label { margin-top: 8px; }
.giftcard__type input, .giftcard__opt-in input { flex-shrink: 0; }
.giftcard__expiration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.giftcard__promotion { display: flex; gap: 16px; flex-wrap: wrap; }
.giftcard__promotion input { flex: 1 1 160px; }
.giftcard__button { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; min-height: 56px; border: 0; border-radius: 50px; background: #d86729; color: #fff; font: 700 18px/24px "Inter", sans-serif; }
.giftcard__button:disabled { cursor: not-allowed; }
.giftcard__note { font-size: 14px; line-height: 1.5; margin: 12px 0; }
.giftcard__note:empty { display: none; }
.giftcard__opt-in { margin-top: 12px; }
.giftcard__summary { padding: 12px; border-radius: 10px; background: #f3f3f0; overflow-x: auto; }
.giftcard table { width: 100%; border-collapse: collapse; font-size: 16px; }
.giftcard thead { background: #f0e6c4; }
.giftcard th, .giftcard td { padding: 18px 12px; text-align: left; vertical-align: middle; }
.giftcard th[scope="row"] { font-weight: 400; }
.giftcard tbody tr { border-bottom: 1px solid #dde3e3; }
.giftcard tfoot th, .giftcard tfoot td { padding-block: 28px; }
.giftcard__quantity { display: flex; flex-wrap: wrap; gap: 4px; }
.giftcard__quantity input { width: 54px; min-height: 40px; border: 1px solid #d9d9d9; background: #fff; padding: 4px; }
.giftcard__quantity button { border: 0; border-radius: 3px; background: #3c7f72; color: #fff; padding: 8px 16px; }
.giftcard input:focus-visible, .giftcard select:focus-visible, .giftcard button:focus-visible { outline: 3px solid #004c4c; outline-offset: 3px; }
@media (width > 1024px) {
  .giftcard { padding-block: 80px; }
}
@media (width > 1366px) {
  .giftcard { padding-inline: 0; }
}
@media (width <= 767px) {
  .giftcard th, .giftcard td { padding: 12px 6px; }
  .giftcard table { font-size: 12px; }
  .giftcard__quantity button { padding: 8px; }
}

/* Purchase account page */
.purchase-login { padding: 48px 20px; color: #000; }
.purchase-login__title { margin: 0 0 32px; text-align: center; }
.purchase-login__title span, .purchase-login__heading span { color: #e8bf3e; }
.purchase-login__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0 0 32px; padding: 0; }
.purchase-login__steps li { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; border-radius: 16px; background: #f0e6c4; font-size: 16px; font-weight: 700; }
.purchase-login__steps span { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #d86729; color: #fff; }
.purchase-login__columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.purchase-login__heading { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; margin: 0 0 40px; }
.quest-form__fields { display: grid; gap: 16px; padding: 0; margin: 0; border: 0; min-width: 0; }
.quest-form input { width: 100%; min-width: 0; height: 50px; padding: 8px 16px; border: 1px solid #d9d9d9; border-radius: 5px; background: #fff; color: #000; font: 400 16px/20px "Inter", sans-serif; }
.quest-form input::placeholder { color: #333; opacity: 1; }
.quest-form__team { margin-top: 56px; }
.quest-form__actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; }
.quest-form__button { display: inline-flex; justify-content: center; align-items: center; min-height: 56px; padding: 16px 32px; border: 0; border-radius: 50px; background: #d86729; color: #fff; text-decoration: none; font: 700 18px/24px "Inter", sans-serif; }
.quest-form__button:hover { color: #fff; }
.quest-form__button--back { background: #3c7f72; }
.quest-form__button--submit { width: 100%; margin-top: 24px; }
.quest-form__status { margin: 16px 0 0; font-size: 14px; }
.quest-form__status:empty { display: none; }
.quest-form input:focus-visible, .quest-form__button:focus-visible, .purchase-login__forgot:focus-visible { outline: 3px solid #e8bf3e; outline-offset: 3px; }
.purchase-login__existing { padding: 32px; background: #3c7f72; border-radius: 10px; color: #fff; }
.purchase-login__existing h2 { margin: 0 0 32px; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; text-align: center; color: #fff; }
.purchase-login__forgot { display: block; margin-top: 24px; text-align: center; color: #fff; font-size: 16px; font-weight: 300; font-style: italic; line-height: 20px; text-decoration: none; }
.purchase-login__forgot:hover { color: #fff; text-decoration: underline; }

@media (width > 1024px) {
  .purchase-login { padding-block: 80px; }
  .purchase-login__steps { gap: 40px; }
  .purchase-login__steps li { gap: 12px; padding: 20px 29px; font-size: 24px; }
  .purchase-login__steps span { width: 49px; height: 49px; }
  .purchase-login__columns { grid-template-columns: minmax(0, 728fr) minmax(0, 480fr); }
  .purchase-login__existing { margin-top: 58px; }
}

@media (width > 1366px) {
  .purchase-login { padding-inline: 0; }
}

/*
 * Project responsive conventions (Elementor upper limits):
 * Mobile: <= 767px; tablet: > 767px to 1024px;
 * laptop: > 1024px to 1366px; desktop: > 1366px.
 * Base component rules target mobile; add larger-screen rules beside them.
 * These query templates do NOT recompile Bootstrap's col-*, d-*, navbar-expand-*
 * or other responsive classes. Those retain Bootstrap's stock breakpoints.
 * Do not use stock responsive classes to represent Elementor device ranges.
 * CSS custom properties cannot replace breakpoint values in media queries.
 */
@media (width > 767px) {
  /* Tablet and larger project styles. */
}

@media (width > 1024px) {
  /* Laptop and larger project styles. */
}

@media (width > 1366px) {
  /* Desktop project styles. */
}

/* ==========================================================================
 * UAQ game-site additions (not part of the SEO vendor's main.css above).
 * The vendor CSS is copied verbatim above this line; keep project additions
 * below so a future vendor drop can be diffed/replaced cleanly.
 * ========================================================================== */

/* Legacy-site overrides. The legacy stylesheets (site-custom.css, ancillary.css)
 * still load for pages that haven't been converted; they set a green body with
 * white text and force bold headings. Views opt into the new look by setting
 * ViewData["GameTheme"] = true, which adds .game-theme to <body>. */
body.game-theme { background: #fff; color: #000; font-family: "Inter", sans-serif; font-size: 16px; }
body.game-theme main a:not([class]) { color: #3c7f72; text-decoration: underline; }
body.game-theme h1, body.game-theme h2, body.game-theme h3,
body.game-theme h4, body.game-theme h5, body.game-theme h6 { font-family: "Sunlight Dreams", Georgia, serif; font-weight: 400 !important; color: #000; }
.simple-header a, .site-footer a { text-decoration: none; }
.simple-header__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 20px; }
.simple-header__links a { color: #000; font: 400 16px/1.5 "Inter", sans-serif; }
.simple-header__links a:hover { color: #004c4c; }

/* Shared form pieces for converted views */
.game-alert { margin: 0 0 32px; padding: 16px 20px; border-radius: 10px; background: #fbe3d6; color: #7a2e08; font-size: 16px; line-height: 1.4; }
.game-alert--success { background: #dcefe9; color: #184b4b; }
.game-fields { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.game-fields input:not([type="checkbox"]):not([type="radio"]), .game-fields select { width: 100%; min-width: 0; height: 50px; border: 1px solid #d9d9d9; border-radius: 5px; padding: 8px 16px; background: #fff; color: #000; font: 400 16px/20px "Inter", sans-serif; }
.game-fields input::placeholder { opacity: 1; color: #333; }
.game-fields input:focus-visible, .game-fields select:focus-visible { outline: 3px solid #004c4c; outline-offset: 3px; }
.game-fields__row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.game-fields__hint { margin: 0; font-size: 14px; line-height: 1.4; color: #333; }
.game-fields__label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #333; }
.game-check { display: flex; align-items: baseline; gap: 6px; font-size: 18px; line-height: 1.4; }
.game-check input { flex-shrink: 0; }
/* Vendor's `.quest-form input` sizes every input as a 50px text box; undo that for checkboxes. */
.quest-form input[type="checkbox"], .quest-form input[type="radio"] { width: auto; height: auto; padding: 0; }
.game-section { margin: 0 0 40px; }
.game-section h2 { margin: 0 0 24px; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.2; }
.game-section h2 span { color: #e8bf3e; }
.game-price { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: #3c7f72; }
.game-price:empty { display: none; }
@media (width > 767px) {
  .game-fields__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-fields__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Purchase step 1: the vendor's two-column account layout, with the left
 * column carrying the full purchase form. */
.purchase-login__columns--single { grid-template-columns: minmax(0, 1fr) !important; max-width: 728px; margin-inline: auto; }
.purchase-login__existing .quest-form__fields input { border-color: #fff; }
.purchase-login__existing .game-alert { margin-bottom: 24px; }
.purchase-login__signed-in { margin: 0 0 40px; font-size: 18px; }
.purchase-login__steps li[aria-current="step"] { background: #e8bf3e; }
.purchase-form__submit { width: 100%; margin-top: 8px; }
@media (width > 767px) {
  .purchase-form__submit { width: auto; }
}

/* Purchase step 2: review */
.purchase-review__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.purchase-review dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; font-size: 18px; line-height: 1.4; }
.purchase-review dt { font-weight: 700; }
.purchase-review dd { margin: 0; }
.purchase-review__summary { padding: 12px; border-radius: 10px; background: #f3f3f0; }
.purchase-review__summary table { width: 100%; border-collapse: collapse; font-size: 16px; }
.purchase-review__summary th, .purchase-review__summary td { padding: 14px 12px; text-align: left; }
.purchase-review__summary td:last-child { text-align: right; }
.purchase-review__summary th[scope="row"] { font-weight: 400; }
.purchase-review__summary tbody tr { border-bottom: 1px solid #dde3e3; }
.purchase-review__summary tfoot th, .purchase-review__summary tfoot td { padding-block: 22px; font-weight: 700; }
.purchase-review__discount { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.purchase-review__discount input { flex: 1 1 160px; height: 50px; border: 1px solid #d9d9d9; border-radius: 5px; padding: 8px 16px; font: 400 16px/20px "Inter", sans-serif; }
.purchase-review__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; }
@media (width > 1024px) {
  .purchase-review__grid { grid-template-columns: minmax(0, 728fr) minmax(0, 480fr); }
}

/* Simple centered message pages (thank-you, password flows) */
.game-message { padding: 48px 20px; text-align: center; }
.game-message h1 { margin: 0 0 24px; }
.game-message h1 span { color: #e8bf3e; }
.game-message p { font-size: 18px; line-height: 1.4; }
.game-message__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
@media (width > 1024px) {
  .game-message { padding-block: 80px; }
}

/* City leaderboard. Not in the vendor mockups; built from their tokens
 * (pill buttons, cream table header, #f3f3f0 summary panel). */
.leaderboard { padding: 48px 20px; color: #000; }
.leaderboard__title { margin: 0 0 16px; text-align: center; }
.leaderboard__title span { color: #e8bf3e; }
.leaderboard__ranking { margin: 0 0 24px; padding: 16px 20px; border-radius: 10px; background: #f0e6c4; font-size: 18px; text-align: center; }
.leaderboard__controls { display: flex; flex-direction: column; gap: 16px; margin: 32px 0 24px; }
.leaderboard__tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.leaderboard__tab { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border: 2px solid #3c7f72; border-radius: 50px; background: #fff; color: #3c7f72; font: 700 16px/20px "Inter", sans-serif; text-decoration: none; }
.leaderboard__tab:hover { background: #dcefe9; color: #184b4b; }
.leaderboard__tab[aria-current="page"] { background: #3c7f72; color: #fff; }
.leaderboard__search { display: flex; flex-wrap: wrap; gap: 12px; }
.leaderboard__search input { flex: 1 1 200px; height: 48px; border: 1px solid #d9d9d9; border-radius: 5px; padding: 8px 16px; font: 400 16px/20px "Inter", sans-serif; }
.leaderboard__search .quest-form__button { min-height: 48px; padding-block: 12px; }
.leaderboard__clear { align-self: center; color: #333 !important; font-size: 16px; font-style: italic; }
.leaderboard__table-title { margin: 0 0 12px; font-family: "Inter", sans-serif !important; font-size: 18px; font-weight: 700 !important; }
.leaderboard__table { padding: 12px; border-radius: 10px; background: #f3f3f0; overflow-x: auto; }
.leaderboard__table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.leaderboard__table thead { background: #f0e6c4; }
.leaderboard__table th, .leaderboard__table td { padding: 16px 12px; text-align: left; vertical-align: middle; }
.leaderboard__table tbody tr { border-bottom: 1px solid #dde3e3; }
.leaderboard__rank--top { font-weight: 700; color: #d86729; }
.leaderboard__table td img { max-height: 32px; width: auto; }
.leaderboard__empty { padding: 24px 12px; text-align: center; font-style: italic; }
.leaderboard a:focus-visible, .leaderboard input:focus-visible, .leaderboard button:focus-visible { outline: 3px solid #004c4c; outline-offset: 3px; }
@media (width > 767px) {
  .leaderboard__controls { flex-direction: row; justify-content: space-between; align-items: center; }
  .leaderboard__search { flex: 0 1 460px; }
}
@media (width > 1024px) {
  .leaderboard { padding-block: 80px; }
}
@media (width > 1366px) {
  .leaderboard, .game-message { padding-inline: 0; }
}
@media (width <= 767px) {
  .leaderboard__table th, .leaderboard__table td { padding: 12px 6px; }
  .leaderboard__table table { font-size: 14px; }
}

/* My Quests on phones: one card per quest instead of a wide table, so the
   Start/Continue button is reachable in portrait (client feedback 2026-11-15). */
@media (width <= 767px) {
  .my-quests__table { padding: 0; background: none; overflow-x: visible; }
  .my-quests__table table, .my-quests__table tbody, .my-quests__table tr, .my-quests__table td { display: block; width: 100%; }
  .my-quests__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .my-quests__table tbody tr { margin-bottom: 16px; padding: 16px; border: 0; border-radius: 10px; background: #f3f3f0; }
  .my-quests__table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 16px; }
  .my-quests__table td[data-label]::before { content: attr(data-label); font-weight: 700; }
  .my-quests__table td.my-quests__name { display: block; padding-top: 0; font-size: 18px; font-weight: 700; }
  .my-quests__table td.my-quests__action { display: block; padding-top: 12px; }
  .my-quests__table td.my-quests__action--none { display: none; }
  .my-quests__table td.my-quests__action .quest-form__button { width: 100%; }
}

/* Class-level display rules (e.g. .giftcard__fields { display: grid }) beat the UA [hidden] rule. */
[hidden] { display: none !important; }

/* Purchase landing buttons: keep white text on hover/focus, matching the other buttons
   (legacy a:hover colors were turning it dark). */
.purchase__button:hover,
.purchase__button:focus,
.purchase__button:active { color: #fff; }
