/* ============================================
   ELI CLAUD — STYLE.CSS
   ============================================ */

/* VARIABLES */
:root {
  --coral:   #FF6B6B;
  --sky:     #4FC3F7;
  --mint:    #4DD4A0;
  --golden:  #FFD54F;
  --purple:  #B39DDB;
  --white:   #FFFFFF;
  --off-white: #F8F9FF;
  --text:    #1A1A2E;
  --text-light: #555577;
  --nav-bg:  #1A1A2E;
  --nav-text: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-shadow: 0 6px 24px rgba(0,0,0,0.10);
  --radius:  14px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --off-white:  #0D0D1E;
  --text:       #EEEEFF;
  --text-light: #AAAACC;
  --nav-bg:     #060612;
  --nav-text:   #FFFFFF;
  --card-bg:    #1A1A30;
  --card-shadow: 0 6px 24px rgba(0,0,0,0.50);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  background: var(--off-white);
  color: var(--text);
  overflow-x: hidden;
  cursor: none; /* custom sparkle cursor */
}
@media (hover: none) { body { cursor: auto; } }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
strong { font-weight: 800; }

/* SPARKLE CURSOR */
#sparkle-container { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.sparkle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: sparkle-fade 0.55s ease-out forwards;
  z-index: 9999;
}
@keyframes sparkle-fade {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
}

/* TOAST */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--card-bg);
  padding: .75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  z-index: 9990;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
  white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* CONFETTI */
#confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9980; overflow: hidden; }
.confetti-bit {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* M.O.N.N.Y. RAIN */
#monny-rain { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9970; overflow: hidden; }
.monny-coin {
  position: absolute;
  top: -60px;
  font-size: 1.4rem;
  animation: coin-fall linear forwards;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
@keyframes coin-fall {
  0%   { top: -60px; opacity: 1; }
  100% { top: 110vh; opacity: .4; }
}

/* BOUNCING E */
#bouncing-e {
  position: fixed;
  font-family: 'Fredoka One', sans-serif;
  font-size: 5rem;
  color: var(--golden);
  text-shadow: 4px 4px 0 rgba(0,0,0,.15);
  pointer-events: none;
  z-index: 100;
  display: none;
  user-select: none;
  line-height: 1;
  padding: .2em .35em;
  background: var(--text);
  border-radius: var(--radius-sm);
}

/* NAV */
#navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--nav-bg);
  color: var(--nav-text);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-logo {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.3rem;
  color: var(--golden);
  white-space: nowrap;
  margin-right: auto;
}
.nav-links {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}
.nav-links a {
  padding: .35rem .75rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.15); color: #fff; }
#night-toggle {
  background: none;
  border: 2px solid rgba(255,255,255,.3);
  color: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  transition: border-color .2s, transform .2s;
  flex-shrink: 0;
}
#night-toggle:hover { border-color: var(--golden); transform: rotate(20deg); }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2066 50%, #1A1A2E 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(3.5rem, 12vw, 8rem);
  color: #FFFFFF;
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(0,0,0,.3), 0 0 60px rgba(179,157,219,.5);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
#eli-click {
  color: var(--golden);
  cursor: pointer;
  display: inline-block;
  transition: transform .1s;
}
#eli-click:active { transform: scale(.95); }
.hero-tagline {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: rgba(255,255,255,.7);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}
.hero-stats {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}
.stat-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  color: white;
  text-align: center;
  transition: transform .2s, background .2s;
  cursor: pointer;
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.15); }
.stat-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: .25rem; }
.stat-value { font-family: 'Fredoka One', sans-serif; font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--golden); word-break: break-all; max-width: 280px; }
.stat-sublabel { font-size: .75rem; opacity: .6; margin-top: .25rem; }
.monny-value { font-size: clamp(.85rem, 2vw, 1rem) !important; }

