/* ========================================
   DETAY - ALL LINKS PAGE
   Red Theme + Camera Frame
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- CSS Variables (RED THEME) ---- */
:root {
    --bg-primary: #060608;
    --bg-secondary: #0c0c12;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-primary: #f5f5f7;
    --text-secondary: #6e6e80;
    --text-muted: #3a3a4a;
    --accent: #e63946;
    --accent-dim: rgba(230, 57, 70, 0.15);
    --accent-glow: rgba(230, 57, 70, 0.25);
    --accent-secondary: #c1121f;
    --accent-bright: #ff4d5a;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(230, 57, 70, 0.25);
    --hoverboard-bg: rgba(10, 10, 18, 0.92);
    --radius-lg: 28px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --cam-color: rgba(230, 57, 70, 0.6);
    --cam-color-dim: rgba(230, 57, 70, 0.15);
}

/* ---- Custom Kick Icon ---- */
.custom-kick {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M37 .036h164.448v113.621h54.71v-56.82h54.731V.036h164.448v170.777h-54.73v56.82h-54.711v56.8h54.71v56.82h54.73V512.03H310.89v-56.82h-54.73v-56.8h-54.711v113.62H37V.036z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M37 .036h164.448v113.621h54.71v-56.82h54.731V.036h164.448v170.777h-54.73v56.82h-54.711v56.8h54.71v56.82h54.73V512.03H310.89v-56.82h-54.73v-56.8h-54.711v113.62H37V.036z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   CAMERA RECORDING FRAME
   ======================================== */

/* Corner brackets */
.cam-frame-tl, .cam-frame-tr, .cam-frame-bl, .cam-frame-br {
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: 9999;
    pointer-events: none;
}

.cam-frame-tl {
    top: 14px; left: 14px;
    border-top: 2px solid var(--cam-color);
    border-left: 2px solid var(--cam-color);
}
.cam-frame-tr {
    top: 14px; right: 14px;
    border-top: 2px solid var(--cam-color);
    border-right: 2px solid var(--cam-color);
}
.cam-frame-bl {
    bottom: 14px; left: 14px;
    border-bottom: 2px solid var(--cam-color);
    border-left: 2px solid var(--cam-color);
}
.cam-frame-br {
    bottom: 14px; right: 14px;
    border-bottom: 2px solid var(--cam-color);
    border-right: 2px solid var(--cam-color);
}

/* REC indicator */
.cam-rec {
    position: fixed;
    top: 26px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
}

.cam-rec-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: recBlink 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px var(--accent);
}

.cam-rec-text {
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes recBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Timestamp */
.cam-timestamp {
    position: fixed;
    bottom: 22px;
    right: 68px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 2px;
    z-index: 9999;
    pointer-events: none;
}

/* Center crosshair (subtle) */
.cam-crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.08;
}

.cam-crosshair::before,
.cam-crosshair::after {
    content: '';
    position: absolute;
    background: #fff;
}

.cam-crosshair::before {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

.cam-crosshair::after {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

/* Camera info top-right */
.cam-info {
    position: fixed;
    top: 22px;
    right: 68px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    z-index: 9999;
    pointer-events: none;
    text-align: right;
}

/* Vignette */
.cam-vignette {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

/* ---- Noise Overlay (texture) ---- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---- Animated Background ---- */
.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-animation .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: orbFloat 25s ease-in-out infinite;
}

.bg-animation .orb:nth-child(1) {
    width: 500px; height: 500px;
    background: var(--accent);
    top: -200px; left: -150px;
    animation-duration: 30s;
}

.bg-animation .orb:nth-child(2) {
    width: 400px; height: 400px;
    background: var(--accent-secondary);
    bottom: -100px; right: -100px;
    animation-delay: -8s;
    animation-duration: 25s;
}

.bg-animation .orb:nth-child(3) {
    width: 250px; height: 250px;
    background: #ff6b6b;
    top: 40%; left: 60%;
    animation-delay: -15s;
    animation-duration: 35s;
    opacity: 0.06;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -80px) scale(1.1); }
    50% { transform: translate(-50px, 60px) scale(0.9); }
    75% { transform: translate(70px, 30px) scale(1.05); }
}

/* ---- Particles ---- */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px; height: 2px;
    background: rgba(230, 57, 70, 0.35);
    border-radius: 50%;
    animation: particleRise linear infinite;
}

@keyframes particleRise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}


/* ========================================
   SUICIDEHOTLINE / MUSIC ATMOSPHERE
   ======================================== */
.brand-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.brand-atmosphere::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(230, 57, 70, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 72%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 72%);
    opacity: 0.42;
}

.ghost-logo {
    position: absolute;
    width: clamp(180px, 18vw, 340px);
    height: auto;
    opacity: 0.055;
    filter: drop-shadow(0 0 34px rgba(255, 0, 0, 0.24)) saturate(1.4);
    transform: rotate(-14deg);
    mix-blend-mode: screen;
}

.ghost-logo-left {
    left: clamp(28px, 7vw, 150px);
    top: 28vh;
}

.ghost-word-back {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(5rem, 14vw, 18rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(230, 57, 70, 0.08);
    text-stroke: 1px rgba(230, 57, 70, 0.08);
    opacity: 0.78;
    white-space: nowrap;
}

.side-label {
    position: absolute;
    top: 50%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: rgba(230, 57, 70, 0.38);
    letter-spacing: 0.42em;
    text-transform: uppercase;
    white-space: nowrap;
}

.side-label-left {
    left: 34px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
}

.side-label-right {
    right: 34px;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
}

.signal-card {
    position: absolute;
    width: 230px;
    padding: 14px 16px;
    border: 1px solid rgba(230, 57, 70, 0.14);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(12, 12, 18, 0.34), rgba(6, 6, 8, 0.08));
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}

