/* ENOT GAMES — хаб и админка. Брутализм EnotWeb: чёрный/белый, жёлтый акцент, без скруглений. */
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
:root {
  --ink: #0A0A0A; --paper: #FFFFFF; --bg: #F0F0F0; --grey: #E0E0E0; --yellow: #FFD400; --red: #B42318; --green: #067647;
  --font-head: "Archivo Black", "Onest", "Arial Black", sans-serif;
  --font-mono: "Space Mono", "IBM Plex Mono", "Courier New", monospace;
  --font-num: "IBM Plex Mono", "Space Mono", "Courier New", monospace;
  --font-text: "Work Sans", "Onest", system-ui, sans-serif;
}
html { color-scheme: light; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 1.4; }
button, input, select { font: inherit; color: inherit; appearance: none; -webkit-appearance: none; }
button, .btn {
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 #000;
  min-height: 44px; padding: 8px 14px; font-family: var(--font-text); font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; font-size: 15px;
}
button:active, .btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 #000; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 5px 5px 0 #000; }
.btn--light, button.btn--light { background: var(--paper); color: var(--ink); }
.btn--yellow, button.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--red, button.btn--red { background: var(--red); border-color: var(--ink); color: var(--paper); }
a { color: var(--ink); }
:focus { outline: none; } :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
input[type=text], input[type=password], input[type=number], input[type=search], select {
  background: var(--paper); border: 3px solid var(--ink); min-height: 44px; padding: 8px 10px; width: 100%; font-family: var(--font-num); font-size: 16px;
}
.mono { font-family: var(--font-mono); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* бегущая строка */
.ticker { background: var(--ink); color: var(--paper); min-height: 40px; display: flex; align-items: center; overflow: hidden;
  text-transform: uppercase; letter-spacing: .04em; font-size: 14px; font-family: var(--font-mono); }
.ticker-track { display: flex; width: max-content; animation: ticker-run 60s linear infinite; }
.ticker-copy { flex: 0 0 auto; white-space: nowrap; padding: 8px 0; }
.ticker-copy b { color: var(--yellow); font-weight: 700; }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.shell { max-width: 1320px; margin: 0 auto; padding: 18px 20px 40px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { display: inline-flex; border: 3px solid var(--ink); }
.word-enot, .word-web { font-family: var(--font-head); font-size: 22px; letter-spacing: .04em; line-height: 1; padding: 7px 8px; }
.word-enot { background: var(--paper); } .word-web { background: var(--ink); color: var(--paper); }
.meta-tag { border: 3px solid var(--ink); padding: 4px 6px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); font-family: var(--font-mono); }
.acct { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.acct-nick { font-weight: 700; border: 3px solid var(--ink); background: var(--paper); min-height: 44px; padding: 8px 12px; display: inline-flex; align-items: center; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-bal { background: var(--ink); color: var(--paper); border: 3px solid var(--ink); min-height: 44px; padding: 8px 12px; display: inline-flex; align-items: center; font-weight: 700; font-family: var(--font-num); }
.acct-bal small { color: var(--yellow); margin-left: 8px; font-size: 13px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 26px; align-items: end; margin-bottom: 28px; }
.hero h1 { font-family: var(--font-head); margin: 0; font-size: clamp(44px, 7vw, 96px); line-height: .88; letter-spacing: -.04em; }
.slogan { margin: 14px 0 0; font-family: var(--font-head); font-weight: 900; font-synthesis: none; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.01em; }
.slogan .hl { background: var(--yellow); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 0 .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { margin: 16px 0 0; font-size: 18px; font-weight: 600; max-width: 760px; }
.hero-note { font-family: var(--font-mono); font-size: 13px; border: 3px solid var(--ink); background: var(--paper); padding: 10px 12px; max-width: 320px; box-shadow: 6px 6px 0 var(--ink); }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 36px; }
.gcard { display: flex; flex-direction: column; background: var(--paper); border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; min-width: 0; }
.gcard:hover { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--ink); }
.gcard:active { transform: translate(6px, 6px); box-shadow: 4px 4px 0 var(--ink); }
.gcard-art { position: relative; aspect-ratio: 16 / 11; border-bottom: 5px solid var(--ink); overflow: hidden; background: var(--bg); }
.gcard-art svg { display: block; width: 100%; height: 100%; }
.gcard-tag { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 12px; padding: 4px 8px; text-transform: uppercase; letter-spacing: .06em; }
.gcard-new { position: absolute; right: 12px; top: 12px; background: var(--yellow); border: 3px solid var(--ink); font-family: var(--font-head); font-size: 14px; padding: 2px 8px; transform: rotate(4deg); }
.gcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcard-title { font-family: var(--font-head); font-weight: 900; font-synthesis: none; font-size: clamp(26px, 2.6vw, 36px); line-height: .95; letter-spacing: -.02em; margin: 0; }
.gcard-sub { font-weight: 700; margin: 0; }
.gcard-txt { margin: 0; color: #333; font-size: 15px; flex: 1; }
.gcard-meta { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }
.gcard-meta span { border: 2px solid var(--ink); padding: 2px 6px; }
.gcard-go { font-weight: 900; margin-top: 6px; align-self: stretch; font-family: var(--font-head); font-size: 20px; letter-spacing: .02em; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 10px; text-align: center; }

.row2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.panel { background: var(--paper); border: 5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 5px solid var(--ink); background: var(--ink); color: var(--paper); }
.panel-head h2 { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 900; font-synthesis: none; letter-spacing: .01em; }
.panel-body { padding: 14px 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { min-height: 36px; padding: 4px 10px; font-size: 13px; background: var(--paper); color: var(--ink); border: 3px solid var(--paper); box-shadow: none; }
.tabs button.is-on { background: var(--yellow); border-color: var(--yellow); }
.top { width: 100%; border-collapse: collapse; font-size: 15px; }
.top th, .top td { text-align: left; padding: 8px 6px; border-bottom: 2px solid var(--ink); }
.top th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.top td.r, .top th.r { text-align: right; }
.top tr.is-me td { background: var(--yellow); }
.top .place { font-family: var(--font-head); width: 38px; }
.pos { color: var(--green); font-weight: 700; } .neg { color: var(--red); font-weight: 700; }
.empty { padding: 18px 4px; font-family: var(--font-mono); color: #333; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 2px solid var(--ink); }
.feed .g { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; border: 2px solid var(--ink); padding: 2px 5px; white-space: nowrap; }
.feed .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.feed .who small { display: block; font-weight: 400; font-family: var(--font-mono); font-size: 11px; color: #333; }
.feed .x { font-family: var(--font-head); background: var(--yellow); border: 2px solid var(--ink); padding: 2px 6px; white-space: nowrap; }
.feed .x--ban { background: var(--red); color: var(--paper); }
.feed li.is-loss .who small { color: var(--red); font-weight: 700; }
.feed--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.game-feed { margin-top: 26px; }

.cta { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--yellow); border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 20px 22px; }
.cta h3 { margin: 0; font-family: var(--font-head); font-size: clamp(22px, 3vw, 34px); line-height: 1.05; font-weight: 900; font-synthesis: none; }
.cta p { margin: 8px 0 0; font-weight: 600; }
.foot { margin-top: 30px; font-family: var(--font-mono); font-size: 12px; color: #333; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* модалка входа */
.modal { position: fixed; inset: 0; background: rgba(10,10,10,.72); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-card { background: var(--paper); border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.modal-card h2 { margin: 0; padding: 14px 16px; background: var(--ink); color: var(--paper); font-family: var(--font-head); font-weight: 900; font-synthesis: none; font-size: 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal-card h2 button { min-height: 36px; padding: 2px 10px; background: var(--paper); color: var(--ink); box-shadow: none; border-color: var(--paper); }
.modal-body { padding: 16px; display: grid; gap: 12px; }
.modal-body label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--ink); }
.seg button { box-shadow: none; border: 0; background: var(--paper); color: var(--ink); min-height: 40px; }
.seg button.is-on { background: var(--ink); color: var(--paper); }
.msg { font-family: var(--font-mono); font-size: 13px; padding: 8px 10px; border: 3px solid var(--ink); background: var(--bg); }
.msg.is-err { background: #FDECEA; border-color: var(--red); color: var(--red); }
.msg.is-ok { background: #E7F6EE; border-color: var(--green); color: var(--green); }
.pw { font-family: var(--font-num); font-size: 22px; font-weight: 700; background: var(--yellow); border: 3px solid var(--ink); padding: 8px 10px; text-align: center; letter-spacing: .04em; user-select: all; }

@media (max-width: 1280px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}
@media (max-width: 1080px) {
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { padding: 12px 12px 28px; }
  .topbar { margin-bottom: 16px; }
  .word-enot, .word-web { font-size: 18px; padding: 6px 6px; }
  .meta-tag { display: none; }
  .acct { width: 100%; flex-wrap: nowrap; justify-content: stretch; gap: 6px; }
  .acct > * { flex: 0 0 auto; }
  .acct-nick { flex: 1 1 0; min-width: 0; max-width: none; padding: 8px; }
  .acct-bal { padding: 8px; font-size: 14px; }
  .acct-bal small { display: none; }
  .acct > button, .acct > .btn { padding: 8px 10px; font-size: 13px; }
  #btn-login { flex: 1 1 auto; }
  .slogan { line-height: 1.45; }
  .hero-note { font-size: 12px; box-shadow: 5px 5px 0 var(--ink); }
  .hero { grid-template-columns: 1fr; }
  .hero .lead { font-size: 16px; }
  .hero-note { max-width: none; }
  .cards { grid-template-columns: 1fr; gap: 22px; }
  .gcard { box-shadow: 7px 7px 0 var(--ink); }
  .cta { grid-template-columns: 1fr; box-shadow: 7px 7px 0 var(--ink); }
  .panel { box-shadow: 6px 6px 0 var(--ink); }
  .top { font-size: 14px; }
  .top .hide-m { display: none; }
}
@media (max-width: 720px) { .feed--2 { grid-template-columns: 1fr; } .game-feed { margin-top: 18px; } }
