/* ===== 16_worldbreak.css =====
   Nová značka Worldbreak a „wow“ úvodní stránka (listopad 2026).
   Logo s odleskem, trhlina světla přes oblohu, krystalové střepy, živá čísla světa a karty „co tě čeká“.
   Pohyb respektuje nastavení animací (body[data-anim] full / low / off) i systémové „omezit pohyb“. */

/* ---------- logo všude: celé, nic neořezávat ---------- */
#scr-site[data-account-page] .account-brand img,
#scr-site[data-account-page] .account-login-brand img,
#scr-site[data-admin-page] .admin-brand img { object-fit: contain; }

/* ---------- úvod: rozvržení ---------- */
#scr-site[data-public-page] .wb-home .public-home-hero { flex-direction: column; }
#scr-site[data-public-page] .wb-home .public-home-copy { flex: 1 1 auto; justify-content: center; }
#scr-site[data-public-page] .wb-home .public-home-copy > h1.wb-title {
  position: relative; width: min(680px, 48vw); margin: 0 0 6px; line-height: 0; letter-spacing: 0; }
.wb-title .wb-logo { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)) drop-shadow(0 0 26px rgba(90, 220, 255, .16)); }
/* záře za logem dýchá */
.wb-title::before { content: ""; position: absolute; inset: 6% -6% 0 4%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse at 22% 52%, rgba(120, 235, 255, .30), transparent 42%),
              radial-gradient(ellipse at 55% 55%, rgba(255, 200, 110, .20), transparent 62%);
  filter: blur(10px); animation: wbBreath 5.5s ease-in-out infinite; }
@keyframes wbBreath { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
/* odlesk přejíždí jen po písmenech (maska = samotné logo) */
.wb-title .wb-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url("../assets/ui/worldbreak-logo.png") center / 100% 100% no-repeat; mask: url("../assets/ui/worldbreak-logo.png") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 0 42%, rgba(255, 246, 214, .9) 49%, rgba(150, 240, 255, .7) 53%, transparent 60% 100%);
  background-size: 320% 100%; background-position: 150% 0; animation: wbShine 7s ease-in-out 2.6s infinite; }
@keyframes wbShine { 0%, 58% { background-position: 150% 0; } 88%, 100% { background-position: -70% 0; } }
/* vstup loga: světlo trhliny ho „vykovají“ */
.wb-home .wb-title .wb-logo { animation: wbLogoIn 1.5s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes wbLogoIn {
  0% { opacity: 0; transform: scale(1.18) translateY(6px); filter: blur(12px) brightness(2.6); }
  45% { opacity: 1; filter: blur(0) brightness(1.7) drop-shadow(0 0 30px rgba(150, 240, 255, .8)); }
  100% { opacity: 1; transform: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)) drop-shadow(0 0 26px rgba(90, 220, 255, .16)); } }

/* krystalové střepy kolem loga */
.wb-shards { position: absolute; inset: -12% -4%; pointer-events: none; }
.wb-shard { position: absolute; width: 12px; height: 20px; opacity: .9;
  clip-path: polygon(50% 0, 100% 42%, 62% 100%, 18% 78%, 0 30%);
  background: linear-gradient(160deg, #e9fdff, #5fe1ff 40%, #7b4dff 100%);
  filter: drop-shadow(0 0 6px rgba(110, 230, 255, .9));
  animation: wbShard calc(6s + var(--i) * 1.3s) ease-in-out calc(var(--i) * -1.7s) infinite; }
.wb-shard:nth-child(1) { left: 6%; top: 4%; scale: .9; }
.wb-shard:nth-child(2) { left: 24%; top: -2%; scale: .6; }
.wb-shard:nth-child(3) { left: 2%; top: 78%; scale: .75; }
.wb-shard:nth-child(4) { left: 31%; top: 86%; scale: .55; }
.wb-shard:nth-child(5) { left: 63%; top: 0%; scale: .5; }
.wb-shard:nth-child(6) { left: 92%; top: 10%; scale: .7; }
.wb-shard:nth-child(7) { left: 80%; top: 88%; scale: .5; }
@keyframes wbShard { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(6px, -10px) rotate(25deg); }
  66% { transform: translate(-5px, -4px) rotate(-18deg); } }