.signal-card::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.8), transparent);
    opacity: 0.65;
}

.signal-card-left {
    left: clamp(22px, 9vw, 210px);
    top: 34%;
    transform: rotate(-2deg);
}

.signal-card-right {
    right: clamp(22px, 9vw, 210px);
    top: 56%;
    transform: rotate(2deg);
}

.signal-kicker {
    display: block;
    margin-bottom: 8px;
    color: rgba(230, 57, 70, 0.8);
    font-size: 0.56rem;
    letter-spacing: 0.28em;
}

.signal-card strong {
    display: block;
    color: rgba(245, 245, 247, 0.72);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
}

.signal-card small {
    display: block;
    color: rgba(255, 255, 255, 0.24);
    font-size: 0.52rem;
    letter-spacing: 0.18em;
}

.audio-eq {
    position: absolute;
    right: clamp(52px, 12vw, 230px);
    top: 38%;
    height: 96px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.24;
}

.audio-eq span {
    width: 3px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(255, 0, 0, 0.9), transparent);
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.38);
    animation: eqPulse 1.8s ease-in-out infinite;
}

.audio-eq span:nth-child(2) { height: 54px; animation-delay: -0.2s; }
.audio-eq span:nth-child(3) { height: 34px; animation-delay: -0.4s; }
.audio-eq span:nth-child(4) { height: 78px; animation-delay: -0.6s; }
.audio-eq span:nth-child(5) { height: 46px; animation-delay: -0.8s; }
.audio-eq span:nth-child(6) { height: 88px; animation-delay: -1.0s; }
.audio-eq span:nth-child(7) { height: 39px; animation-delay: -1.2s; }
.audio-eq span:nth-child(8) { height: 66px; animation-delay: -1.4s; }
.audio-eq span:nth-child(9) { height: 30px; animation-delay: -1.6s; }
.audio-eq span:nth-child(10) { height: 58px; animation-delay: -1.8s; }

@keyframes eqPulse {
    0%, 100% { transform: scaleY(0.55); opacity: 0.38; }
    50% { transform: scaleY(1); opacity: 1; }
}

.floating-tag {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.54rem;
    color: rgba(255, 255, 255, 0.17);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    padding-left: 18px;
}

.floating-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.7);
    transform: translateY(-50%);
    box-shadow: 0 0 16px rgba(230, 57, 70, 0.45);
}

.tag-1 { left: 18vw; top: 23vh; }
.tag-2 { right: 20vw; top: 27vh; }
.tag-3 { left: 17vw; bottom: 22vh; }

.hotline-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5.5vh;
    width: 100%;
    height: 150px;
    opacity: 0.55;
}

.hotline-wave path {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.wave-glow {
    stroke: rgba(255, 0, 0, 0.18);
    stroke-width: 10;
    filter: blur(8px);
}

.wave-main {
    stroke: rgba(230, 57, 70, 0.28);
    stroke-width: 1.5;
    stroke-dasharray: 12 16;
}

.wave-scan {
    stroke: rgba(255, 0, 0, 0.85);
    stroke-width: 2;
    stroke-dasharray: 120 1320;
    stroke-dashoffset: 0;
    animation: waveScan 6s linear infinite;
    filter: drop-shadow(0 0 7px rgba(255, 0, 0, 0.65));
}

@keyframes waveScan {
    to { stroke-dashoffset: -1440; }
}

/* ---- Main Container ---- */
.main-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 50px 20px 60px;
}

/* ---- Name Badge ---- */
.name-badge {
    text-align: center;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

.name-badge h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1;
}

.subtitle-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.subtitle-line .line {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
}

.subtitle-line .subtitle-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.name-badge .label-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.name-badge .label-link:hover {
    opacity: 1;
    letter-spacing: 3px;
}

/* ========================================
   FLOAT WRAPPER — Character + Hoverboard
   Single animation keeps them in sync
   ======================================== */
.float-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 460px;
    opacity: 0;
    animation: floatSync 5s ease-in-out infinite, fadeInUp 0.8s ease 0.5s forwards;
}

@keyframes floatSync {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Character ---- */
.character-container {
    position: relative;
    z-index: 10;
    margin-bottom: -60px;
    transition: transform 0.4s ease;
}

.character-container img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 60px rgba(230, 57, 70, 0.06));
}

.float-wrapper:hover .character-container {
    transform: scale(1.03);
}

/* ---- Hoverboard ---- */
.hoverboard {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--hoverboard-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px 28px 32px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow:
        0 0 80px rgba(230, 57, 70, 0.04),
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Gradient border */
.hoverboard::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(
        180deg,
        rgba(230, 57, 70, 0.2) 0%,
        transparent 30%,
        transparent 70%,
        rgba(193, 18, 31, 0.1) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Neon line */
.hoverboard-neon-line {
    position: absolute;
    top: 0;
    left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), var(--accent), transparent);
    border-radius: 2px;
    opacity: 0.7;
    box-shadow: 0 0 12px var(--accent-glow), 0 0 30px var(--accent-dim);
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* Ground shadow */
.hoverboard-shadow {
    width: 50%;
    height: 24px;
    margin: 0 auto;
    background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: shadowBreath 5s ease-in-out infinite;
}

@keyframes shadowBreath {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(0.8); opacity: 0.5; }
}

