/* shared/game-ui.css — Shared UI styles for all LPFB games */
/* Covers: root vars, reset, screens, bubbles, intro, char-select, */
/*         pils popups, event overlay, result screen, confetti      */
/* Game-specific styles live in each game's game.css               */

:root {
  --gold:   var(--amber-hi, #F5B030);
  --bg:     #080600;
  --left:   var(--amber-hi, #F5B030);
  --right:  #4fc3f7;
}

* { box-sizing: border-box; margin: 0; padding: 0; touch-action: manipulation; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Anton', sans-serif;
  background: var(--bg);
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}

/* ─── SCREENS ─────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.screen.visible {
  opacity: 1;
  pointer-events: all;
}

/* ─── SHARED BG BUBBLES ───────────────────────────────────── */
.bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    rgba(255,220,80,0.18), rgba(255,150,0,0.03));
  border: 1px solid rgba(255,200,50,0.1);
  pointer-events: none;
  animation: rise linear infinite;
  z-index: 0;
}
@keyframes rise {
  from { transform: translateY(105vh); opacity: 0.6; }
  to   { transform: translateY(-15vh); opacity: 0; }
}

/* ─── SCREEN: INTRO ──────────────────────────────────────────────────────── */
#screen-intro {
  background: radial-gradient(ellipse at 50% 30%,
    rgba(100,60,0,0.45) 0%,
    var(--bg) 68%);
  padding: 1.5rem 1.2rem 2rem;
}
.intro-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  width: 100%;
  max-width: 420px;
  z-index: 1;
}
.intro-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-weight: 500;
}

/* CSS Beer Glass */
.intro-beer {
  position: relative;
  display: flex;
  align-items: flex-end;
}
.intro-beer-glass {
  position: relative;
  width: 108px;
  height: 150px;
  background: linear-gradient(180deg,
    rgba(20,12,0,0.55) 0%,
    rgba(8,5,0,0.75) 100%);
  border: 2px solid rgba(255,200,80,0.3);
  border-radius: 4px 4px 10px 10px;
  overflow: hidden;
  clip-path: polygon(7% 0%, 93% 0%, 100% 100%, 0% 100%);
}
.intro-beer-liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg,
    #f5a623 0%,
    #c97d08 50%,
    #8a5200 100%);
  animation: intro-fill 1.5s cubic-bezier(0.25,0.46,0.45,0.94) 0.2s forwards;
}
.intro-beer-foam {
  position: absolute;
  top: -12px; left: -4px; right: -4px;
  height: 24px;
  background: rgba(255,255,255,0.94);
  border-radius: 50% 50% 0 0 / 14px 14px 0 0;
  box-shadow: 0 -3px 8px rgba(255,255,255,0.4);
}
.intro-beer-shine {
  position: absolute;
  top: 8px; bottom: 8px; left: 10px;
  width: 7px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.04) 100%);
  border-radius: 4px;
}
.intro-beer-handle {
  width: 24px;
  height: 65px;
  border: 3px solid rgba(255,200,80,0.3);
  border-left: none;
  border-radius: 0 14px 14px 0;
  margin-left: -2px;
  margin-bottom: 28px;
}
@keyframes intro-fill {
  from { height: 0%; }
  to   { height: 73%; }
}

/* Target */
.intro-target { text-align: center; z-index: 1; }
.intro-target-num {
  font-size: clamp(2.6rem, 10vw, 3.8rem);
  color: var(--gold);
  text-shadow: 0 0 28px rgba(245,166,35,0.65), 0 0 60px rgba(245,166,35,0.25);
  letter-spacing: 0.04em;
  line-height: 1;
}
.intro-target-sub {
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  color: rgba(245,166,35,0.45);
  font-family: 'DM Mono', monospace;
  margin-top: 0.25rem;
}

/* Steps row */
.intro-steps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
}
.intro-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,200,50,0.1);
  border-radius: 10px;
  min-width: 70px;
}
.intro-step-icon { font-size: 1.7rem; line-height: 1; }
.intro-step-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: rgba(255,200,100,0.65);
  font-family: 'DM Mono', monospace;
}
.intro-step-sep {
  color: rgba(245,166,35,0.25);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

/* Warning */
.intro-warning {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255,50,50,0.07);
  border: 1px solid rgba(255,70,70,0.18);
  border-radius: 6px;
  z-index: 1;
}
.intro-warn-icon { font-size: 1rem; }
.intro-warn-text {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: rgba(255,120,120,0.75);
  font-family: 'DM Mono', monospace;
}

