:root {
  --bg: #0a0a09; --panel: rgba(15, 15, 15, .84); --panel2: rgba(25, 25, 25, .82); --solid: #121211;
  --line: rgba(205, 203, 196, .11); --line2: rgba(205, 203, 196, .24);
  --text: #e8ecfa; --mute: #8792b3; --dim: #55607f;
  --up: #3ddc97; --down: #ef4f6b; --gold: #f3f2ee; --warn: #ff9d3d; --cy: #f3f2ee; --vi: #8f8d87;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --glow-cy: 0 0 18px rgba(236, 233, 225, .35); --glow-up: 0 0 18px rgba(61, 220, 151, .4); --glow-down: 0 0 18px rgba(239, 79, 107, .4);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 13px/1.45 'Zen Kaku Gothic New', system-ui, sans-serif; display: flex; flex-direction: column; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
b, .num { font-family: var(--mono); font-weight: 500; }
.up { color: var(--up); } .down { color: var(--down); } .mute { color: var(--mute); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
::selection { background: rgba(236, 233, 225, .3); }

/* ambient background */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #161615 0%, var(--bg) 60%); }
.bgfx i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.bgfx .a1 { width: 46vw; height: 46vw; left: -10vw; top: -18vw; background: #3a3a37; animation: drift1 26s ease-in-out infinite alternate; }
.bgfx .a2 { width: 40vw; height: 40vw; right: -8vw; bottom: -16vw; background: #5a5853; animation: drift2 32s ease-in-out infinite alternate; }
.bgfx .a3 { width: 26vw; height: 26vw; left: 42vw; top: 30vh; background: #777570; opacity: .16; animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, -8vh) scale(1.2); } }
.gridfx { position: absolute; inset: 0; background-image: linear-gradient(rgba(205, 203, 196, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(205, 203, 196, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%); }
.floor { position: absolute; left: -50%; right: -50%; bottom: -8%; height: 46%; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%; overflow: hidden; mask-image: linear-gradient(transparent, #000 70%); opacity: .5; }
.floor i { position: absolute; inset: -80px 0 0 0; border-radius: 0; filter: none; opacity: 1; background-image: linear-gradient(rgba(236, 233, 225, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 148, 142, .35) 1px, transparent 1px); background-size: 80px 80px; animation: floor 5s linear infinite; }
@keyframes floor { to { transform: translateY(80px); } }
#fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* top bar */
.top { height: 56px; flex: none; display: flex; align-items: center; gap: 22px; padding: 0 14px; background: linear-gradient(180deg, rgba(24, 24, 24, .92), rgba(14, 14, 14, .9)); border-bottom: 1px solid var(--line2); position: relative; z-index: 3; }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cy), var(--vi), transparent); opacity: .7; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.brand #brandName { background: linear-gradient(90deg, #fff, var(--cy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark { width: 30px; height: 30px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cy), var(--vi)); color: #0a0a09; font-size: 16px; font-weight: 700; clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%); filter: drop-shadow(0 0 8px rgba(236, 233, 225, .6)); }
.beta { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--up); border: 1px solid rgba(61, 220, 151, .4); padding: 2px 6px; border-radius: 3px; box-shadow: inset 0 0 8px rgba(61, 220, 151, .15); }
.beta:empty { display: none; }
.acct { display: flex; gap: 24px; }
.stat label { display: block; font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }
.stat b { font-size: 14px; text-shadow: 0 0 12px rgba(236, 233, 225, .35); }
.stat b.up { text-shadow: var(--glow-up); } .stat b.down { text-shadow: var(--glow-down); }
.chip { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid rgba(150, 148, 142, .5); border-radius: 999px; font-size: 12px; background: rgba(150, 148, 142, .12); white-space: nowrap; box-shadow: 0 0 16px rgba(150, 148, 142, .25); }
.chip[hidden] { display: none; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--down); box-shadow: 0 0 8px var(--down); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.rank { display: grid; grid-template-columns: auto 64px auto; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.xpbar { height: 5px; background: rgba(205, 203, 196, .15); border-radius: 3px; overflow: hidden; } .xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--vi), var(--cy)); box-shadow: 0 0 8px var(--cy); width: 0; transition: width .6s; }
.rank small { color: var(--mute); font-family: var(--mono); font-size: 11px; text-transform: none; }
.pill { border: 1px solid rgba(236, 233, 225, .35); border-radius: 999px; padding: 6px 12px; font-family: var(--mono); font-size: 12px; color: var(--gold); background: rgba(236, 233, 225, .06); white-space: nowrap; }
.pill:hover { box-shadow: 0 0 14px rgba(236, 233, 225, .3); }
.btn { position: relative; border-radius: 8px; padding: 8px 14px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line2); background: var(--panel2); transition: box-shadow .2s, transform .1s, filter .2s; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); } .btn:active { transform: translateY(1px); }
.btn.gold { background: linear-gradient(135deg, #ffffff, #cfccc4); border-color: transparent; color: #0b0b0a; box-shadow: 0 0 18px rgba(255, 255, 255, .35); }
.btn.hud { border-color: rgba(236, 233, 225, .4); color: var(--cy); background: rgba(236, 233, 225, .06); text-transform: uppercase; font-size: 12px; }
.btn.hud:hover { box-shadow: var(--glow-cy); }
.btn.ping::after { content: ''; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 1.2s infinite; }
.btn.ghost { background: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; box-shadow: none; }
.mute-btn { font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; padding: 4px; } .mute-btn.off { color: var(--dim); text-decoration: line-through; } .mute-btn:hover { color: var(--text); }

/* ticker tape */
.tape { flex: none; height: 26px; overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(10, 10, 10, .85); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape-run { display: inline-flex; white-space: nowrap; animation: tape 110s linear infinite; }
.tape:hover .tape-run { animation-play-state: paused; }
.tape-run button { padding: 4px 14px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); display: inline-flex; gap: 7px; }
.tape-run button strong { color: var(--text); font-weight: 600; font-family: 'Zen Kaku Gothic New'; letter-spacing: .04em; }
.tape-run button:hover strong { color: var(--cy); }
@keyframes tape { to { transform: translateX(-50%); } }

/* layout */
.grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr) 344px; }
.markets, .side { background: var(--panel); min-height: 0; display: flex; flex-direction: column; }
.markets { border-right: 1px solid var(--line); }
.side { border-left: 1px solid var(--line); overflow-y: auto; padding: 10px; gap: 10px; }
.center { min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* tabs */
.tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; scrollbar-width: none; }
.tabs button { padding: 9px 9px; color: var(--mute); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; text-transform: uppercase; font-size: 11.5px; letter-spacing: .07em; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--cy); border-color: var(--cy); text-shadow: 0 0 10px rgba(236, 233, 225, .6); }
.tabs .count { font-family: var(--mono); font-size: 10.5px; background: rgba(205, 203, 196, .16); padding: 1px 5px; border-radius: 8px; margin-left: 4px; color: var(--text); text-shadow: none; }

/* market list */
#search { margin: 10px; padding: 8px 10px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 8px; outline: 0; }
#search:focus { border-color: var(--cy); box-shadow: var(--glow-cy); }
.mlist { overflow-y: auto; flex: 1; }
.mrow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; text-align: left; border-left: 2px solid transparent; transition: background .15s; }
.mrow:hover { background: rgba(236, 233, 225, .05); }
.mrow.on { background: linear-gradient(90deg, rgba(236, 233, 225, .14), transparent); border-left-color: var(--cy); }
.mrow .l strong { display: flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .04em; }
.mrow small { color: var(--mute); font-size: 11px; display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .r { text-align: right; font-family: var(--mono); font-size: 12px; }
.mrow .r small { max-width: none; font-family: var(--mono); }
.mrow .r small.up { color: var(--up); } .mrow .r small.down { color: var(--down); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.live { background: var(--up); box-shadow: 0 0 8px var(--up); animation: pulse 2s infinite; }
.ghead { padding: 12px 12px 4px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--vi); font-weight: 600; }

.markets .tabs { flex-wrap: wrap; padding: 0 6px; } .markets .tabs button { padding: 7px 7px; font-size: 11px; }
.tk { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 1px 4px; border-radius: 3px; background: rgba(255, 157, 61, .16); color: var(--warn); }
.tk.new { background: rgba(61, 220, 151, .14); color: var(--up); } .tk.lookup { background: rgba(236, 233, 225, .14); color: var(--cy); }
.lookup { display: block; width: calc(100% - 20px); margin: 10px; padding: 10px 12px; text-align: left; border: 1px dashed rgba(236, 233, 225, .5); border-radius: 10px; color: var(--cy); font-weight: 600; }
.lookup:hover:not(:disabled) { background: rgba(236, 233, 225, .08); box-shadow: var(--glow-cy); } .lookup small { display: block; color: var(--mute); font-weight: 400; margin-top: 2px; }
.hint { margin: 10px; padding: 10px 12px; font-size: 11.5px; color: var(--mute); border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .3); }