/* ---- Links Container ---- */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- Link Item ---- */
.link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    animation: linkReveal 0.5s ease forwards;
}

.link-item:nth-child(1) { animation-delay: 0.6s; }
.link-item:nth-child(2) { animation-delay: 0.7s; }
.link-item:nth-child(3) { animation-delay: 0.8s; }
.link-item:nth-child(4) { animation-delay: 0.9s; }
.link-item:nth-child(5) { animation-delay: 1.0s; }
.link-item:nth-child(6) { animation-delay: 1.1s; }
.link-item:nth-child(7) { animation-delay: 1.2s; }
.link-item:nth-child(8) { animation-delay: 1.3s; }
.link-item:nth-child(9) { animation-delay: 1.4s; }
.link-item:nth-child(10) { animation-delay: 1.5s; }

@keyframes linkReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Shine sweep */
.link-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before { left: 100%; }

.link-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateX(6px);
    box-shadow: 0 4px 24px rgba(230, 57, 70, 0.06);
}

.link-item:active {
    transform: translateX(3px) scale(0.99);
}

.link-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.link-item:hover .link-icon {
    transform: scale(1.1) rotate(-2deg);
    border-color: rgba(255, 255, 255, 0.08);
}

.link-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.link-arrow {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-6px);
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* ---- No Links ---- */
.no-links {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-secondary);
}

.no-links i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.3;
    display: block;
}

.no-links p { font-size: 0.85rem; }

/* ---- Footer ---- */
.footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.footer strong { color: var(--text-secondary); font-weight: 600; }

.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover { color: #fff; }


@media (max-width: 1100px) {
    .signal-card { opacity: 0.55; }
    .signal-card-left { left: 34px; }
    .signal-card-right { right: 34px; }
    .ghost-word-back { opacity: 0.46; }
}

@media (max-width: 768px) {
    .signal-card,
    .audio-eq,
    .ghost-logo,
    .floating-tag {
        display: none;
    }

    .ghost-word-back {
        top: 52%;
        font-size: 5.5rem;
        letter-spacing: 0.02em;
        opacity: 0.4;
    }

    .side-label {
        font-size: 0.48rem;
        letter-spacing: 0.28em;
        opacity: 0.6;
    }

    .side-label-left { left: 20px; }
    .side-label-right { right: 20px; }
    .hotline-wave {
        bottom: 5vh;
        height: 110px;
        opacity: 0.42;
    }
}

/* ========================================
   LOOK ARCHIVE V2 — refined wardrobe system
   ======================================== */
.character-container {
    width: var(--character-img-width, 210px);
    aspect-ratio: 1122 / 1402;
    flex: 0 0 auto;
    isolation: isolate;
    transition: transform 0.35s ease;
}

.character-container .character-layer {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translate3d(0, 7px, 0) scale(0.985);
    filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.68)) drop-shadow(0 0 38px rgba(230, 57, 70, 0.07));
    transition: opacity 0.38s cubic-bezier(.22,.78,.22,1), transform 0.38s cubic-bezier(.22,.78,.22,1), filter 0.38s ease;
    will-change: opacity, transform;
    user-select: none;
    -webkit-user-drag: none;
}

.character-container .character-layer.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.character-container .character-layer.is-entering {
    opacity: 0;
    transform: translate3d(0, -5px, 0) scale(1.018);
}

.character-container .character-layer.is-exiting {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.975);
    filter: blur(1.2px) drop-shadow(0 18px 32px rgba(0,0,0,.58));
}

.character-scanline {
    position: absolute;
    z-index: 4;
    left: 8%;
    right: 8%;
    top: 6%;
    height: 1px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255,65,65,.9), transparent);
    box-shadow: 0 0 14px rgba(255,0,0,.8);
    pointer-events: none;
}

.character-container.costume-changing .character-scanline {
    opacity: 1;
    animation: characterScan .42s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes characterScan {
    from { top: 8%; }
    to { top: 92%; }
}

.wardrobe-shell {
    z-index: 28;
}

.wardrobe-toggle {
    left: -82px;
    top: 104px;
    z-index: 6;
    width: 62px;
    height: 62px;
    border-radius: 19px;
    border-color: rgba(255, 58, 58, 0.42);
    background: linear-gradient(145deg, rgba(7,8,12,.98), rgba(31,5,9,.92));
    box-shadow: 0 14px 44px rgba(0,0,0,.44), 0 0 28px rgba(255,0,0,.13), inset 0 1px 0 rgba(255,255,255,.07);
}

.wardrobe-toggle::before,
.wardrobe-toggle::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(255,72,72,.58);
    pointer-events: none;
}

.wardrobe-toggle::before { left: 7px; top: 7px; border-left: 1px solid; border-top: 1px solid; }
.wardrobe-toggle::after { right: 7px; bottom: 7px; border-right: 1px solid; border-bottom: 1px solid; }
.wardrobe-toggle-icon { font-size: .9rem; }
.wardrobe-toggle-text { font-size: .46rem; letter-spacing: .18em; }
.wardrobe-shell.open .wardrobe-toggle { opacity: 0; visibility: hidden; pointer-events: none; }

