/* =========================================
   UI COMPONENTS
   ========================================= */

/* Loading Screen */
.loading-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    min-height: 100dvh;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    background:
        linear-gradient(rgba(255,255,255,0.035) 50%, rgba(0,0,0,0.2) 50%),
        linear-gradient(rgba(0, 255, 255, 0.06) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 50% 38%, rgba(255, 105, 180, 0.16), transparent 34%),
        #05000a;
    background-size: 100% 4px, 28px 28px, 28px 28px, auto, auto;
    opacity: 0;
    pointer-events: all;
    transition: opacity 0.34s var(--cg-ease-ui);
}
.loading-overlay.is-visible {
    opacity: 1;
}
.loading-overlay.is-leaving .loading-window {
    animation: loader-window-out 0.26s steps(4, end) both;
}
.loading-window {
    width: min(92vw, 520px);
    min-height: 320px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    padding: 54px 28px 26px;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 5px;
    background:
        radial-gradient(circle at 50% 24%, rgba(0,255,255,0.14), transparent 34%),
        linear-gradient(135deg, rgba(138,43,226,0.22), rgba(0,0,0,0.86) 50%, rgba(255,105,180,0.14)),
        #06000d;
    box-shadow:
        9px 9px 0 rgba(0,0,0,0.86),
        0 0 28px rgba(0,255,255,0.2),
        inset 0 0 0 2px rgba(255,255,255,0.06),
        inset 0 0 28px rgba(138,43,226,0.18);
    animation: loader-window-in 0.36s steps(5, end) both;
}
.loading-window::before,
.loading-window::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.loading-window::before {
    background:
        linear-gradient(90deg, rgba(0,255,255,0.06), transparent 18%, transparent 82%, rgba(255,105,180,0.07)),
        radial-gradient(ellipse at 50% 50%, transparent 54%, rgba(0,0,0,0.45));
}
.loading-window::after {
    background: linear-gradient(110deg, transparent 0 40%, rgba(255,255,255,0.14) 48%, transparent 56%);
    transform: translateX(-120%);
    animation: start-panel-shine 1.35s steps(8, end) 0.1s both;
}
.loading-titlebar {
    min-height: 31px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 10px;
    color: #06000d;
    background: linear-gradient(90deg, var(--neon-cyan), #e9fbff 58%, #ff8de0);
    border-bottom: 3px solid #fff;
    font-family: var(--font-terminal);
    font-size: 20px;
    line-height: 1;
    text-shadow: none;
}
.loading-text {
    position: relative;
    z-index: 1;
    font-family: 'VT323', monospace;
    color: var(--neon-cyan);
    font-size: clamp(32px, 7vw, 48px);
    line-height: 1;
    letter-spacing: 0;
    margin: 0;
    text-shadow: 4px 4px 0px var(--akane-color);
}
.loading-boot-log {
    width: min(100%, 360px);
    display: grid;
    gap: 5px;
    position: relative;
    z-index: 1;
    color: #d7f9ff;
    font-family: var(--font-terminal);
    font-size: clamp(17px, 3.2vw, 21px);
    line-height: 1;
    text-align: left;
    text-shadow: 2px 2px 0 #000;
}
.loading-boot-log span {
    display: block;
    opacity: 0;
    transform: translateX(-8px);
    animation: start-terminal-line 0.28s steps(4, end) forwards;
}
.loading-boot-log span:nth-child(1) { animation-delay: 0.08s; }
.loading-boot-log span:nth-child(2) { animation-delay: 0.24s; }
.loading-boot-log span:nth-child(3) { animation-delay: 0.4s; }
.loading-boot-log span::before {
    content: "> ";
    color: #ff69b4;
}
.loading-progress {
    width: min(100%, 360px);
    height: 16px;
    padding: 3px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #05000a;
    border: 2px solid rgba(0,255,255,0.82);
    box-shadow: inset 0 0 8px rgba(0,255,255,0.18), 3px 3px 0 #000;
}
.loading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    background:
        repeating-linear-gradient(90deg, var(--neon-cyan) 0 12px, #ff69b4 12px 16px, transparent 16px 20px);
    animation: loader-progress-fill 0.9s steps(12, end) both;
}
.loading-icons-wrapper {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.loading-icons-wrapper .load-dot {
    width: 52px;
    height: 52px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: none !important;
    background-color: transparent !important;
    filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.8));
    animation-name: loader-party-ready;
    animation-duration: 0.72s;
    animation-iteration-count: infinite;
    animation-direction: alternate-reverse;
    animation-timing-function: steps(3, end);
}
.ld-akane { background-image: url('../assets/icons/icon-akane.webp'); animation-delay: 0s; }
.ld-rika { background-image: url('../assets/icons/icon-rika.webp'); animation-delay: 0.15s; }
.ld-momo { background-image: url('../assets/icons/icon-momo.webp'); animation-delay: 0.3s; }
.ld-jun { background-image: url('../assets/icons/icon-jun.webp'); animation-delay: 0.45s; }
.loading-caption {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffdaf6;
    font-family: var(--font-terminal);
    font-size: clamp(16px, 3vw, 19px);
    line-height: 1.1;
    text-shadow: 2px 2px 0 #000;
}

/* Start Window */
.start-window {
    position: fixed;
    inset: 0;
    z-index: 10000000;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 255, 255, 0.16), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(255, 105, 180, 0.14), transparent 30%),
        radial-gradient(circle at 50% 48%, rgba(138, 43, 226, 0.3), transparent 36%),
        linear-gradient(135deg, #030006 0%, #070014 48%, #150026 100%);
    font-family: var(--font-pixel);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.start-window::before,
.start-window::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}

.start-window::before {
    background:
        linear-gradient(rgba(255,255,255,0.03) 50%, rgba(0,0,0,0.24) 50%),
        linear-gradient(90deg, rgba(255,0,68,0.045), rgba(0,255,255,0.042), rgba(255,0,68,0.045));
    background-size: 100% 4px, 6px 100%;
    mix-blend-mode: screen;
}

.start-window::after {
    background:
        radial-gradient(ellipse at 50% 50%, transparent 46%, rgba(0,0,0,0.52) 100%),
        linear-gradient(90deg, rgba(0,255,255,0.05), transparent 18%, transparent 82%, rgba(255,105,180,0.06));
}

.start-window.is-finished {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-window.is-booted .start-crt-flash {
    opacity: 0;
    visibility: hidden;
}

.start-window.is-ready .start-boot-panel {
    opacity: 0;
    visibility: hidden;
}

.start-window.is-ready .start-title-panel {
    opacity: 1;
    transform: scale(1);
    filter: none;
}

.start-crt-flash {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    background: #fff;
    transform-origin: center;
    animation: start-crt-power 1.25s steps(9, end) forwards;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.start-boot-panel,
.start-title-panel {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.start-boot-panel {
    z-index: 3;
    align-content: center;
    gap: 12px;
    padding: 24px;
    background:
        linear-gradient(rgba(0,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,105,180,0.035) 1px, transparent 1px),
        rgba(5, 0, 10, 0.94);
    background-size: 26px 26px;
    animation: start-boot-hide 2.25s steps(7, end) forwards;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.start-boot-window {
    width: min(88vw, 460px);
    min-height: 300px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 12px;
    padding: 46px 28px 26px;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 5px;
    background:
        radial-gradient(circle at 50% 26%, rgba(0,255,255,0.16), transparent 34%),
        linear-gradient(135deg, rgba(138,43,226,0.24), rgba(0,0,0,0.82) 48%, rgba(255,105,180,0.16)),
        #06000d;
    box-shadow:
        9px 9px 0 rgba(0,0,0,0.84),
        0 0 28px rgba(0,255,255,0.18),
        inset 0 0 0 2px rgba(255,255,255,0.06),
        inset 0 0 28px rgba(138,43,226,0.2);
}

.start-boot-window::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0 40%, rgba(255,255,255,0.12) 48%, transparent 56%);
    transform: translateX(-120%);
    animation: start-panel-shine 1.5s steps(8, end) 0.36s both;
}

.start-os-titlebar,
.start-window-titlebar {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #06000d;
    background:
        linear-gradient(90deg, var(--neon-cyan), #e9fbff 58%, #ff8de0);
    border-bottom: 3px solid #fff;
    font-family: var(--font-terminal);
    font-size: 20px;
    line-height: 1;
    text-shadow: none;
}

.start-os-titlebar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px 10px;
}

.start-studio-logo {
    width: min(54vw, 260px);
    height: auto;
    filter: drop-shadow(0 0 16px rgba(255,255,255,0.45)) drop-shadow(0 0 24px rgba(0,255,255,0.28));
    animation: start-logo-glow 1.1s ease-in-out 0.45s both;
}

.start-os-label {
    color: var(--neon-cyan);
    font-size: clamp(18px, 4vw, 28px);
    text-shadow: 3px 3px 0 #000, 0 0 16px rgba(0,255,255,0.65);
    opacity: 0;
    animation: start-os-appear 0.8s steps(5, end) 0.75s forwards;
}

.start-boot-log {
    width: min(100%, 330px);
    display: grid;
    gap: 4px;
    margin-top: 4px;
    color: #d7f9ff;
    font-family: var(--font-terminal);
    font-size: clamp(16px, 3.2vw, 20px);
    line-height: 1;
    text-align: left;
    text-shadow: 2px 2px 0 #000;
}

.start-boot-log span {
    display: block;
    opacity: 0;
    transform: translateX(-8px);
    animation: start-terminal-line 0.28s steps(4, end) forwards;
}

.start-boot-log span:nth-child(1) { animation-delay: 0.88s; }
.start-boot-log span:nth-child(2) { animation-delay: 1.12s; }
.start-boot-log span:nth-child(3) { animation-delay: 1.36s; }

.start-boot-log span::before {
    content: "> ";
    color: #ff69b4;
}

.start-boot-progress {
    width: min(100%, 330px);
    height: 16px;
    padding: 3px;
    overflow: hidden;
    background: #05000a;
    border: 2px solid rgba(0,255,255,0.82);
    box-shadow: inset 0 0 8px rgba(0,255,255,0.18), 3px 3px 0 #000;
}

.start-boot-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg, var(--neon-cyan) 0 12px, #ff69b4 12px 16px, transparent 16px 20px);
    transform-origin: left center;
    animation: start-boot-progress 1.2s steps(12, end) 0.72s both;
}

.start-title-panel {
    z-index: 2;
    opacity: 0;
    transform: scale(1.02);
    filter: contrast(2) hue-rotate(24deg);
    animation: start-title-enter 0.65s steps(6, end) 2.18s forwards;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.start-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.26) contrast(1.18) brightness(0.68);
}

.start-title-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 105, 180, 0.24), transparent 32%),
        radial-gradient(circle at 50% 62%, rgba(0,255,255,0.12), transparent 42%),
        linear-gradient(rgba(5,0,10,0.1), rgba(5,0,10,0.68));
    pointer-events: none;
}

.start-title-content {
    position: relative;
    z-index: 2;
    width: min(94vw, 760px);
    min-height: 0;
    height: min(92dvh, 660px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 2vh, 17px);
    padding: clamp(52px, 7vh, 62px) clamp(18px, 4vw, 36px) clamp(14px, 3vw, 24px);
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.92);
    border-radius: 6px;
    box-shadow:
        12px 12px 0 rgba(0,0,0,0.84),
        0 0 0 2px rgba(0,255,255,0.2),
        0 0 32px rgba(0,255,255,0.28),
        0 0 54px rgba(255,105,180,0.18),
        inset 0 0 0 2px rgba(255,255,255,0.06),
        inset 0 0 30px rgba(255,105,180,0.12);
    background:
        radial-gradient(circle at 50% 44%, rgba(138,43,226,0.24), transparent 46%),
        linear-gradient(rgba(0,255,255,0.052) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,105,180,0.045) 2px, transparent 2px),
        rgba(5,0,10,0.6);
    background-size: 24px 24px, 24px 24px, auto;
    animation: start-monitor-idle 5.2s ease-in-out infinite;
}

.start-title-content::before,
.start-title-content::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.start-title-content::before {
    inset: 38px 14px 14px;
    border: 2px dashed rgba(0,255,255,0.28);
    box-shadow: inset 0 0 34px rgba(0,0,0,0.34);
}

.start-title-content::after {
    left: -30%;
    top: 36px;
    width: 42%;
    height: calc(100% - 52px);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-12deg) translateX(-140%);
    animation: start-glass-sweep 4.8s steps(10, end) infinite;
}

.start-window-titlebar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 5px 9px 5px 12px;
    border-bottom-color: rgba(255,255,255,0.92);
    box-shadow: 0 3px 0 rgba(0,0,0,0.7);
}

.start-window-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.start-window-controls i {
    width: 12px;
    height: 12px;
    display: block;
    background: #06000d;
    border: 2px solid rgba(255,255,255,0.72);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.38);
}

.start-window-controls i:nth-child(2) { background: #ff69b4; }
.start-window-controls i:nth-child(3) { background: #ffd32a; }

.start-desktop-widgets {
    position: absolute;
    inset: 58px 22px 96px;
    z-index: 1;
    pointer-events: none;
}

.start-widget {
    position: absolute;
    min-width: 118px;
    padding: 8px;
    color: rgba(255,255,255,0.82);
    background: rgba(0,0,0,0.48);
    border: 2px solid rgba(0,255,255,0.26);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.52), inset 0 0 12px rgba(0,255,255,0.08);
    font-family: var(--font-terminal);
    font-size: 16px;
    line-height: 1;
    text-align: left;
}

.start-widget span {
    display: block;
    margin-bottom: 6px;
    color: var(--neon-cyan);
}

.start-widget b {
    display: block;
    height: 5px;
    margin-top: 5px;
    background: rgba(255,255,255,0.24);
    transform-origin: left center;
}

.start-widget-log {
    left: 0;
    top: 38px;
    animation: start-widget-float 4.2s steps(5, end) infinite;
}

.start-widget-log b:nth-child(2) { width: 76%; background: #ff69b4; }
.start-widget-log b:nth-child(3) { width: 48%; background: var(--neon-cyan); }
.start-widget-log b:nth-child(4) { width: 64%; background: #ffd32a; }

.start-widget-signal {
    right: 0;
    bottom: 10px;
    width: 96px;
    min-width: 96px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 5px;
    animation: start-widget-float 5s steps(6, end) -1.2s infinite;
}

.start-widget-signal span {
    grid-column: 1 / -1;
}

.start-widget-signal b {
    width: 100%;
    height: 12px;
    margin: 0;
    background: var(--neon-cyan);
    animation: start-signal-bars 0.9s steps(4, end) infinite alternate;
}

.start-widget-signal b:nth-child(3) { height: 20px; animation-delay: -0.2s; background: #ff69b4; }
.start-widget-signal b:nth-child(4) { height: 28px; animation-delay: -0.35s; background: #ffd32a; }
.start-widget-signal b:nth-child(5) { height: 16px; animation-delay: -0.55s; background: #8bffdc; }

.start-player-row {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--neon-cyan);
    font-size: clamp(14px, 3vw, 18px);
    text-shadow: 3px 3px 0 #000;
}

.start-series-logo {
    position: relative;
    z-index: 2;
    width: min(78vw, 450px);
    height: auto;
    filter:
        drop-shadow(8px 8px 0 rgba(0,0,0,0.86))
        drop-shadow(0 0 16px rgba(255,105,180,0.36))
        drop-shadow(0 0 12px rgba(0,255,255,0.18));
    animation: start-title-pulse 2.2s ease-in-out infinite, start-logo-glitch 5.6s steps(1, end) infinite;
}

.start-menu-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.press-start-btn {
    min-width: min(82vw, 280px);
    min-height: 58px;
    padding: 12px 22px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: #05000a;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 44%),
        var(--neon-cyan);
    border: 3px solid #fff;
    border-radius: 3px;
    box-shadow:
        7px 7px 0 var(--neon-magenta),
        0 0 18px rgba(0,255,255,0.36),
        inset 0 -8px 0 rgba(0,0,0,0.12);
    font-family: var(--font-pixel);
    font-size: clamp(18px, 4vw, 28px);
    line-height: 1;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.55);
    animation: start-press-blink 1.1s steps(2, end) infinite, start-button-aura 1.8s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

.press-start-btn::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(5,0,10,0.36);
    pointer-events: none;
}

.press-start-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0 38%, rgba(255,255,255,0.46) 48%, transparent 58%);
    transform: translateX(-120%);
    animation: start-button-scan 2.4s steps(8, end) infinite;
    pointer-events: none;
}

.press-start-btn:hover,
.press-start-btn:focus-visible {
    outline: none;
    color: #fff;
    background: var(--neon-magenta);
    box-shadow: -6px 6px 0 var(--neon-cyan), 0 0 18px rgba(0,255,255,0.32);
}

.press-start-btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0 0 0 transparent;
}

.start-menu-meta {
    color: #d7d7d7;
    font-size: clamp(10px, 2.5vw, 13px);
    text-shadow: 2px 2px 0 #000;
}

.start-runner-track {
    position: relative;
    z-index: 2;
    width: min(88vw, 560px);
    height: clamp(138px, 20vh, 176px);
    overflow: hidden;
    border-bottom: 3px solid rgba(255,255,255,0.72);
}

.start-runner-track::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 28px;
    background:
        repeating-linear-gradient(90deg, rgba(0,255,255,0.14) 0 16px, transparent 16px 28px);
    transform: perspective(120px) rotateX(54deg);
    transform-origin: center bottom;
}

.start-runner-track::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 150px;
    height: 18px;
    background: rgba(0,0,0,0.48);
    filter: blur(9px);
    transform: translateX(-50%);
}

.start-console-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: -2px;
    color: rgba(255,255,255,0.74);
    font-family: var(--font-terminal);
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1;
    text-shadow: 2px 2px 0 #000;
}

.start-console-footer span {
    min-width: 0;
    padding: 5px 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(0,0,0,0.42);
    border: 1px solid rgba(255,255,255,0.2);
}

