@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&display=swap');

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  background-color: #fafafa;
  background-image: radial-gradient(circle, #eaeaea 1px, transparent 1px);
  background-size: 20px 20px;
  color: #2b2b2b;
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #333;
  color: white;
  padding: 0.5em 1em;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-controls {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.25em;
  align-items: center;
}

.nav-controls select,
.nav-controls button {
  font-size: 1rem;
  white-space: nowrap;
}

.instructions {
  background: #fff8e1;
  border: 2px solid #ffd54f;
  padding: 0.05em 1.1em;
  max-width: 480px;
  margin: 0.05em auto;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1.1em;
  line-height: 1.5;
  letter-spacing: 0.025em;
  color: #2b2b2b;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.instructions ul {
  list-style-type: none;
  margin: 0;
  padding-left: 1.2em;
}

.instructions li {
  margin-bottom: 0.6em;
}

.instructions strong {
  font-weight: 600;
}

.instructions .operator {
  font-weight: 700;
  color: #555;
}

.instructions .qu0x {
  font-weight: 900;
  font-style: italic;
  color: #a200ff;
}

.target-box {
  font-size: 2.5em;
  font-weight: bold;
  color: black;
  text-align: center;
  padding: 0.3em 0.8em;  /* smaller padding, similar to before */
  border-radius: 5px;
  border: 4px solid black;
  background-color: pink;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
  margin: 0.1em auto 0.1em auto;
  display: inline-block;
  min-width: 120px;
  user-select: none;
}

.target-box:hover {
  transform: scale(1.03);          /* Slight pop on hover */
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 2px 6px rgba(255, 255, 255, 0.5);
}

.dice-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0.6em 0;
  width: 100%;
  max-width: 100vw;
}

.die {
  width: min(70px, 18vw);
  height: min(70px, 18vw);
  font-size: min(2.5em, 7vw);
  font-weight: bold;
  border: 4.2px solid black;
  border-radius: 8px;
  margin: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
              0 0 10px rgba(255, 140, 0, 0.5);
}

.die.faded {
  opacity: 0.4;
  pointer-events: none;
}

.die:hover {
  transform: translateY(-5px);
  transition: transform 0.2s ease;
}

.expression-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.7em;
  font-size: 1.5em;
}

#expressionBox {
  padding: 0.4em 1.2em;
  background: white;
  border: 2px solid #000;
  box-sizing: border-box;
  min-height: 2.2em;
  min-width: 240px;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

#evaluationBox {
  padding: 0.4em 1.2em;
  background: white;
  border: 2px solid #000;
  box-sizing: border-box;
  min-height: 2.2em;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}


#equalsSign {
  padding: 0 0.1em;
  font-weight: bold;
}

.hidden {
  display: none;
}

#deluxeExpressionBox, #deluxeEvaluationBox {
  border: 1px solid black;
  padding: 6px;
  font-size: 1.2em;
  min-height: 30px;
  margin: 5px 0;
}

#deluxeSubmitBtn {
  margin-top: 5px;
  padding: 8px 12px;
  font-weight: bold;
  background-color: purple;
  color: white;
  border: none;
  cursor: pointer;
}

#deluxeSubmitBtn:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

#buttonGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 600px;
  margin: 0.5em auto;
  justify-content: center;
}

#submitBtn.grid-span-2 {
  grid-column: 5 / 7; /* spans column 5 and 6 */
}