.wardrobe-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(0,0,0,.025);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.wardrobe-shell.open .wardrobe-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wardrobe-panel {
    inset: auto;
    z-index: 2;
    left: 50%;
    top: -42px;
    width: min(820px, calc(100vw - 48px));
    height: 438px;
    overflow: hidden;
    border: 1px solid rgba(255, 50, 50, .24);
    border-radius: 28px;
    background:
        linear-gradient(90deg,
            rgba(5, 7, 12, .38) 0%,
            rgba(8, 6, 11, .32) 31%,
            rgba(18, 2, 7, .07) 39%,
            rgba(18, 2, 7, .035) 61%,
            rgba(8, 6, 11, .32) 69%,
            rgba(5, 7, 12, .38) 100%),
        radial-gradient(circle at 50% 44%, rgba(255, 0, 0, .075), transparent 39%);
    box-shadow:
        0 24px 80px rgba(0,0,0,.28),
        0 0 62px rgba(255,0,0,.13),
        inset 0 0 56px rgba(255,0,0,.035),
        inset 0 1px 0 rgba(255,255,255,.075);
    backdrop-filter: blur(8px) saturate(128%);
    -webkit-backdrop-filter: blur(8px) saturate(128%);
    transform: translate3d(calc(-50% + var(--wardrobe-panel-offset-x, 0px)), calc(var(--wardrobe-panel-offset-y, 0px) + 18px), 0) scale(calc(var(--wardrobe-panel-scale, 1) * .98));
    transform-origin: center center;
    transition: opacity .3s ease, transform .38s cubic-bezier(.22,.78,.22,1), visibility .3s ease;
    pointer-events: none;
}

.wardrobe-shell.open .wardrobe-panel {
    transform: translate3d(calc(-50% + var(--wardrobe-panel-offset-x, 0px)), var(--wardrobe-panel-offset-y, 0px), 0) scale(var(--wardrobe-panel-scale, 1));
}

.wardrobe-grid,
.wardrobe-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wardrobe-grid {
    background-image: linear-gradient(rgba(255,80,80,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,0,0,.034) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 94%);
}

.wardrobe-scan {
    opacity: .65;
    background: linear-gradient(to bottom, transparent 0, rgba(255,55,55,.055) 48%, rgba(255,80,80,.22) 50%, transparent 52%);
    background-size: 100% 180px;
    animation: wardrobeSweep 5.5s linear infinite;
}

@keyframes wardrobeSweep {
    from { background-position: 0 -190px; }
    to { background-position: 0 620px; }
}

.wardrobe-header {
    position: absolute;
    z-index: 5;
    left: 20px;
    right: 16px;
    top: 0;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    pointer-events: auto;
}

.wardrobe-header > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.wardrobe-header .wardrobe-kicker { font-size: .49rem; letter-spacing: .19em; }
.wardrobe-header strong { color: #f4f4f5; font-family: 'Outfit', sans-serif; font-size: .86rem; letter-spacing: .13em; }

.wardrobe-header-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.4);
    font: 600 .46rem/1 'JetBrains Mono', monospace;
    letter-spacing: .15em;
}

.wardrobe-header-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3535;
    box-shadow: 0 0 10px rgba(255,0,0,.85);
}

.wardrobe-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.wardrobe-left-panel {
    left: 18px;
    top: 78px;
    width: 236px;
    height: 338px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: auto;
}

.wardrobe-left-panel::before,
.wardrobe-right-panel::before { display: none; }

.wardrobe-panel-caption {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    padding: 0 2px;
}

.wardrobe-panel-caption span { color: rgba(255,255,255,.34); font-size: .48rem; letter-spacing: .12em; }
.wardrobe-panel-caption strong { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .66rem; letter-spacing: .08em; }

.wardrobe-options {
    height: 310px;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,40,40,.45) transparent;
    padding-right: 3px;
}

.wardrobe-option {
    grid-template-columns: 26px 42px minmax(0, 1fr) 6px;
    gap: 9px;
    min-height: 62px;
    padding: 5px 8px 5px 6px;
    border-radius: 14px;
    border-color: rgba(255,255,255,.065);
    background: rgba(255,255,255,.018);
    text-align: left;
}

.wardrobe-option:hover,
.wardrobe-option.active {
    transform: translateX(2px);
    border-color: rgba(255,45,45,.52);
    background: linear-gradient(90deg, rgba(255,0,0,.12), rgba(255,255,255,.025));
}

.wardrobe-option.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 3px;
    background: #ff3333;
    box-shadow: 0 0 12px rgba(255,0,0,.75);
}

.wardrobe-option-code { font-size: .5rem; text-align: center; }
.wardrobe-option-thumb {
    display: block;
    width: 42px;
    height: 50px;
    overflow: hidden;
    border-radius: 9px;
    background: radial-gradient(circle at 50% 80%, rgba(255,0,0,.14), transparent 65%);
    border: 1px solid rgba(255,255,255,.06);
}

.wardrobe-option-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wardrobe-option-text { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
.wardrobe-option-text strong { max-width: 100%; font-size: .69rem; }
.wardrobe-option-text small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.34); font: .43rem/1.2 'JetBrains Mono', monospace; letter-spacing: .08em; }

.wardrobe-center-hud {
    position: absolute;
    left: 50%;
    top: 82px;
    width: 250px;
    height: 320px;
    transform: translateX(-50%);
    border: 1px solid rgba(255,40,40,.08);
    background: radial-gradient(circle at center, rgba(255,0,0,.03), transparent 64%);
    pointer-events: none;
}

