/* MMCup — deliberately kitsch, straight out of the 2010 web: glossy
   gradients, bevels, Lobster and Comic Sans, floating logo wallpaper.
   The competition is the 2026 edition; only the styling is a period piece. */

:root {
  --ink: #12224a;
  --sky-top: #6fc3ff;
  --sky-bottom: #1b3fa0;
  --gold: #ffd230;
  --gold-deep: #e09a06;
  --grass: #46c94a;
  --grass-deep: #1c7a2a;
  --hot: #ff2d8d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  padding: 0 0 40px;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  color: var(--ink);
  background-color: #2a5ecb;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0 14px,
      rgba(255, 255, 255, 0) 14px 28px
    ),
    radial-gradient(120% 90% at 50% 0%, #8fd6ff 0%, #3f7ede 45%, #16307e 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---------- decorative wallpaper ---------- */

.decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floaty {
  position: absolute;
  width: 118px;
  height: auto;
  opacity: 0.55;
  border-radius: 12px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  animation: bob 7s ease-in-out infinite;
}

.f1 { top: 8%; left: 3%; animation-delay: -0.4s; }
.f2 { top: 58%; left: 1%; width: 132px; animation-delay: -2.1s; }
.f3 { top: 26%; right: 4%; animation-delay: -1.2s; }
.f4 { top: 70%; right: 2%; width: 104px; animation-delay: -3.3s; }
.f5 { top: 4%; right: 22%; width: 86px; animation-delay: -1.8s; }
.f6 { bottom: 4%; left: 28%; width: 92px; animation-delay: -2.7s; }
.f7 { bottom: 8%; right: 24%; width: 120px; animation-delay: -0.9s; }

/* The one team that matters gets the slow hero spin. */
.f8 {
  top: 40%;
  left: 50%;
  width: 190px;
  margin-left: -95px;
  opacity: 0.16;
  animation: spin 24s linear infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sparkle {
  position: absolute;
  color: #fff8bd;
  font-size: 26px;
  text-shadow: 0 0 10px #ffe75e, 0 0 22px #ffbf00;
  animation: twinkle 2.4s ease-in-out infinite;
}

.s1 { top: 18%; left: 24%; animation-delay: -0.2s; }
.s2 { top: 34%; right: 18%; font-size: 34px; animation-delay: -1.1s; }
.s3 { bottom: 22%; left: 16%; font-size: 20px; animation-delay: -1.7s; }
.s4 { bottom: 34%; right: 30%; animation-delay: -0.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ---------- scrolling banner ---------- */

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 3px solid #0c2a6d;
  background: linear-gradient(#ffe86b, var(--gold) 45%, var(--gold-deep));
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.2);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 26s linear infinite;
}

.ticker span {
  padding: 7px 28px;
  font-family: "Comic Sans MS", "Chalkboard SE", "Segoe Print", cursive;
  font-size: 14px;
  font-weight: bold;
  color: #6b3a00;
  white-space: nowrap;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- guide dog button ---------- */

.guide-dog {
  position: fixed;
  top: 52px;
  right: 16px;
  z-index: 6;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 16px 9px 12px;
  border: 2px solid #0c2a6d;
  border-radius: 999px;
  background: linear-gradient(#ffffff, #dbe9ff 48%, #a8c6f4);
  box-shadow: 0 4px 0 #0c2a6d, 0 8px 16px rgba(0, 0, 0, 0.35);
  color: #12224a;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.guide-dog:hover {
  background: linear-gradient(#ffffff, #eef5ff 48%, #c3daff);
}

.guide-dog:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0c2a6d, 0 4px 10px rgba(0, 0, 0, 0.35);
}

.guide-dog svg {
  width: 22px;
  height: 22px;
  fill: #12224a;
}

/* ---------- main stage ---------- */

.stage {
  position: relative;
  z-index: 3;
  max-width: 660px;
  margin: 0 auto;
  padding: 26px 16px 0;
  text-align: center;
}

.kicker {
  margin: 0 0 6px;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 15px;
  font-weight: bold;
  color: #fff3b0;
  text-shadow: 0 2px 0 #b14b00, 0 0 14px rgba(255, 210, 48, 0.8);
}

.title {
  margin: 0;
  font-family: "Luckiest Guy", "Lobster", Impact, "Arial Black", sans-serif;
  font-size: clamp(30px, 8vw, 58px);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  transform: rotate(-1.6deg);
  text-shadow:
    3px 3px 0 #0c2a6d,
    -2px -2px 0 #0c2a6d,
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(120, 220, 255, 0.85);
}

.subtitle {
  margin: 14px auto 22px;
  max-width: 30rem;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 15px;
  color: #eaf4ff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ---------- glossy panel ---------- */

.panel {
  position: relative;
  padding: 26px 22px 20px;
  border: 3px solid #0c2a6d;
  border-radius: 22px;
  background: linear-gradient(#ffffff, #f2f7ff 44%, #d9e7ff);
  box-shadow:
    inset 0 2px 0 #ffffff,
    inset 0 -18px 26px rgba(120, 160, 220, 0.3),
    0 10px 0 #0c2a6d,
    0 18px 34px rgba(0, 0, 0, 0.45);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 6px 6px auto 6px;
  height: 42%;
  border-radius: 16px 16px 60% 60% / 16px 16px 26px 26px;
  background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.sticker {
  position: absolute;
  top: -16px;
  left: -14px;
  padding: 9px 12px;
  border: 2px solid #7c0030;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8ec0, var(--hot) 60%, #c2005e);
  color: #fff;
  font-family: "Luckiest Guy", Impact, sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  transform: rotate(-16deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.field-label {
  position: relative;
  display: block;
  margin-bottom: 9px;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 14px;
  font-weight: bold;
  color: #123a86;
}

.field {
  position: relative;
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 3px inset #9fb8de;
  border-radius: 10px;
  background: #fffef7;
  box-shadow: inset 0 3px 7px rgba(60, 90, 140, 0.35);
  color: #0b2b6b;
  font-family: "Courier New", Courier, monospace;
  font-size: 21px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
}

.field:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.field::placeholder {
  color: #9aa9c4;
  font-weight: normal;
  letter-spacing: 1px;
}

.hint {
  position: relative;
  min-height: 20px;
  margin: 10px 0 4px;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 13px;
  font-weight: bold;
  color: #c2005e;
  text-shadow: 0 1px 0 #fff;
}

.hint.blink {
  animation: blink 0.55s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.vote-button {
  position: relative;
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border: 3px solid #0d5a17;
  border-radius: 14px;
  background: linear-gradient(#b6f58a, var(--grass) 48%, var(--grass-deep));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 6px 0 #0d5a17,
    0 12px 20px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: "Luckiest Guy", Impact, "Arial Black", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #0d5a17;
  text-transform: uppercase;
  cursor: pointer;
}

.vote-button:hover {
  filter: brightness(1.07);
}

.vote-button:active {
  transform: translateY(4px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 2px 0 #0d5a17;
}

.fineprint {
  position: relative;
  margin: 14px 0 0;
  font-size: 11px;
  color: #4a5f86;
}

/* ---------- counter and footer ---------- */

.counter {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 22px auto 0;
  padding: 7px 12px;
  border: 2px solid #0c2a6d;
  border-radius: 8px;
  background: linear-gradient(#1b2b52, #0a1430);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
}

.counter-label {
  color: #8fb6ff;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.counter-digits {
  padding: 3px 8px;
  border-radius: 4px;
  background: #04122e;
  color: #5dff9b;
  font-family: "Courier New", Courier, monospace;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 4px;
  text-shadow: 0 0 9px #2bff7d;
}

.footer {
  margin: 26px 0 0;
}

.badge {
  display: inline-block;
  margin: 4px 3px;
  padding: 5px 10px;
  border: 2px solid #0c2a6d;
  border-radius: 6px;
  background: linear-gradient(#fff, #cfe0ff);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.copyright {
  margin: 12px 0 0;
  color: #d6e6ff;
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .floaty {
    width: 76px;
    opacity: 0.32;
  }
  .f2, .f4, .f7 { width: 82px; }
  .f8 { width: 150px; margin-left: -75px; }
  .guide-dog {
    top: 46px;
    right: 10px;
    padding: 7px 13px 7px 10px;
    font-size: 13px;
  }
  .stage { padding-top: 64px; }
  .field { font-size: 18px; letter-spacing: 1px; }
}

/* ---------- verdict modal ---------- */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 40, 0.85);
}

.modal-box {
  position: relative;
  width: min(900px, 100%);
  overflow: hidden;
  border: 4px solid #0c2a6d;
  border-radius: 18px;
  background: linear-gradient(#ffffff, #dde9ff);
  box-shadow: 0 10px 0 #0c2a6d, 0 24px 50px rgba(0, 0, 0, 0.6);
}

.modal-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 9px 14px;
  border-bottom: 3px solid #0c2a6d;
  background: linear-gradient(#ffe86b, var(--gold) 45%, var(--gold-deep));
}

.modal-title {
  font-family: "Luckiest Guy", Impact, "Arial Black", sans-serif;
  font-size: clamp(15px, 3.4vw, 21px);
  letter-spacing: 1px;
  color: #6b3a00;
  text-transform: uppercase;
}

.modal-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 2px solid #7c0030;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8ec0, var(--hot) 60%, #c2005e);
  box-shadow: 0 3px 0 #7c0030;
  color: #fff;
  font-family: Verdana, sans-serif;
  font-size: 19px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

.modal-close:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #7c0030;
}

.modal-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.modal-foot {
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
  color: #4a5f86;
  text-align: center;
}

.modal-unmute {
  padding: 5px 12px;
  border: 2px solid #0d5a17;
  border-radius: 999px;
  background: linear-gradient(#b6f58a, var(--grass) 48%, var(--grass-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 0 #0d5a17;
  color: #fff;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #0d5a17;
  cursor: pointer;
}

.modal-unmute[hidden] {
  display: none;
}

.modal-unmute:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 0 #0d5a17;
}

/* ---------- language switch ---------- */

.lang-switch {
  position: fixed;
  top: 52px;
  left: 16px;
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 2px solid #0c2a6d;
  border-radius: 999px;
  background: linear-gradient(#ffffff, #dbe9ff 48%, #a8c6f4);
  box-shadow: 0 4px 0 #0c2a6d, 0 8px 16px rgba(0, 0, 0, 0.35);
}

.lang-button {
  padding: 5px 11px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #34528c;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.lang-button:hover {
  color: #12224a;
}

.lang-button.is-active {
  border-color: #0d5a17;
  background: linear-gradient(#b6f58a, var(--grass) 48%, var(--grass-deep));
  color: #fff;
  text-shadow: 1px 1px 0 #0d5a17;
}

@media (max-width: 720px) {
  .lang-switch {
    top: 46px;
    left: 10px;
    padding: 3px;
  }

  .lang-button {
    padding: 4px 9px;
    font-size: 12px;
  }
}