/* Speak Button */
.intro-speak-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 0.55rem 1.4rem;
  color: rgba(255,255,255,0.4);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}
.intro-speak-btn:active { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }

/* CTA Button — aligned to M3 Button Standard (pfb-btn-primary) */
#intro-start-btn {
  width: 100%;
  max-width: 400px;
  height: 58px;
  min-height: 44px;
  background: var(--gold);
  color: #000;
  border: 2px solid var(--cream);
  border-radius: 8px;
  font-family: 'Anton', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 1;
  transition: transform 0.08s ease, background 0.1s ease;
}
#intro-start-btn:active {
  transform: scale(0.97);
  background: #F5B030;
}

/* ─── SCREEN: CHARSELECT ─────────────────────────────────────────────────── */
#screen-select {
  justify-content: flex-start;
  overflow: hidden;
  background: var(--bg);
  gap: 0.65rem;
  padding: 1rem;
  align-items: center;
}

.sel-back {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(245,166,35,0.4);
  text-decoration: none;
  z-index: 10;
  font-family: 'DM Mono', monospace;
}

.sel-header { text-align: center; z-index: 1; }
.sel-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.3rem;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
}
.sel-title {
  font-size: clamp(1.4rem, 5.5vw, 2.2rem);
  letter-spacing: 0.05em;
  line-height: 1;
}
.sel-subtitle {
  font-size: 0.65rem;
  color: rgba(255,200,100,0.4);
  margin-top: 0.15rem;
  font-family: 'DM Mono', monospace;
}

/* Step indicator row */
.sel-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.sel-step-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  color: var(--left);
  transition: color 0.15s ease-out;
}
#screen-select.p2-active .sel-step-label { color: var(--right); }
.sel-step-dots { display: flex; gap: 6px; }
.sel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.15s ease-out;
}
.sel-dot.active { background: var(--gold); }

/* Focus card */
.sel-focus {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(245,166,35,0.25);
  background: rgba(245,166,35,0.05);
  min-height: 88px;
  transition: border-color 0.2s, background 0.2s;
}
#screen-select.p2-active .sel-focus {
  border-color: rgba(79,195,247,0.25);
  background: rgba(79,195,247,0.05);
}
.sel-focus-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06) center/cover no-repeat;
  border: 2px solid rgba(245,166,35,0.35);
  flex-shrink: 0;
  transition: border-color 0.2s;
}
#screen-select.p2-active .sel-focus-photo { border-color: rgba(79,195,247,0.35); }
.sel-focus-info { flex: 1; min-width: 0; }
.sel-focus-name {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: rgba(255,255,255,0.45);
}
.sel-focus-name.chosen { color: #fff; }
.sel-focus-perk {
  font-size: 0.6rem;
  color: var(--gold);
  margin-top: 0.3rem;
  font-family: 'DM Mono', monospace;
  line-height: 1.3;
}
#screen-select.p2-active .sel-focus-perk { color: var(--right); }

/* Character list (vertical scroll) */
.sel-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 480px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}
.sel-grid-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 2.4rem 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.sel-grid-item:active { transform: scale(0.97); }
.sel-grid-item:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 2px; }
.sel-grid-item.sel-selected {
  border-color: rgba(245,166,35,0.55);
  background: rgba(245,166,35,0.1);
}
#screen-select.p2-active .sel-grid-item.sel-selected {
  border-color: rgba(79,195,247,0.55);
  background: rgba(79,195,247,0.08);
}
.sel-grid-item.sel-disabled {
  opacity: 0.2;
  pointer-events: none;
}
.sel-grid-photo {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.sel-grid-photo-placeholder {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sel-grid-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.sel-grid-name {
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--cream);
  line-height: 1;
  max-width: 100%;
}
.sel-grid-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.2rem;
}
.sel-grid-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.42rem;
  letter-spacing: .03em;
  color: rgba(245,176,48,.8);
  background: rgba(245,176,48,.08);
  border: 1px solid rgba(245,176,48,.2);
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  line-height: 1.4;
  white-space: nowrap;
}

