:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202124;
  background: #fff8e3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.4;
  background:
    linear-gradient(180deg, #fff8e3 0%, #fffdf6 42%, #f5efe0 100%);
}

.intro-effect {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  pointer-events: none;
  animation: intro-fade 5s ease both;
}

.intro-ball {
  position: absolute;
  top: 55%;
  left: 50%;
  font-size: 74px;
  line-height: 1;
  filter: drop-shadow(0 18px 22px rgba(23, 32, 29, 0.25));
  transform: translate(-50%, 36vh) rotate(-28deg) scale(0.45);
  animation: ball-kick 4.45s cubic-bezier(0.18, 0.92, 0.28, 1.08) both;
}

.intro-spark {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 11px;
  height: 28px;
  border-radius: 999px;
  background: #f7c948;
  opacity: 0;
  box-shadow: 0 0 18px currentColor;
  transform: translate(-50%, -50%) scale(0.2);
  animation: spark-pop 2.65s ease-out var(--delay, 1.05s) both;
}

.intro-rocket {
  position: absolute;
  left: var(--start-x);
  bottom: -90px;
  width: 4px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(to top, transparent, var(--rocket-color), #fff);
  opacity: 0;
  transform: rotate(var(--rocket-rotate)) translate3d(0, 0, 0);
  transform-origin: 50% 0;
  animation: rocket-flight 2.25s ease-out var(--rocket-delay) both;
}

.intro-rocket::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 14px var(--rocket-color),
    0 0 28px var(--rocket-color);
  transform: translateX(-50%);
}

.intro-rocket::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rocket-color);
  box-shadow:
    0 -36px 0 2px #fff,
    26px -26px 0 1px var(--rocket-color),
    38px 0 0 2px #f7c948,
    26px 26px 0 1px var(--rocket-color),
    0 38px 0 2px #fff,
    -26px 26px 0 1px #bd263e,
    -38px 0 0 2px var(--rocket-color),
    -26px -26px 0 1px #0f7b46;
  filter: drop-shadow(0 0 12px var(--rocket-color));
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
  animation: rocket-bloom 1.05s ease-out calc(var(--rocket-delay) + 1.18s) both;
}

.rocket-1 {
  --start-x: 15%;
  --rocket-x: 18vw;
  --rocket-y: -76vh;
  --rocket-rotate: -22deg;
  --rocket-delay: 0.35s;
  --rocket-color: #f7c948;
}

.rocket-2 {
  --start-x: 86%;
  --rocket-x: -20vw;
  --rocket-y: -70vh;
  --rocket-rotate: 24deg;
  --rocket-delay: 0.75s;
  --rocket-color: #bd263e;
}

.rocket-3 {
  --start-x: 35%;
  --rocket-x: -12vw;
  --rocket-y: -80vh;
  --rocket-rotate: 10deg;
  --rocket-delay: 1.15s;
  --rocket-color: #0f7b46;
}

.rocket-4 {
  --start-x: 66%;
  --rocket-x: 10vw;
  --rocket-y: -78vh;
  --rocket-rotate: -12deg;
  --rocket-delay: 1.55s;
  --rocket-color: #f7c948;
}

.rocket-5 {
  --start-x: 50%;
  --rocket-x: 0;
  --rocket-y: -86vh;
  --rocket-rotate: 0deg;
  --rocket-delay: 1.95s;
  --rocket-color: #bd263e;
}

