:root {
  --bg: #071b16;
  --ink: #fff5e6;
  --muted: #d6e2d7;
  --accent: #f9d992;
  --accent-deep: #b54049;
  --cream: #f7f1e6;
  --hud: #efce84;
  --hud-dim: #2a5a48;
  --candy: #ff7aa8;
  --line: rgba(244, 234, 214, 0.22);
  --card: rgba(9, 28, 22, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 700px at 50% 38%, #184a36 0%, var(--bg) 58%);
  color: var(--ink);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
}

.noise,
.scanlines,
.vignette,
#constellation,
.circuit {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#constellation {
  z-index: 0;
}

.circuit {
  z-index: 1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(185, 234, 220, 0.28);
  stroke-width: 1.2;
}

.circuit circle {
  fill: var(--accent);
  stroke: none;
  filter: drop-shadow(0 0 6px var(--accent));
}

.noise {
  z-index: 8;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.scanlines {
  z-index: 9;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: multiply;
}

.vignette {
  z-index: 9;
  background: radial-gradient(closest-side, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.hud {
  position: fixed;
  z-index: 5;
  color: var(--hud);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.72;
  display: grid;
  gap: 4px;
}

.hud-tl {
  top: 28%;
  left: 7%;
}

.hud-tr {
  top: 8%;
  right: 8%;
  text-align: right;
}

.hud-bl {
  bottom: 18%;
  left: 7%;
}

.hud-br {
  bottom: 10%;
  right: 7%;
  text-align: right;
}

.hud-center-foot {
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  color: #e0c394;
  letter-spacing: 0.46em;
  font-size: 10px;
}

.critter {
  position: absolute;
  z-index: 7;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.critter span {
  display: block;
  font-size: 66px;
  line-height: 1;
}

.gift {
  left: calc(50% - 360px);
  top: 58%;
  animation: bob 3.4s ease-in-out infinite;
}

.tree {
  left: calc(50% + 270px);
  top: 22%;
  animation: bob 4s ease-in-out infinite 0.4s;
}

.snow {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.flake {
  position: absolute;
  font-size: 18px;
  opacity: 0.7;
  animation: drift 9s linear infinite;
}

.flake-one {
  top: 18%;
  left: -10%;
}

.flake-two {
  top: 40%;
  left: -20%;
  animation-duration: 12s;
  font-size: 14px;
}

.flake-three {
  top: 12%;
  left: -30%;
  animation-duration: 15s;
}

.stage {
  position: relative;
  z-index: 6;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 16px 96px;
  perspective: 1200px;
  pointer-events: none;
}

.card {
  grid-area: 1 / 1;
  width: min(520px, 92vw);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
  pointer-events: auto;
}

.card[hidden] {
  display: none !important;
}

.kicker,
.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.34em;
  font-size: 10px;
  text-transform: uppercase;
}

.rule {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--accent);
  opacity: 0.85;
}

.logo {
  margin: 18px 0 8px;
  line-height: 0.9;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}

.oneup {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(56px, 11vw, 84px);
  color: var(--accent);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 18px rgba(185, 234, 220, 0.45),
    2px 3px 0 #61212c;
}

.services {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(28px, 6.2vw, 42px);
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-left: 4px;
}

.llc {
  font-family: "Cinzel", serif;
  font-size: 13px;
  color: var(--accent);
  margin-left: 8px;
  letter-spacing: 0.18em;
}

.spark {
  color: var(--hud);
  font-size: 12px;
  margin-left: 6px;
  animation: twinkle 1.8s ease-in-out infinite;
}

.charm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 10px;
}

.heartbeat {
  width: 72px;
  height: 20px;
  overflow: visible;
}

.heartbeat-path {
  fill: none;
  stroke: var(--candy);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(255, 77, 141, 0.55));
  animation: heartbeat-trace 1.6s linear infinite;
}

@keyframes heartbeat-trace {
  0% {
    stroke-dashoffset: 140;
  }
  70%,
  100% {
    stroke-dashoffset: 0;
  }
}

.charm-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.years {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 22px 0 8px;
}

.num {
  font-family: "Cinzel", serif;
  font-size: 42px;
  font-weight: 700;
}

.years-copy {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.45;
}

.pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}

.pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--hud);
}

.contacts {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  margin: 18px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 234, 214, 0.35);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 244, 220, 0.03);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.contact:hover,
.contact:focus-visible {
  border-color: var(--accent);
  background: rgba(185, 234, 220, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efe4cf;
  color: #3b2a1c;
  font-size: 14px;
}

.meta {
  text-align: left;
  font-size: 13px;
}

.meta small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.22em;
  font-size: 9px;
}

.go {
  color: var(--accent);
}

