/* Stake Engine section, launch settings and RGS console */
:root { --stake: #34d399; --stake-2: #10b981; --stake-bg: #121626; --stake-panel: #1a1f33; --stake-line: #2a2f45; }

.small { font-size: 12.5px; }
.stake-tag {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: rgba(16, 20, 34, .9); color: var(--stake); border: 1px solid rgba(52, 211, 153, .35);
}
.stake-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--stake); box-shadow: 0 0 8px var(--stake); }
.card .thumb .stake-tag { top: auto; bottom: 12px; }

/* ---------- home section ---------- */
.stake-band {
  margin: 8px 0 64px; padding: 32px; border-radius: 22px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(52, 211, 153, .09), transparent 55%), linear-gradient(180deg, #101422, #0e1120);
  border: 1px solid var(--stake-line);
}
.stake-band .eyebrow { color: var(--stake); }
.stake-band h2 { margin: 4px 0 6px; font: 800 30px/1.15 var(--display); }
.stake-lead { max-width: 720px; margin: 0; }
.stake-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 26px; }
.stake-point { background: rgba(26, 31, 51, .7); border: 1px solid var(--stake-line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.stake-point b { font-size: 14px; }
.stake-point span { color: #b1bad3; font-size: 13px; line-height: 1.5; }
.stake-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.stake-game { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--stake-panel); border: 1px solid var(--stake-line); border-radius: 16px; overflow: hidden; transition: .2s; }
.stake-game:hover { border-color: rgba(52, 211, 153, .45); transform: translateY(-2px); }
.stake-game .thumb { position: relative; min-height: 200px; background: #0b0c14 center/cover; }
.stake-game .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.stake-game h3 { margin: 0; font: 700 20px var(--display); }
.stake-game p { margin: 0 0 6px; font-size: 14px; }
.stake-note { margin: 18px 0 0; color: #7f8ba3; font-size: 12.5px; }

/* ---------- launch settings ---------- */
.stake-host { background: linear-gradient(180deg, var(--stake-bg), #0c0f1a); }
.stake-setup { padding: 26px; display: grid; gap: 22px; }
.stake-setup-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.stake-setup-head .eyebrow { color: var(--stake); }
.stake-setup-head h3 { margin: 2px 0 4px; font: 700 22px var(--display); }
.stake-setup-head p { margin: 0; max-width: 720px; font-size: 14px; }
.stake-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; }
.stake-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.stake-field.wide { grid-column: span 2; }
.lbl { font-size: 12px; font-weight: 600; color: #b1bad3; letter-spacing: .02em; }
.lbl small { font-weight: 400; color: #7f8ba3; }
.stake-setup select, .stake-setup input:not([type=radio]):not([type=checkbox]) {
  width: 100%; background: #101422; border: 1px solid var(--stake-line); border-radius: 10px; padding: 10px 12px; min-height: 42px;
}
.stake-setup select:focus, .stake-setup input:focus { outline: 2px solid rgba(52, 211, 153, .45); outline-offset: 1px; }
.stake-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stake-seg label { position: relative; cursor: pointer; }
.stake-seg input { position: absolute; opacity: 0; pointer-events: none; }
.stake-seg span { display: grid; gap: 1px; padding: 9px 14px; min-height: 42px; align-content: center; border-radius: 10px; border: 1px solid var(--stake-line); background: #101422; font-weight: 600; font-size: 14px; }
.stake-seg small { color: #7f8ba3; font-weight: 500; font-size: 12px; }
.stake-seg input:checked + span { border-color: var(--stake-2); background: rgba(16, 185, 129, .08); box-shadow: inset 0 0 0 1px var(--stake-2); }
.stake-seg input:focus-visible + span { outline: 2px solid var(--stake); }
.stake-rules { border: 1px solid var(--stake-line); border-radius: 14px; padding: 14px 16px; background: rgba(16, 20, 34, .6); }
.stake-rules-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.stake-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.stake-presets .chip.active { background: var(--stake-2); border-color: var(--stake-2); color: #04241a; }
.stake-flags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; }
.stake-flag { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.stake-flag input { accent-color: var(--stake-2); width: 16px; height: 16px; }
.stake-flag.select { grid-column: span 2; gap: 10px; }
.stake-flag.select select { width: auto; min-height: 34px; padding: 6px 10px; }
.stake-foot { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.stake-url { flex: 1; min-width: 0; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; color: #8fa3b8; background: #0c0f1a; border: 1px dashed var(--stake-line); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.stake-play { padding: 13px 26px; font-size: 16px; background: linear-gradient(135deg, #6ee7b7, var(--stake-2)); color: #04241a; }
.stake-play:hover { background: linear-gradient(135deg, #6ee7b7, var(--stake-2)); filter: brightness(1.06); }
.stake-play svg { width: 18px; height: 18px; }

/* ---------- console ---------- */
.stake-console-wrap { margin-top: 16px; }
.stake-console { background: var(--stake-bg); border: 1px solid var(--stake-line); border-radius: var(--radius); overflow: hidden; }
.stake-console-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--stake-line); flex-wrap: wrap; }
.stake-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.stake-chips .pill { background: var(--stake-panel); border-color: var(--stake-line); }
.stake-console-grid { display: grid; grid-template-columns: 300px 1fr; }
.stake-console-grid > div { padding: 16px; min-width: 0; }
.stake-console-grid > div + div { border-left: 1px solid var(--stake-line); }
.stake-console h4 { margin: 0 0 4px; font-size: 14px; }
.stake-console p { margin: 0 0 10px; }
.stake-force { display: flex; gap: 6px; flex-wrap: wrap; }
.stake-force .chip[disabled] { opacity: .4; cursor: not-allowed; }
.stake-endpoints { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.stake-endpoints li { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.stake-endpoints code { color: #b1bad3; }
.stake-endpoints .n { min-width: 26px; text-align: center; border-radius: 999px; background: var(--stake-panel); color: #7f8ba3; font-weight: 700; }
.stake-endpoints .n.hit { color: #04241a; background: var(--stake-2); }
.stake-log { max-height: 340px; overflow: auto; display: grid; gap: 4px; align-content: start; }
.rgs-row { background: var(--stake-panel); border-radius: 8px; font-size: 12.5px; }
.rgs-row summary { display: grid; grid-template-columns: 44px minmax(120px, 170px) 36px 1fr auto; gap: 8px; padding: 7px 10px; cursor: pointer; list-style: none; align-items: center; }
.rgs-row summary::-webkit-details-marker { display: none; }
.rgs-row .m { font-weight: 700; color: var(--stake); font-family: ui-monospace, Consolas, monospace; }
.rgs-row .p { font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rgs-row .s { color: var(--ok); font-weight: 700; }
.rgs-row.err .s, .rgs-row.err .t { color: var(--danger); }
.rgs-row .t { color: #b1bad3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rgs-row .ms { color: #7f8ba3; }
.rgs-json { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px 10px; }
.rgs-json pre { margin: 4px 0 0; max-height: 240px; overflow: auto; background: #0c0f1a; border-radius: 6px; padding: 8px; font-size: 11.5px; line-height: 1.45; }

@media (max-width: 980px) {
  .stake-points { grid-template-columns: 1fr 1fr; }
  .stake-grid { grid-template-columns: 1fr 1fr; }
  .stake-flags { grid-template-columns: 1fr 1fr; }
  .stake-console-grid { grid-template-columns: 1fr; }
  .stake-console-grid > div + div { border-left: 0; border-top: 1px solid var(--stake-line); }
}
@media (max-width: 640px) {
  .stake-band { padding: 20px 16px; border-radius: 16px; }
  .stake-band h2 { font-size: 24px; }
  .stake-points { grid-template-columns: 1fr; }
  .stake-games { grid-template-columns: 1fr; }
  .stake-game { grid-template-columns: 1fr; }
  .stake-game .thumb { min-height: 180px; }
  .stake-setup { padding: 18px 16px; gap: 18px; }
  .stake-setup-head { flex-direction: column; }
  .stake-grid, .stake-flags { grid-template-columns: 1fr; }
  .stake-field.wide, .stake-flag.select { grid-column: auto; }
  .stake-foot { flex-direction: column; align-items: stretch; }
  .rgs-row summary { grid-template-columns: 40px 1fr 32px; }
  .rgs-row .t, .rgs-row .ms { display: none; }
  .rgs-json { grid-template-columns: 1fr; }
}
.stake-copy svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .stake-copy, .stake-play { width: 100%; } }
