/* IROMO status page, styled after James's app concept (UI asset package, 2026-11-29).
   Tokens are his (08_Implementation_Guide/IROMO_Design_Tokens.css). */
:root{
  --iromo-bg:#0B0D12; --iromo-panel:#17191C; --iromo-panel-alt:#202226; --iromo-border:#343438;
  --iromo-bronze-dark:#80502C; --iromo-bronze:#A0662E; --iromo-bronze-light:#CD7F32; --iromo-trace:#B87942;
  --iromo-text:#F0F0F0; --iromo-text-muted:#A6A8AB;
  --iromo-green:#79BA48; --iromo-amber:#D1A13A; --iromo-red:#D94C47;
  --iromo-sample-bg:#38204F; --iromo-sample-text:#F0DCF9;
  --warn-bg:#4a3a12; --warn-text:#ffdf8a; --err-bg:#4f1f1f; --err-text:#ffd4d4;
  --r-card:14px; --r-ctl:10px; --gutter:16px; --tabs-h:68px;
}
*{box-sizing:border-box}
html{background:#050608}
body{margin:0;color:var(--iromo-text);font:16px/1.4 "Segoe UI",Roboto,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}
.app{max-width:520px;margin:0 auto;min-height:100vh;background:var(--iromo-bg);padding-bottom:calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom));
  box-shadow:0 0 0 1px rgba(184,121,66,.25),0 0 60px rgba(184,121,66,.08)}

