:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #010403;
  color: #d9ffe8;
  -webkit-font-smoothing: antialiased;
  --matrix-height: clamp(100px, 16svh, 180px);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; min-height: 100svh; overflow-x: hidden; isolation: isolate; }
main {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.scene {
  position: relative;
  width: min(100%, 1672px, calc((100svh - var(--matrix-height) - 170px) * 1.77683));
  padding-top: var(--matrix-height);
}
.matrix {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  background: #010403;
}
canvas { display: block; width: 100%; height: 100%; }
.scene-image { position: relative; display: block; width: 100%; height: auto; }
.photo { position: relative; }
.agent-light { display: none; }
.has-cutout .agent-light {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/original.png") center / 100% 100% no-repeat;
  -webkit-mask-image: url("assets/foreground-cutout.png"), radial-gradient(ellipse 46% 43% at 50% 18%, #000 55%, transparent 96%);
  mask-image: url("assets/foreground-cutout.png"), radial-gradient(ellipse 46% 43% at 50% 18%, #000 55%, transparent 96%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: brightness(1.3) contrast(1.04);
  mix-blend-mode: screen;
  opacity: .38;
}
.effect-definitions { position: absolute; pointer-events: none; }
.title-light {
  position: absolute;
  inset: 0;
  clip-path: inset(79.1% 25% 13.4% 25%);
  pointer-events: none;
  mix-blend-mode: screen;
  background: url("assets/original.png") center / 100% 100% no-repeat;
  filter: url("#title-letter-glow");
  animation: title-breathe 16s ease-in-out infinite;
}
@keyframes title-breathe {
  0%, 100% { opacity: .16; }
  50% { opacity: .92; }
}
.motion-paused .title-light { animation-play-state: paused; }
.has-cutout .scene-image {
  -webkit-mask-image: url("assets/foreground-cutout.png");
  mask-image: url("assets/foreground-cutout.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
.launch { position: relative; width: min(420px, 100%); padding: 12px 20px 23px; text-align: center; }
.premiere {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: #99b8a6;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.premiere [data-i18n="premiere"], .premiere time { font-size: inherit; font-weight: inherit; }
.premiere time { color: #ff4545; }
.countdown { margin-top: 11px; }
dl { display: flex; justify-content: center; margin: 0 auto; padding: 0; width: min(190px, 100%); }
.unit { position: relative; display: flex; flex-direction: column-reverse; flex: 1 1 0; align-items: center; gap: 5px; padding: 0 6px; }
.unit + .unit::before { content: ""; position: absolute; left: 0; top: 2px; width: 1px; height: 12px; background: rgba(92,227,149,.18); }
dd {
  margin: 0;
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  color: #c7ffdb;
  text-shadow: 0 0 18px rgba(0,239,133,.2);
}
dt { color: #9bb8a6; font-size: 7px; font-weight: 600; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.motion-toggle { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; cursor: default; }
.motion-toggle:focus-visible { outline: 1px solid #89dca2; outline-offset: -5px; }
.no-script { margin-top: 20px; color: #9bb8a6; font-size: 14px; }
.signup {
  position: relative;
  display: flex;
  width: 300px;
  max-width: calc(100% - 32px);
  gap: 7px;
  margin: 14px auto 0;
}
.signup input {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  color-scheme: light;
  color: #18231c;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 3px;
  font: 12px "Segoe UI", Arial, sans-serif;
}
.signup input::placeholder { color: #69716c; opacity: 1; }
.signup button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #6aa680;
  border-radius: 3px;
  background: #0b2114;
  color: #d9ffe8;
  font: 12px "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.signup button:hover { background: #12351f; border-color: #97d6ae; }
.signup input:focus-visible, .signup button:focus-visible { outline: 2px solid #89dca2; outline-offset: 3px; }
.signup-status { position: absolute; top: 100%; left: 0; width: 100%; margin: 8px 0 0; color: #c5d6cb; font-size: 11px; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
::selection { color: #010403; background: #89dca2; }
[hidden] { display: none !important; }
.language-picker {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 20;
  font-size: 12px;
  color: #e0eae4;
}
.language-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 96px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #7a96854d;
  border-radius: 7px;
  background: #08120eef;
  color: inherit;
  font: 500 11px "Segoe UI", Arial, sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
  touch-action: manipulation;
}
.language-toggle:hover, .language-toggle[aria-expanded="true"] { border-color: #93ad9c99; background: #122119; }
.language-chevron { transition: transform .2s; }
.language-toggle[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.metal-flag {
  display: inline-block;
  position: relative;
  width: 28px;
  height: 22px;
  padding: 2px;
  flex: 0 0 28px;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(135deg, #c2ccc6, #46534b 38%, #96a49c 68%, #38473e);
  box-shadow: 0 1px 3px #0008;
}
.metal-flag img { display: block; width: 24px; height: 18px; object-fit: cover; border-radius: 1px; }
.metal-flag::after {
  content: "";
  position: absolute;
  inset: -50% -80%;
  background: linear-gradient(110deg, transparent 42%, #ffffff18 47%, #ffffff99 50%, #ffffff18 53%, transparent 58%);
  pointer-events: none;
  animation: flag-reflection 8s ease-in-out infinite;
  animation-delay: var(--flag-delay, 0s);
}
@keyframes flag-reflection {
  0%, 12% { transform: translateX(-75%); opacity: 0; }
  22%, 58% { opacity: .5; }
  72%, 100% { transform: translateX(75%); opacity: 0; }
}
.motion-paused .metal-flag::after { animation-play-state: paused; }
.language-panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 206px;
  max-width: calc(100vw - 28px);
  max-height: calc(100svh - 82px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 82px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #708a7b66;
  border-radius: 9px;
  background: #08130ff7;
  box-shadow: 0 12px 36px #0009;
}
.language-list { list-style: none; padding: 0; margin: 0; }
.language-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 0;
  border-radius: 5px;
  font: 12px "Segoe UI", Arial, sans-serif;
  text-align: left;
  color: #d3dfd8;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.language-option:hover, .language-option.is-selected { background: #1a2d22; color: #effff4; }
.language-name { flex: 1; }
.language-check { color: #9bcbae; opacity: 0; }
.is-selected .language-check { opacity: 1; }
.language-toggle:focus-visible, .language-option:focus-visible { outline: 2px solid #b0cbb9; outline-offset: 2px; }
.signup button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 600px) {
  :root { --matrix-height: clamp(110px, 20svh, 180px); }
  .scene { width: 100%; }
  .launch { padding: 14px 16px 23px; }
  .premiere { gap: 7px; font-size: 11px; letter-spacing: .09em; }
  .countdown { margin-top: 10px; }
  .unit { padding-inline: 5px; }
  dd { font-size: 12px; }
  dt { font-size: 7px; letter-spacing: .08em; }
  .unit + .unit::before { height: 10px; }
  main { padding-top: 70px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .language-picker { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .launch { padding-bottom: 16px; }
  .signup { position: relative; top: auto; left: auto; transform: none; width: 100%; max-width: 340px; margin: 18px auto 0; }
  .signup input { height: 44px; font-size: 16px; }
  .signup button { height: 44px; font-size: 12px; padding-inline: 12px; }
  .signup-status { position: static; flex-basis: 100%; margin-top: 3px; }
  .signup { flex-wrap: wrap; }
}
@media (max-height: 480px) and (min-width: 601px) {
  :root { --matrix-height: 70px; }
  .scene { width: min(100%, 840px); }
}
@media (prefers-reduced-motion: reduce) {
  .title-light { animation: none; opacity: .3; }
  .metal-flag::after { animation: none; opacity: 0; }
  .language-chevron { transition: none; }
}
