
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&display=swap');


:root {
  --bg: #0b1020;
  --panel: #111a2e;
  --border: rgba(164,185,226,.16);
  --text: #f2f5ff;
  --muted: #9aa9c4;
  --blue: #63a5ff;
  --gold: #ffc65c;
  --green: #59d7a1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

button, input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .13;
  pointer-events: none;
  z-index: -1;
}

.a {
  background: #347bff;
  top: -180px;
  left: -120px;
}

.b {
  background: #9d57ff;
  right: -180px;
  top: 400px;
}

.topbar {
  max-width: 1150px;
  padding: 22px 24px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.brand b {
  color: var(--blue);
}

.brand-mark {
  display: flex;
  gap: 3px;
  font-size: 20px;
}

.brand-mark i:first-child, .x {
  color: var(--blue);
  font-style: normal;
}

.brand-mark i:last-child, .o {
  color: var(--gold);
  font-style: normal;
}

.record {
  display: flex;
  align-items: center;
  gap: 18px;
}

.record > div, .result-record > div {
  display: grid;
  gap: 3px;
  text-align: center;
}

.record b {
  font-size: 18px;
}

.record small, .result-record small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icon-button {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 22px;
}

main {
  max-width: 1050px;
  padding: 30px 24px 110px;
  margin: auto;
}

.screen {
  display: none;
  animation: fade .3s ease;
}

.screen.active {
  display: block;
}

.hidden {
  display: none !important;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}

.eyebrow,
.section-heading > small,
.section-heading small,
.result-panel > small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 0;
}

h1 {
  font-size: clamp(44px,7vw,76px);
  line-height: .99;
  letter-spacing: -4px;
  margin: 22px 0 18px;
}

.gradient-text {
  background: linear-gradient(100deg,#72b4ff,#a48bff 65%,#ffc65c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.badges {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  font-weight: 800;
}

.hero-art {
  height: 300px;
  position: relative;
  display: grid;
  place-items: center;
}

.mini-board {
  width: 185px;
  height: 185px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  padding: 8px;
  border-radius: 22px;
  background: #16233ccc;
  border: 1px solid var(--border);
  box-shadow: 0 25px 70px #0006;
  transform: rotate(-7deg);
  z-index: 2;
}

.mini-board span {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #1c2a45;
  font-size: 29px;
  font-weight: 800;
}

.float-x, .float-o {
  position: absolute;
  font-size: 48px;
}

.float-x {
  top: 18px;
  left: 20px;
  color: var(--blue);
  transform: rotate(-15deg);
}

.float-o {
  bottom: 15px;
  right: 15px;
  color: var(--gold);
}

.orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid #7fa7ff27;
  border-radius: 50%;
}

.section-heading {
  text-align: center;
  margin: 35px 0 24px;
}

.section-heading h2 {
  font-size: clamp(27px,4vw,38px);
  margin: 10px 0;
  letter-spacing: -1px;
}

.section-heading p {
  margin-bottom: 0;
}