.sel-grid-info {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245,176,48,0.13);
  color: rgba(245,176,48,0.6);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  flex-shrink: 0;
}
.sel-grid-info:active { background: rgba(245,176,48,0.35); }

/* Start / weiter button — aligned to M3 Button Standard (pfb-btn-primary) */
.sel-start-btn {
  z-index: 1;
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  background: var(--gold);
  color: #080600;
  border: 2px solid var(--cream);
  border-radius: 8px;
  padding: 0.6rem 2rem;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  width: 100%;
  max-width: 480px;
}
.sel-start-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; filter: grayscale(0.4); }
.sel-start-btn:not(:disabled):active { transform: scale(0.96); }

/* ─── RIVALRY BANNER ──────────────────────────────────────── */
.sel-rivalry {
  display: none;
  width: 100%;
  max-width: 480px;
  padding: 0.55rem 0.9rem;
  background: rgba(245,166,35,0.07);
  border-left: 3px solid var(--gold);
  z-index: 1;
  animation: rivalryIn 0.3s ease forwards;
}
.sel-rivalry.visible { display: block; }
.sel-rivalry span {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--gold);
  line-height: 1.4;
  font-style: italic;
}
@keyframes rivalryIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── PILS POPUPS ─────────────────────────────────────────── */
.pils-popup {
  position: fixed;
  inset: 0;
  background: rgba(4,2,0,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.pils-popup.visible { display: flex; }
.pils-popup.entering .pils-popup-inner { animation: popupIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards; }

.pils-popup-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  max-width: 340px;
  width: 100%;
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 2.2rem 1.8rem 1.8rem;
  background: rgba(8,6,0,0.97);
  box-shadow: 0 0 40px rgba(245,166,35,0.18), inset 0 0 60px rgba(245,166,35,0.04);
  position: relative;
  overflow: hidden;
}
/* top amber glow line */
.pils-popup-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pils-popup-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(245,166,35,0.35);
  display: block;
}
.pils-popup-photo[src=""] { display: none; }

.pils-popup-beer {
  font-size: 3.8rem;
  line-height: 1;
  animation: beerPulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(245,166,35,0.6));
}
@keyframes beerPulse {
  0%, 100% { transform: scale(1)   rotate(-3deg); }
  50%       { transform: scale(1.1) rotate(3deg);  }
}

.pils-popup-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.3rem, 5.5vw, 1.9rem);
  letter-spacing: 0.05em;
  color: var(--gold);
  line-height: 1.1;
}

.pils-popup-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,200,80,0.6);
  line-height: 1.5;
  font-style: italic;
  max-width: 260px;
}

.pils-popup-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--gold);
  color: #080600;
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  border: 2px solid var(--cream);
  border-radius: 8px;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  touch-action: manipulation;
}
.pils-popup-btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.4);
}

.pils-popup-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 0.75rem 1rem;
  min-height: 44px;
  touch-action: manipulation;
  transition: color 0.15s ease-out;
}
.pils-popup-skip:active { color: rgba(255,255,255,0.4); }

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);     }
}

