/* Ship-console skin: loaded last. Turns every remaining card, button and notation screen into
   dark glass displays with glowing accents, so the whole game looks like the inside of the rocket. */

:root {
  --ink: #eaf2ff;                 /* text and notes are now light… */
  --paper: #121b40;               /* …on dark display panels */
  --dark: #1c2140;                /* dark text for the few bright (yellow / white) surfaces */
  --cyan: #7fe7ff;
  --sea: #7fe7ff;
  --line: rgba(160, 205, 255, .26);
  --shadow: 0 5px 0 rgba(0, 0, 0, .45);
  --soft: 0 14px 44px rgba(0, 0, 0, .5);
  --panel: linear-gradient(180deg, #1a2550, #0c1330);
}
body { color: var(--ink); }

/* ---------- display panels ---------- */
.intro-card, .result-card, .panel, .card, .bgrid, .key-card, .measure, .lane, .sheet, .song, .chip, .bubble, .cs-bubble {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--soft), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.intro-card, .result-card, .lane, .cs-panel, .bgrid, .notation-card { position: relative; }
/* corner brackets, like a targeting display */
.intro-card::before, .result-card::before, .lane::before, .notation-card::before, .bgrid::before,
.intro-card::after, .result-card::after, .lane::after, .notation-card::after, .bgrid::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; z-index: 4;
  border: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); opacity: .9;
}
.intro-card::before, .result-card::before, .lane::before, .notation-card::before, .bgrid::before { left: 8px; top: 8px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.intro-card::after, .result-card::after, .lane::after, .notation-card::after, .bgrid::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.lane { box-shadow: var(--soft), 0 0 30px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 0 40px rgba(0, 0, 0, .35); }

/* ---------- titles ---------- */
.topbar h2 { text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 0 20px rgba(125, 249, 255, .65); }
.result-card h2, .intro-card h3, .sheet h3 { letter-spacing: 1px; text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); }
.hud-title { text-transform: uppercase; letter-spacing: 2px; font-size: 15px; opacity: .9; }
.tag { letter-spacing: .5px; }

