:root {
  /* Neon / cyberpunk, shared with the club apps: near-black, acid lime + magenta, glow on what matters. */
  --bg: #07080c; --panel: #0d0f16; --tile: #12151f; --tile-h: #181c29; --line: #1f2433; --line-soft: #2d3449;
  --accent: #c6ff00; --accent-soft: rgba(198,255,0,.08); --accent2: #ff2bd6; --cyan: #00e5ff;
  --text: #f1f3f8; --muted: #9aa1b5; --faint: #6b7289;
  --free: #c6ff00; --busy: #00e5ff; --locked: #ffb020; --offline: #4a5064; --danger: #ff3b5c;
  --glow: 0 0 18px rgba(198,255,0,.35); --glow2: 0 0 18px rgba(255,43,214,.35);
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --cut-s: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  --head: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", sans-serif;
  --r: 4px; --safe-b: env(safe-area-inset-bottom, 0px); --nav-w: 220px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; color: var(--text); font: 15px/1.45 -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 500px at 85% -10%, rgba(255,43,214,.10), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(0,229,255,.08), transparent 60%),
              linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 100% 4px,
              var(--bg);
  background-attachment: fixed; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; } .strong { font-weight: 600; } .error { color: var(--danger); min-height: 1.2em; font-size: 13px; }