/* ─── EVENT OVERLAY ───────────────────────────────────────── */
#event-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  backdrop-filter: blur(2px);
}
#event-overlay.visible {
  display: flex;
  animation: eventBlast 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes eventBlast {
  0%   { transform: scale(1.08); opacity: 0; }
  60%  { transform: scale(0.98); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Full-screen flash that fires at the moment the event appears */
#event-overlay.visible::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(245,166,35,0.55);
  pointer-events: none;
  animation: eventFlash 0.4s ease-out forwards;
  z-index: -1;
}
@keyframes eventFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.event-icon {
  font-size: clamp(5rem, 18vw, 8rem);
  margin-bottom: 0.3rem;
  animation: iconPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  filter: drop-shadow(0 0 24px rgba(245,166,35,0.7));
}
@keyframes iconPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.event-name {
  font-size: clamp(2.8rem, 12vw, 5rem);
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(245,166,35,0.8), 0 0 80px rgba(245,166,35,0.3);
  animation: nameSlam 0.25s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
@keyframes nameSlam {
  from { transform: translateY(20px) scale(0.85); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.event-desc {
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  color: rgba(255,200,100,0.8);
  max-width: 340px;
  line-height: 1.5;
  font-family: 'DM Mono', monospace;
  animation: nameSlam 0.25s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.event-bar-wrap {
  margin-top: 1.4rem;
  width: 200px;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.event-bar {
  height: 100%;
  background: var(--gold);
  width: 100%;
  transition: width linear;
  box-shadow: 0 0 8px rgba(245,166,35,0.6);
}

/* Per-event flash color overrides */
#event-overlay.ev-schontag.visible::before  { background: rgba(79,195,247,0.45); }
#event-overlay.ev-friday.visible::before    { background: rgba(255,80,20,0.5);   }
#event-overlay.ev-brand.visible::before     { background: rgba(255,50,0,0.5);    }
#event-overlay.ev-legende.visible::before   { background: rgba(180,60,220,0.45); }

/* Active event badge (during game) */
#active-event-badge {
  position: absolute;
  top: max(60px, calc(env(safe-area-inset-top) + 10px));
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #fff;
  background: rgba(180,100,0,0.95);
  border: 2px solid rgba(245,166,35,0.9);
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
  z-index: 25;
  white-space: nowrap;
  pointer-events: none;
  display: none;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  box-shadow: 0 0 18px rgba(245,166,35,0.5), 0 2px 8px rgba(0,0,0,0.6);
  animation: badgePulse 0.9s ease-in-out infinite alternate;
}
#active-event-badge.visible { display: block; }
@keyframes badgePulse {
  from { box-shadow: 0 0 10px rgba(245,166,35,0.35); transform: translateX(-50%) scale(1);    }
  to   { box-shadow: 0 0 26px rgba(245,166,35,0.75); transform: translateX(-50%) scale(1.05); border-color: #fff; }
}

/* ─── SCREEN: RESULT ──────────────────────────────────────── */
#screen-result {
  background: var(--bg);
  padding: 1rem 1.2rem 1.5rem;
  gap: 0;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

.result-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  filter: saturate(0.5);
}

.result-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
}

.result-emmy {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
  box-shadow: 0 0 30px rgba(245,166,35,0.3);
}
.result-emmy-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: -0.5rem;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
}

.result-verdict {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255,200,100,0.6);
  line-height: 1.6;
  max-width: 340px;
  border-left: 2px solid rgba(245,166,35,0.3);
  padding-left: 0.8rem;
  text-align: left;
  font-family: 'DM Mono', monospace;
}

.result-trophy { font-size: 3rem; }

.result-winner-name {
  font-size: clamp(2.5rem, 10vw, 4rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--gold);
}

.result-pfb {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(245,166,35,0.5);
  font-family: 'DM Mono', monospace;
  font-weight: 500;
}

.result-scores {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.result-score-block { text-align: center; }
.result-score-block .p-name {
  font-size: 0.7rem;
  color: rgba(255,200,100,0.4);
  margin-bottom: 0.2rem;
  font-family: 'DM Mono', monospace;
}
.result-score-block .p-score {
  font-size: 2.5rem;
  line-height: 1;
}
.result-score-block.winner .p-name { color: rgba(255,200,100,0.7); }
.score-sep {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.15);
  font-family: 'DM Mono', monospace;
}

.result-winner-photo {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
  box-shadow: 0 0 40px rgba(245,166,35,0.25);
}

.result-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.result-btn {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.12s ease-out;
}
.result-btn:active { transform: scale(0.96); }
.result-btn.primary {
  background: var(--gold);
  color: #080600;
  border: 2px solid var(--cream);
}
.result-btn.secondary {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
}
.result-btn.share {
  background: rgba(212,146,10,0.12);
  color: #F5B030;
  border: 1px solid rgba(212,146,10,0.35);
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

/* ─── SESSION PUNKTE TOAST ───────────────────────────────── */
.pfb-session-toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  background: rgba(8,6,0,0.96);
  border: 1px solid rgba(245,166,35,0.4);
  border-left: 3px solid var(--gold);
  padding: 0.7rem 1.1rem;
  max-width: min(360px, 90vw);
  width: max-content;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease-out;
  opacity: 0;
}
.pfb-session-toast.pst-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.pst-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(245,166,35,0.55);
  margin-bottom: 0.3rem;
}
.pst-scores {
  font-family: 'Anton', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.3;
}
.pst-scores b { color: var(--gold); }

/* ─── CONFETTI ────────────────────────────────────────────── */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}
.confetti-piece {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 100;
  will-change: transform, opacity;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  from { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  to   { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
