:root {
  color-scheme: dark;
  --black: #050505;
  --panel: rgba(9, 8, 7, 0.76);
  --gold: #d8ad57;
  --gold-light: #f2d797;
  --gold-dark: #74501f;
  --pink: #f50b79;
  --text: #f8f4ec;
  --muted: #aaa39a;
  --line: rgba(216, 173, 87, 0.34);
  --font: Inter, "Noto Sans JP", "Noto Sans TC", "Noto Sans SC", "Yu Gothic", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--black); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.04) 44%, rgba(0,0,0,.72)),
    radial-gradient(circle at 50% 42%, rgba(61, 39, 10, .18), transparent 56%),
    #050505;
}

.map-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(180deg, rgba(5,5,5,.58), rgba(5,5,5,.12) 50%, rgba(5,5,5,.7)), url("/images/asia-night-map.png");
  background-size: cover;
  background-position: center 58%;
  opacity: .72;
  filter: saturate(.9) contrast(1.05);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  opacity: .11;
}
.ambient-one { top: -180px; left: -100px; background: var(--pink); }
.ambient-two { right: -180px; bottom: -180px; background: var(--gold); }

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 22px 32px 0;
}

.brand {
  grid-column: 2;
  display: block;
  width: clamp(250px, 32vw, 450px);
  filter: drop-shadow(0 12px 30px rgba(245, 11, 121, .15));
  transition: transform .25s ease;
}
.brand:hover { transform: translateY(-2px); }
.brand img { display: block; width: 100%; height: auto; }

/* Keep the entry content visually connected to the logo. */
.page-shell:not(.guide-shell) .site-header { padding-top: 10px; }
.page-shell:not(.guide-shell) .brand { width: clamp(240px, 29vw, 400px); }

.language-control {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
}
.language-control label {
  padding-left: 11px;
  color: #8f8981;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.language-control select {
  min-width: 136px;
  padding: 10px 34px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  color: var(--gold-light);
  background: rgba(8, 8, 8, .8);
  cursor: pointer;
}
.language-control select:focus-visible { box-shadow: 0 0 0 3px rgba(245,11,121,.25); }

.entry-card {
  width: min(850px, calc(100% - 40px));
  margin: -8px auto 0;
  padding: 12px 50px 42px;
  border: 1px solid rgba(216, 173, 87, .16);
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(15,13,11,.82), rgba(5,5,5,.61));
  box-shadow: 0 30px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .36em;
  text-align: center;
}

