@font-face { font-family: Jost; src: url(assets/jost.woff2) format("woff2"); font-weight: 500 900; font-display: swap; }
:root {
  --bg: #252525; --card: #2e2e2e; --line: #454545; --text: #fff; --soft: #c6c6c6; --ink: #121212;
  --blue: #14a5d9; --grad: linear-gradient(113deg, #0adaed 4%, #b40dfd 100%); --ok: #56e0a4; --bad: #ff8f8f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body { min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 700 16px/1.5 Jost, system-ui, sans-serif; letter-spacing: .04em; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
a { color: inherit; }
img { max-width: 100%; }

.strip { background: #fff; color: var(--ink); min-height: clamp(36px, 4.6svh, 46px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 clamp(16px, 4vw, 56px); font-size: 15px; }
.strip a { text-decoration: none; }
.strip > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; transition: transform .15s; }
.social a:hover { transform: scale(1.12); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.head { background: var(--grad); color: var(--ink); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: clamp(6px, 1.2svh, 12px) clamp(16px, 4vw, 56px); }
.head .logo { grid-column: 2; display: block; border-radius: 50%; }
.head .logo img { display: block; width: clamp(58px, 10svh, 112px); height: auto; aspect-ratio: 1; transition: transform .2s; }
.head .logo:hover img { transform: scale(1.04); }

.photo { height: clamp(70px, 14svh, 210px); background: linear-gradient(rgb(0 0 0 / .28), rgb(0 0 0 / .28)), url(assets/brushes.jpg) center 42% / cover; }
.shell { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) clamp(12px, 2.4svh, 44px); display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.side { min-width: 0; margin-top: -66px; display: grid; gap: 6px; }
.avatar { width: 136px; height: 136px; padding: 3px; border-radius: 18px; background: var(--grad); }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.side h2 { font-size: 24px; margin-top: 10px; }
.side > a { color: var(--soft); text-decoration: none; width: fit-content; font-size: 15px; }
.side > a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.earn { margin-top: 10px; display: grid; gap: 8px; }
.earn p, .about { color: var(--soft); }
.earn b, .about b { color: var(--text); }
.about { margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; }

.main { min-width: 0; padding-top: clamp(12px, 2.6svh, 34px); display: grid; gap: clamp(10px, 1.8svh, 18px); }
.eyebrow { font-size: 15px; color: var(--soft); }
h1 { font-size: clamp(28px, min(4.4vw, 5svh), 46px); }
.desc { margin-top: 8px; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.prize { display: block; width: 100%; max-height: 34svh; object-fit: contain; border-radius: 16px; background: var(--card); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: clamp(10px, 1.9svh, 22px) 12px; border-radius: 16px; background: var(--grad); color: var(--ink); text-align: center; }
.stats strong { display: block; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: .02em; overflow-wrap: anywhere; }
.stats span { font-size: 15px; }
.card { background: var(--card); border-radius: 16px; padding: clamp(14px, 2.5svh, 28px) clamp(16px, 2.6vw, 30px); display: grid; gap: clamp(8px, 1.6svh, 16px); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.card h2 { font-size: 23px; }
.price { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #fff; padding: 6px 14px; }
.price b { font-size: 22px; line-height: 1.2; }
.amber { width: 20px; height: 20px; object-fit: contain; vertical-align: -3px; }
.soft { color: var(--soft); }
.small { font-size: 15px; }
.bar { height: 10px; border-radius: 99px; background: #454545; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .35s; }
.mine { color: var(--soft); }
.mine b { color: var(--text); font-variant-numeric: tabular-nums; }
.buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.buy .go { margin-left: auto; }
.msg { min-height: 1.5em; }
.msg:empty { display: none; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.win { text-align: center; padding: clamp(8px, 2svh, 22px) 0; justify-items: center; }
.win strong { font-size: clamp(34px, min(6vw, 7svh), 60px); line-height: 1.15; background: var(--grad); background-clip: text; -webkit-background-clip: text; color: transparent; overflow-wrap: anywhere; }
.head .foot { justify-content: flex-end; color: var(--ink); min-height: 1.5em; }
.head .foot a { text-underline-offset: 4px; }
.managing :is(.photo, #page) { display: none; }
.head .foot b { color: inherit; }
.foot { display: flex; gap: 4px 14px; flex-wrap: wrap; color: var(--soft); font-size: 15px; }
.foot b { color: var(--text); }
.end { border-top: 1px solid #3a3a3a; padding: clamp(6px, 1.2svh, 14px) clamp(16px, 4vw, 56px); display: flex; justify-content: space-between; gap: 4px 20px; flex-wrap: wrap; color: var(--soft); font-size: 14px; }
.sample { background: #ffd84d; color: #121212; text-align: center; padding: 6px 16px; font-size: 14px; }

button, .btn, input, textarea { font: inherit; letter-spacing: inherit; }
.btn { border: 0; background: var(--blue); color: #fff; padding: 13px 30px; font-size: 18px; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; display: inline-block; transition: box-shadow .15s, filter .15s; }
.btn:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--blue); filter: brightness(1.06); }
.btn:disabled { background: #4a4a4a; color: #c6c6c6; cursor: not-allowed; }
.btn.line { background: transparent; box-shadow: inset 0 0 0 1px #fff; }
.btn.line:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #fff; filter: none; }
.btn.line:disabled { box-shadow: inset 0 0 0 1px #6a6a6a; background: transparent; color: #9a9a9a; }
.btn.slim { padding: 9px 18px; font-size: 16px; }
.btn.red { background: transparent; box-shadow: inset 0 0 0 1px var(--bad); color: var(--bad); }
.text { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
input, textarea { width: 100%; background: var(--bg); color: #fff; border: 1px solid #8a8a8a; border-radius: 0; padding: 10px 14px; }
.qty { width: 110px; text-align: center; font-size: 18px; }
textarea { resize: vertical; min-height: 84px; }
:is(a, button, input, textarea, .btn):focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.strip :focus-visible, .head :focus-visible { outline-color: #121212; }

.control { max-width: 980px; display: block; padding-top: clamp(18px, 3svh, 34px); }
.control > * + *, #all > * + * { margin-top: 16px; }
.control h1 { font-size: 34px; }
.control label { display: grid; gap: 4px; color: var(--soft); font-size: 15px; }
.control .check { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 16px; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--bad); margin-right: 10px; }
.dot.on { background: var(--ok); }
.copy { display: flex; gap: 10px; }
.copy input { min-width: 0; }
.thumb { max-width: 260px; max-height: 130px; border-radius: 10px; display: block; }
.scroll { overflow-x: auto; max-height: 420px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--soft); 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: #fff; color: #121212; 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: #ffd9d9; }
dialog { border: 0; border-radius: 16px; background: var(--card); color: #fff; padding: 26px; max-width: min(440px, calc(100% - 32px)); }
dialog::backdrop { background: rgb(0 0 0 / .65); }
dialog .acts { margin-top: 20px; }

@media (max-width: 820px) {
  .strip { grid-template-columns: 1fr auto; }
  .strip > :last-child:empty { display: none; }
  .head { grid-template-columns: 1fr; justify-items: center; gap: 4px; }
  .head .logo { grid-column: 1; }
  .head .foot { justify-content: center; }
  .head .logo img { width: 70px; }
  .photo { height: 92px; }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .side { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; margin-top: -34px; }
  .side .avatar { width: 92px; height: 92px; grid-row: 1 / 3; }
  .side h2 { font-size: 21px; margin: 38px 0 0; align-self: end; }
  .side > a { align-self: start; }
  .earn, .about { grid-column: 1 / -1; margin-top: 4px; }
  .earn { gap: 2px; }
  .buy .go { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) {
  .strip { font-size: 14px; letter-spacing: 0; }
  .stats span { font-size: 13px; letter-spacing: 0; }
  .stats { padding-inline: 6px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
