:root {
    --bg: #000;
    --ink: #d9e7ff;
    --muted: #8aa0b7;
    --accent: #3be3ff;
    --accent-2: #ff365f;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    letter-spacing: .2px;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, .03),
        rgba(255, 255, 255, .03) 1px,
        transparent 2px,
        transparent 3px
    );
    mix-blend-mode: overlay;
    z-index: 0;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}

header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    margin: 18px 0 8px;
    background: radial-gradient(800px 400px at 20% -10%, #0f1923 0%, #000 55%) no-repeat;
    padding: 20px;
    border-radius: var(--radius);
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, var(--accent-2), var(--accent) 45%, #1e2935 60%, var(--accent-2));
    box-shadow: inset 0 0 0 3px #0b1117, 0 0 40px rgba(59, 227, 255, .25);
    position: relative;
    isolation: isolate;
}

.logo::after {
    content: "K";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #00131a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .15);
}

h1 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 38px);
    letter-spacing: .8px;
}

.sub { color: var(--muted); margin-top: 4px; }

section { margin: 28px 0; }
section h2 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin: 0 0 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #000;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 16px 18px 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .15;
    background: radial-gradient(circle at 0 0, var(--accent), transparent 55%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.card-title {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.timer-label {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 8px;
}

.timer-display {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.segment {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(15, 25, 35, .8);
    backdrop-filter: blur(3px);
    min-width: 72px;
    text-align: center;
}

.segment-value {
    display: block;
    font-size: 18px;
}

.segment-label {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.glitch::before { transform: translate(1px, 0); color: var(--accent); }
.glitch::after { transform: translate(-1px, 0); color: var(--accent-2); }

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 6px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    background: rgba(59, 227, 255, 0.05);
    font-size: 12px;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 12px var(--accent);
}

footer {
    margin: 26px 0 60px;
    color: var(--muted);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: radial-gradient(800px 400px at 20% 120%, #0f1923 0%, #000 55%) no-repeat;
    padding: 20px;
    border-radius: var(--radius);
}

.sig { opacity: .8; }

@media (max-width: 600px) {
    .logo { width: 48px; height: 48px; }
    footer { flex-direction: column; align-items: flex-start; }
}

.gaq-card::before {
    background: radial-gradient(circle at 0 0, var(--accent-2), transparent 55%);
}

.gaq-card .timer-label {
    color: var(--accent-2);
}

.gaq-card .segment {
    border-color: rgba(255, 54, 95, 0.35);
}

.gaq-card .segment-value {
    color: #ff365f;
}

.card.gaq-card::before {
    background: radial-gradient(circle at 0 0, var(--accent-2), transparent 55%) !important;
    opacity: 0.2;
}

.card.gaq-card .timer-label {
    color: var(--accent-2) !important;
}

.card.gaq-card .card-title {
    color: #ff6b81 !important;
}

.card.gaq-card .segment {
    border-color: rgba(255, 54, 95, 0.45) !important;
}

.card.gaq-card .segment-value {
    color: #ff365f !important;
}

.card.gaq-card:hover {
    box-shadow: 0 0 18px rgba(255, 54, 95, 0.25);
}

.card.gshift-card::before {
    background: radial-gradient(circle at 0 0, #9aa0a6, transparent 55%) !important;
    opacity: 0.18;
}

.card.gshift-card .timer-label,
.card.gshift-card .card-title,
.card.gshift-card .segment-value {
    color: #b0b5bb !important;
}

.card.gshift-card .segment {
    border-color: rgba(176, 181, 187, 0.45) !important;
}

.card.gshift-card:hover {
    box-shadow: 0 0 18px rgba(176, 181, 187, 0.25);
}

.card {
    box-shadow:
        0 0 14px rgba(59, 227, 255, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.45);
}

.card:hover {
    box-shadow:
        0 0 18px rgba(59, 227, 255, 0.14),
        0 14px 34px rgba(0, 0, 0, 0.55);
}

.card.gaq-card:hover {
    box-shadow:
        0 0 22px rgba(255, 54, 95, 0.25),
        0 14px 34px rgba(0, 0, 0, 0.55);
}

.card.gshift-card:hover {
    box-shadow:
        0 0 18px rgba(176, 181, 187, 0.22),
        0 14px 34px rgba(0, 0, 0, 0.55);
}

.card.wander-card::before {
    background: radial-gradient(circle at 0 0, #ffffff, transparent 60%) !important;
    opacity: 0.15;
}

.card.wander-card .card-title,
.card.wander-card .timer-label,
.card.wander-card .segment-value {
    color: #ffffff !important;
}

.card.wander-card .segment {
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.card.wander-card .segment-label {
    color: rgba(255, 255, 255, 0.65) !important;
}

.card.wander-card:hover {
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.25),
        0 14px 34px rgba(0, 0, 0, 0.55);
}

.card.parabox-card::before {
    background: radial-gradient(circle at 0 0, #0099dd, transparent 58%) !important;
    opacity: 0.18;
}

.card.parabox-card .timer-label,
.card.parabox-card .segment-value {
    color: #0099dd !important;
}

.card.parabox-card .card-title {
    color: #2fb4e8 !important;
}

.card.parabox-card .segment {
    border-color: #0099dd73 !important;
}

.card.parabox-card:hover {
    box-shadow:
        0 0 22px #0099dd73,
        0 14px 34px rgba(0, 0, 0, 0.55);
}
