/* WinMC Mídia: mesmo tema do site dos tiers (escuro, dourado, Inter + Silkscreen). */
:root {
  --bg: #0b0d14; --panel: #12151f; --panel2: #171b28; --line: #232838; --text: #e7e9f0; --dim: #8a90a3;
  --gold: #ffc21a; --green: #4bd47a; --red: #ff5d5d; --purple: #9147ff; --radius: 12px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 14px/1.5 Inter, system-ui, sans-serif;
  background: radial-gradient(900px 420px at 15% -10%, rgba(255,194,26,.10), transparent 60%),
              radial-gradient(800px 500px at 100% 0%, rgba(145,71,255,.13), transparent 60%), var(--bg);
  background-attachment: fixed;
}
a { color: var(--gold); }
.wrap { width: min(980px, calc(100vw - 32px)); margin: 0 auto; padding-bottom: 48px; }
.wrap.narrow { width: min(560px, calc(100vw - 32px)); }

header.top { display: flex; align-items: center; gap: 14px; padding: 22px 0 18px; }
header.top img { height: 52px; width: auto; filter: drop-shadow(0 4px 14px rgba(255,194,26,.25)); }
header.top .t { font-family: Silkscreen, monospace; font-size: 20px; line-height: 1.1; }
header.top .s { color: var(--dim); font-size: 13px; }
header.top .grow { flex: 1; }

h1, h2, h3 { font-family: Silkscreen, monospace; font-weight: 400; line-height: 1.2; }
h1 { font-size: 26px; color: var(--gold); margin: 6px 0 10px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--dim); }
p { margin: 0 0 10px; }
.dim { color: var(--dim); }
.small { font-size: 12px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.35); margin-bottom: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }

button, .btn {
  font: 600 14px Inter, system-ui, sans-serif; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 9px; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
button:hover, .btn:hover { border-color: #39405a; }
button:disabled { opacity: .5; cursor: default; }
.btn-gold { background: var(--gold); color: #191300; border-color: var(--gold); }
.btn-gold:hover { background: #ffd04f; border-color: #ffd04f; }
.btn-twitch { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-twitch:hover { background: #a46bff; border-color: #a46bff; }
.btn-red { color: var(--red); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 13px 20px; font-size: 16px; }

input, select, textarea {
  font: 14px Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.field { margin-bottom: 10px; }
.fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.code-input { font-family: Silkscreen, monospace; font-size: 30px; letter-spacing: 8px; text-align: center; text-transform: uppercase; padding: 12px; }
.big-code { font-family: Silkscreen, monospace; font-size: 34px; color: var(--gold); letter-spacing: 6px; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--dim); }
.tag.ok { color: var(--green); border-color: rgba(75,212,122,.35); }
.tag.warn { color: var(--gold); border-color: rgba(255,194,26,.35); }
.tag.bad { color: var(--red); border-color: rgba(255,93,93,.35); }

.msg { padding: 10px 12px; border-radius: 9px; margin: 10px 0; border: 1px solid var(--line); background: var(--panel2); }
.msg.ok { border-color: rgba(75,212,122,.4); color: var(--green); }
.msg.err { border-color: rgba(255,93,93,.4); color: var(--red); }
.hidden { display: none !important; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 38px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--gold); color: var(--gold); font: 13px/24px Silkscreen, monospace; text-align: center;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: 12px; }
.table-wrap { overflow-x: auto; }

nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
nav.tabs button.on { border-color: var(--gold); color: var(--gold); }

.item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.item .ico { width: 36px; height: 36px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); flex: none; display: grid; place-items: center; font-family: Silkscreen, monospace; font-size: 11px; color: var(--gold); }
.item .ico.ench { box-shadow: 0 0 12px rgba(145,71,255,.55) inset; }
.item .nm { font-weight: 600; }
.item .lore { color: var(--dim); font-size: 12px; }

.action { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.action .amount { width: 90px; }
@media (max-width: 560px) { .action { grid-template-columns: 1fr; } }

.reward { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); margin-bottom: 10px; }
.reward.on { border-color: rgba(145,71,255,.6); }
.reward .opts { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.reward .opts .field { margin: 0; width: 110px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; transition: .15s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--dim); border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--purple); border-color: var(--purple); }
.switch input:checked + span::before { transform: translateX(20px); background: #fff; }

.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--purple); }
footer { color: var(--dim); font-size: 12px; text-align: center; margin-top: 30px; }
