* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    cursor: none !important;
}

#music-credit {
    position: fixed;
    bottom: 6px;
    right: 10px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Share Tech Mono', monospace;
    z-index: 5;
    pointer-events: auto;
}
#music-credit a {
    color: rgba(50, 200, 220, 0.3);
    text-decoration: none;
    cursor: pointer !important;
}
#music-credit a:hover {
    color: rgba(50, 200, 220, 0.7);
}

body {
    background-color: #020205;
    color: #fff;
    font-family: 'Share Tech Mono', 'Noto Sans JP', monospace;
    overflow: hidden; /* Prevent scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#gameContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#bgCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

/* gameCanvas is outside gameContainer — sits above all overlays */
#gameCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 25;
    pointer-events: none;
    background: transparent;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    padding: 20px;
    padding-top: 10vh;
    overflow-y: auto;
    gap: 0;
}

.hidden {
    display: none !important;
}

/* UI Elements */
.neon-text {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    text-shadow:
        0 0 4px currentColor,
        0 0 18px color-mix(in srgb, currentColor 25%, transparent),
        0 0 45px color-mix(in srgb, currentColor 10%, transparent);
}

.title {
    font-size: clamp(3rem, 9vw, 7rem);
    color: #32c8dc;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 4px rgba(50, 200, 220, 0.7),
        0 0 18px rgba(50, 200, 220, 0.2),
        0 0 50px rgba(50, 200, 220, 0.07);
}

.sub-title {
    font-size: clamp(0.75rem, 1.4vw, 1rem);
    color: #96c8ff;
    font-family: 'Share Tech Mono', monospace;
    text-shadow:
        0 0 4px currentColor,
        0 0 18px color-mix(in srgb, currentColor 20%, transparent);
    margin-top: 0;
    margin-bottom: 36px;
    letter-spacing: 0.14em;
}

.lore-window {
    background: rgba(3, 8, 18, 0.9);
    border: 2px solid rgba(0, 120, 180, 0.6);
    border-radius: 12px;
    padding: 40px;
    width: 820px;
    height: 490px;
    text-align: center;
    font-size: 1.1rem;
    color: #96dcff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: auto; /* Enable clicks on intro */
    cursor: pointer;
}

.lore-window p {
    margin: 5px 0;
}

.prompt {
    color: #00dcdc;
    font-size: clamp(0.8rem, 1.3vw, 1.2rem);
    margin-top: 8px;
}

.blink {
    animation: blinker 2s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

#menu {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 40px;
    width: min(920px, 92vw);
    pointer-events: auto;
    margin-top: 0;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 52vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(50, 200, 220, 0.25) transparent;
    padding-right: 6px;
}

.track-btn {
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    color: rgba(80, 160, 190, 0.9);
    text-align: left;
    font-size: 1.15rem;
    font-family: 'Share Tech Mono', 'Noto Sans JP', monospace;
    cursor: pointer;
    transition: all 0.15s;
    padding: 12px 14px;
    border-radius: 0;
}

.track-btn.selected {
    color: #32c8dc;
    border-left-color: #32c8dc;
    background: rgba(50, 200, 220, 0.07);
    text-shadow: 0 0 10px rgba(50, 200, 220, 0.4);
}

.track-btn:hover {
    color: #c832c8;
    border-left-color: rgba(200, 50, 200, 0.7);
    background: rgba(200, 50, 200, 0.04);
}

.menu-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    min-width: 260px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

/* Ranking Screen */
#rankingScreen {
    justify-content: flex-start;
    padding: 5vh 4vw 4vh;
    pointer-events: auto;
    gap: 20px;
}

.ranking-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 960px;
}

.ranking-screen-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #32c8dc;
    letter-spacing: 0.2em;
}

.btn-ranking-back {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    padding: 8px 18px;
    border: 1px solid rgba(50, 200, 220, 0.5);
    background: none;
    color: rgba(50, 200, 220, 0.7);
    border-radius: 3px;
    cursor: none !important;
    pointer-events: auto;
    transition: all 0.15s;
}
.btn-ranking-back:hover {
    color: #32c8dc;
    border-color: #32c8dc;
    box-shadow: 0 0 6px rgba(50, 200, 220, 0.3);
}

