/* Layout: mobile-first single column; full-bleed photo hero, sandstone/copper accents, one persistent audio bar */
:root {
  --ink: #0f1614;
  --ink-2: #16211e;
  --ink-3: #1e2b28;
  --line: rgba(232, 194, 122, .28);
  --sand: #fbf5e9;
  --mute: #d8d1c2;
  --gold: #e8c27a;
  --copper: #b98a4e;
  --river: #1d5458;
  --moss: #22302a;
  --clay: #9c4a2c;
  --f-display: "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-zh: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  background: var(--ink);
  color: var(--sand);
}

body {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.zh {
  font-family: var(--f-body), var(--f-zh);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -.015em;
}

p {
  margin: 0;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
}

.glass {
  background: rgba(18, 26, 24, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}

/* ---------- language gate ---------- */
#gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  padding: 0 20px calc(28px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.gate-blur {
  position: absolute;
  inset: -40px;
  background: url(../img/home-hero.webp) center/cover;
  filter: blur(28px) brightness(.45);
  display: none;
}

.gate-photo {
  position: absolute;
  top: -16%;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../img/home-hero.webp) center top/cover;
}

@media (min-width: 700px) {
  .gate-blur {
    display: block;
  }
  .gate-photo {
    left: 50%;
    right: auto;
    width: min(620px, 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 80px rgba(0, 0, 0, .6);
  }
}

#gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 22, 20, .1) 0%, rgba(15, 22, 20, .05) 35%, rgba(15, 22, 20, .82) 62%, var(--ink) 100%);
}

#gate > *:not(.gate-photo):not(.gate-blur) {
  position: relative;
  z-index: 2;
}

.brand {
  text-align: center;
  margin-bottom: 26px;
}

.brand .k {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(46px, 14vw, 64px);
  line-height: .95;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #f6e2b6, var(--copper));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand .p {
  font-weight: 700;
  letter-spacing: .62em;
  padding-left: .62em;
  color: var(--gold);
  font-size: 18px;
  margin-top: 6px;
}

.brand .s {
  color: var(--mute);
  font-size: 16px;
  margin-top: 10px;
}

.langs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.lang {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 70px;
  padding: 0 20px;
  border-radius: 22px;
  font-size: 21px;
  font-weight: 600;
  text-align: left;
  transition: transform .15s, background .15s;
}

.lang:active {
  transform: scale(.98);
}

.lang .m {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  flex: none;
}

.lang .a {
  margin-left: auto;
  color: var(--gold);
  font-size: 22px;
}

.gate-hint {
  text-align: center;
  font-size: 14px;
  color: var(--mute);
  margin-top: 16px;
}

/* ---------- home ---------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 20px 26px;
  background: var(--ink) url(../img/home-hero.webp) center 38%/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 22, 20, .35), rgba(15, 22, 20, 0) 30%, rgba(15, 22, 20, .25) 60%, var(--ink) 100%);
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero::before {
  z-index: 1;
}

.hero-slides {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  overflow: hidden;
}

.hero-slides i {
  position: absolute;
  inset: 0;
  background: center 38%/cover no-repeat;
  transform: translateX(100%);
  transition: transform .9s cubic-bezier(.45, .05, .25, 1);
  will-change: transform;
}

.hero-slides i.off {
  transition: none;
}

.hero-slides i.on {
  transform: translateX(0);
}

.hero-slides i.out {
  transform: translateX(-100%);
}

.hero-dots {
  position: absolute !important;
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  z-index: 3 !important;
}

.hero-dots b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(246, 238, 223, .4);
  transition: all .3s;
}

.hero-dots b.on {
  background: var(--gold);
  width: 18px;
  border-radius: 4px;
}

.topbar {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.topbar .right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pill {
  height: 40px;
  border-radius: 20px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.logo-chip {
  height: 48px;
  display: inline-flex;
  align-items: center;
  background: none;
}

.logo-chip img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}

.gate-logo {
  position: absolute !important;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 3;
}

.hero .eyebrow {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(46px, 13vw, 64px);
  margin-top: 8px;
}

.hero .lead {
  color: #f1eadb;
  margin-top: 10px;
  font-size: 18px;
  max-width: 30ch;
}

main {
  padding: 0 16px 140px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.stat {
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: var(--f-display);
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  font-size: 14px;
  color: var(--mute);
  margin-top: 6px;
  line-height: 1.3;
}

.listen {
  margin-top: 16px;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(100deg, rgba(185, 138, 78, .3), rgba(29, 84, 88, .45));
  border: 1px solid rgba(232, 194, 122, .5);
  width: 100%;
  text-align: left;
}

.pbtn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f3d9a4, #c9944e);
  box-shadow: 0 6px 18px rgba(232, 194, 122, .3);
  color: #2a1d12;
}

.pbtn svg {
  width: 22px;
  height: 22px;
}

.listen .t {
  font-weight: 700;
  font-size: 20px;
}

.listen .s {
  font-size: 15px;
  color: #e6dfcf;
  margin-top: 2px;
}

.wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 26px;
  margin-top: 6px;
}

.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  opacity: .55;
}

.sec {
  margin-top: 36px;
}

.sec-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.sec-h h2 {
  font-size: 34px;
}

.sec-h small {
  color: var(--mute);
  font-size: 14px;
}

.intro {
  color: #f1eadb;
  font-size: 18.5px;
  line-height: 1.65;
}

/* route */
.route {
  list-style: none;
  margin: 0;
  padding: 0 0 0 6px;
  position: relative;
}