.spark-1 { --x: -108px; --y: -70px; --r: -34deg; --delay: 0.75s; color: #f7c948; background: currentColor; }
.spark-2 { --x: -64px; --y: -124px; --r: 22deg; --delay: 0.84s; color: #bd263e; background: currentColor; }
.spark-3 { --x: 6px; --y: -142px; --r: -6deg; --delay: 0.92s; color: #0f7b46; background: currentColor; }
.spark-4 { --x: 86px; --y: -100px; --r: 38deg; --delay: 1s; color: #f7c948; background: currentColor; }
.spark-5 { --x: 118px; --y: -24px; --r: -42deg; --delay: 1.08s; color: #bd263e; background: currentColor; }
.spark-6 { --x: 72px; --y: 46px; --r: 18deg; --delay: 1.16s; color: #0f7b46; background: currentColor; }
.spark-7 { --x: -8px; --y: 78px; --r: -18deg; --delay: 1.24s; color: #f7c948; background: currentColor; }
.spark-8 { --x: -92px; --y: 28px; --r: 48deg; --delay: 1.32s; color: #bd263e; background: currentColor; }
.spark-9 { --x: -165px; --y: -128px; --r: 56deg; --delay: 1.08s; color: #0f7b46; background: currentColor; }
.spark-10 { --x: -24px; --y: -206px; --r: -44deg; --delay: 1.16s; color: #f7c948; background: currentColor; }
.spark-11 { --x: 154px; --y: -150px; --r: 28deg; --delay: 1.24s; color: #bd263e; background: currentColor; }
.spark-12 { --x: 190px; --y: 16px; --r: -26deg; --delay: 1.32s; color: #0f7b46; background: currentColor; }
.spark-13 { --x: 108px; --y: 124px; --r: 52deg; --delay: 1.4s; color: #f7c948; background: currentColor; }
.spark-14 { --x: -82px; --y: 140px; --r: -52deg; --delay: 1.48s; color: #bd263e; background: currentColor; }
.spark-15 { --x: -176px; --y: 54px; --r: 16deg; --delay: 1.56s; color: #0f7b46; background: currentColor; }
.spark-16 { --x: -142px; --y: -6px; --r: -16deg; --delay: 1.64s; color: #f7c948; background: currentColor; }
.spark-17 { --x: -226px; --y: -62px; --r: 34deg; --delay: 1.36s; color: #bd263e; background: currentColor; }
.spark-18 { --x: -118px; --y: -210px; --r: -24deg; --delay: 1.44s; color: #0f7b46; background: currentColor; }
.spark-19 { --x: 76px; --y: -218px; --r: 18deg; --delay: 1.52s; color: #f7c948; background: currentColor; }
.spark-20 { --x: 224px; --y: -76px; --r: -48deg; --delay: 1.6s; color: #bd263e; background: currentColor; }
.spark-21 { --x: 218px; --y: 96px; --r: 36deg; --delay: 1.68s; color: #0f7b46; background: currentColor; }
.spark-22 { --x: 34px; --y: 198px; --r: -38deg; --delay: 1.76s; color: #f7c948; background: currentColor; }
.spark-23 { --x: -158px; --y: 156px; --r: 22deg; --delay: 1.84s; color: #bd263e; background: currentColor; }
.spark-24 { --x: -236px; --y: 22px; --r: -28deg; --delay: 1.92s; color: #0f7b46; background: currentColor; }
.spark-25 { --x: -42px; --y: -92px; --r: 64deg; --delay: 2s; color: #f7c948; background: currentColor; }
.spark-26 { --x: 42px; --y: -88px; --r: -64deg; --delay: 2.08s; color: #bd263e; background: currentColor; }
.spark-27 { --x: 132px; --y: -42px; --r: 12deg; --delay: 2.16s; color: #0f7b46; background: currentColor; }
.spark-28 { --x: 126px; --y: 72px; --r: -12deg; --delay: 2.24s; color: #f7c948; background: currentColor; }
.spark-29 { --x: 0; --y: 128px; --r: 44deg; --delay: 2.32s; color: #bd263e; background: currentColor; }
.spark-30 { --x: -126px; --y: 74px; --r: -44deg; --delay: 2.4s; color: #0f7b46; background: currentColor; }
.spark-31 { --x: -132px; --y: -44px; --r: 26deg; --delay: 2.48s; color: #f7c948; background: currentColor; }
.spark-32 { --x: 0; --y: -162px; --r: -26deg; --delay: 2.56s; color: #bd263e; background: currentColor; }

@keyframes intro-fade {
  0%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ball-kick {
  0% {
    opacity: 0;
    transform: translate(-50%, 36vh) rotate(-28deg) scale(0.45);
  }
  22% {
    opacity: 1;
  }
  58% {
    opacity: 1;
    transform: translate(-50%, -34px) rotate(390deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -150px) rotate(720deg) scale(0.64);
  }
}

@keyframes spark-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(0.05);
  }
}

@keyframes rocket-flight {
  0% {
    opacity: 0;
    transform: rotate(var(--rocket-rotate)) translate3d(0, 0, 0) scaleY(0.65);
  }
  16% {
    opacity: 1;
  }
  68% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--rocket-rotate)) translate3d(var(--rocket-x), var(--rocket-y), 0) scaleY(0.2);
  }
}

@keyframes rocket-bloom {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.15) rotate(0deg);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.35) rotate(55deg);
  }
}

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

.loris-hand-burst {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
}

.heart {
  position: absolute;
  top: var(--origin-y);
  left: var(--origin-x);
  color: #e4002b;
  font-size: var(--heart-size);
  line-height: 1;
  text-shadow: 0 10px 22px rgba(158, 0, 38, 0.22);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  animation: heart-float 2.85s cubic-bezier(0.16, 0.84, 0.32, 1) var(--heart-delay) both;
}

.heart:nth-child(3n) {
  color: #ff335f;
}

.heart:nth-child(4n) {
  color: #b9002f;
}

.heart:nth-child(5n) {
  color: #ff6f91;
}

@keyframes heart-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25) rotate(0deg);
  }
  16% {
    opacity: 1;
  }
  72% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--heart-x)), calc(-50% + var(--heart-y)))
      scale(1.05)
      rotate(var(--heart-rotation));
  }
}

.loris-hand {
  position: absolute;
  top: var(--origin-y);
  left: var(--origin-x);
  font-size: var(--hand-size);
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.18) rotate(0deg);
  filter: drop-shadow(0 14px 22px rgba(23, 32, 29, 0.24));
  animation: loris-hand-pop 2.45s cubic-bezier(0.17, 0.9, 0.2, 1) var(--hand-delay) both;
}

@keyframes loris-hand-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.32) rotate(var(--hand-rotation));
  }
  46% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--hand-mid-x)), calc(-50% + var(--hand-mid-y)))
      scale(1.06)
      rotate(var(--hand-rotation));
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--hand-x)), calc(-50% + var(--hand-y)))
      scale(0.82)
      rotate(calc(var(--hand-rotation) * -1));
  }
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
}

label {
  display: block;
  margin: 14px 0;
  font-weight: 800;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dfd0a8;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  padding: 12px 13px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4f5d58 50%),
    linear-gradient(135deg, #4f5d58 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px;
  padding-right: 42px;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #202124;
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  padding: 12px 15px;
}

button:hover {
  background: #3c4043;
}

.login-view,
.panel,
.hero {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(166, 124, 0, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(128, 88, 0, 0.08);
}

.login-view {
  max-width: 460px;
  margin: 8vh auto 0;
  padding: 26px;
}

.login-view h1 {
  font-size: 42px;
}

.login-form {
  margin-top: 22px;
}

.login-message {
  min-height: 22px;
  margin: 12px 0 0;
  font-weight: 850;
}

.password-panel {
  border-color: rgba(189, 38, 62, 0.2);
  background: #fffaf0;
}

.password-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.password-form label {
  margin: 0;
}

.password-form input {
  display: block;
  width: 100%;
  margin-top: 7px;
}

.login-form input,
.login-form select,
.login-form button {
  display: block;
  width: 100%;
  margin-top: 7px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #202124;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #fbbc04;
  color: #202124;
  font-size: 14px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-bar strong {
  display: inline-block;
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  box-shadow: 0 8px 20px rgba(128, 88, 0, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(251, 188, 4, 0.96), rgba(255, 232, 128, 0.92) 48%, rgba(255, 255, 255, 0.94)),
    #fbbc04;
  color: #202124;
}

.hero .muted {
  color: rgba(32, 33, 36, 0.72);
}

.eyebrow {
  margin-bottom: 8px;
  color: #bd263e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8a1f2d;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(105px, 1fr));
  gap: 10px;
}

.stat-card {
  min-width: 112px;
  border: 1px solid rgba(166, 124, 0, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  padding: 13px;
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  font-size: 25px;
  line-height: 1;
}

.stat-card span {
  margin-top: 5px;
  color: rgba(32, 33, 36, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.panel {
  padding: 22px;
  margin-bottom: 18px;
}

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

.section-heading > p,
.section-heading .muted {
  margin-bottom: 0;
}

.collapsible-panel {
  padding: 0;
}

.collapsible-panel > summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
  padding: 22px;
}

.collapsible-panel > summary::-webkit-details-marker {
  display: none;
}

.collapsible-panel > summary::after {
  content: "anzeigen";
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff0b8;
  color: #5f4b00;
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
}

.collapsible-panel[open] > summary {
  border-bottom: 1px solid #eee2c6;
  margin-bottom: 0;
}

.collapsible-panel[open] > summary::after {
  content: "zuklappen";
  background: #202124;
  color: #fff;
}

.knockout-panel {
  margin-bottom: 18px;
}

.knockout-overview {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
}

.knockout-track {
  display: grid;
  grid-auto-columns: minmax(250px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  min-width: min-content;
}

.knockout-stage {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid #e6d8b4;
  border-radius: 12px;
  background: #fffdf6;
}

.knockout-stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eee2c6;
  background: #fff8dc;
  padding: 10px 12px;
}

.knockout-stage-heading strong {
  font-size: 14px;
}

.knockout-stage-heading span {
  color: #6d6251;
  font-size: 12px;
  font-weight: 900;
}

.knockout-stage-list {
  display: grid;
}

.knockout-match {
  display: grid;
  width: 100%;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #f0e1bd;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  padding: 10px 11px;
  text-align: left;
}

.knockout-match:last-child {
  border-bottom: 0;
}

button.knockout-match {
  cursor: pointer;
}

button.knockout-match:hover,
button.knockout-match:focus-visible {
  background: #fff7da;
  box-shadow: inset 0 0 0 2px rgba(251, 188, 4, 0.32);
}

.knockout-match.is-open {
  background: #fffaf0;
}

.knockout-match.is-final {
  background: #fffdf5;
}

.knockout-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6d6251;
  font-size: 12px;
  font-weight: 850;
}

.knockout-status {
  flex: 0 0 auto;
  border-radius: 6px;
  background: #f1f3f4;
  color: #5f6368;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.knockout-status.is-open {
  background: #e7f6ee;
  color: #0f7b46;
}

.knockout-status.is-final {
  background: #202124;
  color: #fff;
}

.knockout-status.is-live {
  background: #fff0b8;
  color: #5f4b00;
}

.knockout-teams {
  display: grid;
  gap: 4px;
}

.knockout-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.knockout-team-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.knockout-placeholder-flag {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px dashed #d9c58e;
  border-radius: 50%;
  background: #fff8dc;
}

.knockout-team-label {
  display: grid;
  min-width: 0;
}

.knockout-team-label strong {
  overflow: hidden;
  color: #202124;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knockout-team-label small {
  overflow: hidden;
  color: #6d6251;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knockout-team-score {
  min-width: 26px;
  color: #202124;
  font-size: 14px;
  text-align: right;
}

.knockout-location {
  overflow: hidden;
  color: #6d6251;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #e6d8b4;
  border-radius: 12px;
  background: #fff;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.quick-nav-button {
  min-height: 38px;
  border: 1px solid #d9c58e;
  border-radius: 6px;
  background: #fff8dc;
  color: #202124;
  padding: 8px 12px;
  font-size: 13px;
}

.quick-nav-button:hover {
  background: #fbbc04;
}

.focus-group {
  display: grid;
}

.focus-group + .focus-group {
  border-top: 2px solid #e6d8b4;
}

.focus-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff8dc;
  border-bottom: 1px solid #eee2c6;
  padding: 10px 12px;
}

.focus-group-heading strong {
  font-size: 14px;
}

.focus-group-heading span,
.focus-group-note {
  color: #6d6251;
  font-size: 12px;
  font-weight: 850;
}

.focus-group-note {
  margin: 0;
  border-bottom: 1px solid #f3e8ca;
  background: #fffdf6;
  padding: 8px 12px;
}

.focus-group-list {
  display: grid;
}

.focus-match {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(210px, 280px);
  min-height: 116px;
  border: 0;
  border-bottom: 1px solid #eee2c6;
  border-radius: 0;
  background: #fff;
  cursor: default;
  outline: none;
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.focus-match:last-child {
  border-bottom: 0;
}

.focus-match:hover,
.focus-match:focus-visible {
  background: #fff7da;
  box-shadow: inset 0 0 0 2px rgba(251, 188, 4, 0.32);
}

.focus-match.is-final {
  background: #fffdf5;
}

.focus-match.is-locked:not(.is-final) {
  background: #fbf8ef;
}

.focus-datecell,
.focus-time,
.focus-body,
.focus-team-table,
.focus-team-line,
.focus-team-name,
.focus-meta,
.focus-actions,
.focus-tip-line,
.focus-prediction-form {
  min-width: 0;
}

.focus-datecell {
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid #eee2c6;
  background: #fff8dc;
  padding: 12px;
}

.focus-time strong,
.focus-time span {
  display: block;
}

.focus-time strong {
  font-size: 13px;
}

.focus-time span {
  color: #6d6251;
  font-size: 12px;
  font-weight: 900;
}

.focus-datecell .status-badge {
  max-width: 100%;
  justify-content: center;
  text-align: center;
}

.focus-body {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 11px 12px;
}

.focus-team-table {
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: #fffaf0;
  padding: 7px 9px;
}

.focus-team-line {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.focus-team-name {
  display: grid;
  min-width: 0;
}

.focus-team-name strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-team-name span {
  overflow: hidden;
  color: #6d6251;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-team-score {
  border-radius: 7px;
  background: #202124;
  color: #fff;
  min-width: 34px;
  padding: 4px 6px;
  font-size: 13px;
  text-align: center;
}

.focus-meta {
  display: grid;
  gap: 2px;
  color: #6d6251;
  font-size: 12px;
}

.focus-meta strong {
  color: #202124;
  font-size: 12px;
}

.focus-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-actions {
  display: grid;
  align-content: center;
  gap: 8px;
  border-left: 1px solid #eee2c6;
  background: #fffdf6;
  padding: 11px 12px;
}

.focus-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff0b8;
  color: #202124;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 9px;
  text-decoration: none;
}

.focus-jump:hover {
  background: #fbbc04;
}

.focus-tip-line,
.focus-prediction-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.focus-tip-line {
  justify-content: space-between;
}

.focus-tips {
  display: grid;
  gap: 6px;
}

.focus-tip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.focus-tip-chip {
  border: 1px solid #eadbb9;
  border-radius: 6px;
  background: #fff;
  padding: 5px 7px;
  color: #202124;
  font-size: 12px;
  font-weight: 850;
}

.focus-tip-chip.is-own {
  border-color: rgba(251, 188, 4, 0.7);
  background: #fff4bd;
}

.focus-match .score-input {
  width: 44px;
  min-height: 36px;
  padding: 7px 5px;
}

.focus-match button {
  min-height: 36px;
  background: #8a1f2d;
  padding: 7px 10px;
}

.focus-match button:hover {
  background: #6f1824;
}

.tournament-panel {
  background:
    linear-gradient(180deg, rgba(251, 188, 4, 0.1), rgba(255, 255, 255, 0.96)),
    #fff;
}

.group-standings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 10px;
}

.group-standing-card {
  overflow: hidden;
  border: 1px solid #eadbb9;
  border-radius: 8px;
  background: #fff;
}

.group-standing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #efe1bf;
  background: #fff6d9;
  padding: 10px 11px;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.group-table th,
.group-table td {
  border-bottom: 1px solid #f0e5ca;
  padding: 9px 8px;
  text-align: right;
}

.group-table th:last-child,
.group-table td:last-child {
  width: 78px;
}

.group-table th:first-child,
.group-table td:first-child {
  text-align: left;
}

.group-table th {
  color: #6d6251;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.group-table th:last-child {
  color: #202124;
}

.group-table tbody tr:last-child td {
  border-bottom: 0;
}

.group-table tbody tr:nth-child(-n + 2) {
  background: #fffdf6;
}

.group-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.group-rank {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #202124;
  color: #fff;
  font-size: 11px;
}

.group-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-points {
  display: inline-grid;
  min-width: 34px;
  place-items: center;
  border-radius: 999px;
  background: #fbbc04;
  color: #202124;
  padding: 4px 9px;
  box-shadow: inset 0 -2px 0 rgba(32, 33, 36, 0.14);
  font-weight: 900;
}

.match-sections {
  display: grid;
  gap: 28px;
}

.pending-panel {
  margin-top: 30px;
  border-top: 1px solid #eadbb9;
  padding-top: 24px;
}

.pending-sections {
  display: grid;
  gap: 18px;
}

.pending-section {
  display: grid;
  gap: 10px;
}

.pending-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.pending-card {
  display: grid;
  gap: 8px;
  border: 1px dashed #dfd0a8;
  border-radius: 8px;
  background: #fffaf0;
  padding: 13px;
}

.pending-title,
.pending-note,
.pending-card .muted {
  display: block;
}

.pending-title {
  font-size: 16px;
}

.pending-teams {
  display: grid;
  gap: 5px;
  border-radius: 10px;
  background: #fff8dc;
  padding: 9px 10px;
  color: #202124;
  font-size: 13px;
  font-weight: 900;
}

.pending-teams strong {
  color: #8a1f2d;
  font-size: 11px;
  text-transform: uppercase;
}

.pending-teams span {
  overflow-wrap: anywhere;
}

.pending-note {
  width: fit-content;
  border-radius: 999px;
  background: #fff0b8;
  color: #5f4b00;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.match-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  list-style: none;
}

.match-section-heading::-webkit-details-marker {
  display: none;
}

.match-section-heading::after {
  content: "öffnen";
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff0b8;
  color: #5f4b00;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.match-section[open] > .match-section-heading::after {
  content: "schließen";
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.match-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #eadbb9;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  scroll-margin-top: 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.match-card.compact {
  border-color: #eadbb9;
  background: #fffaf0;
}

.match-card.is-final {
  border-color: #e0c575;
  background: #fffdf5;
}

.match-card.is-locked:not(.is-final) {
  background: #fbf8ef;
}

.match-card.is-highlighted {
  border-color: #fbbc04;
  box-shadow: 0 0 0 4px rgba(251, 188, 4, 0.24), 0 14px 34px rgba(128, 88, 0, 0.12);
  transform: translateY(-2px);
}

.match-card-header,
.team-row,
.score-controls,
.tip-box {
  display: flex;
  align-items: center;
}

.match-card-header {
  justify-content: space-between;
  gap: 10px;
}

.match-time strong,
.match-time span {
  display: block;
}

.match-time strong {
  font-size: 14px;
}

.match-time span {
  color: #6d6251;
  font-size: 13px;
  font-weight: 800;
}

.status-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.open {
  background: #fff0b8;
  color: #5f4b00;
}

.status-badge.locked {
  background: #eceff1;
  color: #4c5853;
}

.status-badge.final {
  background: #17201d;
  color: #fff;
}

.teams {
  display: grid;
  gap: 8px;
}

.team-row {
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: #fffaf0;
  padding: 8px;
}

.team-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.flag {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(23, 32, 29, 0.14);
}

.team-name {
  min-width: 0;
}

.team-name strong,
.team-name span {
  display: block;
}

.team-name strong {
  overflow-wrap: anywhere;
}

.team-name span {
  color: #6d6251;
  font-size: 12px;
  font-weight: 900;
}

.team-score {
  min-width: 28px;
  text-align: right;
  font-size: 20px;
}

.match-details {
  min-height: 20px;
  color: #6d6251;
  font-size: 13px;
}

.tip-box {
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #f0e1bd;
  padding-top: 10px;
}

.winner-box {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(251, 188, 4, 0.46);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(251, 188, 4, 0.2), rgba(255, 255, 255, 0.72));
  padding: 10px 11px;
}

.winner-box strong {
  text-align: right;
}

.tip-label {
  color: #6d6251;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-form {
  display: contents;
}

.focus-prediction-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.score-controls {
  justify-content: flex-end;
  gap: 6px;
}

.score-input {
  width: 54px;
  padding: 10px 8px;
  text-align: center;
}

.tips-box {
  min-height: 22px;
  color: #6d6251;
  font-size: 13px;
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.tips-box.compact {
  border-top: 1px solid #f0e1bd;
  margin-top: 4px;
  padding-top: 10px;
}

.tips-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.other-tip-label {
  color: #6d6251;
  font-weight: 800;
}

.standings-panel {
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(251, 188, 4, 0.22), rgba(255, 255, 255, 0.88)),
    #fff;
}

.standings-panel .section-heading {
  margin-bottom: 14px;
}

.scoreboard {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
  table-layout: fixed;
}

.scoreboard th,
.scoreboard td {
  padding: 13px 12px;
  text-align: left;
  overflow-wrap: anywhere;
}

.scoreboard th {
  padding-top: 0;
  padding-bottom: 4px;
  color: #6d6251;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scoreboard tbody tr {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(128, 88, 0, 0.06);
}

.scoreboard tbody tr.score-row-leader {
  background: linear-gradient(135deg, rgba(251, 188, 4, 0.34), rgba(255, 255, 255, 0.98));
}

.scoreboard td:first-child {
  font-weight: 900;
}

.scoreboard tbody td:first-child {
  border-radius: 14px 0 0 14px;
}

.scoreboard tbody td:last-child {
  border-radius: 0 14px 14px 0;
}

.score-note {
  margin: 10px 0 0;
  color: #6d6251;
  font-size: 13px;
}

.score-note strong {
  color: #202124;
}

.settled-panel {
  margin-bottom: 18px;
}

.settled-results {
  display: grid;
  margin: 18px 22px 22px;
  overflow: hidden;
  border: 1px solid #e6d8b4;
  border-radius: 12px;
  background: #fff;
}

.settled-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
  border-bottom: 1px solid #eee2c6;
}

.settled-row:last-child {
  border-bottom: 0;
}

.settled-game {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.settled-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6d6251;
  font-size: 12px;
  font-weight: 900;
}

.settled-time strong {
  color: #202124;
}

.settled-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.settled-team {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.settled-team:last-child {
  justify-content: flex-end;
}

.settled-team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settled-score {
  border-radius: 8px;
  background: #202124;
  color: #fff;
  padding: 5px 8px;
  font-size: 13px;
  white-space: nowrap;
}

.settled-meta {
  overflow: hidden;
  color: #6d6251;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settled-tips {
  display: grid;
  align-content: center;
  gap: 7px;
  border-left: 1px solid #eee2c6;
  background: #fffdf6;
  padding: 12px;
}

.settled-tip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #eadbb9;
  border-radius: 999px;
  background: #fff;
  padding: 7px 9px;
  font-size: 13px;
}

.settled-tip-name {
  overflow: hidden;
  color: #6d6251;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settled-tip-points {
  border-radius: 999px;
  background: #f1f3f4;
  color: #5f6368;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.settled-tip.is-exact {
  border-color: rgba(251, 188, 4, 0.72);
  background: #fff8d8;
}

.settled-tip.is-tendency {
  border-color: rgba(15, 123, 70, 0.24);
  background: #f0fbf4;
}

.settled-tip.is-exact .settled-tip-points,
.settled-tip.is-tendency .settled-tip-points {
  background: #0f7b46;
  color: #fff;
}

.settled-tip.is-empty,
.settled-tip.is-miss {
  opacity: 0.74;
}

.muted {
  color: #6d6251;
}

.error {
  color: #b00020;
}

.success {
  color: #0b7a3b;
}

.empty-note {
  margin-bottom: 0;
  border-radius: 8px;
  background: #fffaf0;
  padding: 18px;
  color: #6d6251;
}

#message {
  min-height: 24px;
  font-weight: 850;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  main {
    padding: 12px;
  }

  .page-header,
  .section-heading,
  .hero {
    display: block;
  }

  .user-bar {
    margin-top: 12px;
    justify-content: space-between;
  }

  .hero,
  .panel,
  .login-view {
    border-radius: 14px;
    padding: 18px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
  }

  .section-heading > .muted,
  .section-heading > p {
    margin-top: 8px;
  }

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

  .focus-match {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .focus-datecell {
    border-right: 0;
    border-bottom: 1px solid #eee2c6;
    padding: 10px 12px;
  }

  .focus-body,
  .focus-actions {
    padding: 10px 12px;
  }

  .focus-actions {
    border-top: 1px solid #eee2c6;
    border-left: 0;
  }

  .focus-tip-line,
  .focus-prediction-form {
    justify-content: stretch;
  }

  .focus-jump {
    width: 100%;
  }

  .settled-row {
    grid-template-columns: 1fr;
  }

  .settled-tips {
    border-top: 1px solid #eee2c6;
    border-left: 0;
  }

  .group-standings {
    grid-template-columns: 1fr;
  }

  .password-form {
    grid-template-columns: 1fr;
  }

  .tip-box {
    display: grid;
    align-items: stretch;
  }

  .score-controls {
    justify-content: stretch;
  }

  .score-controls button {
    flex: 1;
  }

  .winner-box {
    display: grid;
  }

  .winner-box strong {
    text-align: left;
  }

  .score-input {
    width: 56px;
  }

  .scoreboard {
    font-size: 14px;
  }

  .scoreboard,
  .scoreboard tbody,
  .scoreboard tr,
  .scoreboard td {
    display: block;
  }

  .scoreboard {
    border-spacing: 0;
  }

  .scoreboard thead {
    display: none;
  }

  .scoreboard tbody {
    display: grid;
    gap: 8px;
  }

  .scoreboard tbody tr {
    border: 1px solid #eadbb9;
    border-radius: 14px;
    padding: 9px 11px;
  }

  .scoreboard th,
  .scoreboard td {
    padding: 0;
  }

  .scoreboard tbody td {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-radius: 0 !important;
    padding: 5px 0;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .scoreboard tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #6d6251;
    font-size: 11px;
    font-weight: 950;
    text-align: left;
    text-transform: uppercase;
  }

  .scoreboard tbody td:first-child {
    border-bottom: 1px solid #f0e1bd;
    margin-bottom: 3px;
    padding-bottom: 8px;
    font-size: 16px;
    text-align: left;
  }

  .scoreboard tbody td:first-child::before {
    content: "";
    display: none;
  }

  .knockout-track {
    grid-auto-columns: minmax(248px, 82vw);
  }
}

@media (max-width: 520px) {
  .focus-datecell .status-badge {
    padding: 6px 8px;
    font-size: 11px;
  }

  .focus-team-name strong {
    white-space: normal;
  }

  .focus-meta span {
    white-space: normal;
  }

  .knockout-team-label strong {
    white-space: normal;
  }

  .knockout-location {
    white-space: normal;
  }

  .focus-prediction-form {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
  }

  .settled-teams {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .settled-team:last-child {
    justify-content: flex-start;
  }

  .settled-score {
    justify-self: start;
  }

  .settled-tip {
    grid-template-columns: 1fr auto;
    border-radius: 12px;
  }

  .settled-tip-points {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(128, 88, 0, 0.2);
  border-radius: 8px;
  background: #fbbc04;
  color: #202124;
  padding: 10px 13px;
  box-shadow: 0 16px 34px rgba(128, 88, 0, 0.22);
  font-size: 13px;
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #202124;
  color: #fff;
}

.back-to-top span:first-child {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 520px) {
  .back-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 10px 12px;
  }

  .back-to-top span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-ball {
    animation-duration: 3.2s;
  }

  .intro-spark,
  .intro-rocket {
    animation-duration: 1.7s;
  }

  .heart {
    animation-duration: 2.1s;
  }

  .loris-hand {
    animation-duration: 1.9s;
  }
}
