@font-face {
  font-family: "U2 Noto Sans TC";
  src: url("../fonts/noto-sans-tc.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "U2 Noto Serif TC";
  src: url("../fonts/noto-serif-tc.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "U2 Cinzel";
  src: url("../fonts/cinzel.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --wine: #781b29;
  --red: #a21e2c;
  --black: #101012;
  --panel: #1b191c;
  --white: #fff5e6;
  --muted: #d3c6c8;
  --gold: #dfc394;
  --sans: "U2 Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "U2 Noto Serif TC", "Songti TC", "PMingLiU", "Noto Serif CJK TC", serif;
  --latin: "U2 Cinzel", Georgia, serif;
  background: var(--wine);
}

*, *::before, *::after { box-sizing: border-box; }
.card[hidden] { display: none; }
#booking + [data-community] { margin-block-start: 10px; }

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, var(--wine) 0px, #531923 120px, #281419 245px, var(--black) 420px);
  color: var(--white);
  font: 400 1rem/1.55 var(--sans);
  letter-spacing: .045em;
  overflow-wrap: break-word;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.shell {
  max-width: 32.5rem;
  margin-inline: auto;
  padding-inline: max(clamp(14px, 4.6vw, 20px), env(safe-area-inset-left)) max(clamp(14px, 4.6vw, 20px), env(safe-area-inset-right));
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.skip-link {
  position: absolute;
  inset: calc(8px + env(safe-area-inset-top)) auto auto max(8px, env(safe-area-inset-left));
  z-index: 1;
  transform: translateY(-200vh);
  padding: .6rem 1rem;
  background: var(--black);
}
.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.official-logo { display: block; width: clamp(135px, 44vw, 220px); height: auto; }
.brand-caption, .brandline, .specs, .group h2, footer {
  color: var(--gold);
  font: 400 .7rem/1.5 var(--latin), var(--sans);
  letter-spacing: .19em;
  text-transform: uppercase;
}
.brand-caption { display: block; font-size: .625rem; }
.official-logo + .brand-caption { margin-top: 8px; }

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(17px, 5vw, 27px) 0 21px;
  text-align: center;
}
.hero p { margin: 0; }
.hero h1, .compact h1 {
  margin: 12px 0;
  font: 400 clamp(22px, 6.2vw, 34px)/1.48 var(--serif);
  letter-spacing: .045em;
  text-wrap: balance;
}
.rule { width: 32px; height: 1px; margin-bottom: 13px; background: #b79a6c; }
.specs { letter-spacing: .15em; }
.hero .tagline { margin-top: 12px; color: var(--muted); font-size: .8125rem; }
.hero-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 8px 25px;
  border: 1px solid #c45561;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font: 600 .8125rem/1.5 var(--sans);
  letter-spacing: .11em;
  text-decoration: none;
  cursor: pointer;
}
.hero > .hero-link { margin-top: 18px; }

.card-list { display: grid; gap: 10px; }
#booking { scroll-margin-block-start: calc(12px + env(safe-area-inset-top)); }

.card, .locations a {
  min-width: 0;
  border: 1px solid #6d5d63;
  background: var(--panel);
  text-decoration: none;
}
.card {
  display: flex;
  align-items: center;
  gap: clamp(9px, 3vw, 15px);
  min-height: 72px;
  padding: 12px clamp(12px, 4vw, 18px);
  border-radius: 14px;
}
.card-primary { border-color: #c45561; background: var(--red); }
.card-copy { flex: 1; min-width: 0; }
.card strong { display: block; font-size: 1.0625rem; font-weight: 600; }
.card small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }
.card-primary small { color: #f7e5df; }
.number { color: #f1d3a6; font: 400 .75rem/1.5 var(--latin); }
.arrow { flex: none; color: var(--gold); font: 400 1.45rem/1 sans-serif; }

.group { margin-top: 28px; }
.group h2 { margin: 0 0 11px; }
.location-caption { font-family: var(--sans); letter-spacing: .08em; }
.locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.locations a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: .8125rem;
}
@media (hover: hover) {
  .card:hover, .locations a:hover, .hero-link:hover { border-color: var(--gold); }
}

footer { text-align: center; margin-top: 25px; color: #b4a7aa; }
.compact { padding-top: calc(40px + env(safe-area-inset-top)); }
.compact a { display: inline-flex; align-items: center; min-height: 44px; }


/* Integration pages reuse the portal's palette, type and header. */
@font-face {
  font-family: "U2 Content Sans TC";
  src: url("../fonts/content-noto-sans-tc.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.app-download summary { cursor: pointer; list-style: none; }
.app-download summary::-webkit-details-marker { display: none; }
.app-download[open] summary .arrow { transform: rotate(90deg); }
.app-options, .location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-options { margin-top: 8px; }
.app-options a, .location-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 8rem;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #6d5d63;
  border-radius: 10px;
  color: var(--gold);
  background: var(--panel);
  text-align: center;
  text-decoration: none;
  font-size: .875rem;
}

.back-link:hover { text-decoration: underline; }

.content-page { --sans: "U2 Content Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
.content-hero { padding-block: clamp(24px, 7vw, 38px) 17px; }
.content-hero .rule { margin: 0; }
.content-page footer { margin-top: 16px; }

.price-grid, .branch-list { display: grid; gap: 12px; }
.price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-card, .location-card {
  border: 1px solid #6d5d63;
  border-radius: 14px;
  padding: clamp(14px, 4vw, 20px);
  background: var(--panel);
}
.price-card h2, .billing h2, .location-card h2 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 600; }
.price-card p, .billing p, .location-card p { margin: 0; color: var(--muted); font-size: .875rem; }
.price-card .price { margin-bottom: 6px; color: var(--white); }
.price strong { font-size: clamp(1rem, 4.5vw, 1.35rem); white-space: nowrap; }
.upgrade {
  margin-top: 14px;
  border-color: #b79362;
  background: linear-gradient(115deg, #492329, #241b20);
}
.upgrade .specs { color: var(--gold); font-family: var(--latin); font-size: .7rem; }
.upgrade h2 { margin-block: 6px; color: var(--gold); font-size: 1.5rem; }
.billing { padding: 20px 0; }
.billing h2 { color: var(--gold); }
.location-card { scroll-margin-top: calc(12px + env(safe-area-inset-top)); }
.location-card:target { border-color: var(--gold); }
.location-card .location-hours { margin-block: 8px 12px; }
.location-hours span { color: var(--gold); }
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  color: var(--gold);
  text-underline-offset: 4px;
}
@media (hover: hover) {
  .app-options a:hover, .location-actions a:hover { border-color: var(--gold); }
}
@media (max-width: 355px) {
  .price-grid { grid-template-columns: 1fr; }
}
.price-term { white-space: nowrap; }