.wardrobe-center-hud::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 98px;
    height: 98px;
    border: 1px solid rgba(255,45,45,.13);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 26px rgba(255,0,0,.015), 0 0 0 54px rgba(255,0,0,.012);
}

.wardrobe-center-hud small {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    color: rgba(255,65,65,.48);
    font: .43rem/1 'JetBrains Mono', monospace;
    letter-spacing: .14em;
    white-space: nowrap;
}

.hud-corner { position: absolute; width: 24px; height: 24px; border-color: rgba(255,55,55,.72); }
.hud-corner-tl { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }
.hud-corner-tr { right: -1px; top: -1px; border-right: 2px solid; border-top: 2px solid; }
.hud-corner-bl { left: -1px; bottom: -1px; border-left: 2px solid; border-bottom: 2px solid; }
.hud-corner-br { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.hud-axis { position: absolute; background: rgba(255,45,45,.07); }
.hud-axis-x { left: 0; right: 0; top: 50%; height: 1px; }
.hud-axis-y { top: 0; bottom: 0; left: 50%; width: 1px; }

.wardrobe-right-panel {
    right: 18px;
    top: 78px;
    width: 218px;
    min-height: 0;
    height: 338px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    gap: 14px;
    pointer-events: auto;
}

.wardrobe-mobile-preview { display: none; }
.wardrobe-signal-bars { flex-direction: row; align-items: flex-end; gap: 5px; height: 66px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 16px; background: rgba(255,255,255,.018); }
.wardrobe-signal-bars span { width: 3px !important; height: 22px; background: linear-gradient(to top, rgba(255,0,0,.92), rgba(255,95,95,.35)); animation: eqPulse 1.8s ease-in-out infinite; }
.wardrobe-signal-bars span:nth-child(2) { height: 37px; animation-delay: -.2s; }
.wardrobe-signal-bars span:nth-child(3) { height: 47px; animation-delay: -.4s; }
.wardrobe-signal-bars span:nth-child(4) { height: 28px; animation-delay: -.6s; }
.wardrobe-signal-bars span:nth-child(5) { height: 42px; animation-delay: -.8s; }
.wardrobe-signal-bars span:nth-child(6) { height: 18px; animation-delay: -1s; }

.wardrobe-right-meta {
    margin: 0;
    min-height: 108px;
    justify-content: center;
    gap: 7px;
    padding: 16px;
    border-radius: 17px;
    border-color: rgba(255,45,45,.18);
    background: linear-gradient(145deg, rgba(255,0,0,.065), rgba(255,255,255,.018));
}

.wardrobe-right-meta span { color: rgba(255,67,67,.74); }
.wardrobe-right-meta strong { font: 700 1.08rem/1.1 'Outfit', sans-serif; }
.wardrobe-right-meta small { line-height: 1.4; }

.wardrobe-cycle-controls { grid-template-columns: 42px 1fr 42px; gap: 7px; margin: auto 0 0; }
.wardrobe-cycle-btn { width: 42px; height: 42px; border-radius: 13px; }
.wardrobe-cycle-readout { min-height: 62px; border-radius: 14px; }
.wardrobe-cycle-readout strong { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }

body.wardrobe-open .hoverboard,
body.wardrobe-open .name-badge { filter: saturate(.84) brightness(.86); transition: filter .3s ease; }

@media (min-width: 769px) {
    body.wardrobe-open .character-container {
        z-index: 32;
        transform:
            translate(
                var(--character-offset-x, 0px),
                calc(var(--character-offset-y, 0px) + 108px)
            )
            scale(var(--character-scale, 1)) !important;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .wardrobe-panel { width: calc(100vw - 28px); }
    .wardrobe-left-panel { width: 216px; }
    .wardrobe-right-panel { width: 196px; }
    .wardrobe-center-hud { width: 220px; }
}

@media (max-width: 768px) {
    body.wardrobe-open { overflow: hidden; touch-action: none; }
    body.wardrobe-open .float-wrapper { animation: none !important; opacity: 1; transform: none !important; }

    .wardrobe-toggle {
        position: absolute;
        left: auto;
        right: max(8px, env(safe-area-inset-right));
        top: 84px;
        bottom: auto;
        width: 58px;
        height: 58px;
        transform: translate(clamp(-60px, var(--wardrobe-toggle-offset-x, 0px), 60px), clamp(-60px, var(--wardrobe-toggle-offset-y, 0px), 60px));
        box-shadow: 0 10px 34px rgba(0,0,0,.62), 0 0 26px rgba(255,0,0,.2);
    }

    .wardrobe-toggle:hover,
    .wardrobe-shell.open .wardrobe-toggle {
        transform: translate(clamp(-60px, var(--wardrobe-toggle-offset-x, 0px), 60px), clamp(-60px, var(--wardrobe-toggle-offset-y, 0px), 60px));
    }

    .wardrobe-shell.open .wardrobe-toggle { opacity: 0; visibility: hidden; pointer-events: none; }
    .wardrobe-backdrop { background: rgba(0,0,0,.58); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

    .wardrobe-panel {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        height: min(76dvh, 660px);
        min-height: 540px;
        border-radius: 26px 26px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        background:
            linear-gradient(155deg, rgba(8,9,13,.88), rgba(22,4,10,.80)),
            radial-gradient(circle at 50% 35%, rgba(255,0,0,.08), transparent 46%);
        backdrop-filter: blur(14px) saturate(125%);
        -webkit-backdrop-filter: blur(14px) saturate(125%);
        transform: translate3d(clamp(-16px, var(--wardrobe-panel-offset-x, 0px), 16px), calc(102% + clamp(-28px, var(--wardrobe-panel-offset-y, 0px), 28px)), 0) scale(clamp(.94, var(--wardrobe-panel-scale, 1), 1.04));
        transform-origin: center bottom;
        transition: opacity .28s ease, transform .46s cubic-bezier(.2,.82,.24,1), visibility .28s ease;
    }

    .wardrobe-shell.open .wardrobe-panel { transform: translate3d(clamp(-16px, var(--wardrobe-panel-offset-x, 0px), 16px), clamp(-28px, var(--wardrobe-panel-offset-y, 0px), 28px), 0) scale(clamp(.94, var(--wardrobe-panel-scale, 1), 1.04)); }
    .wardrobe-panel::before { content: ''; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); transform: translateX(-50%); }
    .wardrobe-header { left: 16px; right: 12px; height: 66px; padding-top: 6px; }
    .wardrobe-header > div:first-child { flex-direction: column; align-items: flex-start; gap: 3px; }
    .wardrobe-header .wardrobe-kicker { font-size: .43rem; }
    .wardrobe-header strong { font-size: .76rem; }
    .wardrobe-header-status { display: none; }
    .wardrobe-close { margin-left: auto; width: 42px; height: 42px; }

    .wardrobe-center-hud { display: none; }
    .wardrobe-right-panel {
        display: grid;
        grid-template-columns: minmax(112px, .8fr) 1.2fr;
        grid-template-rows: 130px 64px;
        gap: 10px;
        left: 14px;
        right: 14px;
        top: 80px;
        width: auto;
        height: 204px;
    }

    .wardrobe-mobile-preview {
        display: grid;
        place-items: center;
        grid-row: 1 / 3;
        min-width: 0;
        overflow: hidden;
        border: 1px solid rgba(255,55,55,.16);
        border-radius: 18px;
        background: radial-gradient(circle at 50% 78%, rgba(255,0,0,.13), transparent 62%);
    }

    .wardrobe-mobile-preview img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.5)); }
    .wardrobe-signal-bars { display: none; }
    .wardrobe-right-meta { min-height: 0; height: 130px; padding: 13px; }
    .wardrobe-right-meta strong { font-size: clamp(.86rem, 4vw, 1.05rem); }
    .wardrobe-cycle-controls { grid-column: 2; grid-row: 2; margin: 0; grid-template-columns: 44px 1fr 44px; }
    .wardrobe-cycle-btn { width: 44px; height: 44px; }
    .wardrobe-cycle-readout { min-height: 54px; }
    .wardrobe-cycle-readout span,
    .wardrobe-cycle-readout small { display: none; }

    .wardrobe-left-panel {
        left: 14px;
        right: 0;
        top: 300px;
        width: auto;
        height: calc(100% - 318px);
        min-height: 208px;
        padding: 0;
    }

    .wardrobe-panel-caption { margin-right: 14px; }
    .wardrobe-options {
        flex-direction: row;
        height: calc(100% - 28px);
        min-height: 176px;
        gap: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 2px;
        padding: 0 14px 10px 1px;
        scrollbar-width: none;
    }

    .wardrobe-options::-webkit-scrollbar { display: none; }
    .wardrobe-option {
        flex: 0 0 112px;
        min-height: 170px;
        grid-template-columns: 1fr 8px;
        grid-template-rows: 20px 98px auto;
        gap: 3px 7px;
        padding: 8px;
        scroll-snap-align: start;
        border-radius: 17px;
    }

    .wardrobe-option:hover,
    .wardrobe-option.active { transform: translateY(-2px); }
    .wardrobe-option-code { grid-column: 1; grid-row: 1; text-align: left; }
    .wardrobe-option-thumb { grid-column: 1 / 3; grid-row: 2; width: 100%; height: 98px; border-radius: 11px; }
    .wardrobe-option-text { grid-column: 1 / 3; grid-row: 3; min-width: 0; }
    .wardrobe-option-text strong { font-size: .64rem; }
    .wardrobe-option-text small { font-size: .38rem; }
    .wardrobe-option-status { position: absolute; right: 9px; top: 11px; }

    .signal-card,
    .audio-eq,
    .floating-tag,
    .side-label { display: none; }
    .ghost-word-back { font-size: 19vw; opacity: .18; }
    .hotline-wave { opacity: .28; }
    .main-container { min-height: 100dvh; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .hoverboard { width: min(100%, 460px); }
}

