* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #140b3c;
  --bg-2: #21144f;
  --steel: #43484c;
  --red: #d12615;
  --red-hot: #f04432;
  --cyan: #35f2d0;
  --gold: #facc15;
  --ink: #132026;
  --white: #f8fafc;
  --muted: rgba(248, 250, 252, 0.72);
  --panel: rgba(20, 11, 60, 0.72);
  --line: rgba(255, 255, 255, 0.22);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(209, 38, 21, 0.34), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-2) 52%, var(--steel) 100%);
  color: var(--white);
  font-family: Arial, sans-serif;
}

button,
input {
  border-radius: 8px;
  font: inherit;
  letter-spacing: 0;
}

button {
  min-height: 48px;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 18px;
}

.button-link {
  align-items: center;
  background: var(--red);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  width: fit-content;
}

button:hover:not(:disabled) {
  background: var(--red-hot);
}

.button-link:hover {
  background: var(--red-hot);
}

button:disabled {
  cursor: default;
  opacity: 0.5;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.resolution-title,
.round-pill {
  font-family: "Bebas Neue", Impact, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.9;
}

.brand-title {
  line-height: 0;
}

.brand-title img {
  display: block;
  height: auto;
  max-width: min(360px, 58vw);
  width: 100%;
}

h2 {
  font-size: clamp(34px, 6vw, 74px);
  line-height: 0.95;
}

h3 {
  font-size: 18px;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

header.site-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  padding: 28px 0 16px;
}

.eyebrow {
  color: #ffb7ad;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tab {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  padding: 10px 14px;
}

.tab.active {
  background: #fff;
  color: var(--ink);
}

.tab-panel {
  display: none;
  padding: 24px 0 48px;
}

.tab-panel.active {
  display: block;
}

.intro-grid,
.contact-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
}

.copy-block {
  display: grid;
  gap: 14px;
}

.copy-block.compact {
  max-width: 760px;
  margin-bottom: 22px;
}

.feature-strip,
.info-band,
.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.feature-strip {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.feature-strip span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.about-media {
  display: grid;
  gap: 14px;
}

.video-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 10px;
  margin: 0;
  overflow: hidden;
  padding: 12px;
}

