:root { font: 12px/1.4 system-ui, sans-serif; color: #17191c; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; }
header { color-scheme: dark; position: fixed; z-index: 10; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; width: max-content; max-width: calc(100% - 16px); padding: 4px 6px; border: 1px solid #393939; border-radius: 999px; color: #f5f5f5; background: #111; box-shadow: 0 5px 20px #0004; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
button, a { font: inherit; }
button, #direct { min-height: 28px; border: 1px solid transparent; border-radius: 999px; color: inherit; background: transparent; }
#variant { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 156px; min-width: 0; text-align: left; }
#variant-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#variant > span:last-child { color: #aaa; }
#variants { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; align-items: start; width: 690px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 90px); overflow-y: auto; scroll-padding-block: 10px 34px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #777 #171717; padding: 10px 10px 34px; border: 1px solid #3b3b3b; border-radius: 18px; background: #141414; box-shadow: 0 12px 48px #0008; }
#variants > [role="option"] { grid-column: 1 / -1; }
#picker-hint { position: absolute; bottom: calc(100% + 11px); left: 50%; transform: translateX(-50%); width: 688px; max-width: calc(100vw - 18px); padding: 8px 12px; border-radius: 0 0 17px 17px; background: #141414; color: #bbb; text-align: center; font-size: 10px; pointer-events: none; }
#variants > [role="group"] { min-width: 0; overflow-wrap: anywhere; }
.group-label { padding: 8px 10px 6px; color: #aaa; font-size: 10px; letter-spacing: .08em; }
[role="option"] { position: relative; min-height: 28px; padding: 6px 22px 6px 10px; border-radius: 7px; cursor: pointer; }
[role="option"]:hover, [role="option"].active { background: #303030; }
[role="option"][aria-selected="true"] { color: #fff; background: #383838; }
[role="option"][aria-selected="true"]::after { content: '✓'; position: absolute; right: 8px; }
#picker-backdrop { position: fixed; inset: 0; z-index: 9; }
button { padding: 4px 7px; cursor: pointer; white-space: nowrap; }
#previous, #next, #direct { width: 28px; padding: 3px; text-align: center; }
button:hover:not(:disabled), #direct:hover { background: #303030; }
button:disabled { color: #777; cursor: default; }
.controls { display: flex; align-items: center; gap: 0; }
#direct { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
main { height: 100%; min-height: 0; position: relative; }
iframe { display: block; width: 100%; height: 100%; border: 0; background: white; }
[hidden] { display: none !important; }
#loader { position: fixed; z-index: 5; inset: 0; display: grid; place-items: center; padding: 24px 24px 80px; color: #f4f5f6; background: #101113; contain: layout paint; opacity: 0; transition: opacity 220ms ease; will-change: opacity; }
#loader.is-visible { opacity: 1; }
/* Four cached image layers; only opacity changes during animation. */
.matrix-field { position: absolute; inset: 0; background: url("matrix-cubes.svg") left top / 64px 64px repeat; contain: strict; pointer-events: none; }
.matrix-wave { position: absolute; inset: 0; background-position: left top; background-size: 1024px 768px; background-repeat: repeat; opacity: 0; animation: matrix-light 4.8s ease-in-out infinite; will-change: opacity; }
.wave-one { background-image: url("matrix-wave-1.svg"); }
.wave-two { background-image: url("matrix-wave-2.svg"); animation-delay: -3.2s; }
.wave-three { background-image: url("matrix-wave-3.svg"); animation-delay: -1.6s; }
#loader::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, #080c11eb 0%, #080c11bf 18%, #080c1138 48%, #080c111a 72%, #080c1170 100%); }
.loader-content { position: relative; z-index: 1; text-align: center; max-width: 320px; }
.loader-label { margin: 0 0 12px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: #aebbc5; }
#notice { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.5; overflow-wrap: anywhere; }
#loader[data-state="error"] .matrix-wave { animation: none; opacity: .12; will-change: auto; }
@keyframes matrix-light { 0%, 66%, 100% { opacity: .015; } 28%, 36% { opacity: .68; } }
@media (prefers-reduced-motion: reduce) { #loader { transition: none; } .matrix-wave { animation: none; will-change: auto; opacity: .12; } }
@media (forced-colors: active) { #loader { color: CanvasText; background: Canvas; } .matrix-field, #loader::after { display: none; } }
@media (max-width: 360px) { #variant { width: 130px; } header { gap: 0; padding-inline: 4px; } button { padding-inline: 5px; } }
@media (forced-colors: active) { header { border-color: CanvasText; color: CanvasText; background: Canvas; } :focus-visible { outline-color: Highlight; } }