/* SEARCH */
.search-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.search-tip {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin-bottom: .75rem;
  font-weight: 600;
}
.search-row {
  display: flex;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 2rem;
  padding: .4rem .4rem .4rem 1.25rem;
  transition: border-color .2s, background .2s;
}
.search-row:focus-within { border-color: var(--golden); background: rgba(255,255,255,.18); }
#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
}
#search-input::placeholder { color: rgba(255,255,255,.4); }
#search-btn {
  background: var(--golden);
  border: none;
  border-radius: 1.5rem;
  padding: .4rem .9rem;
  font-size: 1rem;
  transition: transform .15s, opacity .15s;
}
#search-btn:hover { transform: scale(1.1); }
#search-result {
  margin-top: .75rem;
  min-height: 1.5rem;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .95rem;
}

/* SECTIONS */
.section {
  padding: 4rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  text-align: center;
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  transition: transform .15s;
}
.section-title:hover { transform: translateX(-50%) rotate(-1deg) scale(1.03); }
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Section tints — full bleed using body backgrounds behind max-width sections */
body > section.section-coral { background: #FFF0F0; }
body > section.section-sky   { background: #EFF9FF; }
body > section.section-mint  { background: #EDFFF7; }
body > section.section-golden{ background: #FFFBEE; }
body > section.section-purple{ background: #F5F0FF; }

[data-theme="dark"] body > section.section-coral  { background: #1F1010; }
[data-theme="dark"] body > section.section-sky    { background: #0E1820; }
[data-theme="dark"] body > section.section-mint   { background: #0E1F18; }
[data-theme="dark"] body > section.section-golden { background: #1E1B0E; }
[data-theme="dark"] body > section.section-purple { background: #140E20; }

/* Force section backgrounds to full width */
section.section-coral,
section.section-sky,
section.section-mint,
section.section-golden,
section.section-purple {
  max-width: 100%;
  padding-left: max(1.5rem, calc(50% - 460px));
  padding-right: max(1.5rem, calc(50% - 460px));
}
section.section-coral > *,
section.section-sky > *,
section.section-mint > *,
section.section-golden > *,
section.section-purple > * {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
section.section-coral > .section-title,
section.section-sky > .section-title,
section.section-mint > .section-title,
section.section-golden > .section-title,
section.section-purple > .section-title {
  display: block;
  left: 0;
  transform: none;
  text-align: center;
}
section.section-coral > .section-title:hover,
section.section-sky > .section-title:hover,
section.section-mint > .section-title:hover,
section.section-golden > .section-title:hover,
section.section-purple > .section-title:hover {
  transform: rotate(-1deg) scale(1.03);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.about-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform .2s;
}
.about-card:hover { transform: translateY(-4px); }
.about-quote p {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--coral);
  line-height: 1.4;
}
.monny-def h3 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.6rem;
  color: var(--golden);
  margin-bottom: .25rem;
}
.monny-expand { font-size: .9rem; color: var(--text-light); margin-bottom: .75rem; }
.monny-big { font-size: .8rem; color: var(--text-light); word-break: break-all; line-height: 1.5; }
.credits h3 { font-family: 'Fredoka One', sans-serif; font-size: 1.2rem; margin-bottom: .75rem; color: var(--coral); }
.credits-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem .75rem;
  font-size: .9rem;
}
.credits-grid span:nth-child(odd) { color: var(--text-light); }
.signature-text {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: .75rem;
}
.eli-sponsor { font-size: .85rem; color: var(--text-light); }

/* VIDEO EMBED */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  aspect-ratio: 16/9;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* TABS */
.tabs-container { display: flex; flex-direction: column; gap: .75rem; }
.tab-item { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--card-shadow); }
.tab-trigger {
  width: 100%;
  background: var(--card-bg);
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s;
  position: relative;
}
.tab-trigger::after {
  content: '▼';
  margin-left: auto;
  font-size: .75rem;
  opacity: .5;
  transition: transform .25s;
}
.tab-trigger.open::after { transform: rotate(180deg); }
.tab-trigger:hover { background: rgba(0,0,0,.04); }
[data-theme="dark"] .tab-trigger:hover { background: rgba(255,255,255,.06); }
.tab-hint { font-weight: 400; opacity: .6; font-size: .85rem; }
.tab-content {
  background: var(--card-bg);
  border-top: 2px solid var(--off-white);
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.tab-content.open {
  max-height: 800px;
  padding: 1.25rem;
}
.tab-content ol, .tab-content ul { padding-left: 1.5rem; }
.tab-content li { margin-bottom: .4rem; line-height: 1.5; }
.tab-content p { line-height: 1.6; margin-bottom: .5rem; }
.eli-tip {
  margin-top: 1rem;
  background: #FFFBEE;
  border-left: 4px solid var(--golden);
  padding: .6rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  font-size: .9rem;
}
[data-theme="dark"] .eli-tip { background: #2A250A; }

/* CHESS TIPS */
.chess-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tip-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--card-shadow);
  font-size: .9rem;
  line-height: 1.5;
  transition: transform .2s;
}
.tip-card:hover { transform: translateY(-3px); }

/* CHESS GAME */
.chess-game-area {
  text-align: center;
  margin-top: 2rem;
}
.chess-game-area h3 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.game-hint { color: var(--text-light); font-size: .9rem; margin-bottom: 1rem; }
.chess-board-wrap { display: inline-block; }
#chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(480px, 92vw);
  aspect-ratio: 1;
  border: 3px solid var(--text);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.chess-coords-files {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(480px, 92vw);
  margin-top: .25rem;
}
.chess-coords-files span {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-light);
}
.chess-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  transition: background .15s;
}
.chess-cell.light { background: #F0D9B5; }
.chess-cell.dark  { background: #B58863; }
.chess-cell.selected  { background: #F6F669 !important; }
.chess-cell.valid-move::after {
  content: '';
  position: absolute;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  pointer-events: none;
}
.chess-cell.valid-move.has-piece::after {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: none;
  border: 4px solid rgba(0,0,0,.3);
}
.chess-cell.last-move { background: rgba(255,215,0,.45) !important; }
.chess-cell.in-check  { background: rgba(255,50,50,.55) !important; }
.chess-piece {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  transition: transform .1s;
}
.white-piece { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.black-piece { filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.chess-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.chess-status {
  font-weight: 700;
  font-size: 1rem;
  padding: .5rem 1rem;
  background: var(--card-bg);
  border-radius: 2rem;
  box-shadow: var(--card-shadow);
}
.btn-secondary {
  background: var(--text);
  color: var(--card-bg);
  border: none;
  border-radius: 2rem;
  padding: .5rem 1.25rem;
  font-weight: 700;
  font-size: .9rem;
  transition: opacity .2s, transform .2s;
}
.btn-secondary:hover { opacity: .85; transform: scale(1.05); }
.captured-display {
  margin-top: .75rem;
  font-size: .85rem;
  min-height: 1.5rem;
  color: var(--text-light);
}

/* STEPS (Rubik's) */
.steps-list { display: flex; flex-direction: column; gap: .75rem; }

/* TIME MACHINE */
.time-machine-explanation {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.time-machine-explanation h3 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.4rem;
  color: var(--purple);
  margin-bottom: 1rem;
  letter-spacing: .05em;
}
.time-machine-explanation p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: .75rem;
}
.time-machine-fine-print {
  font-size: .8rem !important;
  color: var(--text-light);
  margin-top: 1rem !important;
}
.stopwatch-area { text-align: center; }
.stopwatch-display {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(3rem, 12vw, 6rem);
  color: var(--purple);
  letter-spacing: .05em;
  margin-bottom: .5rem;
  transition: color .3s, text-shadow .3s;
}
.stopwatch-display.running {
  color: var(--coral);
  text-shadow: 0 0 30px rgba(255,107,107,.4);
  animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(255,107,107,.3); }
  50%       { text-shadow: 0 0 50px rgba(255,107,107,.6); }
}
.time-status {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
  min-height: 1.5rem;
}
.stopwatch-controls { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn-sw {
  border: none;
  border-radius: 2rem;
  padding: .75rem 1.5rem;
  font-weight: 800;
  font-size: .95rem;
  transition: transform .15s, opacity .15s;
}
.btn-sw:hover { transform: scale(1.07); }
.btn-sw:active { transform: scale(.95); }
.btn-sw-green { background: var(--mint);   color: #064; }
.btn-sw-red   { background: var(--coral);  color: #fff; }
.btn-sw-gray  { background: #ddd;          color: #333; }
.btn-sw-blue  { background: var(--sky);    color: #036; }
.time-coords {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  max-height: 200px;
  overflow-y: auto;
}
.time-coord-entry {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: var(--card-shadow);
  color: var(--purple);
}

/* GAMES */
.game-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}
.game-panel h3 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.game-desc { color: var(--text-light); font-size: .95rem; margin-bottom: .75rem; }
.game-instructions {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
}
.game-ui-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: .95rem;
  font-weight: 600;
}
.btn-game {
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 2rem;
  padding: .5rem 1.25rem;
  font-weight: 800;
  font-size: .9rem;
  transition: transform .15s, opacity .15s;
}
.btn-game:hover { transform: scale(1.07); }
.mobile-capture { background: var(--golden); color: #333; }
canvas {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
}

/* LASSO */
.lasso-mode-btns { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.lasso-mode-btn {
  background: var(--off-white);
  border: 2px solid transparent;
  border-radius: 2rem;
  padding: .4rem 1rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-light);
  transition: all .2s;
}
.lasso-mode-btn.active { border-color: var(--coral); color: var(--coral); background: var(--card-bg); }
.lasso-question {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  color: var(--coral);
  min-height: 2.5rem;
  margin-bottom: .75rem;
  text-align: center;
}

/* COMMENTS */
.like-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.like-button {
  font-size: 2.5rem;
  background: none;
  border: none;
  transition: transform .15s;
  line-height: 1;
}
.like-button:hover { transform: scale(1.25); }
.like-button:active { transform: scale(.9); }
.like-count { font-weight: 800; font-size: 1.1rem; }
.comment-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.comment-form input,
.comment-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: .75rem 1rem;
  border: 2px solid rgba(0,0,0,.1);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text);
  transition: border-color .2s;
  resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--sky); }
.btn-submit {
  background: var(--sky);
  color: white;
  border: none;
  border-radius: 2rem;
  padding: .75rem 1.5rem;
  font-weight: 800;
  font-size: 1rem;
  transition: transform .15s, opacity .15s;
}
.btn-submit:hover { transform: scale(1.04); opacity: .9; }
.comments-list {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comment-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--card-shadow);
  position: relative;
}
.comment-name { font-weight: 800; font-size: .9rem; color: var(--coral); margin-bottom: .25rem; }
.comment-text { font-size: .95rem; line-height: 1.5; }
.comment-time { font-size: .75rem; color: var(--text-light); margin-top: .4rem; }
.no-comments { text-align: center; color: var(--text-light); font-size: .95rem; padding: 1rem 0; }

/* FOOTER */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--nav-bg);
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  line-height: 1.8;
}
.monny-footer { color: rgba(255,255,255,.35); font-size: .8rem; }

/* KBD */
kbd {
  display: inline-block;
  background: var(--card-bg);
  border: 2px solid rgba(0,0,0,.15);
  border-radius: 4px;
  padding: .1em .35em;
  font-size: .85em;
  font-family: monospace;
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}

/* LEGENDARY FLASH */
.legendary-flash {
  position: fixed;
  inset: 0;
  background: rgba(255, 215, 0, .5);
  pointer-events: none;
  z-index: 9960;
  animation: flash-out .8s ease-out forwards;
}
@keyframes flash-out {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-stats { flex-direction: column; align-items: center; }
  .chess-game-area h3 { font-size: 1.2rem; }
  .stopwatch-controls { gap: .5rem; }
  .btn-sw { padding: .6rem 1rem; font-size: .85rem; }
  .game-panel { padding: 1.25rem; }
  .about-grid { grid-template-columns: 1fr; }
  .chess-tips-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .chess-tips-grid { grid-template-columns: 1fr; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }
