@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-SemiBold.ttf'); font-weight: 600; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-SemiBold.ttf'); font-weight: 700; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/IBMPlexMono-Medium.ttf'); font-weight: 500; }
:root { --amber: #f0a530; --amber2: #ffcf7a; --ink: #e9e7e1; --dim: #9aa0a6; --bg: rgba(10, 13, 16, 0.78); --line: rgba(255, 255, 255, 0.09); --green: #3fdc6a; --red: #ff4b3a; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #06080a; color: var(--ink); font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; touch-action: none; }
canvas#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.hidden { display: none !important; }
button { font-family: inherit; color: var(--ink); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 6px; padding: 10px 18px; font-size: 18px; letter-spacing: 0.06em; font-weight: 600; cursor: pointer; }
button:active { transform: translateY(1px); }
button.primary { background: var(--amber); color: #15110a; border-color: var(--amber2); }
button.ghost { background: transparent; }
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20; background: radial-gradient(ellipse at 50% 40%, rgba(20,26,32,0.55), rgba(4,6,8,0.92)); }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; max-height: 94vh; overflow: auto; backdrop-filter: blur(6px); }
.kicker { font-size: 13px; letter-spacing: 0.22em; color: var(--amber); font-weight: 600; }
h1, h2 { margin: 2px 0 8px; font-weight: 700; letter-spacing: 0.03em; }
h2 { font-size: 30px; }
.sc-mark { display: flex; align-items: center; gap: 10px; }
.sc-mark .bar { width: 7px; height: 46px; background: var(--amber); display: block; }
.sc-mark b { display: block; font-size: 24px; letter-spacing: 0.16em; line-height: 1.05; }
.sc-mark.small .bar { height: 30px; width: 5px; } .sc-mark.small b { font-size: 15px; }
.boot-in { width: min(420px, 80vw); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.boot-bar { width: 100%; height: 3px; background: rgba(255,255,255,0.1); } .boot-bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width 0.2s; }
#bootTxt, #loadTxt { color: var(--dim); font-size: 15px; letter-spacing: 0.1em; }
/* title */
#title { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 6vh 7vw; background: linear-gradient(90deg, rgba(4,6,8,0.92) 0%, rgba(4,6,8,0.55) 45%, rgba(4,6,8,0.05) 100%); }
.title-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -1; }
.title-top { position: absolute; top: 5vh; left: 7vw; }
.logo h1 { font-size: min(13vw, 110px); line-height: 0.9; letter-spacing: 0.02em; margin: 0; }
.logo .sub { font-size: 18px; letter-spacing: 0.3em; color: var(--amber); margin-top: 8px; }
#title .menu { display: flex; flex-direction: column; gap: 10px; margin: 4vh 0 3vh; width: min(320px, 60vw); }
#title .menu button { text-align: left; }
.title-foot { color: var(--dim); font-size: 15px; letter-spacing: 0.08em; }
.ver-tag { position: absolute; right: 16px; bottom: 10px; color: rgba(255,255,255,0.3); font-size: 12px; letter-spacing: 0.1em; }
/* board */
#board { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 3vh 4vw; gap: 12px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.board-stats { color: var(--dim); font-size: 16px; letter-spacing: 0.06em; margin-left: auto; }
.crane-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ctab { text-align: left; padding: 10px 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 8px; }
.ctab b { display: block; font-size: 22px; letter-spacing: 0.06em; } .ctab span { display: block; font-size: 13px; color: var(--dim); letter-spacing: 0.08em; font-weight: 400; } .ctab em { font-style: normal; color: var(--amber); font-size: 14px; }
.ctab.sel { border-color: var(--amber); background: rgba(240,165,48,0.10); }
.board-body { display: grid; grid-template-columns: minmax(200px, 30%) 1fr; gap: 14px; flex: 1; min-height: 0; }
.crane-info { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 16px; line-height: 1.35; color: #cfd2d4; overflow: auto; }
.crane-info h3 { margin: 0 0 4px; font-size: 22px; color: var(--ink); } .crane-info .spec { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--amber2); margin: 6px 0 10px; }
.jobs { display: flex; flex-direction: column; gap: 8px; overflow: auto; padding-right: 4px; }
.job { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 12px 16px; background: rgba(12,15,18,0.86); border: 1px solid var(--line); border-radius: 8px; }
.job b { font-size: 21px; letter-spacing: 0.04em; } .job span { display: block; font-size: 14px; color: var(--dim); font-weight: 400; letter-spacing: 0.05em; }
.job .jr { text-align: right; } .job .st { color: var(--amber); font-size: 18px; letter-spacing: 0.1em; } .job .wx { font-size: 13px; color: var(--dim); font-family: 'IBM Plex Mono', monospace; }
/* brief */
.brief-panel { width: min(760px, 92vw); }
.bsub { color: var(--dim); font-size: 17px; letter-spacing: 0.06em; margin-bottom: 12px; }
.brief-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 10px; }
.brief-grid div { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; } .brief-grid small { display: block; color: var(--dim); font-size: 12px; letter-spacing: 0.14em; } .brief-grid b { font-size: 18px; font-family: 'IBM Plex Mono', monospace; font-weight: 500; }
.btext { font-size: 18px; line-height: 1.35; color: #d8d9d6; margin: 8px 0 12px; }
.bcontrols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 15px; color: #c8cbcd; } .bcontrols div { background: rgba(255,255,255,0.03); border-radius: 6px; padding: 8px 10px; } .bcontrols b { color: var(--amber2); font-weight: 600; letter-spacing: 0.06em; }
.row-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
/* HUD */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; font-family: 'Barlow Condensed', sans-serif; }
#hud button, #hud .stick { pointer-events: auto; }
.hud-job { position: absolute; left: calc(10px + env(safe-area-inset-left)); top: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; min-width: 230px; max-width: 34vw; }
.hj-top { display: flex; gap: 12px; align-items: baseline; font-size: 13px; letter-spacing: 0.16em; color: var(--amber); font-weight: 600; } #hTime { margin-left: auto; font-family: 'IBM Plex Mono', monospace; color: var(--ink); letter-spacing: 0.02em; } #hCount { color: var(--ink); }
#hMove { font-size: 17px; margin-top: 2px; letter-spacing: 0.02em; } #hStatus { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--amber2); min-height: 16px; }
.cms { position: absolute; right: calc(10px + env(safe-area-inset-right)); top: 56px; width: 212px; background: rgba(6,10,12,0.8); border: 1px solid rgba(120,200,255,0.14); border-radius: 8px; padding: 8px 10px; font-family: 'IBM Plex Mono', monospace; }
.lamps { display: flex; gap: 6px; justify-content: space-between; margin-bottom: 6px; }
.lamp { font-family: 'Barlow Condensed'; font-size: 12px; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 3px; opacity: 0.28; border: 1px solid currentColor; }
.lamp.amber { color: #ffb23a; } .lamp.green { color: var(--green); } .lamp.red { color: var(--red); } .lamp.on { opacity: 1; background: rgba(255,255,255,0.08); box-shadow: 0 0 10px currentColor inset, 0 0 8px currentColor; color: #fff; }
.lamp.amber.on { background: #b9740f; } .lamp.green.on { background: #1d8c3e; } .lamp.red.on { background: #a2261b; }
.cms-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 1px 8px; font-size: 13px; align-items: baseline; }
.cms-grid .k { color: #7fa6bd; font-size: 11px; letter-spacing: 0.08em; } .cms-grid .v { text-align: right; font-size: 16px; color: #e8f4ff; } .cms-grid .u { color: #7fa6bd; font-size: 11px; }
.cms-grid .v.warn { color: #ffb23a; } .cms-grid .v.bad { color: var(--red); }
.swaybar { grid-column: 1 / 4; height: 3px; background: rgba(255,255,255,0.08); margin: 1px 0 3px; } .swaybar i { display: block; height: 100%; background: #6fd0ff; width: 0; }
.lmi { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; } .lmi-l { color: #7fa6bd; } .lmi-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; } .lmi-bar i { display: block; height: 100%; width: 0; background: var(--green); }
.tgt { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .tgt-sq { position: relative; width: 58px; height: 58px; border: 1px solid rgba(120,200,255,0.3); border-radius: 3px; flex: none; }
.tgt-x, .tgt-y { position: absolute; background: rgba(120,200,255,0.18); } .tgt-x { left: 0; right: 0; top: 50%; height: 1px; } .tgt-y { top: 0; bottom: 0; left: 50%; width: 1px; }
#tgtDot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #ffb23a; left: 50%; top: 50%; box-shadow: 0 0 6px #ffb23a; }
#tgtDot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.tgt-t { font-size: 11px; color: #9dc2d6; line-height: 1.35; }
.radio { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); max-width: 46vw; background: rgba(8,10,12,0.72); border-left: 3px solid var(--amber); padding: 6px 12px; font-size: 17px; opacity: 0; transition: opacity 0.3s; border-radius: 0 6px 6px 0; }
.radio.on { opacity: 1; } .radio b { color: var(--amber); font-size: 12px; letter-spacing: 0.2em; margin-right: 8px; }
.toast { position: absolute; left: 50%; bottom: 30vh; transform: translateX(-50%); background: rgba(10,12,14,0.85); border: 1px solid rgba(255,180,60,0.4); padding: 6px 14px; border-radius: 6px; font-size: 17px; opacity: 0; transition: opacity 0.25s; } .toast.on { opacity: 1; }
.topbtns { position: absolute; right: calc(10px + env(safe-area-inset-right)); top: 10px; display: flex; gap: 8px; }
.round { width: 46px; height: 38px; padding: 0; font-size: 14px; border-radius: 8px; background: rgba(10,12,14,0.7); }
.stick { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); width: min(31vh, 200px); height: min(31vh, 200px); border-radius: 50%; touch-action: none; }
#stickL { left: calc(18px + env(safe-area-inset-left)); } #stickR { right: calc(18px + env(safe-area-inset-right)); }
.stick .ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); background: radial-gradient(circle, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.35) 100%); box-shadow: inset 0 0 24px rgba(0,0,0,0.5); }
.stick .ring::before, .stick .ring::after { content: ''; position: absolute; background: rgba(255,255,255,0.08); } .stick .ring::before { left: 50%; top: 10%; bottom: 10%; width: 1px; } .stick .ring::after { top: 50%; left: 10%; right: 10%; height: 1px; }
.stick .knob { position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; margin: -17% 0 0 -17%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a3e42, #141618 70%); border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 4px 14px rgba(0,0,0,0.6); }
.stick .knob i { position: absolute; inset: 30%; border-radius: 50%; background: #8a1d16; box-shadow: inset 0 -2px 4px rgba(0,0,0,0.5); } #stickL .knob i { background: #b07f12; }
.stick.on .ring { border-color: rgba(240,165,48,0.5); }
.stick .lab { position: absolute; font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); white-space: nowrap; font-weight: 600; }
.lab.t { top: -2px; left: 50%; transform: translateX(-50%); } .lab.b { bottom: -4px; left: 50%; transform: translateX(-50%); } .lab.l { left: -4px; top: 50%; transform: translate(-100%, -50%) rotate(0deg); } .lab.r { right: -4px; top: 50%; transform: translate(100%, -50%); }
#stickL .lab.l { transform: translate(0, -50%) rotate(-90deg); left: -16px; } #stickR .lab.r { transform: translate(0, -50%) rotate(90deg); right: -16px; }
.actbtn { position: absolute; right: calc(min(31vh, 200px) + 34px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); width: 112px; height: 74px; border-radius: 10px; background: rgba(20,24,28,0.82); border: 2px solid rgba(255,255,255,0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.actbtn small { font-size: 10px; letter-spacing: 0.2em; color: var(--dim); } .actbtn span { font-size: 22px; letter-spacing: 0.08em; }
.actbtn.ready { background: #1d8c3e; border-color: #6ff09a; box-shadow: 0 0 18px rgba(63,220,106,0.45); } .actbtn.ready small { color: #d8ffe4; }
.actbtn.release.ready { background: #a86d10; border-color: #ffd27a; box-shadow: 0 0 18px rgba(240,165,48,0.45); }
.actbtn.busy { background: #3a3f44; }
.sidebtns { position: absolute; right: calc(min(31vh, 200px) + 34px + env(safe-area-inset-right)); bottom: calc(104px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.sbtn { font-size: 12px; padding: 6px 10px; background: rgba(10,12,14,0.72); letter-spacing: 0.12em; min-width: 82px; } .sbtn.on { border-color: var(--amber); color: var(--amber2); }
.keys-hint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; white-space: nowrap; }
@media (pointer: coarse) { .keys-hint { display: none; } }
/* results */
.res-panel { width: min(820px, 94vw); }
.res-top { display: flex; align-items: center; gap: 20px; } .score { font-size: 64px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; } .stars { font-size: 40px; color: var(--amber); letter-spacing: 0.1em; }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; } .res-grid div { background: rgba(255,255,255,0.04); border-radius: 6px; padding: 8px 10px; } .res-grid small { display: block; color: var(--dim); font-size: 12px; letter-spacing: 0.14em; } .res-grid b { font-size: 22px; font-family: 'IBM Plex Mono', monospace; font-weight: 500; } .res-grid em { display: block; font-style: normal; font-size: 13px; color: var(--dim); }
.res-moves { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #c9ccce; } .res-moves table { width: 100%; border-collapse: collapse; } .res-moves td, .res-moves th { padding: 3px 6px; border-bottom: 1px solid var(--line); text-align: right; } .res-moves th { color: var(--dim); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; } .res-moves td:first-child, .res-moves th:first-child { text-align: left; }
#replayBar { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 30; display: flex; gap: 14px; align-items: center; background: rgba(8,10,12,0.75); padding: 6px 8px 6px 16px; border-radius: 8px; letter-spacing: 0.3em; color: var(--amber); font-weight: 600; }
.small-panel { width: min(520px, 92vw); } .small-panel .menu { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.set-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 18px; } .set-row small { display: block; color: var(--dim); font-size: 13px; }
.seg { display: flex; gap: 4px; } .seg button { padding: 6px 10px; font-size: 14px; } .seg button.on { background: var(--amber); color: #15110a; }
.set-note { color: var(--dim); font-size: 14px; margin-top: 8px; }
.credits { font-size: 15px; line-height: 1.45; color: #cfd1d2; }
@media (max-height: 430px) { h2 { font-size: 24px; } .panel { padding: 14px 18px; } .btext { font-size: 16px; margin: 4px 0 8px; } .brief-grid b { font-size: 15px; } .cms { width: 190px; top: 52px; } .cms-grid .v { font-size: 14px; } .tgt-sq { width: 46px; height: 46px; } .hud-job { min-width: 200px; } #hMove { font-size: 15px; } }
/* career / shop / store (1.1) */
@media (max-height: 520px) { #title .menu { display: grid; grid-template-columns: 1fr 1fr; width: min(460px, 70vw); gap: 8px; margin: 2vh 0; } #title .menu .primary { grid-column: 1 / -1; } }
.ctab.locked { opacity: 0.55; } .ctab.locked em { color: var(--dim); } .ctab .tick { font-style: normal; font-size: 10px; letter-spacing: 0.16em; color: #15110a; background: var(--green); padding: 1px 5px; border-radius: 3px; vertical-align: middle; }
.job.locked { opacity: 0.5; }
.board-stats b { color: var(--ink); } .board-stats em { font-style: normal; font-size: 13px; } .paytag { color: var(--amber2) !important; font-family: 'IBM Plex Mono', monospace; margin-left: 10px; }
.xpbar { display: inline-block; width: 90px; height: 5px; background: rgba(255,255,255,0.1); vertical-align: middle; margin: 0 6px; } .xpbar i { display: block; height: 100%; background: var(--amber); }
.cert { margin-top: 10px; font-size: 14px; color: var(--dim); } .cert b { color: var(--green); letter-spacing: 0.1em; }
.lockbox { margin-top: 10px; padding: 8px 10px; border: 1px dashed rgba(255,255,255,0.2); border-radius: 6px; font-size: 14px; } .lockbox b { letter-spacing: 0.16em; color: var(--red); } .lockbox button { margin-top: 8px; width: 100%; } .lockbox small { display: block; color: var(--amber2); margin-top: 4px; }
.weekly { display: block; width: 100%; text-align: left; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--amber); background: rgba(240,165,48,0.08); border-radius: 8px; }
.weekly small { display: block; font-size: 11px; letter-spacing: 0.2em; color: var(--amber); } .weekly b { display: block; font-size: 18px; } .weekly span { display: block; font-size: 13px; color: var(--dim); font-weight: 400; } .weekly em { font-style: normal; font-size: 12px; color: var(--amber2); font-family: 'IBM Plex Mono', monospace; }
.res-career { margin: 6px 0 8px; font-size: 16px; color: #cfd2d4; } .res-career b { color: var(--amber2); } .res-career .gold { color: var(--green); letter-spacing: 0.08em; }
.shop-panel { width: min(760px, 95vw); } .shop-tabs { flex-wrap: wrap; margin: 8px 0; }
.shop-list { display: flex; flex-direction: column; gap: 6px; } .shop-item, .pack { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 8px; }
.shop-item b, .pack b { font-size: 19px; } .shop-item small, .pack small { display: block; font-size: 13px; color: var(--dim); } .shop-item.eq { border-color: var(--green); } .pack em { font-style: normal; font-size: 11px; letter-spacing: 0.18em; color: #15110a; background: var(--amber); padding: 1px 6px; border-radius: 3px; margin-right: 6px; }
.pack.own { border-color: var(--green); } .tagok { color: var(--green); letter-spacing: 0.14em; font-size: 14px; } .tagno { color: var(--dim); letter-spacing: 0.14em; font-size: 14px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: middle; border: 1px solid rgba(255,255,255,0.3); }
.sandbox-note { margin: 6px 0 8px; padding: 6px 8px; background: #2a1d05; border: 1px solid var(--amber); color: #f3c777; font-size: 13px; letter-spacing: 0.06em; }
.store-msg { min-height: 20px; margin: 8px 0 4px; color: var(--amber2); font-size: 15px; }
.restore-row { display: flex; gap: 8px; } .restore-row input { flex: 1; background: rgba(0,0,0,0.35); border: 1px solid var(--line); color: var(--ink); padding: 8px 10px; border-radius: 6px; font: 14px 'IBM Plex Mono', monospace; }
.store-codes { margin-top: 8px; font-size: 13px; color: var(--dim); line-height: 1.5; } .store-codes code { color: var(--ink); font-family: 'IBM Plex Mono', monospace; user-select: all; }
button:disabled { opacity: 0.45; }
.crane-tabs { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important; } .ctab b { font-size: 20px; } .ctab em { font-size: 11px; letter-spacing: 0.02em; }