/* chart */
.chart-head { display: flex; align-items: center; gap: 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: rgba(10, 10, 10, .55); }
.sym { display: flex; align-items: baseline; gap: 9px; }
.sym h1 { margin: 0; font-size: 21px; letter-spacing: .04em; } .sym span { color: var(--mute); }
.badge { font-size: 10px !important; font-weight: 600; letter-spacing: .1em; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line2); color: var(--mute) !important; }
.badge.live { color: var(--up) !important; border-color: rgba(61, 220, 151, .45); box-shadow: 0 0 10px rgba(61, 220, 151, .25); }
.px b { font-size: 21px; margin-right: 8px; text-shadow: 0 0 16px rgba(236, 233, 225, .45); } .px span { font-family: var(--mono); }
.inds { margin-left: auto; display: flex; gap: 3px; flex-wrap: wrap; }
.inds button { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--mute); font-family: var(--mono); font-size: 11px; }
.inds button:hover { color: var(--text); } .inds button.on { color: var(--vi); border-color: rgba(150, 148, 142, .6); background: rgba(150, 148, 142, .14); }
#dx { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #0d0d0c; }
.srcseg { margin-left: auto; display: flex; gap: 2px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.srcseg[hidden] { display: none; } .srcseg + .inds { margin-left: 0; }
.srcseg button { padding: 4px 9px; border-radius: 6px; color: var(--mute); font-size: 11.5px; font-weight: 600; } .srcseg button.on { background: rgba(236, 233, 225, .16); color: var(--cy); }
.fbar { padding: 8px 10px 4px; display: grid; gap: 5px; position: sticky; top: 0; background: var(--solid); z-index: 2; border-bottom: 1px solid var(--line); }
.fbar div { display: flex; gap: 3px; align-items: center; } .fbar span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); width: 30px; }
.fbar button { flex: 1; padding: 3px 2px; font-size: 10.5px; font-family: var(--mono); color: var(--mute); border: 1px solid var(--line); border-radius: 5px; }
.fbar button.on { color: var(--cy); border-color: rgba(236, 233, 225, .5); background: rgba(236, 233, 225, .08); }
.qt { display: grid; gap: 6px; margin-bottom: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .35); }
.qt div { display: grid; grid-template-columns: 64px repeat(4, 1fr); gap: 5px; align-items: center; } .qt span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.qt button { padding: 8px 2px; border-radius: 7px; font-family: var(--mono); font-size: 12px; font-weight: 600; transition: all .12s; }
.qt .b button { color: var(--up); border: 1px solid rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .07); } .qt .b button:hover { background: var(--up); color: #02170e; box-shadow: var(--glow-up); }
.qt .s button { color: var(--down); border: 1px solid rgba(239, 79, 107, .4); background: rgba(239, 79, 107, .07); } .qt .s button:hover { background: var(--down); color: #fff; box-shadow: var(--glow-down); }
.qt button:active { transform: scale(.96); } .qt button:disabled { opacity: .5; }
.wm { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: clamp(60px, 12vw, 150px); letter-spacing: .04em; color: rgba(205, 203, 196, .06); pointer-events: none; user-select: none; overflow: hidden; white-space: nowrap; }
.tools { position: absolute; left: 8px; top: 46px; z-index: 4; display: grid; gap: 4px; padding: 4px; background: rgba(10, 10, 10, .8); border: 1px solid var(--line); border-radius: 9px; }
.tools button { width: 28px; height: 28px; border-radius: 6px; color: var(--mute); font-size: 15px; display: grid; place-items: center; }
.tools button:hover { color: var(--cy); background: rgba(236, 233, 225, .1); } .tools button.on { color: #0b0b0a; background: var(--cy); box-shadow: var(--glow-cy); }
.tools hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 1px 0; }
.tfs { display: flex; gap: 2px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.tfs button { padding: 4px 9px; border-radius: 6px; color: var(--mute); font-family: var(--mono); font-size: 12px; }
.tfs button.on { background: rgba(236, 233, 225, .16); color: var(--cy); }
.chart-wrap { flex: 1; min-height: 180px; position: relative; background: linear-gradient(180deg, rgba(7, 7, 7, .5), rgba(7, 7, 7, .25)); }
.chart-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px); }
#chart { position: absolute; inset: 0; }
.chart-wrap.picking #chart { cursor: crosshair; }
.corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--cy); opacity: .55; pointer-events: none; z-index: 3; }
.corner.tl { left: 6px; top: 6px; border-right: 0; border-bottom: 0; } .corner.tr { right: 6px; top: 6px; border-left: 0; border-bottom: 0; }
.corner.bl { left: 6px; bottom: 6px; border-right: 0; border-top: 0; } .corner.br { right: 6px; bottom: 6px; border-left: 0; border-top: 0; }
.pick-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--cy); color: #0b0b0a; font-weight: 600; padding: 5px 14px; border-radius: 999px; z-index: 5; display: none; box-shadow: var(--glow-cy); }
.picking .pick-hint { display: block; }
.bottom { height: 250px; flex: none; border-top: 1px solid var(--line2); background: var(--panel); display: flex; flex-direction: column; }
.bt-body { flex: 1; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; font-weight: 600; color: var(--mute); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 8px 10px; position: sticky; top: 0; background: var(--solid); }
td { padding: 7px 10px; border-top: 1px solid var(--line); font-family: var(--mono); white-space: nowrap; }
td .tag, .tag { font-family: 'Zen Kaku Gothic New'; font-weight: 600; font-size: 10.5px; padding: 1px 6px; border-radius: 3px; letter-spacing: .05em; }
.tag.long { background: rgba(61, 220, 151, .14); color: var(--up); }
.tag.short { background: rgba(239, 79, 107, .14); color: var(--down); }
.tag.g { background: rgba(205, 203, 196, .16); color: var(--mute); }
td button { font-family: 'Zen Kaku Gothic New'; font-weight: 600; font-size: 11px; padding: 3px 9px; border: 1px solid var(--line2); border-radius: 6px; margin-left: 4px; text-transform: uppercase; }
td button:hover { border-color: var(--cy); color: var(--cy); box-shadow: var(--glow-cy); }
td.link { cursor: pointer; font-family: 'Zen Kaku Gothic New'; font-weight: 600; } td.link:hover { color: var(--cy); }
td.up, td.down { text-shadow: 0 0 10px currentColor; }
.empty { padding: 34px 20px; text-align: center; color: var(--mute); }
.empty strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; padding: 12px; }
.sbox { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.sbox label { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; display: block; }
.sbox b { font-size: 15px; }
.curve { padding: 0 12px 12px; } .curve svg { width: 100%; height: 70px; display: block; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 8px; filter: drop-shadow(0 0 6px rgba(236, 233, 225, .5)); }

/* cards + ticket */
.card { border: 1px solid transparent; border-radius: 14px; padding: 12px; background: linear-gradient(rgba(20, 20, 20, .96), rgba(20, 20, 20, .96)) padding-box, linear-gradient(140deg, rgba(236, 233, 225, .5), rgba(205, 203, 196, .08) 40%, rgba(150, 148, 142, .5)) border-box; }
.seg { display: grid; gap: 4px; background: rgba(0, 0, 0, .45); border-radius: 9px; padding: 3px; margin-bottom: 8px; } .seg.two { grid-template-columns: 1fr 1fr; }
.seg button { padding: 8px; border-radius: 7px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; transition: all .15s; }
.seg.small button { padding: 5px; font-size: 11.5px; }
.seg button.on { background: rgba(205, 203, 196, .2); color: var(--text); }
.seg button.long.on { background: var(--up); color: #02170e; box-shadow: var(--glow-up); } .seg button.short.on { background: var(--down); color: #fff; box-shadow: var(--glow-down); }
.field { margin-bottom: 9px; }
.field label { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--mute); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .1em; }
.field label b { color: var(--cy); } .field label .opt { color: var(--dim); text-transform: none; letter-spacing: 0; }
.ticket [hidden] { display: none !important; }
.field input:not([type=range]) { width: 100%; padding: 8px 10px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: 8px; outline: 0; font-family: var(--mono); }
.field input:focus { border-color: var(--cy); box-shadow: var(--glow-cy); }
input[type=range] { width: 100%; accent-color: var(--cy); }
.with-btn { display: flex; gap: 5px; } .pick { width: 36px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .45); font-size: 15px; color: var(--mute); }
.pick:hover, .pick.on { border-color: var(--cy); color: var(--cy); box-shadow: var(--glow-cy); }
.quick { display: flex; gap: 4px; margin-top: 5px; } .quick button { flex: 1; padding: 3px; font-size: 11px; font-family: var(--mono); color: var(--mute); border: 1px solid var(--line); border-radius: 6px; }
.quick button:hover { color: var(--cy); border-color: rgba(236, 233, 225, .5); }
.sum { margin: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 12px; }
.sum dt { color: var(--mute); } .sum dd { margin: 0; font-family: var(--mono); text-align: right; }
.check { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; background: rgba(0, 0, 0, .4); }
.check-head { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.check-head .ttl { flex: 1; } .check-head .ttl small { display: block; color: var(--mute); font-weight: 400; text-transform: none; letter-spacing: 0; }
.grade { width: 38px; height: 38px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 19px; background: rgba(205, 203, 196, .16); clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%); transition: background .3s; }
.grade.A, .grade.B { background: var(--up); color: #02170e; } .grade.C { background: var(--gold); color: #0b0b0a; } .grade.D { background: var(--warn); color: #1f1002; } .grade.F { background: var(--down); color: #fff; }
.gauge { width: 64px; flex: none; text-align: center; } .gauge svg { display: block; width: 64px; height: 36px; overflow: visible; }
.gauge path { fill: none; stroke-width: 6; stroke-linecap: round; } .gauge .trk { stroke: rgba(205, 203, 196, .16); } .gauge .val { transition: stroke-dashoffset .4s, stroke .3s; filter: drop-shadow(0 0 5px currentColor); }
.gauge small { font-family: var(--mono); font-size: 10px; color: var(--mute); display: block; margin-top: -2px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.check ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.check li { font-size: 12px; padding-left: 14px; position: relative; color: var(--mute); }
.check li::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.check li.good::before { background: var(--up); box-shadow: 0 0 6px var(--up); } .check li.warn::before { background: var(--warn); box-shadow: 0 0 6px var(--warn); } .check li.bad::before { background: var(--down); box-shadow: 0 0 6px var(--down); }
.check li.bad, .check li.warn { color: var(--text); }
.submit { width: 100%; padding: 12px; font-size: 14px; border: 0; text-transform: uppercase; letter-spacing: .1em; overflow: hidden; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); border-radius: 0; }
.submit::before { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: sheen 3.2s infinite; }
@keyframes sheen { 0%, 60% { left: -40%; } 100% { left: 130%; } }
.submit.long { background: linear-gradient(135deg, #3ddc97, #2fb37c); color: #02170e; } .submit.short { background: linear-gradient(135deg, #ef4f6b, #c93a55); color: #fff; }

/* coach */
.coach { padding: 0; overflow: hidden; } .coach .tabs { padding: 0 6px; } #coBody { padding: 12px; }
.tipcard { background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-left: 3px solid var(--cy); border-radius: 8px; padding: 10px 12px; }
.tipcard .cat { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--cy); font-weight: 600; }
.tipcard p { margin: 4px 0 8px; font-size: 13px; }
.tipcard button { color: var(--mute); font-size: 12px; font-weight: 600; } .tipcard button:hover { color: var(--cy); }
.feed { margin-top: 12px; display: grid; gap: 7px; }
.feed h4 { margin: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.msg { font-size: 12px; padding: 7px 9px; border-radius: 8px; background: rgba(0, 0, 0, .4); border-left: 3px solid var(--line2); color: var(--mute); }
.msg.warn { border-left-color: var(--warn); color: var(--text); } .msg.praise { border-left-color: var(--up); color: var(--text); }
.quest, .lesson { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.quest:last-child, .lesson:last-child { border: 0; }
.qmark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; display: grid; place-items: center; font-size: 11px; }
.done .qmark { background: var(--up); border-color: var(--up); color: #02170e; box-shadow: 0 0 8px var(--up); }
.quest .t, .lesson .t { flex: 1; } .quest strong, .lesson strong { display: block; font-weight: 600; } .quest small, .lesson small { color: var(--mute); }
.quest.done strong { color: var(--mute); text-decoration: line-through; }
.xp { font-family: var(--mono); font-size: 11px; color: var(--gold); white-space: nowrap; }
.lesson:hover strong { color: var(--cy); }

/* modal */
#modal:empty { display: none; }
#modal { position: fixed; inset: 0; background: rgba(4, 4, 4, .72); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; overflow-y: auto; }
.dialog { width: min(540px, 100%); border: 1px solid transparent; border-radius: 18px; padding: 26px; position: relative; background: linear-gradient(#111110, #131312) padding-box, linear-gradient(140deg, var(--cy), rgba(205, 203, 196, .1) 35%, var(--vi)) border-box; box-shadow: 0 0 80px rgba(236, 233, 225, .14), 0 30px 80px rgba(0, 0, 0, .6); animation: pop .28s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } }
.dialog.wide { width: min(700px, 100%); } .dialog.xl { width: min(900px, 100%); }
.dialog h2 { margin: 0 0 6px; font-size: 25px; letter-spacing: .02em; line-height: 1.15; background: linear-gradient(90deg, #fff 20%, var(--cy), var(--vi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dialog h3 { margin: 20px 0 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--cy); }
.dialog p { color: var(--mute); margin: 0 0 14px; } .dialog p.body { color: var(--text); white-space: pre-line; font-size: 14px; line-height: 1.55; }
.x { position: absolute; top: 14px; right: 16px; font-size: 22px; color: var(--mute); } .x:hover { color: var(--cy); }
.perks, .earn { display: grid; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.perks li, .earn li { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 10px; }
.perks b, .earn b { color: var(--gold); min-width: 108px; } .earn b { font-family: 'Zen Kaku Gothic New'; font-weight: 600; color: var(--text); min-width: 130px; } .earn span { color: var(--mute); }
.row { display: flex; gap: 8px; flex-wrap: wrap; } .row .btn { flex: 1; padding: 12px; text-transform: uppercase; }
.note { font-size: 11.5px; color: var(--dim) !important; margin-top: 12px !important; }
.dialog .field { margin: 14px 0; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.pack { background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: 12px; padding: 14px; text-align: left; display: grid; gap: 2px; transition: all .2s; }
.pack:hover:not(:disabled) { border-color: var(--gold); box-shadow: 0 0 22px rgba(236, 233, 225, .25); transform: translateY(-2px); } .pack:disabled { opacity: .4; cursor: not-allowed; }
.pack small { color: var(--mute); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; } .pack b { font-size: 20px; } .pack em { font-style: normal; color: var(--up); font-size: 11px; font-family: var(--mono); min-height: 16px; } .pack span { font-family: var(--mono); color: var(--gold); margin-top: 6px; }
.wal { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: rgba(0, 0, 0, .35); border-radius: 10px; border: 1px solid var(--line); flex-wrap: wrap; }
.opts { display: grid; gap: 7px; margin: 12px 0; } .opts button { text-align: left; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 9px; }
.opts button:hover:not(:disabled) { border-color: var(--cy); } .opts .right { border-color: var(--up); background: rgba(61, 220, 151, .12); } .opts .wrong { border-color: var(--down); background: rgba(239, 79, 107, .12); }
.why { padding: 10px 12px; border-radius: 9px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); margin-bottom: 12px; }

/* pulse board */
.btn.pulse-btn { border-color: rgba(236, 233, 225, .55); color: var(--gold); background: rgba(236, 233, 225, .08); } .btn.pulse-btn:hover { box-shadow: 0 0 18px rgba(236, 233, 225, .4); }
.dialog.full { width: min(1280px, 100%); }
.pboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.pcol { border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .3); display: flex; flex-direction: column; min-width: 0; }
.pcol h3 { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pcol h3 small { color: var(--dim); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 10.5px; text-align: right; }
.pcol-body { padding: 8px; display: grid; gap: 7px; max-height: min(58vh, 620px); overflow-y: auto; align-content: start; }
.pc { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: rgba(20, 20, 20, .9); display: grid; gap: 6px; cursor: pointer; transition: border-color .15s; }
.pc:hover { border-color: rgba(236, 233, 225, .5); } .pc.own { border-color: rgba(61, 220, 151, .55); box-shadow: inset 3px 0 0 var(--up); } .pc.done { cursor: default; opacity: .85; }
.pc-top { display: flex; align-items: baseline; gap: 7px; } .pc-top strong { font-size: 14px; letter-spacing: .03em; } .pc-top small { color: var(--mute); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pc-top span { font-family: var(--mono); font-size: 11px; color: var(--cy); }
.pc-mid { display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-size: 11.5px; color: var(--mute); flex-wrap: wrap; } .pc-mid b { color: var(--text); font-size: 13px; } .pc-mid i { font-style: normal; }
.pc-flags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 10.5px; color: var(--mute); font-family: var(--mono); }
.pf { font-style: normal; font-family: 'Zen Kaku Gothic New'; font-weight: 700; font-size: 9px; letter-spacing: .06em; padding: 1px 5px; border-radius: 3px; }
.pf.bad { background: rgba(239, 79, 107, .16); color: var(--down); } .pf.warn { background: rgba(255, 157, 61, .16); color: var(--warn); } .pf.good { background: rgba(61, 220, 151, .14); color: var(--up); }
.pc-act { display: flex; gap: 5px; } .pc-act button { flex: 1; padding: 6px 2px; border-radius: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--up); border: 1px solid rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .07); }
.pc-act button:hover { background: var(--up); color: #02170e; } .pc-act button.s { color: var(--down); border-color: rgba(239, 79, 107, .4); background: rgba(239, 79, 107, .07); } .pc-act button.s:hover { background: var(--down); color: #fff; }
.pc-act button.g { color: var(--cy); border-color: rgba(236, 233, 225, .4); background: rgba(236, 233, 225, .07); } .pc-act button.g:hover { background: var(--cy); color: #0b0b0a; }
@media (max-width: 900px) { .pboard { grid-template-columns: 1fr; } }

/* scan checklist */
.scan-verdict { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line2); border-left-width: 3px; background: rgba(0, 0, 0, .4); margin-bottom: 8px; }
.scan-verdict b { font-family: 'Zen Kaku Gothic New'; font-weight: 700; font-size: 14px; display: block; } .scan-verdict small { color: var(--mute); font-size: 11px; }
.scan-verdict.bad { border-left-color: var(--down); } .scan-verdict.bad b { color: var(--down); } .scan-verdict.warn { border-left-color: var(--warn); } .scan-verdict.warn b { color: var(--warn); } .scan-verdict.good { border-left-color: var(--up); } .scan-verdict.good b { color: var(--up); }
.scan-links { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 9px; } .scan-links span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); width: 100%; }
.scan-links a { font-size: 11.5px; font-weight: 600; color: var(--cy); text-decoration: none; border: 1px solid rgba(236, 233, 225, .35); border-radius: 6px; padding: 3px 8px; } .scan-links a:hover { background: rgba(236, 233, 225, .12); }
.scan-item { border-bottom: 1px solid var(--line); } .scan-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 20px 1fr; gap: 2px 8px; padding: 8px 0; align-items: center; }
.scan-item summary::-webkit-details-marker { display: none; }
.scan-item summary i { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 11px; background: rgba(205, 203, 196, .16); color: var(--mute); }
.scan-item.good summary i { background: var(--up); color: #02170e; } .scan-item.warn summary i { background: var(--warn); color: #1f1002; } .scan-item.bad summary i { background: var(--down); color: #fff; }
.scan-item summary span { font-weight: 600; font-size: 12.5px; } .scan-item summary b { grid-column: 2; font-size: 11.5px; color: var(--mute); white-space: normal; word-break: break-word; }
.scan-item.bad summary b { color: var(--text); } .scan-item p { margin: 0 0 9px 28px; font-size: 12px; color: var(--mute); line-height: 1.5; }

/* trade review card */
.toast.review { border-left-color: var(--vi); } .toast.review .who { color: var(--vi); }
.toast.review .rv-head { display: flex; align-items: center; gap: 9px; margin: 4px 0 6px; } .toast.review .rv-head b { font-family: 'Zen Kaku Gothic New'; font-weight: 600; font-size: 13px; }
.toast.review ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; } .toast.review li { padding-left: 16px; position: relative; }
.toast.review li::before { position: absolute; left: 0; font-weight: 700; } .toast.review li.g::before { content: '✓'; color: var(--up); } .toast.review li.b::before { content: '✕'; color: var(--down); }
.toast.review li.b { color: var(--text); } .toast.review li.g { color: var(--mute); } .toast.review .x2 { position: absolute; top: 6px; right: 8px; color: var(--mute); font-size: 15px; } .toast.review { position: relative; }

/* rewards */
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.sday { text-align: center; padding: 10px 2px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .35); display: grid; gap: 1px; }
.sday small { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; } .sday b { font-size: 14px; color: var(--gold); } .sday em { font-style: normal; font-size: 10px; color: var(--dim); }
.sday.done { border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .08); } .sday.done b, .sday.done em { color: var(--up); }
.sday.today { border-color: var(--gold); box-shadow: 0 0 20px rgba(236, 233, 225, .35); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 34px rgba(236, 233, 225, .6); } }
.missions { display: grid; gap: 7px; }
.mission { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .35); }
.mission .t { flex: 1; } .mission strong { font-weight: 600; } .mission .rw { font-family: var(--mono); font-size: 12px; color: var(--gold); min-width: 86px; text-align: right; }
.mission.done { border-color: rgba(61, 220, 151, .4); } .mission.done .rw { color: var(--up); }
.bar { height: 4px; background: rgba(205, 203, 196, .15); border-radius: 2px; margin-top: 6px; overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--vi), var(--cy)); box-shadow: 0 0 8px var(--cy); }