.left {
  text-align: left;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.card {
  min-width: 0;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--border);
  background: linear-gradient(145deg,#151f35,#10182a);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: .2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #639fff88;
  background: linear-gradient(145deg,#1a2b49,#111a2d);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #367bff20;
  color: var(--blue);
  font-size: 27px;
  margin-bottom: 20px;
}

.card-icon.gold {
  color: var(--gold);
  background: #ffc65c18;
}

.card > b {
  font-size: 19px;
}

.card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.card > small {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--blue);
}

.back-button {
  border: 0;
  padding: 8px 0;
  margin: 0 0 20px;
  color: var(--muted);
  background: none;
}

.back-button:hover, .text-button:hover {
  color: var(--blue);
}

.panel {
  border: 1px solid var(--border);
  background: linear-gradient(145deg,#131d32,#0f1728);
  border-radius: 20px;
  padding: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
}

.field input {
  width: 100%;
  color: var(--text);
  background: #0b1324;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 14px;
  outline: none;
}

.field input:focus {
  border-color: var(--blue);
}

.difficulty {
  margin-top: 24px;
}

.difficulty > small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.difficulty .two-col {
  margin-top: 12px;
}

.difficulty-option {
  cursor: pointer;
}

.difficulty-option input {
  position: absolute;
  opacity: 0;
}

.difficulty-option span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #0d1527;
}

.difficulty-option b {
  font-size: 14px;
}

.difficulty-option small {
  font-size: 11px;
  color: var(--muted);
}

.difficulty-option input:checked + span {
  border-color: var(--blue);
  background: #367bff16;
}

.roulette-layout {
  max-width: 800px;
  margin: 35px auto;
  display: grid;
  grid-template-columns: minmax(250px,1fr) minmax(220px,.8fr);
  gap: 50px;
  align-items: center;
}

.wheel-wrap {
  width: min(100%,340px);
  aspect-ratio: 1;
  margin: auto;
  position: relative;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #263752;
  box-shadow: 0 20px 55px #0005;
  position: relative;
  background: conic-gradient(
    #3479f6 0deg 18deg,
    #f6bd4e 18deg 36deg,
    #3479f6 36deg 54deg,
    #f6bd4e 54deg 72deg,
    #3479f6 72deg 90deg,
    #f6bd4e 90deg 108deg,
    #3479f6 108deg 126deg,
    #f6bd4e 126deg 144deg,
    #3479f6 144deg 162deg,
    #f6bd4e 162deg 180deg,
    #3479f6 180deg 198deg,
    #f6bd4e 198deg 216deg,
    #3479f6 216deg 234deg,
    #f6bd4e 234deg 252deg,
    #3479f6 252deg 270deg,
    #f6bd4e 270deg 288deg,
    #3479f6 288deg 306deg,
    #f6bd4e 306deg 324deg,
    #3479f6 324deg 342deg,
    #f6bd4e 342deg 360deg
  );
  transition: transform 4.5s cubic-bezier(.12,.72,.11,1);
}

.wheel:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    transparent 0deg 17.4deg,
    #07101c99 17.4deg 18deg
  );
}

.wheel-center {
  position: absolute;
  z-index: 2;
  inset: 35%;
  border-radius: 50%;
  background: #0e172a;
  border: 4px solid #293a56;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 24px;
  font-weight: 800;
}

.pointer {
  position: absolute;
  z-index: 5;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 32px solid white;
}

.roulette-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legend {
  display: grid;
  gap: 12px;
}

.legend > div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}

.legend b {
  color: var(--muted);
  font-size: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.xbg {
  background: var(--blue);
}

.obg {
  background: var(--gold);
}

.primary, .secondary, .text-button {
  border: 0;
  border-radius: 11px;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: .2s;
}

.primary {
  background: linear-gradient(105deg,#367bff,#665ef6);
  color: white;
  box-shadow: 0 8px 24px #367bff25;
}

.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.secondary {
  background: #202c43;
  border: 1px solid var(--border);
}

.secondary:hover {
  border-color: var(--blue);
}

.text-button {
  background: transparent;
  color: var(--muted);
}

.full {
  width: 100%;
  margin-top: 16px;
}

.question-panel {
  max-width: 700px;
  margin: 30px auto;
}

.question-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--blue);
  background: #367bff16;
  padding: 8px 10px;
  border-radius: 7px;
}

.question-panel h3 {
  font-size: clamp(22px,4vw,30px);
  line-height: 1.3;
  margin: 24px 0 10px;
}

.question-result {
  margin-top: 22px;
  padding: 18px;
  background: #0b1425;
  border: 1px solid var(--border);
  border-radius: 12px;
  line-height: 1.9;
  font-size: 14px;
}

.question-result strong {
  color: var(--green);
}

.guess-winner {
  color: var(--gold);
  font-weight: 800;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-panel {
  max-width: 520px;
  margin: 15px auto 0;
}

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

.player-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d1527;
  opacity: .65;
}

.player-chip.active-player {
  opacity: 1;
  border-color: #63a5ff88;
  background: #367bff14;
}

.player-chip > strong {
  font-size: 27px;
}

.player-chip b {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.player-chip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}

