/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Nunito', sans-serif;
  color: #241C12;
  background: #0c5a35;
  background-image: radial-gradient(rgba(255,255,255,.05) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar hide ───────────────────────────────────────────────── */
.wm-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.wm-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ─── App shell ────────────────────────────────────────────────────── */
#app {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}
.app-card {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: #FBF3E0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,.35);
}

/* ─── Loading / Error state ────────────────────────────────────────── */
#loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  color: #1b1408;
  gap: 10px;
}

/* ─── Animations ───────────────────────────────────────────────────── */
@keyframes wm-confetti {
  to { transform: translateY(980px) rotate(720deg); opacity: 0; }
}
@keyframes wm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes wm-pop {
  0%   { transform: scale(.5);   opacity: 0; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes wm-shine {
  from { background-position: -130% 0; }
  to   { background-position:  230% 0; }
}
@keyframes wm-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
@keyframes wm-float {
  0%, 100% { transform: translateY(0)    rotate(-2deg); }
  50%       { transform: translateY(-7px) rotate(2deg);  }
}
@keyframes wm-spin {
  to { transform: rotate(360deg); }
}

/* ─── Confetti overlay ─────────────────────────────────────────────── */
#confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -24px;
  border-radius: 2px;
  animation: wm-confetti 1.7s ease-in forwards;
}

/* ─── Top navigation bar ───────────────────────────────────────────── */
.top-bar {
  flex: 0 0 auto;
  background: #1F5FD0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1.4px, transparent 1.5px);
  background-size: 11px 11px;
  color: #fff;
  padding: 13px 16px 11px;
  box-shadow: 0 3px 0 rgba(0,0,0,.16);
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(0,0,0,.16);
}
.top-bar-sub {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FFC23B;
  font-weight: 800;
  margin-top: 3px;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.18);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 4px 10px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #44e08a;
  animation: wm-pulse 1.4s ease-in-out infinite;
}
.live-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

/* ─── Bottom nav ───────────────────────────────────────────────────── */
.bottom-nav {
  flex: 0 0 auto;
  background: #fff;
  border-top: 2.5px solid #1b1408;
  display: flex;
  padding: 8px 6px 12px;
  justify-content: space-around;
  position: relative;
  z-index: 6;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding: 4px 0;
}
.nav-active-bar {
  position: absolute;
  top: -8px;
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: #F2493D;
}
.nav-emoji { font-size: 21px; line-height: 1; }
.nav-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 10px;
}

/* ─── Scroll area ──────────────────────────────────────────────────── */
.scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* ─── Start / Registration screen ─────────────────────────────────── */
.screen-start {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #1F5FD0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.5px, transparent 1.6px);
  background-size: 13px 13px;
  color: #fff;
  position: relative;
}
.bunting-row {
  display: flex;
  justify-content: space-around;
  padding: 0 4px;
  transform: translateY(-1px);
}
.bunting-triangle {
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.12));
}
.start-inner { padding: 18px 22px 30px; }
.start-subtitle {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  color: #FFC23B;
  text-transform: uppercase;
}
.start-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: .92;
  margin-top: 8px;
  text-shadow: 3px 3px 0 rgba(0,0,0,.18);
}
.start-title-year { color: #FFC23B; }
.start-tagline {
  font-weight: 700;
  font-size: 15px;
  margin-top: 12px;
  max-width: 300px;
  color: rgba(255,255,255,.92);
}

/* 16er-Pack card */
.pack-card {
  margin: 22px auto 24px;
  width: 200px;
  height: 120px;
  border-radius: 16px;
  border: 3px solid #1b1408;
  background: linear-gradient(125deg, #F2493D 0%, #FF6FA5 28%, #FFC23B 52%, #1FA463 76%, #1F5FD0 100%);
  background-size: 220% 100%;
  position: relative;
  box-shadow: 5px 6px 0 rgba(0,0,0,.25);
  animation: wm-shine 4.5s linear infinite, wm-float 5s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pack-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: wm-shine 2.6s linear infinite;
}
.pack-icon { font-size: 40px; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.25)); z-index: 1; }
.pack-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1b1408;
  background: #fff;
  border: 2px solid #1b1408;
  border-radius: 999px;
  padding: 2px 12px;
  margin-top: 8px;
  z-index: 1;
}

