body {
  margin: 0;
  background: #0a0a0a;
  color: #eaeaea;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 686px;
  height: 898px;
  background: #141414;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pages-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.form-banner {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.form-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
}

.page {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.6s ease, opacity 0.6s ease;
  display: flex;
  flex-direction: column;
}

.page.hidden { transform: translateX(-100%); opacity: 0; }
.page.next { transform: translateX(100%); }

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px 0;
  box-sizing: border-box;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #141414;
  border-top: 1px solid #222;
  flex-shrink: 0;
}

.page-footer.single {
  justify-content: flex-end;
}

h1, h2 { margin: 0 0 12px; }
h3 { margin: 16px 0 6px; font-size: 14px; color: #eaeaea; }
p { line-height: 1.55; margin: 8px 0; font-size: 14px; }

label { display: block; font-size: 14px; margin-top: 4px; }

input, select, textarea {
  width: 100%;
  padding: 12px;
  margin: 6px 0 14px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #262626;
  color: white;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
}

textarea { resize: vertical; line-height: 1.5; }
input[readonly] { cursor: default; color: #fff; opacity: 0.85; }

input:focus, select:focus, textarea:focus { outline: none; border-color: #ff1a1a; }

/* Time range grid */
.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.time-grid label {
  font-size: 13px;
  color: #bdbdbd;
  margin: 0 0 4px;
}

.btn {
  padding: 10px 18px;
  border-radius: 25px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.next-btn {
  background: linear-gradient(135deg, #ff1a1a, #8b0000);
  color: white;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

.back-btn {
  background: #333;
  color: white;
}

img {
  width: 40%;
  display: block;
  margin: 10px auto 12px;
  border-radius: 10px;
}

/* Multi-select chips */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-bottom: 16px; }
.chip {
  border: 1px solid #333;
  background: #262626;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  text-align: center;
  font-size: 14px;
  color: white;
  transition: all 0.2s ease;
}
.chip:hover { border-color: #ff1a1a; }
.chip.active {
  border-color: #ff1a1a;
  background: rgba(255, 0, 0, 0.12);
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.8);
}

.helper { font-size: 13px; color: #bdbdbd; }

/* Tables */
.table { margin-top: 10px; padding-bottom: 16px; }
.row {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 12px;
}
.row.header { font-weight: bold; color: #aaa; }
.row.header div:first-child { visibility: hidden; }

.cell {
  height: 28px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1f1f1f;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cell.active {
  background: rgba(255,0,0,0.2);
  border-color: #ff1a1a;
  box-shadow: 0 0 10px rgba(255,0,0,0.8);
}

/* Radio groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
}
.radio {
  border: 1px solid #333;
  background: #1f1f1f;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}
.radio:hover { border-color: #ff1a1a; }
.radio.active {
  border-color: #ff1a1a;
  background: rgba(255, 0, 0, 0.12);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

/* Clear button */
.clear-btn {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}
.clear-btn:hover { border-color: #ff1a1a; color: #ff1a1a; }

/* Player Card */
.player-card {
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px;
  margin: 4px 0 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.player-card.loaded {
  border-color: #ff1a1a;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.15);
}
.player-loading {
  font-size: 13px;
  color: #888;
  text-align: center;
  padding: 4px 0;
}
.player-card-inner {
  display: flex;
  gap: 16px;
  align-items: center;
}
.player-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.player-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #ff1a1a;
  object-fit: cover;
  background: #222;
  display: block;
}
.player-level-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #111;
  border: 1px solid #444;
  border-radius: 20px;
  padding: 2px 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: bold;
  color: #ffd700;
  white-space: nowrap;
}
.player-level-badge img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.player-info {
  flex: 1;
  min-width: 0;
}
.player-name {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.player-meta-item {
  font-size: 12px;
  color: #aaa;
}
.player-meta-item span {
  color: #ddd;
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 560px) {
  body {
    align-items: flex-start;
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .container {
    height: 100dvh;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  /* Hero tables: scroll horizontally instead of overflowing */
  .table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .row {
    min-width: 480px;
  }

  /* Bigger tap targets */
  .chip {
    padding: 13px 12px;
  }

  .radio {
    padding: 13px 14px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 15px;
  }
}
