/* Mariachi Gamenca – Tüzes Fiesta és Varázslatos Ritmusok! Egyedi stílus */
@import url('https://fonts.googleapis.com/css2?family=Anton:wght@400&family=Montserrat:wght@400;700&display=swap');

:root {
  --item-height: 100px;
  --bordo: #5D1727;
  --orange: #EF6C00;
  --gold: #FFC107;
  --black: #212121;
  --red: #D32F2F;
  --white: #fffbe0;
}

body {
  background: linear-gradient(120deg, var(--bordo) 60%, var(--orange) 100%);
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#container {
  background: rgba(33, 18, 18, 0.93);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  padding: 44px 24px 32px 24px;
  box-shadow: 0 10px 32px rgba(93, 23, 39, 0.25), 0 0 0 4px var(--gold)11;
  border-radius: 2em;
  max-width: 600px;
  margin: 40px auto;
  border: 2.5px solid var(--gold);
}

.start-button {
  display: block;
  margin: 1.5em auto 0 auto;
  padding: 1.1em 3em;
  font-size: 1.6em;
  font-family: 'Anton', Arial, sans-serif;
  font-weight: bold;
  color: var(--black);
  background: linear-gradient(90deg, var(--gold) 60%, var(--red) 100%);
  border: none;
  border-radius: 1.7em;
  box-shadow: 0 4px 24px rgba(211, 47, 47, 0.22), 0 2px 8px var(--gold)22 inset;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  letter-spacing: 1px;
  animation: pulse 1.2s infinite alternate;
}
.start-button:hover,
.start-button:focus {
  background: linear-gradient(90deg, var(--red) 60%, var(--gold) 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 32px var(--red)33;
  outline: none;
}
.start-button[disabled] {
  background: #ccc !important;
  color: #888 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.7;
  pointer-events: none;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.scoreboard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 1.5em;
  font-size: 1.2em;
  background: rgba(255, 193, 7, 0.10);
  border-radius: 1.2em;
  padding: 1em 2em;
  box-shadow: 0 2px 12px var(--gold)22;
  color: var(--gold);
  font-weight: bold;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  gap: 0.2em;
  border: 1.5px solid var(--red);
}
.scoreboard-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1em;
}
.scoreboard-label {
  flex: 1 1 0;
  text-align: center;
  font-size: 1em;
  opacity: 0.95;
  color: var(--gold);
  font-family: 'Anton', Arial, sans-serif;
  text-shadow: 0 2px 8px #D32F2F33;
}
.scoreboard-value {
  flex: 1 1 0;
  text-align: center;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--gold);
}
.scoreboard input[type="number"] {
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1em;
  border-radius: 0.5em;
  border: 1.5px solid var(--gold);
  padding: 0.2em 0.5em;
  background: #fffbe0;
  color: var(--bordo);
  outline: none;
  transition: border 0.2s;
}
.scoreboard input[type="number"]:focus {
  border: 1.5px solid var(--red);
}

.window-border {
  padding: 7px;
  background-image: linear-gradient(90deg, var(--gold) 0%, var(--red) 100%);
  box-shadow: 0 6px 12px -5px var(--red)44 inset;
  border-radius: 1.2em;
  margin-bottom: 1.2em;
}
.window {
  position: relative;
  overflow: hidden;
  height: calc(3 * var(--item-height));
  background: linear-gradient(120deg, #fffbe0 60%, #EF6C00 100%);
  border-radius: 1em;
  box-shadow: 0 2px 12px var(--gold)22;
}
.window::before {
  content: "";
  clear: both;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-image: linear-gradient(to bottom, var(--red)33, transparent);
}
.window::after {
  content: "";
  clear: both;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-image: linear-gradient(to bottom, transparent, var(--red)33);
}

.outer-col {
  overflow-y: hidden;
  width: 100px;
  float: left;
  background-color: #fffbe0;
  background-image: linear-gradient(#fffbe0, #EF6C00, #fffbe0);
  height: calc(var(--item-height) * 3);
  border-radius: 0.7em;
  box-shadow: 0 0 8px var(--gold)22 inset;
}
.outer-spacer {
  width: 8px;
  height: 100%;
  float: left;
  border-right: 2px solid var(--gold)18;
  background-image: linear-gradient(var(--gold)11, var(--red)11);
}
.col {
  padding: 0 10px;
  will-change: true;
  transform: translateY(calc(-100% + var(--item-height) * 3));
}
.col img {
  width: 100%;
  height: auto;
  margin: 10px 0;
  position: relative;
  z-index: 3;
  border-radius: 0.5em;
  box-shadow: 0 2px 8px var(--red)22;
  background: #fffbe0;
  transition: box-shadow 0.3s, transform 0.3s;
}
.col img:hover {
  box-shadow: 0 8px 32px #FFC107cc, 0 2px 12px #D32F2F88;
  transform: scale(1.08) rotate(-2deg);
}

#container.spinning .col {
  animation-name: scroll;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(.65,.97,.72,1);
}
@keyframes scroll {
  to {
    transform: translateY(0);
  }
}

.win-description {
  min-height: 1.5em;
  text-align: center;
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 1em;
  transition: opacity 0.3s, color 0.2s;
  opacity: 1;
  color: var(--gold);
  font-family: 'Anton', Arial, sans-serif;
  text-shadow: 0 2px 8px #D32F2F33;
}
.win-description.win-fruit {
  color: #2ecc40;
}
.win-description.win-big {
  color: var(--gold);
  text-shadow: 0 2px 16px #FFC10799, 0 1px 4px #D32F2F55;
}
.win-description.win-none {
  color: #888;
}
.center-win {
  outline: 4px solid var(--gold);
  background: linear-gradient(90deg, #fffbe0 0%, #EF6C00 100%);
  border-radius: 0.7em;
  box-shadow: 0 0 16px 4px var(--gold)99;
  transition: outline 0.2s, background 0.2s;
  position: relative;
  z-index: 10;
}

@media (max-width: 600px) {
  :root {
    --item-height: 60px;
  }
  .outer-col {
    width: 70px;
    height: calc(var(--item-height) * 3);
  }
  .icon {
    width: 56px;
    height: var(--item-height);
  }
  .window {
    height: calc(3 * var(--item-height));
    min-width: 0;
    width: 400px;
    max-width: 99vw;
  }
  .window-border {
    padding: 2px;
  }
  #container {
    padding: 10px;
    min-width: 0;
    width: 99vw;
    max-width: 420px;
  }
  .scoreboard {
    font-size: 1em;
    padding: 0.3em 0.5em;
    gap: 0.5em;
    max-width: 400px;
  }
  .scoreboard input[type="number"] {
    font-size: 1em;
    width: 56px;
    padding: 0.1em 0.2em;
  }
}
@media (max-width: 400px) {
  :root {
    --item-height: 40px;
  }
  .outer-col {
    width: 44px;
    height: calc(var(--item-height) * 3);
  }
  .icon {
    width: 34px;
    height: var(--item-height);
  }
  .window {
    height: calc(3 * var(--item-height));
    min-width: 0;
    width: 260px;
    max-width: 99vw;
  }
  #container {
    padding: 4px;
    min-width: 0;
    width: 99vw;
    max-width: 270px;
  }
  .scoreboard {
    font-size: 0.95em;
    padding: 0.2em 0.2em;
    gap: 0.2em;
    max-width: 260px;
  }
  .scoreboard input[type="number"] {
    font-size: 0.95em;
    width: 38px;
    padding: 0.05em 0.1em;
  }
}