/* Registration form */
.reg-form {
  background: #FBF3E0;
  color: #241C12;
  border: 3px solid #1b1408;
  border-radius: 20px;
  box-shadow: 5px 6px 0 rgba(0,0,0,.22);
  padding: 18px 16px;
}
.reg-form-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 14px;
}
.form-label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a7f6b;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2.5px solid #1b1408;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  background: #fff;
  outline: none;
  margin: 5px 0 14px;
}
.form-input:focus { border-color: #1F5FD0; box-shadow: 0 0 0 3px rgba(31,95,208,.18); }
.nick-row { display: flex; gap: 8px; margin: 5px 0 14px; }
.nick-row .form-input { flex: 1; min-width: 0; margin: 0; }
.dice-btn {
  flex: 0 0 auto;
  width: 52px;
  border: 2.5px solid #1b1408;
  border-radius: 12px;
  background: #FFC23B;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(0,0,0,.2);
}
.dice-btn:active { transform: scale(.93); }
.avatar-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.avatar-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2.5px solid #1b1408;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
}
.avatar-btn-ring {
  position: absolute;
  inset: -2.5px;
  border: 3px solid #1F5FD0;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(31,95,208,.25);
  pointer-events: none;
}
.pin-input {
  width: 110px;
  margin: 5px 0 4px;
  padding: 12px 14px;
  border: 2.5px dashed #b8ab93;
  border-radius: 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .35em;
  background: #fff;
  outline: none;
  text-align: center;
}
.pin-hint { font-size: 11px; color: #9a8f7d; margin-bottom: 16px; }
.btn-primary {
  width: 100%;
  padding: 15px;
  border: 3px solid #1b1408;
  border-radius: 14px;
  background: #F2493D;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 4px 5px 0 rgba(0,0,0,.22);
}
.btn-primary:active { transform: translate(2px,2px); box-shadow: 2px 3px 0 rgba(0,0,0,.22); }
.btn-disabled {
  width: 100%;
  padding: 15px;
  border: 3px dashed #c9bca3;
  border-radius: 14px;
  background: #efe6d0;
  color: #a99d85;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  cursor: default;
}
.start-legal { text-align: center; font-size: 11px; color: rgba(255,255,255,.65); margin-top: 16px; }

/* ─── Tippschein screen ────────────────────────────────────────────── */
.tippen-inner { padding: 14px 16px 28px; }

.pick-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 16px;
  box-shadow: 3px 4px 0 rgba(27,20,8,.18);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.pick-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pick-counter {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}
.pick-counter-max { font-size: 18px; color: #9a8f7d; }
.countdown-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFF2D6;
  border: 2px solid #1b1408;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 13px;
}
.pick-progress-bar {
  height: 9px;
  background: #efe6d0;
  border: 2px solid #1b1408;
  border-radius: 999px;
  margin: 9px 0 8px;
  overflow: hidden;
}
.pick-progress-fill { height: 100%; background: #1FA463; transition: width .3s; }
.pick-spruch { font-style: italic; font-weight: 700; font-size: 13px; color: #1F5FD0; }

.group-block { margin-bottom: 16px; }
.group-label {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 13px;
  background: #FFC23B;
  border: 2px solid #1b1408;
  border-radius: 999px;
  padding: 3px 13px;
  margin-bottom: 9px;
  white-space: nowrap;
  box-shadow: 1px 2px 0 rgba(27,20,8,.18);
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.team-card {
  position: relative;
  background: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 14px;
  padding: 9px 6px;
  text-align: center;
  box-shadow: 2px 3px 0 rgba(27,20,8,.16);
  cursor: pointer;
  user-select: none;
  transition: transform .1s;
}
.team-card:active { transform: scale(.96); }
.team-card-ring {
  position: absolute;
  inset: -2.5px;
  border: 3px solid #1FA463;
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(31,164,99,.2);
  pointer-events: none;
}
.team-check {
  position: absolute;
  top: -9px;
  right: -7px;
  width: 23px;
  height: 23px;
  background: #1FA463;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 1px 1px 0 rgba(0,0,0,.2);
  animation: wm-pop .25s ease;
}
.team-flag  { font-size: 30px; line-height: 1; }
.team-name  { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 12px; margin-top: 5px; color: #1b1408; }
.team-code  { font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #b3a892; }

/* Stechfragen */
.stechfragen {
  background: #11296B;
  color: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 18px;
  box-shadow: 3px 4px 0 rgba(27,20,8,.22);
  padding: 16px;
  margin-top: 6px;
}
.stechfragen-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.stechfragen-sub { font-size: 12px; color: rgba(255,255,255,.72); margin-bottom: 14px; }
.stechfragen-label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #FFC23B;
  margin-bottom: 8px;
}
.champion-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.champion-opt {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  background: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 12px;
  padding: 7px 2px;
  text-align: center;
  cursor: pointer;
}
.champion-ring {
  position: absolute;
  inset: -2.5px;
  border: 3px solid #FFC23B;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(255,194,59,.3);
  pointer-events: none;
}
.champion-flag { font-size: 24px; }
.champion-code { font-size: 8px; font-weight: 800; color: #b3a892; margin-top: 2px; }
.goals-row { display: flex; align-items: center; gap: 12px; }
.goals-btn {
  width: 44px;
  height: 44px;
  border: 2.5px solid #1b1408;
  border-radius: 12px;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(0,0,0,.25);
}
.goals-btn-dec { background: #F2493D; }
.goals-btn-inc { background: #1FA463; }
.goals-btn:active { transform: scale(.93); }
.goals-display {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 34px;
  min-width: 44px;
  text-align: center;
}

.submit-row { margin-top: 18px; }
.btn-submit {
  width: 100%;
  padding: 16px;
  border: 3px solid #1b1408;
  border-radius: 16px;
  background: #F2493D;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 4px 5px 0 rgba(27,20,8,.25);
}
.btn-submit:active { transform: translate(2px,2px); box-shadow: 2px 3px 0 rgba(27,20,8,.25); }

/* Locked state overlay for tipping */
.locked-banner {
  background: #efe6d0;
  border: 2.5px dashed #b8ab93;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  color: #8a7f6b;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}

/* ─── Rangliste screen ─────────────────────────────────────────────── */
.rang-inner { padding: 14px 16px 28px; }

.ticker-bar {
  background: #1b1408;
  border: 2.5px solid #1b1408;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.ticker-label {
  flex: 0 0 auto;
  background: #F2493D;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 9px 11px;
  white-space: nowrap;
  letter-spacing: .04em;
}
.ticker-scroll { flex: 1; min-width: 0; overflow: hidden; }
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  color: #FFC23B;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 0;
  animation: wm-marquee 26s linear infinite;
  will-change: transform;
}
.ticker-text { padding: 0 4px; }

.rang-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rang-title { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; line-height: 1; }
.rang-phase { font-size: 11px; font-weight: 800; color: #8a7f6b; text-align: right; max-width: 130px; }

.board-list { display: flex; flex-direction: column; gap: 10px; }
.board-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 16px;
  box-shadow: 2px 3px 0 rgba(27,20,8,.16);
  padding: 11px 12px;
}
.board-me-ring {
  position: absolute;
  inset: -2.5px;
  border: 3px solid #1F5FD0;
  border-radius: 16px;
  box-shadow: 0 0 0 3px rgba(31,95,208,.18);
  pointer-events: none;
}
.board-me-tag {
  position: absolute;
  top: -10px;
  left: 14px;
  background: #1F5FD0;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 10px;
  padding: 1px 9px;
  border-radius: 999px;
  border: 2px solid #fff;
}
.board-rank {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2.5px solid #1b1408;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.board-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 2.5px solid #1b1408;
  background: #FBF3E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.board-info { flex: 1; min-width: 0; }
.board-nick {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-name { font-size: 11px; color: #9a8f7d; font-weight: 700; }
.board-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(120deg, #fff7df, #ffe6a8);
  border: 1.5px solid #1b1408;
  border-radius: 999px;
  padding: 1px 8px 1px 6px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.board-quote { font-style: italic; font-size: 11px; color: #7d7260; margin-top: 4px; }
.board-score { flex: 0 0 auto; text-align: right; }
.board-points {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: #1F5FD0;
}
.board-points-label { font-size: 9px; font-weight: 800; color: #9a8f7d; text-transform: uppercase; }
.board-pct { font-size: 10px; font-weight: 800; color: #1FA463; margin-top: 2px; }

.cake-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFF2D6;
  border: 2.5px dashed #d8b24a;
  border-radius: 14px;
  padding: 11px 13px;
  margin-top: 14px;
}
.cake-icon { font-size: 28px; }
.cake-text { font-size: 12px; font-weight: 700; }

/* ─── Mein Tipp screen ─────────────────────────────────────────────── */
.meins-inner { padding: 14px 16px 28px; }
.my-header {
  background: #1F5FD0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1.4px, transparent 1.5px);
  background-size: 11px 11px;
  color: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 18px;
  box-shadow: 3px 4px 0 rgba(27,20,8,.22);
  padding: 16px;
  margin-bottom: 18px;
}
.my-header-row { display: flex; align-items: center; gap: 12px; }
.my-avatar {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2.5px solid #1b1408;
  background: #FBF3E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.my-info { flex: 1; min-width: 0; }
.my-nick {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-name-rank { font-size: 12px; color: rgba(255,255,255,.8); font-weight: 700; margin-top: 2px; }
.my-score {
  flex: 0 0 auto;
  text-align: center;
  background: rgba(0,0,0,.2);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: 6px 11px;
}
.my-score-num {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: #FFC23B;
}
.my-score-label { font-size: 9px; font-weight: 800; text-transform: uppercase; opacity: .8; }
.my-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.my-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(120deg, #fff7df, #ffd778);
  border: 2px solid #1b1408;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 800;
  color: #1b1408;
  white-space: nowrap;
}
.picks-section-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
}
.picks-list { display: flex; flex-direction: column; gap: 8px; }
.pick-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 13px;
  box-shadow: 2px 2px 0 rgba(27,20,8,.13);
  padding: 9px 12px;
}
.pick-row-flag { font-size: 24px; }
.pick-row-name {
  flex: 1;
  min-width: 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1b1408;
}
.pick-row-name.out { text-decoration: line-through; color: #b3a892; }
.status-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 800;
}
.chip-qualified { background: #E4F6EC; color: #0E6B3F; }
.chip-out       { background: #FBE3E1; color: #B02A20; }
.chip-open      { background: #FFF2D6; color: #8A6A12; }

.tiebreak-recap { display: flex; gap: 10px; margin-top: 16px; }
.tiebreak-card {
  flex: 1;
  background: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  box-shadow: 2px 3px 0 rgba(27,20,8,.14);
}
.tiebreak-card-label { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #8a7f6b; }
.tiebreak-card-flag { font-size: 30px; margin-top: 4px; }
.tiebreak-card-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 13px; }
.tiebreak-card-num {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 34px;
  margin-top: 2px;
  color: #1F5FD0;
}
.tiebreak-card-sub { font-size: 12px; color: #9a8f7d; }

/* No picks registered */
.no-picks {
  text-align: center;
  padding: 32px 16px;
  color: #9a8f7d;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

/* ─── Pinnwand screen ──────────────────────────────────────────────── */
.pinnwand-inner { padding: 14px 16px 28px; }
.pinnwand-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}
.pinnwand-sub { font-size: 12px; color: #8a7f6b; font-weight: 700; margin: 5px 0 14px; }
.trash-compose {
  background: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 16px;
  box-shadow: 3px 4px 0 rgba(27,20,8,.16);
  padding: 11px;
  margin-bottom: 18px;
}
.trash-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  color: #1b1408;
}
.trash-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px dashed #e3d8bd;
  padding-top: 9px;
  margin-top: 4px;
}
.trash-author { font-size: 12px; font-weight: 700; color: #9a8f7d; }
.trash-post-btn {
  border: 2.5px solid #1b1408;
  border-radius: 11px;
  background: #1FA463;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 7px 16px;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(0,0,0,.2);
}
.trash-post-btn:active { transform: scale(.95); }
.trash-posts { display: flex; flex-direction: column; gap: 11px; }
.trash-post {
  display: flex;
  gap: 11px;
  background: #fff;
  border: 2.5px solid #1b1408;
  border-radius: 15px;
  box-shadow: 2px 3px 0 rgba(27,20,8,.14);
  padding: 12px;
}
.trash-post-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 2.5px solid #1b1408;
  background: #FBF3E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.trash-post-body { flex: 1; min-width: 0; }
.trash-post-meta { display: flex; align-items: baseline; gap: 7px; }
.trash-post-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trash-post-time {
  font-size: 10px;
  color: #b3a892;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}
.trash-post-text {
  font-size: 14px;
  font-weight: 600;
  color: #2c2418;
  margin-top: 3px;
  line-height: 1.35;
}

/* ─── PIN modal ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-box {
  background: #FBF3E0;
  border: 3px solid #1b1408;
  border-radius: 20px;
  box-shadow: 6px 7px 0 rgba(0,0,0,.25);
  padding: 22px 20px;
  width: 100%;
  max-width: 320px;
}
.modal-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 14px;
}
.modal-pin-input {
  width: 100%;
  padding: 12px 14px;
  border: 2.5px solid #1b1408;
  border-radius: 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .5em;
  background: #fff;
  outline: none;
  text-align: center;
  margin-bottom: 14px;
}
.modal-error { color: #B02A20; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.modal-btn-row { display: flex; gap: 10px; }
.modal-btn-cancel {
  flex: 1;
  padding: 12px;
  border: 2.5px solid #1b1408;
  border-radius: 12px;
  background: #efe6d0;
  color: #5c5042;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.modal-btn-ok {
  flex: 1;
  padding: 12px;
  border: 2.5px solid #1b1408;
  border-radius: 12px;
  background: #F2493D;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(0,0,0,.2);
}

/* ─── Toast notification ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b1408;
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  z-index: 200;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  animation: wm-pop .25s ease;
  pointer-events: none;
}

/* ─── Spinner ──────────────────────────────────────────────────────── */
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(0,0,0,.15);
  border-top-color: #1F5FD0;
  border-radius: 50%;
  animation: wm-spin .7s linear infinite;
  display: inline-block;
}

/* ─── Player-choose screen ─────────────────────────────────────────── */
.choose-section {
  background: #fff;
  border: 3px solid #241C12;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #241C12;
  overflow: hidden;
  margin: 8px 0 4px;
}
.choose-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 16px 10px;
  border-bottom: 2px solid #e8dfc8;
  color: #241C12;
}
.player-list-empty {
  padding: 20px 16px;
  color: #9a8f7d;
  font-size: 14px;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
}
.player-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1.5px solid #e8dfc8;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}
.player-entry:last-child { border-bottom: none; }
.player-entry:active { background: #f5edda; }
.player-entry-avatar { font-size: 26px; line-height: 1; flex-shrink: 0; }
.player-entry-info { flex: 1; min-width: 0; }
.player-entry-nick {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #241C12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-entry-name {
  font-size: 12px;
  color: #8a7f6a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-entry-pin { font-size: 16px; flex-shrink: 0; }
.player-entry-arrow {
  font-size: 22px;
  color: #b0a48a;
  font-family: 'Fredoka', sans-serif;
  flex-shrink: 0;
}

.choose-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  color: #9a8f7d;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
}
.choose-divider::before,
.choose-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: #d4c9b0;
}

/* Secondary + ghost buttons */
.btn-secondary {
  display: block;
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #1F5FD0;
  border: 3px solid #1F5FD0;
  border-radius: 12px;
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 3px 3px 0 #1F5FD0;
  transition: transform .1s, box-shadow .1s;
  text-align: center;
  margin-bottom: 8px;
}
.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #1F5FD0;
}
.btn-ghost {
  display: block;
  width: 100%;
  padding: 10px;
  background: none;
  color: #8a7f6a;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  margin-top: 4px;
}

/* Top-bar switch button */
.switch-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
  font-size: 13px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.switch-btn:active { background: rgba(255,255,255,.3); }
.switch-label { font-size: 12px; }

/* ─── Alle Tipps ────────────────────────────────────────────────────── */
.alle-inner { padding: 14px 16px 28px; }
.alle-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1b1408;
  margin-bottom: 2px;
}
.alle-subtitle {
  font-size: 12px;
  color: #9a8f7d;
  margin-bottom: 16px;
}
.alle-cards { display: flex; flex-direction: column; gap: 12px; }
.alle-loading { color: #9a8f7d; text-align: center; padding: 24px; font-family: 'Fredoka', sans-serif; font-size: 16px; }

.alle-card {
  background: #fff;
  border: 2px solid #e5dbc8;
  border-radius: 14px;
  padding: 12px 14px;
  position: relative;
}
.alle-card-me {
  border-color: #1F5FD0;
  background: #f0f4ff;
}
.alle-card-me-tag {
  position: absolute;
  top: -9px;
  left: 14px;
  background: #1F5FD0;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.alle-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.alle-card-avatar { font-size: 28px; line-height: 1; }
.alle-card-info { flex: 1; min-width: 0; }
.alle-card-nick {
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1b1408;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alle-card-name {
  font-size: 12px;
  color: #9a8f7d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alle-card-champ {
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  background: #FFF2D6;
  border-radius: 8px;
  cursor: default;
  white-space: nowrap;
}

.alle-picks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.alle-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: default;
}
.alle-chip-chip-qualified { background: #E4F6EC; border-color: #9de0bd; }
.alle-chip-chip-out       { background: #FBE3E1; border-color: #f5b0ab; opacity: .65; }
.alle-chip-chip-open      { background: #FFF2D6; border-color: #e5dbc8; }
.alle-no-picks { font-size: 13px; color: #b3a892; font-style: italic; }

.alle-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  gap: 16px;
}
.alle-locked-icon { font-size: 52px; }
.alle-locked-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  color: #5a503f;
  line-height: 1.5;
}

/* ─── Rang Subtabs ──────────────────────────────────────────────────── */
.rang-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.rang-subtab {
  flex: 1;
  padding: 9px 0;
  border: 2px solid #e0d8c8;
  border-radius: 10px;
  background: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #9a8f7d;
  cursor: pointer;
}
.rang-subtab.active {
  background: #1F5FD0;
  border-color: #1F5FD0;
  color: #fff;
}

/* ─── Gruppentabellen ───────────────────────────────────────────────── */
.gt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}
.gt-legend { display: flex; gap: 10px; flex-wrap: wrap; }
.gt-leg {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.gt-leg-qual  { background: #E4F6EC; color: #0e6b3f; }
.gt-leg-third { background: #FFF2D6; color: #8A6A12; }
.gt-updated { font-size: 11px; color: #b3a892; }

.gt-block {
  background: #fff;
  border: 1.5px solid #e0d8c8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.gt-group-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #5a503f;
  padding: 8px 12px 6px;
  background: #f9f5ec;
  border-bottom: 1px solid #e0d8c8;
  letter-spacing: .3px;
}
.gt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gt-table thead th {
  padding: 5px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #b3a892;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid #f0e8d4;
  background: #fdf9f2;
}
.gt-table thead th.gt-team { text-align: left; padding-left: 10px; }
.gt-row td { padding: 7px 4px; border-bottom: 1px solid #f5f0e8; }
.gt-row:last-child td { border-bottom: none; }
.gt-row-qual  { background: #f0fbf4; }
.gt-row-third { background: #fffbf0; }

.gt-pos {
  width: 22px;
  text-align: center;
  font-weight: 700;
  color: #9a8f7d;
  font-size: 12px;
  padding-left: 10px !important;
}
.gt-row-qual  .gt-pos { color: #0e6b3f; }
.gt-row-third .gt-pos { color: #8A6A12; }

.gt-team {
  text-align: left;
  padding-left: 6px !important;
  white-space: nowrap;
}
.gt-flag { font-size: 16px; margin-right: 5px; vertical-align: middle; }
.gt-name { vertical-align: middle; font-size: 13px; color: #1b1408; font-weight: 600; }

.gt-num {
  text-align: center;
  color: #5a503f;
  width: 26px;
  font-size: 13px;
}
.gt-goals { width: 38px; }
.gt-pts {
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: #1b1408;
  width: 28px;
  padding-right: 8px !important;
}
.gt-row-qual  .gt-pts { color: #0e6b3f; }
.gt-row-third .gt-pts { color: #8A6A12; }
