@font-face {
  font-family: 'Playland Text';
  src: url('./assets/playland-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Playland Text';
  src: url('./assets/playland-bold.woff') format('woff');
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: 'Playland Title';
  src: url('./assets/playland-title.woff') format('woff');
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --body-font: 'Noto TC', 'Playland Text', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --title-font: 'Noto Serif TC Local', 'Playland Title', 'Songti TC', Georgia, serif;
  --park-dock: 66px;
}

html:is([lang='ja'], [lang='vi']) {
  --body-font: 'Playland Text', 'Noto TC', sans-serif;
  --title-font: 'Playland Title', 'Noto Serif TC Local', Georgia, serif;
}
html[lang='vi'] .hero-title { font-size: clamp(2.25rem, 6.2vw, 4.35rem); }

.park-header .header-tools { margin-inline-start: auto; }
.language-select {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  border: 1px solid #f2b59799;
  border-radius: 8px;
  background: #74201930;
  color: #fff5e4;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1;
}
.language-display { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 9px; }
.language-display::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.language-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.language-select:focus-within { outline: 3px solid #ffe29c; outline-offset: 3px; }
.language-select:hover { background: #6a1a1980; }

body:not([data-view='play']) { padding-bottom: calc(var(--park-dock) + env(safe-area-inset-bottom, 0px)); }
.park-dock {
  position: fixed;
  z-index: 12;
  inset: auto 0 0;
  padding: 4px 12px calc(5px + env(safe-area-inset-bottom, 0px));
  background: #fff6e5;
  border-top: 1px solid #d9b38a;
  box-shadow: 0 -4px 18px #613b2414;
}
.park-dock-inner {
  width: min(100%, 640px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.park-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 4px 3px;
  border-radius: 8px;
  color: #684738;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}
.park-dock a .icon { font-size: 1.1rem; }
.park-dock a:hover { background: #f7e7d0; }
.park-dock a[aria-current] { background: #f6dfc3; color: var(--red-deep); }

.park-shell { padding-block: 32px 43px; }
.park-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d6b394;
  border-top: 4px solid var(--red);
  border-radius: 19px;
  background: linear-gradient(110deg, #fff8e7 25%, #f9e5c5);
  box-shadow: 0 4px 0 #e8c9a5, 0 12px 28px #71402d18;
}
.park-hero-copy { position: relative; z-index: 2; align-self: center; padding: clamp(22px, 4vw, 55px); }
.park-hero h1 {
  font-family: var(--title-font);
  font-size: clamp(2.45rem, 5.25vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.034em;
}
.park-hero h1 span { display: block; }
.park-hero h1 span + span { margin-top: .05em; color: var(--red); }
.park-hero p { margin-top: 17px; color: #654434; font-size: clamp(1.02rem, 1.6vw, 1.22rem); font-weight: 700; }

.park-hero-art {
  min-height: 246px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  justify-items: center;
  background: radial-gradient(ellipse at 50% 68%, #fff2d1, transparent 75%);
}
.park-hero-art img {
  position: relative;
  z-index: 2;
  width: min(77%, 390px);
  height: auto;
  margin-bottom: clamp(12px, 2vw, 27px);
  filter: drop-shadow(0 8px 5px #63301924);
}
.park-sun {
  position: absolute;
  inset: auto 50% 2%;
  width: min(77%, 385px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 2px solid #e3ab76;
  border-radius: 50%;
  background: radial-gradient(circle, #fadaac 0 61%, #fff4dc 62% 65%, #fadaac 66%);
  opacity: .76;
}
.park-lines {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 84% 200%, transparent 0 17px, #b96b4528 18px 19px, transparent 20px 27px);
  opacity: .8;
}
.park-wood {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 14%;
  background: repeating-linear-gradient(176deg, #99643800 0 8px, #99643822 9px 10px, #99643800 12px 18px),
    linear-gradient(#a76943 0 3px, #cc9b6a 3px, #b77d53);
  box-shadow: 0 -2px 0 #d6a77e;
}

.park-catalog { margin-top: 34px; }
.park-heading { margin-bottom: 16px; }
.park-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.park-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff9ed;
  border: 1px solid #dbba9a;
  border-radius: 12px;
  box-shadow: 0 3px 0 #e9c9a4;
}
.park-card-feature { grid-row: span 2; }
.park-card-art {
  min-height: 89px;
  display: grid;
  place-items: center;
  padding: 7px;
  background: radial-gradient(ellipse at center, #fff3d7, transparent 71%), #f4d9b1;
  border-bottom: 1px solid #deb69472;
}
.park-card-art[data-tone='rose'] { background-color: #f0cdc0; }
.park-card-art[data-tone='peach'] { background-color: #f1d0b2; }
.park-card-art[data-tone='matcha'] { background-color: #e0debd; }
.park-card-art img { width: auto; max-height: 79px; object-fit: contain; }
.park-card-feature .park-card-art { aspect-ratio: 2; padding: 0; overflow: hidden; background: #8b3728; }
.park-card-feature .park-card-art img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 61%; }
.park-card-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
.park-card h3 { font-family: var(--title-font); font-size: clamp(1rem, 1.7vw, 1.32rem); overflow-wrap: anywhere; }
.park-card-feature .park-card-copy { gap: 8px; padding: clamp(14px, 2.3vw, 23px); }
.park-card-feature h3 { font-size: clamp(1.45rem, 2.3vw, 2rem); }
.park-card p { font-size: .95rem; }
.park-card .button { margin-top: auto; }
.park-card-feature .button { min-width: min(100%, 155px); }
.park-card:not(.park-card-feature) .button { min-height: 44px; padding-inline: 10px; font-size: .83rem; }
.park-status {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 3px 7px;
  color: #704a37;
  background: #f3e5ca;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
}
.park-status-open { color: #3b5627; background: #edf0d9; }

.park-offers-panel, .park-benefits { padding: clamp(17px, 4vw, 33px); }
.park-offers-heading, .park-benefits { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.park-offers-heading h1, .park-benefits h2, .park-event-section h2 {
  font-family: var(--title-font);
  font-size: clamp(1.42rem, 3.6vw, 2.24rem);
}
.park-offers-heading p, .park-benefits p { margin-top: 6px; }
.park-offers-heading img, .park-benefits img { width: clamp(52px, 11vw, 96px); max-height: 100px; object-fit: contain; flex: 0 0 auto; }
.park-event-section { margin-top: 18px; }
.park-event-section h2 { font-size: clamp(1.22rem, 2.8vw, 1.68rem); margin-bottom: 10px; }
.park-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.park-event {
  border: 1px solid #ead2b2;
  border-radius: 9px;
  background: #fbefdc;
  padding: 12px;
}
.park-event h3 { margin-top: 5px; font-size: 1.05rem; }
.park-event p { margin-top: 5px; font-size: .9rem; }
.park-event a { margin-top: 8px; }
.park-benefits { margin-top: 16px; scroll-margin-top: 20px; }
.park-benefits h2 { margin-top: 5px; }

.park-progress { margin: 15px 0 12px; padding: 12px; text-align: left; border: 1px solid #e6c8a2; border-radius: 10px; background: #fcf1dc; }
.park-progress h2, .park-progress h3 { font-size: 1rem; }
.park-progress-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 11px; }
.park-progress-stats > div { padding: 7px 9px; border-radius: 7px; background: #fff8e8; border: 1px solid #ecd8b7; }
.park-progress-stats dt { font-weight: 700; color: #6b503b; font-size: .85rem; }
.park-progress-stats dd { color: var(--red-deep); font-size: 1.4rem; font-weight: 900; line-height: 1.3; font-variant-numeric: tabular-nums; }
.park-titles { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 6px 0 0; }
.park-titles li { display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px; color: #7d4829; background: #f6e0bd; font-weight: 700; font-size: .86rem; }
.park-progress p { margin-top: 4px; font-size: .92rem; }

@media (max-width: 930px) {
  .park-shell { padding-top: 24px; }
  .park-card-grid { gap: 10px; }
}

@media (max-width: 735px) {
  .language-select { border-radius: 7px; background-color: transparent; }
  .language-display { padding-inline: 8px; gap: 5px; }
  .park-shell { padding-top: 15px; }
  .park-hero { grid-template-columns: minmax(0, 1fr); border-radius: 13px; }
  .park-hero-copy { padding: 19px 12px 0; text-align: center; }
  .park-hero h1 { font-size: clamp(1.94rem, 8.3vw, 3.27rem); line-height: 1.13; }
  .park-hero h1 span { display: inline-block; }
  .park-hero h1 span + span { margin: 0; }
  .park-hero p { margin-top: 7px; font-size: .97rem; }
  .park-hero-art { min-height: clamp(132px, 42vw, 225px); }
  .park-hero-art img { width: min(53%, 255px); margin-bottom: 7px; }
  .park-sun { width: min(58%, 290px); bottom: 0; }
  .park-wood { height: 11%; }
  .park-catalog { margin-top: 23px; }
  .park-heading { margin-bottom: 12px; }
  .park-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .park-card-feature { grid-column: 1 / -1; grid-row: auto; }
  .park-card-feature .park-card-art { aspect-ratio: 2.12; }
  .park-card-feature .park-card-copy { padding: 13px; }
  .park-card-feature .button { width: 100%; }
  .park-card:not(.park-card-feature) .park-card-copy { gap: 5px; padding: 9px; }
  .park-card-art { min-height: 74px; }
  .park-card-art img { max-height: 65px; }
  .park-card-feature .park-card-art img { max-height: none; }
}

@media (max-width: 410px) {
  .park-hero h1 { font-size: clamp(1.85rem, 7.9vw, 2.54rem); }
  .park-event-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .park-event { padding: 8px 10px; }
  .park-dock a { font-size: .77rem; }
}
