/* =====================================================================
   A Tale of Light - the home page (index.html). Loaded last; reuses the
   brand tokens in style.css.
   ===================================================================== */

:root { --night: #05051c; }

/* ---------- First screen: the game moving behind the title ----------
   The hero sets no z-index, so it makes no stacking context: the trailer
   layer (z 8) covers the nav (z 5, style.css) as well as the hero. */
/* 16:9 by the width, but never taller than the window: "Wishlist on Steam"
   is on the first screen without scrolling, even on a short laptop screen or
   a phone held sideways (where the 560px minimum gives way too). */
.hero {
  position: relative;
  height: clamp(560px, 56.25vw, 900px);
  height: min(clamp(560px, 56.25vw, 900px), 100vh);
  height: min(clamp(560px, 56.25vw, 900px), 100svh);
  overflow: hidden;
  background: #000;
  color: var(--light);
  text-align: center;
}
.hero__loop video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  display: block;
}
/* Two shades over the loop: one under the nav, so its links read cleanly and
   the game's own words under them (the combat log, the party list) do not
   show through, and one at the foot under the title and the buttons.
   --under-nav is the nav's height; on a narrow screen its links wrap to a
   second row. */
.hero__scrim {
  --under-nav: 64px;
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5, 5, 28, 0.96) 0, rgba(5, 5, 28, 0.9) var(--under-nav),
      rgba(5, 5, 28, 0) calc(var(--under-nav) + 72px)),
    linear-gradient(to bottom, rgba(5, 5, 28, 0) 30%, rgba(5, 5, 28, 0.6) 58%,
      rgba(5, 5, 28, 0.94) 82%, #05051c 100%);
}
/* The nav's links wrap to a second row below about 568px (measured). */
@media (max-width: 580px) {
  .hero__scrim { --under-nav: 104px; }
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 clamp(16px, 4vw, 48px) clamp(30px, 4.5vw, 64px);
}
.hero__content p { margin: 0; }
.hero__kicker {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--sun-gold);
}
.hero__title { margin: 0; width: 100%; display: flex; justify-content: center; }
.hero__wordmark {
  width: min(640px, 88%, 90vh);   /* for a browser without svh, which drops the next line */
  width: min(640px, 88%, 90svh); height: auto;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.85));
}
.hero__tagline {
  font-family: var(--font-fell); font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.3; color: var(--light);
}
.hero__tagline span { color: var(--sun-gold); }
.hero__line {
  max-width: 560px;
  font-family: var(--font-fell); font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.45; color: #d9d4ee;
}
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px;
}
.hero__wish, .hero__trailer {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; border-radius: 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.hero__wish {
  padding: 0 30px;
  background: var(--sun-gold); border: 1px solid #c99a0e; color: #1a1206;
  box-shadow: 0 6px 22px rgba(253, 206, 28, 0.25);
}
.hero__wish:hover, .hero__wish:focus-visible {
  color: #1a1206; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(253, 206, 28, 0.4);
}
.hero__trailer {
  gap: 10px; padding: 0 26px; cursor: pointer;
  background: rgba(14, 11, 8, 0.72); border: 1px solid rgba(253, 206, 28, 0.6);
  color: var(--sun-soft);
}
.hero__trailer:hover, .hero__trailer:focus-visible {
  background: rgba(30, 22, 10, 0.85); transform: translateY(-2px);
}
.hero__trailer svg { flex: none; }

/* The round buttons: pause the loop, close the trailer. */
.hero__pause, .hero__close {
  position: absolute; width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; color: var(--sun-soft);
}
.hero__pause {
  right: 16px; bottom: 16px; z-index: 6;
  background: rgba(12, 9, 6, 0.78); border: 1px solid rgba(253, 206, 28, 0.5);
}
.hero__pause[hidden] { display: none; }
.hero__icon-play { display: none; }
.hero__pause.is-paused .hero__icon-play { display: block; }
.hero__pause.is-paused .hero__icon-pause { display: none; }
.hero.is-trailer .hero__pause { visibility: hidden; }

.hero__wish:focus-visible, .hero__trailer:focus-visible,
.hero__pause:focus-visible, .hero__close:focus-visible {
  outline: 2px solid var(--sun-gold); outline-offset: 3px;
}

/* The trailer, in place of the loop, with sound and its own controls. */
.hero__player {
  position: absolute; inset: 0; z-index: 8;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.hero__player video {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #000;
}
.hero__close {
  top: 16px; right: 16px;
  background: rgba(12, 9, 6, 0.85); border: 1px solid rgba(253, 206, 28, 0.6);
}

/* Narrow enough that the buttons reach the pause button's column (the pair
   is about 520px wide, centered; the pause button takes the last 60px): lift
   them clear of it. Narrower still, they stack at one width. */
@media (max-width: 720px) {
  .hero__content { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .hero__wish, .hero__trailer { width: min(100%, 280px); padding: 0 16px; }
}
/* A short window (a phone held sideways): tighter, and the one-line pitch
   gives way so the title clears the nav. */
@media (max-height: 520px) {
  .hero__content { gap: 8px; }
  .hero__actions { margin-top: 2px; }
}
@media (max-height: 420px) {
  .hero__line { display: none; }
}

/* ---------- Console or Immersive: one scene both ways ----------
   The console's capture under, Immersive View over it, clipped at the gold
   line (home.js moves the clip and the line with the range input, which lies
   invisible over the whole frame so the keyboard and screen readers work). */
.views { padding: clamp(52px, 7vw, 104px) clamp(16px, 4vw, 48px) clamp(56px, 7vw, 110px); }
.views__inner, .party__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.views__head, .party__head {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.views__head .section-head__eyebrow, .party__head .section-head__eyebrow {
  margin: 0; font-size: 12px; letter-spacing: 0.3em; color: var(--sun-gold);
}
.views__title, .what__title, .party__title {
  margin: 0; font-weight: 600; font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.15; color: var(--light);
}
.views__title::after, .what__title::after, .party__title::after {
  content: ""; display: block; width: 72px; height: 1px; margin: 14px auto 0;
  background: var(--sun-gold); opacity: 0.7;
}
.views__lead, .party__lead {
  margin: 0; max-width: 620px;
  font-family: var(--font-fell); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: #c9c4e2;
}
.views__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 8px;
  overflow: hidden; border-radius: 6px; background: #000;
  cursor: ew-resize; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  border: 1px solid rgba(253, 206, 28, 0.5);
  box-shadow: 0 0 0 5px #120d08, 0 0 0 6px rgba(253, 206, 28, 0.22), 0 28px 70px rgba(0, 0, 0, 0.65);
}
.views__scene { position: absolute; inset: 0; margin: 0; animation: views-in 0.35s ease; }
.views__scene[hidden] { display: none; }
.views__scene img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; -webkit-user-drag: none;
}
.views__over { clip-path: inset(0 0 0 50%); }
@keyframes views-in { from { opacity: 0; } to { opacity: 1; } }
.views__label {
  position: absolute; top: 12px; z-index: 3; pointer-events: none;
  padding: 6px 12px; border-radius: 3px;
  background: rgba(12, 9, 6, 0.85); border: 1px solid rgba(253, 206, 28, 0.5);
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sun-soft);
  transition: opacity 0.2s;
}
.views__label--console { left: 12px; }
.views__label--immersive { right: 12px; }
.views__label.is-gone { opacity: 0; }
.views__line {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2;
  width: 2px; margin-left: -1px; pointer-events: none;
  background: var(--sun-gold); box-shadow: 0 0 14px rgba(253, 206, 28, 0.75);
}
.views__knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px;
  transform: translate(-50%, -50%); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #14100c; border: 2px solid var(--sun-gold); color: var(--sun-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.views__frame.is-focused .views__knob {
  box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--sun-gold), 0 4px 14px rgba(0, 0, 0, 0.6);
}
/* Here for the keyboard and screen readers only: the frame takes the
   pointer (home.js), so a vertical swipe scrolls the page. */