@media (max-width: 380px), (max-height: 680px) and (max-width: 768px) {
    .wardrobe-panel { height: min(88dvh, 620px); min-height: 500px; }
    .wardrobe-right-panel { grid-template-rows: 112px 58px; height: 180px; }
    .wardrobe-right-meta { height: 112px; }
    .wardrobe-left-panel { top: 274px; height: calc(100% - 288px); min-height: 190px; }
    .wardrobe-option { min-height: 154px; grid-template-rows: 18px 84px auto; }
    .wardrobe-option-thumb { height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
    .character-container .character-layer,
    .wardrobe-panel,
    .wardrobe-backdrop { transition-duration: .01ms !important; }
    .character-scanline,
    .wardrobe-scan,
    .wardrobe-signal-bars span { animation: none !important; }
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .main-container { padding: 30px 16px 40px; }
    .name-badge h1 { font-size: 2.6rem; letter-spacing: 1px; }
    .subtitle-line .subtitle-text { font-size: 0.65rem; letter-spacing: 3px; }
    .character-container img { width: 140px; }
    .character-container { margin-bottom: -48px; }
    .hoverboard { padding: 36px 18px 24px; border-radius: 22px; }
    .link-item { padding: 13px 16px; gap: 12px; }
    .link-icon { width: 38px; height: 38px; font-size: 1.05rem; }
    .link-text { font-size: 0.88rem; }

    .cam-frame-tl, .cam-frame-tr, .cam-frame-bl, .cam-frame-br {
        width: 24px; height: 24px;
    }
    .cam-rec { left: 20px; top: 20px; }
    .cam-rec-text { font-size: 0.55rem; }
    .cam-timestamp { right: 48px; bottom: 18px; font-size: 0.5rem; }
    .cam-info { right: 48px; top: 18px; font-size: 0.45rem; }
}

@media (min-width: 768px) {
    .main-container { padding-top: 70px; }
    .name-badge h1 { font-size: 5rem; letter-spacing: 3px; }
    .character-container img { width: 200px; }
    .character-container { margin-bottom: -70px; }
    .hoverboard { padding: 52px 32px 36px; }
}

/* ---- Robust Kick Icon Rendering ---- */
i.custom-kick,
.link-icon .custom-kick,
.selected-icon.custom-kick {
    display: inline-block;
    width: 1em;
    height: 1em;
    min-width: 1em;
    background-color: currentColor;
    font-style: normal;
    vertical-align: -0.125em;
}


@layer legacy-wardrobe {
/* ========================================
   CHARACTER WARDROBE / HOLOGRAM SELECT SCREEN
   ======================================== */
.character-container {
    cursor: default;
    margin-bottom: var(--character-margin-bottom, -60px);
}

.character-container img {
    width: var(--character-img-width, 200px);
    max-width: none;
    height: auto;
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.3s ease;
    will-change: opacity, transform;
}

.character-container.costume-changing img {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
}

.wardrobe-shell {
    position: absolute;
    inset: 0;
    z-index: 18;
    pointer-events: none;
}

.wardrobe-toggle {
    position: absolute;
    left: -78px;
    top: 114px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255, 0, 0, 0.42);
    background:
        linear-gradient(145deg, rgba(8, 10, 15, 0.92), rgba(28, 6, 10, 0.68)),
        radial-gradient(circle at 30% 30%, rgba(255, 0, 0, 0.22), transparent 55%);
    color: rgba(255,255,255,0.88);
    box-shadow:
        0 0 26px rgba(255, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(var(--wardrobe-toggle-offset-x, 0px), var(--wardrobe-toggle-offset-y, 0px));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.wardrobe-toggle:hover,
.wardrobe-shell.open .wardrobe-toggle {
    transform: translate(var(--wardrobe-toggle-offset-x, 0px), calc(var(--wardrobe-toggle-offset-y, 0px) - 3px)) scale(1.04);
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow:
        0 0 34px rgba(255, 0, 0, 0.24),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.wardrobe-toggle-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3030;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.85);
    animation: wardrobePulse 1.35s ease-in-out infinite;
}

.wardrobe-toggle-icon {
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    line-height: 1;
}

.wardrobe-toggle-text {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.44rem;
    color: rgba(255, 80, 80, 0.96);
}

.wardrobe-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translate(var(--wardrobe-panel-offset-x, 0px), calc(var(--wardrobe-panel-offset-y, 0px) + 10px)) scale(var(--wardrobe-panel-scale, 1));
    transform-origin: center top;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.wardrobe-shell.open .wardrobe-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(var(--wardrobe-panel-offset-x, 0px), var(--wardrobe-panel-offset-y, 0px)) scale(var(--wardrobe-panel-scale, 1));
}

.wardrobe-left-panel,
.wardrobe-right-panel,
.wardrobe-cycle-btn,
.wardrobe-option,
.wardrobe-close {
    pointer-events: auto;
}

.wardrobe-bracket {
    position: absolute;
    top: 58px;
    width: 30px;
    height: 196px;
    opacity: 0.96;
    filter: drop-shadow(0 0 14px rgba(255, 0, 0, 0.24));
}

.wardrobe-bracket::before,
.wardrobe-bracket::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.95), rgba(255, 70, 70, 0.8));
    border-radius: 999px;
}