.info-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 46px;
  margin: -5px 0 25px;
  padding: 0 16px;
  border: 1px solid rgba(216, 173, 87, .24);
  border-radius: 11px;
  background: rgba(2, 2, 2, .64);
  overflow: hidden;
}
.info-label { color: var(--pink); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.info-stage { position: relative; height: 44px; overflow: hidden; }
.info-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity .55s ease, transform .55s ease;
}
.info-item.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.info-item.is-leaving { opacity: 0; transform: translateX(-40px); }
.info-item a, .info-item > span:last-child { overflow: hidden; color: #d8d1c5; font-size: 11px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.info-item a:hover { color: var(--gold-light); }
.info-number { flex: 0 0 auto; color: #736a5d; font: 10px Georgia, serif; }
.info-count { color: #736a5d; font: 9px Georgia, serif; letter-spacing: .08em; }
.entry-seo-heading { margin: 0 0 25px; text-align: center; }
.entry-seo-heading h1 { margin: 0; font-family: Georgia, "Noto Serif JP", serif; font-size: clamp(20px, 2.7vw, 27px); font-weight: 400; line-height: 1.4; letter-spacing: .035em; }
.entry-seo-heading p { max-width: 680px; margin: 9px auto 0; color: #8f887e; font-size: 11px; line-height: 1.8; }
.entry-seo-body { margin-top: 27px; padding-top: 22px; border-top: 1px solid rgba(216,173,87,.16); color: #79736b; font-size: 10px; line-height: 1.9; text-align: center; }
.entry-seo-body p { max-width: 680px; margin: 0 auto 8px; }

.choice-section { padding: 0 0 2px; }
.section-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.step-number {
  flex: 0 0 auto;
  padding-top: 5px;
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: .1em;
}
.section-heading h1, .section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.25;
}
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; }

.origin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-button {
  position: relative;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #ded9d0;
  background: rgba(5, 5, 5, .58);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.choice-button:hover { transform: translateY(-2px); border-color: rgba(242, 215, 151, .72); color: #fff; }
.choice-button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245,11,121,.3); }
.choice-button.is-selected {
  border-color: var(--gold-light);
  color: #fff;
  background: linear-gradient(130deg, rgba(216,173,87,.2), rgba(245,11,121,.11));
  box-shadow: inset 0 0 22px rgba(216,173,87,.08), 0 0 20px rgba(245,11,121,.07);
}
.choice-button.is-unavailable { opacity: .52; cursor: pointer; }
.choice-button.is-unavailable:hover { transform: none; border-color: var(--line); color: #ded9d0; }
.choice-button.is-selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.gold-divider { display: flex; align-items: center; gap: 12px; margin: 27px 0 24px; }
.gold-divider::before, .gold-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.gold-divider::after { background: linear-gradient(90deg, var(--line), transparent); }
.gold-divider span { width: 4px; height: 4px; transform: rotate(45deg); background: var(--gold); }

.destination-button { min-height: 70px; padding: 13px 44px 13px 20px; text-align: left; }
.destination-name { display: block; color: var(--gold-light); font-family: Georgia, "Noto Serif JP", serif; font-size: 22px; }
.destination-button .arrow { position: absolute; top: 50%; right: 19px; transform: translateY(-50%); color: var(--pink); font-size: 19px; }

.form-status { min-height: 20px; margin: 18px 0 8px; color: #e0a7a7; font-size: 12px; text-align: center; }
.form-status.is-success { color: var(--gold-light); }
.submit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  color: #0a0805;
  background: linear-gradient(105deg, #936926, #f0d68d 42%, #c2923e 72%, #f0d68d);
  background-size: 170% 100%;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
  transition: opacity .2s ease, transform .2s ease, background-position .35s ease;
}
.submit-button:hover:not(:disabled) { transform: translateY(-2px); background-position: 100% 0; }
.submit-button:focus-visible { outline: 3px solid rgba(245,11,121,.4); outline-offset: 3px; }
.submit-button:disabled { opacity: .3; cursor: not-allowed; }
.submit-button.is-loading { cursor: wait; opacity: .65; }

footer { margin: auto auto 0; padding: 24px 20px 22px; color: #5f5b56; font-size: 10px; line-height: 1.7; text-align: center; }
footer p { margin: 0; }
.copyright { margin-top: 5px; letter-spacing: .1em; }
.seo-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 15px; margin: 8px 0 3px; }
.seo-footer-links a { color: #81786d; text-decoration: none; }
.seo-footer-links a:hover { color: var(--gold); }

.guide-shell { min-height: 100svh; }
.guide-header { margin-bottom: 8px; }
.guide-language-control { grid-column: 3; justify-self: end; display: flex; flex-direction: column; gap: 5px; padding-top: 8px; }
.guide-language-control label { padding-left: 2px; color: #777067; font-size: 9px; letter-spacing: .14em; }
.guide-language-control select { min-width: 132px; padding: 9px 34px 9px 11px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--gold-light); background: rgba(8,8,8,.82); font-size: 11px; cursor: pointer; }
.guide-language-control select:hover { border-color: rgba(242,215,151,.65); }
.guide-language-control select:focus-visible { box-shadow: 0 0 0 3px rgba(245,11,121,.25); }
.guide-page { width: min(900px, calc(100% - 40px)); margin: 0 auto 35px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #756f67; font-size: 10px; }
.breadcrumbs a { color: var(--gold); text-decoration: none; }
.guide-page article { padding: clamp(28px, 5vw, 58px); border: 1px solid rgba(216,173,87,.18); border-radius: 27px; background: linear-gradient(145deg, rgba(15,13,11,.91), rgba(5,5,5,.73)); box-shadow: 0 30px 100px rgba(0,0,0,.5); backdrop-filter: blur(12px); }
.guide-page article .eyebrow { margin-bottom: 18px; text-align: left; }
.guide-page h1 { max-width: none; margin: 0; font-family: Georgia, "Noto Serif JP", serif; font-size: clamp(13px, 3.5vw, 42px); font-weight: 400; line-height: 1.26; letter-spacing: .015em; white-space: nowrap; }
.guide-intro { margin: 24px 0 0; padding-left: 19px; border-left: 2px solid var(--pink); color: #d2cbbf; font-size: clamp(15px, 2vw, 18px); line-height: 1.95; }
.guide-body { margin-top: 35px; color: #b9b1a5; font-size: 14px; line-height: 2.15; }
.guide-body p { margin: 0 0 20px; }
.destination-site-link { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 58px; margin-top: 30px; padding: 13px 20px; border: 1px solid rgba(255,74,166,.72); border-radius: 8px; color: #fff; background: linear-gradient(112deg, #8e176f, #f50b79 48%, #7027a8); background-size: 160% 100%; box-shadow: 0 13px 34px rgba(245,11,121,.19); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; transition: transform .2s ease, background-position .3s ease, box-shadow .2s ease; }
.destination-site-link:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px rgba(245,11,121,.28); }
.destination-site-link:focus-visible { outline: 3px solid rgba(245,11,121,.35); outline-offset: 3px; }
.keyword-section { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.keyword-section h2 { margin: 0 0 14px; color: #938a7e; font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-list span { padding: 7px 11px; border: 1px solid rgba(216,173,87,.22); border-radius: 999px; color: var(--gold-light); background: rgba(216,173,87,.05); font-size: 10px; }
.updated-at { margin: 30px 0 0; color: #625d56; font-size: 9px; text-align: right; }
.guide-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.outline-link { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 1px solid var(--line); border-radius: 14px; color: var(--gold-light); background: rgba(5,5,5,.7); font-size: 12px; text-decoration: none; }
.guide-back { color: #0a0805; font-size: 12px; text-decoration: none; }

@media (max-width: 700px) {
  .site-header { grid-template-columns: 1fr auto; padding: 16px 18px 0; }
  .brand { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(78vw, 360px); }
  .language-control { grid-column: 2; grid-row: 1; position: absolute; top: 0; right: 0; padding-top: 0; }
  .language-control label { display: none; }
  .language-control select { min-width: 105px; max-width: 115px; padding: 8px 28px 8px 10px; font-size: 11px; }
  .page-shell:not(.guide-shell) .brand { width: min(72vw, 320px); }
  .entry-card { width: min(100% - 24px, 560px); margin-top: -4px; padding: 8px 18px 28px; border-radius: 22px; }
  .eyebrow { margin-bottom: 20px; font-size: 8px; }
  .section-heading { gap: 12px; margin-bottom: 16px; }
  .section-heading h1, .section-heading h2 { font-size: 23px; }
  .section-heading p { font-size: 11px; }
  .origin-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .choice-button { min-height: 48px; }
  .destination-grid { gap: 8px; }
  .destination-button { min-height: 70px; padding-left: 14px; }
  .destination-name { font-size: 19px; }
  .gold-divider { margin: 22px 0 20px; }
  .form-status { margin-top: 12px; }
  .submit-button { min-height: 54px; }
  .map-backdrop { background-position: 62% 50%; opacity: .58; }
  .info-ticker { grid-template-columns: auto minmax(0,1fr); gap: 10px; margin-top: -6px; padding: 0 11px; }
  .info-count, .info-number { display: none; }
  .info-item a, .info-item > span:last-child { font-size: 10px; }
  .entry-seo-heading { margin-bottom: 21px; }
  .entry-seo-heading h1 { font-size: 19px; }
  .entry-seo-heading p { font-size: 10px; }
  .guide-header { grid-template-columns: 1fr; }
  .guide-header .brand { grid-column: 1; }
  .guide-language-control { grid-column: 1; grid-row: 2; justify-self: center; padding: 0 0 10px; }
  .guide-language-control label { display: none; }
  .guide-language-control select { min-width: 124px; padding-block: 8px; }
  .guide-page { width: min(100% - 24px, 620px); }
  .guide-page article { padding: 27px 20px; border-radius: 21px; }
  .guide-intro { margin-top: 19px; font-size: 14px; }
  .guide-body { margin-top: 25px; font-size: 13px; line-height: 2; }
  .guide-actions { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .brand { width: 285px; }
  .language-control select { min-width: 94px; max-width: 102px; }
  .entry-card { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
