/* Griz Games arcade: a lodge shelf under Mount Sentinel. */
:root {
  --bark: #241608;
  --wood: #3f2a14;
  --plank: #7a4f26;
  --parchment: #f4e4bb;
  --cream: #fff1cf;
  --gold: #f5b83d;
  --gold-light: #ffd76a;
  --routed: #eec15a;
  --dusk: #16222a;
  --font: ui-rounded, "SF Pro Rounded", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bark); }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--cream);
  background: var(--bark);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.is-playing { overflow: hidden; }

img { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- Hero: Mount Sentinel at dusk, with the trail sign ---------- */

.hero {
  position: relative;
  height: clamp(300px, 46vh, 460px);
  padding-top: var(--safe-top);
  background: var(--dusk);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.beam {
  position: absolute;
  left: 0; right: 0; bottom: -14px;
  height: 28px;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 233, 168, .22) 0 2px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 37px),
    linear-gradient(180deg, #8a5a2b, #5a3816 70%, #3f2a14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .5);
}

/* A routed-wood trail sign, mounted on the beam. */
.sign {
  position: relative;
  z-index: 2;
  margin-bottom: -34px;
  padding: 14px clamp(22px, 6vw, 44px) 16px;
  text-align: center;
  border-radius: 12px;
  background:
    repeating-linear-gradient(176deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #7a4f26, #5d3a19);
  box-shadow:
    inset 0 2px 0 rgba(255, 233, 168, .22),
    inset 0 -4px 0 rgba(0, 0, 0, .25),
    0 0 0 3px #2c1b0a,
    0 14px 28px rgba(0, 0, 0, .55);
}

.sign::before,
.sign::after {
  /* lag bolts */
  content: "";
  position: absolute;
  top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b9a27a, #4a3a26);
  box-shadow: 0 1px 0 rgba(255, 233, 168, .2);
}
.sign::before { left: 10px; }
.sign::after { right: 10px; }

.sign-title,
.sign-sub {
  margin: 0;
  color: var(--routed);
  /* carved: dark lip above, light edge below */
  text-shadow: 0 -2px 1px rgba(20, 10, 2, .65), 0 2px 0 rgba(255, 233, 168, .2);
}

.sign-title {
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
}

.sign-sub {
  margin-top: 6px;
  font-size: clamp(.95rem, 3.6vw, 1.15rem);
  font-weight: 800;
  letter-spacing: .02em;
}

/* ---------- The lodge wall and shelves ---------- */

.lodge {
  padding: 78px clamp(20px, 5vw, 48px) 40px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 132px),
    linear-gradient(180deg, #2c1c0d, var(--bark) 60%);
}

.lodge-note {
  max-width: 34ch;
  margin: 0 auto;
  text-align: center;
  color: var(--parchment);
}

.shelf {
  --gap-x: 18px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px var(--gap-x);
}

@media (min-width: 760px) {
  .shelf { --gap-x: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf .box { aspect-ratio: 3 / 4.2; }
}

.slot {
  position: relative;
  display: flex;
}

/* Each slot carries its stretch of plank; neighbors join into one shelf. */
.slot::after {
  content: "";
  position: absolute;
  left: calc(var(--gap-x) / -2 - 6px);
  right: calc(var(--gap-x) / -2 - 6px);
  bottom: -20px;
  height: 20px;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 233, 168, .3) 0 2px, transparent 2px),
    linear-gradient(180deg, #9a6532, #6b4320 65%, #4a2d13);
  box-shadow: 0 14px 16px -6px rgba(0, 0, 0, .7);
}

/* ---------- Game boxes ---------- */

.box {
  --box: #35474d;
  --box-hi: #4a5f66;
  --box-lo: #222f33;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  aspect-ratio: 3 / 4.6;
  border-radius: 9px 9px 3px 3px;
  overflow: hidden;
  color: var(--cream);
  text-decoration: none;
  background: var(--box);
  box-shadow:
    inset 7px 0 0 rgba(0, 0, 0, .22),
    inset -1px 0 0 rgba(255, 255, 255, .08),
    0 6px 8px rgba(0, 0, 0, .45);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
  touch-action: manipulation;
  container-type: inline-size;  /* titles scale with the box, so long names still fit */
}

.box::before {
  /* gold trim around the box face */
  content: "";
  position: absolute;
  inset: 6px 6px 6px 12px;
  z-index: 2;
  border: 1.5px solid rgba(245, 184, 61, .55);
  border-radius: 5px;
  pointer-events: none;
}

.box[data-theme="maroon"] { --box: #6e1630; --box-hi: #932443; --box-lo: #430c1d; }
.box[data-theme="forest"] { --box: #123d2c; --box-hi: #1f6045; --box-lo: #0a2519; }
.box[data-theme="navy"]   { --box: #1f2b5c; --box-hi: #33458a; --box-lo: #121a3d; }
.box[data-theme="slate"]  { --box: #35474d; --box-hi: #4a5f66; --box-lo: #222f33; }
.box[data-theme="bronze"] { --box: #7a5214; --box-hi: #a8741f; --box-lo: #4a300a; }

a.box:hover { transform: translateY(-5px); box-shadow: inset 7px 0 0 rgba(0, 0, 0, .22), 0 14px 16px rgba(0, 0, 0, .45); }
a.box:active { transform: translateY(-1px) scale(.98); transition-duration: .06s; }

.box-art {
  position: relative;
  flex: 1;
  min-height: 0;
  background: radial-gradient(120% 90% at 50% 25%, var(--box-hi), var(--box-lo));
}

.box-art img {
  position: absolute;
  inset: 18% 8% 0;
  width: 84%;
  height: 82%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4));
}

.box-art .box-badge {
  /* default spot for any new game's accent; tune per game below */
  inset: auto;
  top: 8%;
  right: 8%;
  width: 26%;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45));
}

/* Per-game accent placement. */
.box[data-id="grizcrush"] .box-badge { width: 26%; left: 9%; top: 9%; transform: rotate(-16deg); }
.box[data-id="angrygriz"] .box-art img:first-child { inset: 22% 22% 0 4%; width: 74%; height: 78%; }
.box[data-id="angrygriz"] .box-badge { width: 38%; right: 5%; top: 8%; transform: rotate(22deg); }
.box[data-id="montematch"] .box-art img:first-child { inset: 24% 10% 0; width: 80%; height: 76%; }
.box[data-id="montematch"] .box-badge { width: 24%; left: 52%; top: 9%; transform: translateX(-50%) rotate(-8deg); }
/* CrossyGriz: one road band across the forest background; Monte waits at the near curb. */
.box[data-id="crossygriz"] .box-art img:first-child { inset: auto; left: -25%; top: 12%; width: 150%; max-width: none; height: auto; object-fit: fill; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.box[data-id="crossygriz"] .box-badge { width: 48%; left: 50%; right: auto; top: auto; bottom: -1px; transform: translateX(-50%); }
/* Keep the road inside the gold trim (trim is inset 6px, 12px on the spine side). */
.box[data-id="crossygriz"] .box-art { clip-path: inset(6px 6px 0 12px round 5px 5px 0 0); }
.box[data-id="grizzlyflow"] .box-art img:first-child { inset: 7% 6% 5%; width: 88%; height: 88%; object-position: center; }
.box[data-id="grizzlydiamond"] .box-art img:first-child { inset: 7% 6% 5%; width: 88%; height: 88%; object-position: center; }

.box-label {
  position: relative;
  z-index: 1;
  padding: 10px 14px 14px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .3));
}

.box-title {
  margin: 0;
  font-size: clamp(.95rem, 10cqi, 1.4rem);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.box-tagline {
  margin: 4px 0 10px;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 241, 207, .82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.box-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px 6px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 900;
  color: var(--wood);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 -3px 0 rgba(138, 90, 22, .55), 0 2px 0 rgba(0, 0, 0, .3);
}

.box-play svg { width: 12px; height: 12px; }

/* Coming soon: dimmed box with a paper tag tied on. */
.box.is-soon .box-art img { inset: 10% 8% 0; height: 90%; filter: grayscale(.5) brightness(.72) contrast(1.05); }
.box.is-soon .box-workshop {
  display: inline-block;
  font-size: .85rem;
  font-weight: 800;
  color: rgba(255, 241, 207, .6);
  padding: 7px 0 6px;
}

.tag {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: -6px;
  padding: 6px 12px 6px 18px;
  font-size: .78rem;
  font-weight: 900;
  color: var(--wood);
  background: var(--parchment);
  border-radius: 3px 6px 6px 3px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  transform: rotate(8deg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .4);
}

.tag::before {
  /* eyelet */
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--box-lo, #222f33);
}

/* The one load moment: boxes set down onto the shelf. */
@media (prefers-reduced-motion: no-preference) {
  .slot .box { animation: set-down .55s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
}

@keyframes set-down {
  0%   { transform: translateY(-36px); opacity: 0; }
  60%  { transform: translateY(3px); opacity: 1; }
  100% { transform: translateY(0); }
}

/* ---------- The lodge lock (hangs from the sign until 1893 is rolled in) ---------- */

body.is-locked .lodge { min-height: calc(100dvh - clamp(300px, 46vh, 460px)); }

.lock {
  position: relative;
  z-index: 1;                 /* below the sign, so the shackle disappears behind it */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: -62px;
  padding-bottom: 24px;
  text-align: center;
}

.lock[hidden] { display: none; }

.padlock {
  position: relative;
  width: min(300px, 84vw);
  padding-top: 92px;
}

.shackle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 58%;
  height: 150px;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  border: 20px solid #9aa6aa;
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
  /* steel: light along the top, darker down the legs */
  border-top-color: #c8d1d4;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), 0 6px 10px rgba(0, 0, 0, .45);
}

.lock-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-radius: 26px 26px 36px 36px;
  background:
    radial-gradient(90% 60% at 28% 12%, rgba(255, 233, 168, .9), transparent 55%),
    linear-gradient(180deg, #e9b949, #c48f2c 55%, #8a5e16);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .45),
    inset 0 -7px 0 rgba(0, 0, 0, .22),
    0 0 0 3px #4a3112,
    0 18px 30px rgba(0, 0, 0, .55);
}

.lock-paw {
  width: 34px;
  height: 34px;
  opacity: .35;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.4);
}

.wheels {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #1b120a;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 241, 207, .45);
}

.wheels::after {
  /* the reading window across the middle row */
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  top: calc(8px + 36px);
  height: 36px;
  border-block: 2px solid rgba(245, 184, 61, .55);
  border-radius: 4px;
  pointer-events: none;
}

.drum {
  width: 52px;
  height: 108px;
  overflow: hidden;
  border-radius: 6px;
  /* a rolled cylinder: dark at the edges, lit in the middle */
  background: linear-gradient(180deg, #0f0a05, #3b2c1c 28%, #6b5536 50%, #3b2c1c 72%, #0f0a05);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.drum:active { cursor: grabbing; }
.drum:focus-visible { outline-offset: 2px; }

.strip {
  display: grid;
  grid-auto-rows: 36px;
  place-items: center;
}

.strip .n {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--cream);
  opacity: .38;
  transform: scaleY(.78);
  font-variant-numeric: tabular-nums;
}

.strip .n.is-current {
  font-size: 1.9rem;
  opacity: 1;
  transform: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .5);
  transition: color .2s, text-shadow .2s;
}

.lock-hint {
  margin: 4px 0 0;
  max-width: 30ch;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--parchment);
  text-wrap: balance;
}

.lock-pull {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  color: var(--wood);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 -3px 0 rgba(138, 90, 22, .55), 0 3px 0 rgba(0, 0, 0, .35);
  cursor: pointer;
  touch-action: manipulation;
}

.lock-pull:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(138, 90, 22, .55); }