/* arena */
.evs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.ev { cursor: pointer; border: 1px solid var(--line2); border-radius: 14px; padding: 14px; background: rgba(0, 0, 0, .35); display: grid; gap: 6px; transition: all .2s; }
.ev:hover { transform: translateY(-2px); } .ev.on { border-color: var(--cy); box-shadow: 0 0 26px rgba(236, 233, 225, .2); }
.ev.joined { background: linear-gradient(160deg, rgba(150, 148, 142, .18), rgba(0, 0, 0, .35)); }
.ev small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); } .ev strong { font-size: 18px; letter-spacing: .03em; }
.ev p { margin: 0 !important; font-size: 12px; min-height: 34px; } .ev em { font-style: normal; font-size: 11px; color: var(--dim); }
.prize b { color: var(--gold); font-size: 17px; text-shadow: 0 0 14px rgba(236, 233, 225, .5); } .prize span { color: var(--mute); margin-left: 6px; font-size: 12px; }
.evfoot { display: flex; justify-content: space-between; font-size: 12px; font-family: var(--mono); min-height: 18px; color: var(--mute); }
.board td, .board th { padding: 8px 12px; } .board tr.me td { background: rgba(236, 233, 225, .1); color: #fff; } .board tr.me td:first-child { box-shadow: inset 3px 0 0 var(--cy); }
.board th { background: #121211; }

/* banner */
.banner { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; background: radial-gradient(closest-side, rgba(236, 233, 225, .16), transparent 70%); animation: bannerfade 2.8s forwards; }
.banner div { text-align: center; animation: bannerin 2.8s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.banner b { display: block; font: 700 clamp(40px, 9vw, 110px)/1 'Zen Kaku Gothic New'; letter-spacing: .06em; background: linear-gradient(90deg, var(--cy), #fff, var(--vi)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(236, 233, 225, .6)); }
.banner span { display: block; margin-top: 10px; font-size: clamp(14px, 2vw, 22px); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
@keyframes bannerin { 0% { transform: scale(.5); opacity: 0; } 14% { transform: scale(1); opacity: 1; } 80% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes bannerfade { 0% { opacity: 0; } 12%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* toasts + tooltip */
#toasts { position: fixed; left: 266px; bottom: 16px; display: grid; gap: 8px; z-index: 60; width: min(340px, calc(100vw - 32px)); }
#modal:not(:empty) ~ #toasts { left: auto; right: 16px; }
.toast { background: #161615; border: 1px solid var(--line2); border-left: 3px solid var(--cy); border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .6), 0 0 18px rgba(236, 233, 225, .1); animation: in .28s cubic-bezier(.2, 1.2, .4, 1); }
.toast .who { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--cy); font-weight: 600; display: block; margin-bottom: 2px; }
.toast.warn { border-left-color: var(--warn); } .toast.warn .who { color: var(--warn); } .toast.praise { border-left-color: var(--up); } .toast.praise .who { color: var(--up); } .toast.err { border-left-color: var(--down); } .toast.err .who { color: var(--down); } .toast.xp { border-left-color: var(--gold); } .toast.xp .who { color: var(--gold); }
@keyframes in { from { transform: translateX(-16px); opacity: 0; } }
#tooltip { position: fixed; z-index: 70; max-width: 230px; background: #000; border: 1px solid var(--cy); color: var(--text); font-size: 12px; padding: 6px 9px; border-radius: 7px; pointer-events: none; display: none; box-shadow: var(--glow-cy); }
[data-tip] { cursor: help; } button[data-tip] { cursor: pointer; }

.top * { white-space: nowrap; }
@media (max-width: 1500px) { .mute-btn, .beta { display: none; } .acct { gap: 16px; } .top { gap: 14px; } .rank { grid-template-columns: auto 44px; } .rank small { display: none; } }
@media (max-width: 1280px) { .rank { display: none; } }
@media (max-width: 1100px) {
  body { overflow: auto; } .grid { grid-template-columns: 1fr; } .markets { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chart-wrap { min-height: 340px; } .side { border-left: 0; overflow: visible; }
  .top { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 10px; } .top-right { margin-left: 0; flex-wrap: wrap; }
  #toasts { left: 16px; } .streak { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* =====================================================================
   HOLO LAYER — floating hologram windows, dock, glyphs, projector light.
   Everything below overrides the flat terminal layout above.
   ===================================================================== */
:root { --mx: 0; --my: 0; --cx: 50vw; --cy: 50vh; --holo: 110, 240, 255; --lw: 262px; --rw: 352px; }

/* drifting glyphs + cursor light */
.glyphs { position: absolute; inset: 0; }
.glyphs span { position: absolute; opacity: var(--o); translate: calc(var(--mx) * var(--d) * -26px) calc(var(--my) * var(--d) * -20px); animation: gfloat var(--t) ease-in-out infinite alternate; will-change: transform; }
.glyphs svg { width: 100%; height: 100%; fill: none; stroke: rgb(var(--holo)); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.glyphs span:nth-child(3n) svg { stroke: #bdbbb4; } .glyphs span:nth-child(5n) svg { stroke: #d9d6ce; }
@keyframes gfloat { from { transform: translateY(-16px) rotate(-8deg) rotateY(-25deg); } to { transform: translateY(18px) rotate(9deg) rotateY(25deg); } }
.cursor-light { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; translate: var(--cx) var(--cy); border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(closest-side, rgba(var(--holo), .10), rgba(150, 148, 142, .05) 45%, transparent 70%); }

/* top bar becomes floating capsules */
.top { background: none; border: 0; height: 60px; padding: 0 16px; z-index: 6; }
.top::after { display: none; }
.brand, .acct, .top-right > .rank, .chip { background: linear-gradient(160deg, rgba(var(--holo), .10), rgba(17, 17, 17, .72)); border: 1px solid rgba(var(--holo), .26); border-radius: 14px; padding: 7px 14px; box-shadow: 0 0 24px rgba(var(--holo), .10), inset 0 0 18px rgba(var(--holo), .06); }
.brand #brandName { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ffffff; text-shadow: 0 0 14px rgba(var(--holo), .9); }
.acct { gap: 22px; } .stat b { text-shadow: 0 0 14px rgba(var(--holo), .7); }
.mark { animation: markspin 9s linear infinite; } @keyframes markspin { 0%, 80% { transform: rotateY(0); } 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.tape { background: none; border: 0; margin: 0 16px; border-radius: 10px; }

/* stage: panels float in 3D and lean toward the viewer */
.grid { gap: 12px; padding: 10px 14px 96px; perspective: 1700px; grid-template-columns: var(--lw) minmax(0, 1fr) var(--rw); transition: grid-template-columns .5s cubic-bezier(.2, .9, .2, 1); position: relative; z-index: 2; }
body.no-left .grid { --lw: 0px; } body.no-right .grid { --rw: 0px; }
.markets, .card, .bottom, .chart-head, .chart-wrap { position: relative; border: 1px solid rgba(var(--holo), .26); background: linear-gradient(165deg, rgba(var(--holo), .10), rgba(16, 16, 16, .9) 38%, rgba(16, 16, 16, .9) 70%, rgba(150, 148, 142, .14)); box-shadow: 0 0 0 1px rgba(var(--holo), .05) inset, 0 0 34px rgba(var(--holo), .10), 0 22px 50px rgba(0, 0, 0, .45); }
.markets { border-radius: 16px; overflow: hidden; transform-origin: 0 50%; transform: rotateY(calc(7deg + var(--mx) * -2.5deg)) rotateX(calc(var(--my) * 1.2deg)); transition: transform .45s cubic-bezier(.2, .9, .2, 1), opacity .35s; animation: bob 7s ease-in-out infinite; }
.side { background: none; border: 0; padding: 0; overflow: visible; transform-origin: 100% 50%; transform: rotateY(calc(-7deg + var(--mx) * -2.5deg)) rotateX(calc(var(--my) * 1.2deg)); transition: transform .45s cubic-bezier(.2, .9, .2, 1), opacity .35s; animation: bob 8s ease-in-out -3s infinite; overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.markets:hover, .markets:focus-within, .side:hover, .side:focus-within { transform: none; animation-play-state: paused; }
@keyframes bob { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 4px; } }
body.no-left .markets { opacity: 0; pointer-events: none; transform: translateX(-60px) rotateY(55deg); }
body.no-right .side { opacity: 0; pointer-events: none; transform: translateX(60px) rotateY(-55deg); }
.card { border-radius: 16px; }
.center { gap: 0; }
.chart-head { border-radius: 16px 16px 0 0; border-bottom-color: rgba(var(--holo), .14); }
.chart-wrap { border-top: 0; border-radius: 0 0 16px 16px; overflow: hidden; background: linear-gradient(180deg, rgba(9, 9, 9, .62), rgba(9, 9, 9, .38)); }
.bottom { margin-top: 12px; border-radius: 16px; overflow: hidden; transition: height .45s cubic-bezier(.2, .9, .2, 1), opacity .3s, margin .45s; }
body.no-bottom .bottom { height: 0; opacity: 0; margin-top: 0; border-width: 0; }

/* hologram texture: scanlines plus a slow light sweep, on every floating surface */
.markets::after, .card::after, .bottom::after, .chart-head::after, .dialog::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; background: repeating-linear-gradient(0deg, rgba(var(--holo), .04) 0 1px, transparent 1px 3px); }
@keyframes sweep { from { background-position: 0 0, 130% 0; } to { background-position: 0 0, -130% 0; } }
.markets::before, .card::before, .bottom::before { content: ''; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgb(var(--holo)), #bdbbb4, transparent); opacity: .8; filter: blur(.4px); z-index: 6; pointer-events: none; }
.coach { overflow: hidden; }

/* projector under the chart */
.chart-wrap::before { content: ''; position: absolute; left: 12%; right: 12%; bottom: -70px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--holo), .34), transparent 70%); pointer-events: none; z-index: 1; animation: breathe2 4.5s ease-in-out infinite; }
@keyframes breathe2 { 50% { opacity: .55; transform: scaleX(.92); } }
.corner { border-color: rgb(var(--holo)); filter: drop-shadow(0 0 6px rgb(var(--holo))); animation: cornerpulse 3s ease-in-out infinite; } @keyframes cornerpulse { 50% { opacity: .25; } }
.wm { color: transparent; -webkit-text-stroke: 1px rgba(var(--holo), .16); text-shadow: 0 0 40px rgba(var(--holo), .12); transform: perspective(600px) rotateX(calc(18deg + var(--my) * -6deg)) rotateY(calc(var(--mx) * 8deg)); }

/* spinning token hologram beside the symbol */
.holo-coin { position: relative; width: 46px; height: 46px; flex: none; align-self: center; perspective: 300px; }
.holo-coin b { position: absolute; inset: 7px; display: grid; place-items: center; border-radius: 50%; font: 700 17px 'Zen Kaku Gothic New'; color: #ffffff; background: radial-gradient(circle at 35% 30%, rgba(var(--holo), .75), rgba(80, 78, 74, .35) 70%); border: 1px solid rgba(var(--holo), .9); box-shadow: 0 0 18px rgba(var(--holo), .7), inset 0 0 12px rgba(255, 255, 255, .25); animation: coinspin 5s linear infinite; text-shadow: 0 0 8px #fff; }
.holo-coin i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--holo), .65); }
.holo-coin .r1 { animation: ring1 4s linear infinite; } .holo-coin .r2 { inset: -5px; border-color: rgba(190, 188, 182, .6); border-style: dashed; animation: ring2 7s linear infinite; }
.holo-coin u { position: absolute; left: 4px; right: 4px; bottom: -11px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--holo), .8), transparent); filter: blur(2px); }
.holo-coin.swap b { animation: coinspin 5s linear infinite, coinin .5s ease-out; }
@keyframes coinspin { to { transform: rotateY(360deg); } } @keyframes ring1 { from { transform: rotateX(70deg) rotateZ(0); } to { transform: rotateX(70deg) rotateZ(360deg); } } @keyframes ring2 { from { transform: rotateY(65deg) rotateZ(360deg); } to { transform: rotateY(65deg) rotateZ(0); } }
@keyframes coinin { from { opacity: 0; filter: blur(6px) brightness(3); scale: .3; } }
.sym { align-items: center; } .sym h1 { text-shadow: 0 0 18px rgba(var(--holo), .6); }

/* market rows and inputs pick up the hologram light */
.mrow.on { background: linear-gradient(90deg, rgba(var(--holo), .2), transparent); box-shadow: inset 2px 0 0 rgb(var(--holo)), inset 12px 0 22px -12px rgba(var(--holo), .8); }
.mrow:hover { background: rgba(var(--holo), .08); translate: 3px 0; } .mrow { transition: background .15s, translate .15s; }
th { background: rgba(15, 15, 15, .92); }
.submit { box-shadow: 0 0 26px rgba(61, 220, 151, .35); } .submit.short { box-shadow: 0 0 26px rgba(239, 79, 107, .35); }

/* cards tilt toward the cursor with a moving glare */
.pc, .pack, .ev, .sday, .perks li, .sbox { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out, border-color .2s, box-shadow .2s; background-image: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%), rgba(var(--holo), .16), transparent 55%); }
.pc:hover, .pack:hover:not(:disabled), .ev:hover { box-shadow: 0 0 26px rgba(var(--holo), .28), 0 14px 30px rgba(0, 0, 0, .4); }
.pc:not(:hover), .pack:not(:hover), .ev:not(:hover), .sday:not(:hover), .perks li:not(:hover), .sbox:not(:hover) { --rx: 0deg; --ry: 0deg; }

/* floating dock */
.dock { position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 40; display: flex; align-items: flex-end; gap: 12px; padding: 10px 18px 12px; border-radius: 26px; background: linear-gradient(180deg, rgba(var(--holo), .12), rgba(16, 16, 16, .78)); border: 1px solid rgba(var(--holo), .3); backdrop-filter: blur(10px); box-shadow: 0 0 40px rgba(var(--holo), .18), 0 18px 40px rgba(0, 0, 0, .55); }
.dock::before { content: ''; position: absolute; left: 8%; right: 8%; bottom: -16px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--holo), .55), transparent); filter: blur(5px); pointer-events: none; }
.dk { --s: 1; position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: rgb(var(--holo)); border: 1px solid rgba(var(--holo), .45); background: radial-gradient(circle at 35% 28%, rgba(var(--holo), .30), rgba(16, 16, 16, .6) 70%); box-shadow: 0 0 16px rgba(var(--holo), .25), inset 0 0 12px rgba(var(--holo), .18); scale: var(--s); transform-origin: 50% 100%; transition: scale .12s ease-out, box-shadow .2s, color .2s; animation: dkbob 4.6s ease-in-out infinite; }
.dk:nth-child(2n) { animation-delay: -1.4s; } .dk:nth-child(3n) { animation-delay: -2.7s; }
@keyframes dkbob { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 3px; } }
.dk svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px currentColor); }
.dk::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(var(--holo), .45); animation: orbit 9s linear infinite; opacity: 0; transition: opacity .2s; }
.dk:hover::before, .dk.lit::before { opacity: 1; } @keyframes orbit { to { rotate: 360deg; } }
.dk:hover { box-shadow: 0 0 30px rgba(var(--holo), .7), inset 0 0 16px rgba(var(--holo), .4); color: #fff; }
.dk.lit { color: #fff; border-color: rgb(var(--holo)); }
.dk.hot { color: var(--gold); border-color: rgba(236, 233, 225, .7); background: radial-gradient(circle at 35% 28%, rgba(236, 233, 225, .34), rgba(16, 16, 16, .6) 70%); box-shadow: 0 0 22px rgba(236, 233, 225, .4), inset 0 0 12px rgba(236, 233, 225, .2); }
.dk.off { color: var(--dim); border-color: var(--line2); box-shadow: none; } .dk.off svg { filter: none; }
.dk .dl { position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 6px; padding: 3px 9px; border-radius: 7px; font: 600 10.5px 'Zen Kaku Gothic New'; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: #ffffff; background: rgba(11, 11, 11, .92); border: 1px solid rgba(var(--holo), .5); opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; box-shadow: 0 0 14px rgba(var(--holo), .35); }
.dk:hover .dl { opacity: 1; translate: -50% 0; }
.dk.ping::after { content: ''; position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse 1.2s infinite; }
.dsep { width: 1px; height: 34px; background: linear-gradient(transparent, rgba(var(--holo), .5), transparent); align-self: center; }

/* windows materialise like a projection */
.dialog { background: linear-gradient(165deg, rgba(var(--holo), .12), rgba(14, 14, 14, .96) 35%, rgba(14, 14, 14, .96) 70%, rgba(150, 148, 142, .14)); border: 1px solid rgba(var(--holo), .4); box-shadow: 0 0 90px rgba(var(--holo), .22), 0 30px 80px rgba(0, 0, 0, .6); animation: project .5s cubic-bezier(.2, 1, .3, 1); }
@keyframes project { 0% { clip-path: inset(49% 0 49% 0); filter: brightness(3) blur(3px); opacity: .4; } 45% { clip-path: inset(0 0 0 0); filter: brightness(1.6); opacity: 1; } 60% { opacity: .75; } 100% { clip-path: inset(0 0 0 0); filter: none; opacity: 1; } }
#modal { background: rgba(5, 5, 5, .55); }
.toast { background: linear-gradient(160deg, rgba(var(--holo), .12), rgba(16, 16, 16, .96)); }
#toasts { bottom: 100px; left: calc(var(--lw) + 30px); z-index: 45; }
#modal:not(:empty) ~ #toasts { bottom: 20px; }
body:has(#modal:not(:empty)) .dock { opacity: 0; pointer-events: none; }
.dock { transition: opacity .25s; }

/* boot sequence */
#boot { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #050505; transition: opacity .6s, visibility .6s; }
#boot.out { opacity: 0; visibility: hidden; }
#boot div { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
#boot i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--holo), .7); animation: ring1 1.6s linear infinite; }
#boot i:nth-child(2) { inset: 18px; border-style: dashed; border-color: #bdbbb4; animation: ring2 2.2s linear infinite; } #boot i:nth-child(3) { inset: 38px; animation: orbit 1.2s linear infinite; border-color: transparent; border-top-color: rgb(var(--holo)); }
#boot b { font: 700 44px 'Zen Kaku Gothic New'; color: #ffffff; text-shadow: 0 0 26px rgb(var(--holo)); animation: coinin .7s ease-out; }
#boot span { position: absolute; top: calc(100% + 22px); left: 50%; translate: -50% 0; white-space: nowrap; font: 600 12px 'JetBrains Mono', monospace; letter-spacing: .4em; color: rgb(var(--holo)); animation: pulse 1s infinite; }

@media (max-width: 1100px) {
  .grid { padding-bottom: 110px; perspective: none; } .markets, .side { transform: none; animation: none; }
  .dock { gap: 7px; padding: 8px 12px 10px; } .dk { width: 44px; height: 44px; } .cursor-light { display: none; }
  #toasts { left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .markets, .side { transform: none; } .cursor-light, .glyphs { display: none; } }


/* =====================================================================
   HOLO LAYER 2 — no more skewed panels. Flat, crisp hologram frames,
   a projector stage, and the Holo-field of floating coin orbs.
   ===================================================================== */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* panels: straight, sharp, lit from the edge */
.markets, .side { transform: none !important; animation: none; translate: 0 0; }
body.no-left .markets { transform: translateX(-40px) !important; } body.no-right .side { transform: translateX(40px) !important; }
.grid { perspective: none; }
.markets, .card, .bottom { border-radius: 4px 18px 4px 18px; }
.chart-head { border-radius: 4px 18px 0 0; } .chart-wrap { border-radius: 0 0 4px 18px; }
/* a light runs around the frame you are working in */
.markets::before, .card::before, .bottom::before { left: -1px; right: -1px; top: -1px; bottom: -1px; height: auto; padding: 1px; border-radius: inherit; opacity: 0; filter: none; transition: opacity .3s;
  background: conic-gradient(from var(--ang), transparent 0 62%, rgb(var(--holo)) 80%, #fff 86%, #bdbbb4 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.markets:hover::before, .card:hover::before, .bottom:hover::before, .card:focus-within::before { opacity: 1; animation: edge 3.2s linear infinite; }
@keyframes edge { to { --ang: 360deg; } }
/* corner ticks on every frame */
.markets, .card, .bottom, .chart-head { background-image: linear-gradient(165deg, rgba(var(--holo), .10), rgba(16, 16, 16, .9) 38%, rgba(16, 16, 16, .9) 70%, rgba(150, 148, 142, .14)), linear-gradient(rgb(var(--holo)), rgb(var(--holo))), linear-gradient(rgb(var(--holo)), rgb(var(--holo))); background-size: auto, 14px 2px, 2px 14px; background-position: 0 0, 0 0, 0 0; background-repeat: no-repeat; }

/* stage toggle */
#stageSeg button.on { background: linear-gradient(135deg, rgba(var(--holo), .35), rgba(150, 148, 142, .3)); color: #fff; box-shadow: 0 0 14px rgba(var(--holo), .35); }

/* projector: emitter rings under whatever is on stage */
.emitter { position: absolute; left: 50%; bottom: 6px; width: min(520px, 70%); height: 46px; translate: -50% 0; pointer-events: none; z-index: 7; }
.emitter i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--holo), .75); box-shadow: 0 0 18px rgba(var(--holo), .5), inset 0 0 14px rgba(var(--holo), .35); animation: emit 3.4s ease-out infinite; }
.emitter i:nth-child(2) { animation-delay: -1.1s; } .emitter i:nth-child(3) { animation-delay: -2.2s; }
@keyframes emit { 0% { transform: translateY(0) scale(1); opacity: .9; } 100% { transform: translateY(-150px) scale(.55); opacity: 0; } }
.emitter::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 50%; height: 260px; background: linear-gradient(0deg, rgba(var(--holo), .2), transparent); clip-path: polygon(22% 100%, 78% 100%, 100% 0, 0 0); filter: blur(6px); }

/* Holo-field */
#field { position: absolute; inset: 0; z-index: 6; overflow: hidden; background: radial-gradient(ellipse at 50% 108%, rgba(var(--holo), .22), transparent 58%), radial-gradient(ellipse at 50% 40%, rgba(80, 78, 74, .2), transparent 70%), #0b0b0a; }
body.stage-field .bottom { height: 128px; }
body.stage-field .inds, body.stage-field .tfs, body.stage-field #chartSrc { display: none !important; }
#field[hidden] { display: none; }
#field::before { content: 'Tap an orb to pin it · size = market cap · colour = today'; position: absolute; left: 50%; top: 10px; translate: -50% 0; font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--holo), .55); white-space: nowrap; pointer-events: none; }
#field.empty::after { content: 'Projecting markets…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); }
.orb { position: absolute; left: 0; top: 0; --c: #3ddc97; --a: .4; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 1px; color: #fff; padding: 0; will-change: transform;
  border: 1px solid color-mix(in srgb, var(--c) 85%, transparent);
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .42), color-mix(in srgb, var(--c) calc(var(--a) * 100%), transparent) 34%, rgba(13, 13, 13, .5) 74%);
  box-shadow: 0 0 calc(var(--sz) * .34) color-mix(in srgb, var(--c) calc(var(--a) * 90%), transparent), inset 0 0 calc(var(--sz) * .26) color-mix(in srgb, var(--c) 45%, transparent);
  transition: scale .22s ease-out, box-shadow .25s, opacity .3s; backface-visibility: hidden; }
.orb.in { animation: orbin .45s cubic-bezier(.2, 1.2, .4, 1); } .orb.out { opacity: 0; scale: .4; pointer-events: none; }
@keyframes orbin { from { opacity: 0; scale: .3; } }
@keyframes orbpulse { 50% { filter: brightness(1.22); } }
.orb::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); opacity: .5; }
.orb:hover::before, .orb.pin::before { animation: orbit 6s linear infinite; }
.orb::after { content: ''; position: absolute; left: 14%; right: 14%; top: calc(100% + 8px); height: 9px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 70%, transparent), transparent); filter: blur(2px); opacity: .7; }
.orb b { font: 700 calc(var(--sz) * .2) 'Zen Kaku Gothic New'; letter-spacing: .02em; text-shadow: 0 0 8px rgba(0, 0, 0, .8), 0 0 10px var(--c); max-width: calc(var(--sz) - 8px); overflow: hidden; }
.orb span { font: 500 calc(var(--sz) * .15) 'JetBrains Mono', monospace; text-shadow: 0 0 6px rgba(0, 0, 0, .9); opacity: .95; }
.orb:hover, .orb.pin { scale: 1.1; z-index: 4; box-shadow: 0 0 calc(var(--sz) * .6) var(--c), inset 0 0 calc(var(--sz) * .3) color-mix(in srgb, var(--c) 60%, transparent); }
.orb.pin::before { border-color: #fff; opacity: 1; }
.orb.held { outline: 2px solid var(--gold); outline-offset: 3px; }
.orb-card { position: absolute; z-index: 8; width: 232px; padding: 11px 12px; border-radius: 4px 16px 4px 16px; display: grid; gap: 6px; border: 1px solid rgba(var(--holo), .55); background: linear-gradient(160deg, rgba(var(--holo), .16), rgba(13, 13, 13, .96) 40%); box-shadow: 0 0 34px rgba(var(--holo), .35), 0 18px 40px rgba(0, 0, 0, .6); animation: project .35s cubic-bezier(.2, 1, .3, 1); }
.orb-card[hidden] { display: none; }
.oc-top { display: flex; align-items: baseline; gap: 8px; } .oc-top strong { font-size: 17px; letter-spacing: .04em; } .oc-top span { font-family: var(--mono); flex: 1; } .oc-top button { color: var(--mute); font-size: 17px; line-height: 1; }
.orb-card small { color: var(--mute); margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .orb-card > b { font-size: 16px; text-shadow: 0 0 12px rgba(var(--holo), .7); }
.oc-facts { display: flex; flex-wrap: wrap; gap: 4px; } .oc-facts span { font: 500 10.5px 'JetBrains Mono', monospace; color: var(--mute); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.oc-act { display: flex; gap: 5px; } .oc-act button { flex: 1; padding: 7px 2px; border-radius: 6px; font: 600 11.5px 'JetBrains Mono', monospace; color: var(--up); border: 1px solid rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .08); }
.oc-act button:hover { background: var(--up); color: #02170e; } .oc-act button.s { color: var(--down); border-color: rgba(239, 79, 107, .45); background: rgba(239, 79, 107, .08); } .oc-act button.s:hover { background: var(--down); color: #fff; }
.oc-act button.g { color: rgb(var(--holo)); border-color: rgba(var(--holo), .45); background: rgba(var(--holo), .08); } .oc-act button.g:hover { background: rgb(var(--holo)); color: #0b0b0a; }
@media (prefers-reduced-motion: reduce) { .emitter { display: none; } }


/* =====================================================================
   NAVIGATION — fewer, clearer controls
   ===================================================================== */
/* numbered panel titles: 1 pick, 2 look, 3 trade, 4 track */
.ptitle { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--holo)); }
.ptitle b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--holo)); color: #0b0b0a; font: 700 11px 'Zen Kaku Gothic New'; }
.ticket > .ptitle { padding: 0 0 10px; } .ptitle.in { position: absolute; right: 12px; top: 9px; padding: 0; z-index: 3; }

