@font-face {
  font-family: Barlow;
  src: url("/campaign/fonts/barlow-condensed-latin-900-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; }
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #100918;
  color: #fff3fa;
  color-scheme: dark;
  font: 16px system-ui, sans-serif;
}
#game { position: relative; grid-row: 2; min-width: 0; min-height: 0; }
ruffle-player { display: block; width: 100%; height: 100%; }
#boot-status {
  position: absolute; z-index: 1; inset: 0; display: grid; place-content: center;
  margin: 0; padding: 1.5rem; text-align: center; pointer-events: none;
}
[data-game-locked] #game {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(1rem, 5vw, 3rem);
  background:
    linear-gradient(90deg, #120a1aeb, #120a1a99),
    #211129 url("/campaign/img/premiere.webp") 65% center / cover no-repeat;
}
.play-lock {
  width: min(100%, 30rem);
  padding: clamp(1.4rem, 5vw, 2.8rem);
  border: 1px solid #e8a4ff66;
  border-radius: 1rem;
  background: #1b1024ed;
  box-shadow: 0 1.5rem 4rem #10031789;
}
.play-lock h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.7rem); line-height: 1.1; }
.play-lock p { margin: .85rem 0 1.5rem; color: #ead4ea; line-height: 1.5; }
.play-lock-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.play-lock-actions .play-control { padding-inline: 1rem; text-decoration: none; }
.play-lock-actions button:disabled { background: #513653; border-color: #e8a4ff44; color: #f5deef; cursor: default; }
.play-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: 3.8rem;
  padding: .42rem clamp(.62rem, 3vw, 2.4rem);
  border-bottom: 1px solid #e8a4ff42;
  background: radial-gradient(ellipse at 87% -10%, #49234b, transparent 61%), #150d20;
  box-shadow: 0 7px 25px #10031789;
}
.play-wordmark { display: inline-flex; align-items: center; gap: .55rem; flex: none; color: inherit; text-decoration: none; }
.play-brand { font: italic 900 1.7rem/.85 Barlow, Impact, sans-serif; letter-spacing: -.025em; }
.play-brand strong { color: #ff9acf; font-weight: inherit; }
.play-emblem {
  display: grid; place-items: center; width: 1.8rem; height: 1.8rem;
  border: 1px solid #f3a5db88; border-radius: 8px; background: linear-gradient(140deg, #563059, #24152f);
  color: #ffd5ef; font-size: 1.14rem;
}
.play-identity {
  min-width: 0; padding-left: 1rem; border-left: 1px solid #e7aeec36; color: #e8cfea;
  font-size: .79rem; font-weight: 700;
}
.play-identity span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.play-controls { display: flex; gap: .45rem; flex: none; margin-left: auto; }
.play-control {
  display: inline-flex; align-items: center; justify-content: center; gap: .43rem; min-height: 2.44rem;
  padding: .44rem .67rem; border: 1px solid #e1aeea43; border-radius: 8px;
  background: #210f2b; color: #fff1fb; font: 700 .8rem/1.1 system-ui, sans-serif;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.play-control:hover { background: #45244e; border-color: #efb5ee85; }
.play-control-primary { background: #f4a0d4; color: #28112b; border-color: #ffd6ee70; }
.play-control-primary:hover { background: #ffc2e8; }
.play-control:focus-visible, .play-wordmark:focus-visible { outline: 2px solid #ffe4fa; outline-offset: 3px; }
.play-icon { position: relative; width: .9rem; height: .85rem; flex: none; }
.play-icon-compact::before {
  content: ""; position: absolute; left: .19rem; top: .13rem; width: .52rem; height: .52rem;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(225deg) translate(-2px, -2px);
}
[aria-pressed="true"] .play-icon-compact::before { transform: rotate(45deg); }
.play-icon-full {
  background:
    linear-gradient(currentColor, currentColor) top left / .31rem 2px,
    linear-gradient(currentColor, currentColor) top left / 2px .31rem,
    linear-gradient(currentColor, currentColor) top right / .31rem 2px,
    linear-gradient(currentColor, currentColor) top right / 2px .31rem,
    linear-gradient(currentColor, currentColor) bottom left / .31rem 2px,
    linear-gradient(currentColor, currentColor) bottom left / 2px .31rem,
    linear-gradient(currentColor, currentColor) bottom right / .31rem 2px,
    linear-gradient(currentColor, currentColor) bottom right / 2px .31rem;
  background-repeat: no-repeat;
}
.play-compact .play-toolbar { min-height: 2.25rem; padding-block: .2rem; }
.play-compact .play-brand { font-size: 1.34rem; }
.play-compact .play-emblem { width: 1.35rem; height: 1.35rem; font-size: .9rem; border-radius: 5px; }
.play-compact .play-identity { display: none; }
.play-compact .play-control { min-height: 1.85rem; padding-block: .25rem; }
.play-expanded .play-toolbar {
  position: absolute; top: .5rem; right: .5rem; z-index: 1500;
  min-height: auto; padding: 0; border: 0; border-radius: 9px; background: transparent;
}
.play-expanded .play-wordmark, .play-expanded .play-identity, .play-expanded #play-compact { display: none; }
.play-expanded #play-fullscreen { background: #24122de8; color: #ffd7f0; box-shadow: 0 3px 14px #0008; }
@media (max-width: 550px) {
  .play-toolbar, .play-controls { gap: .35rem; }
  .play-toolbar { min-height: 3.35rem; }
  .play-brand { font-size: 1.45rem; }
  .play-identity { display: none; }
  .play-control { min-height: 2.5rem; min-width: 2.55rem; padding-inline: .5rem; }
}
@media (max-width: 370px) {
  .play-emblem { display: none; }
  .play-toolbar .play-control-label { position: absolute; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .play-control { transition: none; }
}
