@font-face {
  font-family: 'Boogaloo';
  src: url('./fonts/Boogaloo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #f3e1b9;
  --sun: #f6c453;
  --orange: #f08b2f;
  --red: #d24b2a;
  --dark: #1b1b1b;
  --panel: rgba(16, 16, 16, 0.78);
}

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

body {
  font-family: 'Boogaloo', 'Trebuchet MS', sans-serif;
  color: var(--sand);
  background: url('./img_pollo_locco/img/9_intro_outro_screens/start/startscreen_1.png') center/cover no-repeat fixed;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 16px 40px;
  gap: 24px;
}

.hero {
  max-width: 820px;
  width: 100%;
  background: var(--panel);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--sun);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero p {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: #fff2d5;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  font-family: inherit;
  font-size: 1.1rem;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff7e1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn.primary {
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-color: rgba(255, 255, 255, 0.4);
}

.btn.ghost {
  background: transparent;
  color: var(--sand);
}

#game-area {
  display: flex;
  justify-content: center;
  position: relative;
}

canvas {
  background-color: black;
  border-radius: 18px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.landing-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 18px;
}

.landing-overlay.hidden {
  display: none;
}

.landing-card {
  max-width: 520px;
  width: 90%;
  background: rgba(16, 16, 16, 0.82);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  color: #fff2d5;
  backdrop-filter: blur(4px);
}

.landing-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--sun);
  margin-bottom: 6px;
}

.landing-card p {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.end-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 18px;
}

.end-overlay.hidden {
  display: none;
}

.end-card {
  max-width: 520px;
  width: 90%;
  background: rgba(16, 16, 16, 0.9);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  color: #fff2d5;
  backdrop-filter: blur(4px);
}

.end-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--sun);
  margin-bottom: 6px;
}

.end-card p {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.rotate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 18px;
  z-index: 6;
}

.rotate-overlay.hidden {
  display: none;
}

.rotate-card {
  max-width: 420px;
  width: 86%;
  background: rgba(16, 16, 16, 0.9);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  color: #fff2d5;
}

.rotate-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--sun);
  margin-bottom: 6px;
}

.rotate-card p {
  font-size: 1.1rem;
}

.mobile-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  padding: 0 16px;
  display: none;
  justify-content: space-between;
  gap: 12px;
  z-index: 5;
}

.mobile-controls-row {
  display: flex;
  gap: 12px;
}

.mobile-btn {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.6);
  color: #fff3d6;
  font-size: 1.6rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

.mobile-btn:active {
  transform: translateY(1px) scale(0.98);
}

.mute-toggle {
  font-family: inherit;
}

.mute-floating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 7;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: rgba(20, 20, 20, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 20px 22px;
  max-width: 720px;
  width: 100%;
  color: #fff3d6;
  position: relative;
}

.modal-card h2 {
  color: var(--sun);
  margin-bottom: 10px;
  font-size: 2rem;
}

.modal-card ul {
  margin-left: 18px;
  margin-top: 8px;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #fff0cf;
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-content {
  font-size: 1.1rem;
}

.modal-content address {
  font-style: normal;
  margin: 8px 0;
}