.start-akane-runner {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 247px;
    height: 216px;
    background-image: url('../assets/start-window/akane-run-1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
    filter: drop-shadow(5px 5px 0 rgba(0,0,0,0.75));
    transform: translateX(-50%) scale(0.62);
    transform-origin: center bottom;
    animation: start-akane-run 0.52s steps(1, end) infinite, start-akane-bob 0.52s steps(2, end) infinite;
}

/* JRPG Menu Boxes */
.menu-box {
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
    background-color: rgba(10, 5, 20, 0.85); border: 3px solid #ffffff; padding: 20px; box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; gap: 15px; position: relative;
}
.menu-box:hover {
    transform: translateY(-3px);
    box-shadow: 10px 10px 0px rgba(0,0,0,0.8);
}
.menu-box::after {
    content: ''; position: absolute; top: -100%; left: 0;
    width: 100%; height: 40%;
    background: linear-gradient(to bottom, transparent 0%, rgba(138,43,226,0.04) 50%, transparent 100%);
    animation: scanline-sweep 6s linear infinite; pointer-events: none; z-index: 0;
}
.box-main    { border-top: 6px solid var(--akane-color); }
.box-stickers{ border-top: 6px solid var(--whatsapp-color); }
.box-support { border-top: 6px solid var(--gold-color); }
.box-music   { border-top: 6px solid var(--momo-color); }
.box-contact { border-top: 6px solid var(--akane-color); }
.section-title { font-family: var(--font-pixel); font-size: 18px; line-height: 1.15; color: #fff; margin-top: 0; margin-bottom: 10px; text-align: left; text-transform: uppercase; border-bottom: 2px dashed rgba(255,255,255,0.3); padding-bottom: 7px; overflow-wrap: anywhere; }
.cursor-blink { animation: blinker 1s cubic-bezier(1, 0, 0, 1) infinite; }

/* Buttons */
.link-btn { 
    position: relative; overflow: hidden; 
    display: flex; align-items: center; min-width: 0; padding: 14px 18px; text-decoration: none; color: #ffffff; font-size: 16px; font-weight: 900; background-color: #1a1a1a; border: 2px solid #555; transition: all 0.1s; text-align: left; box-shadow: 4px 4px 0px rgba(0,0,0,0.6); 
}
.link-btn::before {
    content: ''; position: absolute; top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}
.link-btn:hover::before { left: 125%; }
.link-btn .icon-img, .link-btn .icon { transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.link-btn:hover .icon-img, .link-btn:hover .icon { transform: scale(1.18) rotate(-4deg); }
.link-btn:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px rgba(0,0,0,0); }
.link-btn .icon { font-size: 26px; margin-right: 15px; filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5)); }
.link-btn .icon-img { width: 28px; height: 28px; object-fit: contain; margin-right: 15px; flex-shrink: 0; filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5)); image-rendering: pixelated; }
.text-container { display: flex; flex-direction: column; min-width: 0; }
.btn-title { font-size: 16px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.btn-subtitle { font-size: 10px; color: #bbbbbb; font-weight: 700; margin-top: 4px; font-family: var(--font-pixel); letter-spacing: 0; overflow-wrap: anywhere; }

/* Hover states for links */
.btn-pitch:hover { border-color: #fff; background-color: #333; box-shadow: -4px 4px 0px var(--akane-color); transform: translate(4px, -4px); }
.btn-x:hover { border-color: #fff; background-color: #333; box-shadow: -4px 4px 0px #fff; transform: translate(4px, -4px); }
.btn-tiktok:hover { border-color: #fff; background-color: #333; box-shadow: -4px 4px 0px #00f2fe; transform: translate(4px, -4px); }
.btn-whatsapp:hover { border-color: #fff; background-color: #113322; box-shadow: -4px 4px 0px var(--whatsapp-color); transform: translate(4px, -4px); }
.btn-discord:hover { border-color: #fff; background-color: #222244; box-shadow: -4px 4px 0px var(--discord-color); transform: translate(4px, -4px); }
.btn-patreon:hover { border-color: #fff; background-color: #441111; box-shadow: -4px 4px 0px var(--patreon-color); transform: translate(4px, -4px); }
.btn-kofi:hover { border-color: #fff; background-color: #113344; box-shadow: -4px 4px 0px var(--kofi-color); transform: translate(4px, -4px); }
.btn-paypal:hover { border-color: #fff; background-color: #112244; box-shadow: -4px 4px 0px var(--paypal-color); transform: translate(4px, -4px); }
.btn-contact-studio:hover { border-color: #fff; background-color: #241136; box-shadow: -4px 4px 0px var(--akane-color); transform: translate(4px, -4px); }
.btn-mail:hover { border-color: #fff; background-color: #443311; box-shadow: -4px 4px 0px var(--gold-color); transform: translate(4px, -4px); }

/* Character Selection */
.character-select {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
    width: min(100%, 640px);
    margin: 20px auto 0;
    position: relative;
    z-index: 10;
}

.character-drawer {
    position: relative;
    padding: 18px 12px 12px;
    border: 3px solid rgba(255, 255, 255, 0.76);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(0, 255, 255, 0.08), transparent 48%, rgba(255, 105, 180, 0.08)),
        rgba(0, 0, 0, 0.36);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.76), inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.character-drawer-label {
    position: absolute;
    top: -13px;
    left: 12px;
    padding: 3px 9px;
    color: #05000a;
    background: #fff;
    border: 2px solid #05000a;
    font-family: var(--font-pixel);
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0;
}

.character-drawer-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.character-drawer-main { grid-column: 1 / -1; }
.character-drawer-danger { grid-column: 1; }
.character-drawer-support { grid-column: 2; }
.character-drawer-main { border-color: rgba(0, 255, 255, 0.78); }
.character-drawer-main .character-drawer-label { background: var(--neon-cyan); }
.character-drawer-danger { border-color: rgba(255, 0, 60, 0.84); }
.character-drawer-danger .character-drawer-label { color: #fff; background: #8b001f; border-color: #fff; }
.character-drawer-support { border-color: color-mix(in srgb, var(--reiko-color) 45%, var(--mitsuki-color) 55%); }
.character-drawer-support .character-drawer-label { background: var(--neon-lime); }

.character-drawer-danger,
.character-drawer-support {
    min-height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.char-btn { 
    width: 75px; height: 75px; border-radius: 8px; border: 3px solid #fff; background-color: #1a1a1a; background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 4px 4px 0px rgba(0,0,0,0.8); transition: transform 0.15s steps(3), filter 0.15s; outline: none; 
}
.char-btn:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px rgba(0,0,0,0); }
.char-btn.akane { border-color: var(--akane-color); background-image: url('../assets/icons/icon-akane.webp'); }
.char-btn.rika { border-color: var(--rika-color); background-image: url('../assets/icons/icon-rika.webp'); }
.char-btn.momo { border-color: var(--momo-color); background-image: url('../assets/icons/icon-momo.webp'); }
.char-btn.jun { border-color: var(--jun-color); background-image: url('../assets/icons/icon-jun.webp'); }
.char-btn.reiko { border-color: var(--reiko-color); background-image: url('../assets/icons/icon-reiko.webp'); }
.char-btn.mitsuki { border-color: var(--mitsuki-color); background-image: url('../assets/icons/icon-mitsuk-cardi.webp'); }
.char-btn.hoshi {
    border-color: #ff003c;
    background-image:
        linear-gradient(rgba(255, 0, 60, 0.18), rgba(0, 0, 0, 0.16)),
        url('../assets/icons/icon-hoshi.webp');
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.85), 0 0 18px rgba(255, 0, 60, 0.66);
    animation: hoshi-danger-button 1.3s steps(2, end) infinite;
}
.char-btn:hover { filter: brightness(1.25) saturate(1.2); animation: char-jitter 0.25s steps(3) infinite; }

.char-btn-danger-label {
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    z-index: 2;
    padding: 2px 3px;
    color: #fff;
    background: rgba(160, 0, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.86);
    font-family: var(--font-pixel);
    font-size: 8px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
}

/* Logo and Subtitle */
.main-logo { flex: 1; min-width: 0; max-width: min(82vw, 460px); width: 100%; height: auto; filter: drop-shadow(6px 6px 0px rgba(0, 0, 0, 0.9)); transition: transform 0.2s steps(4); cursor: pointer; animation: logo-idle-float 5s ease-in-out infinite; }
.main-logo:hover { transform: scale(1.05) rotate(-2deg); animation-play-state: paused; }
p.subtitle { font-family: var(--font-pixel); color: #d3d3d3; font-size: 15px; margin-top: 5px; letter-spacing: 0; text-transform: uppercase; background-color: rgba(0,0,0,0.6); padding: 8px 15px; border: 2px solid #fff; box-shadow: 4px 4px 0px rgba(0,0,0,0.8); animation: subtitle-border-pulse 3s ease-in-out infinite; }

/* Music Toggle */
#musicToggleBtn {
    background: transparent; border: none; cursor: pointer;
    font-size: 20px; padding: 0 2px; line-height: 1;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5));
    transition: transform 0.1s steps(2), filter 0.15s;
    outline: none; -webkit-tap-highlight-color: transparent;
}
#musicToggleBtn:hover { transform: scale(1.25); filter: drop-shadow(0 0 6px var(--akane-color)); }
#musicToggleBtn:active { transform: scale(0.88) translate(2px,2px); }
#musicToggleBtn.music-off { opacity: 0.45; }

/* Music Cards */
.music-card { display: flex; flex-direction: column; padding: 14px 18px; border: 2px solid #555; box-shadow: 4px 4px 0px rgba(0,0,0,0.6); transition: all 0.1s; }
.card-akane { background-color: rgba(138, 43, 226, 0.15); } .card-akane:hover { border-color: #fff; background-color: rgba(138, 43, 226, 0.3); box-shadow: -4px 4px 0px var(--akane-color); transform: translate(4px, -4px); }
.card-rika { background-color: rgba(255, 69, 0, 0.15); } .card-rika:hover { border-color: #fff; background-color: rgba(255, 69, 0, 0.3); box-shadow: -4px 4px 0px var(--rika-color); transform: translate(4px, -4px); }
.card-momo { background-color: rgba(255, 105, 180, 0.15); } .card-momo:hover { border-color: #fff; background-color: rgba(255, 105, 180, 0.3); box-shadow: -4px 4px 0px var(--momo-color); transform: translate(4px, -4px); }
.card-jun { background-color: rgba(0, 191, 255, 0.15); } .card-jun:hover { border-color: #fff; background-color: rgba(0, 191, 255, 0.3); box-shadow: -4px 4px 0px var(--jun-color); transform: translate(4px, -4px); }
.card-header { display: flex; align-items: center; margin-bottom: 12px; text-align: left; }
.platform-links { display: flex; gap: 10px; width: 100%; }
.cover-art { width: 65px; height: 65px; object-fit: cover; object-position: center 20%; border: 2px solid rgba(255, 255, 255, 0.8); box-shadow: 3px 3px 0px rgba(0,0,0,0.8); margin-right: 15px; flex-shrink: 0; background-color: #000; }
.plat-btn { flex: 1; padding: 6px 0; text-decoration: none; font-family: var(--font-pixel); font-weight: 700; font-size: 10px; text-align: center; border: 2px solid rgba(255,255,255,0.2); color: #ccc; background-color: rgba(0,0,0,0.5); transition: 0.1s; }
.yt-btn:hover { border-color: #fff; background-color: var(--yt-color); color: #fff; }
.sp-btn:hover { border-color: #fff; background-color: var(--spotify-color); color: #fff; }

.btn-preview-mixer {
    width: 100%;
    min-height: 34px;
    margin-top: 10px;
    padding: 6px 10px;
    color: var(--neon-cyan);
    background:
        linear-gradient(90deg, rgba(0,255,255,0.08), transparent 45%, rgba(255,105,180,0.08)),
        #07070b;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-pixel);
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.12s steps(2), color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.card-akane .btn-preview-mixer { color: #c58cff; }
.card-rika .btn-preview-mixer { color: #ff7a43; }
.card-momo .btn-preview-mixer { color: #ff7fbd; }
.card-jun .btn-preview-mixer { color: #53d7ff; }

.btn-preview-mixer:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.08);
    box-shadow: -3px 3px 0 currentColor, 0 0 11px currentColor;
    transform: translate(3px, -2px);
}

.btn-preview-mixer:active {
    transform: translate(3px, 3px);
    box-shadow: none;
}

.btn-preview-mixer:focus-visible,
.mixer-window button:focus-visible,
.mixer-store-link:focus-visible {
    outline: 3px dashed #fff;
    outline-offset: 3px;
}

/* Infinity OS // Garage Mixer */
.mixer-window {
    --mixer-accent: var(--neon-cyan);
    position: fixed;
    z-index: 100150;
    right: 24px;
    bottom: 24px;
    width: min(410px, calc(100vw - 32px));
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        #08070b;
    background-size: 18px 18px, 18px 18px, auto;
    border: 3px solid #fff;
    border-radius: 4px;
    box-shadow: 9px 9px 0 #000, 0 0 22px color-mix(in srgb, var(--mixer-accent) 58%, transparent);
    animation: cg-panel-boot 0.24s steps(4);
}

.mixer-window[hidden] {
    display: none;
}

.mixer-window[data-character="akane"] { --mixer-accent: var(--akane-color); }
.mixer-window[data-character="rika"] { --mixer-accent: var(--rika-color); }
.mixer-window[data-character="momo"] { --mixer-accent: var(--momo-color); }
.mixer-window[data-character="jun"] { --mixer-accent: var(--jun-color); }

.mixer-titlebar {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 8px 7px 12px;
    color: #fff;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--mixer-accent) 22%, transparent), transparent 72%),
        #100d14;
    border-bottom: 3px solid var(--mixer-accent);
    font-family: var(--font-terminal);
    font-size: 19px;
    line-height: 1;
}

.mixer-titlebar > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mixer-close {
    flex: 0 0 auto;
    min-width: 43px;
    min-height: 28px;
    padding: 3px 7px;
    color: #fff;
    background: #b50032;
    border: 2px solid #fff;
    border-radius: 2px;
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-terminal);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.mixer-content {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
}

.mixer-cover-frame {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(0,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,105,180,0.04) 1px, transparent 1px),
        #020203;
    background-size: 13px 13px, 13px 13px, auto;
    border: 3px solid var(--mixer-accent);
    box-shadow: 4px 4px 0 #000, inset 0 0 16px rgba(0,0,0,0.8);
}

.mixer-cover-frame img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 1;
}

.mixer-cover-frame img:not([src]) {
    opacity: 0;
}

.mixer-cover-placeholder {
    position: absolute;
    z-index: 1;
    color: #6f6877;
    font-family: var(--font-pixel);
    font-size: 9px;
    line-height: 1.35;
    text-align: center;
}

.mixer-cover-frame img[src] + .mixer-cover-placeholder {
    opacity: 0;
}

.mixer-readout {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
}

.mixer-channel-label,
.mixer-status,
.mixer-footer {
    font-family: var(--font-terminal);
    line-height: 1;
}

.mixer-channel-label {
    color: var(--mixer-accent);
    font-size: 15px;
}

#mixerTrackTitle {
    min-height: 36px;
    overflow-wrap: anywhere;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: 11px;
    line-height: 1.35;
    text-shadow: 2px 2px 0 #000;
}

.mixer-status {
    padding: 5px 7px;
    overflow: hidden;
    color: #c5bdcc;
    background: #030304;
    border-left: 3px solid var(--mixer-accent);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mixer-window.is-error .mixer-status {
    color: #ff9fb5;
    border-left-color: #ff0044;
}

.mixer-store-link {
    width: fit-content;
    color: var(--mixer-accent);
    font-family: var(--font-terminal);
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
}

.mixer-store-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--mixer-accent);
}

.mixer-footer {
    padding: 7px 10px;
    color: #7d7585;
    background: #030304;
    border-top: 2px solid rgba(255,255,255,0.12);
    font-size: 12px;
    text-align: center;
}

/* Infinity OS // X Feed */
.x-feed-window {
    --mixer-accent: var(--neon-cyan);
    position: fixed;
    z-index: 100020;
    inset: 0;
    width: 100%;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(rgba(0, 255, 255, 0.038) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 61, 242, 0.032) 1px, transparent 1px),
        linear-gradient(24deg, rgba(255, 61, 242, 0.14), transparent 38%),
        #05060a;
    background-size: 22px 22px, 22px 22px, auto, auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(20px) scale(0.99);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s steps(5), opacity 0.18s steps(4), visibility 0s linear 0.22s;
}

.x-feed-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 3px 4px);
    mix-blend-mode: screen;
}

.x-feed-window.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.x-feed-titlebar {
    position: relative;
    z-index: 5;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px 9px 18px;
    color: #fff;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--mixer-accent) 22%, transparent), transparent 72%),
        #100d14;
    border-bottom: 3px solid var(--mixer-accent);
    box-shadow: 0 5px 0 #000, 0 0 22px rgba(0, 255, 255, 0.2);
    font-family: var(--font-terminal);
    font-size: 17px;
    line-height: 1;
}

.x-feed-titlebar > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-feed-close {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 36px;
    place-items: center;
}

.x-feed-content {
    position: relative;
    z-index: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
    gap: clamp(14px, 2vw, 30px);
    padding: clamp(16px, 2.4vw, 34px);
    overflow: hidden;
}

.x-feed-character-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 255, 255, 0.1), transparent 44%),
        linear-gradient(315deg, rgba(255, 61, 242, 0.16), transparent 48%),
        #0a0810;
    border: 3px solid rgba(255, 255, 255, 0.78);
    box-shadow: 8px 8px 0 #000, inset 0 0 34px rgba(0, 0, 0, 0.7);
}

.x-feed-character-stage::before {
    content: "";
    position: absolute;
    inset: -45% 0 auto;
    height: 48%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.12), transparent);
    animation: x-feed-scan 5.6s linear infinite;
}

.x-feed-stage-label {
    position: relative;
    z-index: 2;
    justify-self: start;
    margin: 14px 14px 0;
    padding: 6px 8px;
    color: #05060a;
    background: var(--mixer-accent);
    border: 2px solid #fff;
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-pixel);
    font-size: 8px;
    line-height: 1.35;
}

.x-feed-speech {
    position: relative;
    z-index: 3;
    justify-self: center;
    width: min(86%, 430px);
    margin: clamp(18px, 3vh, 30px) 18px 4px;
    padding: clamp(14px, 2vw, 22px);
    color: #09070d;
    background: #fff;
    border: 3px solid #09070d;
    border-radius: 4px;
    box-shadow: 6px 6px 0 var(--neon-magenta);
    font-family: var(--font-terminal);
    text-align: center;
    animation: x-feed-bubble-idle 3.8s steps(2, end) infinite;
}

.x-feed-speech::after {
    content: "";
    position: absolute;
    left: 24%;
    bottom: -18px;
    width: 28px;
    height: 28px;
    background: #fff;
    border-right: 3px solid #09070d;
    border-bottom: 3px solid #09070d;
    transform: skewY(-34deg) rotate(42deg);
}

.x-feed-speech strong,
.x-feed-speech span {
    position: relative;
    z-index: 1;
    display: block;
}

.x-feed-speech strong {
    font-family: var(--font-pixel);
    font-size: clamp(10px, 1.3vw, 15px);
    line-height: 1.45;
}

.x-feed-speech span {
    margin-top: 8px;
    font-size: clamp(15px, 1.8vw, 21px);
    line-height: 1.15;
}

.x-feed-group-picture {
    position: relative;
    z-index: 2;
    min-height: 0;
    display: grid;
    place-items: end center;
    overflow: hidden;
    padding: 18px 10px 0;
}

.x-feed-group-picture img {
    width: min(100%, 720px);
    height: 100%;
    max-height: 52vh;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.58));
    animation: x-feed-party-idle 4.2s ease-in-out infinite;
}

.x-feed-profile-cta {
    position: relative;
    z-index: 3;
    justify-self: center;
    min-width: min(86%, 340px);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 18px 18px;
    padding: 10px 16px;
    color: #fff;
    background: #08090d;
    border: 3px solid var(--mixer-accent);
    box-shadow: 5px 5px 0 #000, 0 0 16px rgba(0, 255, 255, 0.24);
    font-family: var(--font-pixel);
    font-size: 9px;
    line-height: 1.35;
    text-decoration: none;
    transition: transform 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.x-feed-profile-cta img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    image-rendering: pixelated;
}

.x-feed-profile-cta:hover,
.x-feed-profile-cta:focus-visible {
    color: var(--mixer-accent);
    transform: translate(3px, -3px);
    box-shadow: 2px 8px 0 #000, 0 0 22px rgba(0, 255, 255, 0.38);
}

.x-feed-stream {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
}

.x-feed-frame {
    position: relative;
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
    background:
        linear-gradient(rgba(0,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,105,180,0.032) 1px, transparent 1px),
        #020203;
    background-size: 13px 13px, 13px 13px, auto;
    border: 3px solid var(--mixer-accent);
    box-shadow: 4px 4px 0 #000, inset 0 0 16px rgba(0,0,0,0.8);
}

.x-feed-frame::before {
    content: "LOADING_X_FEED...";
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 18px;
    color: #6f6877;
    font-family: var(--font-pixel);
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
}

.x-feed-frame.is-loaded::before,
.x-feed-frame.is-fallback::before {
    display: none;
}

.x-feed-sections {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 12px;
}

.x-feed-section {
    display: grid;
    gap: 10px;
}

.x-feed-section-title {
    margin: 0;
    padding: 6px 8px;
    color: #ffffff;
    background: #06343a;
    border: 2px solid rgba(0,255,255,0.72);
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-pixel);
    font-size: 9px;
    line-height: 1.3;
    text-shadow: 2px 2px 0 #000;
}

.x-feed-posts {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.x-feed-fallback {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    place-content: center;
    gap: 10px;
    padding: 22px;
    color: #c5bdcc;
    font-family: var(--font-terminal);
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
}

.x-feed-fallback strong {
    color: var(--mixer-accent);
    font-family: var(--font-pixel);
    font-size: 11px;
    text-shadow: 2px 2px 0 #000;
}

.x-feed-fallback a {
    color: var(--mixer-accent);
    text-decoration: none;
}

.x-feed-fallback a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--mixer-accent);
}

.x-feed-frame.is-fallback .x-feed-fallback {
    display: grid;
}

.x-feed-post {
    display: grid;
    gap: 8px;
    padding: 10px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0,255,255,0.06), rgba(255,61,242,0.04)),
        rgba(5, 5, 8, 0.92);
    border: 2px solid rgba(255,255,255,0.28);
    box-shadow: 3px 3px 0 #000, inset 0 0 12px rgba(0,0,0,0.55);
    animation: x-feed-post-enter 0.28s steps(5) both;
}

.x-feed-post:nth-child(2) {
    animation-delay: 0.08s;
}

.x-feed-post:nth-child(3) {
    animation-delay: 0.16s;
}

.x-feed-widget-shell {
    min-width: 0;
}

.x-feed-embed-host,
.x-feed-embed-host iframe,
.x-feed-embed-host twitter-widget {
    max-width: 100% !important;
}

.x-feed-embed-host {
    min-width: 0;
    overflow: hidden;
}

.x-feed-embed-host .twitter-tweet,
.x-feed-embed-host .twitter-timeline {
    margin: 0 auto !important;
}

.x-feed-widget-loading,
.x-feed-widget-fallback {
    min-height: 118px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 16px;
    color: #8f8798;
    border: 2px dashed rgba(0,255,255,0.42);
    background: rgba(0,0,0,0.36);
    font-family: var(--font-terminal);
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
}

.x-feed-widget-loading[hidden],
.x-feed-widget-fallback[hidden] {
    display: none;
}

.x-feed-widget-fallback strong {
    color: var(--mixer-accent);
    font-family: var(--font-pixel);
    font-size: 9px;
    text-shadow: 2px 2px 0 #000;
}

.x-feed-widget-fallback a {
    color: var(--mixer-accent);
    text-decoration: none;
}

.x-feed-widget-fallback a:hover,
.x-feed-widget-fallback a:focus-visible {
    color: #fff;
    text-shadow: 0 0 8px var(--mixer-accent);
}

@keyframes x-feed-scan {
    to { transform: translateY(310%); }
}

@keyframes x-feed-party-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes x-feed-bubble-idle {
    0%, 92%, 100% { transform: rotate(0); }
    94% { transform: rotate(-0.6deg); }
    97% { transform: rotate(0.6deg); }
}

@keyframes x-feed-post-enter {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (min-width: 1380px) {
    .profile-container {
        margin-left: max(36px, calc((100vw - 1310px) / 2));
        margin-right: auto;
    }
}

@media (max-width: 520px) {
    .mixer-window {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        box-shadow: 6px 6px 0 #000, 0 0 16px color-mix(in srgb, var(--mixer-accent) 48%, transparent);
    }

    .mixer-titlebar {
        font-size: 16px;
    }

    .mixer-content {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    #mixerTrackTitle {
        font-size: 9px;
    }

    .mixer-channel-label,
    .mixer-status,
    .mixer-store-link {
        font-size: 13px;
    }
}

@media (max-width: 820px) {
    .x-feed-titlebar {
        min-height: 50px;
        padding-left: 12px;
        font-size: 15px;
    }

    .x-feed-content {
        display: block;
        padding: 10px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .x-feed-character-stage {
        min-height: min(590px, 76dvh);
        grid-template-rows: auto auto minmax(300px, 1fr) auto;
    }

    .x-feed-speech {
        margin-top: 16px;
    }

    .x-feed-group-picture {
        padding-top: 20px;
    }

    .x-feed-group-picture img {
        width: min(86%, 440px);
        max-height: 46dvh;
    }

    .x-feed-stream {
        min-height: 560px;
        margin-top: 18px;
    }

    .x-feed-frame {
        height: auto;
        min-height: 520px;
        overflow: visible;
    }

    .x-feed-sections {
        padding: 9px;
    }
}

@media (max-width: 420px) {
    .x-feed-character-stage {
        min-height: 540px;
        grid-template-rows: auto auto minmax(270px, 1fr) auto;
    }

    .x-feed-speech {
        width: calc(100% - 30px);
        padding: 14px 10px;
    }

    .x-feed-profile-cta {
        min-width: calc(100% - 30px);
        margin-inline: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .x-feed-window,
    .x-feed-character-stage::before,
    .x-feed-speech,
    .x-feed-group-picture img,
    .x-feed-post {
        animation: none !important;
        transition: none !important;
    }
}

/* Infinity OS // Contact Studio */
.contact-studio-window {
    --contact-accent: var(--akane-color);
    --contact-hot: #bd83ff;
    --contact-ui: var(--font-body);
    position: fixed;
    z-index: 100030;
    inset: 0;
    width: 100%;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 14%, rgba(138, 43, 226, 0.16), transparent 30%),
        radial-gradient(circle at 62% 92%, rgba(255, 122, 200, 0.08), transparent 34%),
        #07080d;
    font-family: var(--contact-ui);
    border: 0;
    box-shadow: none;
    transform: translateY(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0s linear 0.28s;
}

.contact-studio-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.018) 5px 6px);
    mix-blend-mode: screen;
}

.contact-studio-window.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.contact-studio-titlebar {
    position: relative;
    z-index: 8;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px clamp(16px, 3vw, 42px);
    color: rgba(255, 255, 255, 0.82);
    background: rgba(7, 8, 13, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(14px);
    font-family: var(--font-terminal);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.contact-studio-titlebar > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-studio-close {
    display: inline-grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: none;
    font: 700 17px/1 var(--font-terminal);
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.contact-studio-close:hover,
.contact-studio-close:focus-visible {
    color: #05060a;
    background: #fff;
    border-color: #fff;
    transform: none;
    box-shadow: none;
}

.contact-studio-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1320px);
    margin-inline: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(480px, 1.45fr);
    gap: 0;
    overflow: hidden;
}

.contact-art-rail {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(138, 43, 226, 0.2), transparent 42%),
        #11121a;
    isolation: isolate;
}

.contact-art-rail::before,
.contact-art-rail::after {
    content: "";
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.contact-art-rail::before {
    inset: 0;
    background:
        linear-gradient(90deg, transparent 54%, rgba(7, 8, 13, 0.42) 82%, #07080d 100%),
        linear-gradient(180deg, #07080d 0, transparent 13%, transparent 84%, #07080d 100%),
        linear-gradient(155deg, rgba(138, 43, 226, 0.16), transparent 40%, rgba(255, 122, 200, 0.11));
}

.contact-art-rail::after {
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(8, 9, 14, 0.13) 6px 7px);
    mix-blend-mode: multiply;
}

.contact-art-track {
    position: absolute;
    inset-inline: 0;
    top: 0;
    display: grid;
    grid-auto-rows: clamp(260px, 43vh, 430px);
    animation: contact-art-cascade 46s linear infinite;
    will-change: transform;
}

.contact-art-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    border: 0;
    opacity: 0.72;
    filter: grayscale(0.78) contrast(1.14) brightness(0.72) sepia(0.12);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 83%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 83%, transparent 100%);
    transform: scale(1.04);
}

.contact-art-track img:nth-child(4n + 2) {
    object-position: center 22%;
}

.contact-art-track img:nth-child(4n + 3) {
    filter: grayscale(0.58) contrast(1.16) brightness(0.68) sepia(0.1) hue-rotate(305deg);
}

.contact-art-caption {
    position: absolute;
    z-index: 5;
    left: clamp(16px, 2vw, 28px);
    bottom: 18px;
    padding: 7px 9px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(7, 8, 13, 0.62);
    border-left: 2px solid var(--contact-hot);
    font: 9px/1.25 var(--font-pixel);
    backdrop-filter: blur(8px);
}

.contact-studio-panel {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: clamp(28px, 5vh, 58px) clamp(26px, 5vw, 72px) 36px;
    background:
        linear-gradient(90deg, #07080d, rgba(7, 8, 13, 0.96) 58%, rgba(14, 15, 23, 0.98)),
        #07080d;
    scrollbar-color: var(--contact-accent) rgba(255, 255, 255, 0.05);
}

.contact-studio-welcome {
    max-width: 760px;
    margin-bottom: clamp(28px, 4vh, 44px);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.contact-studio-welcome .mixer-channel-label {
    display: block;
    margin-bottom: 14px;
    color: var(--contact-accent);
    font-family: var(--font-pixel);
    font-size: 9px;
    font-weight: 400;
}

.contact-studio-welcome h2 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(38px, 4.4vw, 64px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
}

.contact-studio-welcome p {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--contact-ui);
    font-size: clamp(18px, 1.45vw, 21px);
    line-height: 1.55;
}

.contact-studio-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.44);
    font: 8px/1.35 var(--font-pixel);
}

.contact-studio-topics span::before {
    content: "+ ";
    color: var(--contact-hot);
}

.contact-studio-form {
    width: min(100%, 760px);
    display: grid;
    gap: 18px;
    padding: 0 0 18px;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.contact-form-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.contact-form-heading > span {
    flex: none;
    color: var(--contact-hot);
    font: 9px/1.35 var(--font-pixel);
}

.contact-form-heading p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font: 17px/1.4 var(--contact-ui);
    text-align: right;
}

.contact-field,
.contact-consent {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.contact-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-field span,
.contact-consent span {
    font-family: var(--contact-ui);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
    text-shadow: none;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-width: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    box-shadow: none;
    font: 400 18px/1.35 var(--contact-ui);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.contact-field input,
.contact-field select {
    min-height: 48px;
    padding: 10px 12px;
}

.contact-field textarea {
    min-height: 132px;
    resize: vertical;
    padding: 12px;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
    border-color: rgba(255, 255, 255, 0.42);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus,
.contact-consent input:focus-visible,
.contact-submit:focus-visible,
.contact-mail-fallback:focus-visible {
    outline: 2px solid var(--contact-accent);
    outline-offset: 1px;
    background: rgba(138, 43, 226, 0.11);
    border-color: var(--contact-accent);
    box-shadow: 0 0 0 5px rgba(138, 43, 226, 0.09);
}

.contact-consent {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    padding: 4px 0;
    border: 0;
    background: transparent;
}

.contact-consent input {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--contact-accent);
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.contact-studio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.contact-submit,
.contact-mail-fallback {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    color: #05060a;
    background: var(--contact-accent);
    border: 1px solid var(--contact-accent);
    box-shadow: none;
    font-family: var(--font-pixel);
    font-size: 9px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    text-align: center;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.contact-mail-fallback {
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
}

.contact-submit:hover,
.contact-mail-fallback:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.2);
}

.contact-submit:disabled {
    cursor: wait;
    filter: grayscale(0.35);
    opacity: 0.75;
}

.contact-status {
    margin: 0;
    min-height: 22px;
    padding-top: 2px;
    color: rgba(225, 205, 255, 0.78);
    font-family: var(--font-terminal);
    font-size: 17px;
    line-height: 1.35;
}

.contact-status[data-tone="success"] {
    color: var(--whatsapp-color);
}

.contact-status[data-tone="error"] {
    color: var(--akane-color);
}

.contact-status[data-tone="sending"] {
    color: var(--gold-color);
    animation: contact-status-pulse 0.9s steps(2, end) infinite;
}

@keyframes contact-art-cascade {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

@keyframes contact-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.58; }
}

@media (max-width: 820px) {
    .contact-studio-titlebar {
        min-height: 52px;
        padding-inline: 12px;
        font-size: 16px;
    }

    .contact-studio-shell {
        width: 100%;
        display: block;
        isolation: isolate;
    }

    .contact-art-rail {
        position: absolute;
        z-index: 0;
        inset: 0;
        min-height: 100%;
        background: #0b0910;
    }

    .contact-art-rail::before {
        background:
            linear-gradient(180deg, rgba(7, 8, 13, 0.24), rgba(7, 8, 13, 0.12) 42%, rgba(7, 8, 13, 0.36) 100%),
            radial-gradient(circle at 78% 28%, rgba(138, 43, 226, 0.14), transparent 42%);
    }

    .contact-studio-panel {
        position: relative;
        z-index: 2;
        height: 100%;
        padding: 24px 18px 30px;
        background: linear-gradient(180deg, rgba(7, 8, 13, 0.58), rgba(7, 8, 13, 0.68));
    }

    .contact-field-grid {
        grid-template-columns: 1fr;
    }

    .contact-studio-welcome {
        margin-bottom: 28px;
    }

    .contact-art-track {
        grid-auto-rows: clamp(420px, 72vh, 620px);
        animation-duration: 58s;
    }

    .contact-art-track img {
        object-position: center;
        opacity: 0.38;
        filter: grayscale(0.78) contrast(1.12) brightness(0.8) sepia(0.08) hue-rotate(250deg);
        transform: scale(1.08);
    }

    .contact-art-caption {
        display: none;
    }

    .contact-form-heading {
        display: block;
        text-align: left;
    }

    .contact-form-heading p {
        margin-top: 8px;
        text-align: left;
    }
}

@media (max-width: 430px) {
    .contact-studio-panel {
        padding: 24px 18px 30px;
    }

    .contact-studio-welcome h2 {
        font-size: 38px;
    }

    .contact-studio-welcome p {
        font-size: 17px;
        line-height: 1.5;
    }

    .contact-studio-topics {
        gap: 8px 14px;
        font-size: 8px;
    }

    .contact-studio-form {
        gap: 15px;
    }

    .contact-studio-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact-submit,
    .contact-mail-fallback {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-studio-window,
    .contact-art-track,
    .contact-status[data-tone="sending"] {
        animation: none !important;
        transition: none !important;
    }

    .contact-art-track {
        transform: translateY(-18%);
    }
}

/* Bottom Art */
.bottom-art-container {
    box-sizing: border-box;
    appearance: none;
    display: block;
    aspect-ratio: 4 / 5;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    color: #fff;
    background:
        linear-gradient(rgba(0, 255, 255, 0.055) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.05) 2px, transparent 2px),
        rgba(5, 0, 10, 0.82);
    background-size: 22px 22px, 22px 22px, auto;
    border: 4px solid #fff;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.86), 0 0 18px rgba(0, 255, 255, 0.24);
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease, border-color 0.16s ease;
    -webkit-tap-highlight-color: transparent;
}

@keyframes info-card-scan {
    0% { transform: translateX(-130%); }
    56% { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
}

.bottom-art-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.12) 40%, transparent 58%),
        linear-gradient(rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.18) 50%);
    background-size: auto, 100% 4px;
    transform: translateX(-130%);
    animation: info-card-scan 5.4s linear infinite;
}

.bottom-art-container:hover,
.bottom-art-container:focus-visible {
    border-color: var(--neon-cyan);
    box-shadow: -6px 6px 0 var(--neon-magenta), 0 0 22px rgba(0, 255, 255, 0.28);
    outline: none;
    transform: translate(4px, -4px);
}

.bottom-art-container:hover .bottom-art,
.bottom-art-container:focus-visible .bottom-art {
    transform: scale(1.035);
    filter: brightness(1.08) saturate(1.08) drop-shadow(4px 4px 0 rgba(0,0,0,0.8));
}

.bottom-art-container:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 transparent;
}

