/* Spin Amsterdam — styles replicated 1:1 from the design file. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: #221C16; background: #E4D2AC; }

[hidden] { display: none !important; }

@keyframes crossPop {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(-10deg); }
  26%  { opacity: 1; transform: translate(-50%,-50%) scale(1.16) rotate(4deg); }
  55%  { opacity: 1; transform: translate(-50%,-50%) scale(.98) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.5) rotate(5deg); }
}
@keyframes sheetUp {
  0%   { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#confetti {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 60;
}

.stage {
  height: 100dvh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  background: radial-gradient(120% 90% at 50% -10%, #FBF3E1 0%, #F0E3C8 55%, #E4D2AC 100%);
}

.card {
  position: relative; width: 100%; max-width: 430px; height: 100%; max-height: 780px;
  display: flex; flex-direction: column;
  background: #FBF5E9; border: 1px solid #D9C28A; border-radius: 20px;
  padding: 20px 20px 18px; overflow: hidden;
  box-shadow: 0 0 0 6px #FBF5E9, 0 0 0 7px #E4CE97, 0 26px 60px -28px rgba(60,40,12,.55);
}

/* Language toggle */
.lang-toggle {
  position: absolute; top: 14px; left: 16px; z-index: 20;
  display: flex; background: #F1E6CC; border: 1px solid #E0CB94;
  border-radius: 30px; padding: 2px; gap: 2px;
}
.lang-toggle button {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .5px;
  padding: 5px 10px; border-radius: 30px; border: none; cursor: pointer;
  background: transparent; color: #9A7426;
}
.lang-toggle button.on { background: #BE1622; color: #FBF5E9; }

/* Header */
.header { text-align: center; flex: 0 0 auto; padding-top: 6px; }
.header h1 {
  font-family: 'Anton', sans-serif; font-weight: 400; color: #BE1622;
  font-size: 42px; line-height: .82; margin: 0; letter-spacing: 1px;
  text-shadow: 0 2px 0 #E4CE97;
}
.xxx-row { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 5px 0 2px; }
.rule { height: 1px; width: 26px; background: #D9C28A; }
.city { font-family: 'Anton', sans-serif; color: #221C16; font-size: 20px; letter-spacing: 5px; line-height: 1; }
.tagline {
  font-size: 12.5px; font-weight: 500; color: #6B5A41;
  margin: 9px 4px 0; line-height: 1.35; white-space: nowrap;
}

/* Filters */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 0; flex: 0 0 auto; }
.chip {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .3px;
  padding: 7px 14px; border-radius: 30px; cursor: pointer; transition: all .15s;
  background: #FBF5E9; color: #7A5A2E; border: 1.5px solid #E0CB94;
}
.chip.on {
  background: #BE1622; color: #FBF5E9; border-color: #BE1622;
  box-shadow: 0 4px 12px -4px rgba(190,22,34,.6);
}

/* Wheel */
.wheel-area { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px 0; }
.wheel-wrap { position: relative; height: 100%; aspect-ratio: 1/1; max-width: min(330px, 82vw); margin: 0 auto; }
.wheel-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cross {
  position: absolute; left: 50%; top: 50%; width: 54%;
  transform: translate(-50%,-50%) scale(.2); opacity: 0;
  pointer-events: none; z-index: 8;
  filter: drop-shadow(0 8px 16px rgba(120,10,18,.45));
}
.cross svg { width: 100%; height: auto; display: block; }

/* Spin button */
.spin-btn {
  flex: 0 0 auto; width: 100%; margin-top: 8px;
  font-family: 'Anton', sans-serif; font-size: 20px; letter-spacing: 1.5px;
  padding: 15px; border-radius: 14px; border: 2px solid #7E0E16;
  cursor: pointer; color: #FBF5E9;
  background: linear-gradient(#D11D2C, #A8121F);
  box-shadow: 0 5px 0 #7E0E16, 0 12px 22px -10px rgba(190,22,34,.7);
}
.spin-btn:disabled {
  background: #9A8C6E; border-color: #897B5D; opacity: .92;
  cursor: default; box-shadow: none;
}

/* Result overlay */
.overlay {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(34,24,12,.42); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end;
  animation: fadeIn .22s ease both;
}
.sheet {
  width: 100%;
  background: linear-gradient(#FFFDF7, #FBF2DE);
  border-top: 1px dashed #D9B85E;
  border-radius: 22px 22px 18px 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 -16px 40px -20px rgba(40,25,5,.6);
  animation: sheetUp .34s cubic-bezier(.2,.8,.3,1) both;
}
.grabber { width: 38px; height: 4px; border-radius: 4px; background: #E0CB94; margin: 0 auto 14px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.says { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #9A7426; }
.badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #FBF5E9; background: #BE1622; padding: 4px 11px; border-radius: 20px;
}
.sheet h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400; color: #221C16;
  font-size: 29px; line-height: 1.05; margin: 0 0 4px;
}
.hood { font-size: 12.5px; font-weight: 600; color: #A8842F; letter-spacing: .5px; margin-bottom: 8px; }
.blurb { font-size: 13.5px; line-height: 1.5; color: #5A4B36; margin: 0 0 16px; }
.actions { display: flex; gap: 9px; }
.maps {
  flex: 1; text-align: center; text-decoration: none;
  background: #221C16; color: #FBF5E9;
  font-weight: 700; font-size: 13.5px; letter-spacing: .4px;
  padding: 12px 10px; border-radius: 10px;
}
.maps:hover { background: #3a2f22; }
.again {
  flex: 1; background: #FBF5E9; color: #BE1622; border: 1.5px solid #E0CB94;
  font-weight: 700; font-size: 13.5px; letter-spacing: .4px;
  padding: 12px 10px; border-radius: 10px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.again:hover { background: #F4E9D2; }

/* Error toast (network / empty category) */
.toast {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 50; max-width: 85%;
  background: #221C16; color: #FBF5E9;
  font-size: 13px; font-weight: 500; line-height: 1.4; text-align: center;
  padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 10px 24px -10px rgba(40,25,5,.6);
  animation: fadeIn .2s ease both;
}