#buttonGrid button {
  padding: 0.6em;
  font-size: 1.2em;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #333;
  background: linear-gradient(to bottom, #f2f2f2, #ddd);
  color: #222;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

#buttonGrid button:hover {
  background: linear-gradient(to bottom, #e0e0e0, #cfcfcf);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

#buttonGrid button:active {
  background: linear-gradient(to bottom, #ccc, #aaa);
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#submitArea {
  margin: 0.7em;
}

.submit {
  font-size: 1.4em;
  padding: 0.7em 1.5em;
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
  border: 3px solid #155724;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.6);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.submit:hover {
  background: linear-gradient(135deg, #218838, #1c7430);
  box-shadow: 0 6px 14px rgba(33, 136, 56, 0.8);
  transform: scale(1.05);
}

.submit:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(33, 136, 56, 0.8);
}

.scoreboard p {
  margin: 0.3em;
}

#qu0xAnimation {
  font-size: 4.4em;  /* Base size – controls default emoji scale */
  white-space: nowrap;
  text-align: center;
  animation: pop 3s ease-in-out;
  color: #ff00ff;
}

.qu0x-logo-anim {
  height: 4.4em;       /* 👈 much smaller */
  vertical-align: middle;
  image-rendering: pixelated;
  display: inline;
}

@keyframes pop {
  0%   { transform: scale(0); opacity: 0; }
  25%  { transform: scale(1.2); opacity: 1; }
  50%  { transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

#qu0xAnimation.hidden,
.qu0x-logo-anim.hidden {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.scoreboard-container {
  width: 100%;
  text-align: center;
  margin: 0.2em 0 0.2em 0; /* top: 0.5em, bottom: 0.2em */
}

.scoreboard {
  display: inline-block;
  background: #2e2e2e;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  padding: 0.4em 20px;
  font-size: 1.05em;
  color: #ddd;
  user-select: none;
  max-width: max-content;
  margin: 0 auto;
}

.scoreboard p {
  margin: 0.3em 0;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.2em;
  min-width: max-content;
  gap: 1.5em;
}

.scoreboard p:last-child {
  border-bottom: none;
}

.scoreboard strong {
  color: #e0b0ff;
  font-weight: 700;
}

.scoreboard span {
  font-weight: 700;
  color: #fff;
}

@media (max-width: 480px) {
  .scoreboard {
    font-size: 1em;
    padding: 0.4em 15px;
  }
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0.6em 0;
}

.game-links button {
  padding: 10px 20px;
  font-size: 1.05em;
  font-weight: bold;
  color: white;
  border: 2px solid black;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.3s ease;
}

@media (max-width: 600px) {
  .game-links {
    margin-bottom: 0.2em;
  }

  .game-links button {
    margin-bottom: 0.2em;
  }
}

.game-links button:hover {
  transform: scale(1.05);
}

.game-links button:nth-child(1) {
  background-color: purple;
}

.game-links button:nth-child(2) {
  background-color: hotpink;
}

.game-links button:nth-child(3) {
  background-color: maroon;
}

#shareBtn {
  font-size: 1.3em;
  padding: 0.6em 1.8em;
  background-color: #ff6600;
  color: white;
  border: 1.3px solid black;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  margin-top: 1em;
  box-shadow:
    0 0 0 4px black,
    0 4px 8px rgba(255, 102, 0, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#shareBtn:hover {
  background-color: #cc5200;
  box-shadow:
    0 0 0 4px black,
    0 6px 12px rgba(204, 82, 0, 0.6);
}

.emoji {
  font-size: 6em; /* or whatever size you like */
  vertical-align: middle;
}

@media (max-width: 600px) {
  #qu0xAnimation {
    font-size: 3.8em; /* Smaller emoji on mobile */
  }

  .qu0x-logo-anim {
    height: 2.8em; /* Match the emoji size */
  }
}

body.theme-retro {
  background: #000;
  color: #ffff00; /* Pac-Man yellow */
  font-family: 'Press Start 2P', monospace;
  text-shadow: 0 0 2px #ffff00, 0 0 6px #ff0;
}

body.theme-retro .top-bar {
  background-color: #000;
  color: #ffff00;
  border-bottom: 2px dashed #ff0;
}

body.theme-retro .instructions,
body.theme-retro .scoreboard,
body.theme-retro .target-box {
  background-color: #000;
  color: #ff0;
  border: 2px solid #ff0;
  box-shadow: 0 0 10px #ff0;
}

body.theme-retro .die {
  background-color: #111;
  border: 2px solid #00ffff;
  color: #00ffff;
  box-shadow: 0 0 10px #00ffff;
}

body.theme-retro .submit,
body.theme-retro #shareBtn,
body.theme-retro #buttonGrid button {
  background-color: #000;
  color: #ff69b4; /* Ms. Pac-Man pink */
  border: 2px solid #ff69b4;
  box-shadow: 0 0 6px #ff69b4;
}

body.theme-retro #expressionBox,
body.theme-retro #evaluationBox {
  background-color: #111;
  color: #0ff;
  border: 2px solid #0ff;
  box-shadow: 0 0 6px #0ff;
}

body.theme-retro footer {
  color: #ff0;
}


body.theme-dark {
  background-color: #000 !important; /* Fully black background */
  color: #e0e0e0;
  background-image: none !important;
}

body.theme-dark .top-bar {
  background-color: #111;
  color: #fff;
}

body.theme-dark .instructions {
  background-color: #111;
  border-color: #333;
  color: #ddd;
}

body.theme-dark summary {
  background-color: #1a1a1a;
  color: #fff;
}

body.theme-dark details[open] summary {
  background-color: #111;
}

body.theme-dark footer {
  color: #aaa;
}

body.theme-dark .target-box {
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  border-color: #555;
  color: #00e0ff; /* soft neon blue for contrast */
  text-shadow: 1px 1px 2px black;
  box-shadow:
    0 0 0 4px black,
    0 4px 12px rgba(0, 0, 0, 0.6),
    inset 0 -4px 8px rgba(255, 255, 255, 0.05);
}

body.theme-dark #expressionBox,
body.theme-dark #evaluationBox {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 2px solid #888;
}