/* ---------- trhlina světla přes oblohu ---------- */
.wb-home .wb-rift { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; overflow: visible; }
.wb-rift path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wb-rift-glow { stroke: #8f62ff; stroke-width: 12; filter: url(#wbGlow); opacity: .5; }
.wb-rift-core { stroke: #d9fbff; stroke-width: 2.2; opacity: .85; }
.wb-home .wb-rift path { animation: wbRiftDraw 1.1s cubic-bezier(.6, 0, .2, 1) .2s backwards, wbRiftFlicker 9s ease-in-out 1.6s infinite; }
@keyframes wbRiftDraw { from { stroke-dashoffset: 1; } }
@keyframes wbRiftFlicker {
  0%, 100% { opacity: .55; } 40% { opacity: .35; }
  71% { opacity: .45; } 72% { opacity: 1; } 73% { opacity: .3; } 74% { opacity: .95; } 78% { opacity: .5; } }
/* záblesk ve chvíli, kdy se svět „zlomí“ */
.wb-home .public-home-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 70% 45% at 60% 22%, rgba(190, 245, 255, .55), rgba(140, 90, 255, .18) 45%, transparent 70%);
  opacity: 0; animation: wbFlash 1.6s ease-out 1s; }
@keyframes wbFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- živá čísla světa ---------- */
.wb-live { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wb-chip { display: inline-flex; flex-direction: column; min-width: 112px; padding: 7px 14px 8px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(14, 24, 42, .78), rgba(6, 10, 20, .68)); border: 1px solid rgba(120, 220, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); text-shadow: none; }
.wb-chip small { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); letter-spacing: 1.5px; text-transform: uppercase; color: #9fdcec; }
.wb-chip b { font-size: var(--fs-xl); line-height: 1.15; color: #fff2cf; font-variant-numeric: tabular-nums; }
.wb-chip-online small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ef08a; box-shadow: 0 0 8px #4ef08a;
  animation: wbDot 1.8s ease-in-out infinite; }
@keyframes wbDot { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .45; scale: .7; } }
.wb-chip-bosses { border-color: rgba(255, 140, 110, .38); }
.wb-chip-bosses b { color: #ffc6a8; }

/* ---------- karty „co tě čeká“ ---------- */
.wb-cards { position: relative; z-index: 2; flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0 5vw 22px; }
.wb-card { position: relative; overflow: hidden; padding: 14px 16px 15px; border-radius: 14px; color: #ddd6c6;
  background: linear-gradient(165deg, rgba(22, 32, 56, .78), rgba(8, 12, 24, .7)); border: 1px solid rgba(233, 199, 123, .32);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4); backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  animation: wbCardIn .8s cubic-bezier(.2, .8, .2, 1) calc(1.1s + var(--i) * .12s) backwards; }
.wb-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #f5cf7c, #7fe8ff, transparent); opacity: .7; }
.wb-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(circle at 30% 0%, rgba(120, 230, 255, .18), transparent 60%); }
.wb-card:hover { transform: translateY(-4px); border-color: rgba(127, 232, 255, .6); box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 26px rgba(90, 220, 255, .22); }
.wb-card:hover::after { opacity: 1; }
.wb-card .foundation-icon { width: 30px; height: 30px; float: left; margin: 2px 10px 0 0; }
.wb-card h2 { margin: 0 0 4px; padding: 0; border: 0; font-size: var(--fs-l); color: #ffe6ad; letter-spacing: .3px; }
.wb-card p { margin: 0; font-size: var(--fs-s); line-height: 1.4; clear: left; }
@keyframes wbCardIn { from { opacity: 0; transform: translateY(22px); } }

/* menší výška obrazovky: karty pryč, ať vynikne scéna */
@media (max-height: 760px) { .wb-cards { display: none; } }

/* ---------- telefon ---------- */
body[data-mobile="true"] #scr-site[data-public-page] .wb-home .public-home-copy > h1.wb-title { width: min(92vw, 420px); margin: 0 auto 4px; }
body[data-mobile="true"] .wb-cards { display: none; }
body[data-mobile="true"] .wb-live { justify-content: center; gap: 6px; margin-top: 10px; }
body[data-mobile="true"] .wb-chip { min-width: 0; padding: 5px 10px 6px; }
body[data-mobile="true"] .wb-chip small { font-size: 10px; letter-spacing: 1px; }
body[data-mobile="true"] .wb-chip b { font-size: var(--fs-l); }
body[data-mobile="true"] .wb-shard { width: 9px; height: 15px; }

/* ---------- animace podle nastavení ---------- */
body[data-anim="low"] .wb-title::before, body[data-anim="low"] .wb-chip-online small::before,
body[data-anim="low"] .wb-title .wb-shine, body[data-anim="low"] .wb-shard { animation: none; }
body[data-anim="low"] .wb-home .wb-rift path { animation: wbRiftDraw 1.1s cubic-bezier(.6, 0, .2, 1) .2s backwards; }
body[data-anim="off"] .wb-home *, body[data-anim="off"] .wb-home .public-home-hero::after,
body[data-anim="off"] .wb-title::before { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  body:not([data-anim="full"]) .wb-home *, body:not([data-anim="full"]) .wb-home .public-home-hero::after,
  body:not([data-anim="full"]) .wb-title::before { animation: none !important; }
}
