/* No No Banana's page, in the game's own design language: its palette and Fredoka
   lettering, the coral sunburst its menu sits on, the round carnival stage (butter
   rim, plum ring, drop-step shadow, twinkling bulbs), and its thick-outlined
   buttons that sink when pressed. Values are the game's own. */

:root {
  --ink: #6b5570;
  --cream: #fff7ec;
  --room: #fdf0dc;
  --butter: #ffe3ae;
  --coral: #f9a495;
  --mint: #aee0d7;
  --stage: min(84vw, 420px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; background: var(--room); }

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--room);
  /* the menu's sunburst, under the play screen's diagonal stripes */
  background-image:
    repeating-linear-gradient(46deg, rgba(249, 164, 149, 0.09) 0 22px, rgba(255, 247, 236, 0) 22px 44px),
    repeating-conic-gradient(from -9deg at 50% 38%, rgba(249, 164, 149, 0.22) 0deg 13deg, rgba(255, 247, 236, 0.22) 13deg 26deg);
  font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

.nnb {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 40px 16px 24px;
  text-align: center;
}

/* ── the round stage ── */
.nnb-stage {
  position: relative;
  width: var(--stage);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 9px solid var(--butter);
  box-shadow: 0 0 0 5px var(--ink), 0 10px 0 5px rgba(107, 85, 112, 0.25), inset 0 0 40px rgba(180, 120, 60, 0.12);
  background: var(--cream);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.nnb-sunburst {
  position: absolute; inset: -12%;
  background: repeating-conic-gradient(from -9deg, var(--coral) 0deg 13deg, var(--cream) 13deg 26deg);
  opacity: 0.75;
  animation: spin 90s linear infinite;
}
.nnb-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 250, 240, 0.97) 40%, rgba(255, 247, 236, 0.6) 60%, rgba(255, 247, 236, 0) 78%);
}
.nnb-title {
  position: relative;
  margin: 0;
  font-weight: 700;
  font-size: calc(var(--stage) * 0.15);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 0 0 10px rgba(255, 247, 236, 0.95), 0 5px 0 rgba(107, 85, 112, 0.22);
}

/* twenty bulbs round the rim, twinkling out of step */
.nnb-bulbs { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.nnb-bulbs i {
  position: absolute;
  width: 11px; height: 11px;
  margin: -5.5px;
  border-radius: 50%;
  background: #fff3c4;
  box-shadow: 0 0 7px rgba(255, 214, 120, 0.95);
  transform: rotate(calc(var(--i) * 18deg)) translateY(calc(var(--stage) / -2 + 22px));
  animation: twinkle 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.55s);
}

/* ── status and the way back ── */
.nnb-pill {
  margin: 0;
  padding: 2px 16px;
  background: var(--butter);
  border: 4px solid var(--ink);
  border-radius: 999px;
  font-size: clamp(1.125rem, 4.4vw, 1.375rem);
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 4px 0 rgba(107, 85, 112, 0.28);
}

.nnb-button {
  margin-top: 6px;
  min-width: min(100%, 260px);
  padding: 12px 22px;
  border: 5px solid var(--ink);
  border-radius: 24px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.125rem, 4.4vw, 1.375rem);
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(107, 85, 112, 0.5);
}
.nnb-button::before { content: "‹"; margin-right: 0.45em; }
.nnb-button:hover { background: var(--butter); }
/* sinks when pressed, as the game's buttons do */
.nnb-button:active { transform: translateY(6px); box-shadow: none; }
.nnb-button:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }

.nnb-footer { padding: 0 16px 24px; text-align: center; }
.nnb-footer p { margin: 0; font-size: 0.9375rem; font-weight: 600; opacity: 0.8; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .nnb-sunburst, .nnb-bulbs i { animation: none; }
}
