:root {
  --wood-dark: #351a0c;
  --bamboo-light: #dec093;
  --tiki-sand: #eedcb3;
  --hibiscus-red: #ff3366;
  
  --font-exotic: 'Permanent Marker', cursive;
  --font-body: 'Comfortaa', cursive;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--wood-dark);
  background-image: radial-gradient(rgba(222, 192, 147, 0.08) 1.5px, transparent 1.5px);
  background-size: 25px 25px;
  color: #503114;
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tiki-container {
  width: 90%;
  max-width: 950px;
  padding: 40px 0;
}

/* Bamboo Header */
.tiki-header {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--bamboo-light);
}

.nav-back {
  color: var(--bamboo-light);
  text-decoration: none;
  font-size: 0.85rem;
  border: 2px solid var(--bamboo-light);
  padding: 4px 12px;
  border-radius: 4px;
}
.nav-back:hover {
  background: rgba(255,255,255,0.05);
}

.tiki-mask {
  font-size: 3.5rem;
  margin-top: 25px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.tiki-title {
  font-family: var(--font-exotic);
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin: 10px 0 0 0;
  letter-spacing: 2px;
  text-shadow: 4px 4px 0px #000;
  color: var(--bamboo-light);
}

.tiki-subtitle {
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  color: #a88d67;
  margin-top: 10px;
}

/* Bamboo grid cards */
.tiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 35px;
}

.tiki-card {
  background-color: var(--tiki-sand);
  border: 12px solid #8b5a2b; /* Bamboo wood color */
  border-image: repeating-linear-gradient(90deg, #8b5a2b, #8b5a2b 20px, #503114 20px, #503114 24px) 12;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  border-radius: 4px;
}

.tiki-card h2 {
  font-family: var(--font-exotic);
  font-size: 1.5rem;
  margin-top: 0;
  color: #8b5a2b;
}

.tiki-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mixology widget components */
.ingredient-buttons {
  display: flex;
  gap: 10px;
  justify-content: space-around;
  margin-bottom: 20px;
}

.ing-btn {
  font-family: var(--font-exotic);
  font-size: 0.75rem;
  border: 2px solid #503114;
  background: var(--wood-dark);
  color: #fff;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

.ing-btn:active {
  transform: scale(0.96);
}

.cocktail-glass {
  width: 70px;
  height: 110px;
  border: 4px solid #503114;
  border-top: none;
  border-radius: 0 0 10px 10px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.fluid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: #ffcc00;
  transition: height 0.4s ease, background-color 0.4s ease;
}

.reset-btn {
  width: 100%;
  font-family: var(--font-exotic);
  background: var(--hibiscus-red);
  color: #fff;
  border: 3px solid #503114;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 4px 0 #503114;
}

.reset-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #503114;
}

/* Glowing tiki lanterns */
.lanterns-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.lantern {
  font-size: 2.2rem;
  display: inline-block;
  animation: lantern-sway 3s infinite alternate ease-in-out;
  transform-origin: top center;
}

@keyframes lantern-sway {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

.red-lat { text-shadow: 0 0 15px rgba(255, 51, 102, 0.6); }
.green-lat { text-shadow: 0 0 15px rgba(51, 255, 102, 0.6); animation-delay: -1s; }
.blue-lat { text-shadow: 0 0 15px rgba(51, 102, 255, 0.6); animation-delay: -2s; }
