/* ŽABA Wrapped: příběhy ze Síně slávy na celou obrazovku (styl Instagram stories a Spotify Wrapped).
   Animují se jen transform a opacity, respektuje se reduced motion, ovládání má aspoň 44 px. */
.wr-open { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: var(--sp-4, 16px); padding: 0 26px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--sec-gold, #f2bd4f), var(--sec-green, #9bd843)); color: #10170a; font: 800 15px var(--font-mono, monospace); letter-spacing: .02em; cursor: pointer; touch-action: manipulation; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.wr-open:active { transform: scale(.97); }
.wr-open:focus-visible, .wr button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .wr-open:hover { filter: brightness(1.06); } }

.wr { --wr-ease: cubic-bezier(0.23, 1, 0.32, 1); position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(2, 8, 4, .94); overscroll-behavior: contain; }
.wr.is-open { display: flex; }
.wr-frame { position: relative; width: min(100%, 460px); height: min(100%, 860px); overflow: hidden; background: #07120b; color: #fff; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
@media (min-width: 520px) { .wr-frame { border-radius: 24px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); } }

.wr-top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; padding: max(14px, env(safe-area-inset-top)) 14px 0; display: grid; gap: 10px; pointer-events: none; }
.wr-bars { display: flex; gap: 4px; }
.wr-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.wr-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left center; transform: scaleX(0); }
.wr-bar.is-done i { transform: scaleX(1); }
.wr-bar.is-now i { animation: wr-fill var(--wr-dur, 6500ms) linear forwards; animation-play-state: var(--wr-play, running); }
@keyframes wr-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: auto; }
.wr-brand { display: flex; align-items: center; gap: 8px; font: 800 12px var(--font-mono, monospace); letter-spacing: .14em; text-transform: uppercase; }
.wr-brand img { width: auto; height: 32px; }
.wr-tools { display: flex; gap: 6px; }
.wr-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 16px; cursor: pointer; touch-action: manipulation; transition: transform 140ms var(--wr-ease), background-color 160ms ease; }
.wr-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .wr-btn:hover { background: rgba(0, 0, 0, .55); } }

