/* Joculus Studios — wiki-pop-order.css
   Nur für das Pop-Order-Wiki: Bubble-Runde, Pfeil-Pop-Brett, Album, Screenshots.
   Farben und Bubble-Optik aus www/css/redesign.css der App (Aurora-Look). */

.po-btn {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); cursor: pointer;
  background: var(--surface); color: var(--text); font: 600 0.88rem var(--font-body);
}
.po-btn:hover { background: var(--surface-hover); }
.po-btn:focus-visible, .po-bubble:focus-visible, .po-demo-tipp:focus-visible { outline: 3px solid #ffcf69; outline-offset: 3px; }
.po-btn:disabled { opacity: 0.45; cursor: default; }
.po-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Bubble-Runde ---------- */
.po-demo {
  position: relative; max-width: 520px; margin: 20px 0 30px; padding: 14px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #07172fcc, #102b44cc), url('/assets/wiki/pop-order/bilder/aurora.webp') center/cover;
  border: 1px solid #77bbca55; color: #fff7e6;
}
.po-demo-aufgabe {
  margin: 0 0 10px !important; padding: 12px 14px; border-radius: 18px; border: 1px solid #74c4cb70; background: #0b2038ed;
  font-weight: 700; font-size: 1.05rem; line-height: 1.3; text-align: center; color: #fff7e6;
}
.po-demo-leiste { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #bbcedc; }
.po-demo-punkte { font-weight: 800; color: #ffcf69; font-variant-numeric: tabular-nums; }
.po-demo-kombo { padding: 2px 10px; border-radius: 999px; background: #ffffff24; font-weight: 900; color: #66e2cc; animation: po-kombo 0.32s cubic-bezier(0.2, 2, 0.4, 1); }
.po-demo-kombo.stufe2 { background: rgba(75, 225, 195, 0.24); }
.po-demo-kombo.stufe3 { background: rgba(255, 217, 59, 0.28); box-shadow: 0 0 18px rgba(255, 217, 59, 0.35); color: #ffcf69; }
@keyframes po-kombo { from { transform: scale(0.7); } to { transform: scale(1); } }
.po-demo-dots { display: flex; gap: 5px; margin-left: auto; }
.po-demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ffffff30; }
.po-demo-dots i.done { background: #66e2cc; }
.po-demo-tipp { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffcf6980; background: #153650; font-size: 18px; cursor: pointer; transition: opacity 0.2s; }
.po-demo-tipp.wartet { opacity: 0.45; cursor: default; }
.po-demo-feld { position: relative; height: clamp(280px, 70vw, 360px); margin-top: 10px; }

.po-bubble {
  position: absolute; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  padding: 0; cursor: pointer; font: inherit; color: #fff7df;
  background: radial-gradient(circle at 30% 22%, #ffffff64, transparent 36%), radial-gradient(circle at 50% 56%, #102840d1 0 35%, #24445972 60%, #a9eee944 83%, #e5fff599 100%);
  border: 2px solid #d1fff3b8;
  box-shadow: inset 0 2px 8px #ffffff80, inset 0 -8px 20px #55d4d547, 0 8px 22px #010b1f40;
  animation: po-float var(--bob-dur, 4s) ease-in-out var(--bob-delay, 0s) infinite alternate;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.po-bubble::before { content: ''; position: absolute; left: 19%; top: 10%; width: 30%; height: 13%; border-radius: 50%; background: linear-gradient(170deg, #fff9, #fff0); transform: rotate(-32deg); pointer-events: none; }
@keyframes po-float { from { transform: translate(-2px, 4px) rotate(-2deg); } to { transform: translate(2px, -8px) rotate(2deg); } }
.po-bubble-icon { font-size: calc(var(--bsize) * 0.36); line-height: 1.1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; pointer-events: none; filter: drop-shadow(0 2px 3px #07172f66); }
.po-bubble-label { width: 74%; font-size: 0.78rem; font-weight: 700; line-height: 1.15; text-align: center; overflow-wrap: anywhere; text-shadow: 0 2px 3px #031326; pointer-events: none; }
.po-bubble.wrong { animation: po-shake 0.35s; }
@keyframes po-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px) rotate(-4deg); } 40% { transform: translateX(10px) rotate(4deg); } 60% { transform: translateX(-7px); } 80% { transform: translateX(7px); } }
.po-bubble.popping { animation: po-popout 0.35s ease-out forwards; pointer-events: none; }
@keyframes po-popout { 0% { transform: scale(1); opacity: 1; } 45% { transform: scale(1.28); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
.po-bubble.tipp:not(.popping) {
  border-color: #ffcf69;
  box-shadow: inset 0 -10px 22px rgba(0, 0, 0, 0.16), inset 0 8px 18px rgba(255, 255, 255, 0.25), 0 0 0 5px #ffcf69, 0 0 34px 10px rgba(255, 217, 59, 0.65);
}
.po-ring { position: absolute; pointer-events: none; z-index: 4; border: 3px solid #baffef; border-radius: 50%; animation: po-ring 0.38s ease-out forwards; }
@keyframes po-ring { to { transform: scale(var(--ring-scale, 1.3)); opacity: 0; } }
.po-particle { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 60% 40% 65% 35%; box-shadow: 0 0 5px #e2fffa77; pointer-events: none; z-index: 5; animation: po-fly 0.6s ease-out forwards; }
@keyframes po-fly { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--px), var(--py)) scale(0.2); opacity: 0; } }
.po-punkte-pop { position: absolute; z-index: 6; font-weight: 900; color: #ffcf69; text-shadow: 0 2px 7px rgba(0, 0, 0, 0.55); pointer-events: none; white-space: nowrap; animation: po-punkte 0.85s ease-out forwards; }
@keyframes po-punkte { from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; } 25% { transform: translate(-50%, -75%) scale(1.15); opacity: 1; } to { transform: translate(-50%, -155%) scale(1); opacity: 0; } }
.po-finale { position: absolute; width: 32px; height: 32px; border: 2px solid #cffef5; box-shadow: inset 0 0 12px #88ffe77a; border-radius: 50%; pointer-events: none; animation: po-finale 0.35s ease-out both; }
@keyframes po-finale { 0% { opacity: 0; transform: scale(0.3); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }

.po-demo-ende { margin-top: 10px; padding: 22px 18px; border-radius: 24px; text-align: center; background: linear-gradient(150deg, #193b52, #0b2038); border: 1px solid #78c3ca66; }
.po-demo-ende p { margin: 0 auto 8px !important; }
.po-sterne { font-size: 2.4rem; letter-spacing: 6px; color: #ffffff30; }
.po-sterne .an { color: #ffcf69; display: inline-block; animation: po-stern 0.5s cubic-bezier(0.2, 2.2, 0.4, 1) both; }
@keyframes po-stern { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
.po-ende-titel { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff7e6; }
.po-ende-sub { font-size: 0.85rem; color: #bbcedc; }
.po-ende-punkte { display: inline-block; padding: 6px 22px; border-radius: 16px; background: #07172f; font-size: 1.9rem; font-weight: 900; color: #fff7e6; }
.po-ende-tab { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; max-width: 240px; margin: 6px auto 10px; font-size: 0.85rem; color: #bbcedc; text-align: left; }
.po-ende-tab dd { margin: 0; text-align: right; color: #fff7e6; font-variant-numeric: tabular-nums; }
.po-ende-spruch { color: #66e2cc; font-weight: 700; }
.po-ende-why { margin: 6px 0 12px; padding: 10px 14px; border-radius: 16px; background: #154348; border: 1px solid #71ddc955; text-align: left; color: #e6f4f1; font-size: 0.92rem; }
.po-ende-why summary { cursor: pointer; font-weight: 700; }
.po-ende-why p { margin: 8px 0 0 !important; line-height: 1.5; }

/* ---------- Pfeil-Pop ---------- */
.po-pfeil { max-width: 520px; margin: 20px 0 30px; }
.po-pfeil-laden { color: var(--text-faint); }
.po-pfeil-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; font-size: 0.86rem; color: var(--text-faint); }
.po-pfeil-kopf strong { color: var(--text); }
.po-pfeil-herzen { margin-left: auto; color: #ff5d73; letter-spacing: 2px; }
.po-pfeil-herzen i { font-style: normal; display: inline-block; }
.po-pfeil-herzen i.leer { color: var(--border-strong); }
.po-pfeil-herzen i.bricht { animation: po-herz 0.6s ease-out; }
@keyframes po-herz { 0% { color: #ff5d73; transform: scale(1.5); } 60% { transform: scale(0.7) rotate(-12deg); } 100% { transform: none; } }
.po-pfeil-balken { height: 5px; margin-bottom: 10px; border-radius: 999px; background: #ffffff14; overflow: hidden; }
.po-pfeil-balken i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #54d7c2, #ffd25a); transition: width 0.35s cubic-bezier(.2, .9, .3, 1); }
.po-pfeil-brett {
  position: relative; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1d4a63 0%, #0f2b44 45%, #08162a 100%);
  box-shadow: inset 0 1px 0 #ffffff18, inset 0 -30px 60px #0004, 0 18px 50px #0008;
}
.po-pfeil-brett::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#ffffff12 1px, transparent 1.2px); background-size: 18px 18px; pointer-events: none; }
.po-pfeil-brett canvas { position: relative; display: block; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.po-pfeil-hinweis {
  position: absolute; left: 50%; bottom: 12px; max-width: 90%; margin: 0 !important; padding: 8px 14px; border-radius: 14px;
  background: #0e2a40f2; border: 1px solid #8fe3d855; color: #fff7e6; font-size: 0.86rem; text-align: center; line-height: 1.35;
  transform: translate(-50%, 14px); opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.po-pfeil-hinweis.an { opacity: 1; transform: translate(-50%, 0); }

.po-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 18px 0 28px; }
.po-album-bild { margin: 0 !important; padding: 12px; border-radius: 16px; background: #0f2b44; border: 1px solid var(--border); }
.po-album-bild canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.po-album-bild figcaption { margin-top: 8px !important; font-size: 0.8rem !important; line-height: 1.35; }

/* ---------- Screenshots ---------- */
.po-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.po-shots figure { margin: 0 !important; }
.po-shots img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); background: #07172f; }

@media (prefers-reduced-motion: reduce) {
  .po-bubble, .po-demo-kombo, .po-sterne .an, .po-pfeil-herzen i.bricht { animation: none; }
  .po-bubble.popping { animation: none; opacity: 0; }
  .po-bubble.wrong { animation: none; outline: 3px solid #ff5d73; }
}

.wiki-content .po-hinweis-klein { font-size: 0.86rem; color: var(--text-faint); }