body.theme-dark .die {
  background-color: #222;
  color: #fff;
  border: 2px solid #888;
  box-shadow: 0 0 6px #888;
}

body.theme-dark .scoreboard {
  background-color: #1a1a1a;
  color: #e0e0e0;
  border-color: #444;
}

body.theme-dark #buttonGrid button,
body.theme-dark .submit,
body.theme-dark #shareBtn {
  background: #333;
  color: #fff;
  border-color: #666;
}

body.theme-dark #buttonGrid button:hover,
body.theme-dark .submit:hover,
body.theme-dark #shareBtn:hover {
  background: #444;
}

body.theme-terminal {
  background-color: #000000;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  text-shadow: 0 0 4px #00ff00;
}

body.theme-terminal .die {
  background-color: #001100;
  border: 2px solid #00ff00;
  color: #00ff00;
  box-shadow: 0 0 6px #00ff00;
}

body.theme-terminal .target-box,
body.theme-terminal .scoreboard,
body.theme-terminal #expressionBox,
body.theme-terminal #evaluationBox {
  background-color: #001100;
  color: #00ff00;
  border-color: #00ff00;
  box-shadow: 0 0 6px #00ff00;
}

body.theme-terminal .submit,
body.theme-terminal #shareBtn {
  background-color: #003300;
  color: #00ff00;
  border: 2px solid #00ff00;
  box-shadow: 0 0 4px #00ff00;
}

body.theme-terminal .submit:hover,
body.theme-terminal #shareBtn:hover,
body.theme-terminal #buttonGrid button:hover {
  background-color: #004400;
}

body.theme-comic {
  background: #fffcf2;
  color: #111;
  font-family: 'Bangers', 'Comic Sans MS', cursive;
}

body.theme-comic .die {
  border: 4px solid #000;
  font-weight: bold;
  box-shadow: 3px 3px 0 #000;
}

body.theme-comic .die:nth-child(1) { background-color: #ff4136; color: white; } /* red */
body.theme-comic .die:nth-child(2) { background-color: #2ecc40; color: white; } /* green */
body.theme-comic .die:nth-child(3) { background-color: #0074d9; color: white; } /* blue */
body.theme-comic .die:nth-child(4) { background-color: #ffdc00; color: black; } /* yellow */
body.theme-comic .die:nth-child(5) { background-color: #b10dc9; color: white; } /* purple */

body.theme-comic .target-box,
body.theme-comic .scoreboard,
body.theme-comic #expressionBox,
body.theme-comic #evaluationBox {
  background-color: #ffffff;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  color: #000;
}

body.theme-comic .scoreboard {
  color: #000;
}

body.theme-comic #buttonGrid button,
body.theme-comic .submit,
body.theme-comic #shareBtn {
  background: #f39c12;
  color: black;
  font-weight: bold;
  border: 2px solid black;
  box-shadow: 2px 2px 0 #000;
}

body.theme-comic #buttonGrid button:hover,
body.theme-comic .submit:hover,
body.theme-comic #shareBtn:hover {
  background: #ffc107;
  transform: translateY(-2px);
}

body.theme-comic .scoreboard span {
  color: #000;
}

body.theme-gameboy {
  background-color: #c4d7b2; /* iconic greenish background */
  color: #2b2b2b;
  font-family: 'Press Start 2P', monospace;
  text-shadow: 0 0 1px #3a3a3a;
}

body.theme-gameboy .die {
  background-color: #9db68c;
  border: 2px solid #3a3a3a;
  color: #1a1a1a;
  box-shadow: inset 0 0 3px #555;
}

body.theme-gameboy .target-box,
body.theme-gameboy .scoreboard,
body.theme-gameboy #expressionBox,
body.theme-gameboy #evaluationBox {
  background-color: #e0f0cc;
  color: #1a1a1a;
  border: 2px solid #2f2f2f;
  box-shadow: inset 0 0 4px #444;
}

body.theme-gameboy #buttonGrid button,
body.theme-gameboy .submit,
body.theme-gameboy #shareBtn {
  background: #a1c38f;
  color: #000;
  border: 2px solid #333;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body.theme-gameboy #buttonGrid button:hover,
body.theme-gameboy .submit:hover,
body.theme-gameboy #shareBtn:hover {
  background: #b5d89c;
  transform: scale(1.03);
}

