@font-face {
  font-family: 'DotGothic16';
  src: url('../assets/fonts/DotGothic16-Regular.woff2') format('woff2'),
       url('../assets/fonts/DotGothic16-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BestTen DOT';
  src: url('../assets/fonts/BestTen-DOT.woff2') format('woff2'),
       url('../assets/fonts/BestTen-DOT.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bg-color: #030203;
  --reddish: #d7004e;
  --puppol: #6518c8;
  --litegrey: #888888;
  --mintgreen: #30d595;
  --koraal: #ff6379;
  --accent-coral: var(--koraal);
  --shift-warm: var(--reddish);
  --shift-cool: var(--puppol);
  --logo-tone: var(--reddish);
  --logo-tone-strength: 0.18;
  --font-main: 'DotGothic16', monospace, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--accent-coral);
  font-family: var(--font-main);
  position: relative;
}

/* Dimmed, Pixelated, Oversized 3D Schematic Canvas */
#schematic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  contain: strict;
}

html.dice-open #schematic-canvas {
  opacity: 1;
}

html.dice-open #tagline-glass,
html.dice-open #charge-veil,
html.dice-open #container,
html.dice-open #tick-invert {
  display: none;
}

#dice-hit {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

html.dice-open #dice-hit {
  display: block;
}

#dice-back {
  display: none;
  position: fixed;
  top: calc(var(--safe-t) + 8px);
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.08em 0.18em 0.02em;
  border: 0;
  background: transparent;
  color: var(--koraal);
  font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols', 'BestTen DOT', sans-serif;
  font-size: clamp(72px, 18vw, 140px);
  line-height: 0.8;
  letter-spacing: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-shadow:
    -3px 0 0 var(--puppol),
    3px 0 0 var(--mintgreen);
  pointer-events: auto;
}

html.dice-open #dice-back {
  display: block;
}

#dice-back:hover,
#dice-back:focus-visible {
  color: var(--mintgreen);
  outline: none;
}

#tagline-glass {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: block;
  mix-blend-mode: screen;
}

#tick-invert {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: block;
  mix-blend-mode: difference;
}

/* Main Display Container */
#container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 24px 6vw 10vh;
  text-align: center;
  overflow: visible;
}

/* Logo Sizing & Centered Alignment */
.logo-wrapper {
  --logo-src: url("../assets/logo/chop-it-logo-bitmap-redpink.png");
  --logo-sx: 1;
  --logo-sy: 1;
  --rgb-y: -2px;
  --rgb-b: 2px;
  position: relative;
  isolation: isolate;
  margin-top: -7.5vh;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(88vw, 1520px);
  max-width: 100%;
  overflow: visible;
}

.logo-bob {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.logo-trail {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--logo-src) center / 100% 100% no-repeat;
  transform: scale(var(--logo-sx), var(--logo-sy));
  transform-origin: center center;
}

#container.is-tag-closed .logo-wrapper:not(.is-charged):not(.is-gone) .logo-bob {
  animation: logo-hover-bob 1.35s ease-in-out infinite;
}

#container.is-tag-closed .logo-wrapper:not(.is-charged):not(.is-gone) .logo-trail {
  display: block;
  mix-blend-mode: difference;
  animation:
    logo-hover-bob 1.35s ease-in-out infinite,
    logo-invert-flash 0.08s steps(2, end) infinite;
}

#container.is-tag-closed .logo-wrapper:not(.is-charged):not(.is-gone) .logo-trail-a {
  animation-delay: 70ms, 0ms;
}

#container.is-tag-closed .logo-wrapper:not(.is-charged):not(.is-gone) .logo-trail-b {
  animation-delay: 150ms, 30ms;
}

#container.is-tag-closed .logo-wrapper:not(.is-charged):not(.is-gone) .logo-trail-c {
  animation-delay: 240ms, 50ms;
}

@keyframes logo-hover-bob {
  0%, 100% { transform: translateY(-16px) scale(var(--logo-sx), var(--logo-sy)); }
  50% { transform: translateY(20px) scale(var(--logo-sx), var(--logo-sy)); }
}

