/* ----------------Terminal CSS---------------- */

/* UIU Nerds Terminal Styles - All selectors prefixed with .uiu-term- */

/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap");

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .uiu-term-panel,
  .uiu-term-toggle-btn {
    transition: none !important;
    animation: none !important;
  }
}

/* Toggle Button */
.uiu-term-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f37021;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  z-index: 10004;
  /* box-shadow: 0 4px 12px rgba(102, 204, 255, 0.3); */
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;

  /* background-color: rgba(0, 0, 0, 0.2);
       backdrop-filter: blur(10px);
       -webkit-backdrop-filter: blur(10px);
       transition: background-color 0.3s ease, color 0.3s ease;
       color: #f37021; */
}

@media (max-width: 1200px) {
  .uiu-term-toggle-btn {
    bottom: 70px;
    right: 20px;
    z-index: 997 !important;
  }
}

.uiu-term-toggle-btn:hover {
  /* background: #5bc; */
  transform: scale(1.05);
  /* box-shadow: 0 6px 16px rgba(102, 204, 255, 0.4); */
  color: #fff;
  background-color: #f37021;
}

.uiu-term-toggle-btn:active {
  transform: scale(0.95);
}

/* Mobile adjustments for toggle button */
/* @media (max-width: 768px) {
  .uiu-term-toggle-btn {
    width: 48px;
    height: 48px;
    font-size: 15px;
    bottom: 16px;
    right: 16px;
  }
} */

/* Overlay */
.uiu-term-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
}

.uiu-term-overlay.uiu-term-visible {
  opacity: 1;
  visibility: visible;
}