.bottom-art {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.8));
    transition: transform 0.35s ease, filter 0.35s ease;
    pointer-events: none;
}

.bottom-art-tag {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    display: block;
    padding: 5px 8px;
    color: var(--neon-cyan);
    background: rgba(0, 0, 0, 0.82);
    border: 2px solid #fff;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.88);
    font-family: var(--font-pixel);
    font-size: 11px;
    line-height: 1;
    text-align: center;
    overflow-wrap: anywhere;
    text-shadow: 2px 2px 0 #000;
}

.home-hero-split {
    width: min(100%, 860px);
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 34px);
    margin: 0 auto;
}

.home-hero-split .bottom-art-container,
.home-hero-split .intro-hook {
    margin-left: 0;
    margin-right: 0;
}

/* Mitsuki Components */
.mitsuki-trigger-container { position: fixed; left: 10px; bottom: 10px; z-index: 99999; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; max-width: calc(100vw - 20px); margin: 0; cursor: pointer; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.mitsuki-trigger-btn { display: block; width: 65px; max-width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.8)); transition: transform 0.15s; transform-origin: center bottom; -webkit-tap-highlight-color: transparent; animation: mitsuki-warn-pulse 2s ease-in-out infinite; box-sizing: border-box; }
.mitsuki-trigger-btn:hover { transform: scale(1.08) rotate(-3deg); }
.mitsuki-trigger-btn:active { transform: scale(0.95); }
.mitsuki-trigger-label { display: block; width: 100%; box-sizing: border-box; font-family: 'VT323', monospace; font-size: 14px; line-height: 1; color: #fff; text-align: center; text-shadow: 2px 2px 0 #000, 0 0 8px #ff0044; background: rgba(5,0,10,0.88); border: 2px solid #ff0044; box-shadow: 3px 3px 0 rgba(0,0,0,0.85); padding: 4px 2px; overflow-wrap: break-word; }
.mitsuki-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); background-image: linear-gradient(rgba(0,255,255,0.05) 2px, transparent 2px), linear-gradient(90deg, rgba(255,0,68,0.04) 2px, transparent 2px); background-size: 28px 28px; z-index: 100002; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(5px); font-family: 'VT323', monospace; }
.mitsuki-vn-box { position: relative; width: min(94vw, 760px); display: flex; flex-direction: column; align-items: center; animation: popIn 0.25s steps(5); }
.mitsuki-close-btn { position: absolute; top: -12px; right: -12px; z-index: 3; }
.mitsuki-vn-screen { width: 100%; max-height: calc(100vh - 36px); display: flex; flex-direction: column; background-color: #05000a; border: 4px solid #fff; box-shadow: 10px 10px 0 rgba(0,0,0,0.95), 0 0 18px rgba(0,255,255,0.32); overflow: hidden; position: relative; }
.mitsuki-vn-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,0.03) 50%, rgba(0,0,0,0.16) 50%); background-size: 100% 4px; mix-blend-mode: screen; }
.mitsuki-vn-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 14px; color: var(--neon-cyan); background: rgba(138,43,226,0.18); border-bottom: 3px solid var(--neon-cyan); font-size: 20px; letter-spacing: 1px; text-shadow: 2px 2px 0 #000; }
.mitsuki-illustration-container { min-height: 0; height: clamp(260px, 50vh, 430px); display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(circle at 50% 35%, rgba(138,43,226,0.32), transparent 36%), linear-gradient(180deg, rgba(0,255,255,0.08), rgba(255,0,68,0.08)); border-bottom: 3px solid rgba(255,255,255,0.85); overflow: hidden; }
.mitsuki-illustration { width: min(70%, 360px); max-height: 108%; height: auto; object-fit: contain; object-position: bottom center; image-rendering: pixelated; filter: drop-shadow(6px 6px 0px rgba(0,0,0,0.8)); position: relative; z-index: 1; }
.mitsuki-dialogue-box { display: flex; align-items: stretch; gap: 14px; width: calc(100% - 24px); margin: 12px; background-color: rgba(10,5,20,0.96); border: 3px solid #fff; box-shadow: 6px 6px 0 rgba(0,0,0,0.88); padding: 12px; position: relative; z-index: 1; text-align: left; }
.mitsuki-portrait { width: 82px; height: 82px; object-fit: cover; object-position: center 32%; flex-shrink: 0; border: 3px solid var(--neon-cyan); background-color: #000; box-shadow: 4px 4px 0 rgba(0,0,0,0.85); image-rendering: pixelated; }
.mitsuki-dialogue-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mitsuki-speaker { width: fit-content; color: #05000a; background: var(--neon-cyan); border: 2px solid #fff; box-shadow: 3px 3px 0 #ff0044; padding: 1px 8px; font-size: 20px; line-height: 1; text-shadow: none; }
.mitsuki-text { font-family: 'Nunito', sans-serif; font-size: 16px; line-height: 1.45; color: #fff; margin: 0; text-shadow: 2px 2px 0 #000; }
.mitsuki-continue-btn { align-self: center; width: min(100% - 24px, 320px); margin: 0 12px 14px; background-color: #1a1a1a; color: #fff; border: 4px solid var(--neon-cyan); font-family: 'VT323', monospace; font-size: 28px; line-height: 1; padding: 9px 18px; cursor: pointer; text-transform: uppercase; box-shadow: 6px 6px 0 var(--akane-color); transition: all 0.1s; position: relative; z-index: 1; -webkit-tap-highlight-color: transparent; }
.mitsuki-continue-btn:hover { border-color: #fff; color: var(--neon-cyan); }
.mitsuki-continue-btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 transparent; }
.mitsuki-share-buttons { display: none; width: 100%; gap: 10px; justify-content: flex-start; flex-wrap: wrap; padding-top: 4px; }
.mitsuki-share-btn { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background-color: #1a1a1a; border: 2px solid #555; box-shadow: 3px 3px 0px rgba(0,0,0,0.7); transition: all 0.1s; -webkit-tap-highlight-color: transparent; }
.mitsuki-share-btn img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.mitsuki-share-btn:hover { transform: translateY(-3px); border-color: #fff; }
.mitsuki-share-btn:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px transparent; }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); }
.modal-box { background-color: rgba(10, 5, 20, 0.95); border: 4px solid #fff; box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.9); width: 100%; max-width: 650px; position: relative; animation: popIn 0.25s steps(5); display: flex; flex-direction: column; max-height: 90vh; overflow-y: auto; }
.modal-header { border-bottom: 4px solid rgba(255,255,255,0.8); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.05); }
.modal-title { font-family: 'VT323', monospace; font-size: 26px; color: #fff; margin: 0; text-transform: uppercase; text-align: left; }
.close-btn { background: #ff0044; color: #fff; border: 2px solid #fff; font-family: 'VT323', monospace; font-size: 20px; padding: 2px 10px; cursor: pointer; box-shadow: 2px 2px 0px rgba(0,0,0,0.8); transition: 0.1s; }
.close-btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px transparent; }
.modal-body { padding: 20px; display: flex; gap: 20px; text-align: left; }
.modal-img-container { flex-shrink: 0; width: 160px; }
.modal-img { width: 100%; height: auto; border: 2px solid #fff; box-shadow: 4px 4px 0px rgba(0,0,0,0.8); background-color: #000; }
.modal-info { flex-grow: 1; }
.modal-role { font-family: 'VT323', monospace; color: #ccc; font-size: 20px; margin-top: 0; margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase; }
.modal-desc { font-size: 15px; line-height: 1.4; color: #fff; }
.modal-desc p { margin-top: 0; margin-bottom: 10px; }

#charModal .modal-box {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

#charModal .modal-box::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.character-modal-scrollbar {
    --cg-char-scroll-accent: var(--cg-character-accent, var(--neon-cyan));
    --cg-char-scroll-track: color-mix(in srgb, var(--cg-char-scroll-accent) 72%, #ff8de0);
    --cg-char-scroll-thumb: color-mix(in srgb, var(--cg-char-scroll-accent) 38%, #ffd32a);
    --cg-char-scroll-button: color-mix(in srgb, var(--cg-char-scroll-accent) 84%, #ffffff);
    position: fixed;
    z-index: 100240;
    display: none;
    width: 26px;
    min-height: 112px;
    pointer-events: none;
    background: #222436;
    border: 2px solid #05000a;
    box-shadow: 3px 3px 0 #05000a;
}

#charModal[aria-hidden="false"] .character-modal-scrollbar.is-visible {
    display: block;
}

.character-modal-scrollbar-button {
    position: absolute;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--cg-char-scroll-button);
    border: 2px solid #05000a;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.character-modal-scrollbar-button:first-child {
    top: 0;
    background:
        linear-gradient(135deg, transparent 50%, #05000a 50%) 9px 11px / 8px 8px no-repeat,
        linear-gradient(225deg, transparent 50%, #05000a 50%) 9px 11px / 8px 8px no-repeat,
        var(--cg-char-scroll-button);
}

.character-modal-scrollbar-button:last-child {
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 50%, #05000a 50%) 9px 9px / 8px 8px no-repeat,
        linear-gradient(315deg, transparent 50%, #05000a 50%) 9px 9px / 8px 8px no-repeat,
        var(--cg-char-scroll-button);
}

.character-modal-scrollbar-track {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 0;
    right: 0;
    background: var(--cg-char-scroll-track);
    border-inline: 2px solid #05000a;
}

.character-modal-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 5px;
    right: 5px;
    height: var(--cg-char-scroll-thumb-height, 54px);
    transform: translateY(var(--cg-char-scroll-thumb-y, 30px));
    background-color: var(--cg-char-scroll-thumb);
    background-image: linear-gradient(45deg, #05000a 25%, transparent 25% 50%, #05000a 50% 75%, transparent 75%);
    background-position: 50% 50%;
    background-size: 8px 8px;
    border: 2px solid #05000a;
    border-radius: 7px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34);
}

/* Easter Egg UI */
.system-toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background-color: rgba(45, 45, 45, 0.95); color: #eeeeee; padding: 10px 20px; border-radius: 50px; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700; box-shadow: 0px 4px 10px rgba(0,0,0,0.5); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; white-space: nowrap; letter-spacing: 0.5px; }
.system-toast.show { opacity: 1; }
#secretModal .modal-header { border-bottom-color: #ff0044; background: rgba(255, 0, 68, 0.1); }
.secret-body { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.file-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.file-item { display: flex; align-items: center; background-color: #1a1a1a; border: 2px solid #444; padding: 10px 15px; cursor: pointer; transition: all 0.1s; }
.file-item:hover { border-color: #fff; background-color: #333; transform: translateX(5px); }
.file-icon { font-size: 20px; margin-right: 15px; }
.file-name { font-family: 'VT323', monospace; font-size: 20px; color: #fff; text-transform: uppercase; }
.secret-viewer { display: none; flex-direction: column; align-items: center; text-align: center; }
.secret-viewer-header { width: 100%; display: flex; justify-content: flex-start; margin-bottom: 15px; }
.btn-back { background: transparent; color: #fff; border: 2px solid #fff; font-family: 'VT323', monospace; font-size: 18px; padding: 4px 12px; cursor: pointer; transition: 0.1s; }
.btn-back:hover { background: #fff; color: #000; }
.secret-img-large { max-width: 100%; height: auto; border: 3px solid #fff; box-shadow: 6px 6px 0px rgba(0,0,0,0.8); margin-bottom: 15px; background-color: #000; }
.secret-lore-text { font-size: 15px; line-height: 1.4; color: #ddd; background: rgba(0,0,0,0.5); padding: 15px; border: 1px dashed #666; text-align: left; width: 100%; }

/* Fake cookie notice */
.cookie-notice-window {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 100001;
    width: min(720px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    display: none;
    overflow: hidden;
    color: #fff;
    background-color: #090514;
    background-image:
        linear-gradient(rgba(0,255,255,0.04) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,105,180,0.04) 2px, transparent 2px);
    background-size: 24px 24px, 24px 24px;
    border: 4px solid #fff;
    border-radius: 6px;
    box-shadow: 12px 12px 0 rgba(0,0,0,0.92), 0 0 22px rgba(0,255,255,0.32);
    font-family: 'Nunito', sans-serif;
    animation: cookieNoticeBoot 0.28s steps(4);
}

.cookie-notice-window.is-open {
    display: block;
}

.cookie-notice-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.1) 42%, transparent 62%);
    transform: translateX(-135%);
    animation: cg-card-scan 6.2s linear infinite;
}

.cookie-notice-window > * {
    position: relative;
    z-index: 1;
}

.cookie-notice-header {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 69, 0, 0.15);
    border-bottom: 4px solid var(--rika-color);
}

.cookie-notice-header .modal-title {
    font-size: clamp(22px, 3vw, 32px);
    line-height: 0.95;
    color: #fff;
    text-shadow: 3px 3px 0 #000, 0 0 12px var(--rika-color);
}

.cookie-notice-close {
    flex: 0 0 auto;
}

.cookie-notice-body {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    text-align: left;
}

.cookie-notice-img-frame {
    align-self: start;
    padding: 8px;
    background: #05000a;
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 5px;
    box-shadow: 7px 7px 0 rgba(0,0,0,0.86), 0 0 16px rgba(255,105,180,0.22);
}

.cookie-notice-img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.72));
}

.cookie-notice-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-notice-copy p {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
    text-shadow: 2px 2px 0 #000;
}

.cookie-notice-actions {
    display: grid;
    gap: 12px;
}

.cookie-notice-download {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

.cookie-notice-poster-thumb {
    display: block;
    width: 58px;
    height: auto;
    align-self: center;
    background: #05000a;
    border: 2px solid #fff;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.82);
}

.cookie-notice-gift {
    width: 100%;
    min-height: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    color: #fff;
    background-color: #1a1a1a;
    border: 4px solid var(--neon-cyan);
    box-shadow: 6px 6px 0 var(--rika-color);
    font-family: 'VT323', monospace;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.cookie-notice-gift:hover,
.cookie-notice-gift:focus-visible {
    outline: none;
    color: var(--neon-cyan);
    border-color: #fff;
}

.cookie-notice-gift:active {
    transform: translate(6px, 6px);
    box-shadow: 0 0 0 transparent;
}

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

/* Arcade Components */
.arcade-close-master { position: fixed; top: 15px; right: 15px; background: #ff0044; color: #fff; border: 3px solid #fff; font-family: 'VT323', monospace; font-size: 22px; padding: 5px 15px; cursor: pointer; box-shadow: 4px 4px 0px rgba(0,0,0,0.8); transition: 0.1s; z-index: 100001; }
.arcade-close-master:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px transparent; }
.arcade-title { font-size: 48px; color: var(--neon-cyan); text-shadow: 4px 4px 0px var(--akane-color); margin-bottom: 20px; letter-spacing: 4px; line-height: 1; text-transform: uppercase;}
.arcade-text { font-size: 22px; max-width: 500px; margin-bottom: 25px; line-height: 1.2; color: #d3d3d3; }
.arcade-img-start { width: 100%; max-width: 220px; height: auto; filter: drop-shadow(4px 4px 0px var(--neon-cyan)); margin-bottom: 25px; }
.game-over-img { width: 100%; max-width: 280px; height: auto; filter: drop-shadow(4px 4px 0px #ff0044); margin-bottom: 20px; }
.arcade-buttons-wrapper { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 300px; }
.arcade-btn { background-color: #1a1a1a; color: #fff; border: 4px solid var(--neon-cyan); font-family: 'VT323', monospace; font-size: 28px; padding: 10px 20px; cursor: pointer; text-transform: uppercase; box-shadow: 6px 6px 0px var(--akane-color); transition: all 0.1s; width: 100%; }
.arcade-btn:active { transform: translate(6px, 6px); box-shadow: 0px 0px 0px transparent; }
.scoreboard { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 22px; color: var(--neon-cyan); margin-bottom: 10px; border-bottom: 2px dashed rgba(0, 255, 255, 0.5); padding-bottom: 5px; }
.hearts-box { background-color: rgba(138, 43, 226, 0.3); border: 2px solid var(--akane-color); padding: 4px 8px; border-radius: 6px; display: flex; gap: 4px; box-shadow: 2px 2px 0px rgba(0,0,0,0.5); }
.heart-icon { width: 20px; height: 20px; object-fit: contain; }
.sudden-death-heart {
    animation: suddenHeartPulse 0.52s steps(2, end) infinite;
    transform-origin: center;
}

@keyframes suddenHeartPulse {
    0% {
        transform: scale(1) translate(0, 0);
        filter: hue-rotate(180deg) saturate(1.8) drop-shadow(0 0 4px #ff1b4b);
    }
    35% {
        transform: scale(1.22) translate(-1px, 1px);
        filter: hue-rotate(180deg) saturate(2.4) drop-shadow(0 0 12px #ff1b4b);
    }
    70% {
        transform: scale(0.94) translate(1px, -1px);
        filter: hue-rotate(180deg) saturate(2) drop-shadow(0 0 8px #ff5a7d);
    }
    100% {
        transform: scale(1) translate(0, 0);
        filter: hue-rotate(180deg) saturate(1.8) drop-shadow(0 0 4px #ff1b4b);
    }
}
.mobile-controls { display: grid; grid-template-columns: minmax(120px, 1fr) 108px; align-items: center; gap: 14px; margin-top: 15px; width: 100%; }
.m-btn { min-height: 72px; background: rgba(0, 255, 255, 0.1); border: 2px solid var(--neon-cyan); color: var(--neon-cyan); font-family: 'VT323', monospace; font-size: 28px; padding: 15px 5px; cursor: pointer; user-select: none; -webkit-user-select: none; border-radius: 4px; touch-action: none;}
.m-btn:active { background: var(--neon-cyan); color: #000; }
.m-btn-shoot { border-color: #ff382e; color: #ff5b50; font-weight: bold; box-shadow: inset 0 0 18px rgba(255, 56, 46, 0.16), 4px 4px 0 rgba(0,0,0,0.72);}
.m-btn-shoot:active,
.m-btn-shoot.is-pressed { background: #ff382e; color: #fff; transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(0,0,0,0.8); }
.arcade-joystick { width: 108px; height: 84px; display: grid; place-items: center; justify-self: end; touch-action: none; user-select: none; -webkit-user-select: none; }
.arcade-joystick-ring {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 4px solid #5b0505;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 120, 82, 0.95), rgba(203, 42, 32, 0.94) 45%, rgba(100, 10, 12, 0.96) 72%),
        #c82724;
    box-shadow:
        inset 0 0 0 5px rgba(255, 86, 52, 0.36),
        inset 0 -10px 18px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 56, 46, 0.2),
        4px 4px 0 rgba(0,0,0,0.72);
}
.arcade-joystick-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(73, 6, 6, 0.72);
    background:
        linear-gradient(90deg, transparent 45%, rgba(91, 5, 5, 0.72) 45%, rgba(91, 5, 5, 0.72) 55%, transparent 55%),
        linear-gradient(transparent 45%, rgba(91, 5, 5, 0.72) 45%, rgba(91, 5, 5, 0.72) 55%, transparent 55%),
        radial-gradient(circle at 35% 30%, #ff8a5e, #d83a2e 62%, #8a1418);
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 7px rgba(255,255,255,0.22), 0 2px 6px rgba(0,0,0,0.45);
}
.arcade-joystick.is-active .arcade-joystick-ring { box-shadow: inset 0 0 0 5px rgba(255, 120, 82, 0.5), inset 0 -10px 18px rgba(0, 0, 0, 0.3), 0 0 16px rgba(255, 56, 46, 0.42), 4px 4px 0 rgba(0,0,0,0.72); }

.arcade-dpad {
    --dpad-size: 108px;
    --dpad-cell: calc(var(--dpad-size) / 3);
    --dpad-hit-padding: 10px;
    width: var(--dpad-size);
    height: var(--dpad-size);
    display: grid;
    grid-template-columns: repeat(3, var(--dpad-cell));
    grid-template-rows: repeat(3, var(--dpad-cell));
    justify-self: end;
    align-self: center;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    position: relative;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, rgba(255,255,255,0.12), transparent 34%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.72), rgba(20, 13, 28, 0.95) 72%);
    box-shadow:
        inset 0 0 0 4px rgba(255,255,255,0.08),
        inset 0 -10px 18px rgba(0,0,0,0.46),
        4px 5px 0 rgba(0,0,0,0.78),
        0 0 14px rgba(255, 56, 46, 0.18);
}

.arcade-dpad-btn,
.arcade-dpad-center {
    width: var(--dpad-cell);
    height: var(--dpad-cell);
}

.arcade-dpad-btn {
    position: relative;
    border: 2px solid rgba(255,255,255,0.18);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.16), transparent 38%),
        linear-gradient(180deg, #343843, #171922);
    box-shadow:
        inset 0 0 0 2px rgba(0,0,0,0.28),
        inset 0 -6px 8px rgba(0,0,0,0.32);
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.arcade-dpad-btn::before {
    content: "";
    position: absolute;
    inset: calc(var(--dpad-hit-padding) * -1);
    z-index: 2;
    border-radius: inherit;
    background: transparent;
}

.arcade-dpad-btn.is-pressed,
.arcade-dpad-btn:active {
    background:
        linear-gradient(180deg, rgba(0,255,255,0.28), rgba(255,56,46,0.16)),
        #11151f;
    border-color: var(--neon-cyan);
    box-shadow:
        inset 0 0 0 2px rgba(0,255,255,0.18),
        inset 0 5px 12px rgba(0,0,0,0.56),
        0 0 10px rgba(0,255,255,0.28);
}

.arcade-dpad-up {
    grid-column: 2;
    grid-row: 1;
    border-radius: 9px 9px 3px 3px;
}

.arcade-dpad-left {
    grid-column: 1;
    grid-row: 2;
    border-radius: 9px 3px 3px 9px;
}

.arcade-dpad-center {
    grid-column: 2;
    grid-row: 2;
    background:
        radial-gradient(circle at 50% 48%, rgba(255,255,255,0.12), transparent 26%),
        linear-gradient(180deg, #2a2d36, #171922);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35);
}

.arcade-dpad-right {
    grid-column: 3;
    grid-row: 2;
    border-radius: 3px 9px 9px 3px;
}

.arcade-dpad-down {
    grid-column: 2;
    grid-row: 3;
    border-radius: 3px 3px 9px 9px;
}

.hoshi-rematch-mobile-controls {
    display: grid;
    place-items: center;
    width: 100%;
    justify-items: center;
    margin-top: 12px;
}

.hoshi-rematch-mobile-controls[hidden] {
    display: none !important;
}

.arcade-dpad-hoshi-rematch {
    --dpad-size: 126px;
    justify-self: center;
    margin-inline: auto;
    box-shadow:
        inset 0 0 0 4px rgba(0,255,255,0.1),
        inset 0 -10px 18px rgba(0,0,0,0.46),
        5px 6px 0 rgba(0,0,0,0.78),
        0 0 18px rgba(138, 43, 226, 0.32);
}

.arcade-btn-secondary {
    border-color: #ff69b4;
    color: #ffd9f4;
    box-shadow: 6px 6px 0 #5b1c7a;
}

/* Component Media Queries */
@media (max-width: 600px) {
    .start-boot-window {
        width: min(92vw, 360px);
        min-height: 292px;
        padding: 44px 16px 22px;
    }

    .start-os-titlebar,
    .start-window-titlebar {
        min-height: 29px;
        gap: 8px;
        font-size: 16px;
    }

    .start-os-titlebar span:last-child {
        display: none;
    }

    .start-title-content {
        width: min(94vw, 400px);
        min-height: min(84dvh, 620px);
        padding: 48px 12px 14px;
        gap: 12px;
        border-width: 3px;
        box-shadow: 7px 7px 0 rgba(0,0,0,0.84), 0 0 18px rgba(0,255,255,0.24);
    }

    .start-title-content::before {
        inset: 34px 9px 9px;
    }

    .start-desktop-widgets {
        display: none;
    }

    .start-studio-logo {
        width: min(62vw, 220px);
    }

    .start-series-logo {
        width: min(88vw, 340px);
    }

    .start-player-row {
        font-size: 13px;
    }

    .press-start-btn {
        min-height: 50px;
    }

    .start-runner-track {
        height: clamp(136px, 22dvh, 168px);
    }

    .start-akane-runner {
        transform: translateX(-50%) scale(0.62);
    }

    .start-console-footer {
        grid-template-columns: 1fr;
        gap: 5px;
        font-size: 13px;
    }

    .start-console-footer span:nth-child(2) {
        display: none;
    }

    .menu-box {
        padding: 16px;
        gap: 12px;
        box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
    }

    .section-title {
        font-size: 23px;
    }

    .link-btn {
        padding: 12px;
        gap: 0;
    }

    .link-btn .icon,
    .link-btn .icon-img {
        margin-right: 12px;
    }

    .character-select {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        width: min(100%, 360px);
        gap: 10px;
    }

    .char-btn {
        width: 62px;
        height: 62px;
    }

    .mitsuki-trigger-container {
        left: 8px;
        bottom: max(10px, env(safe-area-inset-bottom));
        width: 66px;
    }

    .mitsuki-trigger-btn {
        width: 60px;
    }

    .mitsuki-trigger-label {
        font-size: 12px;
        padding: 3px 2px;
    }

    .mitsuki-overlay {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .mitsuki-vn-box {
        width: min(100%, 430px);
        max-height: calc(100dvh - 20px);
        margin: 0 auto;
    }

    .mitsuki-close-btn {
        top: 4px;
        right: 4px;
        font-size: 18px;
        padding: 2px 9px;
    }

    .mitsuki-vn-screen {
        max-height: calc(100dvh - 20px);
        border-width: 3px;
    }

    .mitsuki-vn-header {
        padding: 7px 46px 7px 10px;
        gap: 8px;
        font-size: 18px;
        line-height: 1;
    }

    .mitsuki-illustration-container {
        height: clamp(230px, 42dvh, 360px);
    }

    .mitsuki-illustration {
        width: min(74%, 320px);
        max-height: 104%;
    }

    .mitsuki-dialogue-box {
        width: calc(100% - 18px);
        margin: 9px;
        padding: 10px;
        gap: 10px;
    }

    .mitsuki-portrait {
        width: 68px;
        height: 68px;
        border-width: 2px;
    }

    .mitsuki-speaker {
        font-size: 18px;
    }

    .mitsuki-text {
        font-size: 15px;
        line-height: 1.38;
    }

    .mitsuki-share-buttons {
        justify-content: center;
        gap: 9px;
    }

    .mitsuki-share-btn {
        width: 48px;
        height: 48px;
    }

    .mitsuki-share-btn img {
        width: 30px;
        height: 30px;
    }

    .mitsuki-continue-btn {
        width: calc(100% - 18px);
        margin: 0 9px 10px;
        font-size: 26px;
        padding: 8px 12px;
    }
}

@media (max-width: 400px) {
    .arcade-title { font-size: 38px; }
    .arcade-btn { font-size: 22px; padding: 10px; }
    .scoreboard { font-size: 18px; }
    .m-btn { padding: 10px; font-size: 24px; }
}

/* =========================================
   VISUAL REFRESH 2026 - Lobby, modals, secrets and arcade
   ========================================= */

.loading-overlay {
    background:
        linear-gradient(rgba(255,255,255,0.035) 50%, rgba(0,0,0,0.2) 50%),
        linear-gradient(rgba(0, 255, 255, 0.06) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 50% 38%, rgba(255, 105, 180, 0.18), transparent 32%),
        #05000a;
    background-size: 100% 4px, 28px 28px, 28px 28px, auto, auto;
}

.loading-text {
    text-shadow: 4px 4px 0 var(--akane-color), 0 0 18px rgba(0,255,255,0.3);
}

.loading-icons-wrapper .load-dot {
    width: 54px;
    height: 54px;
    animation-duration: 0.72s;
}

.menu-box,
.music-card,
.link-btn,
.modal-box,
.mitsuki-vn-screen,
.arcade-game-container,
.gallery-footer,
.footer {
    border-radius: 6px;
}

.menu-box,
.music-card {
    background:
        linear-gradient(rgba(0, 255, 255, 0.04) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.04) 2px, transparent 2px),
        rgba(10, 5, 20, 0.88);
    background-size: 24px 24px, 24px 24px, auto;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.82), inset 0 0 18px rgba(0,255,255,0.07);
    isolation: isolate;
}

.menu-box::before,
.music-card::before,
.modal-box::before,
.mitsuki-vn-screen::before,
.arcade-game-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.1) 42%, transparent 62%);
    transform: translateX(-135%);
    animation: cg-card-scan 6.2s linear infinite;
}

.menu-box > *,
.music-card > *,
.modal-box > *,
.mitsuki-vn-screen > *,
.arcade-game-container > * {
    position: relative;
    z-index: 1;
}

.menu-box:hover,
.music-card:hover {
    transform: translate(4px, -4px);
    box-shadow: -6px 6px 0 var(--neon-magenta), 0 0 18px rgba(0,255,255,0.22), inset 0 0 18px rgba(255,105,180,0.08);
}

.link-btn {
    border-color: rgba(255,255,255,0.42);
    background:
        linear-gradient(90deg, rgba(0,255,255,0.04), transparent 42%, rgba(255,105,180,0.05)),
        #111;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.link-btn:hover {
    border-color: #fff;
}

.char-btn {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), filter 0.16s ease, box-shadow 0.16s ease;
}

.char-btn::after,
.char-select-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: translateX(-130%);
    transition: transform 0.36s ease;
}

.char-btn:hover,
.char-select-btn:hover {
    animation: none;
    transform: translate(4px, -4px) scale(1.04);
    filter: brightness(1.22) saturate(1.18);
    box-shadow: -4px 4px 0 var(--neon-magenta), 0 0 16px rgba(0,255,255,0.26);
}

.char-btn:hover::after,
.char-select-btn:hover::after {
    transform: translateX(130%);
}

.main-logo {
    animation: logo-idle-float 5s ease-in-out infinite, neon-pulse 4s ease-in-out infinite;
}

p.subtitle {
    border-color: var(--neon-cyan);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.86), 0 0 14px rgba(0,255,255,0.18);
}

.intro-hook {
    width: min(100%, 680px);
    margin: 18px auto 0;
    padding: 16px 18px;
    text-align: left;
    background:
        linear-gradient(rgba(0,255,255,0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,105,180,0.045) 2px, transparent 2px),
        rgba(5, 0, 10, 0.82);
    background-size: 22px 22px, 22px 22px, auto;
    border: 3px solid var(--neon-cyan);
    box-shadow: 7px 7px 0 rgba(0,0,0,0.82), inset 0 0 18px rgba(255,105,180,0.1);
    position: relative;
    z-index: 10;
}

.intro-hook::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(255,255,255,0.24);
    pointer-events: none;
}

.intro-hook h1 {
    margin: 0 0 8px;
    font-family: var(--font-pixel);
    font-size: clamp(18px, 4.4vw, 30px);
    line-height: 1.05;
    color: var(--neon-cyan);
    text-shadow: 3px 3px 0 #000, 0 0 12px rgba(0,255,255,0.34);
    overflow-wrap: anywhere;
}

.intro-hook p {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(15px, 2.6vw, 18px);
    line-height: 1.45;
    color: #f4f4f4;
    text-shadow: 2px 2px 0 #000;
}

.character-arcade-frame {
    width: min(100%, 530px);
    margin: 28px auto 0;
    padding: 30px 20px 20px;
    position: relative;
    z-index: 10;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.06), transparent 18%, transparent 82%, rgba(255,255,255,0.06)),
        rgba(10, 5, 20, 0.9);
    border: 4px solid #fff;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.84), 0 0 18px rgba(0,255,255,0.22), inset 0 0 20px rgba(138,43,226,0.16);
}

.character-arcade-frame::before,
.character-arcade-frame::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--neon-cyan);
    pointer-events: none;
}

.character-arcade-frame::before {
    top: 8px;
    left: 8px;
    border-top: 3px solid;
    border-left: 3px solid;
}

.character-arcade-frame::after {
    right: 8px;
    bottom: 8px;
    border-right: 3px solid;
    border-bottom: 3px solid;
}

.arcade-frame-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 5px 12px;
    font-family: var(--font-pixel);
    font-size: 14px;
    line-height: 1;
    color: #05000a;
    background: var(--neon-cyan);
    border: 2px solid #fff;
    box-shadow: 4px 4px 0 var(--akane-color);
    text-align: center;
    overflow-wrap: anywhere;
}

.character-arcade-frame .character-select {
    margin-top: 0;
}

.quick-scroll-nav {
    width: min(100%, 620px);
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 10;
}

.quick-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 13px;
    line-height: 1;
    background: rgba(0,0,0,0.72);
    border: 2px solid rgba(255,255,255,0.58);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.82);
    transition: transform 0.12s steps(2), border-color 0.12s, color 0.12s, box-shadow 0.12s;
    overflow-wrap: anywhere;
}

.quick-scroll-btn:hover,
.quick-scroll-btn:focus-visible {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    transform: translate(3px, -3px);
    box-shadow: -3px 3px 0 var(--neon-magenta), 0 0 14px rgba(0,255,255,0.2);
    outline: none;
}

.quick-scroll-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 transparent;
}

@media (min-width: 761px) {
    .home-hero-split .bottom-art-container {
        justify-self: end;
    }

    .home-hero-split .intro-hook {
        justify-self: start;
        align-self: center;
        padding: 18px 20px;
    }

    .home-hero-split .intro-hook h1 {
        font-size: clamp(22px, 3vw, 34px);
    }

    .home-hero-split .intro-hook p {
        font-size: 16px;
        line-height: 1.45;
    }
}

@media (max-width: 760px) {
    .home-hero-split {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .home-hero-split .bottom-art-container,
    .home-hero-split .intro-hook {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .intro-hook {
        margin-top: 14px;
        padding: 14px 13px;
        box-shadow: 5px 5px 0 rgba(0,0,0,0.82), inset 0 0 14px rgba(255,105,180,0.1);
    }

    .intro-hook h1 {
        font-size: clamp(17px, 6vw, 24px);
    }

    .intro-hook p {
        font-size: 15px;
        line-height: 1.38;
    }

    .character-arcade-frame {
        width: min(100%, 390px);
        margin-top: 24px;
        padding: 28px 14px 16px;
        border-width: 3px;
        box-shadow: 6px 6px 0 rgba(0,0,0,0.84), 0 0 14px rgba(0,255,255,0.2), inset 0 0 16px rgba(138,43,226,0.16);
    }

    .arcade-frame-label {
        font-size: 11px;
        padding: 5px 8px;
    }

    .character-arcade-frame .character-select {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        width: min(100%, 350px);
        gap: 10px;
    }

    .character-drawer {
        padding: 15px 8px 9px;
        border-width: 2px;
        box-shadow: 4px 4px 0 rgba(0,0,0,0.84), inset 0 0 14px rgba(255,255,255,0.04);
    }

    .character-drawer-danger,
    .character-drawer-support {
        min-height: 92px;
    }

    .character-drawer-grid {
        display: grid;
        grid-template-columns: repeat(2, 58px);
        justify-content: center;
        gap: 7px;
    }

    .character-drawer-danger .character-drawer-grid {
        grid-template-columns: 58px;
    }

    .quick-scroll-nav {
        width: min(100%, 390px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 18px;
    }

    .quick-scroll-btn {
        min-height: 40px;
        padding: 8px 7px;
        font-size: 12px;
    }
}

@media (max-width: 330px) {
    .character-arcade-frame .character-select {
        width: min(100%, 300px);
        gap: 8px;
    }

    .character-drawer-grid {
        grid-template-columns: repeat(2, 54px);
        gap: 6px;
    }

    .character-drawer-danger .character-drawer-grid {
        grid-template-columns: 54px;
    }
}

.modal-overlay {
    z-index: 100200;
    background:
        linear-gradient(rgba(0, 255, 255, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.04) 2px, transparent 2px),
        rgba(0, 0, 0, 0.9);
    background-size: 28px 28px, 28px 28px, auto;
}

.modal-box {
    max-width: 780px;
    background:
        linear-gradient(rgba(0,255,255,0.04) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,105,180,0.04) 2px, transparent 2px),
        rgba(9, 5, 20, 0.96);
    background-size: 24px 24px, 24px 24px, auto;
    box-shadow: 12px 12px 0 rgba(0,0,0,0.92), 0 0 22px rgba(0,255,255,0.32);
    opacity: 1;
    animation: cg-panel-boot 0.24s steps(4) both;
}

.modal-header {
    background: rgba(0,255,255,0.08);
    border-bottom-color: var(--neon-cyan);
}

.modal-title {
    font-size: clamp(26px, 4vw, 36px);
    line-height: 0.95;
    text-shadow: 3px 3px 0 #000, 0 0 12px var(--neon-magenta);
}

.modal-body {
    gap: 24px;
}

.modal-img-container {
    width: min(35vw, 230px);
}

.modal-img,
.secret-img-large {
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 5px;
    box-shadow: 7px 7px 0 rgba(0,0,0,0.86), 0 0 16px rgba(255,105,180,0.22);
}

.modal-role {
    width: fit-content;
    padding: 5px 9px;
    color: #05000a;
    background: var(--neon-cyan);
    border: 2px solid #fff;
    box-shadow: 4px 4px 0 var(--akane-color);
    font-size: 22px;
    text-shadow: none;
}

.modal-desc {
    font-size: 16px;
    line-height: 1.48;
}

.modal-desc strong {
    color: var(--neon-cyan);
    text-shadow: 2px 2px 0 #000;
}

.char-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.char-stat-grid span {
    min-width: 0;
    padding: 8px;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1;
    overflow-wrap: anywhere;
    background: rgba(0,0,0,0.52);
    border: 2px solid rgba(255,255,255,0.24);
}

.char-lore-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.char-lore-list li {
    position: relative;
    padding: 10px 10px 10px 34px;
    background: rgba(0,0,0,0.42);
    border: 2px solid rgba(255,255,255,0.18);
}

.char-lore-list li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 15px;
    width: 9px;
    height: 9px;
    background: var(--neon-magenta);
    box-shadow: 4px 4px 0 var(--neon-cyan);
}

.system-toast {
    bottom: 28px;
    max-width: min(92vw, 560px);
    white-space: normal;
    text-align: center;
    background: rgba(5, 0, 10, 0.92);
    border: 2px solid var(--neon-cyan);
    border-radius: 6px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.86), 0 0 16px rgba(0,255,255,0.26);
}

#secretModal .modal-header {
    border-bottom-color: #ff0044;
    background: rgba(255, 0, 68, 0.12);
}

.file-list {
    gap: 10px;
}

.file-item {
    position: relative;
    overflow: hidden;
    background: rgba(0,0,0,0.52);
    border-color: rgba(255,255,255,0.26);
    border-radius: 4px;
}

.file-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-130%);
    transition: transform 0.34s ease;
}

.file-item:hover {
    border-color: var(--neon-cyan);
    background: rgba(0,255,255,0.08);
    transform: translateX(6px);
    box-shadow: -4px 4px 0 var(--neon-magenta);
}

.file-item:hover::after {
    transform: translateX(130%);
}

.file-icon {
    min-width: 48px;
    margin-right: 12px;
    color: #05000a;
    background: var(--neon-cyan);
    border: 2px solid #fff;
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    box-shadow: 3px 3px 0 #000;
}

.secret-lore-text {
    border: 2px dashed rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.58);
    border-radius: 5px;
}

.mitsuki-trigger-container {
    width: 78px;
    animation: cg-warning-float 3s ease-in-out infinite;
}

.mitsuki-trigger-btn {
    width: 70px;
    filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.86)) drop-shadow(0 0 10px rgba(255,0,68,0.36));
}