.ranking-screen-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    width: 100%;
    max-width: 960px;
    flex: 1;
    min-height: 0;
}

.ranking-track-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(50, 200, 220, 0.25) transparent;
    padding-right: 6px;
    min-width: 0;
}

.ranking-track-list .track-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.ranking-detail-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-detail-trackname {
    font-size: 0.9rem;
    color: rgba(150, 200, 255, 0.8);
    letter-spacing: 0.05em;
    font-family: 'Share Tech Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-detail-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-diff-tabs,
.ranking-mode-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ranking-tab {
    font-size: 0.65rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border: 1px solid rgba(50, 200, 220, 0.3);
    background: none;
    color: rgba(50, 200, 220, 0.5);
    border-radius: 3px;
    cursor: none !important;
    pointer-events: auto;
    transition: all 0.15s;
}
.ranking-tab.active {
    color: #32c8dc;
    border-color: #32c8dc;
    background: rgba(50, 200, 220, 0.08);
}

.ranking-detail-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    max-height: 55vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(50, 200, 220, 0.25) transparent;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ranking-detail-list .rank-entry {
    font-size: 0.8rem !important;
    padding: 5px 4px;
    border-bottom: 1px solid rgba(50, 200, 220, 0.06);
    font-family: 'Share Tech Mono', monospace !important;
    color: rgba(150, 220, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.ranking-detail-list .rank-entry.rank-first {
    color: #ffe632;
    text-shadow: 0 0 8px rgba(255, 230, 50, 0.4);
}

.ranking-detail-list .rank-loading {
    font-size: 0.75rem !important;
    font-family: 'Share Tech Mono', monospace !important;
    color: rgba(100, 180, 220, 0.4);
}

.ranking-detail-list .rank-score {
    font-size: 0.8rem;
    color: #ffe632;
}

.btn-ranking {
    color: rgba(50, 200, 220, 0.7);
}

.btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: transparent;
    cursor: pointer;
    border-radius: 2px;
    padding: 12px 20px;
    pointer-events: auto;
    transition: all 0.15s;
    text-transform: uppercase;
    white-space: nowrap;
}

.neon-btn {
    color: currentColor;
    border: 2px solid currentColor;
    box-shadow: 0 0 6px currentColor;
    background: rgba(0, 0, 0, 0.5);
}

.neon-btn:hover {
    box-shadow: 0 0 14px currentColor, inset 0 0 10px rgba(255,255,255,0.06);
    background: rgba(255, 255, 255, 0.05);
}

.neon-btn:active {
    transform: scale(0.97);
}

.btn-diff { color: #64ff64; }
.btn-auto { color: #dc4b40; }
.btn-start { color: #ff32c8; font-size: 1.6rem; padding: 20px 48px; margin-top: 16px; letter-spacing: 0.14em; }

/* --------------- Mode Select --------------- */
.mode-select-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(2, 2, 8, 0.97);
    z-index: 20;
    pointer-events: auto;
}

.mode-select-inner {
    text-align: center;
}

.mode-select-title {
    font-size: clamp(1.6rem, 4vw, 3rem);
    color: #32c8dc;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.mode-select-sub {
    color: rgba(100, 200, 255, 0.75);
    font-size: 1rem;
    font-family: 'Share Tech Mono', 'Noto Sans JP', monospace;
    margin-bottom: 2.5rem;
    letter-spacing: 0.06em;
}

.mode-cards {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.mode-card {
    width: 240px;
    padding: 32px 24px;
    border: 2px solid rgba(50, 200, 220, 0.5);
    border-radius: 2px;
    background: rgba(4, 10, 24, 0.9);
    cursor: pointer;
    pointer-events: auto;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    box-shadow: 0 0 14px rgba(50, 200, 220, 0.12), inset 0 0 0 1px rgba(50,200,220,0.06);
}

.mode-card:hover {
    border-color: rgba(50, 200, 220, 1);
    box-shadow: 0 0 30px rgba(50, 200, 220, 0.4), inset 0 0 14px rgba(50, 200, 220, 0.08);
    transform: translateY(-3px);
}

.mode-card-kb {
    border-color: rgba(100, 255, 150, 0.5);
    box-shadow: 0 0 14px rgba(100, 255, 150, 0.12);
}

.mode-card-kb:hover {
    border-color: rgba(100, 255, 150, 1);
    box-shadow: 0 0 30px rgba(100, 255, 150, 0.4), inset 0 0 14px rgba(100, 255, 150, 0.08);
}

.mode-card-icon {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
}

.mode-card-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #32c8dc;
    text-shadow: 0 0 8px currentColor;
    margin-bottom: 0.7rem;
    letter-spacing: 0.06em;
}

.mode-card-kb .mode-card-name {
    color: #64ff96;
}

.mode-card-desc {
    color: rgba(120, 215, 255, 0.92);
    font-size: 1.05rem;
    font-family: 'Share Tech Mono', 'Noto Sans JP', monospace;
    line-height: 1.75;
    text-align: center;
}

.kb-table {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.3em;
}

.kb-row {
    display: flex;
    line-height: 1.75;
}

.kb-diff {
    display: inline-block;
    width: 4.5em;
}

.mode-select-hint {
    color: rgba(100, 200, 255, 0.65);
    font-size: 0.95rem;
    font-family: 'Share Tech Mono', 'Noto Sans JP', monospace;
    letter-spacing: 0.04em;
}

/* --------------- Result Leaderboard --------------- */
.result-body {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.leaderboard {
    text-align: left;
    min-width: 220px;
    border-left: 1px solid rgba(50, 200, 220, 0.25);
    padding-left: 1.5rem;
}

.leaderboard-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: #96c8ff;
    text-shadow:
        0 0 4px currentColor,
        0 0 18px color-mix(in srgb, currentColor 20%, transparent);
    margin-bottom: 0.5rem;
}

.rank-entry {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: rgba(150, 220, 255, 0.75);
    margin: 3px 0;
}

.rank-entry.rank-first {
    color: #ffe632;
    text-shadow:
        0 0 4px currentColor,
        0 0 16px color-mix(in srgb, currentColor 25%, transparent);
}

.rank-date {
    font-size: 0.75rem;
    color: rgba(150, 200, 255, 0.4);
    font-family: 'Noto Sans JP', sans-serif;
}

#pauseOverlay {
    background: rgba(0, 0, 10, 0.7);
}

.pause-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    pointer-events: auto;
    margin-top: 24px;
}

.pause-actions .btn-start {
    font-size: 1.3rem;
    padding: 14px 0;
    margin-top: 0;
    letter-spacing: 0.08em;
    width: 260px;
}

.btn-change-track {
    background: rgba(255, 50, 80, 0.1);
    border: 2px solid rgba(255, 80, 100, 0.5);
    color: #ff6480;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    padding: 14px 0;
    width: 260px;
    cursor: pointer;
    border-radius: 2px;
    letter-spacing: 0.08em;
    transition: all 0.15s;
}
.btn-change-track:hover {
    background: rgba(255, 50, 80, 0.25);
    border-color: #ff6480;
}

.pause-hint {
    color: rgba(100, 200, 255, 0.45);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    margin-top: 14px;
    letter-spacing: 0.05em;
}

.btn-pause-game {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 30;
    background: rgba(0, 0, 20, 0.7);
    border: 2px solid rgba(50, 200, 220, 0.5);
    color: rgba(50, 200, 220, 0.85);
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    padding: 7px 16px;
    cursor: pointer;
    border-radius: 2px;
    letter-spacing: 0.1em;
    transition: all 0.15s;
    line-height: 1;
}
.btn-pause-game:hover {
    background: rgba(50, 200, 220, 0.15);
    border-color: #32c8dc;
    color: #32c8dc;
}

.btn-fullscreen {
    position: fixed;
    bottom: 52px;
    right: 20px;
    z-index: 30;
    background: rgba(0, 0, 20, 0.6);
    border: 2px solid rgba(50, 200, 220, 0.4);
    color: rgba(50, 200, 220, 0.7);
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}
.btn-fullscreen:hover {
    background: rgba(50, 200, 220, 0.15);
    border-color: #32c8dc;
    color: #32c8dc;
}

#resultOverlay {
    background: #020205;
    z-index: 15;
    pointer-events: auto;
    padding-top: 6vh;
    gap: 0;
}

.result-rank {
    font-size: clamp(2rem, 6vw, 4rem);
    color: #32c8dc;
    margin-bottom: 6px;
    line-height: 1;
    letter-spacing: 0.08em;
}
.result-rank.failed {
    color: #ff3232;
    text-shadow: 0 0 16px #ff0000, 0 0 40px rgba(255,0,0,0.4);
}
.result-clear {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin: 0 0 6px;
    color: #32ff96;
    text-shadow: 0 0 12px #32ff96, 0 0 32px rgba(50,255,150,0.4);
    text-align: center;
}
.result-clear.failed {
    color: #ff3232;
    text-shadow: 0 0 12px #ff0000, 0 0 32px rgba(255,0,0,0.4);
}
.result-badge {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 6px;
    text-align: center;
    text-shadow: 0 0 12px currentColor, 0 0 32px color-mix(in srgb, currentColor 30%, transparent);
}
.result-badge.fc { color: #32c8ff; }
.result-badge.ap { color: #ffd700; }

.score {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: #32c8dc;
    margin-top: 0;
    margin-bottom: 24px;
}

.result-body {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.judge-stats p {
    font-size: 1.6rem;
    font-family: 'Orbitron', sans-serif;
    margin: 6px 0;
    text-shadow:
        0 0 4px currentColor,
        0 0 16px color-mix(in srgb, currentColor 25%, transparent);
}

.result-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    pointer-events: auto;
}

.btn-replay {
    color: #32c8dc;
    font-size: 1.1rem;
    padding: 14px 36px;
    letter-spacing: 0.1em;
}

.btn-back {
    color: #ff32c8;
    font-size: 1.1rem;
    padding: 14px 36px;
    letter-spacing: 0.1em;
}

.perfect { color: #ffe632; }
.great { color: #32ff96; }
.ok { color: #3296ff; }
.miss { color: #ff3250; }

#loading {
    text-align: center;
}
#loadingMsg {
    margin-top: 10px;
    color: #64a0c8;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
}

/* Drag and Drop minimal styling */
body.drag-over {
    box-shadow: inset 0 0 150px rgba(0, 220, 255, 0.4);
}

#drop-hint {
    position: absolute;
    bottom: 24px;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    color: rgba(100, 220, 255, 0.9);
    pointer-events: none;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(50, 200, 220, 0.5);
    border: 1px solid rgba(50, 200, 220, 0.2);
    background: rgba(2, 10, 20, 0.6);
    padding: 8px 20px;
    border-radius: 2px;
    animation: blinker 3s ease-in-out infinite;
}

/* --------------- Newton Ring Cursor --------------- */
.n-ring-wrapper {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0; left: 0;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
}

.n-ring {
    position: absolute;
    top: 50%; left: 50%;
    border: 2px solid rgba(100, 220, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                width 0.15s, height 0.15s, border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.n-ring-0 { 
    width: 14px; 
    height: 14px; 
    background-color: #32c8dc; 
    border: 3px solid #000; 
    box-shadow: none; 
    opacity: 1;
}
.n-ring-1 { width: 40px; height: 40px; }
.n-ring-2 { width: 60px; height: 60px; border-width: 1px; opacity: 0.5; }

.nr-click {
    animation: ring-bounce 0.4s ease-out;
}

.n-ring-0.nr-click {
    animation: core-bounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ring-bounce {
    0% { transform: translate(-50%, -50%) scale(1); }
    40% { transform: translate(-50%, -50%) scale(1.6); border-width: 4px; border-color: #fff; box-shadow: 0 0 20px #fff; opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes core-bounce {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.8); background-color: #ff32c8; border-color: #000; box-shadow: none; }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.nr-press {
    transform: translate(-50%, -50%) scale(0.5) !important;
    border-color: rgba(255, 100, 200, 0.9) !important;
    box-shadow: 0 0 15px rgba(255, 100, 200, 0.8) !important;
}

.n-ring-0.nr-press {
    transform: translate(-50%, -50%) scale(0.6) !important;
    background-color: #ff3250 !important;
    border-color: #000 !important;
    box-shadow: none !important;
}

/* --------------- Toast Notification --------------- */
#toast-container {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    color: #96dcff;
    background: rgba(3, 10, 25, 0.92);
    border: 1px solid rgba(50, 200, 220, 0.5);
    border-radius: 8px;
    padding: 10px 22px;
    box-shadow: 0 0 18px rgba(50, 200, 220, 0.2);
    opacity: 0;
    animation: toast-in-out 3s ease forwards;
    white-space: nowrap;
}

@keyframes toast-in-out {
    0%   { opacity: 0; transform: translateY(12px); }
    15%  { opacity: 1; transform: translateY(0); }
    75%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-8px); }
}

/* --------------- Tutorial --------------- */
.tutorial-window {
    text-align: center;
    max-width: 860px;
    width: 92vw;
    padding: 0;
}

.tutorial-title {
    font-size: 2rem;
    color: #32c8dc;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
}

.tutorial-notes {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tutorial-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    background: rgba(4, 12, 30, 0.85);
    border: 1px solid rgba(50, 200, 220, 0.3);
    border-radius: 2px;
    padding: 24px 20px;
    flex: 1;
}

.tut-tap  { border-color: rgba(255, 230, 50, 0.35); }
.tut-slide{ border-color: rgba(50, 150, 255, 0.35); }
.tut-hold { border-color: rgba(50, 255, 150, 0.35); }

.tutorial-icon {
    font-size: 2.2rem;
    line-height: 1;
    text-shadow: 0 0 10px currentColor;
}

.tut-tap  .tutorial-icon { color: #ffe632; }
.tut-slide .tutorial-icon { color: #3296ff; }
.tut-hold .tutorial-icon { color: #32ff96; }

.tutorial-note-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.tut-tap  .tutorial-note-name { color: #ffe632; }
.tut-slide .tutorial-note-name { color: #3296ff; }
.tut-hold .tutorial-note-name { color: #32ff96; }

.tutorial-note-desc {
    color: rgba(140, 210, 255, 0.9);
    font-size: 0.92rem;
    font-family: 'Share Tech Mono', 'Noto Sans JP', monospace;
    line-height: 1.65;
}

.tutorial-judge-line {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: rgba(160, 220, 255, 0.85);
    letter-spacing: 0.05em;
}

.tut-arrow {
    color: rgba(100, 180, 255, 0.4);
    margin: 0 0.4em;
}

.tut-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85em;
    color: rgba(100, 180, 255, 0.55);
    letter-spacing: 0.1em;
    margin-right: 0.1em;
}

.tutorial-hint {
    font-size: 1rem;
    font-family: 'Share Tech Mono', 'Noto Sans JP', monospace;
    color: rgba(100, 200, 255, 0.55);
    animation: blinker 4s linear infinite;
    letter-spacing: 0.06em;
}

/* --------------- SAVE CHART Float Button --------------- */
.btn-save-chart-float {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9000;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #32ffa0;
    background: rgba(2, 15, 10, 0.88);
    border: 2px solid #32ffa0;
    border-radius: 10px;
    padding: 16px 40px;
    cursor: pointer;
    box-shadow: inset 0 0 18px rgba(50, 255, 160, 0.15), 0 0 28px rgba(50, 255, 160, 0.4);
    pointer-events: auto;
    animation: save-chart-pulse 0.6s ease-out;
}
.btn-save-chart-float:hover {
    box-shadow: inset 0 0 30px rgba(50, 255, 160, 0.3), 0 0 50px rgba(50, 255, 160, 0.7);
}
@keyframes save-chart-pulse {
    0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

/* --------------- Submit Score Row --------------- */
.submit-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0 12px;
}

.player-name-input {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.4rem;
    background: rgba(5, 15, 35, 0.9);
    border: 1px solid rgba(50, 200, 220, 0.5);
    border-radius: 6px;
    color: #96dcff;
    padding: 6px 12px;
    width: 130px;
    outline: none;
    cursor: text;
    pointer-events: auto;
}
.player-name-input:focus {
    border-color: rgba(50, 200, 220, 0.9);
    box-shadow: 0 0 10px rgba(50, 200, 220, 0.3);
}
.player-name-input::placeholder { color: rgba(100, 180, 220, 0.35); }

.btn-submit { color: #32c8dc; font-size: 1.2rem; padding: 7px 16px; }
.btn-submit:disabled { opacity: 0.5; cursor: default; }

/* --------------- Global Ranking --------------- */
.rank-score {
    color: #ffe632;
    font-size: 1.1rem;
}
.rank-loading {
    color: rgba(100, 180, 220, 0.4);
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
}