h1, h2 { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
h1 { margin: 0 0 4px; font-size: 28px; }
h2 { margin: 0 0 14px; font-size: 22px; }
h2::after { content: "_"; color: var(--accent); margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h3 { margin: 22px 0 10px; font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-family: var(--head); }

.screen { min-height: 100%; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 18px; clip-path: var(--cut); }
.login-card { max-width: 380px; margin: 14vh auto 0; padding: 26px; }
label { display: block; margin: 14px 0 0; font-size: 12.5px; color: var(--faint); font-weight: 400; }
input, select, textarea { width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--tile); color: var(--text); font-size: 16px; font-family: inherit; color-scheme: dark; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow); }
input:hover, select:hover { border-color: var(--line-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=checkbox] { width: auto; margin: 0 8px 0 0; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 42px; }
.row > input[type=checkbox] { flex: 0 0 auto; }
input[type=file] { padding: 8px; font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
button { border: 1px solid var(--line); border-radius: 0; padding: 10px 14px; background: var(--tile); color: var(--text); font-size: 13.5px; cursor: pointer; white-space: nowrap;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; clip-path: var(--cut-s); transition: background .12s, color .12s, box-shadow .12s; }
button:hover { background: var(--tile-h); border-color: var(--accent); color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: #07080c; font-weight: 700; }
button.primary:hover { background: #d8ff4d; color: #07080c; box-shadow: var(--glow); }
button.danger { background: transparent; border-color: rgba(255,59,92,.4); color: var(--danger); }
button.danger:hover { background: rgba(255,59,92,.12); border-color: var(--danger); color: var(--danger); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); clip-path: none; }
button:disabled { opacity: .4; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1 1 auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { padding: 8px 12px; border-radius: 0; background: var(--tile); border: 1px solid var(--line); font-size: 13px; clip-path: var(--cut-s); }
.chip:hover { border-color: var(--line-soft); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.wide { width: 100%; margin-top: 14px; padding: 13px; font-size: 16px; }

/* ---------- layout ---------- */
#topbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center; padding: 13px 16px;
  background: var(--panel); border-bottom: 1px solid var(--line); }
#topbar .brand { font-family: var(--head); font-weight: 800; letter-spacing: .18em; color: var(--accent); text-shadow: 0 0 12px rgba(198,255,0,.6); display: none; }
#topbar .grow { flex: 1; min-width: 0; }
#topbar .who { display: flex; align-items: center; gap: 6px; }
#view { padding: 14px 12px calc(84px + var(--safe-b)); max-width: 1280px; }
#tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--panel); padding-bottom: var(--safe-b); border-top: 1px solid var(--line); z-index: 6; }
#tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; background: none; border: 0; border-radius: 0; color: var(--muted); font-size: 18px; }
#tabs button span { font-size: 11px; }
#tabs button.active { color: var(--text); }

/* Desktop: sidebar navigation */
@media (min-width: 900px) {
  #topbar .brand { display: block; width: calc(var(--nav-w) - 32px); }
  #tabs { top: 57px; bottom: 0; right: auto; width: var(--nav-w); flex-direction: column; padding: 12px 10px; border-top: 0; border-right: 1px solid var(--line); gap: 2px; }
  #tabs button { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; font-size: 16px; clip-path: none; border-left: 2px solid transparent; }
  #tabs button span { font-size: 14px; }
  #tabs button.active { background: linear-gradient(90deg, var(--accent-soft), transparent); color: var(--accent); border-left-color: var(--accent); }
  #tabs button:hover { background: var(--tile); color: var(--text); border-color: transparent; }
  #tabs button.more { display: none; }
  #view { margin-left: var(--nav-w); padding: 20px 24px 40px; }
  #sheet { left: auto; right: 24px; bottom: 24px; width: 440px; border-radius: 0; clip-path: var(--cut); max-height: calc(100vh - 100px); }
  #toast { left: auto; right: 24px; width: 380px; bottom: 24px; }
}

/* ---------- hall ---------- */
.zone { margin: 6px 0 8px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.zone .sw { width: 10px; height: 10px; border-radius: 50%; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.03), transparent 40%), var(--tile); border: 1px solid var(--line); border-radius: 0; padding: 13px 13px 11px 18px; min-height: 110px;
  display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; clip-path: var(--cut); }
.tile:hover { background: var(--tile-h); border-color: var(--line-soft); box-shadow: inset 0 0 22px rgba(198,255,0,.06); }
.tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--zc, var(--accent)); box-shadow: 0 0 10px var(--zc, var(--accent)); }
.tile.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 30px rgba(198,255,0,.12); }
.tile .name { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 auto; box-shadow: 0 0 8px currentColor; }
.tile .time { font-family: var(--head); font-size: 27px; font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.tile .foot { font-size: 12px; display: flex; justify-content: space-between; gap: 6px; }
.st-Free { color: var(--free); text-shadow: 0 0 10px rgba(198,255,0,.5); } .st-Busy { color: var(--busy); text-shadow: 0 0 10px rgba(0,229,255,.5); } .st-Locked, .st-Maintenance { color: var(--locked); } .st-Offline { color: var(--offline); }
.bg-Free { background: var(--free); color: var(--free); } .bg-Busy { background: var(--busy); color: var(--busy); } .bg-Locked, .bg-Maintenance { background: var(--locked); } .bg-Offline { background: var(--offline); }
.booking { color: var(--locked); font-size: 11px; }

/* ---------- sheet ---------- */
#sheetBackdrop { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 20; backdrop-filter: blur(3px); }
#sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  border-radius: 0; padding: 16px 18px calc(18px + var(--safe-b)); z-index: 21; box-shadow: 0 -18px 50px rgba(0,0,0,.5); }
#sheet .handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line-soft); margin: 0 auto 14px; }
.big { font-family: var(--head); font-size: 44px; font-weight: 600; margin: 6px 0 2px; color: var(--accent); text-shadow: 0 0 22px rgba(198,255,0,.45); font-variant-numeric: tabular-nums; }

/* ---------- lists & tables ---------- */
.list { display: flex; flex-direction: column; gap: 6px; }
.item { background: var(--tile); border: 1px solid var(--line); border-radius: 0; clip-path: var(--cut-s); padding: 11px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item.click { cursor: pointer; } .item.click:hover { background: var(--tile-h); }
.item.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.item .l { flex: 1; min-width: 0; } .item .t { font-weight: 500; } .item .s { font-size: 12px; color: var(--faint); margin-top: 2px; }
.item button { flex: 0 0 auto; padding: 8px 10px; font-size: 13px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.product { background: var(--tile); border: 1px solid var(--line); padding: 0; text-align: left; overflow: hidden; text-transform: none; letter-spacing: 0; font-family: inherit; clip-path: var(--cut); }
.product:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent), var(--glow); }
.product .pic { height: 92px; display: flex; align-items: center; justify-content: center; font-size: 44px; background-size: cover; background-position: center; }
.product .pb { padding: 8px 11px 10px; }
.product .p { font-size: 13px; } .product .q { font-size: 11px; color: var(--muted); }
.total { font-family: var(--head); font-size: 32px; font-weight: 700; margin: 8px 0; color: var(--accent); text-shadow: 0 0 16px rgba(198,255,0,.4); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: 14px; }
.kv .v { text-align: right; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--accent); font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 600; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 7px 6px; border-bottom: 1px solid #1f2530; } td.n, th.n { text-align: right; white-space: nowrap; }
tr.warn td { background: rgba(248,113,113,.12); }
tr.caution td { background: rgba(245,181,74,.12); }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat .card { padding: 14px 16px; } .stat .k { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; } .stat .v { font-family: var(--head); font-size: 26px; font-weight: 600; margin-top: 4px; color: var(--text); }
.stat .v.bad { color: var(--danger); }
.swatch { width: 14px; height: 14px; border-radius: 2px; box-shadow: 0 0 8px rgba(255,255,255,.15); display: inline-block; vertical-align: -2px; margin-right: 8px; }

#toast { position: fixed; left: 12px; right: 12px; bottom: calc(84px + var(--safe-b)); z-index: 30; background: var(--tile); border: 1px solid var(--accent); color: var(--text);
  padding: 13px 15px; border-radius: 0; clip-path: var(--cut-s); box-shadow: 0 10px 32px rgba(0,0,0,.5); font-size: 14px; }