.mitsuki-trigger-label {
    border-color: #ff0044;
    background: rgba(5,0,10,0.94);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.88), 0 0 12px rgba(255,0,68,0.28);
}

.mitsuki-overlay {
    background:
        radial-gradient(circle at 50% 18%, rgba(255,0,68,0.14), transparent 34%),
        linear-gradient(rgba(0,255,255,0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,0,68,0.04) 2px, transparent 2px),
        rgba(0,0,0,0.92);
    background-size: auto, 28px 28px, 28px 28px, auto;
}

.mitsuki-vn-box {
    animation: cg-panel-boot 0.24s steps(4);
}

.mitsuki-vn-screen {
    box-shadow: 12px 12px 0 rgba(0,0,0,0.95), 0 0 24px rgba(0,255,255,0.34);
}

.mitsuki-illustration-container {
    background:
        radial-gradient(circle at 50% 35%, rgba(255,105,180,0.22), transparent 30%),
        linear-gradient(rgba(0,255,255,0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,0,68,0.04) 2px, transparent 2px),
        #080011;
    background-size: auto, 24px 24px, 24px 24px, auto;
}

.mitsuki-dialogue-box {
    background:
        linear-gradient(90deg, rgba(0,255,255,0.06), transparent 45%, rgba(255,0,68,0.08)),
        rgba(10,5,20,0.96);
}

.mitsuki-share-btn,
.arcade-btn,
.m-btn,
.btn-back,
.close-btn,
.gallery-modal-close,
.arcade-close-master {
    border-radius: 4px;
}

.mitsuki-share-btn:hover,
.arcade-btn:hover,
.m-btn:hover,
.btn-back:hover,
.close-btn:hover,
.arcade-close-master:hover {
    border-color: #fff;
    box-shadow: -4px 4px 0 var(--neon-magenta), 0 0 12px rgba(0,255,255,0.22);
    transform: translate(3px, -3px);
}

.arcade-overlay {
    background:
        radial-gradient(circle at 50% 18%, rgba(138, 43, 226, 0.25), transparent 34%),
        linear-gradient(rgba(0, 255, 255, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.04) 2px, transparent 2px),
        #05000a;
    background-size: auto, 30px 30px, 30px 30px, auto;
}

.arcade-screen.active {
    animation: cg-soft-pop 0.42s ease both;
}

.arcade-title {
    font-size: clamp(42px, 8vw, 72px);
    text-shadow: 5px 5px 0 #000, 0 0 18px var(--neon-cyan), 0 0 24px var(--akane-color);
}

.arcade-text {
    padding: 0 8px;
    text-shadow: 2px 2px 0 #000;
}

.arcade-img-start,
.game-over-img {
    border-radius: 6px;
    filter: drop-shadow(6px 6px 0 rgba(0,0,0,0.86)) drop-shadow(0 0 14px rgba(0,255,255,0.25));
}

.arcade-game-container {
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.25);
    background:
        linear-gradient(rgba(0,255,255,0.04) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,105,180,0.04) 2px, transparent 2px),
        rgba(0,0,0,0.45);
    background-size: 24px 24px, 24px 24px, auto;
}

.scoreboard {
    gap: 10px;
}

@media (max-width: 700px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-img-container {
        width: min(74vw, 230px);
        margin: 0 auto;
    }

    .modal-role {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .char-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Mitsuki unified page share protocol */
.mitsuki-share-page-btn {
    min-height: 48px;
    padding: 10px 18px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0, 255, 255, 0.12), transparent 48%, rgba(239, 0, 255, 0.14)),
        #12051d;
    border: 3px solid var(--neon-cyan);
    box-shadow: 5px 5px 0 #000;
    font-family: 'VT323', monospace;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.12s steps(2), border-color 0.12s, box-shadow 0.12s;
}

.mitsuki-share-page-btn:hover {
    color: #05000a;
    background: var(--neon-cyan);
    border-color: #fff;
    transform: translate(3px, -3px);
    box-shadow: -4px 4px 0 var(--neon-magenta), 0 0 14px rgba(0, 255, 255, 0.3);
}

.mitsuki-qr-overlay {
    --mitsuki-qr-accent: var(--akane-color);
    position: fixed;
    inset: 0;
    z-index: 100003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        linear-gradient(rgba(239, 0, 255, 0.06) 2px, transparent 2px) 0 0 / 28px 28px,
        rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(7px);
    font-family: 'VT323', monospace;
}

.mitsuki-qr-overlay[hidden] {
    display: none;
}

.mitsuki-qr-overlay[data-character="rika"] {
    --mitsuki-qr-accent: #d94b1f;
}

.mitsuki-qr-overlay[data-character="momo"] {
    --mitsuki-qr-accent: #df4fac;
}

.mitsuki-qr-window {
    width: min(94vw, 920px);
    max-height: min(92dvh, 860px);
    overflow: auto;
    color: #fff;
    background: #11091b;
    border: 4px solid var(--mitsuki-qr-accent);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.92), 0 0 28px color-mix(in srgb, var(--mitsuki-qr-accent) 45%, transparent);
}

.mitsuki-qr-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    color: #08020d;
    background: var(--mitsuki-qr-accent);
    border-bottom: 4px solid #fff;
}

.mitsuki-qr-header span {
    font-size: 15px;
    letter-spacing: 1px;
}

.mitsuki-qr-header h2 {
    margin: 0;
    font-size: clamp(23px, 4vw, 34px);
    line-height: 1;
}

.mitsuki-qr-close {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 44px;
    color: #fff;
    background: #16051f;
    border: 3px solid #fff;
    font: 24px/1 'VT323', monospace;
    cursor: pointer;
}

.mitsuki-qr-body {
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(320px, 1.28fr);
    grid-template-areas:
        "copy preview"
        "characters preview"
        "channels preview"
        "link link"
        "actions actions";
    gap: 14px;
    padding: 16px;
}

.mitsuki-qr-copy {
    grid-area: copy;
    padding: 12px;
    background: #07030c;
    border: 2px solid #51445c;
}

.mitsuki-qr-copy p {
    margin: 0 0 8px;
    font-size: clamp(19px, 2.2vw, 22px);
    line-height: 1.1;
}

.mitsuki-qr-copy span {
    color: var(--neon-cyan);
    font-size: 16px;
    letter-spacing: 1px;
}

.mitsuki-qr-character-list {
    grid-area: characters;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-self: start;
}

.mitsuki-qr-character-list button {
    min-width: 0;
    padding: 9px 5px 7px;
    color: #fff;
    background: #1a1022;
    border: 3px solid #5f526a;
    box-shadow: 4px 4px 0 #000;
    font: 18px/1 'VT323', monospace;
    cursor: pointer;
}

.mitsuki-qr-character-list button[data-mitsuki-qr-character="akane"] {
    --character-accent: var(--akane-color);
}

.mitsuki-qr-character-list button[data-mitsuki-qr-character="rika"] {
    --character-accent: #d94b1f;
}

.mitsuki-qr-character-list button[data-mitsuki-qr-character="momo"] {
    --character-accent: #df4fac;
}

.mitsuki-qr-character-list button[aria-pressed="true"] {
    border-color: var(--character-accent);
    background: color-mix(in srgb, var(--character-accent) 28%, #100718);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.mitsuki-qr-character-list img {
    display: block;
    width: min(100%, 58px);
    height: 58px;
    margin: 0 auto 6px;
    object-fit: contain;
    filter: drop-shadow(3px 3px 0 #000);
}

.mitsuki-share-channels {
    grid-area: channels;
    align-self: start;
    padding: 10px;
    background: #07030c;
    border: 2px solid #51445c;
}

.mitsuki-share-channels > span,
.mitsuki-share-link-box > span {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-cyan);
    font-size: 16px;
    letter-spacing: 1px;
}

.mitsuki-share-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mitsuki-share-channel-grid a {
    display: flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: #fff;
    background: #1a1022;
    border: 2px solid #5f526a;
    box-shadow: 3px 3px 0 #000;
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
}

.mitsuki-share-channel-grid img {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    object-fit: contain;
    image-rendering: pixelated;
}

.mitsuki-share-channel-grid strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mitsuki-share-channel-grid a:hover,
.mitsuki-share-channel-grid a:focus-visible {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    outline: none;
    transform: translate(2px, -2px);
    box-shadow: -3px 3px 0 var(--mitsuki-qr-accent);
}

.mitsuki-qr-preview {
    grid-area: preview;
    align-self: start;
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 4px solid var(--mitsuki-qr-accent);
    box-shadow: 6px 6px 0 #000;
}

.mitsuki-qr-preview > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1422 / 1080;
    object-fit: contain;
}

.mitsuki-qr-preview figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 8px 10px;
    color: #fff;
    background: #100718;
    border: 2px solid var(--mitsuki-qr-accent);
    font-size: 18px;
}

.mitsuki-qr-preview figcaption strong {
    color: var(--mitsuki-qr-accent);
    font-size: 24px;
}

.mitsuki-qr-preview code {
    color: var(--neon-cyan);
    font-family: inherit;
}

.mitsuki-share-link-box {
    grid-area: link;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
    background: #07030c;
    border: 2px solid var(--mitsuki-qr-accent);
}

.mitsuki-share-link-box > span {
    grid-column: 1 / -1;
    margin: 0;
}

.mitsuki-share-link-box code {
    min-width: 0;
    padding: 8px 10px;
    color: #fff;
    background: #160d1e;
    border: 2px solid #51445c;
    font: 17px/1.15 'VT323', monospace;
    overflow-wrap: anywhere;
}

.mitsuki-share-link-box button {
    min-height: 40px;
    padding: 7px 12px;
    color: #fff;
    background: #1a1022;
    border: 2px solid var(--mitsuki-qr-accent);
    box-shadow: 3px 3px 0 #000;
    font: 18px/1 'VT323', monospace;
    cursor: pointer;
}

.mitsuki-qr-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 2px;
}

.mitsuki-qr-actions a,
.mitsuki-qr-actions button {
    min-height: 44px;
    padding: 9px 14px;
    color: #fff;
    background: #1a1022;
    border: 3px solid var(--mitsuki-qr-accent);
    box-shadow: 4px 4px 0 #000;
    font: 20px/1 'VT323', monospace;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.mitsuki-qr-actions a:hover,
.mitsuki-qr-actions button:hover,
.mitsuki-qr-actions a:focus-visible,
.mitsuki-qr-actions button:focus-visible,
.mitsuki-qr-character-list button:focus-visible,
.mitsuki-qr-close:focus-visible,
.mitsuki-share-page-btn:focus-visible,
.mitsuki-share-link-box button:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 3px;
}

.mitsuki-qr-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 700px) {
    .mitsuki-qr-overlay {
        align-items: flex-start;
        padding: 8px;
    }

    .mitsuki-qr-window {
        width: 100%;
        max-height: calc(100dvh - 16px);
    }

    .mitsuki-qr-header {
        padding: 8px 9px;
    }

    .mitsuki-qr-header > div > span {
        display: none;
    }

    .mitsuki-qr-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "characters"
            "channels"
            "preview"
            "link"
            "actions";
        gap: 10px;
        padding: 10px;
    }

    .mitsuki-qr-copy {
        padding: 9px;
    }

    .mitsuki-qr-character-list button {
        font-size: 16px;
    }

    .mitsuki-qr-character-list img {
        height: 44px;
    }

    .mitsuki-qr-preview {
        padding: 6px;
    }

    .mitsuki-qr-preview figcaption {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        font-size: 16px;
    }

    .mitsuki-share-channel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mitsuki-share-link-box {
        grid-template-columns: 1fr;
    }

    .mitsuki-share-link-box > span {
        grid-column: auto;
    }

    .mitsuki-share-link-box button {
        width: 100%;
    }

    .mitsuki-qr-actions a,
    .mitsuki-qr-actions button {
        flex: 1 1 calc(50% - 10px);
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mitsuki-qr-character-list button[aria-pressed="true"] {
        transform: none;
    }
}

@media (max-width: 600px) {
    .loading-overlay {
        padding: 14px;
        background-size: 100% 6px, 34px 34px, 34px 34px, auto, auto;
    }

    .loading-window {
        width: min(100%, 390px);
        min-height: 292px;
        gap: 10px;
        padding: 48px 16px 22px;
        box-shadow:
            6px 6px 0 rgba(0,0,0,0.86),
            0 0 18px rgba(0,255,255,0.16),
            inset 0 0 0 2px rgba(255,255,255,0.05);
    }

    .loading-titlebar {
        min-height: 29px;
        font-size: 17px;
    }

    .loading-text {
        font-size: 28px;
        letter-spacing: 0;
    }

    .loading-boot-log {
        font-size: 17px;
    }

    .loading-progress {
        height: 14px;
    }

    .loading-icons-wrapper {
        gap: 12px;
    }

    .loading-icons-wrapper .load-dot {
        width: 42px;
        height: 42px;
    }

    .loading-caption {
        font-size: 15px;
    }

    .modal-overlay {
        padding: 12px;
    }

    .modal-box {
        max-height: calc(100dvh - 24px);
    }

    .modal-body {
        padding: 16px;
        gap: 16px;
    }

    .modal-desc {
        font-size: 15px;
    }

    .char-lore-list li {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .system-toast {
        bottom: max(18px, env(safe-area-inset-bottom));
    }

    .cookie-notice-window {
        right: 10px;
        bottom: 12px;
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .cookie-notice-header {
        padding: 10px 12px;
    }

    .cookie-notice-body {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 12px 14px;
    }

    .cookie-notice-img-frame {
        padding: 5px;
        border-width: 2px;
        box-shadow: 4px 4px 0 rgba(0,0,0,0.86);
    }

    .cookie-notice-copy p {
        font-size: 13px;
        line-height: 1.34;
    }

    .cookie-notice-actions {
        gap: 10px;
    }

    .cookie-notice-download {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
    }

    .cookie-notice-poster-thumb {
        width: 48px;
    }

    .cookie-notice-gift {
        width: 100%;
        min-height: 74px;
        padding: 8px 10px;
        font-size: 18px;
    }

    .mitsuki-trigger-container {
        left: 6px;
        bottom: max(6px, env(safe-area-inset-bottom));
        width: 54px;
    }

    .mitsuki-trigger-btn {
        width: 48px;
    }

    .mitsuki-trigger-label {
        font-size: 10px;
        padding: 3px 1px;
    }
}

/* =========================================
   ARCADE MENU POLISH - Start and defeat screens
   ========================================= */

.arcade-menu-screen {
    justify-content: center;
    padding: clamp(72px, 9vh, 96px) 18px clamp(30px, 6vh, 56px);
}

.arcade-stage-panel {
    position: relative;
    width: min(92vw, 560px);
    min-height: min(720px, calc(100dvh - 112px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: clamp(22px, 4vw, 34px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 50% 26%, rgba(138, 43, 226, 0.34), transparent 36%),
        radial-gradient(circle at 50% 62%, rgba(255, 105, 180, 0.14), transparent 42%),
        linear-gradient(rgba(0, 255, 255, 0.045) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.04) 2px, transparent 2px),
        rgba(9, 5, 20, 0.9);
    background-size: auto, auto, 24px 24px, 24px 24px, auto;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-top: 7px solid var(--akane-color);
    border-radius: 6px;
    box-shadow:
        10px 10px 0 rgba(0, 0, 0, 0.86),
        0 0 24px rgba(138, 43, 226, 0.36),
        inset 0 0 22px rgba(0, 255, 255, 0.08);
    isolation: isolate;
}

.arcade-stage-panel::before,
.arcade-stage-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.arcade-stage-panel::before {
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.1) 40%, transparent 58%),
        linear-gradient(rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.16) 50%);
    background-size: auto, 100% 4px;
    transform: translateX(-130%);
    animation: cg-card-scan 6.2s linear infinite;
}