.wardrobe-bracket-left {
    left: calc(50% - 118px);
}

.wardrobe-bracket-right {
    right: calc(50% - 118px);
}

.wardrobe-bracket-left::before,
.wardrobe-bracket-right::before {
    top: 0;
    width: 24px;
    height: 4px;
}

.wardrobe-bracket-left::after,
.wardrobe-bracket-right::after {
    bottom: 0;
    width: 24px;
    height: 4px;
}

.wardrobe-bracket-left::before,
.wardrobe-bracket-left::after {
    left: 0;
}

.wardrobe-bracket-right::before,
.wardrobe-bracket-right::after {
    right: 0;
}

.wardrobe-bracket-left {
    border-left: 4px solid rgba(255, 0, 0, 0.92);
    border-radius: 12px 0 0 12px;
}

.wardrobe-bracket-right {
    border-right: 4px solid rgba(255, 0, 0, 0.92);
    border-radius: 0 12px 12px 0;
}

.wardrobe-left-panel {
    position: absolute;
    left: -108px;
    top: 48px;
    width: 186px;
    padding: 12px 10px 10px;
    border: 1px solid rgba(255, 0, 0, 0.12);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(10, 12, 20, 0.12), rgba(10, 12, 20, 0.02));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wardrobe-left-panel::before,