/* Terminal Panel */
.uiu-term-panel {
  caret-color: transparent;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50vh; /* Default to half screen height instead of fullscreen */
  background: #0b0b0b;
  border: 1px solid #222;
  border-bottom: none;
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  font-family: "Fira Code", "JetBrains Mono", "Consolas", "Monaco", monospace;
  color: #e6e6e6;
  padding-bottom: env(safe-area-inset-bottom, 0);

  background:
    linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
    url("/assets/image/ocanvas.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.uiu-term-panel.uiu-term-open {
  transform: translateY(0);
}

.uiu-term-panel.uiu-term-fullscreen {
  height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Header */
.uiu-term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 15px;
  background: #00000090;
  border-bottom: 1px solid #222;
  min-height: 44px;
}

.uiu-term-title {
  font-size: 13px;
  font-weight: 500;
  color: #6cf;
  margin: 0;
}

.uiu-term-header-actions {
  display: flex;
  gap: 0;
  /* margin-right: -6px; */
  margin-left: auto;
}

.uiu-term-header-btn {
  width: 25px;
  height: 32px;

  border: none;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s ease;
}

.uiu-term-header-btn .fa-expand,
.uiu-term-header-btn .fa-compress {
  margin-top: 1px;
}
.uiu-term-header-btn .fa-xmark {
  font-size: 18px;
}
.uiu-term-header-btn .fa-compress {
  font-size: 15px;
}

.uiu-term-header-btn:hover {
  color: #e6e6e6;
}

/* .uiu-term-header-btn:active {
  background: #333;
} */

/* Mobile header adjustments */
/* @media (max-width: 768px) {
  .uiu-term-header-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
} */

/* Content Area */
.uiu-term-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Output Area */
.uiu-term-output {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  padding-bottom: 100px;
  background-color: #00000065;
  /* Enable text selection in output area */
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.uiu-term-output::-webkit-scrollbar {
  width: 8px;
}

.uiu-term-output::-webkit-scrollbar-track {
  background: #111;
}

.uiu-term-output::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.uiu-term-output::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Output Line */
.uiu-term-line {
  margin-bottom: 4px;
  /* Enable text selection for all output lines */
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.uiu-term-prompt {
  color: #f37021;
  font-weight: 500;
}

.uiu-term-command {
  color: #e6e6e6;
}

.uiu-term-output-text {
  color: #e6e6e6;
  margin-left: 0;
  /* Enable text selection for output text */
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.uiu-term-error {
  color: #ff6b6b;
}

.uiu-term-success {
  color: #51cf66;
}

.uiu-term-info {
  color: #51cf66;
}

.uiu-term-secondary {
  color: #aaa;
  margin-bottom: 5px;
}

.uiu-term-link {
  color: #6cf;
  text-decoration: underline;
  cursor: pointer;
}

.uiu-term-link:hover {
  color: #5bc;
}

/* Autocomplete Suggestions */
.uiu-term-suggestions {
  /* Better positioning to avoid overlap with input */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #00000090;
  border-top: 1px solid #222;
  padding: 12px 16px;
  font-size: 12px;
  z-index: 10001; /* Higher than terminal panel */
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.uiu-term-suggestions-title {
  color: #aaa;
  margin-bottom: 8px;
  font-weight: 500;
}

.uiu-term-suggestions-list {
  color: #6cf;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uiu-term-suggestion {
  padding: 0 3px;
  background: #222;
  cursor: pointer;
  transition: background 0.15s ease;
  border: 1px solid transparent;
}

.uiu-term-suggestion:hover {
  background: #333;
  border-color: #6cf;
}

/* Better mobile suggestions positioning */
@media (max-width: 768px) {
  .uiu-term-output {
    font-size: 9px;
  }
  .uiu-term-suggestions {
    font-size: 9px;
  }

  .uiu-term-suggestion {
    font-size: 9px;
  }
}

/* ASCII Art */
.uiu-term-ascii {
  color: #6cf;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  margin: 12px 0;
}

/* PYQ Tree */
.uiu-term-ptq-tree {
  margin: 8px 0;
}

.uiu-term-ptq-level {
  margin-left: 16px;
  margin-bottom: 4px;
}

.uiu-term-ptq-item {
  cursor: pointer;
  padding: 1px 6px 0 6px;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 4px;
  border: 1px solid rgba(36, 241, 6, 0.46);
  background-color: rgba(7, 158, 70, 0.226);
  /* box-shadow: 0px 0px 2px #259c08; */
  color: #0ad406;
}

.uiu-term-ptq-item:hover {
  background: #222;
}

.uiu-term-ptq-link {
  color: #6cf;
  text-decoration: underline;
}

.uiu-term-ptq-link:hover {
  color: #5bc;
}

/* Focus Management */
.uiu-term-panel[aria-modal="true"] {
  /* Focus trap styles if needed */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .uiu-term-panel {
    border-color: #fff;
  }

  .uiu-term-header {
    border-bottom-color: #fff;
  }

  .uiu-term-input-area {
    border-top-color: #fff;
  }
}

/* Print styles */
@media print {
  .uiu-term-toggle-btn,
  .uiu-term-overlay,
  .uiu-term-panel {
    display: none !important;
  }
}

/* Inline Input Editing */
.uiu-term-input-line-active {
  position: relative;
  /* Prevent selection of input line when clicking output */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.uiu-term-inline-input {
  background: transparent;
  border: none;
  outline: none;
  color: #e6e6e6;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  display: inline;
  min-width: 1ch;
  /* Enable text selection in input */
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.uiu-term-inline-input:empty:before {
  content: " ";
  white-space: pre;
}

.uiu-term-cursor {
  color: #f37021;
  caret-color: transparent;
  animation: uiu-term-cursor-blink 1s infinite;
  /* margin-left: 1px; */
}

@keyframes uiu-term-cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .uiu-term-panel {
    height: 50vh;
  }

  .uiu-term-panel.uiu-term-fullscreen {
    height: 100dvh;
  }
}

.uiu-term-ptq-link {
  text-decoration: none;
  cursor: pointer;
  padding: 1px 6px 0 6px;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 4px;
  background-color: rgba(1, 204, 220, 0.16);
  color: #03d0ff;
  border: 1px solid rgba(6, 241, 226, 0.81);
}

.uiu-term-username {
  color: #4cafef;
  font-weight: bold;
  display: inline-block; /* forces proper spacing */
  margin-right: 3px; /* optional small gap */
}

/* Yellow headings in the output area */
.uiu-term-heading {
  color: #ffd700; /* gold/yellow */
  /* font-weight: 700; */
  /* border: 2px solid #ff0040; */
  margin-top: -6px;
}

/* (optional) dim separators */
.uiu-term-sep {
  opacity: 0.6;
}

s

/* ---------------------- rps game ---------------------- */
/* Base styling for the three action buttons */

.uiu-rps-container .rps-action-btn {
  cursor: pointer;
  padding: 8px 12px;
  color: #e5e7eb;
  border: 1px solid #374151;
  border-radius: 1px !important;
  font-weight: 600;
  user-select: none;
  background-color: #00000000 !important;
  transition:
    background-color 0.15s ease,
    transform 0.05s ease;
}
.uiu-rps-container {
  border-radius: 1px !important;
  background-color: #00000000 !important;
  margin-top: 10px;
  margin-bottom: 10px;
}
/* Hover/active effects */
.uiu-rps-container .rps-action-btn:hover {
  filter: brightness(1.08);
}
.uiu-rps-container .rps-action-btn:active {
  transform: translateY(1px);
}

/* Variants by move */
.uiu-rps-container .rps-action-btn[data-move="rock"],
.uiu-rps-container .rps-action-btn[data-move="paper"],
.uiu-rps-container .rps-action-btn[data-move="scissors"] {
  background-color: rgba(1, 204, 220, 0.16);
  color: #03d0ff;
  border: 1px solid rgba(6, 241, 226, 0.81);
  border-radius: 0;
  padding: 8px 12px;
}

.uiu-rps-title {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: #f37021 !important;
  letter-spacing: 10px !important;
}

.help-control {
  width: 100%;
  border: 1px solid rgba(36, 241, 6, 0.46);
  background-color: rgba(7, 158, 70, 0.226);
  color: #0ad406;
  border-radius: 0 !important;
  text-align: center;
  padding: 1px;
}
/* ---------------------- rps game end---------------------- */

/* ---------------------- Snake game (CSS) ---------------------- */
.uiu-snake-container div {
  border-radius: 3px;
}

.uiu-snake-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 12px;
  /* width: 100%; */
  width: 600px;
  /* max-width: 420px;  // adjust or remove if you want full width */
  background: #00000000;
  border: 1px solid #222;
  border-radius: 1px;
  color: #eee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 768px) {
  .uiu-snake-container {
    width: 100%;
  }

  .uiu-snake-popup {
    font-size: 5px;
  }
}

.uiu-snake-title {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: #f37021;
  letter-spacing: 15px;
}

.uiu-snake-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 13px;
  color: #cfcfcf;
}

.uiu-snake-info.paused {
  color: #facc15;
}
.uiu-snake-info.gameover {
  color: #f87171;
}

/* Responsive square grid that fills container width */
.uiu-snake-grid {
  --grid-size: 20;
  --gap: 1px;

  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  grid-template-columns: repeat(var(--grid-size), 1fr);
  grid-template-rows: repeat(var(--grid-size), 1fr);
  gap: var(--gap);
  background: #00000000;
  border: 1px solid #111;

  background:
    linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
    url("/assets/image/snake.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.uiu-snake-grid.is-paused::after {
  content: "PAUSED";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #facc15;
  font-weight: 700;
  letter-spacing: 1px;
}

/* .uiu-snake-grid.is-gameover::after {
  content: "GAME OVER";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  color: #f87171;
  font-weight: 800;
  letter-spacing: 1px;
} */

.uiu-snake-grid {
  position: relative;
} /* ensure the overlay positions correctly */

.uiu-snake-grid.is-gameover::after {
  content: attr(data-message); /* pull text from the data attribute */
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  color: #f87171;
  font-weight: 800;
  letter-spacing: 1px;
  z-index: 10;
}

.uiu-snake-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.uiu-snake-info-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 12px;
  color: #cfcfcf;
}

.uiu-snake-help {
  text-align: center;
  font-size: 12px;
  color: #cfcfcf;
}

/* .uiu-btn {
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  border: 1px solid #273246;
  background: #111827;
  color: #cbd5e1;
  transition: background 0.15s ease;
} */

.uiu-btn {
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 10px;
  font-size: 13px;
  background-color: var(--card-bg-2);
  color: #fff;
  border: 1px solid #333;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.uiu-btn:hover {
  color: #ffffff;
  transform: scale(1);
  transition: color 0.3s;
}

.uiu-btn::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #f37021;
  transform: skewX(45deg);
  z-index: -1;
  transition: width 1000ms;
}

.uiu-btn:hover::before {
  width: 250%;
}

/* .uiu-btn:hover { background: #1f2937; } */
.uiu-btn--mini {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* Cells and food fill their area */
.uiu-snake-cell,
.uiu-snake-food {
  width: 100%;
  height: 100%;
}

.uiu-snake-cell {
  background: #10b981;
} /* body */
.uiu-snake-cell.is-head {
  background: #34d399;
} /* head */

/* Letter-grade food: centered label */
.uiu-snake-food {
  background: #f37021;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px; /* tweak if your grid is small/large */
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Popups strip */
.uiu-snake-popups {
  position: relative;
  padding: 0;
  overflow: visible;
  pointer-events: none; /* clicks pass through */
}

.uiu-snake-popup {
  position: absolute;
  top: 35px;
  right: 10px;
  transform: translateX(-50%);
  padding: 0 6px;
  border-radius: 0 !important;
  background: #f37021;
  color: #111;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  animation: uiuSnakePopFadeUp 900ms ease forwards;
  z-index: 1000; /* make sure it's above others */
}

/* Float up and fade */
@keyframes uiuSnakePopFadeUp {
  0% {
    transform: translateY(6px);
    opacity: 0;
  }
  15% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-8px);
    opacity: 0;
  }
}

/* By default, hide the dpad */
.uiu-snake-dpad {
  display: none;
}

/* Show only on mobile (max 768px wide) */
@media (max-width: 768px) {
  .uiu-snake-dpad {
    display: grid;
    place-items: center;
  }
}

.uiu-snake-dpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  grid-template-rows: repeat(3, 30px);
  gap: 6px;
  justify-content: center;
  touch-action: manipulation; /* better mobile taps */
}

.uiu-btn--arrow {
  width: 100%;
  height: 100%;
  font-size: 13px;
  /* font-weight: 800; */
  line-height: 1;
  padding: 0;
}
.uiu-btn--arrow:hover {
  background-color: #f37021;
}

/* Position arrows in a 3x3 grid: up top-center, left/ right middle, down bottom-center */
.uiu-btn--arrow.is-up {
  grid-column: 2;
  grid-row: 1;
}
.uiu-btn--arrow.is-left {
  grid-column: 1;
  grid-row: 2;
}
.uiu-btn--arrow.is-right {
  grid-column: 3;
  grid-row: 2;
}
.uiu-btn--arrow.is-down {
  grid-column: 2;
  grid-row: 3;
}

/* Scoped to the snake controls only */
.uiu-snake-controls button,
.uiu-rps-controls button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #00000000;
}

/* Only style the Font Awesome <i> inside the snake controls */
.uiu-snake-controls button i.fa-solid,
.uiu-rps-controls button i.fa-solid {
  font-size: 1rem;
  line-height: 1;
}

/* Different colors per icon (only inside .uiu-snake-controls) */
.uiu-snake-controls i.fa-pause {
  /* Pause */
  color: #f39c12; /* orange */
}
.uiu-snake-controls i.fa-play {
  /* Pause */
  color: #008000;
}

.uiu-snake-controls i.fa-rotate-left,
.uiu-rps-controls i.fa-rotate-left {
  /* Reset */
  color: #3498db; /* blue */
}

.uiu-snake-controls i.fa-arrows-left-right {
  /* Wrap */
  color: #9b59b6; /* purple */
}

.uiu-snake-controls i.fa-xmark,
.uiu-rps-controls i.fa-xmark {
  /* Close */
  color: #e74c3c; /* red */
}

/* ---------------------- Snake game (CSS) end ---------------------- */

/* ---------------------- Tic Tac Toe (CSS) ---------------------- */
.uiu-ttt-container div {
  border-radius: 3px;
}

.uiu-ttt-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 12px;
  width: 600px;
  background: #00000000;
  border: 1px solid #222;
  border-radius: 1px;
  color: #eee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 768px) {
  .uiu-ttt-container {
    width: 100%;
  }
  .uiu-ttt-popup {
    font-size: 5px;
  }
}