.video-frame video {
  aspect-ratio: 16 / 9;
  background: #101820;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.video-frame figcaption {
  color: rgba(248, 250, 252, 0.72);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.info-band {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  padding: 18px;
}

.info-band.four {
  grid-template-columns: repeat(4, 1fr);
}

.info-band article {
  display: grid;
  gap: 8px;
}

.vision-flow {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.vision-flow article {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.demo-top {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 12px;
}

.round-pill {
  display: flex;
  gap: 8px;
  font-size: 24px;
}

.round-pill span {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
}

.tutorial-bar {
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
  text-align: center;
}

.tutorial-bar strong {
  display: none;
}

.tutorial-bar span {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  max-width: 980px;
}

.how-to-play {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 12px;
}

.how-to-play article {
  display: grid;
  gap: 4px;
}

.how-to-play strong {
  color: var(--cyan);
}

.how-to-play span,
.genre-ribbon p {
  color: rgba(248, 250, 252, 0.78);
  font-size: 14px;
  line-height: 1.35;
}

.genre-ribbon {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding-top: 10px;
}

.genre-ribbon p {
  text-align: center;
  white-space: nowrap;
}

.genre-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.genre-group:first-child {
  justify-content: flex-start;
}

.genre-group:last-child {
  justify-content: flex-end;
}

.genre-group img {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  height: 42px;
  min-width: 0;
  object-fit: contain;
  padding: 6px;
  width: min(118px, 22vw);
}

.round-screen,
.resolution-screen {
  min-height: 62vh;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.play-controls {
  display: flex;
  justify-content: center;
}

.start-panel {
  display: grid;
  min-height: 280px;
  gap: 18px;
  place-items: center;
}

.demo-context-card {
  background:
    linear-gradient(135deg, rgba(53, 242, 208, 0.12), rgba(250, 204, 21, 0.08)),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(53, 242, 208, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 10px;
  max-width: 900px;
  padding: clamp(18px, 3vw, 30px);
  text-align: center;
}

.demo-context-card h3,
.social-results-note h3 {
  color: var(--white);
  font-family: "Bebas Neue", Impact, Arial, sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.demo-context-card p:not(.eyebrow),
.social-results-note p:not(.eyebrow) {
  color: rgba(248, 250, 252, 0.84);
  max-width: 780px;
}

.start-panel button {
  font-family: "Bebas Neue", Impact, Arial, sans-serif;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 400;
  min-height: 82px;
  padding: 14px 34px;
  text-transform: uppercase;
}

.now-playing {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.now-playing strong {
  color: var(--cyan);
  text-align: center;
}

.playbar {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  height: 18px;
  overflow: hidden;
}

.playbar span {
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  display: block;
  height: 100%;
  transition: width 0.1s linear;
  width: 0;
}

audio {
  width: 100%;
}

.slots {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(92px, 126px));
  justify-content: center;
}

.slot-wrap {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.slot-number {
  background: #f8fafc;
  border-radius: 999px;
  color: var(--ink);
  display: grid;
  font-weight: 800;
  height: 34px;
  place-items: center;
  width: 34px;
}

.slot {
  aspect-ratio: 0.735;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  width: clamp(92px, 13vh, 126px);
}

.slot-disabled {
  border-color: rgba(255, 255, 255, 0.18);
  filter: grayscale(0.35);
  opacity: 0.38;
}

.slot-active {
  opacity: 1;
}

.slot-current {
  border-color: var(--cyan);
  box-shadow:
    0 0 0 3px rgba(53, 242, 208, 0.14),
    0 0 24px rgba(53, 242, 208, 0.72);
}

.slot-bounce {
  animation: slotBounce 0.34s ease-in-out 2;
}

@keyframes slotBounce {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.slot .cassette {
  align-self: stretch;
  border-width: 2px;
  height: 100%;
  justify-self: stretch;
  width: 100%;
}

.slot.over {
  outline: 3px solid var(--cyan);
}

.hand {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.hand.locked .cassette {
  cursor: default;
  opacity: 0.78;
}

.turn-two-notice {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(53, 242, 208, 0.16), rgba(250, 204, 21, 0.1)),
    rgba(0, 0, 0, 0.32);
  border: 2px solid rgba(53, 242, 208, 0.48);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0 auto;
  max-width: 820px;
  min-height: 300px;
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
  width: min(100%, 820px);
}

.turn-two-notice h3 {
  color: var(--white);
  font-family: "Bebas Neue", Impact, Arial, sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.turn-two-notice p:not(.eyebrow) {
  color: rgba(248, 250, 252, 0.88);
  font-size: clamp(18px, 2.4vw, 24px);
  max-width: 680px;
}

.cassette {
  aspect-ratio: 0.735;
  background: #302b86;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  cursor: grab;
  display: grid;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

.cassette img {
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  width: 100%;
}

.choice-card {
  cursor: pointer;
}

.choice-card:disabled {
  cursor: default;
  opacity: 0.82;
}

.card-cover,
.card-overlay {
  grid-area: 1 / 1;
}

.card-overlay {
  position: relative;
  z-index: 2;
}

.cassette.dragging {
  cursor: grabbing;
  opacity: 0.72;
  transform: scale(0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.cassette.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(53, 242, 208, 0.76);
}

.cassette-placeholder {
  aspect-ratio: 0.735;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  min-height: 0;
}

.cassette.c2 {
  background: #991919;
}

.cassette.c3 {
  background: #16851e;
}

.cassette.c4 {
  background: #8f7e10;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.secondary-action {
  background: #334155;
}

.status-line {
  min-height: 26px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.resolution-screen {
  justify-items: center;
}

.resolution-title {
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.9;
}

.resolution-score {
  color: var(--gold);
  font-family: "Bebas Neue", Impact, Arial, sans-serif;
  font-size: clamp(32px, 6vw, 70px);
}

.resolution-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.social-results-note {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  max-width: 900px;
  padding: clamp(16px, 3vw, 24px);
  text-align: center;
}

.resolution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.legend-item {
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  min-width: 112px;
  padding: 10px 12px;
  text-align: center;
}

.legend-item.correct {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
}

.legend-item.wrong {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
}

.resolution-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 92px repeat(4, minmax(92px, 150px));
  justify-content: center;
  width: 100%;
}

.resolution-header,
.resolution-turn-label {
  background: #f8fafc;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  font-weight: 800;
  min-height: 42px;
  place-items: center;
  text-align: center;
}

.resolution-turn-label {
  min-height: 128px;
}

.resolution-card {
  aspect-ratio: 0.735;
  background: #f8fafc;
  border: 4px solid transparent;
  border-radius: 8px;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
}

.resolution-card.correct {
  border-color: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
}

.resolution-card.wrong {
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
}

.resolution-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.song-modal {
  align-items: center;
  background: rgba(8, 6, 26, 0.82);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 300;
}

.song-modal-panel {
  background:
    linear-gradient(135deg, rgba(53, 242, 208, 0.12), rgba(250, 204, 21, 0.08)),
    #160f3c;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, 380px) minmax(220px, 360px);
  max-height: min(92vh, 860px);
  max-width: min(94vw, 860px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  position: relative;
}

.modal-close {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 28px;
  height: 44px;
  line-height: 1;
  min-height: 44px;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
}

.song-modal-image {
  aspect-ratio: 0.735;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.song-modal-info {
  align-content: center;
  display: grid;
  gap: 14px;
  padding-right: 28px;
}

.song-modal-info h2 {
  font-size: clamp(38px, 6vw, 72px);
}

.platform-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.platform-button {
  border-radius: 8px;
  color: #fff;
  display: grid;
  font-weight: 900;
  min-height: 52px;
  place-items: center;
  text-decoration: none;
}

.platform-button.spotify {
  background: #1db954;
  color: #06160b;
}

.platform-button.spotify:hover {
  background: #23d463;
}

.platform-button.youtube {
  background: #ff0033;
}

.platform-button.youtube:hover {
  background: #ff244f;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  align-items: center;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  text-decoration: none;
  width: fit-content;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 18px rgba(53, 242, 208, 0.28);
}

.discord-link {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.56);
}

.discord-link:hover {
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.42);
}

.instagram-icon {
  border: 2px solid currentColor;
  border-radius: 8px;
  display: inline-block;
  height: 24px;
  position: relative;
  width: 24px;
}

.instagram-icon::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
}

.instagram-icon::after {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 4px;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 4px;
}

.discord-icon {
  background: #5865f2;
  border-radius: 50%;
  display: inline-block;
  height: 24px;
  position: relative;
  width: 24px;
}

.discord-icon::before,
.discord-icon::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 4px;
  position: absolute;
  top: 10px;
  width: 4px;
}

.discord-icon::before {
  left: 7px;
}

.discord-icon::after {
  right: 7px;
}

.contact-form label {
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

.contact-form input {
  min-height: 48px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
}

.success-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.success-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  max-width: 720px;
  padding: clamp(24px, 5vw, 44px);
}

@media (max-width: 900px) {
  header.site-shell,
  .intro-grid,
  .contact-layout,
  .info-band,
  .info-band.four {
    grid-template-columns: 1fr;
  }

  .tabs {
    justify-content: flex-start;
  }

  .how-to-play {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hand {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .slots {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
  }

  .genre-ribbon {
    gap: 8px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .genre-ribbon p {
    white-space: normal;
  }

  .genre-group {
    justify-content: center;
  }

  .genre-group img {
    height: 30px;
    width: clamp(44px, 12vw, 64px);
  }

  .resolution-grid {
    grid-template-columns: 70px repeat(4, minmax(62px, 1fr));
  }

  .resolution-turn-label {
    min-height: 92px;
  }

  .song-modal-panel {
    grid-template-columns: 1fr;
    max-width: min(94vw, 520px);
  }

  .song-modal-image {
    justify-self: center;
    max-width: 320px;
  }

  .song-modal-info {
    padding-right: 0;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .tab {
    flex: 1 1 calc(50% - 8px);
    padding-left: 8px;
    padding-right: 8px;
  }

  .hand {
    grid-template-columns: 1fr 1fr;
  }

  .slots {
    grid-template-columns: repeat(4, minmax(62px, 1fr));
  }

  .demo-top {
    align-items: stretch;
    flex-direction: column;
  }

  .how-to-play {
    grid-template-columns: 1fr;
  }

  .slot {
    width: clamp(62px, 20vw, 92px);
  }

  .turn-two-notice {
    min-height: 260px;
  }

  .genre-group {
    gap: 4px;
  }

  .genre-group img {
    height: 28px;
    padding: 4px;
    width: clamp(40px, 11.5vw, 54px);
  }

  .song-modal {
    padding: 12px;
  }

  .song-modal-panel {
    gap: 14px;
    padding: 16px;
  }

  .song-modal-image {
    max-width: 230px;
  }

}
