* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #131312;
  color: #f0ede6;
  font-size: 14px;
  line-height: 1.45;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 18px 60px;
}

.hide {
  display: none !important;
}

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2c2a26;
  margin-bottom: 16px;
}

.top-left,
.top-right,
.title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-line {
  justify-content: center;
}

.top-right {
  justify-content: flex-end;
}

.pic {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid #2c2a26;
}

h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 0.94rem;
  font-weight: 600;
}

.sub {
  font-size: 0.8rem;
  color: #8f8a80;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.tag-on {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}

.tag-off {
  background: #22211e;
  color: #8f8a80;
}

.tag-wait {
  background: rgba(234, 179, 8, 0.14);
  color: #eab308;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab,
.tab-right {
  background: none;
  border: none;
  color: #8f8a80;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.tab:hover,
.tab-right:hover {
  color: #f0ede6;
  background: #1b1a18;
}

.tab.on {
  background: #eab308;
  color: #131312;
}

.tab-mod {
  color: #eab308;
}

.tab-mod.on {
  background: #eab308;
  color: #131312;
}

.tab-right {
  margin-left: auto;
  font-size: 0.8rem;
  text-decoration: none;
}

.view {
  display: none;
}

.view.on {
  display: block;
}

.card {
  background: #1b1a18;
  border: 1px solid #2c2a26;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stats-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seg {
  display: inline-flex;
  background: #131312;
  border: 1px solid #2c2a26;
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  text-decoration: none;
  color: #8f8a80;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
}

.seg-btn:hover {
  color: #f0ede6;
}

.seg-btn.on {
  background: #eab308;
  color: #131312;
}

.banner {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.84rem;
}

.none {
  color: #8f8a80;
  font-size: 0.84rem;
  padding: 12px 2px;
}

.btn-gold {
  background: #eab308;
  color: #131312;
  border: none;
  padding: 8px 14px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.btn-gold:hover {
  background: #ca9505;
}

.btn-outline {
  background: #1b1a18;
  color: #f0ede6;
  border: 1px solid #2c2a26;
  padding: 6px 12px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: #6b675f;
}

.btn-go {
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.btn-risk {
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

.btn-risk:hover {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.16);
}

.has-tip {
  position: relative;
  display: inline-block;
  width: fit-content;
  border-bottom: 1px dotted #6b675f;
  cursor: help;
}

.has-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  background: #22211e;
  color: #f0ede6;
  border: 1px solid #3d3a34;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  width: 230px;
  line-height: 1.35;
  z-index: 30;
  pointer-events: none;
}

.ev-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.info-row {
  background: #22211e;
  border-radius: 7px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-k {
  font-size: 0.74rem;
  color: #8f8a80;
}

.info-v {
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-all;
}

.sm-btn {
  padding: 4px 9px;
  font-size: 0.78rem;
  border-radius: 6px;
  border: 1px solid #2c2a26;
  background: #22211e;
  color: #f0ede6;
  cursor: pointer;
  font-weight: 600;
}

.sm-ok {
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.sm-no {
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

.x-btn {
  background: none;
  border: none;
  color: #8f8a80;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.field-in {
  background: #131312;
  border: 1px solid #2c2a26;
  color: #f0ede6;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.85rem;
  width: 100%;
}

.field-in:focus {
  outline: none;
  border-color: #eab308;
}

.field-sm {
  width: 185px;
  padding: 5px 9px;
  font-size: 0.82rem;
}

.match-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .match-grid {
    grid-template-columns: 1fr;
  }
}

.side {
  background: #22211e;
  border: 1px solid #2c2a26;
  border-radius: 8px;
  padding: 12px;
}

.side.win {
  border-color: #4ade80;
}

.side.lose {
  opacity: 0.65;
}

.side-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.vs {
  align-self: center;
  justify-self: center;
  font-weight: 800;
  color: #eab308;
  font-size: 0.82rem;
  padding: 6px;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.list li {
  padding: 5px 8px;
  background: #131312;
  border-radius: 5px;
  font-size: 0.85rem;
}

.q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 10px;
}

.q-card {
  background: #22211e;
  border: 1px solid #2c2a26;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.q-num {
  font-size: 0.72rem;
  color: #eab308;
  font-weight: 700;
  margin-bottom: 4px;
}

.q-sep {
  color: #8f8a80;
  font-size: 0.72rem;
  margin: 0 5px;
}

.scroll-x {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #2c2a26;
}

th {
  font-size: 0.74rem;
  color: #8f8a80;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: none;
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.t-card {
  background: #22211e;
  border: 1px solid #2c2a26;
  border-radius: 8px;
  padding: 12px;
}

.t-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .cols {
    grid-template-columns: 1fr;
  }
}

.items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #22211e;
  border-radius: 7px;
  font-size: 0.85rem;
}

.item-btns {
  display: flex;
  gap: 6px;
}

.cfg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.f {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  color: #8f8a80;
}

.f-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #f0ede6;
  align-self: end;
  padding-bottom: 8px;
}

.f-check input {
  width: auto;
}

.cfg-btns {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.w-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

@media (max-width: 540px) {
  .w-bar {
    grid-template-columns: 1fr;
  }
}

.popup-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.popup {
  background: #1b1a18;
  border: 1px solid #2c2a26;
  border-radius: 10px;
  padding: 18px;
  width: 100%;
  max-width: 310px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bad-txt {
  color: #f87171;
  font-size: 0.8rem;
}
