/* ==========================================================================
   BLOODQWEEN — Bare-Bones structure2.png + Exact 10x8 use_this_frog.png &
   Unified 60fps Spring-Wave Tongue Physics
   ========================================================================== */

:root {
  --bg-outer: #7ec0f5;
  --sky-top: #5aa5e6;
  --sky-mid: #7ec0f5;
  --sky-low: #a8d8fa;
  --sky-horizon: #d4eeff;

  /* Exact Tongue Colors Extracted from use_this_frog.png (Row 5..7, Col 7..9) */
  --tongue-coral: #e37165;
  --tongue-coral-tip: #e46c65;
  --tongue-rose: #bd5760;

  /* One consistent colour for the tabs and the page */
  --page-color: #fdf3df;
  --tab-text-dark: #2a2320;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--sky-mid);
  background-image: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 36%,
    var(--sky-low) 72%,
    var(--sky-horizon) 100%
  );
  color: #222222;
  font-family: var(--font-sans);
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.pixel-canvas {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* ==========================================================================
   UNIFIED FROG + TONGUE + STAGE ASSEMBLY (12px Native Pixel Grid)
   - Full-viewport width & height (flush top, right, and bottom)
   - Left column has a sky background with crisp pixel-art clouds
   ========================================================================== */

.layout-assembly {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: stretch;
  position: relative;
}

.frog-left-column {
  width: 168px;
  position: relative;
  z-index: 20;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 36%,
    var(--sky-low) 72%,
    var(--sky-horizon) 100%
  );
}

/* Single Continuous Tongue Canvas spanning the entire left column
   Includes 20px top/bottom pad so upward/downward spring motion never clips */
.tongue-left-canvas {
  position: absolute;
  top: -20px;
  left: 0;
  width: 168px;
  height: calc(100% + 40px);
  pointer-events: none;
  z-index: 22;
}

/* Bottom-Left Stacked 10x8 Frogs (Exact Integer Pixel Scales & Flush Row Stacking) */
.frog-mascot-box {
  position: absolute;
  cursor: pointer;
  will-change: transform;
}

/* Bottom Frog #1: 12px per pixel -> 120x96px (bottom: 0..96px) */
.frog-stack-bottom {
  bottom: 0;
  left: 0;
  width: 120px;
  height: 96px;
  z-index: 23;
  transform-origin: 60px 96px;
}

/* Stacked frogs above the bottom frog: position, size and z-index are set by app.js */
.frog-stack-item {
  padding: 0;
}

/* Pixel smoke poof when a frog vanishes */
.poof-cloud {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 70;
  pointer-events: none;
}

.poof-pixel {
  position: absolute;
  left: 0;
  top: 0;
}

/* Top hat: a separate element that hops down onto whichever frog is on top */
.frog-top-hat {
  position: absolute;
  z-index: 60;
  pointer-events: none;
  transform-origin: 50% 100%;
}

.frog-top-hat canvas {
  width: 100%;
  height: 100%;
}

.frog-top-hat.hat-gliding {
  transition: left 300ms ease-in-out, bottom 300ms cubic-bezier(.5,0,.6,1.4), width 300ms ease, height 300ms ease;
}

/* ==========================================================================
   RIGHT COLUMN: TOP TONGUE TAB BAR + structure2.png STAGE
   ========================================================================== */

.stage-right-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

/* Top Row: 60px tall (5 native pixels at 12px scale) */
.tongue-top-bar-row {
  display: flex;
  align-items: stretch;
  height: 60px;
  position: relative;
  z-index: 18;
  transform-origin: left center;
  will-change: transform;
}

/* Horizontal Tongue Bar wrapping the 5 Tabs */
.tongue-tabs-sleeve {
  position: relative;
  flex: 1;
  background-color: var(--tongue-coral);
  border-top: 6px solid var(--tongue-coral);
  border-bottom: 6px solid var(--tongue-rose);
  border-right: 12px solid var(--tongue-coral);
  display: flex;
  align-items: stretch;
}

/* Seamless left and right tongue extensions so horizontal spring tug never exposes black space */
.tongue-tabs-sleeve::before,
.tongue-tabs-sleeve::after {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 28px;
  background-color: var(--tongue-coral);
  border-bottom: 6px solid var(--tongue-rose);
  pointer-events: none;
}

.tongue-tabs-sleeve::before {
  left: -28px;
}

.tongue-tabs-sleeve::after {
  right: -28px;
}

/* The 5 Tabs Inside the Tongue (Exact structure2.png order & styling) */
.tabs-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
  width: 100%;
  gap: 2px;
  background-color: rgba(42, 35, 32, 0.18);
}

.tab-item {
  background-color: var(--page-color);
  color: var(--tab-text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
  transition: filter 120ms ease, box-shadow 120ms ease;
}


.tab-item:hover {
  filter: brightness(0.97);
}

/* Active tab blends straight into its page */
.tab-item.active {
  font-weight: 800;
  box-shadow: none;
}

.tab-title {
  line-height: 1.1;
}

.tab-sub-contact {
  font-size: 0.68rem;
  color: rgba(42, 35, 32, 0.75);
  margin-top: 1px;
  line-height: 1;
}

/* ==========================================================================
   PAGE AREA BELOW THE TABS: one solid colour, nothing else
   ========================================================================== */

.page-stage {
  flex: 1;
  min-height: 0;
  background-color: var(--page-color);
}

