@font-face { font-family: 'Anton'; src: url('../fonts/anton.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow C'; src: url('../fonts/barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow C'; src: url('../fonts/barlow-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
:root { --ink: #0b0f1e; --card: #131a30; --line: rgba(255,255,255,.1); --gold: #f5c35b; --sun: #ff8a3d; --sky: #7fc4ff; --green: #3ef08a;
  --cond: 'Barlow C', 'Arial Narrow', system-ui, sans-serif; --display: 'Anton', Impact, sans-serif; --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 600px at 80% -10%, #3a1f3a 0%, rgba(11,15,30,0) 60%), linear-gradient(180deg, #1a1430 0%, var(--ink) 340px); background-color: var(--ink); color: #fff; font-family: var(--cond); min-height: 100%; }
a { color: var(--gold); }
button, select, input { font: inherit; color: inherit; }
.hidden { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: rgba(11,15,30,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .06em; }
.brand i { font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .28em; color: var(--gold); margin-top: 4px; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; opacity: .9; text-align: right; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #777; flex: none; }
.status.live .dot { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.6s infinite; }
.status.warn .dot { background: var(--sun); }
@keyframes pulse { 50% { opacity: .35; } }

main { max-width: 1100px; margin: 0 auto; padding: 18px 16px 150px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .04em; margin: 8px 0 12px; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 34px; }
h3 { margin: 0; font-weight: 800; font-size: 18px; letter-spacing: .04em; }

#search { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 720px; }
#search input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 15px 16px; font-weight: 600; font-size: 17px; letter-spacing: .03em; outline: none; }
#search:focus-within { border-color: var(--gold); }
#search button { border: 0; padding: 0 26px; font-weight: 800; letter-spacing: .12em; background: linear-gradient(135deg, var(--sun), #ff5a6a); cursor: pointer; }

.result { margin-top: 14px; max-width: 720px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.card .cs { font-family: var(--display); font-size: 34px; letter-spacing: .04em; line-height: 1; }
.card .sub { opacity: .8; font-weight: 600; margin-top: 4px; }
.card .rt { font-family: var(--display); font-size: 24px; letter-spacing: .05em; margin: 12px 0 2px; }
.card .rt small { font-family: var(--cond); font-size: 14px; opacity: .75; letter-spacing: 0; font-weight: 600; }
.card .say { margin: 10px 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.facts dt { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; }
.card .meta { margin-top: 10px; font-size: 13px; opacity: .7; }
.err { background: rgba(255,138,61,.12); border: 1px solid rgba(255,138,61,.4); border-radius: 12px; padding: 12px 14px; font-weight: 600; line-height: 1.4; }

.hubs { display: flex; flex-wrap: wrap; gap: 8px; }
.hubs button { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
.hubs button:hover, .hubs button.on { border-color: var(--gold); color: var(--gold); }
.hubs .me { background: linear-gradient(135deg, rgba(127,196,255,.18), rgba(127,196,255,.05)); }
.boardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 8px; flex-wrap: wrap; }
.rad { font-weight: 600; opacity: .9; display: flex; gap: 8px; align-items: center; }
.rad select { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }

.board { background: #0e1426; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.row { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr .9fr .8fr .7fr .8fr; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); align-items: center; font-family: var(--mono); font-size: 15px; cursor: pointer; }
.row:hover, .row:focus-visible { background: rgba(255,255,255,.04); outline: none; }
.row.head { border-top: 0; font-family: var(--cond); font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); cursor: default; background: rgba(255,255,255,.03); }
.row .f { font-weight: 700; color: #fff; letter-spacing: .04em; }
.row .up { color: var(--green); } .row .down { color: var(--sky); } .row .gnd { color: #9aa3b5; }
.row .muted, .detail .muted { opacity: .55; }
.detail { grid-column: 1 / -1; font-family: var(--cond); font-size: 16px; font-weight: 600; line-height: 1.5; padding: 6px 2px 4px; color: #dfe6ff; cursor: default; }
.detail b { color: var(--gold); font-weight: 800; }
.empty { opacity: .8; font-weight: 600; padding: 10px 2px; }

.guide { margin-top: 16px; max-width: 720px; display: flex; gap: 10px; align-items: center; background: rgba(19,26,48,.95); border: 1px solid var(--line); border-radius: 18px; padding: 8px 14px 8px 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.guide img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex: none; }
.guide p { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.3; }

.pause { position: fixed; inset: 0; z-index: 20; background: rgba(5,8,18,.65); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.pbox { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; text-align: center; max-width: 340px; }
.pbox img { border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.pbox p { font-weight: 600; font-size: 17px; }
.pbox button { border: 0; border-radius: 14px; padding: 12px 22px; font-weight: 800; letter-spacing: .08em; background: linear-gradient(135deg, var(--sun), #ff5a6a); cursor: pointer; }

.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); font-size: 12px; font-weight: 600; background: rgba(8,11,22,.95); border-top: 1px solid var(--line); }
.foot .made { letter-spacing: .1em; opacity: .7; white-space: nowrap; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr 1fr 1fr .8fr; font-size: 13px; padding: 10px 12px; gap: 6px; }
  .row > span:nth-child(3), .row > span:nth-child(6), .row > span:nth-child(7) { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { flex-direction: column; gap: 2px; font-size: 11px; }
  .status { font-size: 12px; max-width: 50vw; }
}

.top .home { margin-left: auto; color: var(--gold); font-weight: 800; letter-spacing: .06em; font-size: 14px; text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.top .home:hover { border-color: var(--gold); }
@media (max-width: 760px) { .top .home { font-size: 12px; padding: 6px 10px; } }