.wardrobe-right-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(255, 0, 0, 0.09) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.25;
    pointer-events: none;
}

.wardrobe-panel-caption {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}

.wardrobe-kicker {
    color: rgba(255, 0, 0, 0.86);
    font-size: 0.54rem;
    letter-spacing: 0.22em;
}

.wardrobe-panel-caption strong {
    color: rgba(245,245,247,0.88);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.18);
}

.wardrobe-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.wardrobe-option {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 0, 0, 0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    color: rgba(245,245,247,0.86);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wardrobe-option:hover,
.wardrobe-option.active {
    border-color: rgba(255, 0, 0, 0.5);
    background: rgba(255, 0, 0, 0.08);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.12);
    transform: translateX(3px);
}

.wardrobe-option-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.54rem;
    letter-spacing: 0.14em;
    color: rgba(255, 0, 0, 0.92);
}

.wardrobe-option-thumb {
    display: none;
}

.wardrobe-option-text {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.wardrobe-option-text strong {
    font-size: 0.72rem;
    color: rgba(245,245,247,0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wardrobe-option-text small {
    display: none;
}

.wardrobe-option-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
}

.wardrobe-option.active .wardrobe-option-status {
    background: #ff2f2f;
    box-shadow: 0 0 10px rgba(255,0,0,0.84);
}

.wardrobe-cycle-controls {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.wardrobe-cycle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 0, 0, 0.26);
    background: rgba(255, 0, 0, 0.06);
    color: rgba(255,255,255,0.86);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wardrobe-cycle-btn:hover,
.wardrobe-close:hover {
    transform: scale(1.06);
    border-color: rgba(255, 0, 0, 0.66);
    background: rgba(255, 0, 0, 0.14);
}

.wardrobe-cycle-readout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 60px;
    border-radius: 16px;
    border: 1px solid rgba(255, 0, 0, 0.12);
    background: rgba(255,255,255,0.02);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    padding: 6px 8px;
}

.wardrobe-cycle-readout span,
.wardrobe-cycle-readout small {
    font-size: 0.54rem;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.46);
}

.wardrobe-cycle-readout strong {
    font-family: 'Outfit', sans-serif;
    color: rgba(245,245,247,0.94);
    font-size: 0.92rem;
    line-height: 1.1;
    text-transform: none;
}

.wardrobe-right-panel {
    position: absolute;
    right: -88px;
    top: 54px;
    width: 144px;
    min-height: 214px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 0, 0, 0.12);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(10, 12, 20, 0.12), rgba(10, 12, 20, 0.02));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.wardrobe-close {
    align-self: flex-end;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 0, 0, 0.2);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.76);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wardrobe-signal-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
}

.wardrobe-signal-bars span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.96), rgba(255, 120, 120, 0.56));
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.18);
}

.wardrobe-signal-bars span:nth-child(1) { width: 20px; }
.wardrobe-signal-bars span:nth-child(2) { width: 38px; }
.wardrobe-signal-bars span:nth-child(3) { width: 54px; }
.wardrobe-signal-bars span:nth-child(4) { width: 28px; }
.wardrobe-signal-bars span:nth-child(5) { width: 46px; }
.wardrobe-signal-bars span:nth-child(6) { width: 18px; }

.wardrobe-right-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 0, 0, 0.12);
    background: rgba(255,255,255,0.03);
    font-family: 'JetBrains Mono', monospace;
}

.wardrobe-right-meta span,
.wardrobe-right-meta small {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.48);
    text-transform: uppercase;
}

.wardrobe-right-meta strong {
    color: rgba(245,245,247,0.92);
    font-size: 0.88rem;
    line-height: 1.2;
}
@keyframes wardrobePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.72); }
}

@media (min-width: 768px) {
    .character-container {
        margin-bottom: var(--character-margin-bottom, -70px);
    }

    .character-container img {
        width: var(--character-img-width, 200px);
    }
}


@media (max-width: 900px) {
    .wardrobe-left-panel { left: -76px; width: 170px; }
    .wardrobe-right-panel { right: -72px; width: 132px; }
}

@media (max-width: 768px) {
    .wardrobe-toggle {
        left: 50%;
        top: 72px;
        transform: translate(calc(-50% + var(--wardrobe-toggle-offset-x, 0px)), var(--wardrobe-toggle-offset-y, 0px));
        width: 52px;
        height: 52px;
    }

    .wardrobe-toggle:hover,
    .wardrobe-shell.open .wardrobe-toggle {
        transform: translate(calc(-50% + var(--wardrobe-toggle-offset-x, 0px)), calc(var(--wardrobe-toggle-offset-y, 0px) - 2px)) scale(1.03);
    }

    .wardrobe-bracket {
        top: 68px;
        height: 150px;
    }

    .wardrobe-bracket-left { left: calc(50% - 94px); }
    .wardrobe-bracket-right { right: calc(50% - 94px); }

    .wardrobe-left-panel,
    .wardrobe-right-panel {
        position: absolute;
        top: auto;
        width: 100%;
        left: 0;
        right: 0;
    }

    .wardrobe-left-panel {
        top: 236px;
        width: calc(100% - 12px);
        margin: 0 auto;
        left: 6px;
        right: 6px;
    }

    .wardrobe-right-panel {
        display: none;
    }

    .float-wrapper {
        max-width: 100%;
    }
}
}
