@font-face {
  font-family: Inter;
  src: url("./inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Oxanium;
  src: url("./oxanium.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* DeviceQueue SignInWindow and ThemePalette dark colors. */
  --shell: #111015;
  --panel-top: #20212d;
  --panel-bottom: #1b1c28;
  --text: #ededf0;
  --muted: #a5a6ae;
  --line: #393541;
  --accent: #d7aedf;
  --success: #10b981;
  --danger: #ef4444;
  --success-ink: color-mix(in srgb, var(--success) 64%, black);
  --danger-ink: color-mix(in srgb, var(--danger) 74%, black);
  --font-sans: Inter, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--shell);
}

*, *::before, *::after { box-sizing: border-box; }
:is(button, input, select, textarea) { font-family: inherit; }

body {
  display: grid;
  place-items: center;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 3.5vw, 3rem);
  /* Rasterized from DeviceQueue's CornerGradientBackground dark renderer. */
  background: var(--shell) url("./devicequeue-background.png") center / 100% 100% no-repeat;
}

h1, p { margin: 0; }
.entrance {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  width: min(100%, 1240px);
  min-height: clamp(470px, 82svh, 660px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 24px 85px #08070bb0;
}

.vault {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: hidden;
  background: var(--shell);
}

.vault-art, .vault::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.vault-art { z-index: -2; overflow: hidden; }
.vault-backdrop { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--vault-top, 58%); }

.vault-cards {
  position: absolute;
  top: var(--vault-top, 0px);
  left: 50%;
  width: 1122px;
  height: 1402px;
  transform: translateX(-50%) scale(var(--vault-scale, 0));
  transform-origin: 50% 0;
}

/* Card perspective is defined in the vault artwork's coordinate system. */
.vault-card {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 245px;
  height: 342px;
  border-radius: 3% / 2%;
  transform-origin: top left;
}

.vault-card.gengar { transform: matrix3d(1.194178809, 0.026299237, 0, 0.000248446, 0.241836973, 1.193263167, 0, -0.000044378, 0, 0, 1, 0, 66, 559, 0, 1); }
.vault-card.pikachu { transform: matrix3d(0.756045976, -0.299138126, 0, -0.000471689, -0.215754056, 1.08923376, 0, -0.000057429, 0, 0, 1, 0, 762, 550, 0, 1); }
.vault-card.rayquaza { transform: matrix3d(1.106055629, 0.029846909, 0, -0.000188901, -0.103690652, 1.264400091, 0, 0.000064674, 0, 0, 1, 0, 430, 419, 0, 1); }

.vault::after {
  z-index: -1;
  content: "";
  background: linear-gradient(#111015cc, transparent 60%);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.2vw, .9rem);
  margin-top: clamp(.75rem, 2vw, 1.45rem);
  padding-inline: 1rem;
  text-align: center;
}

.brand img { flex: none; width: clamp(42px, 5vw, 65px); height: auto; filter: drop-shadow(0 5px 19px #111015aa); }
.brand p {
  color: #f4eaf6;
  font-family: Oxanium, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 4.45vw, 3.45rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 12px #111015b3;
}
.brand span {
  color: var(--accent);
  background: linear-gradient(155deg, #f4dbf5 10%, #c393d2 78%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.sign-in {
  display: grid;
  align-items: center;
  padding: clamp(1.75rem, 5vw, 4.25rem);
  border-left: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel-top), var(--panel-bottom));
}

.sign-in-content { width: 100%; max-width: 26rem; margin-inline: auto; }
h1 { font-size: clamp(2.1rem, 4.3vw, 3.25rem); line-height: 1.08; letter-spacing: -.055em; }
.lead { margin-top: 1.35rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }

.account-sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: 100%;
  min-height: 52px;
  margin-top: .85rem;
  padding: .7rem 1rem;
  border: 1px solid #e7d3ec;
  border-radius: 9px;
  background: linear-gradient(135deg, #e4c4ea, var(--accent) 55%, #c08ccd);
  color: #26172c;
  box-shadow: 0 6px 20px #c08ccd40;
  font: inherit;
  font-weight: 650;
  cursor: default;
}
.account-sign-in { text-decoration: none; cursor: pointer; }
.account-sign-in:hover { background: #e9d1ed; }
.status { margin-top: .7rem; color: var(--muted); text-align: center; font-size: .875rem; line-height: 1.5; }

.aco-info { margin-top: 1.6rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.aco-info h2 { margin: 0 0 .45rem; font-size: 1.1rem; line-height: 1.25; }
.aco-info > p { color: var(--muted); line-height: 1.55; }
.retailer-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .2rem .5rem;
  margin-top: 1.15rem;
}
.retailer-heading h3 { margin: 0; font-size: .875rem; }
.retailer-heading p { color: var(--muted); font-size: .875rem; }
.retailer-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.3rem, 1vw, .65rem);
  margin: .55rem 0 0;
  padding: 0;
  list-style: none;
}
.retailer-logos li {
  position: relative;
  display: grid;
  height: clamp(40px, 9vw, 48px);
  place-items: center;
  border-radius: 6px;
}
.retailer-logos img { width: 70%; max-width: 37px; height: 33px; object-fit: contain; }
.retailer-logos li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.retailer-tooltip {
  position: absolute;
  z-index: 1;
  bottom: calc(100% + .4rem);
  left: 50%;
  visibility: hidden;
  transform: translateX(-50%);
  padding: .35rem .65rem;
  border: 1px solid #675172;
  border-radius: 7px;
  background: var(--shell);
  color: var(--accent);
  box-shadow: 0 5px 16px #08070b80;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.retailer-tooltip::after {
  position: absolute;
  inset: 100% 0 auto;
  height: .4rem;
  content: "";
}
.retailer-logos li:first-child .retailer-tooltip { left: 0; transform: none; }
.retailer-logos li:last-child .retailer-tooltip { right: 0; left: auto; transform: none; }
.retailer-logos li:is(:hover, :focus-visible):not(.tooltip-dismissed) .retailer-tooltip { visibility: visible; }

@media (max-width: 690px) {
  .entrance { grid-template-columns: minmax(0, 1fr); width: min(100%, 520px); min-height: 0; }
  .vault { min-height: clamp(280px, 76vw, 385px); }
  .sign-in { border-left: 0; border-top: 1px solid var(--line); }
}
.runner-signup { display: inline-block; margin-top: .85rem; color: var(--text); font-size: .85rem; text-underline-offset: .18em; }