@keyframes logo-invert-flash {
  0%, 40% {
    filter: invert(1) contrast(2.8) brightness(1.55);
    opacity: 0.92;
  }
  41%, 70% {
    filter: invert(1) hue-rotate(280deg) contrast(2.2);
    opacity: 0.55;
  }
  71%, 100% {
    filter: invert(0) hue-rotate(80deg) contrast(1.8) saturate(1.4);
    opacity: 0.18;
  }
}

.logo-tone {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: var(--logo-tone);
  opacity: var(--logo-tone-strength);
  -webkit-mask-image: var(--logo-src);
  mask-image: var(--logo-src);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transform: scale(var(--logo-sx), var(--logo-sy));
  transform-origin: center center;
  mix-blend-mode: multiply;
}

.logo-wrapper.is-charged {
  animation: logo-shake-y 0.06s steps(2, end) infinite;
}

.logo-wrapper.is-charged .logo-tone {
  animation: logo-charge-flash 0.22s steps(1, end) infinite;
  mix-blend-mode: screen;
}

.logo-wrapper.is-charged .logo-img {
  animation: logo-charge-flicker 0.22s steps(1, end) infinite;
}

.logo-wrapper.is-gone {
  display: none;
}

.logo-close {
  display: none;
  position: absolute;
  top: -0.15em;
  right: -0.05em;
  z-index: 9;
  width: 2.55em;
  height: 2.55em;
  padding: 0;
  margin: 0;
  border: 3px solid var(--tag-line, rgba(255, 99, 121, 0.52));
  border-radius: 1px;
  background: rgba(8, 4, 8, 0.55);
  color: rgba(255, 99, 121, 0.55);
  font-family: 'BestTen DOT', 'DotGothic16', ui-monospace, monospace;
  font-size: 1.15em;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
}

.logo-wrapper.is-charged .logo-close {
  display: grid;
  place-items: center;
}

.logo-close:hover,
.logo-close:focus-visible {
  color: rgba(255, 99, 121, 0.86);
  background: rgba(8, 4, 8, 0.7);
  outline: none;
}

@keyframes logo-shake-y {
  0% { transform: translateY(0); }
  20% { transform: translateY(-14px); }
  40% { transform: translateY(11px); }
  60% { transform: translateY(-8px); }
  80% { transform: translateY(16px); }
  100% { transform: translateY(-6px); }
}

html.logo-charged,
html.logo-charged body {
  animation: charge-bg 0.1s steps(2, end) infinite;
}

html.logo-charged #schematic-canvas,
html.logo-charged #tagline-glass,
html.logo-charged #container,
html.logo-charged #charge-veil,
html.logo-charged #charge-glyph,
html.logo-charged .subtext.is-charged {
  animation-name: layer-buzz;
  animation-duration: 0.055s;
  animation-timing-function: steps(2, end);
  animation-iteration-count: infinite;
}

html.logo-charged #schematic-canvas {
  opacity: 0.78;
  animation-delay: 0ms;
}

html.logo-charged #tagline-glass { animation-delay: 12ms; }
html.logo-charged #container { animation-delay: 24ms; }
html.logo-charged #charge-veil { animation-delay: 6ms; }
html.logo-charged #charge-glyph { animation-delay: 18ms; }
html.logo-charged .subtext.is-charged { animation-delay: 30ms; }

html.logo-charged .logo-wrapper.is-charged {
  animation: logo-shake-buzz 0.055s steps(2, end) infinite;
}

@keyframes logo-shake-buzz {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3px, -14px); }
  40% { transform: translate(4px, 11px); }
  60% { transform: translate(-4px, -8px); }
  80% { transform: translate(3px, 16px); }
  100% { transform: translate(-2px, -6px); }
}

@keyframes charge-bg {
  0% { background-color: var(--puppol); }
  25% { background-color: var(--reddish); }
  50% { background-color: var(--mintgreen); }
  75% { background-color: #120018; }
  100% { background-color: var(--koraal); }
}

@keyframes layer-buzz {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 4px); }
  50% { transform: translate(4px, -3px); }
  75% { transform: translate(-4px, -2px); }
  100% { transform: translate(3px, 3px); }
}

#charge-veil {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(215, 0, 78, 0.28) 0 1px,
      transparent 1px 8px
    ),
    linear-gradient(
      180deg,
      rgba(101, 24, 200, 0.5),
      rgba(48, 213, 149, 0.38) 50%,
      rgba(255, 99, 121, 0.42)
    );
  mix-blend-mode: difference;
}