/* Right code: digits light up and the body clicks down off the shackle... */
.lock.is-open .strip .n.is-current { color: var(--gold-light); text-shadow: 0 0 12px rgba(255, 215, 106, .8); }
.lock.is-open .lock-body { transform: translateY(18px); }
.lock.is-open .lock-pull { opacity: 0; pointer-events: none; }
.lock.is-open .lock-hint { transform: translateY(22px); }

/* ...then falls away, and the shackle swings loose. */
.lock.is-dropping .lock-body { transform: translateY(240px) rotate(14deg); opacity: 0; }
.lock.is-dropping .shackle { transform: translateX(-50%) rotate(-10deg); opacity: 0; }
.lock.is-dropping .lock-hint { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .lock-body { transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
  .lock.is-dropping .lock-body { transition: transform .5s cubic-bezier(.5, 0, .9, .4), opacity .5s ease-in; }
  .lock.is-dropping .shackle,
  .lock.is-dropping .lock-hint { transition: transform .45s ease-in, opacity .45s ease-in; }
  .lock-hint { transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
  .lock-pull { transition: opacity .2s; }
  .padlock.is-wrong .lock-body { animation: rattle .42s ease-in-out; }
}

@keyframes rattle {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px) rotate(-2deg); }
  40% { transform: translateX(8px) rotate(2deg); }
  60% { transform: translateX(-6px) rotate(-1deg); }
  80% { transform: translateX(4px); }
}