#toast.err { border-color: var(--danger); color: var(--danger); }

/* Orders from the game PCs */
#tabs button { position: relative; }
.badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 0;
  background: var(--accent2); color: #fff; box-shadow: var(--glow2); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
@media (min-width: 900px) { .badge { position: static; margin-left: auto; } }
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.order.new { border-color: var(--locked); }
.order .row.wrap button { flex: 0 1 auto; }
.warn { color: var(--locked); font-style: italic; }

/* Menu icons: same weight as the text next to them */
#tabs button svg { opacity: .8; }
#tabs button.active svg { opacity: 1; color: var(--accent); }
.item .t svg { vertical-align: -4px; margin-right: 8px; opacity: .8; }

/* Time-used bar on a hall tile */
.tile .bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 6px; }
.tile .bar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width 1s linear; }
.tile .bar i.warn { background: var(--locked); } .tile .bar i.crit { background: var(--danger); }

/* Daily revenue chart */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 8px 2px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.chart .stack { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--accent), rgba(198,255,0,.35)); box-shadow: 0 0 12px rgba(198,255,0,.25); display: flex; flex-direction: column; justify-content: flex-start; min-height: 2px; }
.chart .goods { width: 100%; background: var(--accent2); }
.chart .col span { font-size: 10.5px; color: var(--faint); margin-top: 5px; white-space: nowrap; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend i.t { background: var(--accent); } .legend i.g { background: var(--accent2); }

/* The club's dialog instead of the browser's grey confirm / alert / prompt */
#dlgBackdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 40; backdrop-filter: blur(3px); }
#dlg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); z-index: 41;
  background: var(--panel); border: 1px solid var(--line); clip-path: var(--cut); box-shadow: 0 0 40px rgba(198,255,0,.18); }
#dlg .strip { height: 3px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
#dlg .body { padding: 20px 24px 22px; }
#dlg .dt { font-family: var(--head); font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
#dlg .db { font-family: var(--head); font-size: 40px; font-weight: 700; color: var(--accent); text-shadow: 0 0 18px rgba(198,255,0,.5); margin-top: 8px; font-variant-numeric: tabular-nums; }
#dlg .dd { color: var(--muted); font-size: 14.5px; margin-top: 10px; line-height: 1.5; }
#dlg input { margin-top: 14px; }
#dlg .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
#dlg .acts button { flex: 0 0 auto; padding: 11px 20px; }
#dlg.danger { box-shadow: 0 0 40px rgba(255,59,92,.2); }
#dlg.danger .strip { background: var(--danger); box-shadow: 0 0 14px var(--danger); }
#dlg.danger .db { color: var(--danger); text-shadow: 0 0 18px rgba(255,59,92,.5); }
button.solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 700; }
button.solid-danger:hover { background: #ff5a76; color: #fff; box-shadow: 0 0 18px rgba(255,59,92,.45); }

/* One-command install for a new game PC */
textarea.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; resize: none; margin-top: 8px; }
