/* Hyperdrive theme for links.auvipho.co
   --a: titles and buttons   --b: labels, portrait ring, warp streaks   --bg: space */
:root { --a: #ffe45c; --b: #62aeff; --bg: #000007; --ink: #eef0f7; --dim: #8e96ab; color-scheme: dark; }
html[data-theme="neon"] { --a: #ff62d4; --b: #4de8ff; --bg: #07021a; }
html[data-theme="phosphor"] { --a: #8dff6e; --b: #22c552; --bg: #010a03; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; }
body {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center;
    padding: 0 20px;
    font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink); background: var(--bg); overflow-x: hidden;
}
html.warping, html.warping body { overflow: hidden; }

#warp { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.hud {
    position: relative; z-index: 1; width: 100%;
    display: flex; justify-content: space-between; gap: 12px; padding: 12px 0;
    font: 12px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}

#ui {
    position: relative; z-index: 1; width: 100%; flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 28px 0 24px; text-align: center; will-change: transform, opacity;
}
/* Arriving from another page of this site: start hidden so the arrival can play.
   The animation is a failsafe that shows the page if the script never runs. */
html.arriving #ui { opacity: 0; animation: warp-failsafe 0s 1.5s forwards; }
@keyframes warp-failsafe { to { opacity: 1; } }

.avatar {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block;
    border: 1px solid var(--a); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--b);
}
.eyebrow { font: 12px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--b); }
.title { font: 700 2rem/1.1 'Orbitron', 'Trebuchet MS', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--a); }
@supports (-webkit-text-stroke: 1px red) { .title { color: transparent; -webkit-text-stroke: 1.5px var(--a); } }
.text { max-width: 44ch; }

.links { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.links a {
    display: block; padding: 14px 16px; text-decoration: none; cursor: pointer;
    font: 500 1rem/1.2 'Orbitron', 'Trebuchet MS', sans-serif; letter-spacing: .08em; text-transform: uppercase;
    color: var(--btn, var(--a)); background: rgba(0, 0, 0, .7);
    border: 1px solid var(--btn, var(--a));
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: background-color .12s, color .12s, transform .12s;
    -webkit-tap-highlight-color: transparent;
}
.links a:hover, .links a:focus-visible, .links a.picked { background: var(--btn, var(--a)); color: #0b0900; transform: scale(1.03); outline: 0; }
.links .l1 { display: block; font-weight: 700; }
.links .l2 { display: block; font-size: .78em; opacity: .8; margin-top: 3px; }
/* Start menu: one colour per destination */
.links .y { --btn: #ffe45c; }
.links .g { --btn: #3dff7a; }
.links .p { --btn: #ff4fa3; }

footer {
    position: relative; z-index: 1; width: 100%; padding: 8px 0 16px;
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
    font-size: .75rem; color: var(--dim);
}
.status { font: 12px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--a); }

@media (max-width: 480px) {
    .title { font-size: 1.6rem; }
    .links a { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .links a { transition: none; } }
