@font-face { font-family: "Bebas Neue"; src: url("BebasNeue-Regular.ttf"); font-display: swap; }
:root {
  color-scheme: dark;
  --ground: #0f1216; --panel: rgba(22, 28, 35, .86); --line: #2b333d; --ice: #6aaeea; --text: #edf2f7; --muted: #a3b0be;
  --ok: #7fe0b0; --bad: #ffb3a5;
  --display: "Bebas Neue", Impact, sans-serif; --body: "Barlow", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body { min-height: 100svh; display: flex; flex-direction: column; color: var(--text); background: linear-gradient(rgba(15, 18, 22, .84), rgba(15, 18, 22, .92)), var(--ground) url("backdrop.jpg") center / cover fixed; font: 500 17px/1.5 var(--body); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: .03em; text-wrap: balance; overflow-wrap: anywhere; }
a { color: var(--ice); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px clamp(16px, 5vw, 88px); }
.brand { line-height: 0; }
.brand img { height: clamp(40px, 7svh, 56px); }
.foot { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; color: var(--muted); font-size: 16px; }
.foot b { color: var(--text); }
.foot a, .foot .text { color: var(--text); font: 400 21px/1 var(--display); letter-spacing: .08em; text-decoration: none; }
.foot a:hover, .foot .text:hover { color: var(--ice); }
.end { padding: 14px clamp(16px, 5vw, 88px); text-align: center; color: var(--muted); font-size: 14px; }
.sample { background: var(--ice); color: #08111a; text-align: center; padding: 6px 16px; font-weight: 700; font-size: 14px; }

.shell { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(8px, 2svh, 24px) clamp(16px, 4vw, 40px) 24px; }
.control > * + * { margin-top: 18px; }
.control h1 { font-size: clamp(42px, 6vw, 64px); }
.gate .card { max-width: 620px; margin: clamp(20px, 8svh, 90px) auto 0; text-align: center; justify-items: center; }
.gate h1 { font-size: clamp(42px, 7vw, 64px); }
.card { background: var(--panel); border: 1px solid var(--line); padding: clamp(16px, 2.6svh, 28px) clamp(16px, 2.6vw, 30px); display: grid; gap: 14px; min-width: 0; }
.card h2 { font-size: 34px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; align-items: start; }
.eyebrow { color: var(--ice); font: 400 20px/1 var(--display); letter-spacing: .08em; margin-bottom: 4px; }
.soft { color: var(--muted); }
.small { font-size: 15px; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }
.buy { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 10px; border: 1px solid var(--line); background: rgba(106, 174, 234, .08); text-align: center; }
.stats strong { display: block; font: 400 clamp(34px, 4vw, 46px)/1 var(--display); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 15px; }
.win { display: grid; justify-items: center; text-align: center; padding: 6px 0; }
.win strong { font: 400 clamp(40px, 6vw, 64px)/1.05 var(--display); color: var(--ice); overflow-wrap: anywhere; }

button, input, textarea { font: inherit; color: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 4px 26px 0; font: 400 23px/1 var(--display); letter-spacing: .08em; text-decoration: none; background: var(--ice); color: #08111a; border: 0; cursor: pointer; }
.btn:hover:not(:disabled) { background: #9accf7; }
.btn.line { background: none; color: var(--text); box-shadow: inset 0 0 0 2px #46525f; }
.btn.line:hover:not(:disabled) { background: none; box-shadow: inset 0 0 0 2px var(--ice); }
.btn.red { background: none; color: var(--bad); box-shadow: inset 0 0 0 2px #7a4a42; }
.btn.red:hover:not(:disabled) { background: none; box-shadow: inset 0 0 0 2px var(--bad); }
.btn.slim { min-height: 42px; padding: 3px 18px 0; font-size: 20px; }
.btn:disabled { opacity: .5; cursor: default; }
.text { background: none; border: 0; padding: 0; color: var(--ice); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.end2 { justify-content: flex-end; }

.control label { display: grid; gap: 5px; color: var(--muted); font-size: 15px; }
.control label .row { gap: 8px; }
.control label > span:first-child:not(.row) { color: var(--text); }
.control label .row > span:first-child { color: var(--text); font: 400 20px/1 var(--display); letter-spacing: .06em; }
.control label > span:last-child:not(.row):not(.copy) { font-size: 14px; }
input, textarea { width: 100%; min-width: 0; background: rgba(15, 18, 22, .8); border: 1px solid #5d6c7c; border-radius: 0; padding: 10px 14px; color: var(--text); font: 500 17px/1.4 var(--body); }
input:focus, textarea:focus { border-color: var(--ice); outline: none; }
textarea { resize: vertical; min-height: 90px; }
input:disabled { opacity: .5; }
.control .check { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 16px; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--ice); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.pick { display: grid; gap: 10px; justify-items: start; padding: 14px; border: 1px dashed #5d6c7c; }
.pick img { max-height: 150px; display: block; }
.copy { display: flex; gap: 10px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--bad); margin-right: 10px; }
.dot.on { background: var(--ok); }

.list { gap: 0; }
.list > .row { padding-bottom: 14px; }
.past { padding: 12px 0 8px; display: grid; gap: 2px; border-top: 1px solid var(--line); min-width: 0; }
.past b { font-weight: 700; overflow-wrap: anywhere; min-width: 0; flex: 1; }
.past .row { flex-wrap: nowrap; }
.past > .row > .icon { margin-left: -8px; }
.badge { flex: none; padding: 3px 10px 1px; font: 400 17px/1.1 var(--display); letter-spacing: .08em; background: #2b333d; color: var(--text); }
.badge.run { background: var(--ice); color: #08111a; }
.badge.good { background: #173d2c; color: var(--ok); }
.badge.wait { background: #44391a; color: #ffd676; }
.icons { display: flex; gap: 2px; margin-right: -8px; }
.icon { background: none; border: 0; color: var(--text); width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.icon svg { width: 20px; height: 20px; fill: currentColor; }
.icon:hover:not(:disabled) { color: var(--ice); }
.icon:disabled { color: #56616d; cursor: not-allowed; }

.scroll { overflow: auto; max-height: 420px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 14px; }
td { overflow-wrap: anywhere; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #08111a; font-weight: 600; padding: 12px 22px; max-width: calc(100% - 32px); width: max-content; box-shadow: 0 8px 30px rgb(0 0 0 / .5); z-index: 5; }
.toast.bad { background: #ffd9d2; }
dialog { border: 1px solid var(--line); background: #161c23; color: var(--text); padding: 26px; max-width: min(460px, calc(100% - 32px)); }
dialog::backdrop { background: rgb(0 0 0 / .7); }
dialog h2 { font-size: 34px; margin-bottom: 6px; }
dialog .acts { margin-top: 20px; }

@media (max-width: 520px) {
  .stats span { font-size: 13px; }
  .foot { gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