.versus {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.turn-message {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin: 25px 0 18px;
}


.game-board {
  width: min(100%, 355px);
  margin: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.cell {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid #30415e;
  border-radius: 13px;
  background: #0c1527;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 10vw, 62px);
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s;
}


.cell:not(:disabled):hover {
  background: #1a2b48;
  border-color: var(--blue);
  transform: scale(1.025);
}

.cell:disabled {
  opacity: 1;
}

.cell.mark-x {
  color: var(--blue);
}

.cell.mark-o {
  color: var(--gold);
}

.cell.winning-cell {
  background: #59d7a126;
  border-color: var(--green);
}

.game-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}

.result-panel {
  max-width: 520px;
  margin: 20px auto;
  padding: 30px;
  text-align: center;
  border: 1px solid #59d7a145;
  border-radius: 20px;
  background: linear-gradient(145deg,#132b31,#111a2c);
  animation: fade .35s ease;
}

.result-emoji {
  font-size: 40px;
  margin-bottom: 10px;
}

.result-panel h2 {
  font-size: 36px;
  margin: 12px 0;
}

.result-record {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 25px 0;
}

.result-record b {
  font-size: 24px;
}

.result-record > div {
  display: grid;
  gap: 5px;
}

.music-button {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #18243b;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 11px 16px;
  box-shadow: 0 6px 25px #0004;
  font-size: 12px;
}

.music-button[aria-pressed=true] {
  border-color: var(--blue);
  color: var(--blue);
}

.toast {
  position: fixed;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 10px;
  background: #263752;
  border: 1px solid var(--border);
  font-size: 12px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.toast.visible {
  opacity: 1;
}

@media(max-width:680px) {
  .topbar {
    padding: 16px;
    align-items: flex-start;
  }

  .brand {
    font-size: 13px;
    margin-top: 8px;
  }

  .record {
    gap: 10px;
  }

  .record b {
    font-size: 15px;
  }

  .record small {
    font-size: 8px;
  }

  .icon-button {
    width: 32px;
    height: 32px;
  }

  main {
    padding: 20px 16px 100px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-art {
    height: 235px;
    margin: 0 0 10px;
  }

  .mini-board {
    width: 160px;
    height: 160px;
  }

  .mini-board span {
    font-size: 24px;
  }

  .orbit {
    width: 230px;
    height: 230px;
  }

  .two-col {
    gap: 11px;
  }

  .card {
    padding: 16px;
  }

  .card > b {
    font-size: 16px;
  }

  .card p {
    font-size: 12px;
  }

  .card > small {
    font-size: 8px;
  }

  .roulette-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
  }

  .wheel-wrap {
    width: min(78vw,310px);
  }

  .roulette-info {
    max-width: 360px;
    margin: auto;
    width: 100%;
  }

  .panel {
    padding: 16px;
  }

  .player-chip {
    padding: 8px;
    gap: 7px;
  }

  .player-chip b {
    font-size: 10px;
  }

  .game-board {
    gap: 7px;
  }

  .cell {
    border-radius: 10px;
  }

  .result-panel {
    padding: 24px 17px;
  }

  .result-record {
    gap: 27px;
  }
}


/* ===== FONT UPDATE: LATO ===== */

body {
  font-family: 'Lato', sans-serif;
}

h1,
h2,
h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
}

.cell {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
}







/* ===== CORAL & FOREST THEME ===== */

:root {
  --bg: #FAF8F2;
  --panel: #FFFFFF;
  --border: #E5E0D4;
  --text: #303C35;
  --muted: #727C73;
  --blue: #287D68;
  --gold: #E97859;
  --green: #39805A;
}

/* Page */
body {
  background: #FAF8F2 !important;
  color: #303C35;
}

/* Headings: one solid color */
h1, h1 span,
h2, h2 span,
h3, h3 span,
.hero h1,
.hero h1 span,
.gradient-text {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #303C35 !important;
  color: #303C35 !important;
}

/* Header */
.topbar {
  border-bottom-color: #E5E0D4;
}

.brand,
.brand b {
  color: #287D68;
}

/* Cards and panels */
.card,
.panel {
  background: #FFFFFF;
  border: 1px solid #E5E0D4;
  box-shadow: 0 5px 18px #303C350A;
}

.card:hover {
  background: #FFFFFF;
  border-color: #9CC9B8;
}

.card > b {
  color: #303C35;
}

.card p,
.field,
.text-button,
.back-button {
  color: #727C73;
}

/* Icons */
.card-icon {
  background: #E1F0E9;
  color: #287D68;
}

.card-icon.gold {
  background: #FCE8E0;
  color: #C85E40;
}

/* Inputs */
.field input {
  background: #FFFFFF;
  color: #303C35;
  border-color: #E5E0D4;
}

.field input:focus {
  border-color: #287D68;
  box-shadow: 0 0 0 3px #287D681A;
}

/* Difficulty selection */
.difficulty-option span {
  background: #FFFFFF;
  border-color: #E5E0D4;
}

.difficulty-option b {
  color: #303C35;
}

.difficulty-option input:checked + span {
  background: #E1F0E9;
  border-color: #287D68;
}

/* Buttons */
.primary {
  background: #287D68;
  color: #FFFFFF;
  box-shadow: 0 4px 12px #287D6826;
}

.primary:hover {
  background: #206653;
}

.secondary {
  background: #FCE8E0;
  color: #A94D34;
  border: 1px solid #F0C9BC;
}

.secondary:hover {
  background: #F7D8CC;
}

/* Tic-tac-toe board */
.cell {
  background: #FFFFFF;
  border: 2px solid #E5E0D4;
  border-radius: 15px;
  box-shadow: 0 3px 10px #303C3508;
}

.cell:not(:disabled):hover {
  background: #EAF4EF;
  border-color: #9CC9B8;
  transform: none;
}

.cell.mark-x {
  color: #287D68;
}

.cell.mark-o {
  color: #E97859;
}

.cell.winning-cell {
  background: #DDEFE2;
  border-color: #39805A;
}

/* Player indicators */
.player-chip {
  background: #FFFFFF;
  border-color: #E5E0D4;
}

.player-chip.active-player {
  background: #E1F0E9;
  border-color: #287D68;
}

.turn-message {
  color: #3F6253;
}

/* Roulette */
.wheel {
  border-color: #FFFFFF;
  box-shadow: 0 8px 24px #303C351A;
}

.wheel-center {
  background: #FFFFFF;
  border-color: #E5E0D4;
  color: #303C35;
}

.wheel:after {
  background: none;
}

.pointer {
  border-top-color: #287D68;
}

.legend > div {
  background: #FFFFFF;
  border-color: #E5E0D4;
}

.legend b {
  color: #727C73;
}

.xbg {
  background: #287D68;
}

.obg {
  background: #E97859;
}

/* Quiz */
.tag {
  background: #E1F0E9;
  color: #206653;
}

.question-result {
  background: #DDEFE2;
  border-color: #C2E2CB;
  color: #303C35;
}

.question-result strong {
  color: #39805A;
}

.guess-winner {
  color: #C85E40;
}

/* Results */
.result-panel {
  background: #E1F0E9;
  border-color: #C2E2CB;
  box-shadow: 0 8px 24px #303C350A;
}

.result-panel h2 {
  color: #303C35;
}

/* Scoreboard */
.record b {
  color: #303C35;
}

.record small,
.result-record small,
.eyebrow,
.section-heading > small,
.section-heading small,
.result-panel > small,
.badges {
  color: #727C73;
}

/* Icon and music buttons */
.icon-button,
.music-button {
  background: #FFFFFF;
  color: #287D68;
  border-color: #E5E0D4;
}

.music-button[aria-pressed="true"] {
  background: #E1F0E9;
  color: #206653;
  border-color: #9CC9B8;
}

/* Notifications */
.toast {
  background: #303C35;
  color: #FFFFFF;
  border-color: #506157;
}

/* Mobile */
@media (max-width: 680px) {
  .card,
  .player-chip {
    background: #FFFFFF;
  }

  .cell {
    border-radius: 12px;
  }
}


/* ===== NATURAL TYPOGRAPHY ===== */

body,
button,
input,
select,
textarea {
  font-family: 'Nunito Sans', sans-serif !important;
  letter-spacing: normal;
}

/* Main headings: less oversized and less heavy */
h1,
.hero h1 {
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
}

/* All heading spans use the same font and color */
h1 span,
.hero h1 span {
  font-family: 'Nunito Sans', sans-serif !important;
  font-weight: 800;
  letter-spacing: inherit;
}

/* Section headings */
h2,
.section-heading h2,
.result-panel h2 {
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

h3 {
  font-family: 'Nunito Sans', sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Brand and navigation */
.brand {
  font-family: 'Nunito Sans', sans-serif !important;
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* Body copy: comfortable and readable */
p,
.card p,
.turn-message {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Labels: avoid excessive uppercase tracking */
.eyebrow,
.section-heading > small,
.section-heading small,
.result-panel > small,
.badges {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Buttons */
button {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Tic-tac-toe symbols */
.cell {
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
}

/* Scores */
.record b {
  font-size: 1.5rem;
  font-weight: 800;
}

.record small,
.result-record small {
  font-size: 0.72rem;
  font-weight: 700;
}

/* Mobile typography */
@media (max-width: 680px) {
  h1,
  .hero h1 {
    font-size: clamp(2.7rem, 11vw, 3.7rem);
    letter-spacing: -1.5px;
  }

  h2,
  .section-heading h2,
  .result-panel h2 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }
}


/* ===== LARGER, SOFTER MATCH SETTINGS ===== */

/* Player name label */
.field {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #48574D !important;
  margin-bottom: 10px;
}

/* Player name input */
.field input {
  min-height: 50px !important;
  padding: 13px 16px !important;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #303C35 !important;
  background: #F5F1E8 !important;
  border: 1px solid #E0D8C9 !important;
  border-radius: 12px !important;
}

.field input:focus {
  background: #FFFFFF !important;
  border-color: #287D68 !important;
  box-shadow: 0 0 0 3px #287D6818 !important;
  outline: none;
}

/* Bot difficulty label */
.difficulty-option,
.difficulty-option label {
  font-size: 1rem !important;
  color: #48574D !important;
}

/* Difficulty choice boxes */
.difficulty-option span {
  min-height: 54px !important;
  padding: 14px 18px !important;
  display: flex;
  align-items: center;
  background: #F5F1E8 !important;
  border: 1px solid #E0D8C9 !important;
  border-radius: 12px !important;
  transition: background 0.2s, border-color 0.2s;
}

/* Difficulty text */
.difficulty-option b {
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #303C35 !important;
}

/* Selected difficulty */
.difficulty-option input:checked + span {
  background: #DDECE4 !important;
  border: 1.5px solid #287D68 !important;
}

/* Hover effect */
.difficulty-option span:hover {
  border-color: #9BBEAD !important;
}

/* Give the settings panel more breathing room */
.panel {
  padding: 24px !important;
  border-radius: 18px !important;
}

/* Mobile */
@media (max-width: 680px) {
  .field input {
    min-height: 48px !important;
    font-size: 1rem !important;
  }

  .difficulty-option span {
    min-height: 50px !important;
  }

  .panel {
    padding: 18px !important;
  }
}


/* Make BOT DIFFICULTY label bigger */
#difficultyArea > small {
  display: block;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px;
  color: #48574D;
  margin-bottom: 14px;
}

/* Make Easy and Hard options bigger */
#difficultyArea .difficulty-option span {
  min-height: 68px !important;
  padding: 20px 24px !important;
  display: flex;
  align-items: center;
  border-radius: 14px;
}

#difficultyArea .difficulty-option b {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
}



/* ===== MATCH ROULETTE COLORS TO THE SITE ===== */

/* Wheel: alternate forest green and coral */
.wheel {
  background: repeating-conic-gradient(
    #287D68 0deg 18deg,
    #E97859 18deg 36deg
  ) !important;
  border: 8px solid #FFFFFF !important;
  box-shadow: 0 8px 24px #303C3518;
}

/* Center of the wheel */
.wheel-center {
  background: #FFFFFF !important;
  border: 4px solid #E5E0D4 !important;
  color: #303C35 !important;
}

/* Pointer */
.pointer {
  border-top-color: #287D68 !important;
}

/* Player legend */
.xbg {
  background: #287D68 !important;
}

.obg {
  background: #E97859 !important;
}

/* Player indicators */
.legend > div {
  background: #FFFFFF !important;
  border-color: #E5E0D4 !important;
}

.legend b {
  color: #727C73 !important;
}

/* Remove old blue/yellow wheel overlay */
.wheel:after {
  background: none !important;
}


/* ===== VISIBLE FIRE ANIMATION ===== */

#modeScreen .hero h1 {
  position: relative;
  color: #F07836 !important;
  background: none !important;
  -webkit-text-fill-color: #F07836 !important;
  text-shadow:
    0 -2px 4px #FFB347,
    0 -5px 12px #FF7A24,
    0 -10px 24px #F04B18;
  animation: fireText 0.7s infinite alternate ease-in-out !important;
}

@keyframes fireText {
  0% {
    text-shadow:
      0 -2px 3px #FFB347,
      0 -5px 10px #FF7A24,
      0 -8px 18px #F04B18;
    filter: brightness(1);
    transform: translateY(0);
  }

  50% {
    text-shadow:
      0 -3px 7px #FFD166,
      0 -8px 16px #FF7A24,
      0 -14px 28px #F04B18;
    filter: brightness(1.12);
    transform: translateY(-2px);
  }

  100% {
    text-shadow:
      0 -1px 5px #FFB347,
      0 -6px 14px #FF7A24,
      0 -12px 24px #F04B18;
    filter: brightness(1.04);
    transform: translateY(1px);
  }
}
