@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../assets/fonts/nunito-cyrillic.woff2?v=63b14e3ef0") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2?v=ba344451ea") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/russo-one-cyrillic.woff2?v=ae0eadf1b0") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/russo-one-latin.woff2?v=8a6b754cd3") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #121212;
  --paper: #f6e7c4;
  --yellow: #ffe14a;
  --red: #e23c2f;
  --cyan: #3ec4e8;
  --blue: #163f74;
  --white: #fffdf6;
  --shadow: 5px 5px 0 var(--ink);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: #1b1b1b;
  background-image:
    url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAKUlEQVR42mNgGNngPxRjBUx4NGFj49X4nxgxJnL9gU0jI5Fi5AXOSAAAVl0IA+0bV+0AAAAASUVORK5CYII="),
    linear-gradient(180deg, #2a2a2a, #141414);
  background-size: 7px 7px, 100% 100%;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100%;
}

.screen-title {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
}

.title-burst {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.28), rgba(20, 20, 20, 0.55));
}

.title-burst.is-on {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.28), rgba(20, 20, 20, 0.55)),
    url("../assets/title-burst.webp?v=8bf13edf73") center / cover no-repeat;
}

.title-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(200px, 34vw) minmax(320px, 620px);
  gap: 24px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.title-hero {
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  filter: drop-shadow(8px 10px 0 #000);
  transform-origin: 50% 92%;
  animation: inspector-sway 4.8s ease-in-out infinite;
}

.title-lead {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

.title-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.title-score {
  font-family: "Russo One", sans-serif;
  text-transform: uppercase;
  margin: 0;
}

.btn-sound {
  font-size: 13px;
  padding: 8px 12px;
  flex: 0 0 auto;
}

.btn-sound.is-off {
  background: #d8d0b8;
}

.title-copy {
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 18px 20px 18px;
  transform: rotate(-0.8deg);
  max-height: 88vh;
  overflow: auto;
}

.location-card {
  appearance: none;
  text-align: left;
  border: 3px solid var(--ink);
  background: var(--white);
  padding: 8px 9px 7px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  display: grid;
  gap: 3px;
}

.location-card strong {
  font-family: "Russo One", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  line-height: 1.15;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-hud {
  font-size: 13px;
  padding: 8px 12px;
}

.stage,
.hitbox,
.hitbox.found {
  cursor: url("../assets/cursor-loupe.cur?v=b98f89efa1") 18 16, url("../assets/cursor-loupe.png?v=6025070089") 18 16, zoom-in;
}

.stamp {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.stamp-logo {
  height: clamp(28px, 3.2vw, 42px);
  width: clamp(28px, 3.2vw, 42px);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 #000;
  background: #2f6f6a;
}

.stamp span {
  background: var(--red);
  color: var(--white);
  border: 4px solid var(--ink);
  padding: 6px 10px;
  font-family: "Russo One", sans-serif;
  font-size: clamp(11px, 1.4vw, 18px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #000;
  white-space: nowrap;
}

.stamp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stamp-head img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--ink);
  flex: 0 0 auto;
}

.stamp-label {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: 3px solid var(--ink);
  padding: 2px 8px;
  font-family: "Russo One", sans-serif;
  text-transform: uppercase;
  margin-bottom: 0;
}

.debrief-points {
  margin-bottom: 10px;
}

.debrief-list .missed {
  opacity: 0.55;
}

.notebook li.missed {
  opacity: 0.7;
}

.notebook li.missed::before {
  background: #bbb;
}

.title-logo {
  display: block;
  width: clamp(76px, 8.5vw, 112px);
  height: clamp(76px, 8.5vw, 112px);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin: 0 0 12px;
  background: #2f6f6a;
}

.title-kicker {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.title-copy h1 {
  font-family: "Russo One", sans-serif;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.title-lead {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.location-card {
  appearance: none;
  text-align: left;
  border: 3px solid var(--ink);
  background: var(--white);
  padding: 10px 10px 8px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  display: grid;
  gap: 4px;
}

.location-card strong {
  font-family: "Russo One", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1.15;
}

.location-card span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.location-card em {
  font-style: normal;
  font-family: "Russo One", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-card.playable:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.location-card.locked {
  opacity: 0.62;
  background: #ece4cc;
}

.location-card.locked em {
  color: var(--red);
}

.location-card.stub {
  opacity: 0.78;
  background: #ece4cc;
  cursor: pointer;
}

.location-card.stub em {
  color: var(--blue);
}

.location-card.stub:hover {
  background: #f3ead0;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-comic {
  appearance: none;
  border: 4px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: "Russo One", sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.btn-comic:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-comic:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.screen-game {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hud {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 12px 8px;
  padding: 8px 14px;
  background: var(--yellow);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  border: 3px solid var(--ink);
  font-family: "Russo One", sans-serif;
}

.hud-brand strong,
.hud-score {
  font-family: "Russo One", sans-serif;
  text-transform: uppercase;
}

.hud-brand small,
.hud-caption {
  display: block;
  font-weight: 800;
}

.hud-score {
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 6px 12px;
  white-space: nowrap;
}

.stage-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  padding: 0 12px 12px;
  min-height: 0;
}

.stage {
  position: relative;
  width: min(calc(100% - 236px), calc((100vh - 92px) * 3 / 2));
  aspect-ratio: 3 / 2;
  border: 6px solid var(--ink);
  box-shadow: 8px 8px 0 #000;
  background: #000;
  overflow: hidden;
}

@supports (width: 1cqh) {
  .stage-wrap {
    container-type: size;
  }

  .stage {
    box-sizing: content-box;
    align-self: center;
    width: min(calc(100cqw - 248px), calc((100cqh - 12px) * 3 / 2));
  }
}

.stage-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.life-layer,
.stage-life {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.life-sprite {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.life-sparks,
.life-weld {
  mix-blend-mode: screen;
}

.life-smoke {
  opacity: 0.82;
}

.life-dust {
  mix-blend-mode: screen;
  opacity: 0.72;
}

.scene-props {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.scene-prop {
  position: absolute;
  pointer-events: none;
}

.prop-tag {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-family: "Russo One", sans-serif;
  font-size: clamp(8px, 0.9vw, 11px);
  padding: 1px 4px;
  white-space: nowrap;
  box-shadow: 1px 1px 0 #000;
}

.prop-bob {
  animation: prop-bob 2.6s ease-in-out infinite;
}

.prop-sway {
  transform-origin: 50% 0%;
  animation: prop-sway 3.2s ease-in-out infinite;
}

.prop-wobble {
  animation: prop-wobble 2.8s ease-in-out infinite;
}

.prop-gap::after,
.prop-hose::before {
  content: none;
  display: none;
}

.prop-load .prop-cable,
.prop-load .prop-pallet {
  display: none;
}

.prop-load .prop-cable {
  position: absolute;
  left: 48%;
  top: 0;
  width: 2px;
  height: 42%;
  background: #2b2b2b;
  transform-origin: top center;
  animation: prop-sway 3.6s ease-in-out infinite;
}

.prop-load .prop-pallet {
  position: absolute;
  left: 28%;
  top: 38%;
  width: 44%;
  height: 28%;
  background: #8a8f96;
  border: 2px solid #1b1b1b;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  animation: prop-sway 3.6s ease-in-out infinite;
}

.prop-flame .prop-fire {
  position: absolute;
  left: 30%;
  bottom: 8%;
  width: 28%;
  height: 55%;
  background: radial-gradient(circle at 50% 80%, #ffe14a, #e23c2f 62%, transparent 70%);
  filter: blur(0.4px);
  animation: prop-flicker 0.35s ease-in-out infinite;
}

.prop-flame .prop-fire-2 {
  left: 48%;
  width: 22%;
  height: 42%;
  animation-delay: 0.12s;
}

.prop-mist .prop-puff {
  position: absolute;
  left: 20%;
  top: 10%;
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: rgba(210, 210, 214, 0.45);
  animation: prop-rise 2.4s ease-in-out infinite;
}

.prop-mist .prop-puff-2 {
  left: 48%;
  top: 22%;
  width: 30%;
  height: 30%;
  animation-delay: 0.7s;
}

.prop-beacon .prop-lamp {
  position: absolute;
  left: 42%;
  top: 8%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffb000;
  box-shadow: 0 0 10px #ffe14a;
  animation: prop-blink 0.7s steps(2) infinite;
}

.prop-hose::before {
  content: "";
  position: absolute;
  inset: 40% 4% 28%;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.22);
}

.art-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.art-frame .hitboxes {
  pointer-events: auto;
}

@keyframes prop-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes prop-sway {
  0%,
  100% {
    transform: rotate(-1.6deg);
  }
  50% {
    transform: rotate(1.8deg);
  }
}

@keyframes prop-wobble {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}

@keyframes prop-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes prop-flicker {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.9;
  }
  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

@keyframes prop-rise {
  0% {
    transform: translateY(6px) scale(0.8);
    opacity: 0.15;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(-10px) scale(1.15);
    opacity: 0;
  }
}

@keyframes prop-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.15;
  }
}

.stage[data-scene="welding"] .stage-art,
.stage[data-scene="electro"] .stage-art,
.stage[data-scene="workshop"] .stage-art {
  animation: scene-flicker 1.6s ease-in-out infinite;
}

.hitboxes {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hitbox {
  position: absolute;
  z-index: 2;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.hitbox-head {
  border-radius: 50%;
}

.hitbox:focus,
.hitbox:focus-visible,
.hitbox:active {
  outline: none;
  box-shadow: none;
}

.hitbox.found {
  pointer-events: none;
}

.debug .hitbox {
  outline: 3px dashed #ffe14a;
  background: rgba(255, 225, 74, 0.16);
}

.notebook {
  width: 248px;
  flex: 0 0 248px;
  min-height: 0;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 #000;
  padding: 12px 14px 16px;
  transform: rotate(1.1deg);
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.notebook-hint {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  opacity: 0.72;
}

.notebook h2 {
  font-family: "Russo One", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.notebook ol {
  list-style: none;
  display: grid;
  gap: 5px;
  overflow: auto;
  min-height: 0;
  padding-right: 4px;
}

.notebook li {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  padding-left: 18px;
  position: relative;
  opacity: 0.38;
}

.notebook li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.notebook li.checked {
  opacity: 1;
}

.notebook li.checked::before {
  background: var(--red);
}

.bubble {
  position: fixed;
  z-index: 20;
  max-width: 240px;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 10px 12px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #000;
  pointer-events: none;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -14px;
  border: 8px solid transparent;
  border-top-color: var(--ink);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.modal-card {
  width: min(720px, 100%);
  background: var(--paper);
  border: 6px solid var(--ink);
  box-shadow: 10px 10px 0 #000;
  padding: 22px;
}

.popup-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.popup-inspector {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--ink);
  background: var(--cyan);
  transform-origin: 50% 80%;
  animation: inspector-nod 3.6s ease-in-out infinite;
}

.btn-hud.is-off {
  background: #d8d0b8;
}

.popup-body h2,
.debrief-card h2 {
  font-family: "Russo One", sans-serif;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.rule-cite {
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 10px;
}

.popup-body p,
.debrief-card p {
  font-weight: 800;
  line-height: 1.4;
}

.popup-body .btn-comic,
.debrief-card .btn-comic {
  margin-top: 16px;
}

.continue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.continue-actions .btn-comic {
  margin-top: 0;
}

.debrief-card {
  text-align: left;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.debrief-score {
  font-family: "Russo One", sans-serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.debrief-list {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  font-weight: 800;
  max-height: 22vh;
  overflow: auto;
}

@keyframes inspector-sway {
  0%,
  100% {
    transform: rotate(-0.7deg) translateY(0);
  }
  50% {
    transform: rotate(0.85deg) translateY(-6px);
  }
}

@keyframes inspector-nod {
  0%,
  100% {
    transform: rotate(-0.45deg);
  }
  50% {
    transform: rotate(0.55deg) translateY(-3px);
  }
}

@keyframes scene-flicker {
  0%,
  100% {
    filter: brightness(1);
  }
  42% {
    filter: brightness(1.03);
  }
  48% {
    filter: brightness(1.08);
  }
  54% {
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-hero,
  .popup-inspector,
  .stage-art,
  .scene-prop,
  .prop-load .prop-cable,
  .prop-load .prop-pallet,
  .prop-flame .prop-fire,
  .prop-mist .prop-puff,
  .prop-beacon .prop-lamp,
  .prop-gap::after {
    animation: none;
  }
}

@media (max-width: 900px) {
  .title-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .title-hero {
    max-height: 42vh;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .title-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .title-copy h1 {
    font-size: 42px;
  }

  .popup-card {
    grid-template-columns: 1fr;
  }

  .popup-inspector {
    height: 140px;
    object-position: center top;
  }

  .notebook {
    display: none;
  }

  .stage {
    width: min(100%, calc((100vh - 92px) * 3 / 2));
  }

  @supports (width: 1cqh) {
    .stage {
      width: min(calc(100cqw - 12px), calc((100cqh - 12px) * 3 / 2));
    }
  }

  .hud-caption {
    display: none;
  }
}

.challenge {
  margin: 0 0 14px;
  max-width: 560px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 14px;
  background: #071530;
  border: 1px solid rgba(243, 198, 87, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  color: #edf5ff;
}

.challenge__kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f3c657;
  font-weight: 800;
}

.challenge__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.invite {
  margin: 16px 0 4px;
  padding: 14px 12px 12px;
  text-align: center;
  border-radius: 16px;
  background: #071530;
  border: 1px solid rgba(243, 198, 87, 0.28);
  color: #edf5ff;
}

.invite__kicker {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f3c657;
  font-weight: 800;
}

.invite__lead,
.invite__note,
.invite__status {
  margin: 0 auto 12px;
  max-width: 640px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  color: #9db4d4;
}

.invite__note {
  margin-top: -4px;
  font-size: 12.5px;
  color: #ffe6a6;
}

.invite__status {
  min-height: 1.3em;
  margin: 10px 0 0;
  font-size: 13px;
  color: #ffe6a6;
}

.certificate {
  margin: 0;
}

.certificate__frame {
  width: min(100%, 760px);
  margin: 0 auto 14px;
  aspect-ratio: 8 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #123b70 0%, #071c40 42%, #030c20 100%);
  box-shadow:
    0 0 0 1px rgba(243, 198, 87, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.38);
}

.certificate__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.certificate__img[hidden] {
  display: none;
}

.certificate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 195, 245, 0.42);
  background: rgba(10, 32, 72, 0.75);
  color: #edf5ff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.share-btn:hover {
  border-color: rgba(180, 220, 255, 0.75);
  background: rgba(18, 52, 108, 0.9);
}

.share-btn.is-accent {
  color: #2a1a02;
  background: linear-gradient(180deg, #ffe6a6, #f3c657 55%, #e8a028);
  border-color: rgba(255, 233, 180, 0.8);
  box-shadow: 0 8px 18px rgba(232, 160, 40, 0.28);
}

.share-btn__icon {
  display: grid;
  place-items: center;
  flex: none;
}

.share-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
