/* El / maç sonu penceresi (web/js/ui/endmodal.js): tüm oyunlarda aynı modern görünüm. */
.pt-over.eo-wrap { display: grid; place-items: center; overflow-y: auto; animation: eo-fade .25s ease-out both; z-index: 30; }
.pt-over-card.eo { position: relative; width: min(480px, 100%); margin: auto; padding: 0 18px 18px; gap: 12px; overflow: hidden; border-radius: 22px; text-align: center; max-height: none; animation: eo-pop .4s cubic-bezier(.2, 1.25, .4, 1) both; }
.eo::before { content: ''; position: absolute; inset: 0 0 auto; height: 160px; background: radial-gradient(120% 100% at 50% 0%, var(--eo-glow, color-mix(in srgb, var(--accent) 30%, transparent)), transparent 72%); pointer-events: none; }
.eo > * { position: relative; }
.eo.win { --eo-glow: rgba(251, 191, 36, .42); --eo-ring: #f59e0b; border-color: color-mix(in srgb, #f59e0b 55%, var(--line-strong)); }
.eo.lose { --eo-glow: rgba(148, 163, 184, .28); --eo-ring: #94a3b8; }
.eo.draw { --eo-glow: rgba(56, 189, 248, .3); --eo-ring: #38bdf8; }

.eo-hero { display: grid; place-items: center; margin-top: 20px; }
.eo-medal { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; line-height: 1; background: var(--surface-2); border: 2px solid var(--line-strong); box-shadow: 0 10px 28px rgba(0, 0, 0, .3), 0 0 0 7px color-mix(in srgb, var(--eo-ring, var(--accent)) 16%, transparent); animation: eo-bob 2.6s ease-in-out infinite; }
.eo.win .eo-medal { background: linear-gradient(145deg, #fde68a, #f59e0b); border-color: #fbbf24; }
.eo-title { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
.pt-over-card.eo h3.eo-title { font-size: 1.5rem; text-align: center; }
.eo-sub { margin: -4px 0 0; color: var(--dim); font-size: .86rem; line-height: 1.35; }

.eo-chips { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; padding: 9px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.eo-chips b { font-size: 1.15rem; font-variant-numeric: tabular-nums; } .eo-chips small { color: var(--dim); font-weight: 600; }
.eo-chips.win { background: color-mix(in srgb, #22c55e 16%, var(--surface-2)); border-color: color-mix(in srgb, #22c55e 45%, transparent); } .eo-chips.win b { color: #16a34a; }
.eo-chips.lose { background: color-mix(in srgb, #ef4444 12%, var(--surface-2)); border-color: color-mix(in srgb, #ef4444 40%, transparent); } .eo-chips.lose b { color: var(--danger); }

.eo-list { display: grid; gap: 8px; text-align: left; }
.eo-pl { display: grid; gap: 7px; padding: 9px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.eo-pl.won { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 13%, var(--surface-2)); }
.eo-pl.me { box-shadow: inset 3px 0 0 var(--accent); }
.eo-top { display: flex; align-items: center; gap: 10px; }
.eo-rk { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-size: 1.05rem; font-weight: 900; }
.eo-who { flex: 1; min-width: 0; display: grid; gap: 2px; } .eo-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .eo-who small { color: var(--dim); font-size: .7rem; }
.eo-col { flex: none; display: grid; justify-items: end; line-height: 1.05; min-width: 44px; }
.eo-col small { font-size: .56rem; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.eo-col b { font-size: 1.2rem; font-variant-numeric: tabular-nums; } .eo-col.big b { font-size: 1.5rem; }
.eo-col.bad b { color: var(--danger); } .eo-col.good b { color: #16a34a; }
.eo-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 6px 8px; border-radius: 10px; background: linear-gradient(180deg, #1f6b43, #165235); min-height: 38px; }
.eo-cards small { color: rgba(255, 255, 255, .85); font-weight: 700; padding: 0 4px; }
.eo-cards .pc.mini { --cw: 26px; margin-left: -10px; } .eo-cards .pc.mini:first-of-type { margin-left: 0; }

.eo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; }
.eo-next { display: grid; justify-items: center; gap: 7px; } .eo-next small { color: var(--dim); font-weight: 700; }
.eo-next i { display: block; width: 150px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 60% 100%; background-repeat: no-repeat; animation: eo-slide 1.3s ease-in-out infinite; }

.eo-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.eo-confetti i { position: absolute; top: -16px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); animation: eo-fall var(--s) ease-in var(--d) 1 both; }

@keyframes eo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes eo-pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes eo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes eo-slide { 0% { background-position: -80% 0; } 100% { background-position: 180% 0; } }
@keyframes eo-fall { to { transform: translateY(560px) rotate(calc(var(--r) + 540deg)); opacity: 0; } }

@media (max-width: 700px) {
  .pt-over-card.eo { padding: 0 12px 14px; gap: 10px; } .eo-medal { width: 62px; height: 62px; font-size: 2rem; } .pt-over-card.eo h3.eo-title { font-size: 1.25rem; }
  .eo-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; }
  .eo-rk { width: 26px; height: 26px; font-size: .95rem; } .eo-col b { font-size: 1.05rem; } .eo-col.big b { font-size: 1.25rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .pt-over-card.eo { width: min(720px, 100%); padding: 0 12px 10px; gap: 6px; } .eo-hero { margin-top: 10px; } .eo-medal { width: 44px; height: 44px; font-size: 1.4rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--eo-ring, var(--accent)) 16%, transparent); }
  .pt-over-card.eo h3.eo-title { font-size: 1.05rem; } .eo-sub { display: none; } .eo-list { grid-template-columns: 1fr 1fr; gap: 6px; } .eo-pl { padding: 6px 9px; gap: 4px; } .eo-cards { min-height: 26px; padding: 3px 6px; } .eo-cards .pc.mini { --cw: 18px; }
}
@media (prefers-reduced-motion: reduce) { .pt-over-card.eo, .eo-medal, .eo-next i, .eo-confetti i { animation-duration: 3s; } .eo-confetti { display: none; } }
