/* ============================
   PROFIT PLINKO – GAME STYLES
============================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --moss-green: #919B81;
  --reseda-green: #697867;
  --reseda-light: #7c8a76;
  --deep-reseda: #727E6F;
  --brown-sugar: #C4826C;
  --eggshell: #F0E8D7;
  --pale-white: #FCFBF9;
  --muted-green: #777F6C;
  --gold-accent: #D4AF37;

  --plinko-bg: #2b332b;
  --plinko-text: #F0E8D7;
  --plinko-accent: #D4AF37;
  --plinko-ui-bg: rgba(43, 51, 43, 0.85);
}

body {
  margin: 0;
  background: #1b1f1b;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

#plinko-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: var(--plinko-bg);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

#plinko-wrapper canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#bgCanvas { z-index: 1; }
#gameCanvas { z-index: 2; }

/* HUD */
.plinko-hud-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 10px;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.plinko-hud-row-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.plinko-stat-box {
  background: var(--plinko-ui-bg);
  border: 1px solid var(--moss-green);
  padding: 8px 4px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(4px);
  flex: 1;
}

.plinko-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--moss-green);
  text-transform: uppercase;
}

.plinko-big-text {
  font-size: 1.1rem;
  color: var(--eggshell);
  font-weight: 700;
}

#box-gold .plinko-big-text { color: var(--gold-accent); }

/* MENU */
#plinko-menu-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 51, 43, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s;
}

.plinko-menu-content {
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.plinko-menu-content h1 {
  color: var(--gold-accent);
  font-size: 2rem;
  margin-bottom: 15px;
}

.plinko-menu-content p {
  color: var(--eggshell);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.plinko-btn {
  background: var(--gold-accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.plinko-btn:hover {
  transform: translateY(-2px);
  background: #e5bd3d;
}

/* Flash effect */
#flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.1s;
}