.views__range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none;
}
.views__caption {
  margin: 0; min-height: 3em; max-width: 720px; text-align: center;
  font-family: var(--font-fell); font-style: italic;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--sun-soft);
}
.views__picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.views__pick {
  min-height: 46px; padding: 10px 24px; border-radius: 4px; cursor: pointer;
  border: 1px solid rgba(253, 206, 28, 0.45); background: rgba(16, 12, 8, 0.85);
  font-family: var(--font-fell); font-size: 18px; line-height: 1.2; color: #f3ead6;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.views__pick:hover { border-color: var(--sun-gold); }
.views__pick[aria-pressed="true"] {
  background: #e7d8b4 url("../img/parchment-2d831425.jpg") center / cover;
  border-color: var(--sun-gold); color: #2a1c0c;
  box-shadow: 0 0 0 1px rgba(253, 206, 28, 0.5), 0 6px 18px rgba(0, 0, 0, 0.45);
}
.views__pick:focus-visible { outline: 2px solid var(--sun-gold); outline-offset: 3px; }
.views__more { margin: 6px 0 0; }
.views__more a {
  font-family: var(--font-display); font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.08em; color: var(--sun-gold);
  border-bottom: 1px solid rgba(253, 206, 28, 0.45); padding-bottom: 0.12em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.views__more a:hover { color: var(--light); border-color: var(--light); }
.views__more a:focus-visible { outline: 2px solid var(--sun-gold); outline-offset: 4px; }
@media (max-width: 560px) {
  .views__label { top: 8px; padding: 4px 8px; font-size: 10px; letter-spacing: 0.12em; }
  .views__label--console { left: 8px; }
  .views__label--immersive { right: 8px; }
  .views__knob { width: 40px; height: 40px; }
  .views__pick { padding: 10px 18px; font-size: 17px; }
}

/* ---------- What you do: four short clips ----------
   Two columns, one on a phone. Each clip sits in a small copy of the slider's
   gold-rimmed frame; home.js plays it while it is on screen and gives it a
   pause button like the first screen's. A clip still to be recorded shows a
   still in its place. */
.what { padding: clamp(40px, 5vw, 80px) clamp(16px, 4vw, 48px) clamp(56px, 7vw, 110px); }
.what__inner { max-width: 1180px; margin: 0 auto; }
.what__title { text-align: center; margin-bottom: clamp(28px, 4vw, 52px); }
.what__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 56px) clamp(20px, 3vw, 36px);
}
.what__item { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.what__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 6px; background: #000;
  border: 1px solid rgba(253, 206, 28, 0.45);
  box-shadow: 0 0 0 4px #120d08, 0 0 0 5px rgba(253, 206, 28, 0.18), 0 18px 44px rgba(0, 0, 0, 0.55);
}
.what__media video, .what__still, .what__media .clip__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.what__heading {
  margin: 12px 0 0; font-weight: 600; font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.25; color: var(--sun-soft);
}
.what__text {
  margin: 0; max-width: 36em;
  font-family: var(--font-fell); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: #c9c4e2;
}
.what__pause {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 9, 6, 0.78); border: 1px solid rgba(253, 206, 28, 0.5); color: var(--sun-soft);
}
.what__pause .what__icon-play { display: none; }
.what__pause.is-paused .what__icon-play { display: block; }
.what__pause.is-paused .what__icon-pause { display: none; }
.what__pause:focus-visible { outline: 2px solid var(--sun-gold); outline-offset: 3px; }
@media (max-width: 760px) {
  .what__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- The Tale, beside one picture of the Path ----------
   The story on the left, the Path on the right; on a phone the Path comes
   under the story. The Path reads top to bottom as the mountain does:
   Númalor at the summit, Sóphiel halfway, Sómariel at the foot. Sómariel is
   lit, the two above it are dark, and a drawn switchback joins each picture
   to the next (the pictures alternate sides, so it crosses between them). */
.tale {
  background: radial-gradient(120% 80% at 50% 0%, #0a0a30 0%, var(--night) 70%);
  padding: clamp(52px, 7vw, 104px) clamp(16px, 4vw, 48px) clamp(56px, 7vw, 110px);
}
.tale__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.tale .tale__story { max-width: 620px; margin: 0; text-align: left; }
.tale .pitch__eyebrow { font-size: 12px; letter-spacing: 0.3em; color: var(--sun-gold); }

.path { margin: 0; display: flex; flex-direction: column; }
.path__title {
  margin: 0 0 18px; text-align: center;
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--sun-gold);
}
.path__city {
  display: grid; grid-template-columns: minmax(0, 1fr) 52%;
  gap: 4%; align-items: center;
}
.path__view {
  grid-column: 2; grid-row: 1;
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px; background: #000;
  border: 1px solid rgba(253, 206, 28, 0.3);
  box-shadow: 0 0 0 3px #120d08, 0 14px 34px rgba(0, 0, 0, 0.6);
}
.path__label { grid-column: 1; grid-row: 1; text-align: right; }
.path__label p { margin: 0; }
/* Sóphiel, halfway up: the picture on the left, the words on the right. */
.path__city:nth-of-type(2) { grid-template-columns: 52% minmax(0, 1fr); }
.path__city:nth-of-type(2) .path__view { grid-column: 1; }
.path__city:nth-of-type(2) .path__label { grid-column: 2; text-align: left; }

.path__emblem {
  display: inline-block; width: clamp(48px, 5vw, 64px); height: auto; margin-bottom: 8px;
  border-radius: 50%; border: 1px solid rgba(253, 206, 28, 0.45);
  box-shadow: 0 0 22px rgba(253, 206, 28, 0.2), 0 6px 18px rgba(0, 0, 0, 0.6);
}
.path__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.2; color: var(--light);
}
.path__aspect {
  margin-top: 2px !important;
  font-family: var(--font-fell); font-style: italic;
  font-size: clamp(16px, 1.3vw, 18px); line-height: 1.3; color: var(--sun-soft);
}
.path__status {
  margin-top: 8px !important;
  font-family: var(--font-display); font-size: 11px; line-height: 1.5;
  letter-spacing: 0.14em; text-transform: uppercase; color: #9d98bd;
  text-wrap: balance;
}

