:root{
  --bg:#0b0d10;
  --panel:#151922;
  --text:#f6f8fb;
  --muted:#9ca7b7;
  --green:#65e879;
  --green2:#a9ff6a;
  --border:rgba(255,255,255,.08);
  --shadow:0 25px 80px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
html{background:var(--bg);color-scheme:dark}
body{
  margin:0;min-height:100vh;color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 15% -5%, rgba(101,232,121,.13), transparent 32rem),
    radial-gradient(circle at 100% 15%, rgba(113,201,255,.09), transparent 30rem),
    var(--bg);
}
a{color:inherit;text-decoration:none}
.topbar{
  position:sticky;top:0;z-index:30;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px clamp(16px,4vw,48px);
  background:rgba(11,13,16,.78);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(18px)
}
.brand{display:flex;align-items:center;gap:11px;font-weight:900}
.brand-mark{
  display:grid;place-items:center;width:38px;height:38px;border-radius:9px;
  color:#071009;background:linear-gradient(145deg,var(--green2),var(--green));font-size:.77rem
}
main{width:min(1180px,calc(100% - 32px));margin:auto;padding:44px 0 80px}
.hero,.card,.stat,.panel{border:1px solid var(--border);box-shadow:var(--shadow)}
.hero{
  position:relative;overflow:hidden;min-height:320px;padding:clamp(28px,5vw,56px);
  display:flex;flex-direction:column;justify-content:flex-end;border-radius:26px;
  background:
    radial-gradient(circle at 80% 15%, rgba(101,232,121,.22), transparent 30%),
    linear-gradient(145deg,#1a2029,#101319)
}
.eyebrow{
  color:var(--green);font-size:.8rem;font-weight:900;text-transform:uppercase;
  letter-spacing:.14em;margin-bottom:12px
}
h1,h2,p{margin-top:0}
h1{font-size:clamp(2.5rem,8vw,6rem);line-height:.92;letter-spacing:-.06em;margin-bottom:16px}
h2{font-size:clamp(1.6rem,4vw,2.4rem);letter-spacing:-.04em}
.lead{max-width:760px;color:#c8d0db;font-size:1.08rem;line-height:1.65}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:42px 0 17px}
.section-head p{margin:0;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{
  padding:22px;border-radius:20px;background:rgba(255,255,255,.04);transition:.18s ease
}
a.card:hover{transform:translateY(-4px);border-color:rgba(101,232,121,.38);background:rgba(101,232,121,.06)}
.card-title{font-size:1.2rem;font-weight:850;letter-spacing:-.02em}
.card-meta{margin-top:6px;color:var(--muted)}
.icon{
  display:grid;place-items:center;width:48px;height:48px;margin-bottom:24px;
  border-radius:13px;background:linear-gradient(145deg,#69c857,#327b2d)
}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.stat{
  min-height:150px;padding:22px;border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  display:flex;flex-direction:column;justify-content:space-between
}
.stat-label{color:var(--muted);font-weight:700}
.stat-value{font-size:clamp(2rem,5vw,3.8rem);font-weight:950;letter-spacing:-.055em}
.avatar{
  width:52px;height:52px;border-radius:11px;image-rendering:pixelated;
  background:rgba(255,255,255,.06);border:1px solid var(--border)
}
.player-line{display:flex;align-items:center;gap:12px}
.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);margin-bottom:18px}
.breadcrumbs a:hover{color:var(--green)}
.rank-list{display:grid;gap:9px}
.rank-row{
  display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;
  padding:14px 15px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.03)
}
.rank-pos{font-weight:900;color:var(--green)}
.error{
  padding:28px;border-radius:20px;border:1px solid rgba(255,100,100,.22);
  background:rgba(255,100,100,.07)
}
.loading{color:var(--muted);padding:80px 0;text-align:center}
.footer{text-align:center;color:#687385;padding:25px}
@media(max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:650px){
  main{width:min(100% - 22px,1180px);padding-top:25px}
  .grid,.stats{grid-template-columns:1fr}
  .hero{min-height:290px;padding:26px 22px}
}


/* Wrapped stories */
.story-shell{
  margin-bottom:34px;
}
.story{
  position:relative;
  min-height:560px;
  border:1px solid var(--border);
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:#11151c;
}
.story-progress{
  position:absolute;
  top:14px;left:14px;right:14px;
  display:grid;
  grid-template-columns:repeat(var(--slides),1fr);
  gap:6px;
  z-index:10;
}
.story-progress span{
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  overflow:hidden;
}
.story-progress span::after{
  content:"";
  display:block;
  width:0;height:100%;
  background:#fff;
}
.story-progress span.active::after{
  width:100%;
  transition:width var(--duration) linear;
}
.story-progress span.done::after{width:100%}
.story-slide{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease;
  padding:70px clamp(28px,6vw,70px) 56px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.story-slide.active{
  opacity:1;
  pointer-events:auto;
}
.story-slide:nth-child(2n){
  background:
    radial-gradient(circle at 80% 10%, rgba(101,232,121,.32), transparent 34%),
    linear-gradient(145deg,#16221a,#101319);
}
.story-slide:nth-child(2n+1){
  background:
    radial-gradient(circle at 15% 15%, rgba(113,201,255,.27), transparent 34%),
    linear-gradient(145deg,#171d27,#101319);
}
.story-slide h2{
  font-size:clamp(2.7rem,7vw,6.6rem);
  line-height:.95;
  letter-spacing:-.06em;
  margin-bottom:16px;
}
.story-kicker{
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:900;
  color:var(--green);
  margin-bottom:12px;
}
.story-sub{
  max-width:780px;
  color:#d2d9e4;
  font-size:1.15rem;
  line-height:1.55;
}
.story-click{
  position:absolute;
  top:0;bottom:0;
  width:35%;
  z-index:12;
  cursor:pointer;
}
.story-click.prev{left:0}
.story-click.next{right:0}
.story-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:13px;
  padding:11px 15px;
  cursor:pointer;
  color:var(--text);
  background:rgba(255,255,255,.06);
  font-weight:800;
}
.btn:hover{background:rgba(255,255,255,.1)}
.btn-primary{
  color:#08110a;
  background:linear-gradient(145deg,var(--green2),var(--green));
  border-color:transparent;
}
.data-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.data-section{
  padding:20px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.03);
}
.data-section h3{
  margin:0 0 14px;
  font-size:1.15rem;
}
.data-list{
  display:grid;
  gap:8px;
}
.data-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.data-row:last-child{border-bottom:0}
.more-wrap{margin-top:12px}
.hidden-row{display:none}
.hidden-row.show{display:grid}
.share-note{
  margin-top:14px;
  color:var(--muted);
  font-size:.92rem;
}
@media(max-width:760px){
  .story{min-height:500px}
  .data-grid{grid-template-columns:1fr}
}


/* V5 refinements */
.story{
  min-height:620px;
}
.story-slide{
  padding-bottom:72px;
}
.story-slide::after{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  right:-100px;
  top:80px;
  border:28px solid rgba(255,255,255,.04);
  border-radius:56px;
  transform:rotate(28deg);
  pointer-events:none;
}
.story-big{
  font-size:clamp(3.4rem,9vw,8rem);
  line-height:.88;
  letter-spacing:-.07em;
  font-weight:950;
  margin:8px 0 20px;
}
.story-detail-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
  max-width:820px;
}
.story-detail{
  padding:13px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
}
.story-detail strong{
  display:block;
  font-size:1.15rem;
  margin-top:3px;
}
.story-detail span{
  color:#b9c3d0;
  font-size:.82rem;
}
.rank-section{
  position:relative;
}
.rank-section.expanded{
  padding-bottom:68px;
}
.more-wrap{
  margin-top:12px;
}
.rank-section.expanded .more-wrap{
  position:sticky;
  bottom:16px;
  z-index:18;
  display:flex;
  justify-content:center;
  pointer-events:none;
  margin-top:18px;
}
.rank-section.expanded .more-wrap .btn{
  pointer-events:auto;
  box-shadow:0 16px 42px rgba(0,0,0,.45);
  background:rgba(22,27,36,.96);
  backdrop-filter:blur(16px);
}
.story-controls .share-note{
  display:none;
}
.download-hint{
  color:var(--muted);
  margin-top:10px;
  font-size:.9rem;
}
@media(max-width:760px){
  .story{min-height:570px}
  .story-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* V7: Story per Klick pausieren */
.story.paused::before{
  content:"PAUSIERT";
  position:absolute;
  right:18px;
  bottom:18px;
  z-index:20;
  padding:8px 11px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  color:#fff;
  background:rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(12px);
}

.story.paused .story-progress span.active::after{
  animation-play-state:paused;
}

/* Der Fortschritt bleibt auch visuell stehen, wenn die Story pausiert ist. */
.story-progress span.active::after{
  transition:none;
  animation:storyProgress 5s linear forwards;
}

@keyframes storyProgress{
  from{width:0}
  to{width:100%}
}