body.theme-gameboy .nav-controls button,
body.theme-gameboy select {
  background: #d0e6b8;
  color: #000;
  border: 2px solid #333;
}

body.theme-gameboy .nav-controls button:hover,
body.theme-gameboy select:hover {
  background: #e1f6c4;
}

body.theme-gameboy .scoreboard span {
  color: #000;
}

body.theme-fantasy {
  background: url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
  background-color: #1e1a17;
  color: #f5e6c5;
  font-family: 'Cinzel Decorative', serif;
  text-shadow: 1px 1px 2px #000;
}

body.theme-fantasy .top-bar {
  background-color: #2f261d;
  color: #f5e6c5;
  border-bottom: 2px solid #c19b4a;
}

body.theme-fantasy .die {
  background: radial-gradient(circle at 30% 30%, #5a4126, #2e1c0e);
  border: 3px solid #c89b3c;
  color: #ffe9a9;
  font-weight: bold;
  font-family: 'Cinzel Decorative', serif;
  text-shadow: 1px 1px 2px #000;
  box-shadow:
    0 0 8px #c89b3c,
    inset 0 0 6px rgba(255, 223, 100, 0.3),
    2px 2px 6px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-fantasy .die:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 14px #ffd700,
    inset 0 0 8px rgba(255, 255, 255, 0.2);
}

body.theme-fantasy .target-box,
body.theme-fantasy .scoreboard,
body.theme-fantasy #expressionBox,
body.theme-fantasy #evaluationBox {
  background-color: #2f261d;
  border: 2px solid #c19b4a;
  color: #f5e6c5;
  box-shadow: 0 0 10px #c19b4a88;
}

body.theme-fantasy #buttonGrid button,
body.theme-fantasy .submit,
body.theme-fantasy #shareBtn {
  background: linear-gradient(to bottom, #5a4222, #3e2c1a);
  color: #fff3d0;
  border: 2px solid #c19b4a;
  font-weight: bold;
  box-shadow: 0 0 5px #c19b4a;
}

body.theme-fantasy #buttonGrid button:hover,
body.theme-fantasy .submit:hover,
body.theme-fantasy #shareBtn:hover {
  background: linear-gradient(to bottom, #7e5a2f, #50371e);
  transform: scale(1.05);
  box-shadow: 0 0 10px #ffd700;
}

body.theme-fantasy .nav-controls button,
body.theme-fantasy select {
  background-color: #3e2c1a;
  color: #f5e6c5;
  border: 2px solid #c19b4a;
}

body.theme-fantasy .scoreboard span {
  color: #fff;
}

body.theme-retro .target-box {
  background: #000;
  color: #ffff00;
  border: 2px dashed #ffff00;
  box-shadow: 0 0 12px #ffff00, 0 0 20px #ff0;
  text-shadow: 0 0 3px #ffff00;
}

body.theme-dark .target-box {
  background: #1a1a1a;
  color: #00e0ff;
  border: 2px solid #333;
  box-shadow: 0 0 8px #00e0ff;
  text-shadow: 0 0 3px #00e0ff;
}

body.theme-terminal .target-box {
  background: #000;
  color: #00ff00;
  border: 2px solid #00ff00;
  box-shadow: 0 0 8px #00ff00;
  text-shadow: 0 0 2px #00ff00;
}

body.theme-gameboy .target-box,
body.theme-comic .target-box,
body.theme-fantasy .target-box {
  background: unset !important;
  background-color: inherit !important;
}

body.theme-comic .target-box {
  background-color: #fff;
  color: #000;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  font-family: 'Bangers', 'Comic Sans MS', cursive;
  text-shadow: none;
}


body.theme-gameboy .target-box {
  background-color: #e0f0cc;
  color: #1a1a1a;
  border: 2px solid #2f2f2f;
  box-shadow: inset 0 0 4px #444;
  font-family: 'Press Start 2P', monospace;
  text-shadow: none;
}