/* ---------- 404: off the trail ---------- */

.lost {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 20px calc(32px + var(--safe-bottom));
  text-align: center;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 132px),
    linear-gradient(180deg, #2c1c0d, var(--bark) 60%);
}

.lost .sign { margin-bottom: 0; }

.lost-note {
  margin: 0;
  max-width: 32ch;
  text-wrap: balance;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--parchment);
}

.lost-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--wood);
  text-decoration: none;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 -3px 0 rgba(138, 90, 22, .55), 0 3px 0 rgba(0, 0, 0, .35);
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px calc(28px + var(--safe-bottom));
  background: var(--bark);
  color: rgba(244, 228, 187, .6);
  font-size: .82rem;
  font-weight: 600;
}

.foot p { margin: 0; }
.foot-heart { flex: none; }

/* ---------- Player ---------- */

.player {
  --box: #35474d;
  --box-hi: #4a5f66;
  --box-lo: #222f33;
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  background: var(--bark);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}

.player[hidden] { display: none; }
.player[data-theme="maroon"] { --box: #6e1630; --box-hi: #932443; --box-lo: #430c1d; }
.player[data-theme="forest"] { --box: #123d2c; --box-hi: #1f6045; --box-lo: #0a2519; }
.player[data-theme="navy"]   { --box: #1f2b5c; --box-hi: #33458a; --box-lo: #121a3d; }
.player[data-theme="slate"]  { --box: #35474d; --box-hi: #4a5f66; --box-lo: #222f33; }
.player[data-theme="bronze"] { --box: #7a5214; --box-hi: #a8741f; --box-lo: #4a300a; }

@media (prefers-reduced-motion: no-preference) {
  .player.is-opening { animation: player-open .32s var(--ease-out) both; }
  .player.is-closing { animation: player-close .2s ease-in both; }
}

@keyframes player-open {
  from { transform: scale(.35); opacity: 0; border-radius: 24px; }
  to   { transform: scale(1); opacity: 1; border-radius: 0; }
}

@keyframes player-close {
  to { transform: scale(.94); opacity: 0; }
}

.player-bar {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: calc(6px + var(--safe-top)) 10px 6px;
  background: linear-gradient(180deg, #3a250f, var(--bark));
  border-bottom: 2px solid rgba(245, 184, 61, .6);
}

.player-back,
.player-full {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  color: var(--cream);
  background: rgba(255, 241, 207, .1);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.player-back { justify-self: start; padding: 0 14px 0 8px; }
.player-full { justify-self: end; justify-content: center; width: 36px; color: rgba(255, 241, 207, .7); }
.player-back:hover, .player-full:hover { background: rgba(255, 241, 207, .18); }

.player-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: var(--routed);
  white-space: nowrap;
}

.player-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.player-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--box-lo);
  visibility: hidden;
}

.player.is-ready .player-frame { visibility: visible; }

.loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(90% 70% at 50% 40%, var(--box-hi), var(--box-lo));
  transition: opacity .3s ease, visibility .3s;
}

.player.is-ready .loader { opacity: 0; visibility: hidden; }

.loader-art {
  width: min(46vw, 210px);
  border-radius: 14px;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45));
}

@media (prefers-reduced-motion: no-preference) {
  .loader-art { animation: hop 1.1s var(--ease-out) infinite; }
}

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-14px); }
}

.loader-title {
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.loader-bar {
  width: min(70vw, 280px);
  height: 12px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

.player.is-loading .loader-bar span { width: 82%; transition: width 2.4s cubic-bezier(.1, .7, .3, 1); }
.player.is-loaded .loader-bar span { width: 100%; transition: width .25s ease-out; }
.player.is-error .loader-bar { display: none; }
.player.is-error .loader-art { animation: none; filter: grayscale(.7) drop-shadow(0 12px 14px rgba(0, 0, 0, .45)); }

.loader-note {
  max-width: 32ch;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 241, 207, .85);
}

.loader-note p { margin: 0 0 12px; }

.loader-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.loader-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  color: var(--wood);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 -3px 0 rgba(138, 90, 22, .55);
  text-decoration: none;
  cursor: pointer;
}

.loader-action.is-quiet {
  color: var(--cream);
  background: rgba(255, 241, 207, .14);
  box-shadow: none;
}
