:root {
  --bg: #0a0a0a;
  --card: #141414;
  --line: #2b1a1d;
  --text: #f2f2f2;
  --mute: #a3a3a3;
  --red: #d7192d;
  --or: #e8394a;
  --g: linear-gradient(90deg, #b80f22, #e0283b);
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 85% -5%, #3a0a10 0, #0a0a0a 55%);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.w {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 14px 60px;
}

h1,
.hero h1 {
  font-size: 24px;
  line-height: 1.05;
  margin: 8px 0;
  font-weight: 900;
}

h1 b {
  background: var(--g);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 17px;
  margin: 24px 0 10px;
  font-weight: 800;
}

.sub,
.m {
  color: var(--mute);
}

.sub {
  margin: 0 0 16px;
  font-size: 13px;
}

.m {
  font-size: 12px;
}

.logo {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--or);
  font-size: 12px;
}

.card {
  background: var(--card);
  border: 1px solid #3a171c;
  border-radius: 16px;
  padding: 13px;
  margin-bottom: 12px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.st b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  background: var(--g);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ic {
  font-style: normal;
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs {
  width: 84px;
  flex: none;
}

.strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding-bottom: 2px;
}

.strip span {
  white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--mute);
}

.n {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--g);
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
}

.f {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  font-size: 11px;
  color: var(--mute);
  display: block;
  margin-bottom: 4px;
}

input,
select {
  width: 100%;
  background: #0e0e10;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 800;
  color: #fff;
  background: var(--g);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px #d92f4540;
}

.btn.s {
  background: #1d1d20;
  box-shadow: none;
  border: 1px solid var(--line);
}

.btn.sm {
  padding: 9px 13px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.5;
}

#go {
  width: 100%;
  padding: 13px;
  font-size: 15px;
}

.ck {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  font-size: 14px;
  color: var(--mute);
}

.ck input {
  width: 20px;
  height: 20px;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--g);
  font-size: 12px;
  font-weight: 700;
  margin: 0 6px 6px 0;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.tw {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 13px;
}

th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--red);
  text-align: left;
  padding: 8px 6px;
}

td {
  padding: 10px 6px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

tr.r {
  cursor: pointer;
}

tr.r:active {
  background: #1d1d20;
}

.sc {
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 8px;
  background: #ff2d3d22;
  color: #ff7a85;
}

.sc.h {
  background: #22c55e22;
  color: #4ade80;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mute);
}

.tag.lk {
  color: #ffb020;
  border-color: #ffb02066;
}

.tag.ok {
  color: #4ade80;
  border-color: #4ade8055;
}

.tag.warn {
  color: #ffb020;
  border-color: #ffb02066;
}

.tag.bad {
  color: #ff7a85;
  border-color: #ff7a8555;
}

td.act button + button {
  margin-left: 6px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--or);
  border: 1px solid #ef5a6b88;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.tier.hot {
  border-color: var(--red);
  box-shadow: 0 0 0 1px #e5384c66;
}

.tier .p {
  font-size: 24px;
  font-weight: 900;
}

.tier ul {
  padding-left: 18px;
  margin: 8px 0;
  color: var(--mute);
  font-size: 13px;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row > * {
  flex: 1;
}

.hide {
  display: none !important;
}

.ov {
  position: fixed;
  inset: 0;
  background: #000b;
  z-index: 20;
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px
    calc(env(safe-area-inset-bottom, 0px) + 12px);
}

.sh {
  max-width: 560px;
  margin: 0 auto;
  background: #111113;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.x {
  float: right;
  background: #1d1d20;
  border: 0;
  color: var(--text);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
}

.bx {
  background: #0e0e10;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  font-size: 14px;
  white-space: pre-wrap;
}

.bar {
  height: 8px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--g);
}

#toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  max-width: 536px;
  margin: auto;
  background: #1d1d20;
  border: 1px solid var(--red);
  border-radius: 14px;
  padding: 14px;
  z-index: 40;
  font-weight: 600;
  transition: 0.25s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

#toast.on {
  opacity: 1;
  transform: none;
}

.pres {
  background: radial-gradient(circle at 80% 0, #3d1119, #111113 60%);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--red);
}

.lg {
  background: #1a1a1e;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  display: flex;
  gap: 6px;
  background: #0a0a0acc;
  backdrop-filter: blur(8px);
  padding: 8px 0;
  margin: 6px 0;
  overflow-x: auto;
}

.nav button {
  flex: 1;
  white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nav button.on {
  background: var(--g);
  border-color: var(--red);
  color: #fff;
}

.kp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kp div {
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.kp b {
  display: block;
  font-size: 20px;
  color: var(--or);
}

.fb {
  margin: 6px 0;
}

.rc {
  background: #1a0d10;
  border: 1px solid #4a1820;
  border-radius: 10px;
  padding: 10px;
  margin: 6px 0;
  font-size: 13px;
}

.rc.ok {
  background: #0f1a12;
  border-color: #1f4a2c;
}

.pg {
  display: block;
}

#p-cab {
  display: flex;
  flex-direction: column;
}