.wr-slides { position: absolute; inset: 0; }
.wr-slide { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 18px; padding: max(88px, calc(env(safe-area-inset-top) + 72px)) 28px max(40px, env(safe-area-inset-bottom)); text-align: center; overflow: hidden; }
.wr-slide.is-on { display: flex; }
.wr-slide::before { content: ""; position: absolute; inset: -20%; z-index: 0; background: var(--wr-bg); transform: translate3d(0, 0, 0); }
.wr-slide.is-on::before { animation: wr-drift 14s ease-in-out infinite alternate; }
@keyframes wr-drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.wr-slide > * { position: relative; z-index: 1; }
.is-green { --wr-bg: radial-gradient(80% 60% at 20% 15%, #2f8a3d 0%, transparent 60%), radial-gradient(70% 60% at 90% 90%, #9bd843 0%, transparent 55%), #0a2312; }
.is-gold { --wr-bg: radial-gradient(80% 60% at 80% 10%, #f2bd4f 0%, transparent 58%), radial-gradient(70% 60% at 10% 95%, #b4561e 0%, transparent 55%), #26170a; }
.is-blue { --wr-bg: radial-gradient(80% 60% at 15% 10%, #4a8fe0 0%, transparent 58%), radial-gradient(70% 60% at 90% 90%, #7ae0c4 0%, transparent 55%), #08182b; }
.is-violet { --wr-bg: radial-gradient(80% 60% at 85% 12%, #8c64e6 0%, transparent 58%), radial-gradient(70% 60% at 10% 92%, #e0649f 0%, transparent 55%), #1a0c2b; }

.wr-eyebrow { margin: 0; font: 800 12px var(--font-mono, monospace); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.wr-title { margin: 0; font: 900 clamp(30px, 9vw, 44px)/1.08 var(--font-mono, monospace); letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.wr-big { margin: 0; font: 900 clamp(64px, 24vw, 128px)/.95 var(--font-mono, monospace); letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wr-big small { font-size: .45em; letter-spacing: 0; }
.wr-sub { margin: 0; font: 600 17px/1.4 var(--font-sans, system-ui, sans-serif); color: rgba(255, 255, 255, .88); text-wrap: balance; }
.wr-hint { margin: 14px 0 0; font: 700 12px var(--font-mono, monospace); letter-spacing: .08em; color: rgba(255, 255, 255, .6); }

.wr-chart { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 220px; padding: 0 4px; }
.wr-col { flex: 1; max-width: 70px; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font: 800 12px var(--font-mono, monospace); font-variant-numeric: tabular-nums; }
.wr-col i { display: block; width: 100%; border-radius: 10px 10px 3px 3px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .55)); transform-origin: bottom; transform: scaleY(0); }
.wr-slide.is-on .wr-col i { animation: wr-grow 700ms var(--wr-ease) forwards; animation-delay: calc(var(--i) * 110ms + 250ms); }
@keyframes wr-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.wr-col b { font-weight: 900; font-size: 13px; }

.wr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.wr-stat { padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .14); }
.wr-stat b { display: block; font: 900 28px/1.1 var(--font-mono, monospace); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wr-stat span { display: block; margin-top: 4px; font: 600 13px/1.3 var(--font-sans, system-ui, sans-serif); color: rgba(255, 255, 255, .8); }

.wr-win { display: grid; justify-items: center; gap: 8px; }
.wr-win img, .wr-win .wr-ico { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: rgba(0, 0, 0, .3); display: grid; place-items: center; font-size: 44px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.wr-win .wr-kind { font: 800 12px var(--font-mono, monospace); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.wr-win .wr-name { font: 900 28px/1.1 var(--font-mono, monospace); overflow-wrap: anywhere; }
.wr-win .wr-note { font: 600 14px/1.3 var(--font-sans, system-ui, sans-serif); color: rgba(255, 255, 255, .8); }
.wr-wins { display: grid; gap: 22px; }
.wr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wr-chips li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); font: 700 13px var(--font-mono, monospace); }

.wr-actions { display: grid; gap: 10px; margin-top: 8px; }
.wr-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; color: #0a1a05; font: 800 14px var(--font-mono, monospace); text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform 140ms var(--wr-ease); }
.wr-cta.is-ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.wr-cta:active { transform: scale(.97); }

/* Vstup obsahu karty: jen opacity a transform, postupně */
.wr-slide.is-on > * { animation: wr-in 460ms var(--wr-ease) both; animation-delay: calc(var(--k, 0) * 70ms); }
@keyframes wr-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }


@media (prefers-reduced-motion: reduce) {
  .wr-slide.is-on::before, .wr-slide.is-on > *, .wr-slide.is-on .wr-col i { animation: none; }
  .wr-slide.is-on .wr-col i { transform: scaleY(1); }
}

/* Hudba, sdílení a video (5.20.16) */
.wr-yr { font: 700 11px var(--font-mono, monospace); opacity: .75; }
.wr-chart { gap: 12px; }
.wr-col { gap: 4px; }
.wr-sheet { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: 18px 20px max(20px, env(safe-area-inset-bottom)); background: #0d1f13; border-top: 1px solid rgba(255, 255, 255, .22); text-align: center; animation: wr-sheet-in 220ms var(--wr-ease) both; }
.wr-sheet[hidden] { display: none; }
@keyframes wr-sheet-in { from { transform: translate3d(0, 24px, 0); opacity: 0; } to { transform: translate3d(0, 0, 0); opacity: 1; } }
.wr-sheet-msg { margin: 0; min-height: 18px; font: 600 13px/1.4 var(--font-sans, system-ui, sans-serif); color: rgba(255, 255, 255, .85); }
.wr-prog { height: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.wr-prog[hidden] { display: none; }
.wr-prog i { display: block; height: 100%; background: #fff; transform-origin: left center; transform: scaleX(0); }
.wr-cta:disabled { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .wr-sheet { animation: none; } }
.wr-cta[hidden], .wr-sheet [hidden] { display: none; }
