:root{
  --bg-1: #06243a;
  --bg-2: #041827;
  --card-bg: rgba(255,255,255,0.03);
  --text: #eaf6ff;
  --muted: rgba(234,246,255,0.7);
  --accent: #59c1ff;
  --max-w: 860px;
  --radius: 14px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Waterflow animated background */
body {
  font-family: 'Poppins', sans-serif;
  color: white;
  background: linear-gradient(270deg, #1c1c1c, #2a2a2a, #1c1c1c);
  background-size: 600% 600%;
  animation: waterflow 20s ease infinite;
  background-attachment: fixed;
  line-height: 1.6;
}
@media (max-width: 768px) {
  body { background-attachment: scroll; }
}
@keyframes waterflow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0; left: 0;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 1000;
}
.sidebar a {
  padding: 12px 25px;
  text-decoration: none;
  font-size: 18px;
  color: #ccc;
  display: block;
  transition: 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar.open { width: 250px; }

/* Hamburger */
.hamburger {
  position: fixed;
  top: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px;
  background: white;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Button + Choice Box hover animation (unified style) */
.btn,
.btn.primary,
.side {
  transition: transform 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255,255,255,0.06);
  outline: none;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
}

/* Hover + Active: slight lift + white outline */
.btn:hover,
.btn:focus,
.btn:active,
.btn.primary:hover,
.btn.primary:focus,
.btn.primary:active,
.side:hover,
.side:focus,
.side:active {
  transform: translateY(-5px);
  border-color: #ffffff;
}

/* Would You Rather specific */
*{box-sizing:border-box}
html,body{height:100%}
.app{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:36px 18px;
}
.header{ text-align:center; margin-top:18px }
.header h1{ margin:0; font-size: clamp(20px, 4vw, 32px) }
.subtitle{ color:var(--muted); margin-top:6px; font-size:14px }
.card{
  width:100%;
  max-width:var(--max-w);
  margin:18px 0;
  padding:18px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  /* subtle black shadow (not glowing) */
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.meta{ display:flex; justify-content:space-between; align-items:center }
#indexLabel{ color:var(--muted) }
.small{
  font-size:13px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.wyr-row{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:12px;
  background: rgba(255,255,255,0.01);
  min-height:120px;
  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}
.side{
  padding:14px;
  border-radius:10px;
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size: clamp(16px, 2.8vw, 20px);
  line-height:1.25;
  color:var(--text);
  user-select:none;
}
.or-divider{
  padding:10px 12px;
  border-radius:10px;
  font-weight:700;
  color:var(--muted);
  background: rgba(255,255,255,0.01);
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.controls{ display:flex; gap:12px; justify-content:center }
.btn{
  padding:10px 16px;
  border-radius:10px;
  background:transparent;
  min-width:110px;
}
.btn.primary{
  background: transparent;
  color:var(--text);
}
.site-footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: #ccc;
}

/* ✅ Mobile fix: Keep order as Left → OR → Right */
@media (max-width:700px){
  .wyr-row{ 
    grid-template-columns: 1fr; 
    gap:12px; 
  }
  .side.left { order: 1; }
  .or-divider { order: 2; margin:0 auto; width:64px; }
  .side.right { order: 3; }
  .side{ font-size:16px }
}