.arcade-stage-panel::after {
    inset: 12px;
    border: 2px dashed rgba(0, 255, 255, 0.24);
    box-shadow: inset 0 0 24px rgba(138, 43, 226, 0.16);
}

.arcade-stage-panel > * {
    position: relative;
    z-index: 1;
}

.arcade-stage-tag,
.arcade-stage-stats span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    color: #05000a;
    font-family: 'VT323', monospace;
    line-height: 1;
    text-shadow: none;
    background: var(--neon-cyan);
    border: 2px solid #fff;
    box-shadow: 4px 4px 0 var(--neon-magenta);
}

.arcade-stage-tag {
    align-self: flex-start;
    margin-bottom: 2px;
    font-size: 18px;
    letter-spacing: 1px;
}

.arcade-stage-panel .arcade-title {
    margin: 0;
    max-width: 100%;
    font-size: clamp(52px, 9vw, 78px);
    letter-spacing: 2px;
    color: #fff;
    text-shadow:
        5px 5px 0 #000,
        0 0 16px var(--neon-cyan),
        0 0 30px rgba(138, 43, 226, 0.9);
}

.arcade-character-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 310px);
    min-height: 230px;
    margin: 0 auto;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(138, 43, 226, 0.44), transparent 50%),
        linear-gradient(rgba(0, 255, 255, 0.035) 2px, transparent 2px),
        rgba(0, 0, 0, 0.5);
    background-size: auto, 18px 18px, auto;
    border: 3px solid rgba(255, 255, 255, 0.82);
    border-radius: 6px;
    box-shadow:
        7px 7px 0 rgba(0, 0, 0, 0.82),
        0 0 18px rgba(0, 255, 255, 0.2),
        inset 0 0 22px rgba(255, 105, 180, 0.1);
}

.arcade-character-frame::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    height: 16px;
    background: rgba(0, 255, 255, 0.18);
    filter: blur(10px);
}

.arcade-character-frame .arcade-img-start,
.arcade-character-frame .game-over-img {
    max-width: min(86%, 260px);
    margin: 0;
    border-radius: 0;
    object-fit: contain;
}

.arcade-character-frame .arcade-img-start {
    max-width: min(78%, 224px);
    filter:
        drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.86))
        drop-shadow(0 0 14px rgba(138, 43, 226, 0.62))
        drop-shadow(0 0 10px rgba(0, 255, 255, 0.28));
}

.arcade-character-frame .game-over-img {
    filter:
        drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.86))
        drop-shadow(0 0 14px rgba(255, 0, 68, 0.38))
        drop-shadow(0 0 12px rgba(138, 43, 226, 0.42));
}

.arcade-stage-panel .arcade-text {
    max-width: 470px;
    margin: 0;
    padding: 0;
    color: #e8e0ef;
    font-size: clamp(20px, 3vw, 24px);
    line-height: 1.14;
}

.arcade-stage-stats {
    width: min(100%, 440px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.arcade-stage-stats span {
    min-width: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.56);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.82);
    font-size: 18px;
    overflow-wrap: anywhere;
}

.arcade-stage-panel .arcade-buttons-wrapper {
    max-width: 330px;
    margin-top: 2px;
}

.arcade-stage-panel .arcade-btn {
    min-height: 58px;
    background:
        linear-gradient(90deg, rgba(0, 255, 255, 0.08), transparent 44%, rgba(255, 105, 180, 0.1)),
        #111;
}

.arcade-stage-panel-over {
    border-top-color: #ff0044;
}

.arcade-stage-panel-over .arcade-stage-tag {
    background: #ff0044;
    box-shadow: 4px 4px 0 var(--akane-color);
    color: #fff;
}

.arcade-stage-panel-over .game-over-title {
    color: #fff;
    text-shadow:
        5px 5px 0 #000,
        0 0 16px #ff0044,
        0 0 30px rgba(138, 43, 226, 0.82);
}

.arcade-stage-panel-over .arcade-final-score {
    width: fit-content;
    max-width: 100%;
    padding: 7px 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    border: 2px solid rgba(255, 255, 255, 0.36);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.82);
    font-size: clamp(26px, 4vw, 34px);
}

.arcade-stage-panel-over .arcade-game-over-copy {
    color: #dcb8ff;
    font-size: clamp(20px, 3vw, 24px);
}

.arcade-stage-panel-win {
    border-top-color: var(--neon-cyan);
    background:
        radial-gradient(circle at 50% 25%, rgba(0, 255, 255, 0.22), transparent 36%),
        radial-gradient(circle at 50% 64%, rgba(255, 105, 180, 0.18), transparent 42%),
        linear-gradient(rgba(0, 255, 255, 0.045) 2px, transparent 2px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.08) 2px, transparent 2px),
        rgba(8, 4, 18, 0.92);
}

.arcade-stage-panel-win .arcade-stage-tag {
    background: var(--neon-magenta);
    box-shadow: 4px 4px 0 var(--neon-cyan);
    color: #fff;
}

.arcade-stage-panel-win .arcade-win-title {
    color: #fff;
    text-shadow:
        5px 5px 0 #000,
        0 0 16px var(--neon-magenta),
        0 0 30px rgba(0, 255, 255, 0.72);
}

.arcade-win-frame {
    min-height: 210px;
    border-color: rgba(0, 255, 255, 0.84);
}

.arcade-character-frame .arcade-win-img {
    max-width: min(78%, 230px);
    margin: 0;
    object-fit: contain;
    image-rendering: auto;
    filter:
        drop-shadow(7px 7px 0 rgba(0, 0, 0, 0.86))
        drop-shadow(0 0 14px rgba(255, 105, 180, 0.5))
        drop-shadow(0 0 12px rgba(0, 255, 255, 0.34));
}

.arcade-stage-panel-win .arcade-win-copy {
    max-width: 500px;
    color: #f0d6ff;
}

.m-btn {
    touch-action: none;
}

#arcadeGameScreen .arcade-game-container {
    position: relative;
    gap: 10px;
    overflow: hidden;
}

#arcadeGameScreen .arcade-control-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    image-rendering: pixelated;
}

#arcadeGameScreen .icon-pause::before,
#arcadeGameScreen .icon-pause::after {
    content: "";
    position: absolute;
    top: 2px;
    width: 5px;
    height: 14px;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

#arcadeGameScreen .icon-pause::before { left: 3px; }
#arcadeGameScreen .icon-pause::after { right: 3px; }

#arcadeGameScreen .icon-fire::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 1px;
    width: 4px;
    height: 16px;
    background: currentColor;
    box-shadow:
        0 -2px 0 #fff2aa,
        -4px 5px 0 #ff9b2f,
        4px 5px 0 #ff9b2f,
        -7px 10px 0 #ff382e,
        7px 10px 0 #ff382e,
        0 0 10px currentColor;
}

#arcadeGameScreen .icon-play::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid currentColor;
    filter: drop-shadow(0 0 6px currentColor);
}

#arcadeGameScreen .icon-restart::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 3px solid currentColor;
    border-left-color: transparent;
    box-shadow: 0 0 8px currentColor;
}

#arcadeGameScreen .icon-restart::after {
    content: "";
    position: absolute;
    right: 1px;
    top: 1px;
    width: 6px;
    height: 6px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

#arcadeGameScreen .icon-exit::before,
#arcadeGameScreen .icon-exit::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 12px;
    height: 3px;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

#arcadeGameScreen .icon-exit::before { transform: rotate(45deg); }
#arcadeGameScreen .icon-exit::after { transform: rotate(-45deg); }

#arcadeGameScreen .arcade-pause-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    gap: 6px;
    min-height: 28px;
    padding: 4px 9px;
    border: 2px solid rgba(0, 255, 255, 0.86);
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(0, 255, 255, 0.18), rgba(0, 0, 0, 0.2) 48%, rgba(138, 43, 226, 0.18)),
        rgba(4, 0, 9, 0.94);
    color: var(--neon-cyan);
    font-family: 'VT323', monospace;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000;
    box-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.88),
        inset 0 0 0 2px rgba(255, 255, 255, 0.06),
        inset 0 0 14px rgba(0, 255, 255, 0.16);
    cursor: pointer;
}

#arcadeGameScreen .arcade-pause-toggle:hover {
    color: #fff;
    border-color: #ff69b4;
    box-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.88),
        0 0 12px rgba(255, 105, 180, 0.34),
        inset 0 0 14px rgba(255, 105, 180, 0.18);
}

#arcadeGameScreen .arcade-pause-toggle:active {
    transform: translate(3px, 3px);
    box-shadow: inset 0 0 14px rgba(138, 43, 226, 0.28);
}

#arcadeGameScreen .scoreboard {
    position: static;
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0;
    padding: 7px 9px;
    color: var(--neon-cyan);
    background:
        linear-gradient(90deg, rgba(0, 255, 255, 0.08), transparent 44%, rgba(255, 105, 180, 0.08)),
        rgba(0, 0, 0, 0.72);
    border: 2px solid rgba(0, 255, 255, 0.48);
    border-bottom-style: solid;
    border-radius: 5px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.82), inset 0 0 12px rgba(138, 43, 226, 0.12);
    text-shadow: 2px 2px 0 #000;
}

#arcadeGameScreen .scoreboard > span {
    min-width: 0;
    white-space: nowrap;
}

#arcadeGameScreen .arcade-score-actions {
    display: grid;
    justify-items: end;
    gap: 3px;
    line-height: 1;
}

#arcadeGameScreen .score-stack {
    display: grid;
    min-width: 92px;
    line-height: 1;
}

#arcadeGameScreen .new-record-badge {
    min-height: 12px;
    color: #FFD32A;
    font-size: 14px;
    opacity: 0;
    text-shadow: 0 0 8px rgba(255, 211, 42, 0.75), 2px 2px 0 #000;
}

#arcadeGameScreen .new-record-badge.is-visible {
    opacity: 1;
    animation: arcade-record-pulse 0.85s steps(2) infinite;
}

@keyframes arcade-record-pulse {
    0%, 100% { color: #FFD32A; }
    50% { color: #FFFFFF; }
}

#arcadeGameScreen .arcade-pause-menu {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: none;
    place-items: center;
    padding: 18px;
    background:
        linear-gradient(rgba(0, 255, 255, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 50% 28%, rgba(138, 43, 226, 0.35), transparent 42%),
        rgba(5, 0, 10, 0.82);
    background-size: 24px 24px;
    backdrop-filter: blur(2px);
}

#arcadeGameScreen .arcade-pause-menu.is-active {
    display: grid;
}

#arcadeGameScreen .arcade-pause-panel {
    width: min(100%, 318px);
    padding: 20px 18px 18px;
    border: 3px solid rgba(0, 255, 255, 0.82);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(0, 255, 255, 0.14), transparent 18%),
        linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(0, 0, 0, 0.9) 42%, rgba(255, 105, 180, 0.18)),
        #080010;
    box-shadow:
        8px 8px 0 rgba(0, 0, 0, 0.86),
        0 0 24px rgba(0, 255, 255, 0.18),
        inset 0 0 0 2px rgba(255, 255, 255, 0.06),
        inset 0 0 22px rgba(0, 255, 255, 0.12);
    text-align: center;
}

#arcadeGameScreen .arcade-pause-title {
    margin: 8px 0 18px;
    color: var(--neon-cyan);
    font-family: 'VT323', monospace;
    font-size: 46px;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 4px 4px 0 var(--akane-color), 0 0 16px rgba(0, 255, 255, 0.38);
}

#arcadeGameScreen .arcade-pause-panel .arcade-buttons-wrapper {
    max-width: none;
    gap: 12px;
}

#arcadeGameScreen .arcade-pause-panel .arcade-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 52px;
    padding: 9px 16px;
    border-width: 3px;
    border-color: rgba(0, 255, 255, 0.84);
    border-radius: 5px;
    background:
        linear-gradient(90deg, rgba(0, 255, 255, 0.12), rgba(138, 43, 226, 0.14) 55%, rgba(255, 105, 180, 0.1)),
        #151019;
    color: #f4e9ff;
    font-size: 25px;
    letter-spacing: 1px;
    box-shadow:
        5px 5px 0 var(--akane-color),
        inset 0 0 0 2px rgba(255, 255, 255, 0.05),
        inset 0 0 12px rgba(0, 255, 255, 0.1);
}

#arcadeGameScreen .arcade-pause-panel .arcade-btn:hover {
    color: #fff;
    border-color: #ff69b4;
    background:
        linear-gradient(90deg, rgba(255, 105, 180, 0.2), rgba(0, 255, 255, 0.12)),
        #18101e;
}

#arcadeGameScreen .arcade-pause-panel .arcade-btn:active {
    transform: translate(5px, 5px);
    box-shadow: inset 0 0 12px rgba(0, 255, 255, 0.1);
}

#arcadeGameScreen .mobile-controls .m-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 70px;
    padding: 12px 14px;
    overflow: hidden;
    border: 3px solid #ff382e;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 112, 82, 0.22), rgba(30, 0, 12, 0.08) 44%, rgba(0, 0, 0, 0.24)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 8px),
        rgba(8, 0, 9, 0.92);
    color: #ff6a5c;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 3px 3px 0 #000, 0 0 10px rgba(255, 56, 46, 0.42);
    box-shadow:
        0 6px 0 #5e1110,
        5px 8px 0 rgba(0, 0, 0, 0.78),
        inset 0 0 0 3px rgba(255, 255, 255, 0.05),
        inset 0 -12px 18px rgba(255, 56, 46, 0.12);
}

#arcadeGameScreen .mobile-controls .m-btn::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    pointer-events: none;
}

#arcadeGameScreen .mobile-controls .m-btn:hover {
    color: #ffd9d4;
    border-color: #ff6a5c;
    box-shadow:
        0 6px 0 #5e1110,
        5px 8px 0 rgba(0, 0, 0, 0.78),
        0 0 14px rgba(255, 56, 46, 0.32),
        inset 0 -12px 18px rgba(255, 56, 46, 0.12);
}

#arcadeGameScreen .mobile-controls .m-btn:active,
#arcadeGameScreen .mobile-controls .m-btn.is-pressed {
    transform: translate(3px, 5px);
    background:
        linear-gradient(180deg, rgba(255, 56, 46, 0.55), rgba(138, 43, 226, 0.18)),
        rgba(20, 0, 12, 0.96);
    color: #fff;
    box-shadow:
        0 1px 0 #5e1110,
        2px 3px 0 rgba(0, 0, 0, 0.86),
        inset 0 0 18px rgba(255, 255, 255, 0.08);
}

#arcadeGameScreen .arcade-pause-menu:not(.is-active) {
    display: none !important;
}

#arcadeGameScreen .arcade-pause-menu.is-active {
    display: grid !important;
}

#arcadeGameScreen .arcade-status-line {
    width: 100%;
    min-height: 25px;
    padding: 4px 8px;
    color: #dcb8ff;
    background: rgba(0, 0, 0, 0.58);
    border: 2px solid rgba(138, 43, 226, 0.62);
    border-radius: 5px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    text-shadow: 2px 2px 0 #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.78), inset 0 0 10px rgba(255, 105, 180, 0.08);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#arcadeGameScreen .canvas-container,
#arcadeGameScreen .mobile-controls {
    flex: 0 0 auto;
}

#arcadeGameScreen .canvas-container {
    max-width: 400px;
}

#arcadeGameScreen #spaceInvadersCanvas {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4 / 5;
}

@media (max-height: 760px) and (min-width: 621px) {
    #arcadeGameScreen .arcade-game-container {
        width: 370px;
        padding: 10px;
        gap: 8px;
    }

    #arcadeGameScreen .scoreboard,
    #arcadeGameScreen .arcade-status-line,
    #arcadeGameScreen .canvas-container,
    #arcadeGameScreen .mobile-controls {
        width: 100%;
    }

    #arcadeGameScreen .scoreboard {
        min-height: 42px;
        padding: 6px 8px;
        font-size: 20px;
    }

    #arcadeGameScreen .arcade-status-line {
        min-height: 22px;
        padding: 3px 7px;
        font-size: 16px;
    }

    #arcadeGameScreen .mobile-controls {
        margin-top: 4px;
        grid-template-columns: minmax(120px, 1fr) 88px;
        gap: 10px;
    }

    #arcadeGameScreen .m-btn {
        min-height: 56px;
        padding: 8px 6px;
        font-size: 27px;
    }

    #arcadeGameScreen .arcade-joystick {
        width: 88px;
        height: 66px;
    }

    #arcadeGameScreen .arcade-joystick-ring {
        width: 64px;
        height: 64px;
    }

    #arcadeGameScreen .arcade-joystick-knob {
        width: 24px;
        height: 24px;
    }

    #arcadeGameScreen .arcade-dpad {
        --dpad-size: 88px;
    }

    #arcadeGameScreen .arcade-dpad-hoshi-rematch {
        --dpad-size: 102px;
        justify-self: center;
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .arcade-menu-screen {
        justify-content: flex-start;
        padding: 72px 12px 24px;
    }

    .arcade-stage-panel {
        width: min(100%, 430px);
        min-height: calc(100dvh - 100px);
        gap: 11px;
        padding: 18px 14px;
        box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.86), 0 0 18px rgba(138, 43, 226, 0.32);
    }

    .arcade-stage-panel::after {
        inset: 8px;
    }

    .arcade-stage-tag {
        max-width: calc(100% - 58px);
        font-size: 16px;
    }

    .arcade-stage-panel .arcade-title {
        font-size: clamp(42px, 14vw, 58px);
    }

    .arcade-character-frame {
        width: min(100%, 260px);
        min-height: clamp(174px, 36dvh, 230px);
    }

    .arcade-stage-panel .arcade-text {
        font-size: 19px;
    }

    .arcade-stage-stats {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .arcade-stage-stats span {
        min-height: 28px;
        font-size: 16px;
    }

    .arcade-stage-panel .arcade-btn {
        min-height: 52px;
        font-size: 24px;
    }

    .mobile-controls {
        grid-template-columns: minmax(120px, 1fr) 104px;
        gap: 8px;
        margin-top: 10px;
    }

    #arcadeGameScreen .arcade-dpad {
        --dpad-size: 104px;
    }

    #arcadeGameScreen .arcade-dpad-hoshi-rematch {
        --dpad-size: 118px;
        justify-self: center;
        margin-inline: auto;
    }

    #arcadeGameScreen .hoshi-rematch-mobile-controls {
        width: 100%;
        justify-items: center;
    }

    #arcadeGameScreen .scoreboard {
        min-height: 38px;
        gap: 6px;
        padding: 6px;
        font-size: 16px;
    }

    #arcadeGameScreen .scoreboard > span {
        white-space: normal;
        line-height: 0.95;
    }

    #arcadeGameScreen .arcade-status-line {
        min-height: 22px;
        padding: 3px 6px;
        font-size: 15px;
    }

    #arcadeGameScreen .hearts-box {
        padding: 3px 5px;
    }

    #arcadeGameScreen .heart-icon {
        width: 16px;
        height: 16px;
    }

    #arcadeGameScreen .arcade-game-container {
        width: min(100%, 366px);
        padding: 8px;
    }

    #arcadeGameScreen .canvas-container,
    #arcadeGameScreen .mobile-controls,
    #arcadeGameScreen .arcade-status-line,
    #arcadeGameScreen .scoreboard {
        width: 100%;
    }
}

@media (max-height: 680px) and (orientation: landscape) {
    .arcade-menu-screen {
        padding-top: 58px;
        padding-bottom: 16px;
    }

    .arcade-stage-panel {
        width: min(92vw, 760px);
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr);
        align-items: center;
        gap: 14px 22px;
        padding: 18px 22px;
    }

    .arcade-stage-tag,
    .arcade-stage-panel .arcade-title,
    .arcade-stage-panel .arcade-text,
    .arcade-stage-stats,
    .arcade-stage-panel .arcade-buttons-wrapper {
        grid-column: 2;
    }

    .arcade-character-frame {
        grid-column: 1;
        grid-row: 1 / span 5;
        min-height: min(70dvh, 280px);
    }

    .arcade-stage-tag {
        align-self: end;
    }
}

/* =========================================
   ARCADE CRT 2.0 - visual system and mobile-lite pass
   ========================================= */

.start-title-content,
.menu-box,
.music-card,
.intro-hook,
.character-arcade-frame,
.modal-box,
.mitsuki-vn-screen,
.cookie-notice-window,
.mixer-window,
.arcade-stage-panel,
.arcade-game-container,
.gallery-modal-box,
.info-image-modal-box,
.footer {
    border-color: var(--crt-border);
    box-shadow: var(--crt-shadow-hard), var(--crt-shadow-glow);
}

.start-title-content,
.menu-box,
.music-card,
.intro-hook,
.modal-box,
.mitsuki-vn-screen,
.arcade-stage-panel,
.gallery-modal-box,
.info-image-modal-box {
    background-color: var(--crt-panel);
    background-image:
        var(--crt-grid-cyan),
        var(--crt-grid-pink),
        radial-gradient(circle at 20% 0%, rgba(255, 61, 242, 0.12), transparent 34%),
        radial-gradient(circle at 85% 20%, rgba(0, 255, 255, 0.09), transparent 28%);
    background-size: 24px 24px, 24px 24px, auto, auto;
}

.section-title,
.gallery-title,
.arcade-title,
.modal-title,
.start-series-logo,
.main-logo {
    text-wrap: balance;
}

.section-title,
.arcade-frame-label,
.quick-scroll-btn,
.btn-title,
.btn-subtitle,
.modal-role,
.gallery-kicker,
.gallery-subtitle {
    letter-spacing: 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    padding: 8px 10px;
    margin: -8px -8px 12px;
    color: #05000a;
    background: linear-gradient(90deg, var(--neon-cyan), #e9fbff 58%, #ff8de0);
    border-bottom: 3px solid rgba(255, 255, 255, 0.88);
    text-shadow: none;
}

.menu-box,
.music-card {
    padding: 18px;
    gap: 14px;
}

.link-btn,
.plat-btn,
.btn-preview-mixer,
.quick-scroll-btn,
.press-start-btn,
.arcade-btn,
.m-btn,
.close-btn,
.gallery-modal-close,
.gallery-modal-nav,
.info-modal-close {
    min-height: 44px;
    touch-action: manipulation;
}

.link-btn {
    align-items: center;
    gap: 12px;
    min-height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.78);
}

.link-btn:focus-visible,
.plat-btn:focus-visible,
.btn-preview-mixer:focus-visible,
.quick-scroll-btn:focus-visible,
.press-start-btn:focus-visible,
.arcade-btn:focus-visible,
.m-btn:focus-visible,
.close-btn:focus-visible,
.gallery-modal-close:focus-visible,
.gallery-modal-nav:focus-visible,
.info-modal-close:focus-visible,
.char-btn:focus-visible,
.char-select-btn:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 3px;
}

.link-btn .icon-img,
.link-btn .icon {
    flex: 0 0 auto;
}

.link-btn .text-container,
.music-card .text-container {
    min-width: 0;
}

.btn-title,
.btn-subtitle {
    overflow-wrap: anywhere;
}

.home-hero-split {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: minmax(240px, 0.88fr) minmax(280px, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 34px);
    margin: 8px auto 0;
}

.bottom-art-container {
    margin-top: 0;
}

.bottom-art {
    filter:
        drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.78))
        drop-shadow(0 0 16px rgba(255, 61, 242, 0.2));
}

.intro-hook {
    margin-top: 0;
}

.character-arcade-frame {
    margin-top: 30px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.06), transparent 18%, transparent 82%, rgba(255,255,255,0.06)),
        var(--crt-grid-cyan),
        rgba(10, 5, 20, 0.92);
    background-size: auto, 22px 22px, auto;
}

.char-btn {
    transform: translateZ(0);
}

.modal-overlay,
.gallery-modal,
.info-image-modal,
.mitsuki-overlay {
    backdrop-filter: none;
}

.modal-desc,
.secret-lore-text,
.gallery-microdialog,
.info-card p,
.footer p {
    color: var(--crt-text-muted);
}

.start-bg-video {
    background: #05000a;
}

.start-desktop-widgets {
    opacity: 0.82;
}

.start-title-content {
    width: min(92vw, 720px);
}

.start-console-footer span {
    min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
    .link-btn:hover,
    .quick-scroll-btn:hover,
    .plat-btn:hover,
    .btn-preview-mixer:hover {
        transform: translate(4px, -4px);
        box-shadow: -4px 4px 0 var(--neon-magenta), 0 0 16px rgba(0, 255, 255, 0.2);
    }
}

@media (max-width: 760px) {
    .home-hero-split {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .menu-box::before,
    .music-card::before,
    .modal-box::before,
    .mitsuki-vn-screen::before,
    .arcade-game-container::before,
    .arcade-stage-panel::before,
    .start-title-content::after,
    .start-desktop-widgets,
    .start-widget {
        display: none;
    }

    .start-bg-video {
        filter: saturate(1.05) contrast(1.04) brightness(0.56);
    }

    .start-title-panel::before {
        background:
            radial-gradient(circle at 50% 38%, rgba(255, 105, 180, 0.16), transparent 32%),
            linear-gradient(rgba(5,0,10,0.08), rgba(5,0,10,0.72));
    }

    .start-title-content {
        width: min(94vw, 430px);
        height: min(88dvh, 590px);
        padding: 50px 14px 14px;
        gap: 10px;
        border-width: 3px;
        box-shadow: var(--mobile-shadow-hard), 0 0 18px rgba(0, 255, 255, 0.18);
        animation: none;
    }

    .start-runner-track {
        height: clamp(116px, 19vh, 150px);
    }

    .start-akane-runner {
        animation: none;
        filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.75));
        transform: translateX(-50%) scale(0.54);
    }

    .start-console-footer {
        grid-template-columns: 1fr;
        gap: 5px;
        font-size: 13px;
    }

    .menu-box,
    .music-card,
    .intro-hook,
    .character-arcade-frame,
    .modal-box,
    .mitsuki-vn-screen,
    .cookie-notice-window,
    .mixer-window,
    .arcade-stage-panel,
    .gallery-modal-box,
    .info-image-modal-box,
    .footer {
        box-shadow: var(--mobile-shadow-hard), inset 0 0 14px rgba(0, 255, 255, 0.06);
    }

    .menu-box,
    .music-card {
        padding: 14px;
        background-size: 28px 28px, 28px 28px, auto, auto;
    }

    .section-title {
        margin: -4px -4px 10px;
        font-size: 15px;
    }

    .link-btn {
        min-height: 58px;
        padding: 12px 13px;
        gap: 10px;
    }

    .link-btn:hover,
    .music-card:hover,
    .menu-box:hover,
    .char-btn:hover,
    .char-select-btn:hover {
        transform: none;
    }

    .bottom-art {
        filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.76));
    }
}

@media (max-width: 420px) {
    .start-series-logo {
        width: min(76vw, 320px);
    }

    .press-start-btn {
        min-width: min(78vw, 245px);
        min-height: 52px;
    }

    .character-arcade-frame .character-select {
        width: min(100%, 330px);
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }

    .menu-box::after,
    .menu-box::before,
    .music-card::before,
    .modal-box::before,
    .mitsuki-vn-screen::before,
    .arcade-game-container::before,
    .arcade-stage-panel::before,
    .loading-window,
    .loading-window::after,
    .loading-boot-log span,
    .loading-progress span,
    .loading-icons-wrapper .load-dot,
    .main-logo,
    .glitch-effect,
    .cursor-blink,
    .char-btn,
    .char-select-btn {
        animation: none !important;
    }
}