#charge-glyph {
  position: fixed;
  inset: -10%;
  z-index: 6;
  pointer-events: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'DotGothic16', 'BestTen DOT', ui-monospace, monospace;
  font-size: clamp(16px, 3.2vw, 38px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  word-break: break-all;
  color: #ffffff;
  mix-blend-mode: difference;
  opacity: 0;
}

@keyframes logo-charge-flash {
  0%, 49% {
    background: var(--reddish);
    opacity: 0.88;
  }
  50%, 100% {
    background: var(--puppol);
    opacity: 0.82;
  }
}

@keyframes logo-charge-flicker {
  0%, 49% { filter: hue-rotate(-8deg) saturate(1.25); }
  50%, 100% { filter: hue-rotate(38deg) saturate(1.35); }
}

.logo-wrapper::before,
.logo-wrapper::after,
.rgb-trace {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: var(--logo-src);
  mask-image: var(--logo-src);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mix-blend-mode: screen;
  opacity: 0.34;
}

.logo-wrapper::before,
.logo-wrapper::after {
  content: "";
}

.logo-wrapper::before,
.rgb-trace-y {
  background: var(--shift-warm);
}

.logo-wrapper::after,
.rgb-trace-b {
  background: var(--shift-cool);
}

.logo-wrapper::before {
  animation: rgb-shift-yellow 2.4s steps(1, end) infinite;
}

.logo-wrapper::after {
  animation: rgb-shift-blue 2.4s steps(1, end) infinite;
}

.rgb-trace-y {
  animation: rgb-shift-yellow 2.4s 80ms steps(1, end) infinite;
  opacity: 0.22;
  filter: blur(0.6px);
}

.rgb-trace-b {
  animation: rgb-shift-blue 2.4s 80ms steps(1, end) infinite;
  opacity: 0.2;
  filter: blur(0.6px);
}

.rgb-trace-late.rgb-trace-y {
  animation-delay: 160ms;
  opacity: 0.12;
  filter: blur(1.2px);
}

.rgb-trace-late.rgb-trace-b {
  animation-delay: 160ms;
  opacity: 0.1;
  filter: blur(1.2px);
}

.logo-img,
.logo-svg {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  image-rendering: auto;
  transform: scale(var(--logo-sx), var(--logo-sy));
  transform-origin: center center;
  filter: none;
  mix-blend-mode: normal;
  animation: tl-flicker-logo 6.5s infinite ease-in-out;
}

/* Subtext: hidden 4s, then heavy flicker-in + glitch stripes that die over 7s */
.subtext {
  --tag-3d: perspective(440px) rotateY(16deg) rotateX(4deg);
  --tag-fit: 1;
  --tag-box: rgba(215, 0, 78, 0.7);
  --tag-line: rgba(215, 0, 78, 0.82);
  position: relative;
  display: inline-flex;
  align-items: stretch;
  overflow: visible;
  opacity: 0;
  font-family: 'BestTen DOT', 'DotGothic16', ui-monospace, monospace;
  font-size: clamp(12px, 1.55vw, 18px);
  padding: 0 0 0 0.85em;
  margin: 10px 14px 0;
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  color: #000000;
  background: var(--tag-box);
  background-clip: padding-box;
  border: 3px solid var(--tag-line);
  white-space: nowrap;
  letter-spacing: 0.03em;
  line-height: 1.22;
  text-shadow: none;
  text-transform: uppercase;
  border-radius: 1px;
  transform-origin: 78% 50%;
  box-shadow:
    5px 7px 0 rgba(0, 0, 0, 0.28),
    11px 13px 16px rgba(0, 0, 0, 0.38);
  animation:
    subtext-appear 2.1s 4s both,
    subtext-wave 18s 4s ease-in-out infinite both;
}

.subtext-text {
  display: inline-block;
  align-self: center;
  transform: scale(1.02, 1.22);
  transform-origin: center center;
  padding: 0.5em 0.18em 0.5em 0.08em;
}

.subtext-lead {
  display: none;
}

.subtext-spin {
  display: inline-block;
  min-width: 1.85em;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  font-variant-ligatures: none;
}

.subtext-spin.is-dash {
  transform: scaleX(2.35);
  transform-origin: center center;
}

.subtext-tail.is-glitching {
  display: inline-block;
  animation: subtext-cycle-glitch 90ms steps(2, end) infinite;
}

