/* Hole Roller shared theme: a quiet take on EVE's Photon UI.
   Deep-space backdrop, translucent hairline panels with chamfered corners, small letter-spaced headers.
   Dark only. Page-specific layout stays in each page. */
:root {
  --bg: #05080d;
  --panel: rgba(11, 18, 27, .84);
  --panel-solid: #0b121b;
  --head: rgba(120, 190, 220, .05);
  --well: rgba(3, 6, 10, .7);
  --line: #1f2d3b;
  --line-hi: #2f4356;
  --fg: #d4e0ea;
  --dim: #8496a8;
  --accent: #4fd1d9;
  --accent-tint: rgba(79, 209, 217, .12);
  --gold: #e3b55b;
  --cold: #5fb7ff; --hot: #ff9a4a; --light: #c59bff;
  --ok: #59d39a; --warn: #f2c84b; --bad: #ff5d6c;
  --display: "Rajdhani", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --cut: 10px;
  /* Diagonal hairlines that redraw the border across the clipped corners. */
  --corner-tl: linear-gradient(135deg, transparent 6.4px, var(--line-hi) 6.4px, var(--line-hi) 7.6px, transparent 7.6px) top left / var(--cut) var(--cut) no-repeat border-box;
  --corner-br: linear-gradient(-45deg, transparent 6.4px, var(--line-hi) 6.4px, var(--line-hi) 7.6px, transparent 7.6px) bottom right / var(--cut) var(--cut) no-repeat border-box;
  --chamfer: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--fg); font: 15px/1.55 var(--body);
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, rgba(38, 92, 140, .28), transparent 70%),
    radial-gradient(ellipse 60% 45% at 95% 105%, rgba(86, 52, 120, .18), transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 30%, rgba(30, 110, 120, .08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
/* Faint starfield: tiled dots, no images. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 23px 41px, #cfe6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 131px 87px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 67px 163px, #9fc4e8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 181px 19px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 211px 191px, #cfe6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 97px 229px, #fff 50%, transparent 51%);
  background-size: 240px 240px, 240px 240px, 240px 240px, 330px 330px, 330px 330px, 410px 410px;
}
body > main, main {
  max-width: 820px; margin: 0 auto; display: grid; gap: 20px; position: relative;
  padding-block: 28px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
main > * { min-width: 0; }

/* Type */
h1 { font: 700 30px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 12px; }
h1 a { color: inherit; text-decoration: none; }
h1::before { content: ""; width: 16px; height: 16px; flex: none; border: 2px solid var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 8px rgba(79, 209, 217, .35); }
h2 { font: 700 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: .16em; margin: 0; color: var(--fg); }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: #8be6eb; }
b, strong { font-weight: 600; }
.dim { color: var(--dim); }
.hint { font: 12px/1.45 var(--body); color: var(--dim); text-transform: none; letter-spacing: 0; }
.gold { color: var(--gold); }
code { font: 13px var(--mono); background: var(--well); border: 1px solid var(--line); padding: 1px 5px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.acct { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.acct .who { font-weight: 500; }

/* Panels: translucent, hairline border, chamfered top-left / bottom-right, header strip. */
.panel, .chamfer {
  background: var(--corner-tl), var(--corner-br), var(--panel);
  border: 1px solid var(--line); clip-path: var(--chamfer);
  padding: 16px; display: grid; gap: 12px;
}
.panel > h2:first-child, .panel > .phead:first-child {
  margin: -16px -16px 2px; padding: 9px 16px 9px 26px; background: var(--head); border-bottom: 1px solid var(--line); position: relative;
}
.panel > .phead:first-child { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.panel > h2:first-child::before, .panel > .phead:first-child::before { content: ""; position: absolute; left: 14px; top: 50%; width: 3px; height: 12px; margin-top: -6px; background: var(--accent); }

/* Controls */
.btn {
  font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--fg);
  background: var(--accent-tint); border: 1px solid var(--accent); border-radius: 0;
  padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; justify-self: start;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: rgba(79, 209, 217, .22); color: #fff; }
.btn.ghost { color: var(--dim); background: transparent; border-color: var(--line-hi); }
.btn.ghost:hover { color: var(--fg); border-color: var(--dim); }
.btn:disabled { opacity: .45; cursor: default; }
label { display: grid; gap: 4px; font: 600 12px var(--display); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; min-width: 0; }
input, select { font: 500 14px var(--mono); color: var(--fg); background: var(--well); border: 1px solid var(--line-hi); border-radius: 0; padding: 8px 10px; width: 100%; min-width: 0; transition: border-color .15s; }
input:hover, select:hover { border-color: #3e566b; }
input:focus, select:focus { border-color: var(--accent); }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
select { font-family: var(--body); }
select option { background: var(--panel-solid); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible { outline-offset: 0; }

/* Status pills and chips */
.pill, .chip { font: 500 12px/1.4 var(--mono); border: 1px solid currentColor; padding: 2px 9px; white-space: nowrap; }
.s-active, .s-comped { color: var(--ok); } .s-trial { color: var(--accent); } .s-lapsed { color: var(--bad); }

/* Numbers and codes */
.big { font: 700 26px/1.1 var(--display); letter-spacing: .02em; }
.isk { color: var(--gold); }
.code { font: 600 18px var(--mono); color: var(--gold); background: var(--well); border: 1px dashed var(--line-hi); padding: 4px 12px; user-select: all; }
.stat { display: grid; gap: 2px; }
.stats-row { display: flex; gap: 12px 32px; flex-wrap: wrap; align-items: end; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font: 600 12px var(--display); text-transform: uppercase; letter-spacing: .1em; }
.num { text-align: right; font-family: var(--mono); }
tr.cur td { color: var(--fg); font-weight: 600; background: var(--accent-tint); }
tr.cur td.num { color: var(--gold); }

/* Messages */
.msg { font-size: 13px; margin: 0; } .msg.err { color: var(--bad); } .msg.ok { color: var(--ok); }
.warnbox { border-left: 2px solid var(--warn); background: rgba(242, 200, 75, .05); padding: 8px 12px; font-size: 13px; color: var(--dim); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
p { margin: 0; }

/* Disclosure */
details > summary { cursor: pointer; font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding: 4px 0; }
details > summary:hover { color: var(--fg); }

/* Footer with the CCP notice */
footer, footer.legal { color: var(--dim); font-size: 11px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 14px; }
footer nav a, .cm-links a { text-decoration: none; }
footer nav { font: 600 12px var(--display); text-transform: uppercase; letter-spacing: .1em; display: flex; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 6px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--fg); }

@media (max-width: 480px) {
  h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
