:root {
  color-scheme: dark;
  --bg: #080e14;
  --panel: #111b24;
  --ink: #ecf4f8;
  --muted: #aebdca;
  --quiet: #8fa3b3;
  --line: #2c3b49;
  --cyan: #65e8f5;
  --cyan-dark: #07171d;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: radial-gradient(ellipse at 84% 10%, #10212b 0, transparent 45%), var(--bg);
}
.shell { width: min(1180px, calc(100% - clamp(32px, 8vw, 112px))); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--cyan); }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
input, select, button, form { min-width: 0; }
[hidden] { display: none !important; }
code, pre { font-family: var(--mono); }
code { overflow-wrap: anywhere; color: #9be7ef; font-size: .91em; }

.site-header, .site-footer, .brand, .game-tag, .titlebar, .inline, .actions { display: flex; align-items: center; }
.site-header, .site-footer, .titlebar { justify-content: space-between; gap: 1rem; }
.site-header { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 50%; display: block; width: 44px; height: 44px; }
.brand > span { font-weight: 800; font-size: 1.18rem; line-height: 1.04; letter-spacing: .075em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font: .57rem/1.2 var(--mono); letter-spacing: .23em; }
.game-tag { gap: .5rem; color: var(--muted); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.game-icon { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 1px solid #546575; border-radius: 4px; color: #cad5de; font: bold .82rem/1 var(--mono); }
main { flex: 1; padding-block: clamp(28px, 4.8vw, 66px) 52px; }
.eyebrow, .stats small, .site-footer { font-family: var(--mono); }
.eyebrow {
  display: flex; align-items: center; gap: .65rem; color: #a1b5c6;
  font-size: .68rem; font-weight: 600; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase;
}
.short-line { width: 1.6rem; height: 2px; background: var(--cyan); }
.section-no { color: var(--cyan); border-right: 1px solid #47606b; padding-right: .65rem; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 66px); align-items: center; }
.intro, .entry-grid > *, .workgrid > * { min-width: 0; }
.banner { overflow: hidden; background: #05090d; border: 1px solid #314754; border-radius: 8px; }
.banner img { display: block; width: 100%; height: auto; }
.intro-copy { padding: clamp(20px, 2.2vw, 30px) 0 0; }
h1 { font-size: clamp(2.05rem, 3.4vw, 3.15rem); line-height: 1.11; letter-spacing: -.045em; overflow-wrap: anywhere; }
.intro h1 { margin: .65rem 0 .5rem; }
.intro-description { max-width: 54ch; font-size: clamp(.97rem, 1.3vw, 1.08rem); color: var(--muted); }
.card, .install, .stats { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.card { padding: clamp(22px, 2.75vw, 36px); }
h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.18; letter-spacing: -.035em; }
.card h2, .install h2 { margin: .68rem 0 .4rem; }
h3 { font-size: 1.05rem; letter-spacing: -.015em; }
.subtext, .install p:not(.eyebrow), .code-help p { color: var(--muted); }
.login { position: relative; border-top-color: #497687; background: linear-gradient(154deg, #162630 0%, var(--panel) 62%); }
.login::before { content: ""; position: absolute; inset: -1px auto auto 26px; width: 64px; height: 2px; background: var(--cyan); }
form { margin-top: 1.35rem; }
label { display: block; margin: .88rem 0 .35rem; font-size: .85rem; font-weight: 650; }
input, select {
  display: block; width: 100%; min-height: 45px; border: 1px solid #506270; border-radius: 5px; padding: .66rem .78rem;
  color: var(--ink); background: #09131b; line-height: 1.35;
}
input::placeholder { color: var(--quiet); opacity: 1; }
#code, #command { font-family: var(--mono); }
#code { font-size: 1.02rem; }
.primary, .secondary, #quick button, .member button {
  display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 43px;
  padding: .65rem 1.05rem; line-height: 1.35; font-size: .93rem; font-weight: 680;
  border: 1px solid transparent; border-radius: 5px; text-decoration: none;
}
.primary { color: var(--cyan-dark); background: var(--cyan); }
.primary:hover { background: #a2f4ff; }
.secondary, #quick button, .member button { color: var(--ink); background: #14212b; border-color: #405463; }
.secondary:hover, #quick button:hover, .member button:hover { border-color: #83a9b2; background: #1d303c; }
.login-button, .block { width: 100%; margin-top: .92rem; }
.login-button { justify-content: space-between; min-height: 46px; }
.login-button span[aria-hidden], .classic-link span, .download span { font-size: 1.12rem; line-height: 1; }
.error { color: #ffc29f; }
.error:not(:empty) { margin-top: .8rem; }
.code-help { margin-top: 1.22rem; border-top: 1px solid var(--line); padding-top: .85rem; font-size: .86rem; }
.code-help summary { color: #c5d3de; }
.code-help p { margin-top: .55rem; }

.install { margin-top: clamp(28px, 4vw, 52px); padding: 22px clamp(18px, 3vw, 34px); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.install h2 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); }
.download { flex: none; }

.titlebar { margin: .55rem 0 1.55rem; }
.titlebar h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; margin-bottom: 1.25rem; }
.stats article { padding: 1.1rem clamp(12px, 2vw, 26px); }
.stats article + article { border-left: 1px solid var(--line); }
.stats small { display: block; font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stats strong { display: block; margin-top: .25rem; font-size: clamp(1.08rem, 1.8vw, 1.45rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#status::before { content: ""; display: inline-block; vertical-align: .12em; width: .48em; height: .48em; border-radius: 50%; margin-right: .4em; background: var(--quiet); }
#status.online::before { background: var(--cyan); }
.workgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.workgrid:has(#settings[hidden]) { grid-template-columns: 1fr; }
.settings { display: grid; gap: 1rem; }
.classic-card { border-color: #365563; }
.classic-link { margin-top: .9rem; color: var(--cyan); }
.inline { gap: .5rem; align-items: stretch; }
.inline button { flex: none; }
#quick, .actions { display: flex; flex-wrap: wrap; gap: .48rem; }
#quick button, .member button, #hideIssued { min-height: 36px; padding: .42rem .7rem; font-size: .8rem; }
.field-hint, #commandsHint, .member small, .logrow small { display: block; margin-top: .64rem; color: var(--muted); font-size: .82rem; }
.actions { margin-top: .9rem; }
.log-heading { display: flex; align-items: center; gap: 1rem; margin-top: 1.65rem; }
.log-heading span { flex: 1; border-top: 1px solid var(--line); }
#jobs { margin-top: .8rem; }
#jobs:empty::before { content: "Még nincs végrehajtott művelet."; color: var(--muted); font-size: .89rem; }
.logrow, .member { border-top: 1px solid var(--line); padding: .78rem 0; overflow-wrap: anywhere; }
.logrow:first-child { border-top: 0; }
.logrow small, .member small { margin: 0 0 .18rem; }
.logrow pre { margin: .5rem 0 0; padding: .65rem .8rem; background: #09131b; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: #cadce6; font-size: .84rem; }
#issuedBox, #members:not(:empty) { margin-top: 1rem; }
#issuedBox { border: 1px solid #477780; border-radius: 5px; padding: .9rem; background: #12252b; }
#issuedBox p { color: var(--muted); font-size: .9rem; }
#issued { display: block; margin: .45rem 0 .7rem; user-select: all; }
.member { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.notice:not(:empty) { position: fixed; bottom: 18px; right: 18px; max-width: min(420px, 90vw); background: #1b2b37; border: 1px solid #68909f; border-radius: 5px; padding: 12px 18px; box-shadow: 0 6px 28px #0009; }
.site-footer { border-top: 1px solid var(--line); padding-block: 19px; color: var(--quiet); font-size: .68rem; letter-spacing: .06em; }
.site-footer b { color: var(--cyan); margin: 0 .32rem; }

@media (max-width: 900px) {
  .entry-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
  .workgrid { grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .site-header { min-height: 62px; }
  .brand img { width: 37px; height: 37px; }
  .brand > span { font-size: 1.02rem; }
  main { padding-top: 22px; padding-bottom: 32px; }
  .entry-grid, .workgrid { grid-template-columns: 1fr; gap: 18px; }
  .intro-copy { padding-top: .85rem; }
  .intro-copy .eyebrow { display: none; }
  .intro h1 { font-size: 1.65rem; margin: 0 0 .28rem; }
  .intro-description { font-size: .94rem; }
  .install { margin-top: 20px; flex-wrap: wrap; gap: 1rem; }
  .card { padding: 21px; }
  .stats article { padding: .75rem .6rem; }
}
@media (max-width: 410px) {
  .shell { width: calc(100% - 28px); }
  .game-tag { font-size: .76rem; }
  .game-icon { display: none; }
  .stats small { font-size: .58rem; }
  .stats strong { font-size: 1rem; }
  .site-footer { font-size: .59rem; }
}