.subtext-close {
  position: relative;
  top: auto;
  right: auto;
  z-index: 3;
  display: grid;
  place-items: center;
  flex: 0 0 2.7em;
  align-self: stretch;
  width: 2.7em;
  min-width: 2.7em;
  height: auto;
  padding: 0;
  margin: -3px -3px -3px 0.55em;
  border: none;
  border-left: 3px solid var(--tag-line);
  border-radius: 0 1px 1px 0;
  background: rgba(8, 4, 8, 0.4);
  background-color: rgba(8, 4, 8, 0.4);
  background-image: none;
  box-shadow: none;
  color: rgba(215, 0, 78, 0.62);
  font-family: inherit;
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
}

.subtext-close:hover,
.subtext-close:focus-visible {
  color: rgba(215, 0, 78, 0.88);
  background: rgba(8, 4, 8, 0.52);
  outline: none;
}

.subtext.is-closed {
  display: none;
  animation: none;
  pointer-events: none;
}

#container.is-tag-closed .logo-wrapper {
  margin-top: 0;
  transition: margin-top 0.82s cubic-bezier(0.22, 0.84, 0.16, 1);
}

.subtext-node {
  position: absolute;
  z-index: 8;
  width: 8px;
  height: 8px;
  background: rgba(215, 0, 78, 0.38);
  pointer-events: none;
}

.subtext-node[data-corner="tl"] { top: -2px; left: -2px; }
.subtext-node[data-corner="tr"] { top: -2px; right: -2px; }
.subtext-node[data-corner="bl"] { bottom: -2px; left: -2px; }
.subtext-node[data-corner="br"] { bottom: -2px; right: -2px; }

.subtext.is-charged {
  --tag-box: #ffffff;
  --tag-line: #ffffff;
  color: #000000;
  text-transform: none;
}

.subtext.is-charged .subtext-lead,
.subtext.is-charged .subtext-spin {
  display: none;
}

.subtext.is-charged .subtext-text {
  position: relative;
  animation: tag-rgb-shift 0.28s steps(1, end) infinite;
}

.subtext.is-charged .subtext-node {
  background: rgba(0, 0, 0, 0.14);
}

.subtext.is-charged .subtext-close {
  border-left-color: #ffffff;
  background: rgba(8, 4, 8, 0.46);
  color: rgba(20, 20, 20, 0.32);
}

.subtext[data-lang="ja"] {
  font-family: 'DotGothic16', 'BestTen DOT', ui-monospace, monospace;
}

.subtext::before,
.subtext::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: -12%;
  right: -12%;
  top: -40%;
  bottom: -40%;
  pointer-events: none;
}

.subtext::before {
  background: repeating-linear-gradient(
    -28deg,
    rgba(0, 0, 0, 0.9) 0 2px,
    transparent 2px 7px,
    rgba(255, 255, 255, 0.6) 7px 8px,
    transparent 8px 15px
  );
  mix-blend-mode: multiply;
  animation:
    subtext-stripes-fade 7s 4s linear both,
    subtext-stripes-dash-a 0.14s 4s linear infinite;
}

.subtext::after {
  background: repeating-linear-gradient(
    34deg,
    #000 0 1px,
    transparent 1px 4px,
    rgba(255, 255, 255, 0.8) 4px 5px,
    transparent 5px 9px
  );
  mix-blend-mode: difference;
  animation:
    subtext-stripes-fade 7s 4s linear both,
    subtext-stripes-dash-b 0.11s 4s linear infinite;
}

