/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ROOT */
.arc-root {
  min-height: 100vh;
  background: radial-gradient(circle at top, #3A1C7A 0%, #1B0E3A 40%, #0A0414 100%);
  color: #F8F5FF;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: 10px;
}

/* HEADER BOX */
.world-header-box {
  background: linear-gradient(180deg, #2A155A, #3A1C7A);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #F4D57E;
  text-align: center;
  margin-bottom: 6px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(194, 123, 255, 0.4);
  z-index: 20;
}

/* TANUKI HOST — occupies upper 2/3 */
.tanuki-host {
  position: relative;
  width: 100%;
  height: 66vh; /* upper 2/3 */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.tanuki-img {
  width: 100%;
  height: auto;
  max-width: none;
  margin-top: -3vh;
  pointer-events: none;
  animation: tanuki-breathe 4.5s ease-in-out infinite;
}

/* ---------------------------------------------------------
   REFORGED COMPACT VERTICAL MENU — LOWER 1/3
--------------------------------------------------------- */

#worldMenu {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 34vh; /* bottom 1/3 */
  padding: 12px 0 22px 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.55) 100%
  );
}

/* Magical PurpleTanuki buttons */
.worldTab {
  width: 88%;
  margin: 0 auto;
  padding: 10px 0;

  text-align: center;

  background: linear-gradient(180deg, #0D071A, #1B0E3A);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;

  color: #EBD7FF;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;

  box-shadow:
    0 4px 10px rgba(0,0,0,0.45),
    0 0 10px rgba(194,123,255,0.35);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Subtitle */
.worldTab span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  margin-top: 2px;
}

/* Tap feedback */
.worldTab:active {
  transform: scale(0.97);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.5),
    0 0 12px rgba(194,123,255,0.55);
}

/* PARENT BUTTON */
.parent-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5C3BFF, #C27BFF);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(194, 123, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 50;
}

/* ANIMATIONS */
@keyframes tanuki-breathe {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-4px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes sparkle-drift {
  0%   { transform: translate3d(0, 0, 0); opacity: 1; }
  100% { transform: translate3d(0, -20px, 0); opacity: 0; }
}

