@import url("tokens.css");
/* Seal Clash: one look for the menu, the HUD, the editor and the admin screen.
   Arctic night: deep blue-black water, ice-white type, aurora teal for what is live and
   lifebuoy orange for the one thing to press. Colours are the Flat UI set the game is painted in. */
:root {
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 12px 40px color-mix(in srgb, var(--deep) 50%, transparent);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ink); color: var(--ice); font-family: var(--text); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
.eyebrow { font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
.muted { color: var(--mist); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--edge); background: var(--raise); color: var(--ice); border-radius: var(--r-s); padding: 8px 14px; font-weight: 600; transition: background .12s, border-color .12s, transform .08s; }
button:hover:not(:disabled) { background: var(--raise-hot); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
button.cta { background: var(--buoy); border-color: var(--buoy); font: 700 22px var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 14px 24px; border-radius: var(--r-m); box-shadow: 0 6px 0 var(--buoy-shade), 0 14px 30px color-mix(in srgb, var(--buoy) 28%, transparent); }
button.cta:hover:not(:disabled) { background: var(--buoy-hot); border-color: var(--buoy-hot); }
button.cta:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--buoy-shade); }
button.primary { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
button.primary:hover:not(:disabled) { background: var(--aqua-hot); }
button.danger { border-color: var(--coral); color: var(--coral-pale); background: color-mix(in srgb, var(--coral) 12%, transparent); }
button.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--coral) 28%, transparent); }
button.small { padding: 4px 12px; font-size: 13px; }
button.ghost { background: transparent; }

input[type=text], input[type=password], input[type=number], input:not([type]), select { background: var(--ink); border: 1px solid var(--edge); border-radius: var(--r-s); padding: 8px 10px; min-width: 0; }
input::placeholder { color: var(--dim); }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: var(--r-s); overflow: hidden; }
.seg button { border: 0; border-radius: 0; background: transparent; padding: 6px 12px; font-size: 13px; color: var(--mist); }
.seg button + button { border-left: 1px solid var(--edge); }
.seg button[aria-pressed=true] { background: var(--aqua); color: var(--ink); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 30px; height: 30px; padding: 0; font-size: 18px; line-height: 1; }
.stepper output { min-width: 74px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { color: var(--mist); font-size: 14px; margin: 6px 0; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); padding: 6px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font: 700 11px var(--display); letter-spacing: .08em; text-transform: uppercase; background: var(--raise); color: var(--ice); white-space: nowrap; }
.pill.ready { background: color-mix(in srgb, var(--kelp) 20%, transparent); color: var(--kelp-pale); } .pill.draining, .pill.full { background: color-mix(in srgb, var(--sun) 20%, transparent); color: var(--sun-pale); }
.pill.unresponsive, .pill.offline { background: color-mix(in srgb, var(--coral) 22%, transparent); color: var(--coral-pale); } .pill.awaiting, .pill.disabled { background: color-mix(in srgb, var(--mist) 18%, transparent); color: var(--mist); }
