/* TipModal — Stadium Elite / Stitch Style */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Bottom sheet */
.sheet {
  background: var(--surface-mid);
  width: 100%;
  max-width: 540px;
  border-radius: 28px 28px 0 0;
  padding: 12px 28px 36px;
  box-shadow:
    0 -8px 40px rgba(0,0,0,0.5),
    0 0 0 1px rgba(75,183,248,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08);
  animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Glossy sheen on top of sheet */
.sheet::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  border-radius: 28px 28px 0 0;
  pointer-events: none;
}

/* Drag handle */
.handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* Match header */
.matchHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.groupBadge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-dim);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(75,183,248,0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* Teams row */
.teamsRow {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 8px;
  margin-bottom: 32px;
  align-items: start;
}

.teamBlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Large flag box */
.flagLarge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--surface-high);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 1px 0 0 rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.flagLarge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.flagImg {
  width: 48px;
  height: 48px;
  object-fit: contain;
  position: relative;
  z-index: 0;
}

.flagEmoji { font-size: 36px; }

.teamName {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

.teamShort {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vsBlock {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.kickoffBlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.kickoffDate {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

.kickoffTime {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  white-space: nowrap;
}

/* Picker section */
.pickerSection {
  margin-bottom: 20px;
}

.pickerLabel {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pickerRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pickerColon {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--text-secondary);
  line-height: 1;
  padding-bottom: 12px;
}

/* Individual picker */
.picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pickerBtn {
  width: 52px;
  height: 52px;
  background: var(--surface-high);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.pickerBtn:hover {
  background: var(--primary-dim);
  border-color: rgba(75,183,248,0.3);
  color: var(--primary);
  box-shadow:
    0 4px 16px rgba(75,183,248,0.15),
    inset 0 1px 0 rgba(75,183,248,0.1);
}

.pickerBtn:active {
  transform: scale(0.94);
}

.pickerValue {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 58px;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 70px;
  text-align: center;
  line-height: 1;
}

/* Tendenz bar */
.tendencyBar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-high);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.tendencyIcon { font-size: 18px; }

.tendencyText {
  font-size: 14px;
  color: var(--text-secondary);
}

.tendencyText strong {
  color: var(--tendency-color, var(--primary));
  font-weight: 700;
}

/* Error */
.error {
  color: var(--error);
  font-size: 13px;
  text-align: center;
  padding: 10px 14px;
  background: rgba(248,113,113,0.08);
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(248,113,113,0.15);
}

/* CTA Buttons */
.saveBtn {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: 0 6px 20px rgba(75,183,248,0.25);
}

.cancelBtn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s;
}

.cancelBtn:hover { color: var(--text-secondary); }
