:root {
  --scale: 1;
  --page-top: #f2d6b3;
  --page-bottom: #d5e6e2;
  --ink: #182026;
  --panel: rgba(252, 248, 242, 0.94);
  --panel-border: #24333f;
  --accent: #ef3717;
  --accent-dark: #a32609;
  --shadow: rgba(24, 32, 38, 0.18);
  --muted: #63707a;
  --border:#c72208;
  --border1: #3785ff;
  --border2: #077104;
}

html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  background: #111;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

code,
pre {
  font-family: "Consolas", "Courier New", monospace;
}

.app-shell {
  width: 100%;
  height: 100%;
}

.viewport {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: #111;
}

.eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.dialog-panel,
.debug-panel {
  background: var(--panel);
  border: 3px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 18px 40px var(--shadow);
}

.stage-screen {
  width: 1440px;
  height: 1080px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
  overflow: hidden;
  background: #d9ded9;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.scene.is-active {
  opacity: 1;
  pointer-events: auto;
}

.scene-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps {
  display: none;
}

.character {
  position: absolute;
  z-index: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.10)) brightness(0.9) saturate(0.9);
  opacity: 1;
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    filter 200ms ease;
}

.character.active {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1)) brightness(1.02) saturate(1.05);
  animation: active-speaker-float 1.9s ease-in-out infinite;
}

@keyframes active-speaker-float {
  0%,
  20%,
  80%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.item {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.22));
  opacity: 1;
  transition:
    opacity 200ms ease,
    transform 160ms ease,
    filter 160ms ease;
}

.character.is-swapping,
.item.is-swapping {
  opacity: 0 !important;
}

.is-swap-clone {
  pointer-events: none;
}

.scene [data-run]:not(button):not(.is-hidden) {
  cursor: pointer;
}

.scene [data-run]:not(button):not(.is-hidden):hover,
.scene [data-run]:not(button):not(.is-hidden):focus-visible {
  transform: scale(1.09);
  filter:
    drop-shadow(0 0 0.9rem rgb(119, 173, 255))
    drop-shadow(0 0.8rem 1rem rgb(103, 36, 255));
  outline: none;
}

#return-scene {
  .ticket[data-item="ticket"] {
    position: absolute;

    bottom: 247px;
    left: 849px;

    z-index: 5;

    cursor: pointer;
  }
}
#køb-billetscene {
  .character[data-char="abigail"] {
    left: 8%;
    bottom: -10rem;
    width: 350px;
  }

  .character[data-char="alex"] {
    right: 8%;
    bottom: -7rem;
    width: 330px;
  }

  .item[data-item="backpack"] {
    left: 5%;
    bottom: 21%;
    width: 118px;
  }

  .ticket[data-item="ticket"] {
      position: absolute;

      bottom: 247px;
      left: 849px;

      z-index: 5;

      cursor: pointer;
    }
  .item[data-item="phone"] {
    right: 30%;
    bottom: 39%;
    width: 84px;
  }
}

#manden-i-toget,
  .character[data-char="mand"] {
    bottom: -2rem;
  z-index: 2;
  }
.character[data-char="mand1"] {
  bottom: -2rem;
  z-index: 2;
}
.character[data-char="faces"] {
  bottom: -2rem;
}
#IkkeBillet-scene,
.character[data-char="kontrollør"] {
  bottom: -2rem;
  z-index: 2;
}
.character[data-char="kontrollør1"] {
  bottom: -2rem;
  z-index: 2;
}

  .item[data-item="headphones"] {
    left: 37%;
    bottom: 39%;
    width: 86px;
  }

  .item[data-item="shoes"] {
    right: 36%;
    bottom: 35%;
    width: 96px;
  }

#park-scene {
  .character[data-char="abigail"] {
    left: 4%;
    bottom: -10rem;
    width: 320px;
  }

  .character[data-char="alex"] {
    left: 25%;
    bottom: -7rem;
    width: 300px;
  }

  .character[data-char="jack"] {
    right: 9%;
    bottom: -6rem;
    width: 330px;
  }

  .item[data-item="notepad"] {
    left: 56%;
    bottom: 52%;
    width: 37px;
    transform: translateX(-50%);
  }
}

#street-night-scene {
  .character[data-char="abigail"] {
    left: 2%;
    bottom: -8.5rem;
    width: 260px;
  }

  .character[data-char="alex"] {
    left: 20%;
    bottom: -5.5rem;
    width: 250px;
  }

  .character[data-char="jessica"] {
    right: 22%;
    bottom: -5.5rem;
    width: 250px;
  }

  .character[data-char="jack"] {
    right: 4%;
    bottom: -5.5rem;
    width: 260px;
  }
}

