/* FlammiCraft Entwurf: gemeinsames Stylesheet fuer /, /play, /rules.
   Design Read: Community-Startseite fuer Spielerinnen und Spieler, im Polaroid-/Pinnwand-Stil von Flammis Feuerstelle.
   Dials: ENERGY 3 / RHYTHM 3 / MOTION 1 (nur Hover und Fokus, keine Endlosanimationen).
   Begruendungen der Entscheidungen stehen in README.md. */

@font-face{font-family:"Fredoka";src:url(/assets/fonts/fredoka.woff2) format("woff2");font-weight:300 700;font-display:swap}
@font-face{font-family:"Baloo 2";src:url(/assets/fonts/baloo-2.woff2) format("woff2");font-weight:400 800;font-display:swap}
@font-face{font-family:"Caveat";src:url(/assets/fonts/caveat.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Patrick Hand";src:url(/assets/fonts/patrick-hand.woff2) format("woff2");font-weight:400;font-display:swap}

:root{
  --pink:#ff4fa3;--pink-text:#c2186f;--yellow:#ffd23f;--plum:#3a1050;--plum-deep:#2a0f3a;--cream:#fff8e7;
  --bg:#fff8fc;--alt:#fff0f7;--card:#fff;--t:#1f1a17;--m:#6a5a68;--h:#3a1050;--link:#c2186f;--focus:#3a1050;
  --shadow:0 6px 18px rgba(58,16,80,.14);
  --hero:linear-gradient(160deg,#d4217f 0%,#a3195f 100%);
  --tape:repeating-linear-gradient(45deg,rgba(255,79,163,.8) 0 6px,rgba(255,190,222,.8) 6px 12px);
  font-family:"Fredoka","Segoe UI",system-ui,sans-serif;font-size:1.0625rem;line-height:1.65
}
@media(prefers-color-scheme:dark){:root{
  --bg:#150d18;--alt:#1f1424;--card:#28192e;--t:#f6ecf3;--m:#cdb8d6;--h:#fff8e7;--link:#ff8cc4;--focus:#ffd23f;
  --shadow:0 6px 22px rgba(0,0,0,.5)}}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--t)}
img{max-width:100%;height:auto}
a{color:var(--link);text-underline-offset:.15em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:4px}
.hero :focus-visible,.cta :focus-visible,header :focus-visible,footer :focus-visible{--focus:#ffd23f}
h1,h2,h3,.btn,.logo{font-family:"Baloo 2","Fredoka",sans-serif}
h2{font-size:clamp(1.8rem,3.6vw,2.5rem);line-height:1.15;margin:0 0 .5rem;font-weight:800;color:var(--h)}
h3{font-size:1.3rem;line-height:1.25;margin:0 0 .4rem;color:var(--h)}
p{margin:0 0 1rem}
code{font-size:.95em}

.skip{position:absolute;left:-999px;top:0;background:var(--yellow);color:var(--plum);padding:.6rem 1rem;font-weight:700;z-index:50}
.skip:focus{left:0}


header{background:var(--plum-deep);box-shadow:0 2px 0 var(--pink)}
@media(min-width:900px){header{position:sticky;top:0;z-index:10}}
header nav{max-width:1100px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:0 .4rem;padding:.3rem 1.2rem}
header nav .logo{margin-right:auto;font-weight:800;font-size:1.45rem;color:var(--cream);text-decoration:none;padding:.35rem .2rem;min-height:44px;display:inline-flex;align-items:center}
header nav a:not(.logo){color:#fbe9f3;text-decoration:none;font-weight:600;padding:.5rem .7rem;min-height:44px;display:inline-flex;align-items:center;border-bottom:3px solid transparent}
header nav a:not(.logo):hover{color:var(--yellow);border-color:var(--pink)}
header nav a[aria-current=page]{color:var(--yellow);border-color:var(--yellow)}
@media(max-width:640px){header nav{justify-content:center;padding:.3rem .6rem}header nav .logo{width:100%;justify-content:center;margin:0}}

/* Hero: ein Verlauf nur hier (Rosa-Ton-in-Ton), er hebt die erste Ebene von der Seite ab */
.hero{position:relative;color:#fff;background:var(--hero);padding:clamp(3rem,8vw,5.5rem) 1.5rem clamp(4.5rem,9vw,6.5rem)}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:44px;background:var(--bg);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 36 C240 0 480 60 720 30 S1200 6 1440 34 V60 H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 36 C240 0 480 60 720 30 S1200 6 1440 34 V60 H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.hero-in{max-width:1100px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2.5rem 3.5rem}
.hero-in>div{flex:1 1 420px;max-width:600px}
.hero.compact{padding-bottom:clamp(4rem,8vw,5.5rem)}
.hero.compact .hero-in{justify-content:flex-start}
.hero.compact .hero-in>div{flex-basis:100%;max-width:760px}
.hero h1{margin:.6rem 0 .8rem;font-size:clamp(2.8rem,8vw,5rem);line-height:1.02;font-weight:800;color:var(--cream);letter-spacing:.01em;transform:rotate(-1.5deg);
  text-shadow:3px 3px 0 var(--yellow),6px 6px 0 var(--plum)}
.hero .lead{font-size:clamp(1.1rem,2.2vw,1.3rem);margin:0 0 1.6rem;max-width:34em}
.slogan{display:inline-block;background:var(--yellow);color:var(--plum);font-family:"Caveat","Patrick Hand",cursive;font-size:1.6rem;font-weight:700;line-height:1.2;padding:.15rem 1rem;border-radius:12px;transform:rotate(-2deg);box-shadow:0 4px 0 #e0a800}
.heroimg{flex:0 1 380px;width:min(380px,80vw);border-radius:24px;box-shadow:0 0 0 6px var(--yellow),0 18px 40px rgba(42,15,58,.45);transform:rotate(3deg)}

/* Buttons: ein Aufbau, drei Stufen. Radius 14px, kein Pill, kein Glow */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:.3rem .5rem .3rem 0;padding:.55rem 1.4rem;border-radius:14px;border:2px solid var(--plum);
  background:var(--cream);color:var(--plum);font-weight:700;font-size:1.05rem;text-decoration:none;box-shadow:0 4px 0 var(--plum);transition:transform .2s,box-shadow .2s}
.btn:hover{transform:translateY(-2px) rotate(-1deg);box-shadow:0 6px 0 var(--plum)}
.btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--plum)}
.btn.primary{background:var(--yellow)}
.btn.dark{background:var(--plum);color:var(--cream);border-color:var(--plum)}
.btn.dark{box-shadow:0 4px 0 #1d0829}
.btn.dark:hover{box-shadow:0 6px 0 #1d0829}

section{position:relative;padding:clamp(3rem,7vw,4.5rem) 1.5rem;overflow-x:clip}
section.alt{background:var(--alt);margin:40px 0}
section.alt::before,section.alt::after{content:"";position:absolute;left:0;right:0;height:40px;background:var(--alt);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C240 60 480 0 720 30 S1200 60 1440 30 V60 H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C240 60 480 0 720 30 S1200 60 1440 30 V60 H0Z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
section.alt::before{top:-39px}
section.alt::after{bottom:-39px;transform:scaleY(-1)}
.wrap{max-width:1100px;margin:0 auto}

/* Handgezeichnete Unterstreichung: wiederkehrendes Merkmal der Marke */
h2::after{content:"";display:block;width:150px;height:16px;margin-top:.4rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 9 C20 2 30 13 48 7 S80 3 96 8 S112 11 118 5' fill='none' stroke='%23ff4fa3' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center/contain}
.hand,h2+.sub{font-family:"Caveat","Patrick Hand",cursive}
h2+.sub{font-size:1.6rem;line-height:1.3;color:var(--link);font-weight:700;margin:0 0 1.8rem}

/* Zettel: Pinnwand-Papier mit Klebeband. Schatten nur hier, als Hoehe des Papiers ueber der Wand */
.paper{position:relative;background:var(--card);border-radius:6px;padding:2.2rem 1.6rem 1.6rem;box-shadow:var(--shadow)}
.paper::before,.notebook::before,.post::before{content:"";position:absolute;top:-12px;left:50%;width:110px;height:26px;margin-left:-55px;background:var(--tape);transform:rotate(-3deg);box-shadow:0 1px 3px rgba(0,0,0,.15)}
.paper h3{font-size:1.5rem}
.paper p:last-child{margin-bottom:0}
.paper:hover,.post:hover{animation:wiggle .5s ease}
@keyframes wiggle{0%,100%{rotate:0deg}25%{rotate:1.2deg}75%{rotate:-1.2deg}}

.duo{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:2.4rem;align-items:start}
.duo .paper:nth-child(1){transform:rotate(-1.5deg)}
.duo .paper:nth-child(2){transform:rotate(1.5deg);margin-top:2.2rem}
@media(max-width:760px){.duo{grid-template-columns:minmax(0,1fr)}.duo .paper:nth-child(2){margin-top:0}}

.stack-title{margin-top:3.2rem}
.stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem 3rem;margin:1rem 0 0}
.stack dt{display:inline-block;font-family:"Baloo 2",sans-serif;font-weight:700;font-size:1.2rem;color:var(--h);border-bottom:3px solid var(--yellow);line-height:1.2}
.stack dd{margin:.3rem 0 0;color:var(--m)}
@media(max-width:640px){.stack{grid-template-columns:minmax(0,1fr)}}

.notebook{position:relative;max-width:460px;margin:3rem 0 0 auto;background:#fffdf3 repeating-linear-gradient(transparent 0 35px,#f6c1dc 35px 36px);border-left:6px double #ff8cc4;border-radius:6px;padding:1rem 1.5rem 1rem 2rem;box-shadow:var(--shadow);transform:rotate(-1.5deg);color:var(--plum);font-family:"Patrick Hand","Caveat",cursive;font-size:1.4rem;line-height:36px}
.notebook::before{left:30%;margin-left:0;width:100px;height:24px;transform:rotate(-4deg)}
.notebook h3{font-family:"Caveat",cursive;font-size:1.9rem;line-height:36px;margin:0;color:var(--plum)}
.notebook ul{list-style:none;margin:0;padding:0}
.notebook li{padding-left:1.6rem;position:relative;line-height:30px;padding-top:3px;padding-bottom:3px}
.notebook li::before{content:"";position:absolute;left:0;top:12px;width:1.1rem;height:.9rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 9 L7 14 L18 2' fill='none' stroke='%23c2186f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain}
@media(max-width:640px){.notebook{margin-left:auto;margin-right:auto;font-size:1.25rem}}

.about{display:grid;grid-template-columns:340px minmax(0,1fr);gap:2.5rem;align-items:center}
.team{width:100%;max-width:340px;aspect-ratio:1;object-fit:cover;border-radius:24px;box-shadow:0 0 0 6px var(--yellow),var(--shadow);transform:rotate(-2deg)}
@media(max-width:760px){.about{grid-template-columns:minmax(0,1fr);justify-items:center}.about>div{justify-self:stretch}}

.placeholder{display:flex;align-items:center;justify-content:center;text-align:center;padding:1rem;border:3px dashed var(--pink-text);border-radius:12px;color:var(--t);background:var(--card);font-family:"Patrick Hand","Caveat",cursive;font-size:1.25rem;line-height:1.3}
.clips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem;max-width:900px}
.clip{aspect-ratio:9/16;max-height:440px}
.shots{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:1.4rem}
.shots .placeholder{aspect-ratio:16/9}
.shots .placeholder:first-child{grid-row:span 2;aspect-ratio:auto;min-height:260px}
@media(max-width:640px){.clips{grid-template-columns:minmax(0,1fr);max-width:220px}.shots{grid-template-columns:minmax(0,1fr);grid-template-rows:none}.shots .placeholder:first-child{grid-row:auto;aspect-ratio:16/9;min-height:0}}
.more{margin-top:1.6rem}

.posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:2rem;padding:1rem;align-items:start}
.post{position:relative;display:block;background:#fff;padding:12px 12px 0;border-radius:4px;box-shadow:var(--shadow);text-decoration:none}
.post:nth-child(odd){transform:rotate(-3deg)}
.post:nth-child(even){transform:rotate(2.5deg)}
.post::before{top:-10px;width:80px;height:22px;margin-left:-40px;transform:rotate(4deg);z-index:2}
.post img{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:2px}
.post img.wide{aspect-ratio:600/548;object-fit:contain;background:#fffdf3}
.post span{display:block;padding:.4rem .2rem .8rem;color:var(--plum);font-family:"Caveat","Patrick Hand",cursive;font-size:1.45rem;font-weight:700;line-height:1.2;text-align:center}
.post:hover{transform:rotate(0) scale(1.03)}

.steps{list-style:none;margin:0;padding:0;counter-reset:s;display:grid;gap:1.6rem;max-width:760px}
.steps li{counter-increment:s;position:relative;padding-left:3.6rem}
.steps li::before{content:counter(s) ".";position:absolute;left:0;top:-.35rem;font-family:"Caveat",cursive;font-weight:700;font-size:3rem;line-height:1;color:var(--link)}
.callout{max-width:760px;padding:1.2rem 1.5rem;background:var(--card);border-radius:6px;box-shadow:var(--shadow);border:2px solid var(--pink)}
.callout p:last-child{margin-bottom:0}

.cta{background:var(--hero);color:#fff;text-align:center;border-radius:40px 40px 0 0}
.cta h2{color:#fff}
.cta h2::after{margin:.4rem auto 0;background-position:center}
.cta a:not(.btn){color:#fff}
.bannerimg{display:block;max-width:900px;width:100%;margin:1.5rem auto;border-radius:20px;box-shadow:0 12px 30px rgba(42,15,58,.4);transform:rotate(-1deg)}
.discordimg{display:block;max-width:520px;width:100%;margin:1rem auto;border-radius:16px;box-shadow:0 12px 30px rgba(42,15,58,.4)}
a.imglink{display:block;width:fit-content;max-width:100%;margin:0 auto}

footer{background:var(--plum-deep);color:#ead9f1;padding:2.5rem 1.5rem;text-align:center}
footer .b{font-family:"Baloo 2",sans-serif;font-weight:800;font-size:1.3rem;color:var(--cream)}
footer .slogan{background:none;box-shadow:none;transform:none;color:var(--yellow);padding:0;font-size:1.6rem}
footer nav,footer .links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 .3rem}
footer .links a{color:var(--yellow);padding:.6rem .7rem;min-height:44px;display:inline-flex;align-items:center}

/* Regeln */
.rules-toc{max-width:760px;margin:0 0 2.5rem;padding:1.2rem 1.5rem;background:var(--card);border-radius:6px;box-shadow:var(--shadow);border:2px solid var(--pink)}
.rules-toc h2{font-size:1.5rem}
.rules-toc h2::after{display:none}
.rules-toc ol{margin:0;padding:0;list-style:none;columns:2;column-gap:2rem}
.rules-toc li{padding:.15rem 0;break-inside:avoid}
.rules-toc a{display:inline-block;min-height:32px;padding:.2rem 0}
@media(max-width:640px){.rules-toc ol{columns:1}.rules-toc a{min-height:44px;display:inline-flex;align-items:center}}
.prose{max-width:760px}
.prose h2{margin-top:3rem;scroll-margin-top:5rem}
.prose h2:first-child{margin-top:0}
.prose h3{margin-top:1.5rem;color:var(--link)}
.quick{max-width:760px;margin:0 0 3rem;padding-left:0;list-style:none;display:grid;gap:1rem}
.quick li{background:var(--card);border-radius:6px;padding:1rem 1.3rem;box-shadow:var(--shadow);border:2px solid transparent}
.quick li:nth-child(odd){transform:rotate(-.6deg)}
.quick li:nth-child(even){transform:rotate(.6deg)}
.quick strong{display:block;font-family:"Baloo 2",sans-serif;font-size:1.15rem;color:var(--h)}
.srcnote{max-width:760px;color:var(--m);font-size:.95rem}
.ph-inline{font-family:"Patrick Hand",cursive;font-size:1.2rem;border:2px dashed var(--pink-text);border-radius:6px;padding:.1rem .5rem}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.quick-more{display:block;margin-top:.5rem;font-size:.95rem}
.quick-more a{display:inline-block;min-height:32px;padding:.2rem .6rem .2rem 0}
.rules-version{font-size:.9rem}