body.theme-fantasy .target-box {
  background: radial-gradient(circle, #3a2e1f 0%, #241b13 100%);
  color: #ffe9a9;
  border: 3px solid #c89b3c;
  box-shadow:
    0 0 12px #c89b3c,
    0 0 20px #c89b3c80 inset,
    0 0 5px #000 inset;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4em;
  text-align: center;
  padding: 0.4em 0.8em;
  border-radius: 10px;
  text-shadow: 1px 1px 3px #000;
  display: inline-block;
  margin: 0.5em auto;
}

#themeSelector {
  max-width: 160px;
  width: auto;
  font-size: 0.95rem;
  padding: 0.4em 0.6em;
}

body.theme-dark .nav-controls button,
body.theme-dark .nav-controls select {
  background-color: #222;
  color: #fff;
  border: 2px solid #555;
}

body.theme-comic .nav-controls button,
body.theme-comic .nav-controls select {
  background: #f39c12;
  color: #111;
  font-weight: bold;
  border: 2px solid black;
  box-shadow: 2px 2px 0 #000;
  font-family: 'Bangers', 'Comic Sans MS', cursive;
}

body.theme-comic .nav-controls button:hover,
body.theme-comic .nav-controls select:hover {
  background: #ffc107;
  transform: translateY(-2px);
}

body.theme-terminal .nav-controls button,
body.theme-terminal .nav-controls select {
  background-color: #003300;
  color: #00ff00;
  border: 2px solid #00ff00;
  font-family: 'Courier New', Courier, monospace;
  text-shadow: 0 0 2px #00ff00;
}

body.theme-terminal .nav-controls button:hover,
body.theme-terminal .nav-controls select:hover {
  background-color: #004400;
}

body.theme-fantasy #buttonGrid button,
body.theme-fantasy .submit,
body.theme-fantasy #shareBtn {
  background: linear-gradient(to bottom, #3e2e16, #261c0f);
  color: #ffe9a9;
  font-weight: bold;
  border: 2px solid #c89b3c;
  box-shadow: 0 0 10px #c89b3c, inset 0 0 6px #c89b3c80;
  text-shadow: 1px 1px 3px black;
  font-family: 'Cinzel Decorative', serif;
}

body.theme-fantasy #buttonGrid button:hover,
body.theme-fantasy .submit:hover,
body.theme-fantasy #shareBtn:hover {
  background: linear-gradient(to bottom, #5a3c1d, #3c2c15);
  transform: scale(1.05);
  box-shadow: 0 0 14px #f9d857, 0 0 6px #c89b3c inset;
}

body.theme-fantasy .die {
  letter-spacing: 0.05em;
  font-size: 2.5em;
}

body.theme-fantasy .instructions {
  background: url('https://www.transparenttextures.com/patterns/paper-fibers.png'), #f4ecd8;
  border: 3px solid #5a4a2f;
  font-family: 'Cinzel Decorative', serif;
  padding: 1em;
  box-shadow: inset 0 0 10px #d2b48c;
  color: #3b2d1f;
}

body.theme-terminal {
  background-color: #000000;
  background-image: linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px);
  background-size: 100% 2px;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  text-shadow: 0 0 4px #00ff00;
}

body.theme-terminal #buttonGrid button,
body.theme-terminal .submit,
body.theme-terminal #shareBtn {
  background: #000;
  color: #00ff00;
  border: 2px solid #00ff00;
  border-color: #00ff00;
  font-family: 'Courier New', Courier, monospace
}

body.theme-terminal #buttonGrid button:hover,
body.theme-terminal .submit:hover,
body.theme-terminal #shareBtn:hover {
  background: #000;
}


body.theme-comic {
  background-color: #fff0c4;
  background-image:
    radial-gradient(#d60000 11%, transparent 12%),
    radial-gradient(#d60000 11%, transparent 12%);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px; /* creates a staggered grid */
}

.expression-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .expression-section {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }
}

@keyframes spin {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

.flame-emoji {
  position: fixed;
  bottom: 0;
  font-size: 30px;
  animation-name: flickerFloat;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  opacity: 0.8;
  user-select: none;
  pointer-events: none;
}

@keyframes flickerFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }
}

#juiceMeterContainer {
  width: 40%;
  height: 20px;
  margin: 0.7em auto 0.5em;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #000;
  box-shadow: inset 0 0 6px #000;
}

@media (max-width: 600px) {
  #juiceMeterContainer {
    width: 75%;
  }
}

#juiceMeter {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #ff4d4d, #ffd633, #33cc33);
  transition: width 0.3s ease;
}

#buttonGrid .submit {
  background: linear-gradient(135deg, #28a745, #1e7e34) !important;
  color: white !important;
  border: 3px solid #155724 !important;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.6) !important;
}