.flip-btn {
  margin-top: 16px;
  background: none;
  border: 0;
  color: #e0c394;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.flip-btn:hover,
.flip-btn:focus-visible {
  color: var(--accent);
  outline: none;
}

.back-title {
  font-family: "Cinzel", serif;
  font-size: 28px;
  margin: 16px 0 20px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
  margin: 0 auto;
  width: min(460px, 100%);
  padding: 18px 16px;
  border: 1px solid rgba(244, 234, 214, 0.28);
  border-radius: 6px;
  background: rgba(255, 244, 220, 0.03);
}

.split h3 {
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 12px;
  text-transform: uppercase;
}

.split p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.treat {
  position: fixed;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  z-index: 12;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(16, 12, 10, 0.85);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #070504;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease;
}

.boot.hide {
  opacity: 0;
  pointer-events: none;
}

.boot pre {
  width: min(520px, 90vw);
  color: var(--hud);
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(60vw) translateY(16vh) rotate(100deg);
  }
  100% {
    transform: translateX(135vw) translateY(42vh) rotate(220deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .gift {
    left: 8px;
    top: auto;
    bottom: 8%;
  }

  .tree {
    left: auto;
    right: 8px;
    top: 8%;
  }

  .critter span {
    font-size: 42px;
  }

  .hud-tl,
  .hud-bl {
    display: none;
  }
}

.christmas-greeting {
  width: fit-content;
  margin: 18px auto 0;
  padding: 9px 18px;
  border-block: 1px solid rgba(249, 217, 146, 0.42);
  background: linear-gradient(90deg, transparent, rgba(181, 64, 73, 0.25), transparent);
}

.christmas-greeting strong {
  display: block;
  font: 700 clamp(19px, 5vw, 27px) "Cinzel", Georgia, serif;
  color: var(--accent);
}

.christmas-greeting span {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.treat:empty {
  padding: 0;
  border: 0;
}

@media (max-width: 720px) {
  .stage {
    padding-top: 112px;
  }

  .tree {
    top: 34px;
  }

  .gift {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .critter,
  .spark,
  .heartbeat-path {
    animation: none;
  }

  .snow {
    display: none;
  }
}

.site-nav {
  position: relative;
  z-index: 13;
  width: fit-content;
  margin: 0 auto;
  text-align: left;
}

.tools-menu summary {
  width: fit-content;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--bg);
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
}

.tools-menu[open] summary {
  border-color: var(--accent);
}

.tools-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(300px, calc(100vw - 40px));
  margin-top: 8px;
  padding: 7px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.tools-panel a {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
}

.tools-panel strong {
  color: var(--accent);
  font-size: 15px;
}

.tools-panel a > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tools-panel a:hover,
.tools-panel a:focus-visible {
  background: rgba(249, 217, 146, 0.1);
}

.tools-menu summary:focus-visible,
.tools-panel a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 8px;
}

.camera-link {
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--bg);
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}

.camera-link:hover {
  text-decoration: underline;
}

.printer-camera {
  grid-area: 2 / 1;
  width: min(720px, 100%);
  margin-top: 32px;
  padding: clamp(14px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #102a22;
  text-align: center;
  pointer-events: auto;
  scroll-margin-top: 20px;
}

.printer-camera h2 {
  margin: 0;
  color: var(--accent);
  font: 700 clamp(22px, 5vw, 32px) "Cinzel", Georgia, serif;
}

.camera-model {
  margin: 6px 0 18px;
  color: var(--muted);
}

.camera-screen {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #071611;
}

.camera-screen p {
  margin: 12px;
}

.camera-screen iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
}

.camera-screen:has(iframe) {
  min-height: 200px;
}

#camera-watch {
  color: var(--accent);
}

#camera-watch:not([hidden]) {
  display: inline-block;
  margin-top: 12px;
}

.print-job {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  text-align: left;
}

.print-job[hidden] {
  display: none;
}

.print-job img {
  width: clamp(72px, 22vw, 112px);
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 5px;
  background: #102a22;
}

.print-job h3 {
  margin: 0 0 4px;
  font: 700 16px "Cinzel", Georgia, serif;
}

.print-job a,
.camera-manage,
.printer-editor a {
  color: var(--accent);
}

.camera-manage {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}

.printer-editor {
  width: min(620px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(16px, 5vw, 32px);
  background: #102a22;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.printer-editor form,
.printer-editor label {
  display: grid;
  gap: 8px;
}

.printer-editor form {
  gap: 16px;
}

.printer-editor input,
.printer-editor button {
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.printer-editor button {
  width: fit-content;
  border-color: var(--accent);
  color: var(--accent);
  cursor: pointer;
}
.printer-editor label.printer-mode-label { display: inline; }

.printer-editor h1 {
  color: var(--accent);
  font-family: "Cinzel", Georgia, serif;
}

.printer-editor form {
  margin-top: 20px;
}

.printer-editor form p {
  margin: 0;
  color: var(--muted);
}

.printer-eta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
}

.printer-eta strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
