/* ===== COCO menu theme — change colors here, all 3 pages update ===== */
:root {
  --bg-top: #2a2118;
  --bg-bottom: #0e0b08;
  --gold: #d4af6a;
  --text: #f5ecdc;
  --muted: #b9ad99;
}

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

body {
  min-height: 100vh;
  padding: 24px 16px 48px;
  background: radial-gradient(circle at top, var(--bg-top) 0%, var(--bg-bottom) 70%) fixed;
  color: var(--text);
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  text-align: center;
}

.topbar {
  max-width: 800px;
  margin: 0 auto 8px;
  text-align: left;
}

.back {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  background: rgba(212, 175, 106, 0.08);
  transition: background 0.2s, color 0.2s;
}
.back:hover, .back:focus-visible {
  background: var(--gold);
  color: #1a140d;
  outline: none;
}

.logo {
  display: block;
  margin: 8px auto 10px;
  width: 170px;
  max-width: 55%;
  height: auto;
}

h1 {
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 24px;
}

#menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 800px;
  margin: 0 auto;
}

#menu img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.03);
}

.empty {
  color: var(--muted);
  padding: 40px 10px;
  line-height: 1.6;
}

footer {
  margin-top: 40px;
  font-size: 0.8rem;
  color: #d4af6a;
}

/* ===== Tap-to-zoom viewer ===== */
#viewer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  z-index: 10;
  overflow: auto;
  padding: 12px;
  cursor: zoom-out;
}
#viewer.open { display: flex; }
#viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== Footer credit ===== */
footer .dev { margin-top: 6px; }
footer .dev a {
  color: #ff4d4d;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
footer .dev a:hover, footer .dev a:focus-visible { border-bottom-color: #ff4d4d; outline: none; }