.scene-panel {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  width: min(27rem, calc(100% - 2.5rem));
  padding: 1.15rem 1.2rem;
  background: rgba(252, 248, 242, 0.82);
  border: 3px solid rgba(36, 51, 63, 0.24);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(24, 32, 38, 0.16);
  backdrop-filter: blur(12px);
}

.scene-panel--right {
  left: auto;
  right: 1.25rem;
}

.scene-panel-copy {
  line-height: 1.6;
  color: var(--ink);
}

.scene-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.scene-actions button {
  width: 100%;
}

.ending-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 4rem;
  text-align: center;
}

.ending-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 22, 28, 0.26), rgba(17, 22, 28, 0.7)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.26), transparent 48%);
}

.ending-screen > * {
  position: relative;
}

.ending-screen--good {
  color: #f7f4ee;
}

.ending-screen--rough {
  color: #fff5eb;
}

.ending-kicker {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.ending-lead {
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.7;
  text-wrap: balance;
}

.ending-card {
  width: min(44rem, 100%);
  padding: 1.8rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(18, 24, 30, 0.6);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  text-align: left;
}

.ending-screen--good .ending-card {
  background:
    linear-gradient(180deg, rgba(28, 48, 55, 0.74), rgba(19, 31, 36, 0.76)),
    rgba(18, 24, 30, 0.6);
}

.ending-screen--rough .ending-card {
  background:
    linear-gradient(180deg, rgba(62, 40, 30, 0.78), rgba(34, 22, 18, 0.82)),
    rgba(18, 24, 30, 0.6);
}

.ending-summary {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.ending-button {
  min-width: 12rem;
}

.is-hidden {
  display: none !important;
}

.debug-panel,
.dialog-panel,
.action-panel {
  position: absolute;
  z-index: 3;
}

.dialog-panel,
.action-panel,
.debug-panel {
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.story-ui {
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.story-ui.is-hidden {
  display: none;
}

.dialog-panel {
  --dialog-border-color: var(--panel-border);
  --speaker-bg: rgba(217, 109, 63, 0.12);
  position: relative;
  width: 50%;
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  border-color: var(--dialog-border-color);
  background: rgba(232, 232, 232, 0.5);
}

.speaker-label {
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background-color: rgba(221, 215, 221, 0.5);
  font-size: 1.40rem;
  font-weight: 700;
  font-family: "serif";
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f1303;
}

.dialog-text {
  font-size: 1.20rem;
  line-height: 1.65;
  font-family: Arial;
  color: #0f1303;
}

.action-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 0;
  backdrop-filter: none;
  width: min(720px, 100%);
}

.choice-list {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  width: 100%;
}

.action-panel > .primary-button {
  justify-self: center;
}

.choice-list:empty {
  display: none;
}

.primary-button,
.secondary-button,
.choice-list button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(24, 32, 38, 0.18);
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease;
}

.choice-list button {
  min-width: min(420px, 100%);
}

.primary-button,
.choice-list button {
  color: #ededed;
  font-size: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding:15px 30px;
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--panel-border);
}

.primary-button:hover,
.secondary-button:hover,
.choice-list button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #77adff, #6724ff);
}

.debug-line {
  line-height: 1.55;
  color: var(--muted);
}

.debug-panel {
  top: 1.25rem;
  right: 1.25rem;
  width: auto;
  padding: 0;
  background: rgba(252, 248, 242, 0.64);
  overflow: hidden;
}

.debug-panel summary {
  list-style: none;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.debug-panel summary::-webkit-details-marker {
  display: none;
}

.debug-panel summary::before {
  content: "+ ";
}

.debug-panel[open] {
  width: 320px;
  background: rgba(252, 248, 242, 0.78);
}

.debug-panel[open] summary {
  border-bottom: 1px solid rgba(36, 51, 63, 0.14);
}

.debug-panel[open] summary::before {
  content: "- ";
}

.debug-content {
  padding: 0.8rem;
}

.debug-content h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.debug-panel pre {
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding: 0.7rem;
  min-height: 88px;
  max-height: 240px;
  overflow: auto;
  border-radius: 12px;
  background: #1f2a33;
  color: #f4e8d9;
  font-size: 0.78rem;
}

.intro-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 200px 10px 10px 10px;
  gap: 25px;

  animation: fadeIn 2s ease;
}