/* ---------- buttons ---------- */
.btn {
  background: linear-gradient(180deg, #37e6a8, #06a77d); color: #04231a; border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 5px 0 #04654b, 0 0 20px rgba(55, 230, 168, .45); text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.alt { background: linear-gradient(180deg, #b79cff, #7b5cd6); color: #fff; box-shadow: 0 5px 0 #4a33a0, 0 0 20px rgba(160, 130, 255, .5); text-shadow: none; }
.btn.alt2 { background: linear-gradient(180deg, #ffc15a, #ff8a1c); color: #3a1a00; box-shadow: 0 5px 0 #a8520a, 0 0 20px rgba(255, 160, 60, .5); }
.btn.stop, .btn.danger { background: linear-gradient(180deg, #ff7d98, #e03560); color: #fff; box-shadow: 0 5px 0 #8f1c3a, 0 0 20px rgba(255, 90, 130, .5); text-shadow: none; }
.btn.ghost, .btn.toggle { background: rgba(18, 27, 64, .86); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 5px 0 rgba(0, 0, 0, .4); text-shadow: none; backdrop-filter: blur(8px); }
.btn.toggle { opacity: .65; }
.btn.toggle.on { background: linear-gradient(180deg, #7fe7ff, #1f9fd0); color: #04202c; opacity: 1; box-shadow: 0 5px 0 #0c5f80, 0 0 20px rgba(125, 231, 255, .5); }
.btn.giant {
  background: linear-gradient(180deg, #ff9a5a, #ef476f 70%); color: #fff; border: 2px solid rgba(255, 255, 255, .6);
  box-shadow: 0 7px 0 #8f1c3a, 0 0 34px rgba(255, 110, 110, .65); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); letter-spacing: 2px; text-transform: uppercase;
}
.btn:active, .ibtn:active { box-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.btn:disabled { filter: grayscale(.6); }
.ibtn { background: rgba(18, 27, 64, .86); color: var(--ink); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.pill { background: rgba(18, 27, 64, .86); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.toast { background: #0b1230; color: #fff; border: 1px solid var(--cyan); box-shadow: 0 0 24px rgba(125, 231, 255, .4); }

/* ---------- crew messages ---------- */
.bubble { border-left: 4px solid var(--cyan); border-radius: 8px 22px 22px 8px; }
.bubble::before { border-right-color: var(--cyan); left: -14px; }
.intro-card .bubble { background: rgba(255, 255, 255, .06); box-shadow: none; }
.intro-card .bubble::before { border-right-color: var(--cyan); }
.buddy-svg { filter: drop-shadow(0 0 7px rgba(170, 210, 255, .6)); }
.cs-bubble { border-left: 4px solid var(--cyan); }
.cs-bubble b { color: var(--cyan); }
.inst.on { color: var(--dark); }
.inst.on .buddy-svg { filter: none; }

/* ---------- notation on a dark screen ---------- */
svg.notation { color: #f2f7ff; }
.notation .lab { fill: var(--cyan); }
.notation .tick { fill: rgba(255, 255, 255, .28); }
.notation .tick.down { fill: rgba(255, 255, 255, .6); }
.notation .barline { stroke: #fff; opacity: .4; }
.notation .barline.thick { opacity: .75; }
.notation .tail { fill: rgba(255, 255, 255, .16); }
.notation .tailfill { fill: #3df0b0; }
.notation .zebra { fill: rgba(255, 255, 255, .045); }
.notation .n.auto { color: #c3adff; }
.notation .n.lit { color: #ff86a6; }
.notation .n.auto.lit { color: #fff; }
.notation .n.rest.lit { color: #8f9bc0; }
.notation .n.j-perfect { color: #3df0b0; }
.notation .n.j-good { color: #ffc24d; }
.notation .n.j-miss { color: #ff6b8f; opacity: .5; }

/* ---------- optional "music paper": dark notes on a light page, like printed music ---------- */
body[data-sheet="paper"] svg.notation { color: #1d2340; --paper: #fffaf0; background: #fffaf0; border-radius: 10px; }
body[data-sheet="paper"] .lane svg.notation,
body[data-sheet="paper"] .notation-card svg.notation,
body[data-sheet="paper"] .brow.notes svg.notation { background: none; }
body[data-sheet="paper"] .lane,
body[data-sheet="paper"] .notation-card,
body[data-sheet="paper"] .brow.notes { background: #fffaf0; }
body[data-sheet="paper"] .brow.notes { border-radius: 14px; }
body[data-sheet="paper"] .lane { box-shadow: var(--soft), 0 0 30px color-mix(in srgb, var(--accent) 40%, transparent); }
body[data-sheet="paper"] .lane::before, body[data-sheet="paper"] .lane::after,
body[data-sheet="paper"] .notation-card::before, body[data-sheet="paper"] .notation-card::after { border-color: color-mix(in srgb, var(--accent) 75%, #1d2340); }
body[data-sheet="paper"] .notation .lab { fill: #1a6f96; }
body[data-sheet="paper"] .notation .tick { fill: rgba(29, 35, 64, .25); }
body[data-sheet="paper"] .notation .tick.down { fill: rgba(29, 35, 64, .55); }
body[data-sheet="paper"] .notation .barline { stroke: #1d2340; opacity: .45; }
body[data-sheet="paper"] .notation .barline.thick { opacity: .8; }
body[data-sheet="paper"] .notation .tail { fill: rgba(29, 35, 64, .13); }
body[data-sheet="paper"] .notation .tailfill { fill: #06a77d; }
body[data-sheet="paper"] .notation .zebra { fill: rgba(29, 35, 64, .05); }
body[data-sheet="paper"] .notation .n.auto { color: #7b5cd6; }
body[data-sheet="paper"] .notation .n.lit { color: #e03560; }
body[data-sheet="paper"] .notation .n.auto.lit { color: #4a33a0; }
body[data-sheet="paper"] .notation .n.rest.lit { color: #8a90a8; }
body[data-sheet="paper"] .notation .n.j-perfect { color: #06a77d; }
body[data-sheet="paper"] .notation .n.j-good { color: #d98200; }
body[data-sheet="paper"] .notation .n.j-miss { color: #e03560; opacity: .5; }
body[data-sheet="paper"] .band { border-left-color: rgba(29, 35, 64, .14); }
body[data-sheet="paper"] .band.listen { background: rgba(123, 92, 214, .13); }
body[data-sheet="paper"] .band.play { background: none; }
body[data-sheet="paper"] .band.memory { background: repeating-linear-gradient(135deg, rgba(255, 190, 60, .28) 0 14px, rgba(255, 190, 60, .1) 14px 28px); }
body[data-sheet="paper"] .band span { color: #1d2340; }
body[data-sheet="paper"] .lane .p-perfect { color: #06a77d; }
body[data-sheet="paper"] .lane .p-good { color: #d98200; }
body[data-sheet="paper"] .lane .pop { text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff; }
body[data-sheet="paper"] .nowline { background: #e03560; box-shadow: none; }

.mini-cell, .fact { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.mini-cell small, .fact b, .chip b, .blk small, .key-text b { color: var(--cyan); }

/* ---------- play screen ---------- */
.meter { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px var(--line); }
.meter-fill { background: linear-gradient(90deg, #7fe7ff, #37e6a8 60%, #ffd166); box-shadow: 0 0 14px rgba(125, 231, 255, .7); }
.meter i { color: rgba(255, 255, 255, .32); filter: none; }
.meter i.on { color: #ffd166; filter: drop-shadow(0 0 6px #ffd166); }
.combo { background: rgba(255, 255, 255, .1); border: 1px solid var(--line); color: var(--ink); }
.combo.hot { background: linear-gradient(180deg, #ffe08a, #ffb72e); color: var(--dark); box-shadow: 0 0 20px rgba(255, 200, 80, .7); }
.banner span { background: rgba(10, 16, 40, .8); color: var(--ink); border: 1px solid var(--cyan); box-shadow: 0 0 20px rgba(125, 231, 255, .35); letter-spacing: 1px; }
.banner.big span { background: linear-gradient(180deg, #ffe08a, #ffb72e); color: var(--dark); border-color: #fff; }
.band { border-left-color: rgba(255, 255, 255, .22); }
.band.listen { background: rgba(160, 120, 255, .2); }
.band.play { background: rgba(125, 231, 255, .07); }
.band.memory { background: repeating-linear-gradient(135deg, rgba(255, 209, 102, .16) 0 14px, rgba(255, 209, 102, .05) 14px 28px); }
.band span { color: var(--ink); opacity: .75; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.nowline { background: #ff86a6; opacity: .85; box-shadow: 0 0 14px #ff86a6; }
.pop { text-shadow: 0 2px 0 #060b20, 0 -2px 0 #060b20, 2px 0 0 #060b20, -2px 0 0 #060b20, 0 0 14px currentColor; }
.p-perfect { color: #3df0b0; }
.p-good { color: #ffc24d; }
.pad { border: 2px solid var(--line); box-shadow: 0 10px 0 rgba(0, 0, 0, .5), 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.pad.down { box-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 0 40px color-mix(in srgb, var(--accent) 70%, transparent); }
.pad-piano { background: linear-gradient(180deg, #2a3260, #141a3c); }
.play[data-phase="listen"] .pad, .play[data-phase="wait"] .pad { filter: saturate(.3) brightness(.7); opacity: 1; }
.sheet-overlay { background: rgba(3, 6, 20, .7); }

/* ---------- results ---------- */
.star { color: rgba(255, 255, 255, .18); }
.star.on { color: #ffd166; filter: drop-shadow(0 0 8px rgba(255, 209, 102, .8)); }
.stat { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.s-perfect b { color: #3df0b0; } .s-good b { color: #ffc24d; } .s-miss b { color: #ff86a6; } .s-combo b { color: #c3adff; }
.unlock { background: linear-gradient(180deg, #ffe08a, #ffb72e); color: var(--dark); box-shadow: 0 0 24px rgba(255, 200, 80, .6); }

/* ---------- blocks, bars and grids ---------- */
.blk { background: rgba(61, 240, 176, .13); border: 1px solid rgba(61, 240, 176, .4); }
.blk.ok { background: rgba(61, 240, 176, .26); box-shadow: inset 0 0 0 3px #3df0b0, 0 0 14px rgba(61, 240, 176, .5); }
.blk.bad { background: rgba(255, 107, 143, .22); box-shadow: inset 0 0 0 3px #ff6b8f; }
.blk.now { background: rgba(255, 209, 102, .4); box-shadow: 0 0 16px rgba(255, 209, 102, .6); }
.slot { border-color: rgba(255, 255, 255, .26); }
.measure { border-right: 9px double var(--cyan); }
.tempo { background: rgba(18, 27, 64, .86); border: 1px solid var(--line); color: var(--ink); }
.tempo .ibtn { background: rgba(255, 255, 255, .12); }
.beat-dots i, .streak-dots i { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2px var(--line); }
.beat-dots i.on { background: #ff86a6; box-shadow: 0 0 14px #ff86a6; }
.beat-dots i.count { background: #c3adff; box-shadow: 0 0 14px #c3adff; }
.streak-dots i.on { background: #3df0b0; box-shadow: 0 0 12px #3df0b0; }
.beatbox { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.beatbox.on { background: linear-gradient(180deg, #ffe08a, #ffb72e); color: var(--dark); box-shadow: 0 0 20px rgba(255, 200, 80, .7); }
.beatbox:first-child.on { background: linear-gradient(180deg, #ffc15a, #ff8a1c); }
.rcell { background: rgba(125, 231, 255, .08); border: 1px solid rgba(125, 231, 255, .3); color: var(--ink); }
.rbar { background: linear-gradient(180deg, #7fe7ff, #1f9fd0); box-shadow: 0 0 10px rgba(125, 231, 255, .45); }
.rbar.quiet { background: none; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.rbar.on { background: linear-gradient(180deg, #ffa9be, #ff5f86); box-shadow: 0 0 16px #ff86a6; }
.cap { opacity: .8; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; color: var(--cyan); }
.link { background: #1a2550; color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .4), 0 0 0 2px var(--line); }
.link.on { background: linear-gradient(180deg, #ffe08a, #ffb72e); box-shadow: 0 3px 0 rgba(0, 0, 0, .4), 0 0 16px rgba(255, 200, 80, .8); }
.shh { background: rgba(255, 255, 255, .1); border: 1px solid var(--line); }
.shh.on { background: linear-gradient(180deg, #ffe08a, #ffb72e); }
.playhead, .sweep { background: #ff86a6; box-shadow: 0 0 14px #ff86a6; }
.key-row { border-bottom-color: rgba(255, 255, 255, .1); color: var(--ink); }
.key-row.on { background: rgba(255, 209, 102, .14); }

/* ---------- songbook and settings ---------- */
.song-ico { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .5); }
.song:not(.locked):active { transform: translateY(4px); }
.set { border-bottom-color: rgba(255, 255, 255, .1); }
.seg { background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.seg button { color: var(--ink); }
.seg button.on { background: linear-gradient(180deg, #7fe7ff, #1f9fd0); color: #04202c; box-shadow: 0 0 14px rgba(125, 231, 255, .5); }
.slider input::-webkit-slider-runnable-track { background: rgba(255, 255, 255, .18); }
.slider input::-moz-range-track { background: rgba(255, 255, 255, .18); }
.slider input::-webkit-slider-thumb { background: var(--cyan); border-color: #0c1330; box-shadow: 0 0 12px rgba(125, 231, 255, .8); }
.mic-bar { background: rgba(255, 255, 255, .12); }
.settings .pill { background: rgba(255, 255, 255, .1); }
.total-stars { color: var(--ink); }
.s-hold b { color: #3df0b0; }
.s-hold.short b { color: #ffc24d; }
