*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #f0d060;
  --glow: rgba(240, 208, 96, 0.6);
}

body {
  background: #0a0a0f;
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  cursor: default;
}

/* Top title bar */
.title-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  text-align: center;
  padding: 18px 0 12px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  pointer-events: none;
}

.title-bar h1 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: var(--accent);
  letter-spacing: 0.3em;
  text-shadow: 0 0 30px var(--glow), 0 0 60px rgba(240, 208, 96, 0.3);
}

.title-bar p {
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Main panels container */
.panels {
  display: flex;
  flex: 1;
  width: 100%;
}

.panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.panel:last-child {
  border-right: none;
}

/* Background image */
.panel-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  filter: brightness(0.55) saturate(0.8);
}

/* Color overlay per panel */
.panel-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  transition: opacity 0.4s ease;
  mix-blend-mode: color;
}

/* Gradient bottom fade */
.panel-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
}

/* Top gradient fade */
.panel-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

/* Vertical line accent */
.panel-line {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease, height 0.4s ease;
}

/* Name label */
.panel-name {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.panel-name h2 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(0.7rem, 1.5vw, 1.3rem);
  color: #fff;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.4s ease;
  transform: translateY(6px);
}

.panel-name span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* Hover state on panel itself */
.panel:hover {
  flex: 2.5;
}

.panel:hover .panel-img {
  transform: scale(1.06);
  filter: brightness(0.85) saturate(1.2);
}

.panel:hover .panel-overlay {
  opacity: 0.6;
}

.panel:hover .panel-name h2 {
  color: var(--accent);
  text-shadow: 0 0 20px var(--glow), 0 0 40px var(--glow);
  transform: translateY(0);
}

.panel:hover .panel-name span {
  color: rgba(240, 208, 96, 0.6);
}

.panel:hover .panel-line {
  opacity: 1;
  height: 55px;
}

/* Edge highlight on hover */
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.panel:hover::before {
  border-color: rgba(240, 208, 96, 0.2);
  box-shadow: inset 0 0 60px rgba(240, 208, 96, 0.05);
}

/* Panel-specific colors */
.panel:nth-child(1) .panel-overlay {
  background: #ff6b8a;
}

.panel:nth-child(2) .panel-overlay {
  background: #6be0ff;
}

.panel:nth-child(3) .panel-overlay {
  background: #a8ff78;
}

.panel:nth-child(4) .panel-overlay {
  background: #ff9f6b;
}

.panel:nth-child(5) .panel-overlay {
  background: #c96bff;
}

/* Number tag */
.panel-number {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel Decorative', cursive;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
}

.panel:hover .panel-number {
  color: rgba(240, 208, 96, 0.5);
}

/* Click ripple hint */
.click-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0);
  text-transform: uppercase;
  transition: color 0.4s ease;
  white-space: nowrap;
}

.panel:hover .click-hint {
  color: rgba(255, 255, 255, 0.3);
}

/* Diamond accent */
.diamond {
  position: absolute;
  top: 115px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover .diamond {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.footer {
  font-size: 18px;
  color: #7e828a !important;
  text-align: center;
  padding: 15px 0;
  background: transparent; /* important */
}

.footer a {
  color: #7e828a !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: #9aa0a8; /* keep same color on hover if you want no shift */
}