@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Special+Elite&display=swap');

:root {
  --gold: #d4a843;
  --gold-light: #f0d080;
  --gold-dark: #a07830;
  --heaven-blue: #2a1a4e;
  --heaven-dark: #1a0a2e;
  --heaven-glow: #4a2a7e;
  --ceramic-white: #f5f0e8;
  --ceramic-cream: #e8e0d0;
  --ceramic-off: #d8d0c0;
  --crack-light: #c8b898;
  --crack-dark: #8a7a5a;
  --hr-red: #c0392b;
  --divine-gold: #f1c40f;
  --escalate-purple: #9b59b6;
  --trash-gray: #7f8c8d;
  --correct-green: #27ae60;
  --wrong-red: #e74c3c;
  --font-header: 'Cinzel', serif;
  --font-body: 'Special Elite', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--heaven-dark);
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

canvas {
  display: block;
  width: 100%; height: 100%;
  cursor: pointer;
}

#ui-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}

.corner-btn {
  position: fixed;
  top: 12px;
  width: 40px; height: 40px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  background: rgba(26, 10, 46, 0.7);
  color: var(--gold);
  font-size: 20px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 20;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.corner-btn:hover {
  background: rgba(212, 168, 67, 0.3);
  transform: scale(1.1);
}

.corner-btn:active {
  transform: scale(0.95);
}

#sg-fs-btn {
  position: fixed; top: 8px; right: 8px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 2px solid var(--gold); border-radius: 6px;
  background: rgba(0,0,0,.45); color: var(--gold);
  cursor: pointer; pointer-events: auto; z-index: 20;
  transition: background 0.2s, transform 0.2s;
}
#sg-fs-btn:hover { background: rgba(212, 168, 67, 0.3); transform: scale(1.1); }
#sg-fs-btn:active { transform: scale(0.95); }

#mute-btn {
  right: 40px;
}

#mobile-controls {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 15;
}

.corner-btn,
#mobile-controls * {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .corner-btn {
    width: 36px; height: 36px;
    font-size: 16px;
    top: 8px;
  }
  #sg-fs-btn {
    top: 8px; right: 8px;
    width: 26px; height: 26px;
  }
  #mute-btn { right: 40px; }
}