.uiu-ttt-title {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: #f37021;
  letter-spacing: 15px;
}

.uiu-ttt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 13px;
  color: #cfcfcf;
}

.uiu-ttt-info.paused {
  color: #facc15;
}
.uiu-ttt-info.gameover {
  color: #f87171;
}

.uiu-ttt-grid {
  --gap: 1px;

  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);
  background: #00000000;
  border: 1px solid #111;

  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.uiu-ttt-grid.is-gameover::after {
  content: attr(data-message);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  color: #f87171;
  font-weight: 800;
  letter-spacing: 1px;
  z-index: 10;
}

.uiu-ttt-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.uiu-ttt-info-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 12px;
  color: #cfcfcf;
}

.uiu-ttt-help {
  text-align: center;
  font-size: 12px;
  color: #cfcfcf;
}

/* Cells */
.uiu-ttt-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0b;
  border: 1px solid #111;
  font-weight: 900;
  font-size: clamp(28px, 8vw, 58px);
  line-height: 1;
  user-select: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.05s ease;
}

.uiu-ttt-cell:hover {
  background: #141414;
}
.uiu-ttt-cell:active {
  transform: scale(0.98);
}
.uiu-ttt-cell.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.uiu-ttt-cell.is-x {
  color: #f37021;
} /* X = orange (brand) */
.uiu-ttt-cell.is-o {
  color: #34d399;
} /* O = green (snake vibe) */

.uiu-ttt-cell.is-win {
  background: #1c1c1c;
  box-shadow: inset 0 0 0 2px rgba(243, 112, 33, 0.25);
}

/* Scope icon sizes/colors like the snake game */
.uiu-ttt-controls button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #00000000;
}

.uiu-ttt-controls button i.fa-solid {
  font-size: 1rem;
  line-height: 1;
}

.uiu-ttt-controls i.fa-rotate-left {
  color: #3498db;
} /* Reset */
.uiu-ttt-controls i.fa-shuffle {
  color: #9b59b6;
} /* Swap X/O */
.uiu-ttt-controls i.fa-forward-step {
  color: #10b981;
} /* First: Player/CPU */
.uiu-ttt-controls i.fa-brain {
  color: #f39c12;
} /* Difficulty */
.uiu-ttt-controls i.fa-xmark {
  color: #e74c3c;
} /* Close */
/* ---------------------- Tic Tac Toe (CSS) end ---------------------- */