/* =========================================
   AKANEBOOK OVERDRIVE - louder desktop, lighter mobile
   ========================================= */

.profile-container {
    width: min(100%, 1080px);
    margin-bottom: 38px;
    padding: clamp(54px, 6vw, 68px) clamp(14px, 3vw, 34px) clamp(22px, 3vw, 34px);
    overflow: visible;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 61, 242, 0.2), transparent 19rem),
        radial-gradient(circle at 88% 18%, rgba(0, 255, 255, 0.14), transparent 18rem),
        linear-gradient(rgba(0, 255, 255, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.045) 2px, transparent 2px),
        rgba(5, 0, 10, 0.78);
    background-size: auto, auto, 26px 26px, 26px 26px, auto;
    border: 4px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    box-shadow:
        14px 14px 0 rgba(0, 0, 0, 0.9),
        -5px 5px 0 rgba(255, 61, 242, 0.72),
        0 0 32px rgba(0, 255, 255, 0.18),
        inset 0 0 28px rgba(255, 61, 242, 0.1);
}

.profile-container::before {
    content: "AKANEBOOK_PRO // /garage/lobby/cheatguys.home";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    min-height: 38px;
    padding: 10px 46px 8px 16px;
    color: #05000a;
    background:
        linear-gradient(90deg, var(--neon-cyan), #fff 42%, #ff8de0 78%, var(--neon-magenta));
    border-bottom: 4px solid rgba(255, 255, 255, 0.92);
    font-family: var(--font-pixel);
    font-size: clamp(10px, 1.8vw, 14px);
    line-height: 1;
    text-align: left;
    text-shadow: none;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.82);
    z-index: 0;
}

.profile-container::after {
    content: "REC";
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 4px 7px 3px;
    color: #fff;
    background: #ff0044;
    border: 2px solid #fff;
    font-family: var(--font-pixel);
    font-size: 10px;
    line-height: 1;
    box-shadow: 3px 3px 0 #000;
    z-index: 1;
}

.profile-container > * {
    position: relative;
    z-index: 2;
}

.logos-wrapper {
    max-width: 620px;
    margin-bottom: 8px;
}

.main-logo {
    max-width: min(82vw, 520px);
    filter:
        drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 18px rgba(255, 61, 242, 0.34));
}

.easter-egg-link:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 8px;
}

.rickroll-overlay {
    padding: clamp(12px, 3vw, 24px);
    background:
        linear-gradient(rgba(0, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 61, 242, 0.08) 1px, transparent 1px),
        rgba(0, 0, 0, 0.88);
    background-size: 18px 18px, 18px 18px, auto;
}

.rickroll-overlay:not([hidden]) {
    display: flex;
}

.rickroll-window {
    width: min(100%, 860px);
    max-width: 860px;
    overflow: hidden;
    border-color: var(--neon-cyan);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 255, 255, 0.08), transparent 34%, rgba(255, 61, 242, 0.1)),
        rgba(5, 0, 10, 0.96);
    box-shadow:
        12px 12px 0 rgba(0, 0, 0, 0.9),
        -4px 4px 0 rgba(255, 61, 242, 0.75),
        0 0 32px rgba(0, 255, 255, 0.22),
        inset 0 0 24px rgba(255, 61, 242, 0.1);
}

.rickroll-header {
    background:
        linear-gradient(90deg, var(--neon-cyan), #fff 42%, #ff8de0 78%, var(--neon-magenta));
    border-bottom: 4px solid rgba(255, 255, 255, 0.92);
}

.rickroll-header .modal-title {
    color: #05000a;
    text-shadow: none;
}

.rickroll-description {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.rickroll-statusbar,
.rickroll-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    color: var(--neon-lime);
    background: rgba(0, 0, 0, 0.72);
    border-bottom: 2px solid rgba(0, 255, 255, 0.45);
    font-family: var(--font-terminal);
    font-size: clamp(13px, 1.8vw, 16px);
    line-height: 1;
    text-shadow: 2px 2px 0 #000, 0 0 10px rgba(139, 255, 220, 0.28);
}

.rickroll-footer {
    border-top: 2px solid rgba(255, 61, 242, 0.45);
    border-bottom: 0;
    color: var(--neon-cyan);
}

.rickroll-video-frame {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    margin: 14px;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 255, 255, 0.08) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 61, 242, 0.06) 2px, transparent 2px),
        #05000a;
    background-size: 24px 24px, 24px 24px, auto;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        6px 6px 0 rgba(0, 0, 0, 0.82),
        inset 0 0 22px rgba(0, 255, 255, 0.12);
}

.rickroll-video-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.08) 50%);
    background-size: 100% 4px;
    mix-blend-mode: screen;
}

.rickroll-video {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    object-fit: contain;
}

.rickroll-loading {
    margin: 0;
    padding: 12px;
    color: var(--neon-cyan);
    font-family: var(--font-pixel);
    font-size: clamp(13px, 2.2vw, 18px);
    text-align: center;
    text-shadow: 2px 2px 0 #000, 0 0 12px rgba(0, 255, 255, 0.3);
}

.rickroll-copyright {
    margin: -4px 14px 12px;
    padding: 8px 10px;
    color: #ffd7fb;
    background: rgba(0, 0, 0, 0.72);
    border: 2px solid rgba(255, 61, 242, 0.62);
    font-family: var(--font-terminal);
    font-size: clamp(12px, 1.6vw, 14px);
    line-height: 1.2;
    text-align: left;
    text-shadow: 2px 2px 0 #000;
}

@media (max-width: 620px) {
    .rickroll-window {
        max-height: 86vh;
    }

    .rickroll-header {
        align-items: flex-start;
        gap: 8px;
    }

    .rickroll-statusbar,
    .rickroll-footer {
        flex-direction: column;
        font-size: 13px;
    }

    .rickroll-video-frame {
        min-height: 190px;
        margin: 10px;
    }

    .rickroll-copyright {
        margin: -2px 10px 10px;
        font-size: 12px;
    }
}

.akane-os-statusbar {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: 1.35fr auto auto;
    gap: 8px;
    margin: 10px auto 20px;
    color: var(--neon-lime);
    font-family: var(--font-terminal);
    font-size: clamp(17px, 2.4vw, 23px);
    line-height: 1;
    text-align: left;
    text-shadow: 2px 2px 0 #000, 0 0 10px rgba(139, 255, 220, 0.3);
}

.akane-os-statusbar span {
    min-width: 0;
    padding: 6px 9px;
    overflow: hidden;
    border: 2px solid rgba(139, 255, 220, 0.42);
    background: rgba(0, 0, 0, 0.48);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.72);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-hero-split {
    position: relative;
    width: min(100%, 1020px);
    margin-top: 10px;
    padding: clamp(14px, 3vw, 26px);
    border: 3px dashed rgba(255, 255, 255, 0.26);
    background:
        linear-gradient(135deg, rgba(255, 61, 242, 0.09), transparent 34%, rgba(0, 255, 255, 0.08)),
        rgba(0, 0, 0, 0.26);
}

.home-hero-split::before,
.home-hero-split::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.home-hero-split::before {
    inset: 8px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    box-shadow: inset 0 0 22px rgba(255, 61, 242, 0.08);
}

.home-hero-split::after {
    right: clamp(14px, 3vw, 28px);
    bottom: -16px;
    width: min(38vw, 260px);
    height: 24px;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.44), transparent),
        repeating-linear-gradient(90deg, rgba(255, 61, 242, 0.36) 0 8px, rgba(0, 255, 255, 0.22) 8px 16px);
    border: 2px solid rgba(255, 255, 255, 0.28);
    transform: rotate(-1.2deg);
    opacity: 0.8;
}

.home-hero-split > * {
    position: relative;
    z-index: 2;
}

.bottom-art-container {
    width: min(100%, 390px);
    padding: 12px;
    background:
        linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0.01)),
        rgba(0, 0, 0, 0.44);
    border: 3px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        8px 8px 0 rgba(0, 0, 0, 0.84),
        -5px 5px 0 rgba(255, 61, 242, 0.72),
        0 0 20px rgba(0, 255, 255, 0.14);
    transform: rotate(-1deg);
}

.bottom-art-container:hover,
.bottom-art-container:focus-visible {
    transform: rotate(0.35deg) translate(5px, -6px);
}

.bottom-art {
    width: 100%;
    border: 2px solid rgba(0, 255, 255, 0.42);
    background: rgba(5, 0, 10, 0.52);
}

.intro-hook {
    width: min(100%, 660px);
    padding: clamp(18px, 3vw, 26px);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        9px 9px 0 rgba(0, 0, 0, 0.86),
        -4px 4px 0 rgba(0, 255, 255, 0.62),
        inset 0 0 20px rgba(255, 61, 242, 0.12);
}

.intro-hook::after {
    content: "AKANE_NOTE: if it boots, it ships";
    position: absolute;
    right: 14px;
    bottom: -18px;
    max-width: min(82%, 330px);
    padding: 5px 8px;
    color: #13000d;
    background: #ff8de0;
    border: 2px solid #fff;
    box-shadow: 4px 4px 0 #000;
    font-family: var(--font-terminal);
    font-size: 16px;
    line-height: 1;
    transform: rotate(1.8deg);
}

.akane-chaos-notes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.akane-note {
    position: absolute;
    max-width: 170px;
    padding: 7px 9px 6px;
    color: #080012;
    border: 2px solid #fff;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.82);
    font-family: var(--font-terminal);
    font-size: 18px;
    line-height: 0.95;
    text-align: left;
}

.note-purple {
    top: 10px;
    left: 20px;
    background: #c99cff;
    transform: rotate(-7deg);
}

.note-pink {
    right: 18px;
    top: 18px;
    background: #ff8de0;
    transform: rotate(5deg);
}

.note-orange {
    left: 38%;
    bottom: 0;
    background: #ff9a55;
    transform: rotate(3deg);
}

.note-blue {
    right: 15%;
    bottom: 16px;
    background: #8eeeff;
    transform: rotate(-4deg);
}

.character-arcade-frame {
    width: min(100%, 690px);
    margin-top: 36px;
    padding: 34px 22px 22px;
}

.character-arcade-frame::before {
    width: 28px;
    height: 28px;
}

.character-arcade-frame::after {
    width: 28px;
    height: 28px;
}

.arcade-frame-label {
    top: -18px;
    background: linear-gradient(90deg, var(--neon-cyan), #fff, #ff8de0);
}

.character-select {
    gap: clamp(11px, 2.8vw, 22px);
}

.char-btn {
    width: clamp(76px, 9vw, 96px);
    height: clamp(76px, 9vw, 96px);
    border-width: 4px;
}

.char-btn::before {
    content: attr(title);
    position: absolute;
    right: 5px;
    bottom: 5px;
    left: 5px;
    padding: 3px 4px;
    color: #05000a;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid currentColor;
    font-family: var(--font-terminal);
    font-size: 13px;
    line-height: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--motion-fast), transform var(--motion-fast);
}

.char-btn:hover::before,
.char-btn:focus-visible::before {
    opacity: 1;
    transform: translateY(0);
}

.quick-scroll-nav {
    width: min(100%, 760px);
    margin-top: 24px;
}

.quick-scroll-btn {
    min-height: 48px;
    background:
        linear-gradient(rgba(255,255,255,0.1), transparent 44%),
        rgba(0, 0, 0, 0.68);
}

.akane-terminal-card {
    width: min(100%, 760px);
    margin: 18px auto 0;
    padding: 12px 14px 13px;
    color: #d8cfea;
    background:
        linear-gradient(rgba(139, 255, 220, 0.08) 1px, transparent 1px),
        rgba(0, 0, 0, 0.58);
    background-size: 100% 18px, auto;
    border: 2px solid rgba(139, 255, 220, 0.48);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.82), inset 0 0 18px rgba(139, 255, 220, 0.08);
    font-family: var(--font-terminal);
    text-align: left;
}

.akane-terminal-title {
    width: fit-content;
    margin: -24px 0 8px;
    padding: 4px 8px;
    color: #05000a;
    background: var(--neon-lime);
    border: 2px solid #fff;
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-pixel);
    font-size: 11px;
    line-height: 1;
}

.akane-terminal-card p {
    margin: 2px 0;
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1;
}

@media (min-width: 920px) {
    .links-container {
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        max-width: 1020px;
        gap: 24px;
        align-items: start;
        margin-top: 54px;
    }

    .links-container .menu-box {
        margin: 0;
    }

    .box-main {
        transform: rotate(-0.45deg);
    }

    .box-stickers {
        transform: rotate(0.35deg);
    }

    .box-support {
        transform: rotate(0.3deg);
    }

    .box-music {
        grid-row: span 2;
        transform: rotate(-0.25deg);
    }

    .box-contact {
        grid-column: 1 / -1;
        width: min(100%, 720px);
        justify-self: center;
        transform: rotate(0.2deg);
    }

    .menu-box:hover,
    .music-card:hover {
        transform: translate(4px, -4px) rotate(0deg);
    }

    .music-card:nth-of-type(odd) {
        transform: translateX(-4px);
    }

    .music-card:nth-of-type(even) {
        transform: translateX(5px);
    }

    .music-card:hover {
        transform: translate(5px, -4px) rotate(0deg);
    }
}

@media (max-width: 760px) {
    .profile-container {
        padding: 50px 12px 18px;
        border-width: 3px;
        border-radius: 6px;
        box-shadow:
            var(--mobile-shadow-hard),
            0 0 18px rgba(0, 255, 255, 0.16),
            inset 0 0 18px rgba(255, 61, 242, 0.08);
    }

    .profile-container::before {
        min-height: 34px;
        padding: 9px 44px 8px 10px;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .profile-container::after {
        top: 7px;
        right: 8px;
        font-size: 9px;
    }

    .akane-os-statusbar {
        grid-template-columns: 1fr;
        gap: 6px;
        margin: 8px auto 14px;
        font-size: 18px;
    }

    .akane-os-statusbar span:nth-child(n + 2) {
        display: none;
    }

    .home-hero-split {
        padding: 10px;
        border-style: solid;
        gap: 12px;
    }

    .home-hero-split::after,
    .akane-chaos-notes,
    .intro-hook::after {
        display: none;
    }

    .bottom-art-container {
        width: min(100%, 330px);
        padding: 8px;
        transform: none;
        box-shadow: var(--mobile-shadow-hard), 0 0 14px rgba(0, 255, 255, 0.14);
    }

    .bottom-art-container:hover,
    .bottom-art-container:focus-visible {
        transform: none;
    }

    .character-arcade-frame {
        width: min(100%, 430px);
        margin-top: 24px;
        padding: 30px 14px 16px;
    }

    .character-arcade-frame .character-select {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        width: min(100%, 370px);
        gap: 10px;
    }

    .char-btn {
        width: clamp(58px, 16vw, 72px);
        height: auto;
        aspect-ratio: 1;
        border-width: 3px;
    }

    .char-btn::before {
        display: none;
    }

    .akane-terminal-card {
        display: none;
    }

    .quick-scroll-nav {
        width: min(100%, 430px);
    }
}

@media (max-width: 380px) {
    .character-arcade-frame .character-select {
        width: min(100%, 330px);
        gap: 8px;
    }

    .quick-scroll-nav {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-split::after,
    .akane-note,
    .box-main,
    .box-stickers,
    .box-support,
    .box-music,
    .box-contact,
    .music-card:nth-of-type(odd),
    .music-card:nth-of-type(even) {
        transform: none !important;
    }

    .char-btn.hoshi,
    .char-btn.hoshi::after,
    #charModal.is-hoshi-memory .modal-box,
    #charModal.is-hoshi-memory .modal-title,
    #charModal.is-hoshi-memory .modal-role,
    #charModal.is-hoshi-memory .modal-desc,
    #charModal.is-hoshi-memory .modal-img,
    .hoshi-confirm-box {
        animation: none !important;
        transition: none !important;
    }
}

/* AkaneBook QA refinements: keep the characters visible and widgets light. */
.bottom-art {
    object-position: center center;
    transform: translateY(-22%) scale(1.28);
    transform-origin: center bottom;
}

.bottom-art-container:hover .bottom-art,
.bottom-art-container:focus-visible .bottom-art {
    transform: translateY(-24%) scale(1.32);
}

@media (max-width: 760px) {
    .bottom-art-container {
        aspect-ratio: 1 / 1.08;
    }

    .bottom-art {
        transform: translateY(-12%) scale(1.22);
    }
}

/* =========================================
   AKANEBOOK SOLID WINDOWS - no pink/cyan titlebar gradients
   ========================================= */

.profile-container::before {
    color: #ffffff;
    background: #5b22b8;
    border-bottom-color: #ffffff;
    text-shadow: 2px 2px 0 #000;
}

.section-title {
    color: #ffffff;
    background: #5b22b8;
    border-bottom-color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 0 #000;
}

.box-main .section-title { background: var(--akane-color); }
.box-stickers .section-title { background: #168a4d; }
.box-support .section-title { background: #b77a00; }
.box-music .section-title { background: #bc2f83; }
.box-contact .section-title { background: #0876a8; }

.arcade-frame-label {
    color: #ffffff;
    background: var(--akane-color);
    text-shadow: 2px 2px 0 #000;
}

.modal-header,
.cookie-notice-header,
.mixer-titlebar,
.x-feed-titlebar,
.mitsuki-vn-header {
    color: #ffffff;
    background: #11101b;
    background-image: none;
    border-bottom-color: var(--neon-cyan);
    text-shadow: 2px 2px 0 #000;
}

#modalHeader .modal-title,
.modal-header .modal-title,
.cookie-notice-header .modal-title {
    color: #ffffff !important;
}

#secretModal .modal-header {
    background: #7c0626;
    border-bottom-color: #ff0044;
}

.cookie-notice-header {
    background: #8b4d00;
    border-bottom-color: var(--gold-color);
}

.mixer-titlebar {
    background: #102b36;
    border-bottom-color: var(--mixer-accent, var(--neon-cyan));
}

.x-feed-titlebar {
    background: #06343a;
    border-bottom-color: var(--neon-cyan);
}

.mitsuki-vn-header {
    background: #4c001b;
    border-bottom-color: #ff0044;
}

.start-intro-confirm-titlebar {
    color: #ffffff;
    background: #4c001b;
    border-bottom-color: #ff0044;
}

.modal-box,
.cookie-notice-window,
.mixer-window,
.mitsuki-vn-screen {
    border-radius: 5px;
}

.close-btn,
.mixer-close,
.x-feed-close,
.cookie-notice-close {
    color: #ffffff;
    background: #17121e;
    border-color: #ffffff;
}

/* Secret archives as Akane's hidden file explorer. */
#secretModal .modal-box {
    width: min(96vw, 980px);
    max-width: 980px;
}

.secret-body {
    padding: clamp(12px, 2vw, 20px);
    background:
        linear-gradient(rgba(139, 255, 220, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 68, 0.035) 1px, transparent 1px),
        rgba(3, 0, 8, 0.3);
    background-size: 18px 18px, 18px 18px, auto;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 14px;
    max-height: min(62dvh, 560px);
    padding: 6px 4px 10px;
    overflow-y: auto;
    align-items: start;
}

.file-list::before {
    content: "C:/Users/Akane/Desktop/.secret_garage_archives";
    grid-column: 1 / -1;
    padding: 8px 10px;
    color: var(--neon-lime);
    background: rgba(0, 0, 0, 0.58);
    border: 2px dashed rgba(139, 255, 220, 0.38);
    box-shadow: inset 0 0 14px rgba(139, 255, 220, 0.08);
    font-family: var(--font-terminal);
    font-size: 18px;
    line-height: 1;
    text-align: left;
    overflow-wrap: anywhere;
}

.file-item {
    display: grid;
    grid-template-rows: minmax(118px, 1fr) auto;
    min-width: 0;
    min-height: 198px;
    padding: 8px;
    color: #ffffff;
    text-align: left;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05), transparent 44%),
        rgba(6, 5, 10, 0.82);
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 5px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.82), inset 0 0 14px rgba(255, 0, 68, 0.08);
    cursor: pointer;
    appearance: none;
    font: inherit;
}

.file-item:hover,
.file-item:focus-visible {
    border-color: #ff0044;
    background-color: rgba(255, 0, 68, 0.13);
    box-shadow: -4px 4px 0 #ff0044, 0 0 16px rgba(255, 0, 68, 0.22);
    transform: translate(3px, -3px);
    outline: none;
}

.file-thumb-shell {
    position: relative;
    display: block;
    min-height: 118px;
    overflow: hidden;
    background: #030304;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.8);
}

.file-thumb-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.18) 50%),
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.14) 43%, transparent 58%);
    background-size: 100% 4px, auto;
}

.file-thumb {
    display: block;
    width: 100%;
    height: 124px;
    object-fit: cover;
    object-position: center;
}

.file-meta {
    display: grid;
    gap: 5px;
    padding-top: 8px;
}

.file-icon {
    width: fit-content;
    min-width: 0;
    margin: 0;
    padding: 4px 7px 3px;
    color: #ffffff;
    background: #7c0626;
    border: 2px solid rgba(255, 255, 255, 0.82);
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-terminal);
    font-size: 14px;
    line-height: 1;
}

.file-name {
    min-width: 0;
    color: #ffffff;
    font-family: var(--font-pixel);
    font-size: clamp(10px, 1.35vw, 12px);
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-shadow: 2px 2px 0 #000;
}

.secret-viewer {
    gap: 12px;
}

.secret-img-large {
    max-height: min(58dvh, 560px);
    object-fit: contain;
}

.mitsuki-dialogue-box .mitsuki-portrait {
    object-position: center 56%;
}

.secret-lore-text {
    max-height: 28dvh;
    overflow-y: auto;
}

@media (max-width: 760px) {
    .bottom-art-container:active {
        transform: none;
        box-shadow: var(--mobile-shadow-hard), 0 0 14px rgba(0, 255, 255, 0.14);
    }

    .bottom-art-container:active .bottom-art,
    .bottom-art-container:hover .bottom-art,
    .bottom-art-container:focus-visible .bottom-art {
        transform: translateY(-12%) scale(1.22);
    }

    #secretModal .modal-box {
        width: min(94vw, 560px);
    }

    .secret-body {
        padding: 12px;
    }

    .file-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-height: min(66dvh, 610px);
    }

    .file-list::before {
        font-size: 15px;
    }

    .file-item {
        min-height: 176px;
        padding: 7px;
    }

    .file-thumb {
        height: 104px;
    }

    .file-thumb-shell {
        min-height: 104px;
    }

    .file-icon {
        font-size: 12px;
    }

    .file-name {
        font-size: 10px;
    }

    .secret-img-large {
        max-height: 44dvh;
    }

    .secret-lore-text {
        max-height: 30dvh;
    }
}

@media (max-width: 360px) {
    .file-list {
        grid-template-columns: 1fr;
    }
}

/* AkaneBook late polish: full poster, gated X feed, and hidden-folder explorer. */
.bottom-art-container {
    aspect-ratio: 1000 / 1294;
    overflow: hidden;
}

.bottom-art,
.bottom-art-container:hover .bottom-art,
.bottom-art-container:focus-visible .bottom-art,
.bottom-art-container:active .bottom-art {
    object-fit: contain;
    object-position: center center;
    transform: none;
}

.bottom-art-container:hover,
.bottom-art-container:focus-visible {
    transform: translate(3px, -3px);
}

.bottom-art-container:active {
    transform: none;
}

#secretModal .modal-box {
    overflow: visible;
    isolation: isolate;
    animation: cg-panel-boot 0.24s steps(4), secret-window-glitch 6.5s steps(1, end) infinite;
}

#secretModal.modal-overlay {
    align-items: flex-start;
    height: 100dvh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

#secretModal .modal-box {
    flex: 0 0 auto;
    max-height: calc(100dvh - 36px);
    margin-block: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

#secretModal .modal-box > * {
    position: relative;
    z-index: 1;
}

#secretModal .modal-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(transparent 0 18%, rgba(255, 0, 68, 0.16) 19% 20%, transparent 21% 56%, rgba(0, 255, 255, 0.14) 57% 58%, transparent 59%),
        linear-gradient(rgba(255, 255, 255, 0.035) 50%, rgba(0, 0, 0, 0.16) 50%);
    background-size: 100% 100%, 100% 4px;
    mix-blend-mode: screen;
    opacity: 0.16;
    transform: translateX(0);
    animation: secret-glitch-slice 4.8s steps(1, end) infinite;
}

@keyframes secret-window-glitch {
    0%, 84%, 100% { filter: none; }
    85% { filter: hue-rotate(8deg) saturate(1.2); }
    86% { filter: none; }
    91% { transform: translateX(0); }
    92% { transform: translateX(-1px); }
    93% { transform: translateX(1px); }
    94% { transform: translateX(0); }
}

@keyframes secret-glitch-slice {
    0%, 78%, 100% { clip-path: inset(0 0 0 0); transform: translateX(0); opacity: 0.12; }
    79% { clip-path: inset(12% 0 72% 0); transform: translateX(-8px); opacity: 0.38; }
    80% { clip-path: inset(64% 0 18% 0); transform: translateX(7px); opacity: 0.34; }
    81% { clip-path: inset(0 0 0 0); transform: translateX(0); opacity: 0.14; }
}

.secret-body {
    background:
        linear-gradient(rgba(142, 217, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 68, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(10, 20, 40, 0.74), rgba(2, 0, 8, 0.92));
    background-size: 18px 18px, 18px 18px, auto;
}

#secretModal .secret-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.secret-folder-view {
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 16px;
    min-height: min(58dvh, 430px);
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.44);
    background:
        linear-gradient(180deg, rgba(39, 91, 188, 0.44), rgba(11, 22, 54, 0.48)) left / min(210px, 34%) 100% no-repeat,
        rgba(240, 246, 255, 0.05);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.74);
}

.secret-explorer-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
    padding: 12px;
    color: #e6f3ff;
    background: linear-gradient(180deg, #416fce, #6c8de3);
    border: 2px solid rgba(255, 255, 255, 0.58);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.42);
    font-family: var(--font-terminal);
    font-size: 13px;
    line-height: 1.1;
}

.secret-explorer-sidebar strong {
    margin-top: 4px;
    color: #ffffff;
    font-family: var(--font-pixel);
    font-size: 9px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.42);
}

.secret-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 18px;
    align-content: start;
    min-width: 0;
    padding: 4px;
}

.secret-folder-card {
    appearance: none;
    align-self: start;
    justify-self: start;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 6px 14px;
    width: min(100%, 420px);
    padding: 14px;
    color: #ffffff;
    text-align: left;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.38);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.68), inset 0 0 18px rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.secret-folder-card-demos {
    position: relative;
    border-color: rgba(255, 170, 172, 0.58);
    background:
        repeating-linear-gradient(135deg, rgba(255, 170, 172, 0.08) 0 8px, transparent 8px 16px),
        rgba(255, 255, 255, 0.05);
}