/* coin list header: three lists, then one optional row */
.markets .tabs { display: block; padding: 0 10px 8px; border-bottom: 1px solid var(--line); overflow: visible; }
.nav3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.markets .tabs .nav3 button { display: grid; gap: 2px; justify-items: center; padding: 8px 2px; border: 1px solid var(--line2); border-radius: 9px; margin: 0; font-size: 10.5px; letter-spacing: .06em; color: var(--mute); background: rgba(0, 0, 0, .3); }
.nav3 button b { font-family: inherit; font-size: 15px; line-height: 1; }
.markets .tabs .nav3 button.on { color: #fff; border-color: rgb(var(--holo)); background: linear-gradient(160deg, rgba(var(--holo), .28), rgba(150, 148, 142, .2)); box-shadow: 0 0 16px rgba(var(--holo), .3); text-shadow: none; }
.sub { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.markets .tabs .sub button { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; margin: 0; font-size: 10.5px; letter-spacing: .04em; text-transform: none; }
.markets .tabs .sub button.on { color: rgb(var(--holo)); border-color: rgba(var(--holo), .6); background: rgba(var(--holo), .1); }
.fbar { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px; }
.fbar label { display: grid; gap: 2px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.fbar select { width: 100%; padding: 5px 6px; border-radius: 7px; border: 1px solid var(--line2); background: #121211; color: var(--text); font: 500 11.5px 'Zen Kaku Gothic New'; text-transform: none; letter-spacing: 0; }
.fbar select:focus { outline: 0; border-color: rgb(var(--holo)); }

/* stage switch: big and obvious */
#stageSeg { margin-left: auto; } #stageSeg button { padding: 6px 14px; font-size: 12.5px; }
#stageSeg + .srcseg { margin-left: 0; }

/* dock: every icon carries its name */
.dock { padding: 10px 20px 26px; gap: 22px; }
.dk .dl { opacity: 1; top: calc(100% + 6px); bottom: auto; translate: -50% 0; padding: 0; background: none; border: 0; box-shadow: none; font-size: 9.5px; letter-spacing: .1em; color: var(--mute); }
.dk:hover .dl { translate: -50% 0; color: #fff; }
.dk.hot .dl { color: var(--gold); }
.grid { padding-bottom: 112px; }
#toasts { bottom: 116px; }

/* ticket: stop and target tucked away until wanted */
#protect { margin-bottom: 9px; border: 1px dashed var(--line2); border-radius: 9px; padding: 0 9px; }
#protect[open] { padding-bottom: 2px; border-style: solid; }
#protect summary { cursor: pointer; list-style: none; padding: 8px 0; font-size: 11.5px; font-weight: 600; color: var(--mute); display: flex; justify-content: space-between; }
#protect summary::-webkit-details-marker { display: none; } #protect summary::before { content: '+'; margin-right: 7px; color: rgb(var(--holo)); font-weight: 700; } #protect[open] summary::before { content: '–'; }
#protect summary span { color: var(--dim); font-weight: 400; margin-left: auto; } #protect summary:hover { color: var(--text); }
.coach.flash { animation: flash 1.2s ease-out; } @keyframes flash { 0%, 40% { box-shadow: 0 0 0 2px rgb(var(--holo)), 0 0 50px rgba(var(--holo), .7); } }

/* guided tour */
.g-ring { position: fixed; z-index: 120; border-radius: 16px; border: 2px solid rgb(var(--holo)); box-shadow: 0 0 0 9999px rgba(5, 5, 5, .72), 0 0 30px rgba(var(--holo), .8); pointer-events: none; transition: all .35s cubic-bezier(.2, .9, .2, 1); }
.g-box { position: fixed; z-index: 121; width: 320px; padding: 16px 18px; border-radius: 4px 18px 4px 18px; border: 1px solid rgba(var(--holo), .6); background: linear-gradient(160deg, rgba(var(--holo), .18), #0e0e0d 45%); box-shadow: 0 0 40px rgba(var(--holo), .35), 0 20px 50px rgba(0, 0, 0, .6); transition: left .35s, top .35s; }
.g-box small { font: 500 10.5px 'JetBrains Mono', monospace; letter-spacing: .14em; color: rgb(var(--holo)); text-transform: uppercase; }
.g-box h3 { margin: 4px 0 6px; font-size: 18px; letter-spacing: .02em; } .g-box p { margin: 0 0 14px; color: var(--mute); font-size: 13px; line-height: 1.5; }
.g-act { display: flex; justify-content: space-between; gap: 8px; } .g-act button { padding: 8px 16px; border-radius: 8px; font-weight: 600; color: var(--mute); border: 1px solid var(--line2); }
.g-act .go { background: rgb(var(--holo)); color: #0b0b0a; border-color: transparent; box-shadow: 0 0 18px rgba(var(--holo), .5); }
@media (max-width: 1100px) { .dock { gap: 12px; padding: 8px 12px 24px; } }


/* =====================================================================
   PAGES — one per market, each with its own trading panel
   ===================================================================== */
.tape, #clsTabs { display: none; }
.pages { flex: none; display: flex; gap: 8px; padding: 2px 16px 0; position: relative; z-index: 5; overflow-x: auto; scrollbar-width: none; }
.pages a { flex: 1 1 0; min-width: 132px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--mute); border: 1px solid var(--line2); border-radius: 4px 14px 4px 14px; background: linear-gradient(160deg, rgba(var(--holo), .06), rgba(16, 16, 16, .8)); transition: all .18s; }
.pages a b { font-family: inherit; font-size: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--holo), .1); border: 1px solid rgba(var(--holo), .3); color: rgb(var(--holo)); flex: none; }
.pages a span { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; white-space: nowrap; }
.pages a small { display: block; font-weight: 400; font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--dim); }
.pages a:hover { color: #fff; border-color: rgba(var(--holo), .6); translate: 0 -1px; }
.pages a.on { color: #fff; border-color: rgb(var(--holo)); background: linear-gradient(160deg, rgba(var(--holo), .3), rgba(150, 148, 142, .22)); box-shadow: 0 0 22px rgba(var(--holo), .3), inset 0 -2px 0 rgb(var(--holo)); }
.pages a.on b { background: rgb(var(--holo)); color: #0b0b0a; box-shadow: 0 0 14px rgb(var(--holo)); } .pages a.on small { color: #cfe; }
.pages a[href='#/pulse'] b, .pages a[href='#/fresh'] b { border-color: rgba(236, 233, 225, .5); color: var(--gold); background: rgba(236, 233, 225, .1); }
.pages a[href='#/pulse'].on b, .pages a[href='#/fresh'].on b { background: var(--gold); color: #0b0b0a; box-shadow: 0 0 14px var(--gold); }
.grid { padding-top: 10px; }

/* Pulse board on the stage */
.stagebd { position: absolute; inset: 0; z-index: 6; margin: 0; padding: 10px; background: #0b0b0a; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stagebd[hidden] { display: none; }
.stagebd .pcol { min-height: 0; } .stagebd .pcol-body { max-height: none; flex: 1; min-height: 0; }
body[data-page='pulse'] .emitter, body[data-page='pulse'].stage-field .emitter { display: none; }
body.stage-field .emitter { opacity: .8; }

/* trading panel pieces that only some markets use */
#unitSeg { margin-bottom: 6px; } #unitSeg[hidden], #levQuick:empty { display: none; }
#levQuick button.on { color: rgb(var(--holo)); }
.fxbtns { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; margin-bottom: 12px; }
.fxbtns[hidden] { display: none; }
.fxbtns button { display: grid; gap: 2px; padding: 11px 6px; text-align: center; color: #fff; transition: filter .15s, box-shadow .2s; }
.fxbtns button small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .9; } .fxbtns button b { font-size: 17px; font-weight: 600; }
.fxbtns .s { background: linear-gradient(135deg, #ef4f6b, #c93a55); border-radius: 4px 0 0 14px; } .fxbtns .b { background: linear-gradient(135deg, #33c48a, #279a6c); border-radius: 0 14px 4px 0; }
.fxbtns button:hover { filter: brightness(1.15); } .fxbtns .s:hover { box-shadow: var(--glow-down); } .fxbtns .b:hover { box-shadow: var(--glow-up); }
.fxbtns span { z-index: 1; margin: 0 -14px; min-width: 40px; padding: 3px 6px; text-align: center; font: 600 11px 'JetBrains Mono', monospace; color: var(--text); background: #121211; border: 1px solid var(--line2); border-radius: 999px; }
#submit[hidden] { display: none; }
@media (max-width: 1100px) { .pages a { min-width: 118px; } .stagebd { grid-template-columns: 1fr; overflow-y: auto; } }

/* Pulse board: full width, the coin list steps aside */
body.stage-board .grid { --lw: 0px; }
body.stage-board .markets { opacity: 0; pointer-events: none; transform: translateX(-40px) !important; }
body.stage-board .bottom { height: 0; opacity: 0; margin-top: 0; border-width: 0; }
.stagebd .pc-top small { max-width: 46%; }


/* =====================================================================
   DOJO — ink black, paper white, stone grey. Colour is reserved for
   three things only: profit and loss, coin artwork, and belts.
   ===================================================================== */
:root {
  --holo: 236, 233, 225; --text: #f3f2ee; --mute: #a5a39d; --dim: #6c6a65; --paper: #ece9e1; --ink: #0b0b0a;
  --up: #3ddc97; --down: #ef4f6b; --gold: #f3f2ee; --cy: #f3f2ee; --vi: #9a9892; --warn: #d6a24c;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .18); --panel: #121211; --panel2: #191918; --solid: #121211;
  --glow-cy: 0 0 0 transparent; --glow-up: 0 0 0 transparent; --glow-down: 0 0 0 transparent;
  --serif: 'Shippori Mincho B1', 'Shippori Mincho', Georgia, serif;
}
body { background: #0a0a09; font-family: 'Zen Kaku Gothic New', system-ui, sans-serif; }
*, *::before, *::after { text-shadow: none !important; }
h1, h2, h3, .brand, .ptitle, .pages a span, .pcol h3, .g-box h3, .ev strong { font-family: var(--serif); letter-spacing: .04em; }

/* the hall: dark timber, a shoji lattice, an enso and the character for "the way" */
.bgfx { background: radial-gradient(120% 90% at 50% 0%, #1a1a18 0%, #0a0a09 62%); }
.bgfx i { filter: blur(110px); opacity: .22; } .bgfx .a1 { background: #8a8880; } .bgfx .a2 { background: #55534e; } .bgfx .a3 { background: #b9b6ad; opacity: .07; }
.gridfx { background-image: linear-gradient(rgba(255, 255, 255, .035) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .035) 2px, transparent 2px); background-size: 150px 210px; }
.floor, .cursor-light, .emitter, .corner, .chart-wrap::before { display: none !important; }
.bgfx::before { content: ''; position: absolute; right: -8vmin; top: 12vh; width: 78vmin; height: 78vmin; border-radius: 50%; border: 2.6vmin solid rgba(255, 255, 255, .04); border-left-color: transparent; border-bottom-color: rgba(255, 255, 255, .018); rotate: 24deg; }
.bgfx::after { content: '道'; position: absolute; left: 3vw; bottom: -6vh; font: 700 62vmin/1 var(--serif); color: rgba(255, 255, 255, .022); }
.glyphs span { display: grid; place-items: center; font: 700 1em var(--serif); color: #fff; filter: none; }

/* surfaces: lacquered black panels with a pale timber beam along the top */
.markets, .card, .bottom, .chart-head, .chart-wrap { background: var(--panel); border: 1px solid #2b2b29; border-radius: 3px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.chart-head { border-radius: 3px 3px 0 0; } .chart-wrap { border-radius: 0 0 3px 3px; background: #0d0d0c; }
.markets::after, .card::after, .bottom::after, .chart-head::after, .chart-wrap::after, .dialog::after { display: none; }
.markets::before, .card::before, .bottom::before { inset: 0 0 auto 0; height: 3px; padding: 0; border-radius: 0; opacity: 1; background: var(--paper); -webkit-mask: none; mask: none; animation: none !important; }
.chart-head { box-shadow: inset 0 3px 0 var(--paper), 0 18px 40px rgba(0, 0, 0, .5); }

/* top bar */
.brand, .acct, .top-right > .rank, .chip { background: var(--panel); border: 1px solid #2b2b29; border-radius: 3px; box-shadow: none; }
.brand #brandName { color: var(--text); font-weight: 700; }
.mark { background: var(--paper); color: var(--ink); clip-path: none; border-radius: 2px; filter: none; animation: none; font-family: var(--serif); }
.beta { color: var(--mute); border-color: #3a3a37; box-shadow: none; }
.pill { color: var(--text); border-color: #3a3a37; background: var(--panel); border-radius: 3px; }
.btn { border-radius: 3px; } .btn.gold { background: var(--paper); color: var(--ink); box-shadow: none; border-color: var(--paper); }
.rank { cursor: pointer; grid-template-columns: auto auto 64px auto; } .rank::before { content: ''; width: 26px; height: 9px; border-radius: 2px; background: var(--belt, #f4f4f4); border: 1px solid rgba(255, 255, 255, .35); }
.xpbar i { background: var(--paper); box-shadow: none; }

/* market pages: name plaques on the wall */
.pages a { border-radius: 2px; background: var(--panel); border: 1px solid #2b2b29; color: var(--mute); }
.pages a b, .pages a[href='#/pulse'] b, .pages a[href='#/fresh'] b { background: none; border: 1px solid #3a3a37; color: var(--text); border-radius: 2px; }
.pages a:hover { border-color: #6c6a65; }
.pages a.on { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }
.pages a.on b, .pages a[href='#/pulse'].on b, .pages a[href='#/fresh'].on b { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
.pages a.on small { color: #55534e; }

/* lists, tabs, controls */
.ptitle { color: var(--text); } .ptitle b { background: var(--paper); color: var(--ink); border-radius: 2px; font-family: var(--serif); }
.mrow.on { background: #1d1d1b; box-shadow: inset 3px 0 0 var(--paper); } .mrow:hover { background: #181817; }
.dot.live { background: var(--up); box-shadow: none; }
.tabs button.on { color: var(--text); border-color: var(--paper); }
.seg { background: #0a0a09; border-radius: 3px; } .seg button { border-radius: 2px; }
.seg button.on, #stageSeg button.on, .srcseg button.on, .tfs button.on { background: var(--paper); color: var(--ink); box-shadow: none; }
.seg button.long.on { background: var(--up); color: #04170f; } .seg button.short.on { background: var(--down); color: #fff; }
.field input:not([type=range]), #search, .fbar select, .pick { background: #0a0a09; border-color: #2b2b29; border-radius: 3px; }
.field input:focus, #search:focus { border-color: var(--paper); box-shadow: none; }
input[type=range] { accent-color: var(--paper); }
.submit { clip-path: none; border-radius: 3px; box-shadow: none !important; } .submit::before { display: none; }
.qt, .check, .tipcard, .msg, .sbox, .scan-verdict, #protect { border-radius: 3px; }
.tipcard { border-left-color: var(--paper); } .tipcard .cat, .field label b { color: var(--text); }
.inds button.on { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.tools { border-radius: 3px; background: #121211; } .tools button.on { background: var(--paper); color: var(--ink); box-shadow: none; }
.tk, .pf, .tag { border-radius: 2px; }
.holo-coin { perspective: none; width: 44px; height: 44px; } .holo-coin > i, .holo-coin > u, .holo-coin > b { display: none; }
.wm { -webkit-text-stroke: 1px rgba(255, 255, 255, .07); font-family: var(--serif); transform: none; }

/* logos and art */
.lg { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: conic-gradient(from var(--r), hsl(40 4% var(--g)), hsl(40 4% calc(var(--g) - 12%)), hsl(40 4% calc(var(--g) + 8%)), hsl(40 4% var(--g))); border: 1px solid rgba(255, 255, 255, .22); }
.lg i { font: 700 12px var(--serif); font-style: normal; color: #fff; letter-spacing: 0; }
.lg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }
.lg.stocks img { object-fit: contain; padding: 16%; background: #f3f2ee; } .lg.crypto img { background: #f3f2ee; }
.lg.forex img.q { inset: auto 0 0 auto; width: 58%; height: 58%; border-radius: 50%; border: 1.5px solid #121211; }
.lg.forex img:not(.q) { width: 78%; height: 78%; border-radius: 50%; inset: 0 auto auto 0; }
.lg.forex { background: none; border: 0; overflow: visible; }
.lg.sm { width: 20px; height: 20px; vertical-align: -5px; margin-right: 7px; display: inline-grid; } .lg.sm i { font-size: 9px; }
.lg.big { width: 44px; height: 44px; } .lg.big i { font-size: 17px; }
.mrow { gap: 10px; } .mrow .l { flex: 1; min-width: 0; } .mrow small { max-width: 110px; }
.pc-top .lg { align-self: center; }
.orb img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; opacity: .5; }
.orb b, .orb span { position: relative; text-shadow: 0 1px 3px #000, 0 0 8px #000 !important; }
.orb { border-width: 2px; } .orb::before { display: none; }

/* dock: a low black bench */
.dock { background: #0e0e0d; border: 1px solid #2f2f2c; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); backdrop-filter: none; }
.dock::before, .dk::before { display: none; }
.dk { border-radius: 3px; background: #191918; border: 1px solid #34342f; color: var(--text); box-shadow: none; animation: none; }
.dk svg { filter: none; } .dk:hover { background: #24241f; box-shadow: none; }
.dk.hot { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; } .dk.hot .dl { color: var(--text); }
.dk.ping::after { background: var(--paper); box-shadow: none; }

/* windows: dark by default; the important ones are hanging scrolls */
.dialog { background: #121211; border: 1px solid #34342f; border-radius: 3px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: unroll .45s cubic-bezier(.2, 1, .3, 1); }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.dialog h2 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); font-size: 28px; }
.dialog h3 { color: var(--text); }
.dialog.scroll { background: var(--paper); color: #1a1a18; border: 0; border-top: 12px solid var(--ink); border-bottom: 12px solid var(--ink); box-shadow: 0 0 0 1px #000, 0 40px 90px rgba(0, 0, 0, .8); }
.dialog.scroll h2 { color: var(--ink); } .dialog.scroll p { color: #4a4843; } .dialog.scroll .x { color: #55534e; } .dialog.scroll .note { color: #77746d !important; }
.dialog.scroll .perks li { background: rgba(0, 0, 0, .05); border-color: rgba(0, 0, 0, .14); border-radius: 2px; color: #2a2926; } .dialog.scroll .perks b { color: var(--ink); }
.dialog.scroll .field label { color: #55534e; } .dialog.scroll .field input { background: #fff !important; color: var(--ink); border-color: rgba(0, 0, 0, .3) !important; }
.dialog.scroll .btn.gold { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toast { background: #191918; border: 1px solid #34342f; border-left: 3px solid var(--paper); border-radius: 3px; } .toast .who { color: var(--text); }
.toast.praise { border-left-color: var(--up); } .toast.warn { border-left-color: var(--warn); } .toast.err { border-left-color: var(--down); }
.g-ring { border-color: var(--paper); border-radius: 4px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .78); } .g-box { background: var(--paper); color: var(--ink); border: 0; border-radius: 3px; border-top: 8px solid var(--ink); }
.g-box small { color: #55534e; } .g-box p { color: #4a4843; } .g-act button { color: #4a4843; border-color: rgba(0, 0, 0, .25); border-radius: 3px; } .g-act .go { background: var(--ink); color: var(--paper); box-shadow: none; }
.pc, .pcol, .ev, .pack, .sday, .mission, .orb-card { border-radius: 3px; }
.pc-act button.g, .oc-act button.g { color: var(--text); border-color: #4a4843; background: #1d1d1b; } .pc-act button.g:hover, .oc-act button.g:hover { background: var(--paper); color: var(--ink); }
.scan-links a { color: var(--text); border-color: #4a4843; border-radius: 3px; }
.banner b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--paper); filter: none; font-family: var(--serif); } .banner span { color: var(--mute); }
.banner { background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent 75%); }

/* the path of belts */
.belts { display: grid; gap: 8px; margin-top: 6px; }
.belt-row { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 2px; background: rgba(0, 0, 0, .035); }
.belt-row.locked { opacity: .5; } .belt-row.next { border: 2px solid var(--ink); background: #fff; } .belt-row.earned .belt-head span { color: #2c7a55; font-weight: 700; }
.belt-art { display: grid; place-items: center; } .belt { display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.belt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .belt-head strong { font: 700 18px var(--serif); color: var(--ink); } .belt-head span { font-size: 11.5px; color: #55534e; }
.belt-row em { display: block; font-style: italic; color: #55534e; font-size: 12.5px; margin: 1px 0 4px; }
.belt-row ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; } .belt-row li { padding-left: 22px; position: relative; color: #2a2926; font-size: 13px; }
.belt-row li::before { content: ''; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border: 1.5px solid #55534e; border-radius: 2px; }
.belt-row li.done { color: #77746d; text-decoration: line-through; } .belt-row li.done::before { background: var(--ink); border-color: var(--ink); } .belt-row li.done::after { content: '✓'; position: absolute; left: 2.5px; top: 0; font-size: 11px; color: var(--paper); text-decoration: none; }

/* promotion ceremony */
.ceremony { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(0, 0, 0, .9); animation: fadein .5s; }
@keyframes fadein { from { opacity: 0; } }
.ceremony div { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 20px; }
.ceremony small { letter-spacing: .4em; text-transform: uppercase; color: var(--mute); font-size: 12px; }
.ceremony .belt { animation: present 1.1s cubic-bezier(.2, 1.1, .3, 1) both; max-width: 80vw; height: auto; } @keyframes present { from { transform: translateY(60px) scale(.7); opacity: 0; } }
.ceremony h2 { margin: 6px 0 0; font: 700 clamp(34px, 7vw, 76px)/1 var(--serif); color: var(--paper); }
.ceremony p { margin: 0; color: var(--mute); font-style: italic; font-size: 16px; max-width: 520px; } .ceremony span { font-family: var(--mono); color: var(--paper); }
.ceremony button { margin-top: 12px; padding: 10px 34px; background: var(--paper); color: var(--ink); border-radius: 3px; font: 700 15px var(--serif); letter-spacing: .2em; }

/* entrance: shoji doors slide open */
#boot { background: none; display: block; transition: none; } #boot.out { opacity: 1; visibility: visible; pointer-events: none; }
#boot .door { position: absolute; top: 0; bottom: 0; width: 50.2%; height: auto; display: block; background-color: var(--paper);
  background-image: linear-gradient(#1a1a18 0 0), linear-gradient(#1a1a18 0 0), repeating-linear-gradient(90deg, transparent 0 calc(25% - 3px), #1a1a18 calc(25% - 3px) 25%), repeating-linear-gradient(0deg, transparent 0 calc(16.66% - 3px), #1a1a18 calc(16.66% - 3px) 16.66%);
  background-size: 100% 14px, 14px 100%, auto, auto; background-repeat: no-repeat, no-repeat, repeat, repeat; transition: transform 1s cubic-bezier(.7, 0, .2, 1); box-shadow: 0 0 60px rgba(0, 0, 0, .8); }
#boot .door.l { left: 0; background-position: 0 0, 100% 0, 0 0, 0 0; } #boot .door.r { right: 0; background-position: 0 0, 0 0, 0 0, 0 0; }
#boot.out .door.l { transform: translateX(-101%); } #boot.out .door.r { transform: translateX(101%); }
#boot .rei { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; text-align: center; padding: 22px 30px; background: var(--ink); color: var(--paper); border-radius: 2px; transition: opacity .35s; animation: none; z-index: 2; }
#boot .rei b { display: block; font: 700 64px/1 var(--serif); animation: none; color: var(--paper); } #boot .rei span { position: static; translate: none; display: block; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .4em; text-transform: uppercase; color: var(--mute); animation: none; }
#boot.out .rei { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #boot { display: none; } }


/* =====================================================================
   THE HALL — where you arrive
   ===================================================================== */
body[data-page='dojo'] .grid { display: none; }
#hall { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 120px; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2.1fr) minmax(260px, 1fr); gap: 14px; align-items: start; position: relative; z-index: 2; }
#hall[hidden] { display: none; }
.hall-wait { grid-column: 1 / -1; padding: 80px; text-align: center; color: var(--mute); font-family: var(--serif); font-size: 20px; }
.hall-col { display: grid; gap: 14px; min-width: 0; }
.hall-card { position: relative; background: var(--panel); border: 1px solid #2b2b29; border-top: 3px solid var(--paper); border-radius: 3px; padding: 16px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.hall-card > small { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.kamiza { text-align: center; background: var(--paper); color: var(--ink); border-color: var(--paper); border-top: 10px solid var(--ink); }
.kamiza > small { color: #6c6a65; } .kamiza .belt { margin: 4px auto 2px; max-width: 100%; height: auto; }
.kamiza h2 { margin: 6px 0 0; font: 800 30px/1.1 var(--serif); color: var(--ink); } .rank-line { margin: 2px 0 0; font: 700 14px var(--serif); letter-spacing: .2em; text-transform: uppercase; color: #3a3a37; }
.kamiza > em { display: block; margin: 6px 0 12px; color: #6c6a65; font-size: 13px; }
.kamiza dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 0 14px; padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, .15); border-bottom: 1px solid rgba(0, 0, 0, .15); }
.kamiza dt { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #77746d; } .kamiza dd { margin: 0; font: 600 14px var(--mono); color: var(--ink); }
.next-belt { text-align: left; margin-bottom: 12px; } .nb-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; margin-bottom: 5px; } .nb-head b { font-family: var(--mono); }
.next-belt .bar { background: rgba(0, 0, 0, .12); height: 5px; margin: 0 0 8px; } .next-belt .bar i { background: var(--ink); box-shadow: none; }
.next-belt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; } .next-belt li { padding-left: 20px; position: relative; }
.next-belt li::before { content: ''; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border: 1.5px solid #55534e; border-radius: 2px; } .next-belt li.done { color: #8a877f; text-decoration: line-through; } .next-belt li.done::before { background: var(--ink); border-color: var(--ink); }
.kamiza .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); width: 100%; }
.kun ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font: 500 14px/1.45 var(--serif); color: var(--text); } .kun li::marker { color: var(--mute); }
.sensei { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; } .sensei-art { width: 84px; height: 84px; }
.sensei small { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); } .sensei h3 { margin: 2px 0 4px; font-size: 22px; } .sensei p { margin: 0 0 6px; color: var(--text); font-size: 14px; line-height: 1.5; }
.sensei .teach { color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; } .sensei .teach b { font-family: inherit; font-weight: 700; color: var(--text); }
.doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.door-card { position: relative; text-align: left; display: grid; gap: 2px; padding: 14px 14px 12px; min-height: 132px; border: 1px solid #34342f; border-radius: 2px; background: #181817; transition: background .18s, color .18s, translate .18s; overflow: hidden; }
.door-card .kanji { position: absolute; right: 6px; top: -8px; font: 800 64px/1 var(--serif); color: rgba(255, 255, 255, .07); transition: color .18s; }
.door-card strong { font: 700 19px var(--serif); } .door-card small { color: var(--mute); font-size: 12px; } .door-card em { font-style: normal; font: 500 11px var(--mono); color: var(--mute); margin-top: auto; }
.door-art { display: flex; margin: 8px 0 6px; min-height: 22px; } .door-art .lg.sm { margin-right: -5px; width: 22px; height: 22px; border-color: #181817; }
.door-card:hover { background: var(--paper); color: var(--ink); translate: 0 -2px; } .door-card:hover small, .door-card:hover em { color: #55534e; } .door-card:hover .kanji { color: rgba(0, 0, 0, .1); }
.hall-card .missions { gap: 6px; } .hall-card .mission { border-radius: 2px; background: #181817; } .hall-card .mission .rw { color: var(--text); min-width: 50px; } .hall-card .bar i { background: var(--paper); box-shadow: none; }
.stamps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 12px; }
.stamps span { display: grid; justify-items: center; gap: 3px; } .stamps b { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border: 1.5px dashed #4a4843; border-radius: 50%; font: 700 13px var(--serif); color: var(--dim); }
.stamps i { font-style: normal; font: 500 9.5px var(--mono); color: var(--dim); }
.stamps .in b { border: 2px solid var(--paper); background: var(--paper); color: var(--ink); rotate: -8deg; } .stamps .in i { color: var(--mute); }
.stamps .today b { border: 2px solid var(--paper); color: var(--text); animation: breathe3 1.6s ease-in-out infinite; } @keyframes breathe3 { 50% { scale: 1.08; } }
.hall-card .btn { width: 100%; } .quiet { margin: 0 0 12px; color: var(--mute); font-size: 13px; line-height: 1.5; }
.plaques { display: grid; gap: 4px; } .plaque { display: grid; grid-template-columns: 5px 20px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px 7px 0; background: #181817; border-radius: 2px; font-size: 13px; overflow: hidden; }
.plaque i { align-self: stretch; } .plaque b { font-family: var(--mono); color: var(--mute); font-size: 11px; } .plaque span { font: 700 14px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .plaque em { font-style: normal; font: 500 12px var(--mono); }
.plaque.me { background: var(--paper); color: var(--ink); } .plaque.me b { color: #55534e; }
.pages a[href='#/dojo'] b { font-family: var(--serif); }
@media (max-width: 1100px) { #hall { grid-template-columns: 1fr; } }


/* token bar: socials, research links, holder stats — above the chart on coin pages */
.tokbar { flex: none; background: var(--panel); border: 1px solid #2b2b29; border-top: 0; padding: 8px 12px 9px; display: grid; gap: 7px; }
.tokbar[hidden], body.stage-board .tokbar { display: none; }
.tl-row, .ts-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tl { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid #3a3a37; border-radius: 3px; font-size: 12px; font-weight: 500; color: var(--text); text-decoration: none; background: #181817; white-space: nowrap; transition: background .15s, color .15s; }
.tl svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a.tl:hover, button.tl:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tl.soc { border-color: var(--paper); font-weight: 700; } .tl.none { color: var(--dim); border-style: dashed; cursor: help; }
.tl.ca b { font-size: 12px; } .tokbar .sep { width: 1px; height: 18px; background: #3a3a37; margin: 0 3px; }
.ts { display: grid; gap: 0; padding: 3px 10px 4px; border-left: 2px solid #3a3a37; background: #151514; min-width: 62px; text-align: left; }
.ts small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); } .ts b { font-size: 12.5px; color: var(--text); } .ts b i { font-style: normal; }
.ts.good { border-left-color: var(--up); } .ts.warn { border-left-color: var(--warn); } .ts.bad { border-left-color: var(--down); } .ts.bad b { color: var(--down); }
button.ts.verdict { cursor: pointer; margin-left: auto; } button.ts.verdict:hover { background: #24241f; } .ts.verdict b { font-family: inherit; font-weight: 700; }
.chart-head { border-bottom: 0; }

/* keep the token bar to two lines so the chart keeps its height; each line scrolls sideways if needed */
.tl-row, .ts-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tl-row::-webkit-scrollbar, .ts-row::-webkit-scrollbar { display: none; }
.tl, .ts { flex: none; } button.ts.verdict { margin-left: 0; order: -1; }
body[data-page='pulse'] .bottom, body[data-page='fresh'] .bottom { height: 176px; }


/* =====================================================================
   ROOM TO BREATHE — slimmer side panels, tucked-away menus, nothing empty
   ===================================================================== */
:root { --lw: 236px; --rw: 322px; }
.grid { gap: 14px; }
.chart-head { position: relative; z-index: 9; gap: 12px 16px; padding: 12px 16px; }
.indmenu { position: relative; margin-left: auto; } #stageSeg { margin-left: 0; }
.indmenu summary { list-style: none; cursor: pointer; padding: 5px 12px; border: 1px solid #3a3a37; border-radius: 3px; font-size: 12px; font-weight: 500; color: var(--mute); }
.indmenu summary::-webkit-details-marker { display: none; } .indmenu summary::after { content: ' ▾'; } .indmenu summary:hover, .indmenu[open] summary { color: var(--text); border-color: var(--paper); }
.indmenu .inds { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(3, auto); gap: 5px; background: #191918; border: 1px solid #3a3a37; border-radius: 3px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
body.stage-field .indmenu { display: none !important; }
.tokbar { padding: 10px 16px; gap: 9px; position: relative; z-index: 8; }
.tl-row { flex-wrap: wrap; overflow: visible; gap: 6px; } .ts-row { gap: 6px; }
.tl-more { position: relative; } .tl-more summary { list-style: none; cursor: pointer; } .tl-more summary::-webkit-details-marker { display: none; } .tl-more summary::after { content: ' ▾'; }
.tl-more > div { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 4px; padding: 8px; min-width: 170px; background: #191918; border: 1px solid #3a3a37; border-radius: 3px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.tl-more > div .tl { justify-content: flex-start; }
.ts { padding: 4px 12px 5px; } .ticket .field { margin-bottom: 11px; } .sum { gap: 5px 10px; }
td button[data-share] { margin-left: 8px; }
.card-wrap { margin: 4px 0 14px; } .card-wrap canvas { display: block; width: 100%; height: auto; border: 1px solid #34342f; border-radius: 3px; }

/* =====================================================================
   PHONES — one panel at a time, switched by a tab row
   ===================================================================== */
.mtabs { display: none; }
@media (max-width: 900px) {
  body { overflow: hidden; }
  .top { height: auto; flex-wrap: wrap; padding: 6px 10px; gap: 6px; } .brand { padding: 5px 10px; font-size: 14px; } .acct { gap: 12px; padding: 5px 10px; flex: 1; }
  .stat b { font-size: 12.5px; } .top-right { margin-left: 0; width: 100%; justify-content: space-between; } .top-right > .rank { display: grid; }
  .pages { padding: 0 10px; gap: 6px; } .pages a { min-width: 0; flex: none; padding: 6px 10px; } .pages a small { display: none; } .pages a b { width: 24px; height: 24px; font-size: 14px; }
  .mtabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 10px 0; flex: none; }
  .mtabs button { padding: 8px 2px; border: 1px solid #2b2b29; border-radius: 3px; background: var(--panel); color: var(--mute); font-weight: 700; font-size: 12.5px; }
  .mtabs button.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  body[data-page='dojo'] .mtabs { display: none; }
  .grid { display: block; padding: 8px 10px 92px; grid-template-columns: none; }
  .grid > .markets, .grid > .center, .grid > .side { display: none; height: 100%; max-height: none; opacity: 1; transform: none !important; pointer-events: auto; }
  body[data-mt='list'] .grid > .markets { display: flex; }
  body[data-mt='stage'] .grid > .center, body[data-mt='track'] .grid > .center { display: flex; }
  body[data-mt='stage'] .bottom { display: none; }
  body[data-mt='track'] .chart-head, body[data-mt='track'] .tokbar, body[data-mt='track'] .chart-wrap { display: none; }
  body[data-mt='track'] .bottom { height: auto !important; flex: 1; margin: 0; opacity: 1; border-width: 1px; }
  body[data-mt='trade'] .grid > .side { display: flex; overflow-y: auto; }
  .chart-wrap { min-height: 260px; } .sym h1 { font-size: 18px; } #chName { display: none; }
  .stagebd { grid-template-columns: 1fr; overflow-y: auto; align-content: start; } .stagebd .pcol-body { max-height: 420px; }
  .dock { left: 0; right: 0; bottom: 0; translate: none; border-radius: 0; border-width: 1px 0 0; justify-content: space-around; gap: 2px; padding: 6px 6px 20px; overflow-x: auto; }
  .dk { width: 40px; height: 40px; flex: none; scale: 1 !important; } .dk .dl { font-size: 8.5px; letter-spacing: .04em; } .dsep { display: none; }
  #toasts { left: 10px; right: 10px; width: auto; bottom: 88px; }
  #hall { grid-template-columns: 1fr; padding: 10px 10px 100px; } .doors { grid-template-columns: repeat(2, 1fr); } .kamiza dl { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dialog { padding: 18px 14px; } .belt-row { grid-template-columns: 1fr; } .g-box { width: calc(100vw - 24px); }
}

/* phones: a compact two-line header, and the chart panel scrolls so the chart keeps a usable height */
@media (max-width: 900px) {
  .top { display: grid; grid-template-columns: auto 1fr; align-items: stretch; }
  .brand #brandName, .beta { display: none; } .brand { padding: 5px 8px; }
  .top-right { grid-column: 1 / -1; gap: 6px; } .top-right > .rank { flex: 1; grid-template-columns: auto auto 1fr; } .rank small { display: none; }
  .pill { padding: 6px 8px; font-size: 11px; } .top-right .btn { padding: 6px 10px; }
  body[data-mt='stage'] .grid > .center { overflow-y: auto; } .chart-wrap { flex: none; height: 400px; }
  .chart-head { padding: 10px 12px; } .tokbar { padding: 8px 12px; }
}


/* Bubbles get the whole stage: the coin's link bar and most of the positions panel step aside */
body.stage-field .tokbar { display: none; }
body.stage-field .bottom { height: 96px; }
.orb { transition: scale .22s ease-out, opacity .3s, width .35s ease, height .35s ease; }
#field::before { top: 8px; }

/* the logo in the pinned bubble card keeps its shape */
.oc-top .lg { flex: none; }


/* Bubble under the cursor: the swell is drawn by the motion code, so CSS must not scale it too (that double-scaling flickered) */
.orb, .orb:hover, .orb.pin, .orb.near { scale: 1; }
.orb.in { animation: orbfade .45s ease-out; } @keyframes orbfade { from { opacity: 0; } }
.orb:hover { box-shadow: 0 0 calc(var(--sz) * .34) color-mix(in srgb, var(--c) calc(var(--a) * 90%), transparent), inset 0 0 calc(var(--sz) * .26) color-mix(in srgb, var(--c) 45%, transparent); z-index: auto; }
.orb.near, .orb.pin { z-index: 4; box-shadow: 0 0 calc(var(--sz) * .6) var(--c), inset 0 0 calc(var(--sz) * .3) color-mix(in srgb, var(--c) 60%, transparent); }
.orb { transition: box-shadow .25s, opacity .3s, width .35s ease, height .35s ease; cursor: pointer; }


/* PRIZE FUND */
.pay { display: flex; gap: 8px; margin: 4px 0 10px; }
.pay input { flex: 1; min-width: 0; padding: 10px 12px; background: #0e0e0d; border: 1px solid var(--line); border-radius: 2px; color: var(--text); font: 12.5px 'JetBrains Mono', monospace; }
.pay input:focus { outline: none; border-color: var(--paper, #ece9e1); }
.won { display: grid; gap: 6px; }
.won > div { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 2px; }
.won strong { flex: 1; font-weight: 500; } .won b { font-family: 'JetBrains Mono', monospace; color: #fff; } .won em { font-style: normal; color: var(--mute); font-size: 12px; min-width: 150px; text-align: right; }
.won a { color: var(--text); font-size: 12px; min-width: 150px; text-align: right; }
.fundstrip { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--paper, #ece9e1); background: #121211; }
.fundstrip span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); } .fundstrip b { font: 600 20px 'JetBrains Mono', monospace; color: #fff; } .fundstrip em { font-style: normal; color: var(--mute); font-size: 12px; }
.prize.solpot b { font-size: 14px; } .solp { color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) { .pay { flex-direction: column; } .won > div { flex-wrap: wrap; } .won em, .won a { min-width: 0; text-align: left; } }


/* DOJO PORTRAIT */
.pfp { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.pfpstage { display: grid; gap: 10px; } .pfpstage canvas { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); background: #161615; cursor: grab; touch-action: none; display: block; }
.pfpstage canvas:active { cursor: grabbing; } .pfpfile { text-align: center; cursor: pointer; }
#pfpCtl { display: grid; gap: 10px; } #pfpCtl > label { display: grid; gap: 4px; font-size: 12px; color: var(--mute); } #pfpCtl input[type=range] { width: 100%; accent-color: #ece9e1; }
.seg.pfp3 { grid-template-columns: repeat(3, 1fr); margin: 0; }
.pfpchk { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; } .pfpchk label { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; } .pfpchk input { accent-color: #ece9e1; }
.pfpbelts small { display: block; font-size: 12px; color: var(--mute); margin-bottom: 6px; } .pfpbelts div { display: flex; flex-wrap: wrap; gap: 6px; }
.pfpbelts button { width: 34px; height: 18px; background: var(--b); border: 1px solid rgba(255, 255, 255, .25); border-radius: 2px; } .pfpbelts button.on { outline: 2px solid #fff; outline-offset: 2px; }
.pfpbelts button:disabled { opacity: .22; cursor: not-allowed; }
@media (max-width: 720px) { .pfp { grid-template-columns: 1fr; } .pfpstage { max-width: 320px; margin: 0 auto; width: 100%; } }


/* TRAINING HALL */
body.training { overflow: hidden; }
#train { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto auto 1fr; background: #0c0c0b; color: var(--text); overflow: hidden; animation: trin .5s ease-out; }
@keyframes trin { from { opacity: 0; transform: scale(1.03); } }
.tr-room { position: absolute; inset: 0; pointer-events: none; }
.tr-wall { position: absolute; inset: 0 0 34% 0; background: linear-gradient(#0000, #0c0c0b 96%), repeating-linear-gradient(90deg, #0000 0 118px, #2b2a27 118px 121px), repeating-linear-gradient(0deg, #0000 0 88px, #232220 88px 90px), #171716; }
.tr-floor { position: absolute; inset: 66% -20% 0 -20%; background: repeating-linear-gradient(90deg, #1b1a18 0 138px, #121211 138px 141px); transform: perspective(700px) rotateX(48deg); transform-origin: top; box-shadow: inset 0 60px 80px #000a; }
.tr-kake { position: absolute; right: 5%; top: 84px; width: 74px; padding: 22px 0; background: #ece9e1; color: #111110; display: grid; justify-items: center; gap: 6px; font: 800 40px 'Shippori Mincho B1', serif; box-shadow: 0 20px 40px #000a; opacity: .9; }
.tr-kake::before, .tr-kake::after { content: ''; position: absolute; left: -7px; right: -7px; height: 7px; background: #55534e; } .tr-kake::before { top: 0; } .tr-kake::after { bottom: 0; }
.tr-top { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #0c0c0be6; }
.tr-top h2 { flex: 1; margin: 0; font: 800 22px 'Shippori Mincho B1', serif; color: #fff; }
.tr-say { position: relative; display: flex; gap: 12px; align-items: center; margin: 14px auto 0; padding: 10px 16px; width: min(760px, calc(100% - 32px)); border: 1px solid var(--line); background: #131312; }
.tr-say b { font: 800 18px 'Shippori Mincho B1', serif; color: #fff; writing-mode: vertical-rl; } .tr-say span { color: var(--text); font-size: 14px; }
.tr-main { position: relative; overflow: auto; padding: 18px 16px 40px; display: grid; align-content: start; justify-items: center; }
.tr-stations { display: grid; grid-template-columns: repeat(4, minmax(0, 230px)); gap: 16px; margin-top: 4vh; }
.tr-st { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 22px 14px 16px; background: #141413; border: 1px solid var(--line); color: var(--text); transition: transform .25s, border-color .25s, background .25s; }
.tr-st:hover:not(:disabled) { transform: translateY(-8px); border-color: #ece9e1; background: #1a1a18; }
.tr-st svg { width: 120px; height: 90px; color: #ece9e1; } .tr-st i { position: absolute; left: 10px; top: 8px; font: 800 20px 'Shippori Mincho B1', serif; font-style: normal; color: var(--mute); writing-mode: vertical-rl; }
.tr-st strong { font: 800 19px 'Shippori Mincho B1', serif; color: #fff; } .tr-st span { font-size: 12.5px; color: var(--mute); min-height: 38px; } .tr-st em { font-style: normal; font-size: 11.5px; color: var(--text); border-top: 1px solid var(--line); padding-top: 8px; width: 100%; }
.tr-st.locked { opacity: .45; cursor: not-allowed; } .tr-st.locked svg { color: #55534e; }
.tr-stacks { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); gap: 14px; }
.tr-stack { display: grid; gap: 6px; justify-items: center; padding: 16px 10px; background: #141413; border: 1px solid var(--line); color: var(--text); text-align: center; transition: transform .2s, border-color .2s; }
.tr-stack:hover { transform: translateY(-5px); border-color: #ece9e1; } .tr-stack strong { font-size: 13.5px; color: #fff; } .tr-stack span { font-size: 11.5px; color: var(--mute); }
.pile { display: grid; gap: 3px; margin-bottom: 6px; } .pile b { display: block; width: 84px; height: 11px; background: #8f8d87; border: 1px solid #55534e; }
.tr-stack.done .pile b { background: linear-gradient(90deg, #55534e 0 44%, #0000 44% 56%, #55534e 56%); border-color: #0000; transform: rotate(var(--r, 0deg)); } .tr-stack.done .pile b:nth-child(odd) { --r: -3deg; } .tr-stack.done .pile b:nth-child(even) { --r: 2deg; }
.tr-lesson { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; width: min(1080px, 100%); align-items: start; }
.tr-scroll { background: #ece9e1; color: #1a1a19; padding: 22px 24px; border-top: 8px solid #55534e; border-bottom: 8px solid #55534e; max-height: 68vh; overflow: auto; }
.tr-scroll h3 { font: 800 22px 'Shippori Mincho B1', serif; margin: 0 0 10px; color: #111110; } .tr-scroll p { margin: 0 0 10px; line-height: 1.6; font-size: 14px; color: #2a2927; }
.tr-strike { display: grid; gap: 12px; background: #131312; border: 1px solid var(--line); padding: 18px; } .tr-strike h4, .tr-bo h4 { margin: 0; font-size: 15px; color: #fff; line-height: 1.45; font-weight: 600; }
.tr-opts { display: grid; gap: 6px; } .tr-opts button { text-align: left; padding: 10px 12px; border: 1px solid var(--line); color: var(--text); background: #0e0e0d; font-size: 13.5px; }
.tr-opts button:hover:not(:disabled) { border-color: #8f8d87; } .tr-opts button.on { border-color: #ece9e1; background: #ece9e1; color: #111110; } .tr-opts button:disabled { opacity: .4; text-decoration: line-through; } .tr-opts button.on:disabled { opacity: 1; text-decoration: none; }
.tr-pile { position: relative; display: grid; justify-items: center; gap: 3px; padding-top: 46px; height: 150px; }
.tr-pile .brick { display: flex; gap: 0; width: 170px; height: 15px; } .tr-pile .brick i { flex: 1; background: #a09d95; border: 1px solid #55534e; transition: transform .35s ease-out, opacity .5s .2s; }
.tr-pile .brick.broken i:first-child { transform: translate(-16px, 12px) rotate(-16deg); opacity: .35; } .tr-pile .brick.broken i:last-child { transform: translate(16px, 12px) rotate(16deg); opacity: .35; }
.tr-pile .stand { width: 210px; height: 8px; background: #2b2a27; } .tr-pile .fist { position: absolute; top: 0; width: 46px; height: 34px; background: #ece9e1; border-radius: 8px 8px 12px 12px; transition: transform .16s cubic-bezier(.6, 0, 1, .4); }
.tr-pile.hit .fist { transform: translateY(42px); } .tr-pile.thud { animation: thud .4s; } @keyframes thud { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.tr-meter { position: relative; height: 16px; background: #0e0e0d; border: 1px solid var(--line); } .tr-meter i { position: absolute; left: 40%; right: 40%; top: 0; bottom: 0; background: #ece9e155; } .tr-meter b { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; background: #fff; }
.tr-why p { margin: 0 0 10px; font-size: 13.5px; color: var(--text); line-height: 1.55; } .tr-why b { color: #fff; }
.tr-air { position: relative; width: min(1100px, 100%); height: min(66vh, 620px); border: 1px solid var(--line); background: #0e0e0dcc; overflow: hidden; touch-action: none; cursor: crosshair; user-select: none; }
.tr-card { position: absolute; left: 0; top: 0; padding: 10px 14px; background: #ece9e1; color: #111110; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 10px 24px #000a; will-change: transform; pointer-events: none; }
.tr-card.sliced { background: #55534e; color: #ece9e1; clip-path: polygon(0 0, 100% 0, 100% 38%, 0 62%); opacity: .5; transition: opacity .4s; } .tr-card.oops { outline: 3px solid #b3261e; background: #fff; }
.tr-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .tr-trail polyline { stroke: #fff; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px #fff); }
.tr-hud { position: absolute; left: 14px; top: 10px; display: flex; gap: 12px; align-items: baseline; pointer-events: none; } .tr-hud b { font: 600 30px 'JetBrains Mono', monospace; color: #fff; } .tr-hud span { color: var(--mute); font-size: 12px; }
.tr-hint { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; color: var(--mute); font-size: 12.5px; pointer-events: none; } .tr-hint b { color: #fff; }
.tr-token, .tr-bo, .tr-end { width: min(820px, 100%); display: grid; gap: 14px; background: #131312; border: 1px solid var(--line); padding: 20px; }
.tr-tk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .tr-tk-head strong { font: 800 22px 'Shippori Mincho B1', serif; color: #fff; } .tr-tk-head span { color: var(--mute); font-size: 12.5px; }
.tr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tr-tiles button { position: relative; display: grid; gap: 4px; text-align: left; padding: 12px; background: #0e0e0d; border: 1px solid var(--line); color: var(--text); min-height: 86px; align-content: start; }
.tr-tiles button:hover { border-color: #8f8d87; } .tr-tiles small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); } .tr-tiles b { font: 600 15px 'JetBrains Mono', monospace; color: #fff; } .tr-tiles em { font-style: normal; font-size: 11.5px; color: var(--mute); line-height: 1.4; }
.tr-tiles button.hit { border-color: #ece9e1; } .tr-tiles button.hit::after { content: '✦'; position: absolute; right: 10px; top: 6px; font-size: 22px; color: #fff; animation: star .25s ease-out; } @keyframes star { from { transform: translate(-60px, 90px) rotate(-200deg) scale(2); opacity: 0; } }
.tr-tiles button.ok { box-shadow: inset 3px 0 0 #3ddc97; } .tr-tiles button.bad { box-shadow: inset 3px 0 0 #ef4f6b; } .tr-tiles button.flag b { color: #ef4f6b; }
.tr-dummies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tr-dummies button { display: grid; justify-items: center; gap: 10px; padding: 14px 8px; background: #0e0e0d; border: 1px solid var(--line); color: var(--text); } .tr-dummies button:hover { border-color: #ece9e1; }
.tr-dummies b { font: 600 17px 'JetBrains Mono', monospace; color: #fff; } .dummy { position: relative; width: 16px; height: 96px; background: #8f8d87; transform-origin: bottom; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.dummy::before { content: ''; position: absolute; left: -22px; right: -22px; top: 22px; height: 12px; background: #8f8d87; } .dummy i { position: absolute; left: -9px; top: -30px; width: 34px; height: 34px; border-radius: 50%; background: #a09d95; } .dummy::after { content: ''; position: absolute; left: -26px; right: -26px; bottom: -6px; height: 8px; background: #2b2a27; }
.tr-dummies .down .dummy { transform: rotate(68deg); } .tr-dummies .miss .dummy { animation: thud .4s; } .tr-dummies .miss { border-color: #ef4f6b; } .tr-dummies .down, .tr-dummies .answer { border-color: #3ddc97; }
.tr-end { text-align: center; justify-items: center; } .tr-end small { letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-size: 11px; } .tr-end h3 { margin: 0; font: 600 64px 'JetBrains Mono', monospace; color: #fff; } .tr-end h3 span { font-size: 24px; color: var(--mute); } .tr-end p { margin: 0; color: var(--text); }
.tr-review { width: 100%; display: grid; gap: 6px; text-align: left; } .tr-review h4 { margin: 6px 0 2px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); } .tr-review div { display: grid; gap: 2px; padding: 9px 12px; background: #0e0e0d; border: 1px solid var(--line); } .tr-review b { color: #fff; font-size: 13px; } .tr-review span { color: var(--mute); font-size: 12.5px; line-height: 1.45; }
@media (max-width: 900px) { .tr-stations, .tr-stacks { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-top: 0; } .tr-lesson { grid-template-columns: 1fr; } .tr-scroll { max-height: 40vh; } .tr-kake { display: none; } .tr-tiles { grid-template-columns: repeat(2, 1fr); } .tr-top h2 { font-size: 18px; } }
@media (max-width: 480px) { .tr-dummies b { font-size: 13px; } .tr-st svg { width: 84px; height: 64px; } .tr-card { font-size: 12.5px; padding: 8px 10px; } }
@media (prefers-reduced-motion: reduce) { #train, .tr-st, .tr-stack { animation: none; transition: none; } }
/* the hall: stations stand large on the floor line */
.tr-stations { grid-template-columns: repeat(4, minmax(0, 290px)); gap: 22px; margin-top: 9vh; }
.tr-st { padding: 34px 18px 20px; gap: 9px; box-shadow: 0 34px 50px -22px #000; } .tr-st svg { width: 168px; height: 126px; } .tr-st strong { font-size: 23px; } .tr-st span { font-size: 13.5px; } .tr-st em { font-size: 12.5px; }
@media (max-width: 900px) { .tr-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; gap: 12px; } .tr-st { padding: 22px 12px 14px; } .tr-st svg { width: 110px; height: 82px; } .tr-st strong { font-size: 18px; } }
#train { z-index: 9000; background: #0c0c0b; isolation: isolate; }


/* TRAINING HALL, DRAWN: a lit room with things standing in it */
#train { --px: 0; --py: 0; }
.tr-room { overflow: hidden; } .tr-scene { position: absolute; inset: -2%; width: 104%; height: 104%; }
.tr-l1 { transform: translate(calc(var(--px) * -10px), calc(var(--py) * -6px)); } .tr-l2 { transform: translate(calc(var(--px) * -22px), 0); } .tr-l3 { transform: translate(calc(var(--px) * -34px), calc(var(--py) * -10px)); }
.tr-l1, .tr-l2, .tr-l3 { transition: transform .5s ease-out; }
.tr-lantern { transform-origin: 50% 0; transform-box: view-box; animation: trsway 7s ease-in-out infinite; } @keyframes trsway { 0%, 100% { transform: rotate(-.9deg); } 50% { transform: rotate(.9deg); } }
.tr-glow { animation: trflick 3.7s ease-in-out infinite; } @keyframes trflick { 0%, 100% { opacity: .85; } 40% { opacity: 1; } 47% { opacity: .7; } 55% { opacity: .96; } }
.tr-moon { filter: drop-shadow(0 0 30px #ece9e1aa); } .tr-shaft { mix-blend-mode: screen; animation: trflick 9s ease-in-out infinite; }
.tr-dust { position: absolute; inset: 0; width: 100%; height: 100%; } .tr-vig { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 46%, #0000 38%, #000c 100%); }
.tr-wall, .tr-floor, .tr-kake { display: none; }
.tr-top { background: linear-gradient(#0a0a09f2, #0a0a0900); border: 0; z-index: 3; } .tr-top h2 { font-size: 26px; letter-spacing: .04em; text-shadow: 0 2px 18px #000; }
.tr-main { z-index: 2; }
#train.shake .tr-room, #train.shake .tr-main { animation: trshake .32s; } @keyframes trshake { 20% { transform: translate(-7px, 4px); } 45% { transform: translate(6px, -3px); } 70% { transform: translate(-3px, 2px); } }
/* doors slide open as you step in */
.tr-doors { position: absolute; inset: 0; z-index: 9; pointer-events: none; display: flex; } .tr-doors i { flex: 1; background: repeating-linear-gradient(90deg, #0000 0 86px, #0a0a09 86px 92px), repeating-linear-gradient(0deg, #0000 0 104px, #0a0a09 104px 110px), linear-gradient(#d9d6ce, #b9b6ae); box-shadow: inset 0 0 0 14px #1b1917, 0 0 60px #000; animation: trdoorl 1.15s cubic-bezier(.7, 0, .2, 1) .15s forwards; }
.tr-doors i + i { animation-name: trdoorr; } @keyframes trdoorl { to { transform: translateX(-101%); } } @keyframes trdoorr { to { transform: translateX(101%); } }
#train { animation: none; }
/* Sensei sits at the left of the mat and talks */
.tr-figure { position: absolute; left: 2.5vw; bottom: 3vh; width: clamp(130px, 13vw, 210px); z-index: 2; pointer-events: none; filter: drop-shadow(0 18px 24px #000a); }
.tr-sensei { width: 100%; display: block; } .tr-breathe { transform-origin: 50% 100%; transform-box: fill-box; animation: trbreathe 4.6s ease-in-out infinite; } @keyframes trbreathe { 50% { transform: scaleY(1.018); } }
.tr-say { position: absolute; left: calc(2.5vw + clamp(130px, 13vw, 210px) - 10px); bottom: calc(3vh + clamp(110px, 11vw, 180px)); margin: 0; width: auto; max-width: min(360px, 30vw); z-index: 4; background: #ece9e1; border: 0; border-radius: 14px 14px 14px 2px; padding: 12px 16px; box-shadow: 0 14px 34px #000a; animation: trpop .35s ease-out 1s backwards; }
.tr-say b { display: none; } .tr-say span { color: #111110; font-weight: 500; font-size: 14px; line-height: 1.45; } @keyframes trpop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
/* the four things you can walk up to */
#train.in-hall .tr-main { align-content: end; padding-bottom: 5vh; overflow: hidden; }
.tr-stations { grid-template-columns: repeat(4, minmax(0, 270px)); gap: 2vw; margin: 0; align-items: end; padding-left: clamp(0px, 10vw, 150px); }
.tr-st, .tr-st:hover:not(:disabled) { background: none; border: 0; box-shadow: none; padding: 0; gap: 0; transform: none; }
.tr-obj { display: block; width: 100%; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), filter .3s; filter: drop-shadow(0 0 0 #0000) brightness(.9); animation: trrise .7s cubic-bezier(.2, .9, .3, 1) backwards; }
.tr-st:nth-child(1) .tr-obj { animation-delay: .9s; } .tr-st:nth-child(2) .tr-obj { animation-delay: 1s; } .tr-st:nth-child(3) .tr-obj { animation-delay: 1.1s; } .tr-st:nth-child(4) .tr-obj { animation-delay: 1.2s; } @keyframes trrise { from { opacity: 0; transform: translateY(26px); } }
.tr-st .tr-obj svg { width: 100%; height: auto; display: block; color: inherit; }
.tr-st:hover:not(:disabled) .tr-obj { transform: translateY(-10px) scale(1.05); filter: drop-shadow(0 0 26px #f3c57c66) brightness(1.08); }
.tr-plaque { position: relative; display: grid; gap: 4px; justify-items: center; margin-top: 6px; padding: 12px 12px 10px; width: 100%; background: linear-gradient(#2b2824, #1b1917); border: 1px solid #0a0a09; border-top: 2px solid #4a463f; box-shadow: 0 16px 30px #000a; transition: border-color .25s; }
.tr-st:hover:not(:disabled) .tr-plaque { border-top-color: #f3c57c; }
.tr-plaque i { position: absolute; left: 8px; top: 8px; font: 800 17px 'Shippori Mincho B1', serif; font-style: normal; color: #8f8c84; writing-mode: vertical-rl; }
.tr-plaque strong { font: 800 21px 'Shippori Mincho B1', serif; color: #fff; } .tr-plaque span { font-size: 12.5px; color: #b9b6ae; min-height: 0; text-align: center; padding: 0 16px; } .tr-plaque em { font-style: normal; font-size: 11.5px; color: #f3c57c; border-top: 1px solid #0a0a09; padding-top: 7px; margin-top: 3px; width: 100%; text-align: center; }
.tr-st.locked { opacity: 1; } .tr-st.locked .tr-obj { filter: brightness(.34) saturate(0); } .tr-st.locked .tr-plaque strong { color: #8f8c84; } .tr-st.locked .tr-plaque em { color: #8f8c84; }
/* each object moves when you reach for it */
.tr-st .slab, .tr-st .staff, .tr-st .blade, .tr-st .star, .tr-st .crack { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; transform-box: fill-box; }
.tr-st .crack { opacity: 0; } .st-bricks:hover .crack { opacity: 1; } .st-bricks:hover .s4 { transform: translateY(-9px) rotate(-3deg); } .st-bricks:hover .s3 { transform: translateY(-4px) rotate(1.5deg); }
.tr-st .staff { transform-origin: 50% 50%; } .st-bo:hover .staff { transform: rotate(-52deg); }
.st-katana:hover .blade { transform: translate(8px, -22px) rotate(-7deg); } .tr-st .glint { opacity: 0; } .st-katana:hover .glint { animation: trglint .9s ease-out .15s; } @keyframes trglint { 0% { opacity: 0; transform: translateX(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(96px) translateY(-14px); } }
.tr-st .star { transform-box: view-box; } .st-shuriken:hover .star { animation: trspin .7s linear infinite; } @keyframes trspin { to { transform: rotate(360deg); } }
/* work surfaces: framed in wood, lit from above */
.tr-strike, .tr-token, .tr-bo, .tr-end, .tr-air, .tr-stack { border: 1px solid #0a0a09; outline: 6px solid #231f1b; outline-offset: 0; box-shadow: 0 30px 70px #000c, inset 0 1px 0 #4a463f; background: linear-gradient(#191816f5, #111110f5); }
.tr-scroll { box-shadow: 0 30px 70px #000c; background: linear-gradient(#f3f1ea, #dcd9d0); border-color: #3a3632; }
.tr-stacks { margin-top: 3vh; gap: 20px; } .tr-stack { padding: 20px 12px; } .tr-stack:hover { border-color: #f3c57c; } .pile b { width: 110px; height: 14px; background: linear-gradient(#ece9e1 0 22%, #c9c6bd 22% 78%, #8f8c84 78%); border: 0; }
.tr-pile { height: 220px; padding-top: 70px; } .tr-pile .brick { width: 240px; height: 21px; } .tr-pile .brick i { background: linear-gradient(#ece9e1 0 20%, #c9c6bd 20% 80%, #8f8c84 80%); border: 0; box-shadow: 0 2px 0 #0a0a09; }
.tr-pile .stand { width: 290px; height: 12px; background: #3a3632; } .tr-pile .fist { width: 66px; height: 48px; background: linear-gradient(#f0dcc0, #c9ae8a); border-radius: 12px 12px 18px 18px; box-shadow: inset 0 -8px 0 #0002, 0 10px 20px #000a; } .tr-pile .fist::before { content: ''; position: absolute; left: 12px; right: 12px; top: -60px; height: 64px; background: linear-gradient(#f3f1ea, #d9d6ce); }
.tr-pile.hit .fist { transform: translateY(66px); } .tr-pile .brick.broken i:first-child { transform: translate(-34px, 26px) rotate(-24deg); } .tr-pile .brick.broken i:last-child { transform: translate(34px, 26px) rotate(24deg); }
.tr-meter { height: 20px; border-radius: 10px; overflow: hidden; background: linear-gradient(90deg, #0e0e0d, #2b2824 40%, #f3c57c 50%, #2b2824 60%, #0e0e0d); } .tr-meter i { display: none; } .tr-meter b { width: 5px; box-shadow: 0 0 10px #fff; }
.tr-air { background: #0a0a0988; backdrop-filter: blur(1px); } .tr-air.flash { animation: trflash .25s; } @keyframes trflash { 0% { box-shadow: inset 0 0 90px #fff5, 0 30px 70px #000c; } }
.tr-card { border-radius: 2px; border-left: 5px solid #111110; font-size: 15px; padding: 12px 18px; } .tr-trail polyline { stroke-width: 5; filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 22px #f3c57c); }
.tr-tiles button.hit::after { font-size: 34px; filter: drop-shadow(0 0 8px #fff); } .dummy { height: 130px; width: 22px; background: linear-gradient(90deg, #aaa598, #7a7468); } .dummy i { background: #b9b2a0; width: 44px; height: 44px; left: -11px; top: -38px; }
.tr-end h3 { text-shadow: 0 0 40px #f3c57c55; }
@media (max-width: 1100px) { .tr-figure { display: none; } .tr-say { position: relative; left: 0; bottom: 0; margin: 10px auto 0; max-width: none; width: min(760px, calc(100% - 32px)); border-radius: 10px; animation: none; } .tr-stations { padding-left: 0; } #train.in-hall .tr-main { overflow: auto; } }
@media (max-width: 900px) { .tr-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } #train.in-hall .tr-main { align-content: start; } .tr-obj { max-width: 170px; margin: 0 auto; } .tr-pile .brick { width: 190px; } .tr-pile .stand { width: 230px; } }
@media (prefers-reduced-motion: reduce) { .tr-doors { display: none; } .tr-lantern, .tr-glow, .tr-shaft, .tr-breathe, .tr-obj { animation: none; } }
#train { display: flex; flex-direction: column; } #train > .tr-main { flex: 1; min-height: 0; } #train.in-hall .tr-main { padding-bottom: 7vh; }
.tr-pile { margin-top: 44px; overflow: visible; } .tr-pile .fist::before { top: -40px; height: 44px; } .tr-lesson { margin-top: 2vh; }

/* The dojo room behind the home page */
#roomBg { position: fixed; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; pointer-events: none; overflow: hidden; }
body[data-page=dojo] #roomBg { opacity: 1; visibility: visible; } body.training #roomBg { visibility: hidden; }
#roomBg .tr-scene { inset: 0; width: 100%; height: 100%; } #roomBg .tr-vig { background: radial-gradient(ellipse at 50% 60%, #0000 30%, #000b 100%), linear-gradient(#0a0a09cc, #0a0a0966 30%, #0000 62%); }
.rb-sensei { position: absolute; left: 50%; bottom: 96px; width: clamp(120px, 11vw, 190px); transform: translateX(-50%); filter: drop-shadow(0 18px 24px #000a); }
body[data-page=dojo] .glyphs { opacity: 0; }
body[data-page=dojo] #hall > * { backdrop-filter: blur(3px); }
@media (max-height: 820px), (max-width: 1100px) { .rb-sensei { display: none; } }
.tr-dummies button { padding-top: 56px; } .tr-bo h4 { margin-bottom: 4px; }
@media (max-width: 900px) { .tr-plaque i { display: none; } .tr-plaque strong { font-size: 18px; } .tr-plaque span { padding: 0 4px; } .tr-top h2 { white-space: nowrap; } .dummy { height: 96px; } }

/* Sensei: lit eyes, a slow burn behind him, beard and sash in the draught */
.sn-aura { animation: snaura 5s ease-in-out infinite; transform-origin: 50% 55%; transform-box: fill-box; } @keyframes snaura { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.sn-eyes { animation: sneyes 4.2s ease-in-out infinite; } @keyframes sneyes { 0%, 100% { opacity: .75; } 45% { opacity: 1; } 50% { opacity: .15; } 55% { opacity: 1; } }
.sn-beard { transform-origin: 50% 0; transform-box: fill-box; animation: snsway 5.5s ease-in-out infinite; } .sn-sash { transform-origin: 0 50%; transform-box: fill-box; animation: snsash 2.6s ease-in-out infinite; }
@keyframes snsway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(2.2deg); } } @keyframes snsash { 0%, 100% { transform: rotate(-5deg) scaleX(.94); } 50% { transform: rotate(7deg) scaleX(1.06); } }
.tr-figure { width: clamp(150px, 15vw, 240px); } .tr-say { left: calc(2.5vw + clamp(150px, 15vw, 240px) - 16px); bottom: calc(3vh + clamp(140px, 14vw, 225px)); border-radius: 4px; background: #111110; border: 1px solid #b3261e; border-left: 4px solid #b3261e; }
.tr-say span { color: #f3f1ea; font-family: 'Shippori Mincho B1', serif; font-weight: 600; font-size: 15.5px; letter-spacing: .01em; }
.rb-sensei { width: clamp(140px, 13vw, 220px); }
@media (max-width: 1100px) { .tr-say { left: 0; bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .sn-aura, .sn-eyes, .sn-beard, .sn-sash { animation: none; } }
/* Sensei, larger: he fills the corner of the hall, and steps back a little while you train */
#train { --sw: clamp(150px, 15vw, 250px); } #train.in-hall { --sw: clamp(230px, min(25vw, 46vh), 460px); }
.tr-figure { width: var(--sw); left: 1.5vw; bottom: 2vh; transition: width .5s cubic-bezier(.3, 1, .4, 1); }
.tr-say { left: calc(1.5vw + var(--sw) * .86); bottom: calc(2vh + var(--sw) * .8); transition: left .5s, bottom .5s; max-width: min(380px, 28vw); }
#train.in-hall .tr-say span { font-size: 17px; }
#train.in-hall .tr-stations { padding-left: calc(var(--sw) * .8); }
.rb-sensei { width: clamp(170px, min(18vw, 27vh), 340px); bottom: 88px; }
@media (max-width: 1100px) { .tr-say { left: 0; bottom: 0; max-width: none; } #train.in-hall .tr-stations { padding-left: 0; } }
#train.in-hall .tr-say { bottom: calc(2vh + var(--sw) * 1.02); left: calc(1.5vw + var(--sw) * .8); } @media (max-width: 1100px) { #train.in-hall .tr-say { left: 0; bottom: 0; } }

/* PANELS: wood frame, lantern light from above */
.dialog:not(.scroll) { border-radius: 3px; border: 1px solid #0a0a09; outline: 7px solid #231f1b; background: radial-gradient(120% 60% at 50% -10%, #f3c57c14, #0000 60%), linear-gradient(#191816, #0f0f0e); box-shadow: 0 40px 100px #000d, inset 0 1px 0 #4a463f; animation: dlgin .32s cubic-bezier(.2, .9, .3, 1); }
@keyframes dlgin { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.dialog:not(.scroll) h2 { font: 800 30px 'Shippori Mincho B1', serif; background: none; -webkit-text-fill-color: #fff; color: #fff; letter-spacing: .03em; }
.dialog:not(.scroll) h3 { color: #f3c57c; border-bottom: 1px solid #2b2824; padding-bottom: 6px; }
.dialog:not(.scroll) .btn.gold { background: #ece9e1; color: #111110; box-shadow: 0 0 0 1px #0a0a09, 0 8px 20px #0008; } .dialog:not(.scroll) .btn.gold:hover:not(:disabled) { background: #fff; box-shadow: 0 0 24px #f3c57c55; }
/* SPARRING HALL */
.ar-hero { display: block; width: calc(100% + 52px); margin: -26px -26px 16px; height: 150px; border-bottom: 3px solid #231f1b; }
.evs { gap: 16px; padding-top: 14px; }
.ev { position: relative; border-radius: 2px; background: linear-gradient(#2b2824, #1b1917); border: 1px solid #0a0a09; border-top: 2px solid #4a463f; box-shadow: 0 14px 30px #0009; transition: transform .25s, border-color .25s; }
.ev::before, .ev::after { content: ''; position: absolute; top: -15px; width: 2px; height: 15px; background: #8f8c84; } .ev::before { left: 22%; } .ev::after { right: 22%; }
.ev:hover { transform: translateY(-4px) rotate(-.4deg); } .ev.on { border-top-color: #f3c57c; box-shadow: 0 14px 34px #0009, 0 0 0 1px #f3c57c66; } .ev.joined { border-top-color: #3ddc97; }
.ev strong { font: 800 21px 'Shippori Mincho B1', serif; } .ev .prize b { color: #f3c57c; text-shadow: none; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); justify-content: center; align-items: end; gap: 6px; margin: 6px 0 16px; }
.pd { display: grid; justify-items: center; gap: 2px; text-align: center; } .pd strong { font-size: 13.5px; color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pd > span { font: 600 13px 'JetBrains Mono', monospace; }
.pd > div { width: 100%; display: grid; align-content: start; justify-items: center; gap: 2px; margin-top: 6px; padding-top: 8px; background: linear-gradient(#3a3632, #1b1917); border-top: 3px solid #8f8c84; box-shadow: inset 0 1px 0 #55534e; }
.pd b { font: 800 30px 'Shippori Mincho B1', serif; color: #ece9e1; line-height: 1; } .pd small { font-size: 11px; color: #b9b6ae; padding: 0 4px; }
.pd.p1 > div { height: 104px; border-top-color: #f3c57c; } .pd.p1 b { color: #f3c57c; font-size: 38px; } .pd.p2 > div { height: 78px; } .pd.p3 > div { height: 58px; border-top-color: #9a6b3e; }
.pd.me strong { background: #ece9e1; color: #111110; padding: 1px 8px; }
.board th { background: #231f1b; color: #b9b6ae; } .board tr.me td { background: #f3c57c1f; } .board tr.me td:first-child { box-shadow: inset 3px 0 0 #f3c57c; }
.fundstrip { border-left-color: #f3c57c; background: linear-gradient(90deg, #f3c57c14, #0000 60%), #121211; } .fundstrip b { color: #f3c57c; }
.hall-card.sensei .sensei-art { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(#2b2824, #0a0a09); border: 2px solid #3a3632; flex: none; }
@media (max-width: 640px) { .ar-hero { height: 96px; } .pd.p1 > div { height: 80px; } .pd.p2 > div { height: 60px; } .pd.p3 > div { height: 46px; } .pd b { font-size: 22px; } .pd.p1 b { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .dialog:not(.scroll) { animation: none; } }

.pc.done { cursor: pointer; opacity: 1; } .pc.done:hover { border-color: rgba(236, 233, 225, .5); } .pc-go { font-size: 11.5px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 6px; } .pc.done:hover .pc-go { color: var(--text); }

/* BEGINNER'S PATH */
.tr-stations { grid-template-columns: repeat(5, minmax(0, 240px)); gap: 1.4vw; }
.st-course .tr-plaque { border-top-color: #f3c57c; } .st-course:hover .scrollart { transform: translateY(-8px) rotate(-2deg); } .tr-st .scrollart { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.cz { width: min(1100px, 100%); }
.cz-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .cz-head { grid-column: 1 / -1; padding: 20px; background: linear-gradient(#191816f5, #111110f5); outline: 6px solid #231f1b; border: 1px solid #0a0a09; margin-bottom: 8px; }
.cz-head h3 { margin: 0 0 6px; font: 800 28px 'Shippori Mincho B1', serif; color: #fff; } .cz-head p { margin: 0 0 12px; color: #b9b6ae; max-width: 70ch; } .cz-head small { color: #f3c57c; }
.cz-prog { height: 8px; background: #0a0a09; margin-bottom: 6px; } .cz-prog i { display: block; height: 100%; background: #f3c57c; transition: width .5s; }
.cz-ch { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; text-align: left; padding: 14px; background: linear-gradient(#2b2824, #1b1917); border: 1px solid #0a0a09; border-top: 2px solid #4a463f; color: #ece9e1; transition: transform .2s, border-color .2s; }
.cz-ch:hover:not(:disabled) { transform: translateY(-3px); border-top-color: #f3c57c; } .cz-ch i { grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; font: 800 18px 'Shippori Mincho B1', serif; font-style: normal; background: #0a0a09; color: #ece9e1; border-radius: 50%; }
.cz-ch strong { font-size: 15px; color: #fff; } .cz-ch span { font-size: 12px; color: #8f8c84; } .cz-ch.done i { background: #3ddc97; color: #0a0a09; } .cz-ch:disabled { opacity: .45; cursor: not-allowed; }
.cz-page { display: grid; gap: 14px; background: linear-gradient(#191816f7, #111110f7); outline: 6px solid #231f1b; border: 1px solid #0a0a09; padding: 18px 20px; box-shadow: 0 30px 70px #000c; }
.cz-top { display: flex; align-items: center; gap: 14px; } .cz-top strong { flex: 1; font: 800 20px 'Shippori Mincho B1', serif; color: #fff; } .cz-dots { display: flex; gap: 5px; } .cz-dots i { width: 22px; height: 5px; background: #2b2824; } .cz-dots i.d { background: #3ddc97; } .cz-dots i.on { background: #f3c57c; }
.cz-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; min-height: 320px; } .cz-body.solo { grid-template-columns: minmax(0, 70ch); justify-content: center; }
.cz-text h3 { margin: 0 0 10px; font: 800 24px 'Shippori Mincho B1', serif; color: #fff; } .cz-text p { margin: 0 0 11px; font-size: 15px; line-height: 1.6; color: #dedbd3; } .cz-text p b { color: #fff; } .cz-text h4 { margin: 0 0 12px; font-size: 17px; line-height: 1.45; color: #fff; font-weight: 600; } .cz-text h4 b { color: #f3c57c; }
.cz-text .tr-opts button { font-size: 15px; padding: 12px 14px; } .cz-why p { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #f3c57c; background: #0e0e0d; font-size: 14px; }
.cz-chart { width: 100%; height: auto; display: block; border: 1px solid #2b2824; } .cz-big { max-width: 420px; margin: 0 auto; } .cz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cz-hot { cursor: pointer; transition: stroke-opacity .15s; } .cz-hot:hover { stroke-opacity: 1; fill-opacity: .12; } .cz-hot.hit { stroke: #3ddc97; stroke-opacity: 1; stroke-dasharray: none; fill: #3ddc97; fill-opacity: .3; } .cz-hot.no { stroke: #ef4f6b; stroke-opacity: 1; }
.cz-band { stroke: #ece9e1; stroke-opacity: .18; stroke-dasharray: 5 5; } .cz-band:hover { fill-opacity: .08; }
.cz-seg { display: inline-flex; gap: 4px; padding: 3px; background: #0a0a09; } .cz-seg button { padding: 7px 12px; color: #8f8c84; font-size: 13px; font-weight: 600; } .cz-seg button.on { background: #ece9e1; color: #111110; }
.cz-tf { display: grid; gap: 10px; } .cz-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; } .cz-row > span { min-width: 90px; color: #b9b6ae; font-size: 13px; } .cz-pnl { font: 600 22px 'JetBrains Mono', monospace; margin-left: auto; }
.cz-out { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: #dedbd3; min-height: 44px; } .cz-out b { color: #fff; }
.cz-ticket { display: grid; gap: 10px; max-width: 320px; margin: 0 auto; padding: 16px; background: #0e0e0d; border: 1px solid #2b2824; } .cz-ticket .cz-seg { display: grid; grid-template-columns: 1fr 1fr; } .cz-ticket .cz-seg button.on { background: #3ddc97; }
.cz-ticket label { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid #2b2824; color: #8f8c84; font-size: 13px; } .cz-ticket label span { color: #fff; font-family: 'JetBrains Mono', monospace; }
.cz-nav { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #2b2824; padding-top: 14px; }
.hall-card.sensei .to-course { margin-top: 10px; }
@media (max-width: 1500px) { .tr-stations { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tr-plaque span { display: none; } }
@media (max-width: 900px) { .tr-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr-plaque span { display: block; } .cz-list { grid-template-columns: 1fr; } .cz-body { grid-template-columns: 1fr; min-height: 0; } .cz-fig { order: -1; } .cz-top { flex-wrap: wrap; } .cz-dots i { width: 12px; } .cz-text h3 { font-size: 20px; } }

/* WELCOME + GLOSSARY */
.welcome2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .welcome2 button { display: grid; gap: 6px; text-align: left; padding: 18px; background: linear-gradient(#2b2824, #1b1917); border: 1px solid #0a0a09; border-top: 2px solid #4a463f; color: #ece9e1; transition: transform .2s, border-color .2s; }
.welcome2 button:hover { transform: translateY(-3px); border-top-color: #f3c57c; } .welcome2 b { font: 800 20px 'Shippori Mincho B1', serif; color: #fff; } .welcome2 span { font-size: 13px; color: #b9b6ae; line-height: 1.5; }
.gl-btn { margin-left: auto; font-size: 11px; color: var(--mute); text-transform: none; letter-spacing: 0; text-decoration: underline dotted; text-underline-offset: 3px; } .gl-btn:hover { color: #fff; } .ptitle { display: flex; align-items: center; gap: 8px; }
.gl-q { width: 100%; padding: 11px 13px; background: #0e0e0d; border: 1px solid var(--line); color: var(--text); font-size: 14px; } .gl-q:focus { outline: none; border-color: #ece9e1; }
.gl-list { max-height: 56vh; overflow-y: auto; margin-top: 6px; padding-right: 4px; } .gl-t { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #1f1e1c; } .gl-t b { color: #fff; font-weight: 600; } .gl-t span { color: #b9b6ae; line-height: 1.5; font-size: 13.5px; }
.cz-head a { color: #f3c57c; } #train ~ #modal, body.training #modal { z-index: 9500; }
@media (max-width: 640px) { .welcome2 { grid-template-columns: 1fr; } .gl-t { grid-template-columns: 1fr; gap: 2px; } }
.cz-ch:disabled { opacity: 1; background: linear-gradient(#1b1917, #141312); border-top-color: #2b2824; } .cz-ch:disabled strong { color: #6a665f; } .cz-ch:disabled i { color: #55534e; } .cz-ch:disabled span { color: #55534e; }
/* panels never grow wider than the screen */
#modal { grid-template-columns: minmax(0, 1fr); justify-items: center; } .dialog { min-width: 0; max-width: 100%; } .dialog:not(.scroll) { overflow-x: clip; }
@media (max-width: 640px) {
  .board { display: block; overflow-x: auto; white-space: nowrap; } .evs { grid-template-columns: 1fr; }
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pd small { font-size: 9.5px; } .pd strong { font-size: 11.5px; }
  .tr-top { padding: 10px 12px; gap: 8px; } .tr-top h2 { font-size: 17px; overflow: hidden; text-overflow: ellipsis; } .tr-top .btn { padding: 8px 10px; white-space: nowrap; flex: none; }
}