.title {
  display: flex;
  justify-content: center;
  position: relative;
  font-size: 100px;
  font-weight: 999;
  font-family: Tahoma;
  letter-spacing: 3px;
  color: #0f1303;
  padding: 15px 500px;
  margin: 20px 20px 50px 20px;
  border-radius: 30px;
  background-color: rgba(243, 243, 243, 0.5);
}
.one {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.start {
  margin: 10px 30px;
  padding: 15px 90px;
  font-size: 25px;
  border-radius: 30px;
  border: none;
  color: #f3f3f3;


  background: linear-gradient(135deg, #ff2900, #a81903);

  cursor: pointer;
  transition: all 0.25s ease;
}

.start:hover {
  transform: translateY(-10px) scale(1.08);
  background: linear-gradient(135deg, #befdda, #67ff6b);
  color: #0f1303;
  box-shadow: 0 15px 40px rgb(176, 197, 236);
}

.start:active {
  transform: scale(1.5);
  box-shadow: 0 15px 40px rgb(119, 173, 255);
}
.credits {
  margin: 10px 30px;
  padding: 15px 90px;
  font-size: 25px;
  border-radius: 30px;
  border: none;
  color: #f3f3f3;


  background: linear-gradient(135deg, #ff2900, #a81903);

  cursor: pointer;
  transition: all 0.25s ease;
}

.credits:hover {
  transform: translateY(-10px) scale(1.08);
  background: linear-gradient(135deg, #befdda, #67ff6b);
  color: #0f1303;
  box-shadow: 0 15px 40px rgb(176, 197, 236);
}
.tilbage {
  display: flex;
  justify-content: center;
  position: absolute;
  margin: 3px 30px;
  padding: 14px 100px;
  font-size: 20px;
  border-radius: 30px;
  border: none;
  color: #f3f3f3;


  background: linear-gradient(135deg, #ff2900, #a81903);

  cursor: pointer;
  transition: all 0.25s ease;
}

.tilbage:hover {
  transform: translateY(-10px) scale(1.08);
  background: linear-gradient(135deg, #befdda, #67ff6b);
  color: #0f1303;
  box-shadow: 0 15px 40px rgb(176, 197, 236);

  /* Animation */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
.kliklyd {
  margin: 10px 30px;
  padding: 15px 90px;
  font-size: 25px;
  border-radius: 30px;
  border: none;
  color: #f3f3f3;


  background: linear-gradient(135deg, #ff2900, #a81903);

  cursor: pointer;
  transition: all 0.25s ease;
}

.kliklyd:hover {
  transform: translateY(-10px) scale(1.08);
  background: linear-gradient(135deg, #befdda, #67ff6b);
  color: #0f1303;
  box-shadow: 0 15px 40px rgb(176, 197, 236);
}
.credits-screen {
  position: absolute;
  inset: 0;
  margin: 60px 25px 25px 25px;
  padding: 10px;
  gap: 24px;

  animation: fadeIn 2s ease;
}

.title1 {
  display: flex;
  justify-content: center;
  position: relative;
  font-size: 80px;
  font-weight: 700;
  font-family: Tahoma;
  letter-spacing: 2px;
  color: #0f1303;
  padding: 10px;
  margin: 20px 20px 25px 20px;
  border-radius: 30px;
  background-color: rgba(243, 243, 243, 0.5);
}
.two {
  display: flex;
  justify-content: center;
  flex-direction: row;
}
.art {
  display: flex;
  justify-content: flex-start;
  margin: 5px;
  padding: 10px 5px 10px 5px;
  position: relative;
  font-size: 30px;
  color: #0f1303;
  border: 2px solid var(--border2);
  border-radius: 10px;
  background-color: rgb(243, 243, 243);
}
.lyd {
  display: flex;
  justify-content: flex-start;
  margin: 5px;
  padding: 10px 5px 10px 5px;
  position: relative;
  font-size: 30px;
  color: #0f1303;
  border: 2px solid var(--border);
  border-radius: 10px;
  background-color: rgb(243, 243, 243);
}
.kode {
  display: flex;
  justify-content: flex-start;
  margin: 5px;
  padding: 10px 5px 10px 5px;
  position: relative;
  font-size: 30px;
  color: #0f1303;
  border: 2px solid var(--border1);
  border-radius: 10px;
  background-color: rgb(243, 243, 243);
}
.artO {
  color: #0f1303;
  font-size: 45px;
  font-weight: bold;
  font-family: Forte;
}
.lydO {
  color: #0f1303;
  font-size: 45px;
  font-weight: bold;
  font-family: Forte;
}
.kodeO {
  color: #0f1303;
  font-size: 45px;
  font-weight: bold;
  font-family: Forte;
}
.pgroup1 {
  margin: 15px 680px 15px 100px;
  padding: 15px 15px 15px 15px;
  background-color: rgba(243, 243, 243, 0.5);
  border-radius: 10px;
}
.pgroup2 {
  margin: 15px 680px 15px 100px;
  padding: 15px 15px 15px 15px;
  background-color: rgba(243, 243, 243, 0.5);
  border-radius: 10px;
}
.pgroup3 {
  margin: 15px 680px 15px 100px;
  padding: 15px 15px 15px 15px;
  background-color: rgba(243, 243, 243, 0.5);
  border-radius: 10px;
}