.route::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  bottom: 20px;
  border-left: 2px dotted rgba(232, 194, 122, .55);
}

.route li {
  position: relative;
}

.route button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 9px 0;
  text-align: left;
}

.route .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.route .rt {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.route .rt small {
  display: block;
  font-size: 14px;
  color: var(--mute);
  font-weight: 400;
}

.route .end .num {
  background: var(--gold);
  color: var(--ink);
}

/* placeholder */
.ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #2b3a36, #141d1b);
}

.ph span {
  font-family: var(--f-display);
  font-size: 64px;
  color: rgba(232, 194, 122, .25);
}

.foot {
  margin-top: 40px;
  padding: 22px 18px;
  border-radius: 22px;
  background: var(--moss);
  border: 1px solid var(--line);
}

.foot h3 {
  font-size: 24px;
  color: var(--gold);
}

.foot p {
  color: #ece5d6;
  font-size: 17px;
  margin-top: 8px;
}

.start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  border-radius: 27px;
  background: var(--gold);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  margin: 4px 0 16px;
  box-shadow: 0 6px 20px rgba(232, 194, 122, .25);
}

.start-btn:active {
  transform: scale(.98);
}

.cta {
  margin: 2px 0 12px;
  font-weight: 700;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.4;
}

.foot .thanks {
  color: var(--gold);
  font-weight: 700;
  margin-top: 12px;
}

.foot .tagline {
  margin-top: 14px;
  font-weight: 700;
  color: var(--sand);
}

/* ---------- detail sheet ---------- */
#detail {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: 96px;
}

#detail.open {
  transform: none;
}

.d-media {
  position: relative;
  overflow: hidden;
  height: 28svh;
  min-height: 150px;
  max-height: 320px;
  max-width: 100%;
  background: var(--ink-3);
}

.d-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.d-media > .sl {
  position: absolute;
  inset: 0;
  transition: transform .5s cubic-bezier(.45, .05, .25, 1);
  will-change: transform;
}

.d-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 22, 20, .4), transparent 30%, transparent 60%, var(--ink));
}

.d-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.d-body {
  padding: 0 20px;
  margin-top: -28px;
  position: relative;
}

.d-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.d-meta .n {
  font-family: var(--f-display);
  font-size: 34px;
  letter-spacing: 0;
  line-height: .8;
}

.d-body h2 {
  font-size: clamp(26px, 7.4vw, 32px);
  margin-top: 6px;
}

.d-text {
  font-size: 17.5px;
  line-height: 1.5;
  color: #f4eee2;
  margin-top: 10px;
  max-width: 60ch;
}

.d-quest {
  margin-top: 14px;
  border-radius: 16px;
  padding: 11px 14px;
  background: var(--ink-2);
  border: 1px dashed rgba(232, 194, 122, .55);
  display: flex;
  gap: 12px;
}

