/* Aspabota — 3D tour. Shares the palette of the main site. */
:root {
  --chalk: #eef0eb; --paper: #f9faf7; --ink: #12272d; --ink-2: #41565c; --ink-3: #66797f;
  --sea: #0f3440; --sea-2: #174a5b; --foam: #cfe0e2; --garnet: #9b1c31; --gold: #c8a14b; --plate: #d8dcde;
  --line: rgba(18, 39, 45, .16);
  --display: "Forum", "Aspabota Greek", Georgia, serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --greek: "Aspabota Greek", "Forum", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { font: 400 16px/1.5 var(--text); color: var(--ink); background: #bfd6dc; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.greek { font-family: var(--greek); }
[hidden] { display: none !important; }

.stage { position: fixed; inset: 0; background: linear-gradient(180deg, #6fa7c4 0%, #a9cbd8 38%, #dfe9e3 62%, #e9e6d6 100%); touch-action: none; }
.stage.is-now { background: linear-gradient(180deg, #7fa9bf 0%, #b7cfd6 40%, #e3e8df 64%, #ebe7d8 100%); }
#gl { display: block; width: 100%; height: 100%; cursor: grab; }
#gl:active { cursor: grabbing; }

/* top bar */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 14px; color: #fff; background: linear-gradient(180deg, rgba(15, 52, 64, .78), rgba(15, 52, 64, 0)); pointer-events: none; }
.top > * { pointer-events: auto; }
.top__back { color: #fff; text-decoration: none; font-size: 15px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 2px; background: rgba(15, 52, 64, .45); white-space: nowrap; }
.top__back:hover { background: rgba(15, 52, 64, .8); }
.top__title { display: flex; align-items: baseline; gap: 12px; font: 400 19px/1.1 var(--display); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); min-width: 0; }
.top__title .greek { font-size: 23px; color: #f1dca0; }
.top__title span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.seg { display: flex; border: 1px solid rgba(255, 255, 255, .7); border-radius: 2px; overflow: hidden; background: rgba(15, 52, 64, .5); }
.seg button { background: none; border: 0; padding: 6px 11px; font-size: 14px; line-height: 1.35; color: #fff; white-space: nowrap; }
.seg button + button { border-left: 1px solid rgba(255, 255, 255, .7); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--sea); }
.tool { background: rgba(15, 52, 64, .5); border: 1px solid rgba(255, 255, 255, .7); border-radius: 2px; padding: 6px 11px; font-size: 14px; line-height: 1.35; color: #fff; white-space: nowrap; }
.tool:hover { background: rgba(15, 52, 64, .85); }
.tool[aria-pressed="true"] { background: #fff; color: var(--sea); }

/* station card */
.card { position: fixed; left: 14px; bottom: 14px; z-index: 9; width: min(430px, calc(100vw - 28px)); background: rgba(249, 250, 247, .96); border-radius: 3px; padding: 18px 20px 16px; border-left: 3px solid var(--garnet); box-shadow: 0 10px 40px rgba(11, 40, 50, .28); -webkit-user-select: text; user-select: text; }
.card__n { font-size: 13.5px; color: var(--garnet); font-weight: 500; }
.card__h { font: 400 clamp(25px, 3vw, 32px)/1.08 var(--display); margin: 2px 0 8px; padding-right: 34px; }
.card__p { font-size: 15.5px; line-height: 1.52; color: var(--ink-2); }
.card__ph { display: flex; gap: 8px; margin-top: 12px; }
.card__ph button { padding: 0; border: 0; background: var(--plate); border-radius: 2px; overflow: hidden; width: 86px; height: 62px; cursor: zoom-in; flex: none; }
.card__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.card__fold { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); display: none; }
.card__fold::before { content: ""; position: absolute; left: 11px; top: 9px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.card.is-folded .card__fold::before { transform: rotate(-135deg); top: 14px; }
.card.is-folded .card__body { display: none; }

.btn { display: inline-block; padding: 9px 15px; border-radius: 2px; border: 1px solid transparent; font-weight: 500; font-size: 15px; line-height: 1.25; background: none; text-decoration: none; white-space: nowrap; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--sea); color: #fff; }
.btn--solid:hover { background: var(--sea-2); }
.btn--gold { background: var(--gold); color: #1b1608; margin-left: auto; }
.btn--gold:hover { background: #d9b566; }
.btn--light { background: #fff; color: var(--sea); }
.btn--light:hover { background: var(--foam); }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* minimap */
.mini { position: fixed; right: 14px; top: 62px; z-index: 8; width: 214px; background: rgba(15, 52, 64, .72); border: 1px solid rgba(255, 255, 255, .28); border-radius: 3px; padding: 6px; }
.mini svg { display: block; width: 100%; height: auto; }
.mini .m-butte { fill: #ece6d4; stroke: #fff; stroke-width: 4; }
.mini .m-sea { fill: #2a7f96; opacity: .8; }
.mini .m-st { fill: var(--paper); stroke: var(--sea); stroke-width: 5; cursor: pointer; pointer-events: auto; }
.mini .m-st.is-on { fill: var(--garnet); stroke: #fff; }
.mini .m-cam { fill: var(--gold); stroke: #1b1608; stroke-width: 1.5; }
.mini text { font: 600 48px var(--text); fill: var(--sea); text-anchor: middle; pointer-events: none; }

.hint { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 8; background: rgba(15, 52, 64, .72); color: #fff; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; pointer-events: none; transition: opacity .6s; white-space: nowrap; max-width: calc(100vw - 28px); overflow: hidden; text-overflow: ellipsis; }
.hint.is-off { opacity: 0; }

/* walk mode */
.walkhud { position: fixed; inset: auto 0 0 0; z-index: 9; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px; pointer-events: none; }
.walkhud > * { pointer-events: auto; }
.walkhud__hint { background: rgba(15, 52, 64, .78); color: #fff; font-size: 14px; padding: 8px 14px; border-radius: 3px; max-width: 46em; }
.stick { display: none; width: 124px; height: 124px; border-radius: 50%; background: rgba(15, 52, 64, .4); border: 2px solid rgba(255, 255, 255, .6); position: relative; touch-action: none; order: -1; flex: none; }
.stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, .88); }
body.is-touch .stick { display: block; }
body.is-walk .card, body.is-walk .hint, body.is-intro .card, body.is-intro .hint, body.is-intro .mini, body.is-intro #eraSeg, body.is-intro #soundBtn, body.is-intro #helpBtn { display: none; }

/* intro */
.intro { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; color: #fff; background: radial-gradient(120% 90% at 50% 40%, rgba(15, 52, 64, .78), rgba(11, 40, 50, .97)); transition: opacity .7s; }
.intro.is-off { opacity: 0; pointer-events: none; }
.intro__in { max-width: 620px; text-align: left; }
.intro .intro__greek { font-size: clamp(30px, 5vw, 48px); color: var(--gold); line-height: 1; }
.intro h2 { font: 400 clamp(38px, 7vw, 76px)/1 var(--display); margin: 6px 0 16px; }
.intro p { font-size: 17.5px; line-height: 1.5; color: var(--foam); }
.intro .btn { margin-top: 24px; font-size: 17px; padding: 13px 24px; }
.intro__load { margin-top: 22px; color: #fff !important; }
.intro__note { margin-top: 20px; font-size: 13.5px !important; color: rgba(207, 224, 226, .78) !important; }

/* dialog */
.dlg { border: 0; padding: 0; width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 3px; background: var(--paper); color: var(--ink); overflow: auto; -webkit-user-select: text; user-select: text; }
.dlg::backdrop { background: rgba(11, 40, 50, .82); }
.dlg__in { position: relative; }
.dlg__close { position: absolute; right: 8px; top: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(249, 250, 247, .92); font-size: 26px; line-height: 1; }
.dlg img { display: block; max-width: 100%; max-height: 74dvh; margin: 0 auto; background: var(--plate); }
.dlg figure { margin: 0; background: #0b2832; }
.dlg figcaption { padding: 12px 18px 16px; font-size: 14.5px; background: var(--paper); }
.dlg__text { padding: clamp(22px, 4vw, 40px); }
.dlg__text h3 { font: 400 clamp(26px, 3.4vw, 36px)/1.1 var(--display); margin-bottom: 14px; padding-right: 40px; }
.dlg__text h4 { font: 400 22px/1.2 var(--display); margin: 20px 0 6px; }
.dlg__text ul { margin: 0; padding-left: 1.1em; }
.dlg__text li { margin: 5px 0; font-size: 15.5px; color: var(--ink-2); }

.nogl { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: var(--sea); color: #fff; text-align: center; }
.nogl p { max-width: 30em; margin-bottom: 18px; font-size: 18px; }

@media (max-width: 860px) {
  .top { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .top__title span:last-child { display: none; }
  .top__tools { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .seg button, .tool { padding: 5px 8px; font-size: 13px; }
  .mini { width: 112px; right: 10px; top: 132px; }
  .card { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 14px 14px 12px; max-height: 47dvh; overflow: auto; }
  .card__fold { display: block; }
  .card__p { font-size: 15px; }
  .card__ph button { width: 72px; height: 52px; }
  .btn--gold { margin-left: 0; }
  .hint { top: 134px; left: 10px; right: 132px; transform: none; white-space: normal; border-radius: 3px; max-width: none; }
  .walkhud__hint { display: none; }
}
@media (max-width: 420px) {
  #helpBtn { order: 5; }
  .top__back span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .intro, .hint { transition: none; } }

.mini .m-st.is-on + text { fill: #fff; }

.mini .m-base { fill: #c8a14b; opacity: .55; }