.secret-folder-icon-audio::after {
    content: "\266B";
    position: absolute;
    right: 8px;
    bottom: 4px;
    color: #2c1600;
    font-family: var(--font-terminal);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.secret-folder-lock {
    position: absolute;
    right: 10px;
    top: 8px;
    padding: 3px 5px 2px;
    color: #160009;
    background: #ffaaac;
    border: 1px solid #fff;
    box-shadow: 2px 2px 0 #000;
    font-family: var(--font-pixel);
    font-size: 8px;
    line-height: 1;
}

.secret-folder-card:hover,
.secret-folder-card:focus-visible {
    border-color: #fff6a3;
    background: rgba(255, 246, 163, 0.12);
    outline: none;
    transform: translate(3px, -3px);
}

.secret-folder-icon {
    position: relative;
    grid-row: 1 / span 2;
    width: 76px;
    height: 58px;
    align-self: center;
    background: linear-gradient(180deg, #fff17a, #d69d19);
    border: 3px solid #6a4500;
    border-radius: 4px 4px 6px 6px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.62), inset 0 6px 0 rgba(255, 255, 255, 0.32);
}

.secret-folder-icon::before {
    content: "";
    position: absolute;
    left: 6px;
    top: -14px;
    width: 38px;
    height: 18px;
    background: #ffe777;
    border: 3px solid #6a4500;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}

.secret-folder-name {
    align-self: end;
    font-family: var(--font-pixel);
    font-size: clamp(11px, 2vw, 14px);
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-shadow: 2px 2px 0 #000;
}

.secret-folder-meta {
    color: #b7f8ff;
    font-family: var(--font-terminal);
    font-size: 14px;
    line-height: 1.1;
}

.file-list {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 12px;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
        rgba(3, 4, 8, 0.72);
}

.file-list::before {
    content: "C:/Documents and Settings/Akane/My Documents/SECRET_GARAGE_ARCHIVES";
    border-style: solid;
    border-color: rgba(105, 170, 255, 0.56);
    color: #d8efff;
    background: linear-gradient(180deg, rgba(11, 43, 98, 0.9), rgba(4, 10, 24, 0.92));
}

.file-item {
    grid-template-rows: 76px auto;
    min-height: 142px;
    place-items: center;
    padding: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.045);
    border-color: transparent;
    box-shadow: none;
}

.file-item:hover,
.file-item:focus-visible {
    background: rgba(66, 122, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 2px rgba(66, 122, 255, 0.5), 4px 4px 0 rgba(0, 0, 0, 0.52);
    transform: translate(2px, -2px);
    animation: file-icon-glitch 0.34s steps(2, end) 1;
}

.file-item.is-locked {
    border-color: rgba(255, 170, 172, 0.44);
    background:
        linear-gradient(135deg, rgba(255, 170, 172, 0.14), transparent 42%),
        rgba(255, 255, 255, 0.045);
}

@keyframes file-icon-glitch {
    0%, 100% { filter: none; }
    38% { filter: drop-shadow(-3px 0 0 #ff0044) drop-shadow(3px 0 0 var(--neon-cyan)); }
    62% { filter: drop-shadow(2px 0 0 #ff0044) drop-shadow(-2px 0 0 var(--neon-cyan)); }
}

.file-thumb-shell {
    display: grid;
    place-items: center;
    width: 70px;
    min-height: 62px;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.file-thumb-shell::after {
    display: none;
}

.file-photo-icon {
    position: relative;
    display: block;
    width: 58px;
    height: 46px;
    background: linear-gradient(180deg, #f8f5e7, #bfc6d6);
    border: 3px solid #fff;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.62), inset 0 -15px 0 #2b8f5d;
}

.file-photo-icon::before {
    content: "";
    position: absolute;
    left: 7px;
    bottom: 10px;
    width: 24px;
    height: 18px;
    background: #5fbb60;
    clip-path: polygon(0 100%, 44% 28%, 65% 60%, 82% 40%, 100% 100%);
}

.file-photo-icon::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #f6d85f;
    border-radius: 50%;
}

.file-item.is-locked .file-photo-icon::after {
    content: "LOCK";
    right: -12px;
    top: auto;
    bottom: -10px;
    width: auto;
    height: auto;
    padding: 2px 5px;
    border: 1px solid rgba(255, 170, 172, 0.9);
    border-radius: 0;
    background: rgba(40, 0, 24, 0.94);
    color: #ffaaac;
    font-family: var(--font-pixel);
    font-size: 0.58rem;
    letter-spacing: 0;
    box-shadow: 0 0 10px rgba(255, 61, 242, 0.36);
}

.file-thumb {
    display: none;
}

.file-meta {
    justify-items: center;
    padding-top: 4px;
}

.file-icon {
    color: #111827;
    background: #b7f8ff;
    border-color: #ffffff;
    font-size: 12px;
}

.secret-viewer {
    position: relative;
    align-items: stretch;
    width: 100%;
    text-align: left;
    --secret-commenter-accent: #b7f8ff;
    --secret-commenter-rgb: 183, 248, 255;
}

.secret-viewer[data-commenter="akane"] {
    --secret-commenter-accent: #8a2be2;
    --secret-commenter-rgb: 138, 43, 226;
}

.secret-viewer[data-commenter="rika"] {
    --secret-commenter-accent: #ff4500;
    --secret-commenter-rgb: 255, 69, 0;
}

.secret-viewer[data-commenter="momo"] {
    --secret-commenter-accent: #ff69b4;
    --secret-commenter-rgb: 255, 105, 180;
}

.secret-viewer[data-commenter="jun"] {
    --secret-commenter-accent: #00bfff;
    --secret-commenter-rgb: 0, 191, 255;
}

.secret-viewer[data-commenter="mitsuki"] {
    --secret-commenter-accent: #9b4d68;
    --secret-commenter-rgb: 155, 77, 104;
}

.secret-file-window,
.secret-password-window {
    display: none;
    flex-direction: column;
    gap: 14px;
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 18px;
    border: 2px solid rgba(255, 170, 172, 0.82);
    background:
        linear-gradient(180deg, rgba(38, 8, 48, 0.94), rgba(4, 8, 18, 0.96)),
        rgba(0, 0, 0, 0.84);
    box-shadow:
        0 0 0 2px rgba(105, 170, 255, 0.22),
        10px 10px 0 rgba(0, 0, 0, 0.48),
        inset 0 0 26px rgba(255, 61, 242, 0.12);
}

.secret-file-window {
    display: flex;
    padding: 0;
    gap: 0;
    overflow: hidden;
    border-color: rgba(var(--secret-commenter-rgb), 0.82);
    background:
        linear-gradient(180deg, rgba(var(--secret-commenter-rgb), 0.14), transparent 120px),
        rgba(2, 5, 14, 0.96);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.12),
        10px 10px 0 rgba(0, 0, 0, 0.55),
        0 0 24px rgba(var(--secret-commenter-rgb), 0.2);
}

.secret-file-titlebar,
.secret-properties-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 2px solid rgba(var(--secret-commenter-rgb), 0.5);
    background:
        linear-gradient(90deg, rgba(var(--secret-commenter-rgb), 0.3), rgba(4, 8, 18, 0.92)),
        rgba(0, 0, 0, 0.72);
    color: #fff;
    font-family: var(--font-pixel);
    line-height: 1.25;
}

.secret-file-titlebar strong,
.secret-properties-titlebar strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--secret-commenter-accent);
    text-shadow: 2px 2px 0 #000, 0 0 14px rgba(var(--secret-commenter-rgb), 0.5);
}

.secret-file-titlebar span,
.secret-properties-titlebar span {
    color: #d8efff;
    font-family: var(--font-terminal);
    font-size: 0.9rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.secret-file-canvas {
    display: grid;
    place-items: center;
    min-height: min(46dvh, 430px);
    padding: 16px;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.035) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.035) 75%),
        rgba(0, 0, 0, 0.54);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.secret-file-canvas .secret-img-large {
    display: block;
    max-height: min(50dvh, 520px);
    margin: 0;
    border-color: rgba(255, 255, 255, 0.92);
    border-radius: 0;
    box-shadow:
        6px 6px 0 rgba(0, 0, 0, 0.86),
        0 0 18px rgba(var(--secret-commenter-rgb), 0.24);
}

.secret-properties-window {
    margin: 0;
    border-top: 2px solid rgba(var(--secret-commenter-rgb), 0.72);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.72)),
        rgba(5, 8, 16, 0.94);
}

.secret-console-comments {
    position: relative;
    padding: 14px 16px 16px;
    color: #d8efff;
    font-family: var(--font-terminal);
}

.secret-console-comments::before {
    content: "// CONSOLE_COMMENT_STREAM";
    display: block;
    margin-bottom: 8px;
    color: var(--secret-commenter-accent);
    font-family: var(--font-pixel);
    font-size: 0.82rem;
    text-shadow: 2px 2px 0 #000;
}

.secret-console-comments .secret-lore-text {
    position: relative;
    width: 100%;
    max-height: 26dvh;
    margin: 0;
    padding: 0 0 0 22px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #d8efff;
    font-family: var(--font-terminal);
    font-size: 0.96rem;
    line-height: 1.45;
}

.secret-console-comments .secret-lore-text::before {
    content: "//";
    position: absolute;
    left: 0;
    color: var(--secret-commenter-accent);
}

.secret-console-comments .secret-lore-text strong,
.secret-console-comments .secret-lore-text em {
    color: var(--secret-commenter-accent);
    font-style: normal;
}

.secret-password-window {
    display: none;
}

.secret-password-header {
    display: grid;
    gap: 5px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(105, 170, 255, 0.38);
    font-family: var(--font-pixel);
    line-height: 1.35;
    text-transform: uppercase;
}

.secret-password-header strong {
    color: #ffaaac;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255, 61, 242, 0.45);
}

.secret-password-header span,
.secret-password-label,
.secret-password-status {
    color: #b7f8ff;
    font-family: var(--font-terminal);
}

.secret-password-header span {
    overflow-wrap: anywhere;
    font-size: 0.94rem;
}

.secret-password-label {
    font-size: 0.95rem;
}

.secret-password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.secret-password-input {
    min-width: 0;
    padding: 10px 12px;
    border: 2px solid rgba(105, 170, 255, 0.75);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-family: var(--font-terminal);
    font-size: 1rem;
    outline: none;
}

.secret-password-input:focus-visible {
    border-color: #b7f8ff;
    box-shadow: 0 0 0 3px rgba(105, 170, 255, 0.28);
}

.secret-password-submit,
.secret-password-back {
    border: 2px solid rgba(255, 170, 172, 0.78);
    background: rgba(22, 0, 31, 0.84);
    color: #fff;
    font-family: var(--font-pixel);
    line-height: 1.2;
    cursor: pointer;
}

.secret-password-submit {
    padding: 10px 12px;
}

.secret-password-back {
    align-self: flex-start;
    padding: 8px 10px;
}

.secret-password-submit:hover,
.secret-password-submit:focus-visible,
.secret-password-back:hover,
.secret-password-back:focus-visible {
    border-color: #fff;
    background: rgba(255, 170, 172, 0.18);
    box-shadow: 0 0 14px rgba(255, 61, 242, 0.35);
}

.secret-password-status {
    min-height: 1.3em;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.94rem;
}

.secret-demo-view {
    display: none;
    gap: 14px;
    max-width: 100%;
    min-width: 0;
    padding: 8px;
    color: #f7f3ff;
    border: 2px solid rgba(105, 170, 255, 0.52);
    background: rgba(2, 3, 12, 0.78);
    box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.82);
}

.secret-demo-titlebar,
.secret-demo-notice,
.secret-demo-player,
.secret-demo-info {
    border: 2px solid rgba(255, 255, 255, 0.38);
    background: rgba(6, 8, 18, 0.88);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.62);
}

.secret-demo-titlebar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 11px 14px;
    background: linear-gradient(180deg, rgba(70, 112, 205, 0.9), rgba(24, 45, 100, 0.92));
}

.secret-demo-titlebar div {
    min-width: 0;
}

.secret-demo-titlebar span,
.secret-demo-now-playing > span,
.secret-demo-track-status {
    color: #b7f8ff;
    font-family: var(--font-terminal);
    font-size: 12px;
    line-height: 1.1;
}

.secret-demo-titlebar h3 {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: #fff6a3;
    font-family: var(--font-pixel);
    font-size: clamp(15px, 3vw, 22px);
    letter-spacing: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 0 #000;
}

.secret-demo-notice {
    display: grid;
    gap: 7px;
    padding: 12px 14px;
    border-color: rgba(255, 214, 94, 0.66);
    background: rgba(36, 25, 0, 0.8);
}

.secret-demo-notice strong,
.secret-demo-info summary {
    color: #fff17a;
    font-family: var(--font-pixel);
    font-size: 10px;
    line-height: 1.25;
}

.secret-demo-notice p,
.secret-demo-info p,
.secret-demo-now-playing p {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: var(--font-terminal);
    line-height: 1.2;
}

.secret-demo-player {
    display: grid;
    grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
}

.secret-demo-artwork-shell {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    padding: clamp(12px, 4%, 18px);
    overflow: visible;
    background:
        linear-gradient(rgba(183, 248, 255, 0.12) 2px, transparent 2px),
        linear-gradient(90deg, rgba(183, 248, 255, 0.12) 2px, transparent 2px),
        #070912;
    background-size: 12px 12px;
    border: 2px solid rgba(183, 248, 255, 0.62);
    box-shadow: 5px 5px 0 #000, inset 0 0 28px rgba(105, 170, 255, 0.18);
}

.secret-demo-vinyl {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 8px solid #050509;
    border-radius: 50%;
    background: #0c0c13;
    box-shadow:
        0 0 0 3px rgba(183, 248, 255, 0.72),
        8px 8px 0 #000,
        inset 0 0 0 8px rgba(255, 255, 255, 0.08),
        inset 0 0 24px #000;
    animation: secret-demo-vinyl-spin 8s steps(48, end) infinite paused;
}

.secret-demo-artwork-shell.is-playing .secret-demo-vinyl {
    animation-play-state: running;
}

.secret-demo-vinyl::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle,
        transparent 0 9px,
        rgba(255, 255, 255, 0.13) 10px,
        rgba(0, 0, 0, 0.24) 12px
    );
    mix-blend-mode: overlay;
    pointer-events: none;
}

.secret-demo-vinyl::after {
    content: "4T";
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    aspect-ratio: 1;
    color: #05000a;
    background:
        linear-gradient(90deg, #fff17a 50%, #8bffdc 50%) 0 0 / 12px 12px,
        #fff17a;
    border: 5px solid #050509;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(255, 61, 242, 0.72);
    font-family: var(--font-pixel);
    font-size: 10px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.secret-demo-vinyl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: saturate(1.1) contrast(1.06);
}

.secret-demo-vinyl-texture {
    position: absolute;
    z-index: 3;
    inset: 0;
    border-radius: 50%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 50%, transparent 50%) 0 0 / 8px 8px,
        linear-gradient(rgba(255, 61, 242, 0.15) 50%, rgba(0, 255, 255, 0.12) 50%) 0 0 / 8px 8px;
    mix-blend-mode: hard-light;
    opacity: 0.34;
    pointer-events: none;
}

#secretDemoArtworkFallback {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 8px;
    color: #b7f8ff;
    background: #090b12;
    font-family: var(--font-pixel);
    font-size: 10px;
    text-align: center;
}

#secretDemoArtworkFallback[hidden] {
    display: none;
}

@keyframes secret-demo-vinyl-spin {
    to { transform: rotate(1turn); }
}

.secret-demo-now-playing {
    display: grid;
    align-content: center;
    gap: 10px;
    min-width: 0;
}

.secret-demo-now-playing strong {
    overflow-wrap: anywhere;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: clamp(14px, 3vw, 24px);
    letter-spacing: 0;
    line-height: 1.25;
    text-shadow: 2px 2px 0 #000;
}

.secret-demo-now-playing audio {
    display: none;
}

.secret-demo-transport {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 2px solid rgba(183, 248, 255, 0.58);
    background:
        linear-gradient(rgba(183, 248, 255, 0.08) 1px, transparent 1px),
        #090b12;
    background-size: 100% 8px;
    box-shadow: 4px 4px 0 #000, inset 0 0 16px rgba(105, 170, 255, 0.12);
}

.secret-demo-transport-buttons {
    display: flex;
    gap: 7px;
    align-items: center;
}

.secret-demo-transport-button {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #b7f8ff;
    background: #10162a;
    border: 2px solid rgba(183, 248, 255, 0.7);
    border-radius: 4px;
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-pixel);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
}

.secret-demo-transport-toggle {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    color: #05000a;
    background: #8bffdc;
    border-color: #fff;
    border-radius: 50%;
    font-size: 13px;
}

.secret-demo-transport-button:hover,
.secret-demo-transport-button:focus-visible {
    color: #05000a;
    background: #fff17a;
    border-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 246, 163, 0.2), 3px 3px 0 #000;
}

.secret-demo-progress-row {
    display: grid;
    grid-template-columns: 44px minmax(80px, 1fr) 44px;
    gap: 9px;
    align-items: center;
    min-width: 0;
}

.secret-demo-progress-row span {
    color: #fff17a;
    font-family: var(--font-terminal);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.secret-demo-progress-row input[type="range"] {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 28px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.secret-demo-progress-row input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: repeating-linear-gradient(90deg, #416fce 0 10px, #253766 10px 14px);
    border: 2px solid #b7f8ff;
    box-shadow: 2px 2px 0 #000;
}

.secret-demo-progress-row input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 22px;
    margin-top: -9px;
    background: #ff6daf;
    border: 2px solid #fff;
    border-radius: 2px;
    box-shadow: 2px 2px 0 #000;
}

.secret-demo-progress-row input[type="range"]::-moz-range-track {
    height: 6px;
    background: #416fce;
    border: 2px solid #b7f8ff;
    box-shadow: 2px 2px 0 #000;
}

.secret-demo-progress-row input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 20px;
    background: #ff6daf;
    border: 2px solid #fff;
    border-radius: 2px;
    box-shadow: 2px 2px 0 #000;
}

.secret-demo-progress-row input[type="range"]:focus-visible {
    outline: 3px solid rgba(255, 246, 163, 0.72);
    outline-offset: 2px;
}

.secret-demo-progress-row input[type="range"]:disabled {
    cursor: wait;
    opacity: 0.58;
}

.secret-demo-download,
.secret-demo-track-download {
    display: inline-grid;
    place-items: center;
    min-height: 46px;
    padding: 8px 10px;
    color: #05000a;
    background: #8bffdc;
    border: 2px solid #fff;
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-pixel);
    font-size: 9px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.secret-demo-download {
    justify-self: start;
}

.secret-demo-tracklist {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.secret-demo-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(100px, auto);
    gap: 8px;
    min-width: 0;
}

.secret-demo-track-select {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 52px minmax(112px, auto);
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 52px;
    padding: 8px 10px;
    color: #f7f3ff;
    background: rgba(255, 255, 255, 0.055);
    border: 2px solid rgba(255, 255, 255, 0.34);
    font-family: var(--font-terminal);
    text-align: left;
    cursor: pointer;
}

.secret-demo-track-select:hover,
.secret-demo-track-select:focus-visible,
.secret-demo-track.is-active .secret-demo-track-select,
.secret-demo-download:hover,
.secret-demo-download:focus-visible,
.secret-demo-track-download:hover,
.secret-demo-track-download:focus-visible {
    border-color: #fff6a3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 246, 163, 0.2), 3px 3px 0 #000;
}

.secret-demo-track.is-active .secret-demo-track-select {
    background: rgba(65, 111, 206, 0.36);
}

.secret-demo-track-number,
.secret-demo-track-duration {
    color: #fff17a;
    font-family: var(--font-pixel);
    font-size: 9px;
}

.secret-demo-track-details {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.secret-demo-track-details strong,
.secret-demo-track-details span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.secret-demo-track-details strong {
    font-size: 18px;
    line-height: 1;
}

.secret-demo-track-details span {
    color: #cbd8ec;
    font-size: 14px;
}

.secret-demo-info {
    padding: 12px 14px;
}

.secret-demo-info summary {
    min-height: 36px;
    cursor: pointer;
}

.secret-demo-info p + p {
    margin-top: 12px;
}

.secret-viewer::before {
    content: "IMAGE_PREVIEW // READ_ONLY // DO_NOT_RENAME";
    color: #b7f8ff;
    font-family: var(--font-terminal);
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 560px) {
    .secret-file-titlebar,
    .secret-properties-titlebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .secret-file-titlebar span,
    .secret-properties-titlebar span {
        text-align: left;
    }

    .secret-file-canvas {
        min-height: min(42dvh, 360px);
        padding: 12px;
    }

    .secret-password-window {
        padding: 14px;
    }

    .secret-password-row {
        grid-template-columns: 1fr;
    }

    .secret-password-submit {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .bottom-art-container {
        width: min(100%, 330px);
        aspect-ratio: 1000 / 1294;
    }

    .bottom-art-container:active .bottom-art,
    .bottom-art-container:hover .bottom-art,
    .bottom-art-container:focus-visible .bottom-art {
        transform: none;
    }

    .secret-folder-view {
        grid-template-columns: 1fr;
        min-height: min(58dvh, 420px);
        background: rgba(12, 22, 52, 0.48);
    }

    .secret-folder-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    .secret-explorer-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px 10px;
        padding: 10px;
        font-size: 12px;
    }

    .secret-explorer-sidebar strong {
        grid-column: 1 / -1;
    }

    .secret-folder-card {
        grid-template-columns: 74px minmax(0, 1fr);
        width: 100%;
    }

    .secret-demo-view {
        padding: 4px;
    }

    .secret-demo-titlebar {
        align-items: flex-start;
    }

    .secret-demo-player {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .secret-demo-artwork-shell {
        width: min(100%, 330px);
        justify-self: center;
    }

    .secret-demo-now-playing {
        text-align: center;
    }

    .secret-demo-transport {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .secret-demo-transport-buttons {
        justify-content: center;
    }

    .secret-demo-download {
        justify-self: stretch;
        width: 100%;
    }

    .secret-demo-track {
        grid-template-columns: 1fr;
    }

    .secret-demo-track-select {
        grid-template-columns: 30px minmax(0, 1fr) 46px;
        gap: 7px;
    }

    .secret-demo-track-status {
        grid-column: 2 / -1;
    }

    .secret-demo-track-download {
        width: 100%;
    }

    .secret-folder-icon {
        width: 66px;
        height: 50px;
    }

    .file-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        max-height: min(66dvh, 610px);
    }

    .file-list::before {
        font-size: 13px;
    }

    .file-item {
        min-height: 128px;
        padding: 6px;
    }

    .file-thumb-shell {
        min-height: 58px;
    }

    .file-photo-icon {
        width: 50px;
        height: 40px;
    }

    .file-icon {
        font-size: 10px;
        padding: 3px 5px 2px;
    }
}

@media (max-width: 420px) {
    .secret-demo-progress-row {
        grid-template-columns: 38px minmax(70px, 1fr) 38px;
        gap: 6px;
    }

    .secret-demo-progress-row span {
        font-size: 12px;
    }

    .secret-demo-transport-button {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .secret-demo-transport-toggle {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #secretModal .modal-box,
    #secretModal .modal-box::after,
    .file-item:hover,
    .file-item:focus-visible {
        animation: none;
    }

    .secret-folder-card,
    .secret-demo-track-select {
        transition: none;
    }

    .secret-demo-vinyl {
        animation: none;
    }
}

/* Final lobby stack: one wider column with visible Akane maintenance notes. */
.links-container {
    display: flex;
    flex-direction: column;
    width: min(100%, 660px);
    max-width: 660px;
    gap: 22px;
    margin: 48px auto 92px;
}

.links-container .menu-box,
.links-container .box-contact {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-self: auto;
    transform: none;
}

.links-container .box-music {
    grid-row: auto;
}

.links-container .music-card:nth-of-type(odd),
.links-container .music-card:nth-of-type(even) {
    transform: none;
}

.links-note {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 10px 12px 11px 48px;
    color: #d8cfea;
    background:
        linear-gradient(rgba(139, 255, 220, 0.08) 1px, transparent 1px),
        rgba(0, 0, 0, 0.62);
    background-size: 100% 16px, auto;
    border: 2px dashed rgba(139, 255, 220, 0.44);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.78), inset 0 0 16px rgba(139, 255, 220, 0.08);
    font-family: var(--font-terminal);
    line-height: 1.1;
}

.links-note::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    background:
        linear-gradient(90deg, transparent 45%, #05000a 45% 55%, transparent 55%),
        linear-gradient(#ffeb74 0 0);
    border: 2px solid #fff;
    box-shadow: 3px 3px 0 #000;
    transform: translateY(-50%) rotate(-7deg);
}

.links-note span {
    width: fit-content;
    padding: 3px 7px 2px;
    color: #05000a;
    background: var(--neon-lime);
    border: 2px solid #fff;
    box-shadow: 3px 3px 0 #000;
    font-family: var(--font-pixel);
    font-size: 10px;
    line-height: 1;
}

.links-note strong {
    color: #f7f3ff;
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 700;
}

.links-note-mid {
    border-color: rgba(255, 190, 64, 0.52);
}

.links-note-mid span {
    background: #ffbe40;
}

.links-note-bottom {
    border-color: rgba(0, 255, 255, 0.5);
}

.links-note-bottom span {
    background: var(--neon-cyan);
}

.char-btn.hoshi {
    isolation: isolate;
    border-color: #ff003c;
    background-position: center 14%;
    filter: saturate(1.18) contrast(1.08);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.85), 0 0 18px rgba(255, 0, 60, 0.66), inset 0 0 16px rgba(255, 0, 60, 0.22);
    animation: hoshi-danger-button 1.3s steps(2, end) infinite;
}

.char-btn.hoshi::after {
    z-index: 1;
    background:
        linear-gradient(transparent 46%, rgba(255, 255, 255, 0.28) 48%, transparent 52%),
        linear-gradient(115deg, transparent, rgba(255, 0, 60, 0.38), transparent);
    mix-blend-mode: screen;
    transform: translateX(-130%);
    animation: hoshi-danger-scan 0.9s steps(2, end) infinite;
}

.char-btn.hoshi::before {
    content: "HOSHI";
    color: #fff;
    background: rgba(20, 0, 6, 0.82);
    border-color: #ff003c;
    opacity: 1;
    text-shadow: 2px 2px 0 #000, 0 0 8px #ff003c;
}

.char-btn.hoshi:hover,
.char-btn.hoshi:focus-visible {
    animation: hoshi-danger-button 0.54s steps(2, end) infinite;
    border-color: #fff;
    filter: brightness(1.35) saturate(1.45) contrast(1.16);
    box-shadow: -4px 4px 0 #000, 0 0 22px rgba(255, 0, 60, 0.92), 0 0 44px rgba(255, 0, 60, 0.42);
}

.hoshi-confirm-overlay {
    background:
        repeating-linear-gradient(0deg, rgba(255, 0, 60, 0.08) 0 1px, transparent 1px 7px),
        rgba(0, 0, 0, 0.9);
}

.hoshi-confirm-box {
    max-width: 520px;
    border-color: #ff003c;
    background:
        linear-gradient(180deg, rgba(255, 0, 60, 0.14), transparent 120px),
        rgba(8, 0, 8, 0.96);
    box-shadow: 10px 10px 0 #000, 0 0 28px rgba(255, 0, 60, 0.5);
    animation: hoshi-memory-glitch 1.8s steps(1, end) infinite;
}

.hoshi-confirm-header {
    border-bottom-color: #ff003c;
    background: rgba(80, 0, 18, 0.88);
}

.hoshi-confirm-body {
    display: grid;
    gap: 18px;
    padding: 20px;
    color: #fff;
    font-family: var(--font-terminal);
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.15;
    text-shadow: 2px 2px 0 #000, 0 0 14px rgba(255, 0, 60, 0.7);
}

.hoshi-confirm-body p {
    margin: 0;
}

.hoshi-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hoshi-confirm-actions button {
    min-height: 42px;
    color: #fff;
    background: #140006;
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow: 4px 4px 0 #000;
    font-family: var(--font-pixel);
    font-size: 11px;
    line-height: 1.15;
    cursor: pointer;
}

.hoshi-confirm-actions [data-cg-hoshi-confirm-open] {
    border-color: #ff003c;
    background: #5c0016;
    box-shadow: 4px 4px 0 #000, 0 0 16px rgba(255, 0, 60, 0.52);
}

#charModal.is-hoshi-memory {
    background:
        repeating-linear-gradient(90deg, rgba(255, 0, 60, 0.08) 0 2px, transparent 2px 16px),
        rgba(0, 0, 0, 0.9);
}

#charModal.is-hoshi-memory .modal-box {
    border-color: #ff003c;
    background:
        linear-gradient(180deg, rgba(255, 0, 60, 0.14), transparent 160px),
        rgba(5, 0, 8, 0.96);
    box-shadow: 12px 12px 0 #000, 0 0 32px rgba(255, 0, 60, 0.52);
    animation: popIn 0.25s steps(5), hoshi-memory-glitch 2.2s steps(1, end) infinite;
}

#charModal.is-hoshi-memory .modal-header {
    background:
        linear-gradient(90deg, rgba(255, 0, 60, 0.64), rgba(18, 0, 8, 0.92)),
        #ff003c;
}

