/* Tutorial overlay (js/tutorial.js). Gold/cyan on deep violet, same night palette as the practice range. */
.tut { position: fixed; inset: 0; z-index: 60; pointer-events: none; font-family: 'Geist', 'Manrope', system-ui, sans-serif; color: #f4efff; --g: #ffd58a; --c: #5de8ff; }
.tut button, .tut .tut-card.on { pointer-events: auto; }
body.tutorial .h-score, body.tutorial .h-mode, body.tutorial .h-tut { display: none !important; }
.tkey { display: inline-block; min-width: 1.7em; padding: 1px 8px; margin: 0 2px; border-radius: 6px; border: 1.5px solid var(--g, #ffd58a); background: rgba(20, 10, 50, .85); color: var(--g, #ffd58a); font: 700 .86em 'Geist Mono', 'JetBrains Mono', monospace; text-align: center; letter-spacing: .04em; box-shadow: 0 2px 0 rgba(0, 0, 0, .5); white-space: nowrap; }
.tkey.pad { border-radius: 50%; min-width: 2em; padding: 1px 6px; border-color: var(--c, #5de8ff); color: var(--c, #5de8ff); }
.tut-top { position: absolute; top: 50px; left: 0; right: 0; display: flex; justify-content: center; }
.tut-dots { display: flex; gap: 7px; padding: 7px 14px; border-radius: 20px; background: rgba(14, 8, 38, .6); }
.tut-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.tut-dots i.done { background: var(--c); }
.tut-dots i.cur { background: var(--g); box-shadow: 0 0 10px var(--g); transform: scale(1.35); }
.tut-bar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(700px, calc(100vw - 32px)); display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 14, 66, .93), rgba(12, 7, 34, .95)); border: 1.5px solid rgba(255, 213, 138, .55); box-shadow: 0 10px 40px rgba(0, 0, 0, .55), inset 0 0 30px rgba(120, 90, 255, .12); }
.tut-por { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--g); background: #2a1a60; box-shadow: 0 0 18px rgba(255, 213, 138, .5); display: grid; place-items: center; }
.tut-por img { width: 100%; height: 100%; object-fit: cover; }
.tut-por i { font: 700 38px 'Syncopate', sans-serif; color: var(--g); }
.tut-main { flex: 1; min-width: 0; }
.tut-name { font: 700 12px 'Syncopate', sans-serif; letter-spacing: .18em; color: var(--g); margin-bottom: 4px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tut-name em { font-style: normal; color: #b8aaff; font-weight: 400; letter-spacing: .14em; }
.tut-name .tut-step { margin-left: auto; color: var(--c); letter-spacing: .1em; }
.tut-cap { font-size: clamp(16px, 1.55vw, 21px); line-height: 1.38; font-weight: 500; text-shadow: 0 1px 2px #000; opacity: 0; transform: translateY(5px); }
.tut-cap.in { opacity: 1; transform: none; transition: opacity .35s, transform .35s; }
.tut-keys { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 7px; }
.tut-keys .tk { font-size: 14px; }
.tut-keys em { font-style: normal; font-size: 12px; color: #b8aaff; letter-spacing: .08em; text-transform: uppercase; margin-left: 2px; }
.tut-hint { margin-top: 6px; font-size: 14px; color: var(--c); display: none; }
.tut-hint.on { display: block; }
.tut-hint::before { content: 'HINT  '; font: 700 11px 'Syncopate', sans-serif; letter-spacing: .16em; }
.tut-side { position: fixed; left: 16px; top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tut-skip { padding: 8px 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #e6dcff; font: 600 11px 'Syncopate', sans-serif; letter-spacing: .1em; cursor: pointer; white-space: nowrap; }
.tut-skip:hover { background: rgba(255, 213, 138, .18); border-color: var(--g); }
.tut-skip .tkey { font-size: 10px; padding: 0 5px; min-width: 1.3em; }
.tut-spot { position: absolute; display: none; border-radius: 12px; border: 3px solid var(--g); box-shadow: 0 0 0 4px rgba(255, 213, 138, .18), 0 0 26px 6px rgba(255, 213, 138, .55), inset 0 0 18px rgba(255, 213, 138, .35); animation: tutPulse 1.1s ease-in-out infinite; }
.tut-spot.on { display: block; }
@keyframes tutPulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(255, 213, 138, .08), 0 0 40px 12px rgba(255, 213, 138, .7), inset 0 0 22px rgba(255, 213, 138, .5); } }
.tut-wp { position: absolute; left: 0; top: 0; display: none; margin: -34px 0 0 -34px; width: 68px; text-align: center; color: var(--g); font: 700 14px 'Geist Mono', monospace; text-shadow: 0 0 8px #000, 0 0 3px #000; }
.tut-wp.on { display: block; }
.tut-wp b { display: block; font-size: 26px; line-height: 1; animation: tutBob .9s ease-in-out infinite; }
@keyframes tutBob { 50% { transform: translateY(6px); } }
.tut-flash { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255, 213, 138, .28), transparent 60%); opacity: 0; }
.tut-flash.on { animation: tutFl .6s ease-out; }
@keyframes tutFl { 0% { opacity: 1 } 100% { opacity: 0 } }
.tut-toast { position: absolute; left: 50%; top: 26%; transform: translateX(-50%); font: 700 26px 'Syncopate', sans-serif; letter-spacing: .14em; color: var(--g); text-shadow: 0 0 18px rgba(255, 213, 138, .8), 0 2px 4px #000; opacity: 0; white-space: nowrap; }
.tut-toast.on { animation: tutT 1.3s ease-out; }
@keyframes tutT { 0% { opacity: 0; transform: translate(-50%, 10px) } 15% { opacity: 1; transform: translate(-50%, 0) } 80% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, -10px) } }
.tut-card { position: absolute; inset: 0; display: none; place-items: center; background: rgba(8, 4, 26, .62); }
.tut-card.on { display: grid; }
.tc-in { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 220px); overflow: auto; padding: 24px 28px; border-radius: 18px; background: linear-gradient(180deg, #2a1a66, #140a38); border: 2px solid var(--g); box-shadow: 0 20px 60px #000; text-align: center; margin-bottom: 150px; }
.tc-k { font: 700 12px 'Syncopate', sans-serif; letter-spacing: .24em; color: var(--c); }
.tc-t { font: 700 26px 'Syncopate', sans-serif; letter-spacing: .08em; margin: 6px 0 16px; color: var(--g); }
.tc-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tc-three > div { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 12px; }
.tc-three b { display: block; margin: 8px 0 4px; font: 700 13px 'Syncopate', sans-serif; letter-spacing: .1em; color: var(--g); }
.tc-three span { font-size: 14px; color: #d8cfff; line-height: 1.4; }
.tc-three svg { width: 100%; height: auto; }
.tc-three .bg { fill: #1b1050; stroke: #5b4fb0; }
.tc-three .a { fill: var(--c); stroke: var(--c); }
.tc-three .b { fill: #ff6a8a; stroke: #ff6a8a; }
.tc-three .n { stroke: #aaa; }
.tc-three .ln { stroke: #ddd; stroke-width: 2; fill: none; }
.tc-three .ln.a { stroke: var(--c); stroke-width: 3; }
.tc-three .ln.b { stroke: #ff6a8a; stroke-width: 3; }
.tc-three .dash { stroke-dasharray: 4 4; }
.tc-three .x { stroke: #fff; stroke-width: 3; }
.tc-three .fa { fill: var(--c); }
.tc-three .fb { fill: #ff6a8a; }
.tc-three .ring { fill: none; stroke-width: 4; }
.tc-three .ring.a { stroke: var(--c); }
.tc-three .ring.b { stroke: #ff6a8a; }
.tc-three .ring.n { stroke: #888; }
.tc-three text { fill: #fff; font: 700 12px 'Geist Mono'; text-anchor: middle; }
.tc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.tc-grid div { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 10px; }
.tc-grid b { display: block; font: 700 24px 'Geist Mono', monospace; color: #fff; }
.tc-grid span { font-size: 11px; letter-spacing: .14em; color: #b8aaff; }
.tc-rw { margin: 6px 0 18px; font-size: 17px; color: #e6dcff; }
.tc-rw b { color: var(--g); font-size: 22px; margin-right: 8px; }
.tc-b { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.tc-b button { padding: 12px 20px; border-radius: 11px; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; font: 700 13px 'Syncopate', sans-serif; letter-spacing: .1em; cursor: pointer; }
.tc-b button.go { background: var(--g); color: #2a1a00; border-color: var(--g); }
.tc-b button:hover { filter: brightness(1.2); }
/* the ask dialog is a title-menu surface: celestial art-deco card (ivory hairlines on deep charcoal, serif caps) */
.tut-ask { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5, 6, 11, .55); font-family: 'Geist', system-ui, sans-serif; color: #f2ead6; }
.ta-card { position: relative; width: min(520px, calc(100vw - 32px)); padding: 30px 32px 26px; border-radius: 0; background: linear-gradient(180deg, rgba(13, 14, 24, .97), rgba(8, 9, 16, .98)); border: 1px solid rgba(236, 227, 204, .5); text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, .7); }
.ta-card::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(236, 227, 204, .18); pointer-events: none; }
.ta-k { font: 600 11px/1 var(--f-mono, monospace); letter-spacing: .34em; color: rgba(236, 227, 204, .62); }
.ta-t { font: 500 25px/1.28 'Cormorant Garamond', 'Times New Roman', Georgia, serif; letter-spacing: .05em; margin: 10px 0 12px; color: #fff8e6; }
.ta-s { font-size: 14.5px; line-height: 1.6; color: rgba(236, 227, 204, .78); margin-bottom: 20px; }
.ta-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ta-b button { padding: 11px 22px; border-radius: 0; border: 1px solid rgba(236, 227, 204, .45); background: transparent; color: #ece3cc; font: 600 11px/1 var(--f-mono, monospace); letter-spacing: .22em; cursor: pointer; transition: color .2s, background .2s, border-color .2s, box-shadow .2s; }
.ta-b button:hover { color: #fff8e6; border-color: #fff8e6; box-shadow: 0 0 22px rgba(255, 240, 210, .2); }
.ta-b .go { background: #ece3cc; color: #14121c; border-color: #ece3cc; }
.ta-b .go:hover { background: #fff8e6; box-shadow: 0 0 30px rgba(255, 240, 210, .32); }
.ta-b .quiet { opacity: .62; border-color: transparent; }
.ta-b .quiet:hover { opacity: 1; border-color: rgba(236, 227, 204, .4); box-shadow: none; }
@media (max-width: 720px) { .tut-bar { flex-wrap: wrap; bottom: 8px; } .tut-por { width: 56px; height: 56px; } .tut-side { flex-direction: row; width: 100%; } .tc-three { grid-template-columns: 1fr; } }