/* --- TL LIGHT FLICKER & SHIMMER KEYFRAMES --- */
@keyframes rgb-shift-yellow {
  0%, 82%, 100% {
    transform: translate(-2px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(0);
  }
  83% {
    transform: translate(-5px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(0 0 62% 0);
  }
  87% {
    transform: translate(-2px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(0);
  }
  91% {
    transform: translate(-6px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(58% 0 0 0);
  }
  95% {
    transform: translate(-2px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(0);
  }
}

@keyframes rgb-shift-blue {
  0%, 82%, 100% {
    transform: translate(2px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(0);
  }
  83% {
    transform: translate(5px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(0 0 62% 0);
  }
  87% {
    transform: translate(2px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(0);
  }
  91% {
    transform: translate(6px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(58% 0 0 0);
  }
  95% {
    transform: translate(2px, 0) scale(var(--logo-sx), var(--logo-sy));
    clip-path: inset(0);
  }
}

@keyframes tl-flicker-logo {
  0%, 100% { opacity: 0.98; filter: none; }
  3% { opacity: 0.82; filter: none; }
  6% { opacity: 1; filter: none; }
  7% { opacity: 0.9; filter: none; }
  8% { opacity: 1; filter: none; }
  32% { opacity: 0.96; filter: none; }
  50% { opacity: 0.92; filter: none; }
  52% { opacity: 0.78; filter: none; }
  54% { opacity: 1; filter: none; }
  56% { opacity: 0.95; filter: none; }
  82% { opacity: 0.97; filter: none; }
  92% { opacity: 0.85; filter: none; }
  93% { opacity: 1; filter: none; }
}

@keyframes subtext-appear {
  0% { opacity: 0; }
  3% { opacity: 1; }
  6% { opacity: 0; }
  8% { opacity: 1; }
  11% { opacity: 0; }
  13% { opacity: 1; }
  16% { opacity: 0.1; }
  18% { opacity: 1; }
  21% { opacity: 0; }
  23% { opacity: 1; }
  26% { opacity: 0.25; }
  28% { opacity: 1; }
  32% { opacity: 0; }
  34% { opacity: 1; }
  40% { opacity: 0.35; }
  42% { opacity: 1; }
  55% { opacity: 0.85; }
  100% { opacity: 1; }
}

@keyframes subtext-wave {
  0%, 100% {
    transform: perspective(440px) rotateY(14deg) rotateX(3deg) scale(var(--tag-fit));
  }
  50% {
    transform: perspective(400px) rotateY(18deg) rotateX(5deg) scale(var(--tag-fit));
  }
}

@keyframes subtext-stripes-fade {
  0%, 4% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes subtext-stripes-dash-a {
  0% { background-position: 0 0; }
  100% { background-position: 18px -28px; }
}

@keyframes subtext-stripes-dash-b {
  0% { background-position: 0 0; }
  100% { background-position: -22px 16px; }
}

@keyframes tag-rgb-shift {
  0%, 68%, 100% {
    text-shadow:
      -2px 0 0 rgba(101, 24, 200, 0.82),
      2px 0 0 rgba(48, 213, 149, 0.68);
  }
  70% {
    text-shadow:
      -4px 0 0 rgba(215, 0, 78, 0.9),
      3px 1px 0 rgba(48, 213, 149, 0.78);
  }
  84% {
    text-shadow:
      -1px 1px 0 rgba(101, 24, 200, 0.75),
      4px 0 0 rgba(255, 99, 121, 0.7);
  }
}

@keyframes subtext-cycle-glitch {
  0% { transform: translate(0, 0); text-shadow: -2px 0 #ff0064, 2px 0 #5ac8ff; }
  35% { transform: translate(2px, -1px) skewX(8deg); text-shadow: 2px 0 #ff0064, -2px 0 #5ac8ff; }
  70% { transform: translate(-2px, 1px) skewX(-5deg); text-shadow: -3px 0 #ff0064, 3px 0 #5ac8ff; }
  100% { transform: translate(0, 0); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .subtext-tail.is-glitching {
    animation: none;
  }
}

/* Media Queries for Mobile Fine-Tuning */
@media (max-width: 480px) {
  #container {
    padding: 18px 5vw 8vh;
  }

  .logo-wrapper {
    width: 84vw;
    margin-top: -5vh;
    margin-bottom: 6px;
    --logo-sx: 1;
    --logo-sy: 1;
  }

  #container.is-tag-closed .logo-wrapper {
    margin-top: 0;
  }
  
  .subtext {
    font-size: clamp(9px, 3.1vw, 12px);
    letter-spacing: 0.02em;
    padding: 0 0 0 0.65em;
    margin: 8px 10px 0;
    max-width: calc(100vw - 20px);
  }
}

#click-flash {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: var(--puppol);
  opacity: 0;
  mix-blend-mode: screen;
}

#click-flash.is-on {
  opacity: 0.72;
  transition: opacity 40ms linear;
}

#click-flash.is-fade {
  opacity: 0;
  transition: opacity 1.85s cubic-bezier(0.16, 1, 0.3, 1);
}
