* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #323437;
  font-family: system-ui, sans-serif;
  color: #F5F5F5;
}

.title {
  text-align: center;
  margin: 28px 0 40px;
  font-size: 30px;
}

/* Page wrapper */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Difficulty wrapper */
.difficulty-wrapper {
    background: #323437; /* slightly lighter background */
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    color: #aaa;
    font-size: 13px;
}

/* Time & Question wrapper */
.time-questions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px; /* smaller spacing between time and question bars */
    background: #323437 ; /* slightly lighter background */
    padding: 12px;
    border-radius: 10px;
    width: 100%;
}

/* Optional: individual wrappers for clarity */
.time-wrapper, .questions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Reduce spacing between segmented bars inside wrapper */
.time-questions-wrapper .segmented {
    gap: 6px;
}

/* Mode switch container */
.mode-container {
  width: 460px;
  display: flex;
  gap: 0;
  background: #1f2124;
  border-radius: 12px 12px 0 0; /* rounded top corners */
  overflow: hidden; /* ensure rounding works */
}

.mode-button {
  flex: 1;
  padding: 16px 0;
  border: none;
  background: #1f2124;
  color: #aaa;
  cursor: pointer;
  font-size: 15px;
}

.mode-button:first-child {
  border-radius: 12px 12px 0 0; /* left top corner */
}

.mode-button:last-child {
  border-radius: 12px 12px 0 0; /* right top corner */
}

.mode-button.active {
  background: #2b2d31;
  color: #F5F5F5;
}

/* Main card */
.game-card {
  width: 460px;
  background: #2b2d31;
  border-radius: 0 0 12px 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-label {
  font-size: 13px;
  color: #aaa;
}

/* Segmented controls */
.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
}

.option-button {
  padding: 11px 0;
  border-radius: 8px;
  border: 2px solid transparent; /* default no border */
  cursor: pointer;
  background-color: #1f2124; /* default dark */
  color: #ccc;
  font-weight: 500;
  transition: border 0.2s, background-color 0.2s, color 0.2s;
}

.option-button.active {
  background-color: #3a3d42;
  color: #F5F5F5;
}

.option-button:hover {
  border: 2px solid #F5F5F5;
}

/* Bottom buttons */
.bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.play-btn {
  width: 65%;
  padding: 14px 0;
  font-size: 18px;
  border-radius: 10px;
  border: none;
  background: #F5F5F5;
  color: #000;
  cursor: pointer;
}


.custom-btn {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid transparent; /* default transparent border */
  background: #1f2124;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: border 0.2s ease; /* smooth transition */
}

.custom-btn:hover {
  border: 2px solid white; /* changes to white on hover */
}