.d-quest b {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.d-quest p {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.4;
}

.d-nav {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.d-nav button {
  flex: 1;
  height: 50px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}

.d-nav button small {
  font-size: 12.5px;
  font-weight: 500;
  opacity: .75;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d-nav button:disabled {
  opacity: .35;
}

.d-nav button.is-fin {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.d-nav button.is-fin small {
  color: var(--ink);
  opacity: .8;
}

.pending {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 10px;
}

/* ---------- audio bar ---------- */
#bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 24, 22, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 194, 122, .42);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

#bar .pbtn {
  width: 48px;
  height: 48px;
}

#bar .info {
  flex: 1;
  min-width: 0;
}

#bar .t {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#bar .time {
  font-size: 14px;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

#seek {
  width: 100%;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--gold);
  background: transparent;
}

#bar .skip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  flex: none;
}

/* ---------- tiến độ + tìm thấy ---------- */
.prog-wrap {
  margin: 4px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prog-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--mute);
}

.prog-row b {
  color: var(--gold);
}

.pbar {
  height: 8px;
  border-radius: 4px;
  background: rgba(246, 238, 223, .12);
  overflow: hidden;
}

.pbar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  border-radius: 4px;
  transition: width .4s;
}

.route li.found .num {
  background: var(--gold);
  color: var(--ink);
}

.route .tick {
  margin-left: auto;
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  padding-right: 4px;
}

.found-btn {
  margin-top: 10px;
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.found-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}

.finish-btn {
  margin-top: 10px;
  width: 100%;
  height: 50px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(180deg, #f3d9a4, #c9944e);
  color: #2a1d12;
}

.done {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(185, 138, 78, .35), rgba(29, 84, 88, .45));
  border: 1px solid var(--gold);
  font-size: 17px;
  font-weight: 600;
}

.done b {
  display: block;
  color: var(--gold);
  font-size: 18px;
}

.done span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #ece5d6;
  margin-top: 2px;
}

.done .mini-medal {
  width: 64px;
  height: 64px;
  flex: none;
}

/* ---------- gợi ý chuyến đi ---------- */
.tips {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.tip .ic {
  font-size: 24px;
  line-height: 1;
  flex: none;
  width: 30px;
  text-align: center;
}

.tip p {
  font-size: 16.5px;
  line-height: 1.5;
  color: #f1eadb;
}

/* ---------- huy hiệu (badge modal) ---------- */
#badge {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 12, 11, .86);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

#badge[hidden] {
  display: none !important;
}

.bd {
  max-width: 420px;
  width: 100%;
  margin: auto;
  border-radius: 26px;
  padding: 24px 20px 20px;
  text-align: center;
  background: linear-gradient(180deg, #1b2a26, #0f1614);
  border: 1px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.medal-wrap {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto;
  animation: pop .6s cubic-bezier(.2, 1.4, .4, 1);
}

.bd .medal {
  width: 210px;
  height: 210px;
  display: block;
  background: none;
}

@keyframes pop {
  from {
    transform: scale(.4) rotate(-12deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.bd h2 {
  font-size: 28px;
  color: var(--gold);
  margin-top: 12px;
  line-height: 1.15;
}

.bd .bt {
  font-size: 17px;
  color: #ece5d6;
  margin-top: 8px;
}

.bd .nx {
  margin-top: 18px;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.bd .nx h3 {
  font-size: 17px;
  color: var(--sand);
  margin-bottom: 8px;
}

.bd .nx li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 16px;
  line-height: 1.35;
}

.bd .nx li i {
  font-style: normal;
  font-size: 20px;
  width: 26px;
  flex: none;
  text-align: center;
}

.bd .nx li b {
  color: #f6eedf;
}

.bd .nx li span {
  color: var(--mute);
}

.bd .cam-go {
  margin-top: 16px;
  width: 100%;
  height: 56px;
  border-radius: 28px;
  font-weight: 800;
  font-size: 18px;
  background: #1d5458;
  color: #f6eedf;
  border: 2px solid var(--gold);
}

.bd .go {
  margin-top: 16px;
  width: 100%;
  height: 52px;
  border-radius: 26px;
  font-weight: 700;
  font-size: 17px;
  background: linear-gradient(180deg, #f3d9a4, #c9944e);
  color: #2a1d12;
}

.bd .tag {
  margin-top: 10px;
  font-weight: 700;
  color: var(--sand);
}

/* ---------- chế độ chữ lớn (accessibility) ---------- */
body.big .intro, body.big .tip p {
  font-size: 21px;
}

body.big .route .rt {
  font-size: 22px;
}

body.big .d-text {
  font-size: 20px !important;
}

body.big .d-quest p {
  font-size: 18.5px;
}

body.big .listen .t {
  font-size: 22px;
}

/* ---------- camera & chia sẻ ảnh ---------- */
#cam, #shot, #terms {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #05090a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

#cam[hidden], #shot[hidden], #terms[hidden] {
  display: none !important;
}

.cam-stage {
  position: relative;
  flex: none;
  width: min(100%, calc(100svh - 230px));
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  background: #f6eedf;
}

.cam-stage video {
  position: absolute;
  left: 13.889%;
  top: 15.278%;
  width: 68.519%;
  height: 60.37%;
  object-fit: cover;
}

.cam-stage video.mirror {
  transform: scaleX(-1);
}

.cam-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cam-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 420px);
  margin-top: 16px;
}

.cam-bar button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(246, 238, 223, .12);
  color: #f6eedf;
  font-size: 22px;
}

.cam-bar #cam-shot {
  width: 76px;
  height: 76px;
  background: #f6eedf;
  border: 6px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 194, 122, .3);
}

