    :root {
      --cookie: #ffcc66;
      --cookie-hover: #ffb84d;
      --cookie-deep: #cc6600;
      --ink: #333;
      --bg: #fffaf0;
      --line: #ddd;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Courier New', monospace;
      background-color: var(--bg);
      color: var(--ink);
      text-align: center;
      padding: 50px 20px;
    }

    h1 {
      font-size: 2.5rem;
      margin-bottom: 10px;
    }

    .price {
      font-size: 2rem;
      margin-bottom: 20px;
    }

    .wallet {
      font-size: 1.1rem;
      margin-bottom: 30px;
    }

    /* --- Actions row --- */
    .actions {
      display: flex;
      gap: 12px;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .btn {
      padding: 10px 18px;
      font-size: 1.05rem;
      border: none;
      border-radius: 10px;
      background-color: var(--cookie);
      color: #000;
      cursor: pointer;
      transition: transform .06s ease, background-color .15s ease, box-shadow .15s ease;
      box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 2px 10px rgba(0, 0, 0, .05);
    }

    .btn:hover {
      background-color: var(--cookie-hover);
    }

    .btn:active {
      transform: translateY(1px);
    }

    .btn[disabled] {
      opacity: .55;
      cursor: not-allowed;
      filter: grayscale(.1);
      box-shadow: none;
    }

    /* --- Styled dropdown that looks like a button --- */
    .select-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 10px;
      background: var(--cookie);
      box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 2px 10px rgba(0, 0, 0, .05);
      transition: background-color .15s ease;
    }

    .select-wrap:hover {
      background: var(--cookie-hover);
    }

    .select-wrap:focus-within {
      outline: 2px solid #ff9900;
      outline-offset: 2px;
    }

    .select-wrap label {
      font-size: .95rem;
      color: #000;
      opacity: .8;
      user-select: none;
    }

    .select-wrap select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      border: none;
      background: transparent;
      font: inherit;
      color: #000;
      padding-right: 22px;
      /* room for arrow */
      cursor: pointer;
      outline: none;
    }

    /* custom arrow */
    .select-wrap::after {
      content: "";
      position: absolute;
      right: 12px;
      width: 12px;
      height: 12px;
      pointer-events: none;
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
      background-size: 12px 12px;
      background-repeat: no-repeat;
      opacity: .8;
    }

    #graph {
      margin-top: 40px;
      border: 1px solid #ccc;
      border-radius: 12px;
      background-color: #fff;
    }

    table {
      margin-top: 30px;
      border-collapse: collapse;
      margin-left: auto;
      margin-right: auto;
      min-width: 420px;
      max-width: 90vw;
    }

    th,
    td {
      padding: 8px 12px;
      border-bottom: 1px solid #ccc;
    }

    .inputBox {
      padding: 10px 14px;
      border-radius: 10px;
      border: 1px solid #ccc;
      font-family: inherit;
      font-size: 1rem;
      width: 220px;
      text-align: center;
      background-color: #fffaf0;
    }

/* Light theme */
body[data-theme="light"] {
  background: #fffaf0;
  color: #222;
}

/* Light buttons */
body[data-theme="light"] .btn {
  background: #ffffff;
  color: #222;
  border: 1px solid #bbb;
}

/* Light tables & canvas */
body[data-theme="light"] table {
  background: #ffffff;
  color: #222;
}
body[data-theme="light"] canvas {
  background: #ffffff !important;
}

body[data-theme="dark"] {
  background: #363636;       
  color: #e0e0e0;
}

body[data-theme="dark"] .btn {
  background: #2a2a2a;
  color: #e6e6e6;
  border: 1px solid #3b3b3b;
}

body[data-theme="dark"] table {
  background: #252525;
  color: #eee;
}

body[data-theme="dark"] canvas {
  background: #2a2a2a !important;
}



.emoji-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  transition: background 0.35s ease, transform 0.2s ease;
  user-select: none;
  border: 2px solid #ddd;
}

.emoji-toggle:hover {
  transform: scale(1.05);
}

body[data-theme="dark"] .emoji-toggle {
  background: #2b2b2bcc;
  border-color: #555;
}

.emoji-toggle .emoji {
  transition: opacity 0.2s ease;
}


#menuButton {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 28px;
  cursor: pointer;
  z-index: 1100;
  user-select: none;
}

/* === SIDE MENU === */
#sideMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg, #fff);
  box-shadow: 10px 0 30px rgba(0,0,0,0.25);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1200;
}

#sideMenu.open {
  transform: translateX(0);
}

.menuContent {
  height: 100%;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menuContent h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

/* buttons */
.menuContent button {
  background: none;
  border: none;
  font-size: 16px;
  padding: 12px;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
}

.menuContent button:hover {
  background: rgba(0,0,0,0.08);
}

.menuContent .logout {
  color: #c0392b;
  font-weight: bold;
}

.menuContent .spacer {
  flex: 1;
}

/* === OVERLAY === */
#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1150;
}

#menuOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

body[data-theme="dark"] #sideMenu {
  background: #2a2a2a;
  color: #e6e6e6;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
}

body[data-theme="dark"] .menuContent h2 {
  color: #ffcc66; /* cookie accent */
}

body[data-theme="dark"] .menuContent button {
  color: #e6e6e6;
}

body[data-theme="dark"] .menuContent button:hover {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] #menuOverlay {
  background: rgba(0, 0, 0, 0.55);
}


    body[data-theme="light"] p.description{
      max-width: 600px;
      margin: 20px auto;
      font-size: 0.95rem;
      color: #444;
    }

    body[data-theme="dark"] p.description{
      max-width: 600px;
      margin: 20px auto;
      font-size: 0.95rem;
      color: #e0e0e0;
    }
