/* =========================================
   SHARED THEME: CORE & UI COMPONENTS
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@700&family=Roboto+Mono:wght@500&family=Rubik:wght@400;700;900&display=swap");

:root {
  /* Colors */
  --felt-green: #0d5f38;
  --felt-dark: #062f1b;
  --tile-face: #fdf6e3;
  --tile-back: #2e8b57;

  --neon-blue: #00f3ff;
  --neon-pink: #ff0055;
  --neon-gold: #ffd700;
  --neon-orange: #ff4500;

  --shadow-light: #ccc;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  font-family: "Rubik", sans-serif;
  color: white;
  background: radial-gradient(
    circle at center,
    var(--felt-green),
    var(--felt-dark)
  );
  overflow: hidden;
  touch-action: none;
}

h1 {
  font-size: 1.2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin: 0;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

/* =========================================
   SHARED UI: MENU BUTTONS
   ========================================= */

/* Container for vertical button lists */
.menu-view {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 320px;
  align-items: center;
  transition: opacity 0.3s ease;
}

/* 1. Big Yellow Start Button */
.start-screen-btn {
  width: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffd700, #ffc107);
  color: #4a3b00;
  box-shadow: 0 6px 0 #c69500, 0 10px 10px rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  font-family: "Rubik", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.start-screen-btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #c69500, inset 0 2px 5px rgba(0, 0, 0, 0.2);
}
.start-screen-btn:hover {
  transform: translateY(-2px);
  background: #ffe032;
}

/* 2. Secondary White/Grey Button */
.start-screen-btn.secondary {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  color: var(--felt-dark);
  box-shadow: 0 6px 0 #bbb, 0 10px 10px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
}
.start-screen-btn.secondary:active {
  box-shadow: 0 0 0 #bbb, inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 3. Pink Action Button (PLAY) */
.start-screen-btn.pink {
  background: linear-gradient(145deg, var(--neon-pink), #d00045);
  color: white;
  box-shadow: 0 6px 0 #a60037, 0 10px 10px rgba(0, 0, 0, 0.3);
}
.start-screen-btn.pink:active {
  box-shadow: 0 0 0 #a60037, inset 0 2px 5px rgba(0, 0, 0, 0.2);
}
.start-screen-btn.pink:hover {
  background: #ff1a6b;
}

/* 4. Pill-Shaped Back Button */
.back-btn {
  margin-top: 15px;
  padding: 12px 40px;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  color: white;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.back-btn:active {
  transform: translateY(1px);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* =========================================
   SHARED UI: FORM ELEMENTS (Dropdowns)
   ========================================= */

select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 10px;

  /* Glassmorphism Background */
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);

  /* Neon Borders */
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;

  /* Typography */
  color: white;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  font-weight: 500;

  /* Remove default OS arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;

  /* Custom Arrow Icon */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

select:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.8);
}

select:focus {
  border-color: var(--neon-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* THE DROPDOWN LIST (Fixes the ugly white box) */
option {
  background-color: #1a1a1a;
  color: white;
  padding: 10px;
  font-family: "Rubik", sans-serif;
}