.cam-pick {
  color: var(--mute);
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

.cam-alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  width: min(100%, 420px);
}

.cam-native {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 24px;
  border: 1.5px solid rgba(232, 194, 122, .6);
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

#cam.no-live video, #cam.no-live #cam-shot, #cam.no-live #cam-flip, #cam.no-live #cam-timer {
  visibility: hidden;
}

#cam.no-live .cam-err {
  color: #f6eedf;
  font-size: 16px;
}

#cam.no-live .cam-native {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  height: 56px;
  font-size: 17px;
}

#cam-timer {
  font-size: 16px !important;
  font-weight: 800;
}

#cam-timer[aria-pressed="true"] {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

.cam-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
  pointer-events: none;
}

.cam-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.cam-flash.on {
  opacity: .85;
  transition: none;
}

.shot-stage {
  flex: none;
  width: min(100%, calc(100svh - 380px), 560px);
  min-width: min(100%, 280px);
}

#shot-cv {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  touch-action: none;
  cursor: grab;
}

.shot-hint {
  color: var(--mute);
  font-size: 13.5px;
  text-align: center;
  margin: 10px 0 4px;
}

#shot-zoom {
  width: min(100%, 320px);
  accent-color: #e8c27a;
}

.cam-err {
  color: #f3b0a0;
  font-size: 15px;
  text-align: center;
  max-width: 340px;
  margin: 10px 0 0;
}

.shot-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 420px);
  margin-top: 16px;
}

.shot-btns .row {
  display: flex;
  gap: 10px;
}

.shot-btns button {
  height: 50px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 16px;
  flex: 1;
}

.shot-btns > button {
  flex: none;
}

.btn-fb {
  background: #1877f2;
  color: #fff;
  font-size: 17px !important;
  height: 56px !important;
}

.btn-ghost {
  background: rgba(246, 238, 223, .1);
  color: #f6eedf;
  border: 1px solid var(--line);
}

.shot-msg {
  color: var(--gold);
  font-size: 15px;
  text-align: center;
  min-height: 22px;
  margin-top: 8px;
}

#terms {
  background: rgba(5, 9, 10, .92);
}

.terms-box {
  max-width: 440px;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  background: #141f1c;
  border: 1px solid var(--gold);
  border-radius: 22px;
  padding: 22px 20px;
}

.terms-box h2 {
  font-size: 22px;
  color: var(--gold);
}

.terms-box ul {
  padding-left: 20px;
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #ece5d6;
}

.terms-box li {
  margin: 6px 0;
}

.terms-box label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
  font-size: 16px;
  margin-top: 8px;
}

.terms-box input {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  accent-color: #e8c27a;
}

.terms-box .row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.terms-box .row button {
  flex: 1;
  height: 50px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 16px;
}

.terms-box .ok {
  background: #1877f2;
  color: #fff;
}

.terms-box .ok:disabled {
  opacity: .4;
}

.faq {
  margin-top: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  transition: background .2s, border-color .2s;
}

.faq-item[open] {
  background: var(--ink-3);
  border-color: var(--gold);
}

.faq-item summary {
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "▾";
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  transition: transform .25s ease;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary b {
  font-weight: 700;
  color: var(--sand);
  line-height: 1.4;
}

.faq-item p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--mute);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides i, .d-media > .sl {
    transition: none;
  }
  #detail, .lang {
    transition: none;
  }
  .medal-wrap {
    animation: none;
  }
}