/* The two cities to come: dark, and quieter words. */
.path__city--planned .path__view { filter: brightness(.45) saturate(.5); border-color: rgba(247, 221, 134, 0.18); }
.path__city--planned .path__emblem { filter: brightness(.6) saturate(.5); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6); }
.path__city--planned .path__name { color: #b9b4d4; }
.path__city--planned .path__aspect { color: #a59e8a; }

/* Sómariel: lit, with its gate open now. */
.path__city--lit .path__view {
  border-color: rgba(253, 206, 28, 0.7);
  box-shadow: 0 0 0 3px #120d08, 0 0 0 4px rgba(253, 206, 28, 0.35), 0 0 46px rgba(253, 206, 28, 0.22), 0 14px 34px rgba(0, 0, 0, 0.6);
}
.path__city--lit .path__name { color: var(--sun-gold); text-shadow: 0 0 18px rgba(253, 206, 28, 0.35); }
.path__city--lit .path__status { color: var(--sun-gold); }

/* The switchback between two pictures: it leaves the top of one and reaches
   the bottom of the next, gold where it leaves Sómariel and fading as it
   climbs into the dark. */
.path__line { display: block; width: 100%; height: clamp(40px, 4.5vw, 56px); overflow: visible; }
.path__line path {
  fill: none; stroke: var(--sun-soft); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1 7;
}
.path__line--lit path { stroke: var(--sun-gold); filter: drop-shadow(0 0 4px rgba(253, 206, 28, 0.7)); }
.path__line--lit { -webkit-mask-image: linear-gradient(to top, #000 15%, rgba(0, 0, 0, 0.45)); mask-image: linear-gradient(to top, #000 15%, rgba(0, 0, 0, 0.45)); }
.path__line--dark { opacity: 0.35; }

@media (max-width: 900px) {
  .tale__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tale .tale__story { margin: 0 auto; text-align: center; }
  .path { width: 100%; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 420px) {
  .path__status { font-size: 10px; letter-spacing: 0.1em; }
}

/* ---------- Your Party: six adventurers by the game's own rules ----------
   home.js rolls the party (js/party-roll.js) and fills the six cards. Each
   card is a dark panel with the slider's gold rim: the face, the name and the
   race and class on a strip of parchment, then the five attributes as a
   number and a bar out of the game's hard cap. Three across, two on a phone.
   The inner column, the head and the lead share the slider's rules above. */
.party {
  background: linear-gradient(180deg, var(--night), #05051c 30%);
  padding: clamp(52px, 7vw, 104px) clamp(16px, 4vw, 48px) clamp(56px, 7vw, 110px);
}
/* At most 1000 px across, so a face is drawn no larger than its 256 px file
   by much: about 190 px for a Human at full width. */
.party__grid {
  width: 100%; max-width: 1000px; margin-top: 8px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 32px);
}
.party__grid[hidden] { display: none; }
.party__card {
  display: flex; flex-direction: column; min-width: 0; margin: 5px;
  border-radius: 6px; overflow: hidden;
  background: linear-gradient(180deg, #0e0c26, #06051a);
  border: 1px solid rgba(253, 206, 28, 0.45);
  box-shadow: 0 0 0 4px #120d08, 0 0 0 5px rgba(253, 206, 28, 0.18), 0 18px 44px rgba(0, 0, 0, 0.55);
}
.party__card.is-new { animation: party-in 0.45s ease both; }
@keyframes party-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* The face sits on its bottom edge, scaled by its race's stature
   (css/portrait-stature.css, from the frame's data-race) as on /portraits. */
.party__frame {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1d1a48, #08071c 72%);
}
.party__face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom; display: block;
  transform-origin: center bottom;
  transform: translateY(4%) scale(calc(var(--stature, 1) * var(--stature-fit, 1)));
  transition: opacity 0.3s ease;
}
.party__face[hidden] { display: none; }
.party__face.is-loading { opacity: 0; }
.party__plate {
  padding: 10px 12px 9px; text-align: center;
  background: #e7d8b4 url("../img/parchment-2d831425.jpg") center / cover;
  border-top: 1px solid rgba(253, 206, 28, 0.6); border-bottom: 1px solid rgba(253, 206, 28, 0.6);
}
.party__name {
  margin: 0; font-weight: 700; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.2;
  letter-spacing: 0.04em; color: #2a1c0c; overflow-wrap: anywhere;
}
.party__kind {
  margin: 2px 0 0; font-family: var(--font-fell); font-style: italic;
  font-size: clamp(15px, 1.35vw, 18px); line-height: 1.25; color: #5a3d1c;
}
.party__attrs {
  margin: 0; padding: 12px clamp(12px, 1.6vw, 18px) 14px; list-style: none;
  display: grid; gap: 7px;
}
.party__attr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px;
}
.party__label {
  font-family: var(--font-fell); font-size: clamp(14px, 1.25vw, 16px); line-height: 1.2; color: #f3ead6;
  overflow-wrap: anywhere;
}
.party__num {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.2;
  color: var(--sun-gold); font-variant-numeric: tabular-nums;
}
.party__bar {
  grid-column: 1 / -1; margin-top: 4px; height: 4px; border-radius: 2px; overflow: hidden;
  background: rgba(247, 221, 134, 0.14);
}
.party__fill {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #b88f2a, var(--sun-gold));
  box-shadow: 0 0 8px rgba(253, 206, 28, 0.35);
}
.party__status { margin: 0; }
.party__error {
  margin: 0; max-width: 620px; text-align: center;
  font-family: var(--font-fell); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--sun-soft);
}
.party__error[hidden] { display: none; }
.party__error a { color: var(--sun-gold); border-bottom: 1px solid rgba(253, 206, 28, 0.45); }
.party__actions {
  margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 28px;
}
.party__actions[hidden] { display: none; }
.party__roll {
  min-height: 46px; padding: 10px 28px; border-radius: 4px; cursor: pointer;
  background: #e7d8b4 url("../img/parchment-2d831425.jpg") center / cover;
  border: 1px solid var(--sun-gold); color: #2a1c0c;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(253, 206, 28, 0.5), 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}
.party__roll:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(253, 206, 28, 0.7), 0 8px 26px rgba(253, 206, 28, 0.3);
}
.party__roll:focus-visible { outline: 2px solid var(--sun-gold); outline-offset: 3px; }
.party__more {
  font-family: var(--font-display); font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.08em; color: var(--sun-gold);
  border-bottom: 1px solid rgba(253, 206, 28, 0.45); padding-bottom: 0.12em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.party__more:hover { color: var(--light); border-color: var(--light); }
.party__more:focus-visible { outline: 2px solid var(--sun-gold); outline-offset: 4px; }
@media (max-width: 760px) {
  .party__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .party__card { margin: 4px; box-shadow: 0 0 0 3px #120d08, 0 0 0 4px rgba(253, 206, 28, 0.18), 0 12px 30px rgba(0, 0, 0, 0.55); }
  .party__plate { padding: 8px 6px 7px; }
  .party__attrs { padding: 10px 10px 12px; gap: 6px; }
  .party__num { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__wish, .hero__trailer { transition: none; }
  .hero__wish:hover, .hero__trailer:hover { transform: none; }
  .views__scene { animation: none; }
  .views__label, .views__pick { transition: none; }
  .party__card.is-new { animation: none; }
  .party__face, .party__roll, .party__more { transition: none; }
  .party__roll:hover { transform: none; }
}
