:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #141515;
  color: #f3f4ed;
  --accent: #dde764;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 85% 65%, #302323, transparent 58%), #141515;
}
.profile { width: min(100% - 2rem, 43rem); margin: auto; padding-block: 1rem 2rem; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff32;
  padding-bottom: .75rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.age { border: 1px solid #ffffff55; border-radius: 2rem; padding: .35rem .65rem; letter-spacing: 0; }
.feature { display: grid; gap: 1.25rem; align-items: center; animation: appear 500ms ease-out both; }
.portrait {
  margin: 0 auto;
  width: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 56svh;
  background: linear-gradient(155deg, #343532, #1c1d1b 70%);
  border: 1px solid #ffffff24;
  border-radius: .6rem;
}
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(5rem, 23vw, 12rem); font-weight: 900; color: #ffffff19; }
.portrait img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0;
}
.portrait img.ready { opacity: 1; }
.portrait img[hidden] { display: none; }
.portrait::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, #0c0d0ce3); pointer-events: none; }
figcaption, .gallery { position: absolute; z-index: 1; bottom: .75rem; }
figcaption { left: .9rem; font-size: .875rem; font-weight: 650; }
.gallery { right: .6rem; display: flex; bottom: .25rem; }
.gallery[hidden] { display: none; }
.gallery button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.gallery button::before { content: ""; width: 1.1rem; height: .23rem; border-radius: 1rem; background: #ffffff8c; }
.gallery button[aria-pressed="true"]::before { background: var(--accent); }
.role { margin: 0 0 .5rem; color: #c1c2b8; font-size: .875rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0 0 1.25rem; font-size: clamp(3.1rem, 10vw, 5.3rem); font-family: Georgia, serif; font-weight: 500; line-height: .94; letter-spacing: -.055em; }
h1 span { color: #e6aaa5; display: block; }
.continue { display: grid; place-items: center; min-height: 3.4rem; border-radius: .4rem; background: var(--accent); color: #171908; font-weight: 800; text-decoration: none; transition: background-color 180ms ease; }
.continue:hover { background: #eff78b; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 48rem) {
  .profile { padding-top: 2rem; }
  .portrait { aspect-ratio: 5 / 4; max-height: 58svh; }
}
@keyframes appear { from { opacity: 0; transform: translateY(.4rem); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.masthead {
  position: relative;
  padding-bottom: 1rem;
}
.masthead::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #a84d47 0 3rem, #41423c 3rem 100%);
}
.portrait { background: #242523; }
.placeholder {
  background: radial-gradient(ellipse at 50% 68%, #663435 0%, #3d2c2c 43%, #181919 78%);
}
.station-doors {
  position: absolute;
  inset: 17% 15% 4%;
  border: 3px solid #b7646064;
  border-bottom: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, #121313 49.8% 50.2%, transparent 50.2%),
    repeating-linear-gradient(#262726 0 19px, #171818 19px 21px);
  box-shadow: 0 0 2rem #d3726945;
}
.station-light {
  position: absolute;
  inset: 14% 43% auto;
  height: .42rem;
  border-radius: 1rem;
  background: #f2a19a;
  box-shadow: 0 0 1.25rem .45rem #b4514b;
  animation: station-glow 3s ease-in-out infinite alternate;
}
@keyframes station-glow { from { opacity: .48; } to { opacity: 1; } }
.age-gate {
  border: 1px solid #dde7645c;
  border-radius: .65rem;
  padding: .8rem;
  background: #1e201d;
}
.age-gate h2 { margin: 0; font-size: 1.05rem; color: var(--accent); }
.age-gate p { margin: .25rem 0 .75rem; color: #d0d1c8; font-size: 1rem; }
.continue {
  background-image: linear-gradient(115deg, transparent 33%, #fff5 50%, transparent 67%);
  background-size: 280% 100%;
  background-position: 100% 0;
  animation: button-shine 2.8s linear infinite;
}
@keyframes button-shine {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (min-width: 48rem) { .age-gate { max-width: 29rem; padding: 1rem; } }

.age-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.age-screen[hidden] { display: none; }
.age-screen .age-gate {
  width: min(100%, 24rem);
  padding: 1.5rem;
  text-align: center;
  animation: appear 550ms ease-out both;
}
.age-screen h1 { font-size: 3.75rem; color: var(--accent); margin-bottom: .9rem; }
.age-screen p { margin-bottom: 1.25rem; }
.age-screen button { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; }

.portrait { touch-action: pan-y pinch-zoom; }
.portrait img { user-select: none; -webkit-user-drag: none; }
.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0 0 .2rem;
  border: 1px solid #fff7;
  border-radius: 50%;
  background: #141515dc;
  color: white;
  cursor: pointer;
  font: 2rem/1 system-ui, sans-serif;
}
.gallery-arrow[hidden] { display: none; }
.gallery-arrow.previous { left: .65rem; }
.gallery-arrow.next { right: .65rem; }
a.continue { display: flex; align-items: center; justify-content: center; gap: .65rem; }

.age-actions { display: grid; grid-template-columns: 2fr 1fr; gap: .65rem; }
.age-screen .decline {
  min-height: 3.4rem;
  border: 1px solid #ffffff55;
  border-radius: .4rem;
  background: transparent;
  color: inherit;
}
.age-screen .decline:hover { background: #ffffff13; }
#browser-help { color: #d0d1c8; }