/* header: logo over the fault terrain */
.top{position:relative;padding:18px var(--gutter) 22px;text-align:center;
  background:
    linear-gradient(180deg,#0B0D12 0%,rgba(11,13,18,.7) 40%,rgba(11,13,18,0) 70%,rgba(11,13,18,.55) 93%,#0B0D12 100%),
    url(img/fault-terrain.webp) center bottom/cover no-repeat;
  min-height:300px}
.logo{display:block;width:min(400px,92%);height:auto;margin:0 auto;filter:drop-shadow(0 4px 18px rgba(0,0,0,.8))}
.stamp{margin-top:6px;font-size:15px;font-weight:500;text-shadow:0 1px 8px #000,0 0 2px #000}

.banner{margin:10px var(--gutter);padding:12px 16px;font-weight:600;font-size:17px;line-height:1.3;border-radius:var(--r-ctl)}
.banner[hidden]{display:none}
.top + .banner.sample,.top + .banner.sample + .banner.late{position:relative}
.sample{margin-top:-58px;position:relative;border:1px solid #9457c9;color:var(--iromo-sample-text);
  background:linear-gradient(180deg,#4a2a68,#2e1942);box-shadow:0 0 18px rgba(148,87,201,.35),inset 0 1px 0 rgba(255,255,255,.08)}
.late{border:1px solid #a8862c;background:var(--warn-bg);color:var(--warn-text)}
.error{border:1px solid #a04545;background:var(--err-bg);color:var(--err-text)}

main,footer{padding:0 var(--gutter)}
section{margin:18px 0 0}
section[hidden]{display:none}
h1{font-size:17px;letter-spacing:.22em;text-transform:uppercase;margin:0 0 2px;font-weight:600}
.sub{margin:0 0 12px;font-size:15px;color:#d9d9db}

/* event card: metallic bronze rim, warm fill, soft glow (James's concept, 2026-11-29) */
.card{position:relative;border:2px solid transparent;border-radius:var(--r-card);padding:14px 14px 12px;margin:0 0 14px;
  background:
    linear-gradient(180deg,#221c17 0%,#15140f 30%,#101114 100%) padding-box,
    linear-gradient(180deg,#d8955a 0%,#8a5428 25%,#3e2816 60%,#6b4220 88%,#a86a30 100%) border-box;
  box-shadow:0 0 10px rgba(205,127,50,.28),0 6px 18px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,214,160,.12)}
.card h2{margin:0;font-size:21px;font-weight:700;text-shadow:0 1px 3px #000}
.card .meta{font-size:14px;margin:4px 0 12px;color:#dcdcde}
.nums{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
/* tiles: filled with their colour, bright rim, inner glow, gold trace */
.num{--c:var(--iromo-bronze-light);border:2.5px solid color-mix(in srgb,var(--c) 85%,#fff 15%);border-radius:12px;padding:7px 4px 8px;text-align:center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 38%,color-mix(in srgb,var(--c) 55%,#000 45%),transparent 75%),
    linear-gradient(180deg,color-mix(in srgb,var(--c) 42%,#050505),color-mix(in srgb,var(--c) 18%,#050505));
  box-shadow:0 0 9px color-mix(in srgb,var(--c) 55%,transparent),inset 0 0 12px color-mix(in srgb,var(--c) 40%,transparent),inset 0 1px 0 rgba(255,255,255,.18)}
.num.low{--c:#5fae2e} .num.elevated{--c:#c99a1e} .num.high{--c:#d8462b}
.num svg{display:block;width:66px;height:26px;margin:0 auto 2px;fill:none;stroke:#ffc23d;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 0 3px rgba(255,170,40,.9))}
.num.high svg{stroke:#ff6a3a;filter:drop-shadow(0 0 3px rgba(255,80,40,.9))}
.num b{display:block;font-size:34px;line-height:1.02;font-weight:800;font-variant-numeric:tabular-nums;text-shadow:0 2px 4px rgba(0,0,0,.85)}
.num span{font-size:14px;text-transform:uppercase;letter-spacing:.04em;text-shadow:0 1px 3px #000}
.times{margin-top:10px;font-size:14px;color:#dcdcde}
.tag{display:inline-block;margin-top:11px;font-size:15px;font-weight:500;border:2px solid #d9a441;border-radius:999px;padding:2px 16px;
  background:linear-gradient(180deg,rgba(80,58,20,.55),rgba(20,16,8,.7));box-shadow:0 0 6px rgba(217,164,65,.35)}
.tag.quiet{border-color:#8a8c90;background:rgba(30,31,34,.7);box-shadow:none}
.empty{color:var(--iromo-text-muted);padding:16px;border:1px dashed var(--iromo-border);border-radius:var(--r-card)}
.key{margin:2px 0 14px;font-size:12.5px;color:var(--iromo-text-muted);display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
.key[hidden]{display:none}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 2px 0 8px}
.dot:first-child{margin-left:0}
.dot.low{background:var(--iromo-green)} .dot.elevated{background:var(--iromo-amber)} .dot.high{background:var(--iromo-red)}

/* record bar */
.recordbar{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;min-height:64px;padding:8px 16px;
  border:2px solid transparent;border-radius:var(--r-card);
  background:
    linear-gradient(90deg,rgba(150,90,35,.55),rgba(40,30,22,.95) 40%,#141416) padding-box,
    linear-gradient(180deg,#e9a764 0%,#a5652c 30%,#4a2f19 65%,#c7843f 100%) border-box;
  box-shadow:0 0 10px rgba(205,127,50,.28),0 6px 18px rgba(0,0,0,.6)}
.recordbar .bars{width:46px;height:46px;fill:none;stroke:#ffae3d;stroke-width:8;stroke-linecap:butt;filter:drop-shadow(0 0 5px rgba(205,127,50,.7))}
.recordbar span{flex:1;display:block}
.recordbar b{display:block;font-size:20px;letter-spacing:.08em;text-transform:uppercase}
.recordbar i{display:block;font-style:normal;font-size:14px;color:#dcdcde}
.recordbar .chev{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}

/* record table */
.tablewrap{overflow-x:auto;border:2px solid transparent;border-radius:var(--r-card);padding:2px 10px;
  background:linear-gradient(180deg,#221c17 0%,#15140f 30%,#101114 100%) padding-box,linear-gradient(180deg,#d8955a 0%,#8a5428 25%,#3e2816 60%,#6b4220 88%,#a86a30 100%) border-box;
  box-shadow:0 0 10px rgba(205,127,50,.28),0 6px 18px rgba(0,0,0,.6)}
table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
th,td{padding:10px 5px;border-bottom:1px solid var(--iromo-border);text-align:right;white-space:nowrap}
tr:last-child td{border-bottom:0}
th:first-child,td:first-child{text-align:left}
th{color:var(--iromo-text-muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:600}
.note,.small{color:#c9c9cc;font-size:13px}
footer{margin-top:14px}
#wording{font-size:16px;font-weight:600;margin:0 0 4px}
.small{margin:0}

/* bottom tabs */
.tabs{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(520px,100%);height:calc(var(--tabs-h) + env(safe-area-inset-bottom));padding:6px 8px env(safe-area-inset-bottom);
  display:grid;grid-template-columns:repeat(5,1fr);gap:4px;background:rgba(9,10,13,.96);border-top:1px solid #2a2a2e;backdrop-filter:blur(8px)}
.tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;border-radius:10px;
  color:#e9e9ea;text-decoration:none;font-size:13px;font-weight:500}
.tabs svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.tabs a.on{background:linear-gradient(180deg,#b8742f,#6d4020);box-shadow:0 0 12px rgba(205,127,50,.5),inset 0 1px 0 rgba(255,255,255,.25);color:#fff;font-weight:700}
.tabs a:focus-visible,.recordbar:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:380px){.num b{font-size:26px}.card h2{font-size:19px}.banner{font-size:15.5px}}
main[hidden]{display:none}
