  @font-face { 
    font-family: Burbank; 
    src: url("fonts/BurbankBigCondensedBlack.otf") format("opentype"); 
  } 

  @font-face { 
    font-family: BurbankBold; 
    src: url("fonts/burbankbigcondensedbold.otf") format("opentype"); 
  } 
  
  :root{--bg1:#74ebd5;--bg2:#9face6;}
  .make10body{
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin:0; min-height:100vh;
    background: linear-gradient(180deg,var(--bg1),var(--bg2));
    display:flex; align-items:flex-start; justify-content:center;
    color:#111; padding:28px;
  }

  /* Mode selection */
  #modeScreen{
    width:820px; max-width:95%;
    background:rgba(255,255,255,0.9); border-radius:12px; padding:28px;
    box-shadow:0 8px 30px rgba(0,0,0,0.15); text-align:center;
  }
  #modeScreen h2{font-size:30px;margin:8px 0 18px;}

  .modeBtn{
    font-size:20px;padding:14px 26px;margin:12px;border-radius:10px;border:none;
    cursor:pointer;background:#4caf50;color:white;
  }
  .modeBtn.secondary{background:#3b82c4}

  .modeBtn:hover {
  background: #3a7c3c;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
}

  /* Leaderboard */
  #leaderboard{
    position:fixed; left:18px; top:50%; transform:translateY(-50%);
    width:260px; padding:14px; background:rgba(255,255,255,0.6);
    border-radius:12px; box-shadow:0 6px 20px rgba(0,0,0,0.2);
    font-size:16px;
  }
  #leaderboard h3{margin:4px 0 10px;text-align:center;font-size:18px;}

  /* Game Area */
  #game{
    width:820px; max-width:95%;
    background:rgba(255,255,255,0.9); border-radius:12px; padding:20px 26px 34px;
    box-shadow:0 8px 30px rgba(0,0,0,0.15);
    margin-left:20px;
  }
  .make10h1{font-size:34px;margin:6px 0 12px;text-align:center}

  #bigNumber {
  font-size: 64px;
  font-weight: bold;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

  #equationWrapper{display:flex;flex-direction:column;align-items:center;}
  #equation{
    display:flex; align-items:center; min-height:62px; padding:12px 18px;
    background:rgba(255,255,255,0.95); border-radius:10px; box-shadow:0 4px 12px rgba(0,0,0,0.08);
    gap:8px; font-size:28px; flex-wrap:wrap;
    max-width:100%;
  }

  /* token styles */
  .token{display:inline-flex;align-items:center;justify-content:center;
    min-width:36px;height:42px;padding:4px 8px;border-radius:8px;border:1px solid rgba(0,0,0,0.08);
    background:rgba(255,255,255,0.98);user-select:none;cursor:grab;font-weight:600;
  }
  .token.op{min-width:40px;font-size:24px}
  .token.paren{min-width:28px}
  .token.num{background:#f7fafc}

  /* selectable operators (not-arrangeable mode) */
  select.opSelect{font-size:22px;padding:6px;border-radius:6px;border:1px solid #ccc;cursor:pointer;}

  /* controls */
  .controls{margin-top:12px;display:flex;align-items:center;gap:12px;justify-content:center}
  .btn{font-size:18px;padding:10px 18px;border-radius:8px;border:none;cursor:pointer;background:#4CAF50;color:white}
  .btn.hint{background:#f39c12}
  .btn:disabled{background:#ccc; color:#666; cursor:not-allowed}
  .smallNote{font-size:13px;color:#333;opacity:.85;margin-top:6px;text-align:center}

  #hints{margin-top:12px;font-size:18px;line-height:1.4;color:#222;min-height:34px;text-align:center}

  /* stats */
  #stats{margin-top:14px;text-align:center;font-size:16px;display:flex;gap:18px;justify-content:center;flex-wrap:wrap}
  #stats div{padding:6px 10px;border-radius:8px}
  #score{color:green;font-weight:700}
  #incorrect{color:red;font-weight:700}

  /* bracket box for arrangeable */
  #bracketBox{
    position:fixed; left:18px; top:10%; transform:translateY(0);
    width:160px; padding:10px; border-radius:10px; background:rgba(255,255,255,0.12);
    text-align:center; font-size:20px; box-shadow:0 6px 20px rgba(0,0,0,0.1)
  }
  #bracketBox .dropHint{font-size:13px;color:#055;opacity:.9;margin-bottom:6px}
  #bracketBox .dragItem{display:inline-block;margin:8px;padding:6px 10px;border-radius:8px;border:1px solid rgba(0,0,0,0.08);background:rgba(255,255,255,0.9);cursor:grab}

  /* small responsive */
  @media (max-width:900px){
    #leaderboard{display:none}
    #bracketBox{display:none}
  }

  /* animations */
  .shake{animation:shake .4s}
  @keyframes shake{0%{transform:translateX(0)}25%{transform:translateX(-8px)}50%{transform:translateX(8px)}75%{transform:translateX(-6px)}100%{transform:translateX(0)}}

  .ok{color:#16a34a; transform:scale(1.06)}
  .bad{color:#dc2626; transform:scale(.98)}


/* other pages */
/* GENERAL */
body {
  font-family: "BurbankBold";
  margin: 0;
  padding: 0;
  text-align: center;
  color: #222;
  background: linear-gradient(-45deg, #74ebd5, #9face6, #ff6b6b, #f8cdda);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  margin-bottom: 15px;
}

html {
  min-height: 100%;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* HEADER */
header {
  background: #202020;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

header h1 {
  color: #fff;
  margin: 0;
  font-size: 32px;
  letter-spacing: 1px;
}

/* NAVIGATION */
nav {
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: #ddd;
  margin: 0 18px;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  color: #ff4444;
  text-shadow: 0 0 8px #ff4444;
}

/* MAIN CONTENT */
main {
  padding: 50px 20px;
  max-width: 900px;
  margin: auto;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #202020;
}

/* CARDS */
.card, .link-card {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 20px 30px;
  margin: 15px;
  text-decoration: none;
  color: #222;
  font-size: 18px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.card:hover, .link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.3);
  background: #fff;
}

/* BUTTONS */
button {
  background: #ff4444;
  color: white;
  border: none;
  padding: 15px 30px;
  margin: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  transition: 0.3s;
  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}

button:hover {
  background: #cc0000;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
}

/* FOOTER */
footer {
  background: #202020;
  color: #aaa;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15px;
  font-size: 14px;
  box-sizing: border-box;
}

/* ------ */

#aboutp {
  color: white;
}

/* From Uiverse.io by ilkhoeri */ 
/* theme-mode-style */
.mode + .container {
  --color-pure: #000;
  --color-primary: #e8e8e8;
  --color-secondary: #212121;
  --muted: #b8b8b8;
}
.mode:checked + .container {
  --color-pure: #fff;
  --color-primary: #212121;
  --color-secondary: #fff;
  --muted: #383838;
}
.container {
  background-color: var(--color-secondary);
  position: absolute;
  width: 100%;
  height: 110%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.container .theme {
  color: var(--color-secondary);
  background-color: var(--color-primary);
  position: relative;
  cursor: pointer;
  z-index: 9;
  -webkit-user-select: none;
  user-select: none;
  border: 1px solid var(--muted);
  border-radius: calc(var(--round) - var(--p-y));
  margin-left: calc(var(--p-x) * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: background-color 0.25s linear;
}
.container .theme:hover {
  background-color: var(--muted);
}
.container .theme::before {
  content: "";
  position: absolute;
  left: calc(var(--p-x) * -1);
  width: 1px;
  height: 100%;
  background-color: var(--muted);
}
.container .theme span {
  border: none;
  outline: none;
  background-color: transparent;
  padding: 0.125rem;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
}
.mode:checked + .container .theme span.light,
.mode + .container .theme span.dark {
  display: none;
}
.mode + .container .theme span.light,
.mode:checked + .container .theme span.dark {
  display: flex;
}
.container .theme svg {
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke: currentColor;
  fill: none;
  height: 22px;
  width: 22px;
}

/* main style */
.wrap {
  --round: 10px;
  --p-x: 8px;
  --p-y: 4px;
  --w-label: 100px;
  display: flex;
  align-items: center;
  padding: var(--p-y) var(--p-x);
  position: relative;
  background: var(--color-primary);
  border-radius: var(--round);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  top: 0;
  z-index: 1;
}

.wrap input {
  height: 0;
  width: 0;
  position: absolute;
  overflow: hidden;
  display: none;
  visibility: hidden;
}

.label {
  cursor: pointer;
  outline: none;
  font-size: 0.875rem;
  letter-spacing: initial;
  font-weight: 500;
  color: var(--color-secondary);
  background: transparent;
  padding: 12px 16px;
  width: var(--w-label);
  min-width: var(--w-label);
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.25s ease;
  outline-offset: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.label span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.wrap input[class*="rd-"]:checked + label {
  color: var(--color-pure);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  transform-origin: 0 0 0;
  height: 100%;
  width: var(--w-label);
  z-index: 0;
  transition: transform 0.5s cubic-bezier(0.33, 0.83, 0.99, 0.98);
}
.bar::before,
.bar::after {
  content: "";
  position: absolute;
  height: 4px;
  width: 100%;
  background: var(--color-secondary);
}
.bar::before {
  top: 0;
  border-radius: 0 0 9999px 9999px;
}
.bar::after {
  bottom: 0;
  border-radius: 9999px 9999px 0 0;
}

.slidebar {
  position: absolute;
  height: calc(100% - (var(--p-y) * 4));
  width: var(--w-label);
  border-radius: calc(var(--round) - var(--p-y));
  background: var(--muted);
  transform-origin: 0 0 0;
  z-index: 0;
  transition: transform 0.5s cubic-bezier(0.33, 0.83, 0.99, 0.98);
}

.rd-1:checked ~ .bar,
.rd-1:checked ~ .slidebar,
.rd-1 + label:hover ~ .slidebar {
  transform: translateX(17%) scaleX(1);
}
.rd-2:checked ~ .bar,
.rd-2:checked ~ .slidebar,
.rd-2 + label:hover ~ .slidebar {
  transform: translateX(145%) scaleX(1);
}
.rd-3:checked ~ .bar,
.rd-3:checked ~ .slidebar,
.rd-3 + label:hover ~ .slidebar {
  transform: translateX(293%) scaleX(1);
}

.rd-4:checked ~ .bar,
.rd-4:checked ~ .slidebar,
.rd-4 + label:hover ~ .slidebar {
  transform: translateX(412%) scaleX(1);
}
/*-------*/

    .gamebody {
      font-family: "Segoe UI", Tahoma, sans-serif;
      margin: 0;
      padding: 0;
      background: #111;
      color: #fff;
      text-align: center;
    }
    .gameheader {
      padding: 20px;
    }
    .gameh1 {
      margin-bottom: 5px;
    }

    .game-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 15px;
      padding: 20px;
    }
    .game-card {
      background: #1c1c1c;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.5);
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: pointer;
    }
    .game-card:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 15px rgba(0,0,0,0.7);
    }
    .game-card img {
      width: 100%;
      display: block;
    }
    .game-card h3 {
      margin: 10px;
      font-size: 16px;
      color: #fff;
    }

    /* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
  header h1 {
    font-size: 22px;
    padding: 0 10px;
  }

  main {
    padding: 30px 10px;
  }

  h2 {
    font-size: 22px;
  }

  .card, .link-card {
    width: 90%;
    font-size: 16px;
    padding: 16px 20px;
  }

  .wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .wrap::-webkit-scrollbar {
    display: none;
  }

  .label {
    font-size: 14px;
    padding: 10px;
    min-width: 90px;
  }

  .bar, .slidebar {
    display: none; /* Optional: hide animated bar for smaller screens */
  }

  button {
    font-size: 16px;
    padding: 12px 20px;
  }

  footer {
    font-size: 12px;
    height: 15px;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .game-card h3 {
    font-size: 14px;
  }
}
