/* The game's title screen, as a web page: its forest backdrop, its type, its colours and panels. */
@font-face { font-family: "Yatra One"; src: url(fonts/YatraOne-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Aileron"; src: url(fonts/Aileron-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aileron"; src: url(fonts/Aileron-SemiBold.otf) format("opentype"); font-weight: 600; font-display: swap; }
:root { --ink: #14110F; --parchment: #F6ECD2; --sandal: #D9C7A0; --gold: #E8C36A; --saffron: #F29A2E; --panel: rgba(20,17,15,.78); }
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; min-height: 100vh; color: var(--parchment); font: 400 17px/1.55 Aileron, -apple-system, Helvetica, Arial, sans-serif; }
.backdrop { position: fixed; inset: 0; z-index: 0; background: url(forest-hut.jpg) center 40% / cover no-repeat; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(20,17,15,.36); }
.backdrop.deep::after { background: rgba(20,17,15,.62); }
a { color: var(--saffron); }
.page { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 48px 16px 40px; }

/* The name, as on the title screen: lotus, name, overline, rule. */
.mast { text-align: center; }
.lotus { width: 52px; height: 52px; color: var(--saffron); }
h1 { font: 60px/1.05 "Yatra One", Georgia, serif; margin: 6px 0 8px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.over { color: var(--gold); font: 600 13px/1 Aileron, sans-serif; letter-spacing: .32em; text-transform: uppercase; }
.rule { width: 360px; max-width: 70%; height: 1.5px; margin: 20px auto 26px; background: rgba(232,195,106,.45); border: 0; }

/* Panels: an ink slab with a gold hairline set in from its edge. */
.panel { position: relative; background: var(--panel); border-radius: 16px; padding: 10px 18px; }
.panel::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(232,195,106,.42); border-radius: 11px; pointer-events: none; }
.columns { display: grid; grid-template-columns: 576px 380px; gap: 40px; justify-content: center; align-items: start; }
.side { display: grid; gap: 20px; }
.row { display: block; position: relative; text-align: center; padding: 9px 44px; border-radius: 12px; color: inherit; text-decoration: none; }
.row + .row { margin-top: 4px; }
.row .name { display: block; font: 24px/1.25 "Yatra One", Georgia, serif; color: var(--parchment); }
.row .line { display: block; font: 600 15px/1.35 Aileron, sans-serif; color: var(--sandal); }
.row .glyph { position: absolute; left: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; color: var(--gold); }
.row .lock { position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--gold); }
a.row:hover, a.row:focus-visible { background: rgba(242,154,46,.2); outline: 1px solid rgba(242,154,46,.9); }
a.row:hover .name, a.row:focus-visible .name { color: var(--saffron); }
.note { text-align: center; color: var(--sandal); font-size: 15px; margin: 28px auto 0; max-width: 640px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
footer { text-align: center; margin-top: 18px; font-size: 14px; color: var(--sandal); text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* The privacy page: one wide panel of reading text. */
.prose { max-width: 720px; margin: 0 auto; padding: 28px 36px 30px; }
.prose h2 { font: 22px/1.3 "Yatra One", Georgia, serif; color: var(--gold); margin: 24px 0 4px; }
.prose p { color: var(--sandal); margin: 6px 0; }
.prose .date { color: var(--gold); font-size: 14px; }

@media (max-width: 1040px) {
  .columns { grid-template-columns: minmax(0, 576px); }
  .side { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page { padding-top: 32px; }
  h1 { font-size: 46px; }
  .row { padding: 9px 36px; }
  .row .name { font-size: 21px; }
  .row .line { font-size: 14px; }
  .prose { padding: 22px 22px 24px; }
}

/* The gallery: scenes from the game, one at a time, sliding on by themselves (paused while you point at it or touch it). */
.gallery { margin: 28px auto 0; padding: 12px; max-width: 1040px; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0; border-radius: 10px; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 900; object-fit: cover; }
.gallery .dots { display: flex; justify-content: center; gap: 10px; padding: 12px 0 4px; }
.gallery .dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: transparent; cursor: pointer; }
.gallery .dots button[aria-current="true"] { background: var(--saffron); border-color: var(--saffron); }
.gallery { position: relative; }
.gallery .track { cursor: grab; user-select: none; }
.gallery .track.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery img { -webkit-user-drag: none; pointer-events: none; }
.gallery .arrow { position: absolute; top: calc(50% - 18px); width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid rgba(232,195,106,.85); background: rgba(20,17,15,.62); color: var(--parchment); cursor: pointer; display: grid; place-items: center; padding: 0; }
.gallery .arrow svg { width: 22px; height: 22px; }
.gallery .arrow:hover, .gallery .arrow:focus-visible { border-color: var(--saffron); color: var(--saffron); }
.gallery .prev { left: 24px; } .gallery .next { right: 24px; }
@media (max-width: 560px) { .gallery .arrow { width: 36px; height: 36px; margin-top: -18px; } .gallery .prev { left: 18px; } .gallery .next { right: 18px; } }
.gallery video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 900; object-fit: cover; object-position: center; pointer-events: none; background: #000; }

/* Denser on wide screens, so the gameplay carousel starts above the fold. */
@media (min-width: 561px) {
  .page { padding-top: 26px; }
  .lotus { width: 40px; height: 40px; }
  h1 { font-size: 48px; margin: 2px 0 6px; }
  .over { font-size: 12px; }
  .rule { margin: 14px auto 18px; }
  .row { padding: 6px 44px; }
  .row + .row { margin-top: 0; }
  .row .name { font-size: 20px; line-height: 1.2; }
  .row .line { font-size: 14px; }
  .row .glyph { width: 22px; height: 22px; margin-top: -11px; }
  .side { gap: 14px; }
  .note { margin-top: 18px; font-size: 14px; }
  .gallery { margin-top: 16px; }
}