#charModal.is-hoshi-memory .modal-title,
#charModal.is-hoshi-memory .modal-role,
#charModal.is-hoshi-memory .modal-desc {
    color: #fff;
    text-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 0, 60, 0.9);
    animation: hoshi-text-corrupt 1.15s steps(2, end) infinite;
}

#charModal.is-hoshi-memory .modal-img {
    border-color: #ff003c;
    box-shadow: 5px 5px 0 #000, 0 0 22px rgba(255, 0, 60, 0.52);
    filter: saturate(1.22) contrast(1.08);
    animation: hoshi-image-corrupt 1.25s steps(2, end) infinite;
}

#charModal.is-hoshi-memory .char-stat-grid span {
    border-color: rgba(255, 0, 60, 0.78);
    background: rgba(80, 0, 18, 0.62);
}

@keyframes hoshi-danger-button {
    0%, 100% { transform: translate(0, 0); filter: saturate(1.18) contrast(1.08); }
    18% { transform: translate(-2px, 1px); filter: saturate(1.7) contrast(1.28) hue-rotate(-8deg); }
    20% { transform: translate(2px, -1px); }
    44% { transform: translate(0, 0); }
    45% { transform: translate(3px, 0); filter: brightness(1.45) saturate(1.9); }
    47% { transform: translate(-3px, 0); }
    60% { transform: translate(0, 0); filter: saturate(1.2) contrast(1.1); }
}

@keyframes hoshi-danger-scan {
    0%, 44% { transform: translateX(-130%); opacity: 0.25; }
    45%, 52% { transform: translateX(0); opacity: 0.8; }
    100% { transform: translateX(130%); opacity: 0.2; }
}

@keyframes hoshi-memory-glitch {
    0%, 100% { transform: translate(0, 0); filter: none; }
    8% { transform: translate(-3px, 1px); filter: saturate(1.5); }
    9% { transform: translate(3px, -1px); }
    10%, 52% { transform: translate(0, 0); }
    53% { transform: translate(4px, 0); filter: hue-rotate(-18deg) contrast(1.16); }
    54% { transform: translate(-2px, 0); }
    55% { transform: translate(0, 0); filter: none; }
}

@keyframes hoshi-text-corrupt {
    0%, 100% { transform: translate(0, 0); filter: none; }
    16% { transform: translate(1px, 0); filter: blur(0.2px); }
    18% { transform: translate(-2px, 0); color: #ffb6c4; }
    20%, 64% { transform: translate(0, 0); color: #fff; }
    65% { transform: translate(2px, -1px); }
    66% { transform: translate(-1px, 1px); }
}

@keyframes hoshi-image-corrupt {
    0%, 100% { transform: translate(0, 0); filter: saturate(1.22) contrast(1.08); }
    11% { transform: translate(-4px, 1px) skewX(-1deg); filter: saturate(1.9) hue-rotate(-14deg); }
    12% { transform: translate(4px, -1px) skewX(1deg); }
    13%, 58% { transform: translate(0, 0); filter: saturate(1.22) contrast(1.08); }
    59% { transform: translate(2px, 0); filter: brightness(1.28) contrast(1.22); }
    60% { transform: translate(-2px, 0); }
}

@media (min-width: 920px) {
    .links-container {
        display: flex;
        grid-template-columns: none;
        width: min(100%, 680px);
        max-width: 680px;
        gap: 24px;
        align-items: stretch;
        margin-top: 58px;
    }

    .links-container .menu-box,
    .links-container .box-contact,
    .links-container .box-main,
    .links-container .box-stickers,
    .links-container .box-support,
    .links-container .box-music {
        grid-column: auto;
        grid-row: auto;
        justify-self: auto;
        transform: none;
    }

    .links-container .menu-box:hover,
    .links-container .music-card:hover {
        transform: translate(4px, -4px);
    }
}

@media (max-width: 600px) {
    .links-container {
        width: min(100%, 470px);
        gap: 18px;
        margin-top: 34px;
        margin-bottom: 78px;
    }

    .links-note {
        padding: 9px 10px 10px 42px;
    }

    .links-note strong {
        font-size: 16px;
    }
}

/* Character selector redesign: compact roster rows with cartridge-style slots. */
.character-arcade-frame {
    width: min(100%, 760px);
}

.character-arcade-frame .character-select {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
    gap: 10px 14px;
    width: min(100%, 700px);
    margin: 18px auto 0;
}

.character-drawer {
    display: block;
    min-height: 88px;
    padding: 28px 14px 12px;
    border-width: 3px;
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(10, 8, 18, 0.84)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 6px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.86), inset 0 0 18px rgba(0, 255, 255, 0.08);
    overflow: hidden;
}

.character-drawer-main {
    grid-column: 1 / -1;
    border-color: var(--neon-cyan);
}

.character-drawer-danger {
    grid-column: 1;
    border-color: #ff003c;
}

.character-drawer-support {
    grid-column: 2;
    border-color: color-mix(in srgb, var(--reiko-color) 48%, var(--mitsuki-color) 52%);
}

.character-drawer-danger,
.character-drawer-support {
    min-height: 88px;
    justify-content: stretch;
}

.character-drawer-label {
    position: absolute;
    top: 7px;
    left: 14px;
    writing-mode: horizontal-tb;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    margin-right: 0;
    padding: 4px 9px;
    color: #05000a;
    border: 2px solid #05000a;
    box-shadow: 3px 3px 0 #000;
    font-size: 10px;
    text-align: center;
}

.character-drawer-main .character-drawer-label { background: var(--neon-cyan); }
.character-drawer-danger .character-drawer-label { color: #fff; background: #8b001f; border-color: #fff; }
.character-drawer-support .character-drawer-label { background: var(--neon-lime); }

.character-drawer-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(7px, 1.6vw, 12px);
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.character-drawer-grid::-webkit-scrollbar {
    height: 5px;
}

.character-drawer-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.48);
}

.char-btn {
    flex: 0 0 auto;
    width: clamp(70px, 8vw, 88px);
    height: clamp(58px, 6.8vw, 72px);
    aspect-ratio: auto;
    border-width: 0;
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    background-color: #15151a;
    background-size: auto 68%;
    background-position: center 40%;
    box-shadow: 4px 4px 0 #000, inset 0 0 0 3px currentColor, inset 0 -18px 0 rgba(0, 0, 0, 0.54);
    color: #fff;
}

.char-btn::before,
.char-btn.hoshi::before {
    content: attr(data-short);
    position: absolute;
    right: 6px;
    bottom: 5px;
    left: 6px;
    z-index: 2;
    padding: 2px 3px;
    color: #05000a;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid currentColor;
    font-family: var(--font-pixel);
    font-size: 9px;
    line-height: 1;
    text-align: center;
    opacity: 1;
    transform: none;
    transition: none;
    text-shadow: none;
}

.char-btn.akane { color: var(--akane-color); }
.char-btn.rika { color: var(--rika-color); }
.char-btn.momo { color: var(--momo-color); }
.char-btn.jun { color: var(--jun-color); }
.char-btn.reiko { color: var(--reiko-color); }
.char-btn.mitsuki { color: var(--mitsuki-color); }

.char-btn.hoshi {
    color: #ff003c;
    background-position: center 36%;
    box-shadow: 4px 4px 0 #000, 0 0 18px rgba(255, 0, 60, 0.65), inset 0 0 0 3px #ff003c, inset 0 -18px 0 rgba(0, 0, 0, 0.62);
}

.char-btn-danger-label {
    display: none;
}

.char-btn:hover,
.char-btn:focus-visible,
.char-btn.hoshi:hover,
.char-btn.hoshi:focus-visible {
    animation: none;
    transform: translate(3px, -3px);
    filter: brightness(1.22) saturate(1.18);
    box-shadow: -3px 3px 0 #000, 0 0 16px currentColor, inset 0 0 0 3px currentColor, inset 0 -18px 0 rgba(0, 0, 0, 0.5);
}

@media (max-width: 700px) {
    .character-arcade-frame {
        width: min(100%, 430px);
        padding-right: 12px;
        padding-left: 12px;
    }

    .character-arcade-frame .character-select {
        grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
        gap: 9px;
        width: min(100%, 390px);
    }

    .character-drawer {
        min-height: 76px;
        padding: 27px 9px 9px;
    }

    .character-drawer-danger,
    .character-drawer-support {
        min-height: 76px;
    }

    .character-drawer-label {
        top: 7px;
        left: 10px;
        min-width: 43px;
        margin-right: 0;
        padding: 4px 7px;
        font-size: 9px;
    }

    .character-drawer-grid {
        justify-content: center;
        gap: 6px;
    }

    .char-btn {
        width: clamp(56px, 17vw, 66px);
        height: clamp(48px, 14.4vw, 58px);
        background-size: auto 64%;
        box-shadow: 3px 3px 0 #000, inset 0 0 0 3px currentColor, inset 0 -15px 0 rgba(0, 0, 0, 0.54);
    }

    .char-btn::before,
    .char-btn.hoshi::before {
        right: 4px;
        bottom: 4px;
        left: 4px;
        font-size: 7px;
    }
}

/* Sticker Inventory */
.sticker-inventory-trigger {
    width: 100%;
    font: inherit;
    cursor: pointer;
}

.sticker-inventory-overlay {
    position: fixed;
    z-index: 16000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2.5vw, 28px);
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 211, 102, 0.16), transparent 30%),
        radial-gradient(circle at 80% 12%, rgba(88, 101, 242, 0.2), transparent 32%),
        rgba(2, 0, 8, 0.94);
    backdrop-filter: blur(8px);
}

.sticker-inventory-overlay[hidden] {
    display: none;
}

.sticker-inventory-window {
    width: min(1080px, 100%);
    max-height: min(92vh, 900px);
    overflow: hidden;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 6px;
    background:
        linear-gradient(rgba(0, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 61, 242, 0.035) 1px, transparent 1px),
        #090511;
    background-size: 24px 24px, 24px 24px, auto;
    box-shadow: 12px 12px 0 #000, 0 0 36px rgba(88, 101, 242, 0.28);
    animation: cg-panel-boot 0.24s steps(4);
}

.sticker-inventory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    padding: 14px 18px;
    border-bottom: 3px solid #fff;
    background: linear-gradient(90deg, #14683a, #202a8f 72%, #38155f);
}

.sticker-inventory-path,
.sticker-inventory-build,
.sticker-platform-status,
.sticker-preview-heading > div > span,
.sticker-preview-format {
    font-family: var(--font-pixel);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.sticker-inventory-header h2 {
    margin: 5px 0 0;
    font-family: var(--font-pixel);
    font-size: clamp(18px, 3vw, 28px);
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #000;
}

.sticker-inventory-close {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 42px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #12051d;
    font-family: var(--font-pixel);
    font-size: 16px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
}

.sticker-inventory-close:hover,
.sticker-inventory-close:focus-visible {
    color: #05000a;
    background: #fff;
    outline: 3px solid var(--neon-cyan);
    outline-offset: 2px;
}

.sticker-inventory-scroll {
    max-height: calc(min(92vh, 900px) - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(14px, 2.5vw, 26px);
}

.sticker-inventory-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    padding: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.34);
    background: rgba(0, 0, 0, 0.52);
}

.sticker-inventory-intro p {
    max-width: 720px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.sticker-inventory-build {
    color: var(--neon-cyan);
}

.sticker-inventory-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 112px;
    padding: 10px;
    color: #05000a;
    border: 2px solid #fff;
    background: var(--whatsapp-color);
    box-shadow: 5px 5px 0 #000;
}

.sticker-inventory-counter strong {
    font-family: var(--font-pixel);
    font-size: 28px;
}

.sticker-inventory-counter span {
    font-size: 10px;
    font-weight: 900;
}

.sticker-platform-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.sticker-platform-tabs button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 13px 16px;
    color: #bbb;
    border: 2px solid #555;
    background: #121018;
    text-align: left;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
}

.sticker-platform-tabs img {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sticker-platform-tabs span {
    font-family: var(--font-pixel);
    font-size: clamp(13px, 2vw, 18px);
}

.sticker-platform-tabs small {
    font-size: 11px;
    font-weight: 900;
}

.sticker-platform-tabs button[aria-selected="true"] {
    color: #fff;
    border-color: #fff;
    transform: translate(-2px, -2px);
}

.sticker-platform-tabs button[data-sticker-tab="whatsapp"][aria-selected="true"] {
    background: #113322;
    box-shadow: 5px 5px 0 var(--whatsapp-color);
}

.sticker-platform-tabs button[data-sticker-tab="discord"][aria-selected="true"] {
    background: #222244;
    box-shadow: 5px 5px 0 var(--discord-color);
}

.sticker-platform-tabs button:focus-visible,
.sticker-character-filters button:focus-visible,
.sticker-pack-download:focus-visible,
.sticker-card-download:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 3px;
}

.sticker-platform-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding: clamp(16px, 2.4vw, 24px);
    border: 2px solid #fff;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.11), rgba(0, 0, 0, 0.78));
}

.sticker-platform-panel[data-sticker-panel="discord"] {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(0, 0, 0, 0.78));
}

.sticker-platform-panel[hidden] {
    display: none;
}

.sticker-platform-copy h3 {
    margin: 7px 0 8px;
    font-family: var(--font-pixel);
    font-size: clamp(16px, 2.3vw, 22px);
    text-transform: uppercase;
}

.sticker-platform-copy p {
    margin: 8px 0;
    line-height: 1.45;
}

.sticker-platform-status {
    color: var(--whatsapp-color);
}

[data-sticker-panel="discord"] .sticker-platform-status {
    color: #98a1ff;
}

.sticker-platform-note {
    padding-left: 10px;
    color: #ccc;
    border-left: 3px solid var(--neon-magenta);
    font-size: 13px;
}

.sticker-discord-steps {
    display: grid;
    gap: 7px;
    margin: 12px 0;
    padding-left: 24px;
    line-height: 1.35;
}

.sticker-pack-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 16px;
    color: #05000a;
    border: 3px solid #fff;
    background: var(--whatsapp-color);
    text-align: center;
    text-decoration: none;
    box-shadow: 7px 7px 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sticker-pack-download-discord {
    color: #fff;
    background: var(--discord-color);
}

.sticker-pack-download:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 #000;
}

.sticker-pack-download span {
    font-family: var(--font-pixel);
    font-size: 14px;
    line-height: 1.35;
}

.sticker-pack-download small {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 900;
}

.sticker-preview-section {
    padding-top: 4px;
}

.sticker-preview-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
}

.sticker-preview-heading h3 {
    margin: 5px 0 0;
    font-family: var(--font-pixel);
    font-size: clamp(14px, 2vw, 19px);
    text-transform: uppercase;
}

.sticker-preview-format {
    color: var(--neon-cyan);
    text-align: right;
}

.sticker-character-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 3px 12px;
    scrollbar-width: thin;
}

.sticker-character-filters button {
    flex: 0 0 auto;
    padding: 8px 10px;
    color: #fff;
    border: 2px solid #666;
    background: #18131f;
    font-family: var(--font-pixel);
    font-size: 9px;
    cursor: pointer;
}

.sticker-character-filters button.is-active {
    color: #05000a;
    border-color: #fff;
    background: var(--neon-cyan);
    box-shadow: 3px 3px 0 var(--neon-magenta);
}

.sticker-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
}

.sticker-card {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.46);
    background: linear-gradient(145deg, #24212c, #100c17);
    box-shadow: 4px 4px 0 #000;
}

.sticker-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
}

.sticker-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px 4px 26px;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
        #24212c;
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
}

.sticker-card-meta {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 38px;
    padding: 5px 7px;
    border-top: 2px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(90deg, rgba(9, 5, 17, 0.98), rgba(20, 11, 30, 0.92));
    backdrop-filter: blur(4px);
}

.sticker-card-name {
    min-width: 0;
    overflow: hidden;
    font-family: var(--font-pixel);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sticker-card-download {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 28px;
    color: #05000a;
    border: 2px solid #fff;
    background: var(--neon-cyan);
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 700px) {
    .sticker-inventory-overlay {
        align-items: stretch;
        padding: 0;
    }

    .sticker-inventory-window {
        width: 100%;
        max-height: 100dvh;
        border-width: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .sticker-inventory-header {
        min-height: 68px;
        padding: 11px 12px;
        border-bottom-width: 3px;
    }

    .sticker-inventory-path {
        font-size: 8px;
    }

    .sticker-inventory-scroll {
        max-height: calc(100dvh - 68px);
        padding: 12px;
    }

    .sticker-inventory-intro {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sticker-inventory-counter {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    .sticker-platform-tabs {
        gap: 7px;
    }

    .sticker-platform-tabs button {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 8px;
        padding: 10px;
    }

    .sticker-platform-tabs img {
        width: 32px;
        height: 32px;
    }

    .sticker-platform-tabs small {
        font-size: 8px;
    }

    .sticker-platform-panel {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sticker-pack-download {
        min-height: 88px;
    }

    .sticker-preview-heading {
        align-items: start;
        flex-direction: column;
    }

    .sticker-preview-format {
        text-align: left;
    }

    .sticker-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .sticker-card img {
        padding: 2px 2px 24px;
    }
}

@media (max-width: 370px) {
    .sticker-platform-tabs small {
        display: none;
    }

    .sticker-platform-tabs button {
        grid-template-rows: auto;
    }

    .sticker-platform-tabs img {
        grid-row: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sticker-inventory-window,
    .sticker-card,
    .sticker-pack-download {
        animation: none;
        transition: none;
    }
}

@media (max-width: 370px) {
    .character-arcade-frame .character-select {
        width: min(100%, 340px);
        gap: 7px;
    }

    .character-drawer {
        padding-right: 7px;
        padding-left: 7px;
    }

    .character-drawer-label {
        left: 8px;
        min-width: 39px;
        margin-right: 0;
        font-size: 8px;
    }

    .char-btn {
        width: 50px;
        height: 46px;
    }

    .char-btn::before,
    .char-btn.hoshi::before {
        font-size: 6px;
        padding: 1px 2px;
    }
}

/* Character selector carousel: one infinite side-scrolling roster. */
.character-arcade-frame {
    width: min(100%, 790px);
}

.character-arcade-frame .character-select.character-carousel {
    display: block;
    width: min(100%, 720px);
    margin: 18px auto 0;
}

.character-carousel-viewport {
    position: relative;
    overflow: hidden;
    overflow-y: hidden;
    padding: 16px 18px 18px;
    border: 3px solid var(--neon-cyan);
    border-radius: 7px;
    background:
        linear-gradient(90deg, rgba(0, 255, 255, 0.12), transparent 18%, transparent 82%, rgba(255, 61, 242, 0.14)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 7px),
        rgba(0, 0, 0, 0.62);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.88), inset 0 0 22px rgba(0, 255, 255, 0.12);
    cursor: grab;
    scrollbar-width: none;
    touch-action: pan-y;
    user-select: none;
}

.character-carousel-viewport.is-dragging {
    cursor: grabbing;
}

.character-carousel-viewport::before,
.character-carousel-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 4;
    display: block;
    width: 28px;
    height: auto;
    min-height: 0;
    pointer-events: none;
}

.character-carousel-viewport::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95), transparent);
}

.character-carousel-viewport::after {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.95), transparent);
}

.character-carousel-viewport:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.character-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.character-carousel-track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.8vw, 16px);
    width: max-content;
    min-width: 100%;
    padding: 4px 6px 7px;
    will-change: transform;
}

.character-section-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 34px;
    padding: 0 12px;
    color: #05000a;
    border: 2px solid #05000a;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow: 4px 4px 0 #000;
    font-family: var(--font-pixel);
    font-size: 10px;
    line-height: 1;
    text-align: center;
}

.chip-main { background: var(--neon-cyan); }
.chip-danger { color: #fff; background: #8b001f; border-color: #fff; }
.chip-support { background: var(--neon-lime); }

.character-carousel .char-btn,
.character-carousel .char-btn-clone {
    flex: 0 0 auto;
    width: clamp(84px, 9.4vw, 104px);
    height: clamp(76px, 8.5vw, 92px);
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    background-color: #15151a;
    background-size: auto 68%;
    background-position: center 38%;
    color: #fff;
    box-shadow: 5px 5px 0 #000, inset 0 0 0 4px currentColor, inset 0 -22px 0 rgba(0, 0, 0, 0.58), inset 0 0 22px rgba(255, 255, 255, 0.04);
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-repeat: no-repeat;
}

.character-carousel .char-btn::before,
.character-carousel .char-btn.hoshi::before,
.character-carousel .char-btn-clone::before,
.character-carousel .char-btn-clone.hoshi::before {
    content: attr(data-short);
    position: absolute;
    right: 7px;
    bottom: 6px;
    left: 7px;
    z-index: 2;
    padding: 3px 3px;
    color: #05000a;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid currentColor;
    font-family: var(--font-pixel);
    font-size: 9px;
    line-height: 1;
    text-align: center;
    opacity: 1;
    transform: none;
    transition: none;
    text-shadow: none;
}

.character-carousel .char-btn.akane,
.character-carousel .char-btn-clone.akane {
    color: var(--akane-color);
    background-image: url('../assets/icons/icon-akane.webp');
}

.character-carousel .char-btn.rika,
.character-carousel .char-btn-clone.rika {
    color: var(--rika-color);
    background-image: url('../assets/icons/icon-rika.webp');
}

.character-carousel .char-btn.momo,
.character-carousel .char-btn-clone.momo {
    color: var(--momo-color);
    background-image: url('../assets/icons/icon-momo.webp');
}

.character-carousel .char-btn.jun,
.character-carousel .char-btn-clone.jun {
    color: var(--jun-color);
    background-image: url('../assets/icons/icon-jun.webp');
}

.character-carousel .char-btn.reiko,
.character-carousel .char-btn-clone.reiko {
    color: var(--reiko-color);
    background-image: url('../assets/icons/icon-reiko.webp');
}

.character-carousel .char-btn.mitsuki,
.character-carousel .char-btn-clone.mitsuki {
    color: var(--mitsuki-color);
    background-image: url('../assets/icons/icon-mitsuk-cardi.webp');
}

.character-carousel .char-btn.hoshi,
.character-carousel .char-btn-clone.hoshi {
    color: #ff003c;
    background-image:
        linear-gradient(rgba(255, 0, 60, 0.18), rgba(0, 0, 0, 0.16)),
        url('../assets/icons/icon-hoshi.webp');
    background-position: center 34%;
    box-shadow: 5px 5px 0 #000, 0 0 18px rgba(255, 0, 60, 0.65), inset 0 0 0 4px #ff003c, inset 0 -22px 0 rgba(0, 0, 0, 0.62);
}

.character-carousel .char-btn-danger-label {
    display: none;
}

.character-carousel .char-btn:hover,
.character-carousel .char-btn:focus-visible,
.character-carousel .char-btn.hoshi:hover,
.character-carousel .char-btn.hoshi:focus-visible,
.character-carousel .char-btn-clone:hover,
.character-carousel .char-btn-clone:focus-visible,
.character-carousel .char-btn-clone.hoshi:hover,
.character-carousel .char-btn-clone.hoshi:focus-visible {
    animation: none;
    transform: translate(4px, -5px) scale(1.04);
    filter: brightness(1.25) saturate(1.2);
    box-shadow: -4px 5px 0 #000, 0 0 18px currentColor, inset 0 0 0 4px currentColor, inset 0 -22px 0 rgba(0, 0, 0, 0.5);
}

@media (max-width: 700px) {
    .character-arcade-frame {
        width: min(100%, 430px);
    }

    .character-arcade-frame .character-select.character-carousel {
        width: min(100%, 390px);
    }

    .character-carousel-viewport {
        padding: 13px 14px 15px;
    }

    .character-carousel-track {
        gap: 9px;
        padding-inline: 4px;
    }

    .character-section-chip {
        min-width: 68px;
        height: 30px;
        padding-inline: 9px;
        font-size: 9px;
    }

    .character-carousel .char-btn,
    .character-carousel .char-btn-clone {
        width: 72px;
        height: 66px;
        background-size: auto 64%;
        box-shadow: 4px 4px 0 #000, inset 0 0 0 3px currentColor, inset 0 -18px 0 rgba(0, 0, 0, 0.58);
    }

    .character-carousel .char-btn::before,
    .character-carousel .char-btn.hoshi::before,
    .character-carousel .char-btn-clone::before,
    .character-carousel .char-btn-clone.hoshi::before {
        right: 5px;
        bottom: 5px;
        left: 5px;
        font-size: 7px;
    }
}

@media (max-width: 370px) {
    .character-arcade-frame .character-select.character-carousel {
        width: min(100%, 330px);
    }

    .character-carousel-viewport {
        padding-inline: 11px;
    }

    .character-carousel-track {
        gap: 7px;
    }

    .character-section-chip {
        min-width: 58px;
        height: 28px;
        padding-inline: 7px;
        font-size: 8px;
    }

    .character-carousel .char-btn,
    .character-carousel .char-btn-clone {
        width: 62px;
        height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .character-carousel-viewport {
        scroll-behavior: auto;
    }
}

/* Mobile lobby repair: keep the low-cost runner and essential labels visible. */
@media (max-width: 700px) {
    .start-akane-runner {
        animation: start-akane-run 0.64s steps(1, end) infinite;
    }

    .intro-hook h1 {
        font-size: clamp(16px, 5vw, 20px);
        overflow-wrap: normal;
        word-break: normal;
    }

    .character-carousel .char-btn::before,
    .character-carousel .char-btn.hoshi::before,
    .character-carousel .char-btn-clone::before,
    .character-carousel .char-btn-clone.hoshi::before {
        display: block;
        font-size: clamp(7px, 2.1vw, 9px);
    }
}

@media (max-width: 768px) {
    @supports (content-visibility: auto) {
        .links-grid,
        .x-feed-hub,
        .gallery-main .carousel-section,
        .info-main .info-section,
        .info-main .laptop-garage,
        .gallery-footer,
        .footer {
            content-visibility: auto;
            contain-intrinsic-size: 1px 520px;
        }

        .info-main .laptop-garage,
        .gallery-main .carousel-section {
            contain-intrinsic-size: 1px 700px;
        }
    }
}
