:root {
  --ink: #263331;
  --muted: #66736f;
  --line: #dbe5e1;
  --mint: #b6e2d3;
  --mint-deep: #4f9d87;
  --coral: #d65a43;
  --sun: #f7d968;
  --soft: #f5faf8;
  --body-font: SiteBody, "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  --heading-font: SiteHeading, var(--body-font);
  font-family: var(--body-font);
  color: var(--ink);
  background: #ffffff;
}

* { box-sizing: border-box; }
html { background: #ffffff; }
body { margin: 0; min-width: 320px; background: #ffffff; color: var(--ink); font-family: var(--body-font); line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
h1, h2, h3 { font-family: var(--heading-font); letter-spacing: 0; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.55rem); margin: 0; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); margin: 0; }
h3 { font-size: 1.22rem; margin: 0; }
p { margin: 0 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.announcement-bar { display: block; min-height: 30px; padding: 5px 18px; background: var(--mint); color: #1c4e43; text-align: center; text-decoration: none; font-size: .83rem; font-weight: 800; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-nav-shell { width: min(1280px, calc(100% - 32px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.brand { flex: 0 0 auto; }
.brand img { width: 126px; height: 52px; object-fit: cover; object-position: center; }
.site-nav { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.site-nav a { text-decoration: none; white-space: nowrap; color: #35403d; font-size: .92rem; }
.site-nav a:hover, .text-link:hover { color: var(--coral); }
.nav-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; white-space: nowrap; }
.nav-account { color: #35403d; font-size: .9rem; text-decoration: none; }
.nav-icon { width: 30px; height: 30px; display: grid; place-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 50%; font-size: 1rem; }
.language-picker select { width: 56px; border: 0; background: transparent; color: var(--ink); font-size: .8rem; }
.region-label { color: var(--muted); font-size: .78rem; }
.nav-toggle { display: none; width: 38px; height: 38px; margin-left: auto; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.flash { width: min(1152px, calc(100% - 32px)); margin: 14px auto 0; padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.flash.success { background: #e2f4ec; color: #176249; }
.flash.error { background: #fff0ed; color: #9c3729; }
.eyebrow { margin: 0 0 8px; color: var(--mint-deep); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.section { width: min(1152px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.section-head { display: flex; align-items: end; gap: 16px; margin-bottom: 26px; }
.section-head .text-link { margin-left: auto; }
.text-link { color: var(--mint-deep); font-weight: 800; text-decoration: none; }

/* All slides share one grid cell so the section keeps its full height no
   matter which slide is showing. */
.home-feature { position: relative; display: grid; min-height: clamp(420px, 62vh, 640px); background: var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.home-slide { grid-area: 1 / 1; display: flex; align-items: flex-end; background: #fff center / cover no-repeat; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.home-slide.is-active { opacity: 1; visibility: visible; }
.home-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(102deg, rgba(14,32,27,.76) 0%, rgba(14,32,27,.5) 44%, rgba(14,32,27,.12) 78%); }
/* The side padding keeps the headline clear of the prev/next arrows. */
.home-slide-inner { position: relative; z-index: 1; width: min(1152px, calc(100% - 32px)); margin: 0 auto; padding: 46px 0 clamp(34px, 6vh, 62px); color: #fff; }
.home-feature:has([data-banner-prev]) .home-slide-inner { padding-left: 58px; padding-right: 58px; }
.home-slide-inner .eyebrow { color: var(--mint); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.home-slide-inner h1 { max-width: 17ch; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.home-slide-inner p { max-width: 52ch; margin: 14px 0 0; color: rgba(255,255,255,.94); font-size: clamp(.98rem, 1.3vw, 1.12rem); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.home-slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.home-slide-actions .button.ghost { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); color: #fff; }
/* Kept clear of the floating WhatsApp/Messenger buttons in the bottom-right. */
.home-slide-dots { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: clamp(14px, 3vh, 24px); width: min(1152px, calc(100% - 32px)); display: flex; gap: 9px; }
.home-slide-dots button { width: 11px; height: 11px; padding: 0; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; background: transparent; }
.home-slide-dots button[aria-selected="true"] { background: #fff; }
.home-slide-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(20,42,36,.35); color: #fff; cursor: pointer; }
.home-slide-arrow:hover, .home-slide-arrow:focus-visible { background: rgba(20,42,36,.62); }
.home-slide-arrow svg { width: 22px; height: 22px; }
.home-slide-arrow.prev { left: clamp(10px, 2.5vw, 28px); }
.home-slide-arrow.next { right: clamp(10px, 2.5vw, 28px); }
@media (max-width: 720px) { .home-slide-arrow { width: 36px; height: 36px; } .home-slide-arrow svg { width: 18px; height: 18px; } }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 15px; border: 1px solid #35554d; border-radius: 6px; background: #ffffff; color: #244139; font-weight: 800; text-decoration: none; }
.button.primary { border-color: #7bbdad; background: var(--mint); color: #194439; }
.button.ghost { background: #ffffff; }
.button.wide { width: 100%; }
.payment-alt { width: 100%; margin-top: 12px; border-color: #d6dbe6; background: #f5f7fc; color: #20376a; }

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #ffffff; }
.game-card > img { width: 100%; height: 218px; object-fit: cover; }
.wishlist-form { margin: 0; }
.card-wishlist { position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(38,51,49,.2); border-radius: 50%; background: rgba(255,255,255,.94); color: var(--coral); font-size: 1.35rem; line-height: 1; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.card-wishlist button { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; }
.detail-wishlist { margin: 0; }
/* One grid owns the spacing so the buttons cannot end up flush against each
   other, which read as overlapping. */
.booking-actions { display: grid; gap: 10px; margin-top: 18px; }
.booking-actions .wishlist-form { display: contents; }
.rich-text .lead { margin-bottom: 1.4rem; color: var(--muted); font-size: 1.06rem; }
.game-card-body { display: grid; gap: 12px; padding: 18px; }
.game-card-body p { margin: 0; color: var(--muted); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card-actions strong { color: var(--coral); }
.about-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 54px; align-items: center; padding: 72px max(16px, calc((100% - 1152px) / 2)); background: var(--soft); }
.about-band > img { justify-self: center; max-height: 320px; object-fit: contain; }
.rich-text { color: #3e4d48; }
.rich-text h2, .rich-text h3 { margin: 1.4rem 0 .75rem; }
.rich-text p, .rich-text li { color: #465651; }
.rich-text blockquote { margin: 1rem 0; padding: 14px 18px; border-left: 4px solid var(--mint-deep); background: #f6fbf9; }

.page-hero { padding: 80px max(16px, calc((100% - 1152px) / 2)); background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero.has-background { background-position: center; background-size: cover; color: #ffffff; text-shadow: 0 1px 12px rgba(0,0,0,.48); }
.page-hero.has-background .eyebrow, .page-hero.has-background p { color: #ffffff; }
.page-hero.compact { padding-top: 50px; padding-bottom: 50px; }
.page-hero p { max-width: 720px; margin: 14px 0 0; color: var(--muted); }
.game-detail-hero { min-height: 410px; display: flex; align-items: end; padding: 48px max(16px, calc((100% - 1152px) / 2)); background: #406359 center / cover no-repeat; color: #fff; position: relative; }
.game-detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 40, 34, .52); }
.game-detail-hero > div { position: relative; max-width: 720px; }
.game-detail-hero .eyebrow { color: #e6ffed; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.game-detail-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); gap: 32px; align-items: start; }
.about-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr); gap: 44px; align-items: center; }
.about-page-layout > img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 7px; }
.booking-panel, .form-panel { border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 24px; }
.booking-panel > img { width: 100%; max-height: 210px; margin: -4px 0 18px; object-fit: cover; border-radius: 4px; }
.booking-panel strong[data-total], .booking-panel > strong { display: block; margin-top: 14px; color: var(--coral); font-size: 1.22rem; }
.price-summary { display: grid; gap: 9px; margin: 18px 0 0; }
.meta-grid { display: grid; gap: 9px; margin: 16px 0; }
.meta-grid div { display: grid; gap: 2px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.meta-grid dt { color: var(--muted); font-size: .83rem; }
.meta-grid dd { margin: 0; font-weight: 700; }
.price-summary div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.price-summary div[hidden] { display: none; }
.price-summary dt { color: var(--muted); }
.price-summary dd { margin: 0; font-weight: 800; text-align: right; }
.form-panel { display: grid; gap: 15px; }
.form-panel label, .form-panel fieldset { display: grid; gap: 7px; color: #33423e; font-weight: 700; }
.form-panel fieldset { margin: 0; padding: 0; border: 0; }
.form-panel legend { margin-bottom: 7px; }
.form-panel input, .form-panel select, .form-panel textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd9d4; border-radius: 5px; background: #fff; color: var(--ink); }
.form-panel textarea { min-height: 110px; resize: vertical; }
.form-panel input:disabled { background: #f5f7f6; }
.amount-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.amount-options label { display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 5px; }
.amount-options input { width: auto; min-height: auto; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 0; font-weight: 800; }
.summary-total strong { color: var(--coral); font-size: 1.25rem; }
.credit-note { display: grid; gap: 6px; margin-top: 12px; }
.credit-note p, .credit-note span { margin: 0; padding: 8px 10px; border-radius: 5px; font-size: .88rem; }
.credit-note .credit-ok { display: block; background: #e2f4ec; color: #176249; }
.credit-note .credit-warn { display: block; background: #fff0ed; color: #9c3729; }
/* Selectors are qualified with .form-panel so they outrank
   `.form-panel label { display: grid }`, which would otherwise stack the radio
   above its own label text. */
.form-panel .delivery-options { display: grid; gap: 10px; }
.form-panel label.option-line { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font-weight: 400; }
.form-panel label.option-line input { width: auto; min-height: auto; margin-top: 4px; }
.form-panel label.option-line span { display: grid; gap: 2px; }
.form-panel label.option-line strong { font-weight: 700; }
.form-panel label.option-line small { color: var(--muted); }
.schedule-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 12px 4px; }
.schedule-fields[hidden] { display: none; }
.payment-panel { min-height: 270px; }
.test-payment-form { margin-top: 22px; padding: 16px; border: 1px dashed var(--mint-deep); border-radius: 6px; background: #f3fbf8; }
.test-payment-form h3 { margin-bottom: 6px; }
.test-payment-form .small { color: var(--muted); }
#payment-element { padding: 12px 0; }
.form-message { min-height: 1.4em; color: var(--coral); font-size: .9rem; }
.narrow { width: min(560px, calc(100% - 32px)); }
.balance-checker { display: grid; gap: 20px; }
.balance-result { padding: 22px; border-left: 4px solid var(--mint-deep); background: var(--soft); }
.balance-result h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
.balance-account-link { padding-top: 0; text-align: center; }

.post-list { display: grid; gap: 12px; }
.post-row { display: flex; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-row img { width: 120px; height: 80px; border-radius: 4px; object-fit: cover; }
.post-row span { display: grid; gap: 5px; }
.post-row small { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 0; }
.stat-card { padding: 20px; border-left: 4px solid var(--mint-deep); background: var(--soft); }
.stat-card span { display: block; color: var(--muted); font-size: .88rem; }
.stat-card strong { font-family: var(--heading-font); font-size: 1.55rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #4c615a; font-size: .79rem; text-transform: uppercase; letter-spacing: .04em; }
td small, .small { color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.inline-form input, .inline-form select, .inline-form button { min-height: 32px; max-width: 150px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.order-actions { min-width: 190px; }

.site-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding: 46px max(16px, calc((100% - 1152px) / 2)); background: var(--mint); color: #1d4f43; }
.footer-brand { display: grid; justify-items: start; gap: 6px; }
.footer-brand img { width: 150px; height: 56px; object-fit: cover; object-position: center; }
.footer-brand p { margin: 0; color: #35675b; }
.footer-brand a, .footer-links a, .footer-social a { text-decoration: none; }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); align-content: start; gap: 8px 22px; }
.footer-social { display: grid; align-content: start; gap: 16px; }
.footer-social > div { display: flex; flex-wrap: wrap; gap: 12px; }
.payment-methods { padding-top: 12px; border-top: 1px solid rgba(29,79,67,.2); font-size: .78rem; font-weight: 800; }
.whatsapp-fab, .messenger-fab { position: fixed; right: 18px; z-index: 25; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 7px 10px; border-radius: 6px; color: #fff; font-size: .73rem; font-weight: 900; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.16); }
.whatsapp-fab { bottom: 18px; background: #2f9b68; }
.messenger-fab { bottom: 70px; background: #3c82d7; }

@media (max-width: 1060px) {
  .site-nav { gap: 10px; }
  .site-nav a { font-size: .83rem; }
  .region-label { display: none; }
}
@media (max-width: 820px) {
  .site-nav-shell { min-height: 64px; }
  .brand img { width: 108px; height: 46px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 18px 16px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 12px 20px rgba(32,57,49,.08); }
  .site-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .nav-tools { margin-left: 0; }
  .nav-account, .region-label { display: none; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-detail-layout, .checkout-layout, .about-page-layout { grid-template-columns: 1fr; }
  .about-band, .site-footer { grid-template-columns: 1fr; gap: 26px; }
  .about-band > img { max-height: 240px; }
}
@media (max-width: 560px) {
  .site-nav-shell { width: calc(100% - 24px); gap: 10px; }
  .nav-tools { gap: 6px; }
  .nav-icon { width: 28px; height: 28px; }
  .home-feature { min-height: 460px; }
  .home-slide::before { background: linear-gradient(180deg, rgba(14,32,27,.34) 0%, rgba(14,32,27,.78) 62%); }
  .home-slide-inner { width: calc(100% - 24px); padding-bottom: 56px; }
  .home-feature:has([data-banner-prev]) .home-slide-inner { padding-left: 44px; padding-right: 44px; }
  .home-slide-actions .button { flex: 1 1 160px; }
  .game-grid { grid-template-columns: 1fr; }
  .section { width: calc(100% - 24px); padding: 46px 0; }
  .section-head { align-items: start; flex-wrap: wrap; }
  .section-head .text-link { margin-left: 0; }
  .page-hero { padding: 40px 12px; }
  .game-detail-hero { min-height: 360px; padding: 30px 12px; }
  .about-band { padding: 46px 12px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 38px 12px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .amount-options { grid-template-columns: 1fr; }
  .schedule-fields { grid-template-columns: 1fr; }
}

/* Coming soon --------------------------------------------------------------
   A game that is built but not on sale yet. The card keeps its artwork so the
   experience is still discoverable; the game page puts a panel in front of the
   content, and checkout refuses the game outright. */
.coming-soon-tag { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(20,42,36,.86); color: #fff; font-size: .74rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.booking-tag { margin: 0; color: var(--mint-deep); font-size: .8rem; font-weight: 800; }
.button.is-disabled { opacity: .62; cursor: not-allowed; pointer-events: none; }
.coming-soon-screen { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(14,32,27,.72); backdrop-filter: blur(3px); }
.coming-soon-card { width: min(520px, 100%); padding: 32px; border-radius: 10px; background: #fff; text-align: center; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
.coming-soon-card h2 { margin: 0 0 12px; }
.coming-soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.order-success-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.order-success-detail ul { margin: 0 0 12px; padding-left: 20px; }
.order-success-detail li { margin-bottom: 6px; }
.order-policy { display: block; margin-top: 6px; color: var(--muted); }
@media (max-width: 900px) { .order-success-detail { grid-template-columns: 1fr; } }

/* Several gift cards can be stacked on one order; each row is drained in turn. */
.gift-card-fields { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.form-panel .gift-card-fields legend { margin-bottom: 0; color: #33423e; font-weight: 700; }
.gift-card-fields [data-gift-card-list] { display: grid; gap: 8px; }
.form-panel label.gift-card-row { display: flex; align-items: center; gap: 8px; }
.gift-card-remove { padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); white-space: nowrap; }
.gift-card-fields .button { justify-self: start; padding: 6px 12px; min-height: 34px; font-size: .88rem; }
