/* Silbermuschel Runen – im Silbermuschel-Aussehen, überall Comic Sans MS.
   Ein Bildschirm ohne Scrollen, Fußleiste unten, und eine kräftige
   Abwehr gegen das Theme, das Knöpfe auf volle Breite zieht, zu
   Flex-Zeilen mit Lücken macht, blau umrandet und sperrt. */

.sru-w, .sru-box, .sru-hist-allein, .sru-hist-fenster{
  --w-creme:#faf4e6; --w-perg:#fffdf8; --w-moos:#4f6f52; --w-moos-tief:#2f4434;
  --w-gold:#bfa24f; --w-gold-hell:#e6cf8d; --w-tinte:#33402f; --w-rand:#e3d7bd;
  --w-leise:#5f6f5c; 
}
.sru-w, .sru-w *, .sru-box, .sru-box *, .sru-hist-allein, .sru-hist-allein *, .sru-hist-fenster, .sru-hist-fenster *{
  font-family:"Comic Sans MS","Comic Neue","Comic Sans","Chalkboard SE","Segoe Print",cursive !important;
  box-sizing:border-box;
  letter-spacing:normal !important; hyphens:manual !important; -webkit-hyphens:manual !important;
  word-break:normal !important; overflow-wrap:break-word;
}

/* --- Der Kasten: so hoch wie das Fenster ---------------------------- */
.sru-w{
  position:relative; overflow:hidden; isolation:isolate;
  max-width:980px; margin:12px auto !important; border-radius:22px;
  border:1px solid var(--w-rand); color:var(--w-tinte);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(230,207,141,.35) 0%, rgba(230,207,141,0) 60%),
    radial-gradient(90% 70% at 50% 100%, rgba(79,111,82,.2) 0%, rgba(79,111,82,0) 70%),
    linear-gradient(180deg,#fffaf0 0%,#f6efdc 55%,#eef0df 100%);
  box-shadow:0 18px 40px -24px rgba(47,68,52,.55), inset 0 0 0 4px rgba(255,255,255,.6);
  height:calc(100vh - 24px); height:calc(100svh - 24px); max-height:860px; min-height:520px;
  display:flex; flex-direction:column;
}
.sru-w-licht{position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none}
.sru-w-buehne{position:relative; z-index:1; flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:auto; padding:18px 26px 16px}
.sru-w.mit-leiste .sru-w-buehne{padding-bottom:60px}

.sru-szene{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; animation:sruRein .7s cubic-bezier(.2,.7,.2,1) both}
.sru-szene.raus{animation:sruRaus .35s ease both}
@keyframes sruRein{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes sruRaus{to{opacity:0;transform:translateY(-10px)}}

.sru-w h2,.sru-w h3,.sru-w h4{color:var(--w-moos-tief); margin:0 0 .4em; line-height:1.25; font-weight:700}
.sru-w h2:focus,.sru-w h3:focus{outline:none}
.sru-w h2{font-size:clamp(1.5rem,3vw,2.1rem); text-align:center}
.sru-w p{margin:0 0 .8em; line-height:1.55}
.sru-w .sru-titel{margin:0 0 2px !important}
.sru-unter{text-align:center; color:var(--w-leise); max-width:620px; margin:0 auto 12px !important}
.sru-zier{display:block; text-align:center; color:var(--w-gold); font-size:.85rem; margin:0 0 6px}
.sru-mitte{text-align:center}

/* --- Knöpfe: Abwehr gegen das Theme ---------------------------------- */
.sru-w button{cursor:pointer; width:auto !important; max-width:100%; flex:0 0 auto; gap:0 !important;
  text-transform:none !important; font-weight:400; margin:0}
.sru-w button,.sru-w button:hover,.sru-w button:focus,.sru-w button:active{box-shadow:none !important; outline:none !important; text-shadow:none !important}
.sru-w button:focus-visible{outline:2px solid #b79a48 !important; outline-offset:2px}
.sru-w button::before,.sru-w button::after,.sru-box a::before,.sru-box a::after,
.sru-hist-allein button::before,.sru-hist-allein button::after,.sru-hist-fenster button::before,.sru-hist-fenster button::after{content:none !important; display:none !important}
.sru-w .sru-ic{width:1em; height:1em; display:inline-block; vertical-align:-.12em; flex:0 0 auto}

.sru-w .sru-knopf, .sru-box .sru-knopf{
  display:inline-flex !important; align-items:center; justify-content:center; gap:8px !important;
  font-size:1rem; padding:9px 20px; min-height:42px; line-height:1.2; text-decoration:none !important;
  border:1px solid #b79a48 !important; border-radius:999px !important;
  background:linear-gradient(180deg,#fdf8ec 0%,#f0e5c9 100%) !important; color:#23361f !important;
  transition:background .25s, color .25s, transform .2s}
.sru-w .sru-knopf:hover,.sru-w .sru-knopf:focus-visible{background:var(--w-moos) !important; color:#f3efe2 !important; border-color:var(--w-moos-tief) !important; transform:translateY(-1px)}
.sru-w .sru-knopf.haupt, .sru-box .sru-knopf.haupt{background:var(--w-moos) !important; color:#f6f1e3 !important; border-color:var(--w-moos-tief) !important}
.sru-w .sru-knopf.haupt:hover{background:var(--w-moos-tief) !important}
.sru-w .sru-link{display:inline-flex !important; align-items:center; gap:6px !important; background:none !important; border:0 !important;
  color:var(--w-moos) !important; text-decoration:underline; padding:4px 2px; font-size:.95rem; align-self:flex-start}
.sru-w .sru-link:hover{color:var(--w-moos-tief) !important}

/* Zurück und Zum Anfang: kleine Pill-Knöpfe mit Mausover */
.sru-w .sru-nav{display:flex !important; flex-wrap:nowrap; gap:8px; align-items:center; margin:0 0 6px; flex:0 0 auto}
.sru-w .sru-zurueck-knopf{display:inline-flex !important; align-items:center; gap:4px !important;
  width:auto !important; max-width:max-content !important; height:34px !important; min-height:34px !important; margin:0 !important;
  padding:0 16px !important; border-radius:999px !important; border:1px solid #b79a48 !important;
  background:rgba(255,253,248,.92) !important; color:#33402f !important;
  font-size:.9rem !important; line-height:1 !important; text-decoration:none !important; white-space:nowrap;
  transition:background .2s, color .2s, transform .2s}
.sru-w .sru-zurueck-knopf:hover,.sru-w .sru-zurueck-knopf:focus-visible{background:#4f6f52 !important; color:#fff !important; border-color:#2f4434 !important; transform:translateX(-2px)}

/* --- Fußleiste: Musik und Historie, gleich groß ---------------------- */
.sru-w .sru-fussleiste{position:absolute; left:0; right:0; bottom:12px; z-index:5; display:flex !important; justify-content:center; gap:10px; pointer-events:none}
.sru-fussleiste > *{pointer-events:auto}
.sru-w .sru-leisten-knopf{position:static !important; margin:0 !important;
  display:inline-flex !important; align-items:center; justify-content:center; gap:7px !important;
  width:250px !important; height:36px !important; min-height:36px !important; padding:0 14px !important;
  border-radius:999px !important; font-size:.88rem !important; line-height:1 !important; white-space:nowrap; overflow:hidden;
  border:1px solid #b79a48 !important; background:rgba(255,253,248,.92) !important; color:#33402f !important;
  transition:background .2s, color .2s}
.sru-w .sru-leisten-knopf span{overflow:hidden; text-overflow:ellipsis}
.sru-w .sru-leisten-knopf[aria-pressed="true"]{background:#4f6f52 !important; color:#f6f1e3 !important; border-color:#2f4434 !important}
.sru-w .sru-leisten-knopf:hover{background:#2f4434 !important; color:#fff !important}

/* --- Die Bühne für den Stein ------------------------------------------ */
.sru-w .sru-buehne-stein{position:relative !important; min-width:0 !important; min-height:0; overflow:hidden; border-radius:22px;
  background:radial-gradient(70% 60% at 50% 40%, rgba(255,255,255,.95), rgba(250,244,230,.6) 70%, rgba(230,207,141,.18));
  border:1px solid var(--w-rand)}
.sru-w .sru-buehne-stein > canvas, .sru-w .sru-rad-stein > canvas{position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; display:block}
/* --- Fenster über dem Kasten (Historie) ------------------------------- */
.sru-overlay{position:absolute; inset:0; z-index:20; background:rgba(47,68,52,.38); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; padding:16px; animation:sruRein .4s both}
.sru-overlay-kasten{position:relative; max-width:780px; width:100%; max-height:100%; overflow:auto; background:#fffdf8; border-radius:18px;
  border:1px solid var(--w-rand); padding:16px 24px 20px; box-shadow:0 20px 40px -20px rgba(0,0,0,.5); color:var(--w-tinte); text-align:left;
  scrollbar-width:auto; scrollbar-color:#b79a48 #f3ead2}
.sru-overlay-kasten::-webkit-scrollbar{width:12px}
.sru-overlay-kasten::-webkit-scrollbar-track{background:#f3ead2}
.sru-overlay-kasten::-webkit-scrollbar-thumb{background:#b79a48; border-radius:999px; border:3px solid #f3ead2}
.sru-w .sru-overlay-zu, .sru-hist-fenster .sru-overlay-zu{position:sticky; top:0; float:right; z-index:2; display:flex !important; align-items:center; justify-content:center;
  width:44px !important; height:36px !important; min-height:0 !important; padding:0 !important; margin:0 -8px 0 8px !important;
  border-radius:999px !important; border:1px solid #b79a48 !important; background:#fff !important; color:var(--w-moos-tief) !important;
  font-size:1.4rem !important; line-height:1 !important; box-shadow:none !important; cursor:pointer}
.sru-overlay-zu:hover{background:#4f6f52 !important; color:#fff !important}
.sru-overlay-kasten h3{font-size:1.35rem; margin:4px 0 10px; color:var(--w-moos-tief); text-align:left}
.sru-hist-inhalt h4{margin:16px 0 4px; font-size:1.02rem; clear:both; color:var(--w-moos-tief)}
.sru-hist-inhalt h4:first-child{margin-top:0}
.sru-hist-inhalt p{margin:0; line-height:1.6; font-size:.98rem}
.sru-hist-inhalt::after{content:""; display:block; clear:both}
.sru-hist-bild{margin:2px 0 10px; padding:0; width:min(38%,220px)}
.sru-hist-rechts{float:right; margin-left:18px}
.sru-hist-links{float:left; margin-right:18px}
.sru-hist-bild img{display:block; width:100%; height:auto; border:1px solid var(--w-rand); border-radius:8px; background:#fbfaf6;
  filter:grayscale(1) contrast(1.05); transition:filter .35s, transform .35s}
.sru-hist-bild:hover img{filter:grayscale(0); transform:scale(1.02)}
.sru-hist-bild figcaption{margin-top:5px; font-size:.76rem; line-height:1.35; opacity:.75; text-align:center; font-style:italic}
.sru-jahr{font-weight:700; border-bottom:1px solid #bfa24f; padding-bottom:1px}

/* [runen-historie] allein: Knopf auf der Seite, Fenster über dem Bildschirm */
.sru-hist-zeile{margin:16px 0 0; text-align:center}
.sru-hist-allein .sru-hist-auf{display:inline-flex !important; width:auto !important; align-items:center; gap:0 !important; font-size:.95rem !important; padding:9px 22px !important;
  border:1px solid #b79a48 !important; border-radius:999px !important; box-shadow:none !important; cursor:pointer;
  background:linear-gradient(180deg,#fdf8ec 0%,#f0e5c9 100%) !important; color:#23361f !important; transition:background .2s, color .2s}
.sru-hist-allein .sru-hist-auf:hover,.sru-hist-allein .sru-hist-auf:focus{background:#4f6f52 !important; color:#f3efe2 !important; border-color:#2f4434 !important}
.sru-hist-fenster{position:fixed; inset:0; z-index:99000}
.sru-hist-fenster[hidden]{display:none !important}
.sru-hist-fenster .sru-overlay{position:absolute; inset:0; background:rgba(20,24,20,.45); backdrop-filter:blur(6px)}
.sru-hist-fenster .sru-overlay-kasten{max-height:calc(100% - 20px)}


/* Historie-Zeichnungen: nicht entfärben, nur eigene Fotos grau bis Mausover */
.sru-hist-bild img{filter:none}
.sru-hist-bild.ist-foto img{filter:grayscale(1) contrast(1.05)}
.sru-hist-bild:hover img{filter:none}

/* --- Runen als Zeichnung ---------------------------------------------- */
.sru-w .sru-rune, .sru-druck .sru-rune{display:block; width:auto; height:2.4rem; color:#3d3326; overflow:visible}
.sru-rune.kopf{transform:rotate(180deg)}

/* --- 1. Start ---------------------------------------------------------- */
.sru-start{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:20px; flex:1 1 auto; min-height:0; align-items:stretch}
.sru-panel{display:flex; flex-direction:column; justify-content:center; gap:10px; min-height:0; min-width:0}
.sru-w .sru-panel .sru-seitentitel{text-align:left; margin:0 !important; font-size:clamp(1.7rem,3.2vw,2.4rem)}
.sru-w .sru-panel .sru-unter{text-align:left !important; margin:0 0 2px !important; max-width:none; font-size:1.02rem}
.sru-w .sru-heute{position:relative; display:flex !important; align-items:center; gap:10px !important; width:100% !important; text-align:left;
  padding:6px 34px 6px 8px !important; border-radius:14px !important; border:1px solid #e6cf8d !important;
  background:linear-gradient(90deg,#fbf3dc,#fffdf8) !important; color:var(--w-tinte) !important; font-size:.98rem; line-height:1.3 !important;
  transition:transform .25s, border-color .25s}
.sru-w .sru-heute:hover,.sru-w .sru-heute:focus-visible{transform:translateY(-2px); border-color:var(--w-gold) !important}
.sru-w .sru-heute b{color:var(--w-moos-tief)}
.sru-heute-rune{flex:0 0 36px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#fffdf8; border:1px solid var(--w-rand)}
.sru-w .sru-heute-rune .sru-rune{height:1.7rem; color:#8a6d22}
.sru-einstiege{display:flex; flex-direction:column; gap:8px}
.sru-w .sru-einstieg{position:relative; display:flex !important; align-items:center; gap:12px !important; width:100% !important; text-align:left;
  padding:10px 38px 10px 12px !important; border-radius:16px !important; border:1px solid var(--w-rand) !important;
  background:rgba(255,253,248,.88) !important; color:var(--w-tinte) !important; line-height:1.3 !important;
  transition:transform .25s, border-color .25s, background .25s}
.sru-w .sru-einstieg:hover,.sru-w .sru-einstieg:focus-visible{transform:translateY(-2px); border-color:var(--w-gold) !important; background:#fffdf8 !important}
.sru-einstieg-ic{flex:0 0 40px; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at 35% 30%, #fff, #e9efd9 70%); border:1px solid #cfd8bd; color:var(--w-moos); font-size:1.35rem}
.sru-einstieg-text{display:block; min-width:0}
.sru-einstieg-text b{display:block; font-size:1.06rem; color:var(--w-moos-tief)}
.sru-einstieg-text small{display:block; font-size:.84rem; color:var(--w-leise)}
.sru-w .pfeil{position:absolute; right:14px; top:50%; transform:translateY(-50%); font-style:normal; font-size:1.4rem; color:var(--w-gold)}

/* --- Rad: Kalender und Geburtsrune ------------------------------------- */
.sru-kal,.sru-geburt,.sru-ziehen,.sru-rune-seite,.sru-lexikon{display:flex; flex-direction:column; flex:1 1 auto; min-height:0}
.sru-rad-raster{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:22px; flex:1 1 auto; min-height:0; align-items:stretch}
.sru-rad-box{position:relative; min-height:0; min-width:0}
.sru-rad{position:absolute; inset:0; width:100%; height:100%; overflow:visible}
.sru-rad-feld{cursor:pointer; outline:none; color:#3d3326}
.sru-rad-grund{transition:fill .4s}
.sru-rad-hof{fill:rgba(191,162,79,0); transition:fill .3s}
.sru-rad-feld:hover .sru-rad-hof,.sru-rad-feld:focus .sru-rad-hof{fill:rgba(191,162,79,.28)}
.sru-rad-feld.an .sru-rad-grund{fill:#e6cf8d}
.sru-rad-feld.an .sru-rad-hof{fill:rgba(255,236,170,.9); filter:url(#sruGlut); animation:sruHof 2.6s ease-in-out infinite; transform-box:fill-box; transform-origin:center}
.sru-rad-feld.an{color:#5a4210}
@keyframes sruHof{0%,100%{opacity:.6}50%{opacity:1}}
.sru-rad-monat{font-size:10.5px; fill:#5f6f5c}
.sru-rad-mitte{font-size:13px; fill:#5f6f5c}
.sru-w .sru-rad-stein{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); border-radius:50%; overflow:hidden; pointer-events:none}
.sru-rad-panel{display:flex; flex-direction:column; gap:8px; min-height:0; min-width:0; justify-content:center}
.sru-w .sru-hinweis-klein{margin:0 !important; font-size:.82rem; color:var(--w-leise)}
.sru-r-kopf{display:flex; align-items:center; gap:12px; flex:0 0 auto}
.sru-r-zeichen{flex:0 0 auto; width:54px; height:64px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:#fffdf8; border:1px solid var(--w-rand); border-bottom:4px solid var(--w-gold)}
.sru-w .sru-r-zeichen .sru-rune{height:2.7rem}
.sru-r-zeichen.klein{width:34px; height:40px; border-radius:10px; border-bottom-width:3px}
.sru-w .sru-r-zeichen.klein .sru-rune{height:1.6rem}
.sru-w .sru-r-kopf h2,.sru-w .sru-r-kopf h3{text-align:left; margin:0 !important; font-size:clamp(1.5rem,2.8vw,2.1rem)}
.sru-w .sru-r-kopf h3{font-size:1.45rem}
.sru-w .sru-r-meta{margin:0 !important; color:var(--w-leise); font-size:.92rem; line-height:1.35}
.sru-r-text{min-height:0; overflow:auto; flex:0 1 auto; padding-right:6px}
.sru-w .sru-r-text p{margin:0 0 .55em; font-size:.98rem; line-height:1.5}
.sru-w .sru-r-text h4{margin:.2em 0 .2em; font-size:1rem}
.sru-w .sru-r-kurz{margin:0 0 .55em !important; font-size:1.04rem !important; color:var(--w-moos-tief); border-left:3px solid var(--w-gold); padding-left:10px}
.sru-r-unten{display:flex !important; gap:8px; align-items:center; flex-wrap:wrap; flex:0 0 auto}
.sru-w .sru-pfeil-knopf{min-width:46px; padding:6px 14px !important; font-size:1.3rem !important}
.sru-w .sru-klein{padding:6px 14px !important; min-height:36px !important; font-size:.9rem !important}

/* Geburtsrune */
.sru-w .sru-g-titel{text-align:left; margin:0 !important; font-size:clamp(1.4rem,2.6vw,1.9rem)}
.sru-w .sru-rad-panel .sru-unter{text-align:left; margin:0 !important}
.sru-g-wahl{display:flex !important; gap:10px; flex:0 0 auto}
.sru-w .sru-auswahl{font-size:1.1rem !important; padding:8px 12px !important; height:46px; border-radius:12px !important; border:1px solid #b79a48 !important;
  background:#fffdf8 !important; color:var(--w-tinte) !important; min-width:0; width:auto !important; max-width:none; margin:0 !important; box-shadow:none !important; cursor:pointer}
.sru-w .sru-auswahl:first-child{flex:0 0 96px}
.sru-w .sru-auswahl:last-child{flex:0 1 190px}
.sru-g-text{display:flex; flex-direction:column; gap:6px; min-height:0; flex:0 1 auto}
.sru-g-text:empty{display:none}

/* --- 4. Runen ziehen ---------------------------------------------------- */
.sru-z-raster{display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:20px; flex:1 1 auto; min-height:0; align-items:stretch}
.sru-z-panel{display:flex; flex-direction:column; gap:10px; min-height:0; min-width:0; justify-content:center}
.sru-w .sru-z-titel{text-align:left; margin:0 !important; font-size:clamp(1.4rem,2.6vw,1.9rem)}
.sru-w .sru-z-panel .sru-unter{text-align:left; margin:0 !important}
.sru-z-arten{display:flex; flex-direction:column; gap:8px}
.sru-w .sru-z-art{position:relative; display:flex !important; flex-direction:column; align-items:flex-start; gap:0 !important; width:100% !important; text-align:left;
  padding:9px 14px 9px 44px !important; border-radius:14px !important; border:1px solid var(--w-rand) !important; background:rgba(255,253,248,.88) !important; color:var(--w-tinte) !important; line-height:1.3 !important; transition:border-color .2s, background .2s}
.sru-w .sru-z-art b{font-size:1.02rem; color:var(--w-moos-tief)}
.sru-w .sru-z-art small{font-size:.82rem; color:var(--w-leise)}
.sru-w .sru-z-art span{display:none}
.sru-w .sru-z-art:hover{border-color:var(--w-gold) !important}
.sru-w .sru-z-art[aria-checked="true"]{border-color:var(--w-moos) !important; background:#f1f5ea !important}
.sru-w button.sru-z-art::after{content:"" !important; display:block !important; position:absolute; left:14px; top:50%; width:18px; height:18px; margin-top:-9px; border-radius:50%; border:2px solid #b79a48; background:#fff}
.sru-w button.sru-z-art[aria-checked="true"]::after{background:radial-gradient(circle,#4f6f52 0 45%,#fff 50%); border-color:#4f6f52}
.sru-w .sru-frage{font-size:1rem !important; padding:9px 14px !important; height:44px; border-radius:999px !important; border:1px solid #b79a48 !important; background:#fffdf8 !important;
  color:var(--w-tinte) !important; width:100% !important; margin:0 !important; box-shadow:none !important; outline:none}
.sru-w .sru-frage:focus{border-color:var(--w-moos) !important}
.sru-w .sru-gross{min-width:170px; font-size:1.1rem !important}
.sru-w .sru-z-frage{margin:0 !important; font-style:italic; color:var(--w-leise)}
.sru-z-deutung{min-height:0; overflow:auto; flex:0 1 auto; display:flex; flex-direction:column; gap:8px; padding-right:6px}
.sru-z-karte{padding:8px 12px; border-radius:14px; background:rgba(255,253,248,.92); border:1px solid var(--w-rand); border-left:4px solid var(--w-gold)}
.sru-z-karte.umgekehrt{border-left-color:#9a7d5a}
.sru-z-karte-kopf{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:4px}
.sru-z-karte-kopf b{font-size:1.08rem; color:var(--w-moos-tief)}
.sru-z-norne{font-size:.78rem; color:#fff; background:var(--w-moos); border-radius:999px; padding:1px 9px}
.sru-merk{font-style:normal; font-size:.78rem; color:#7a5b2e; background:#fbf3dc; border:1px solid #ecd9a4; border-radius:999px; padding:1px 8px}
.sru-w .sru-z-karte p{margin:0 0 .35em; font-size:.94rem; line-height:1.45}
.sru-w .sru-z-rat{color:var(--w-moos-tief)}
.sru-w .sru-hinweis{font-size:.8rem !important; color:#7a5b2e; background:#fbf3dc; border:1px solid #ecd9a4; border-radius:10px; padding:6px 10px; margin:0 !important}
.sru-w .sru-knopf .sru-ic{font-size:1.1em}

/* Ohne WebGL: gezeichnete Steine */
.sru-svgsteine{position:absolute; inset:0; display:flex; align-items:center; justify-content:center}
.sru-svgstein{width:min(70%,260px)}
.sru-svgstein svg,.sru-svgbeutel svg{display:block; width:100%; height:auto}
.sru-svgbeutel{width:min(40%,160px)}
.sru-svgreihe{display:flex; gap:4%; width:92%; justify-content:center}
.sru-svgreihe .sru-svgstein{flex:1 1 0; max-width:220px}
.sru-svgstein.schwebt{animation:sruSchweb 4s ease-in-out infinite}
.sru-svgstein.faellt{animation:sruFall 1.1s cubic-bezier(.3,1.4,.5,1) both}
.sru-svgstein-rune{transition:stroke .8s, filter .8s}
.sru-svgstein.leuchtet .sru-svgstein-rune{stroke:#d9a93a; filter:drop-shadow(0 0 4px #ffd36a)}
@keyframes sruSchweb{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes sruFall{0%{opacity:0; transform:translateY(-140px) rotate(-200deg) scale(.6)}60%{opacity:1}100%{transform:none}}

/* --- 5. Lexikon --------------------------------------------------------- */
.sru-lex-raster{display:flex; flex-direction:column; gap:10px; flex:1 1 auto; min-height:0; margin-top:4px}
.sru-lex-reihe{display:grid; grid-template-columns:110px repeat(8,minmax(0,1fr)); gap:8px; flex:1 1 0; min-height:0}
.sru-lex-aett{display:flex; align-items:center; justify-content:center; text-align:center; border-radius:14px; background:var(--f); border:1px solid var(--w-rand); padding:4px; line-height:1.2}
.sru-lex-aett b{color:var(--w-moos-tief); font-size:.95rem}
.sru-w .sru-kachel{display:flex !important; flex-direction:column; align-items:center; justify-content:center; gap:4px !important; width:auto !important; min-width:0; min-height:0;
  padding:6px 2px !important; border-radius:14px !important; border:1px solid var(--w-rand) !important; border-bottom:4px solid var(--f) !important;
  background:rgba(255,253,248,.92) !important; color:var(--w-tinte) !important; transition:transform .25s, border-color .25s}
.sru-w .sru-kachel:hover,.sru-w .sru-kachel:focus-visible{transform:translateY(-2px); border-color:var(--w-gold) !important; border-bottom-color:var(--w-gold) !important}
.sru-w .sru-kachel .sru-rune{height:2.5rem}
.sru-kachel-name{font-size:.86rem; color:var(--w-moos-tief); line-height:1.1; white-space:nowrap}

/* --- 6. Eine Rune ------------------------------------------------------- */
.sru-p-raster{display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:20px; flex:1 1 auto; min-height:0}
.sru-p-panel{display:flex; flex-direction:column; gap:8px; min-height:0; min-width:0}
.sru-p-panel .sru-r-zeichen{border-bottom-color:var(--w-gold)}
.sru-reiter{display:flex; gap:6px; flex-wrap:nowrap; border-bottom:1px solid var(--w-rand); padding-bottom:6px; flex:0 0 auto}
.sru-w .sru-reiter-knopf{flex:1 1 0 !important; display:inline-flex !important; align-items:center; justify-content:center; text-align:center;
  padding:7px 6px !important; border-radius:999px !important; border:1px solid var(--w-rand) !important; min-width:0;
  background:rgba(255,253,248,.85) !important; color:var(--w-tinte) !important; font-size:.88rem !important; line-height:1.15 !important}
.sru-w .sru-reiter-knopf[aria-selected="true"]{background:var(--w-moos) !important; color:#f6f1e3 !important; border-color:var(--w-moos-tief) !important}
.sru-w .sru-reiter-knopf:hover{border-color:var(--w-gold) !important}
.sru-p-inhalt{flex:1 1 auto; min-height:0; overflow:auto; padding-right:6px}
.sru-w .sru-p-inhalt p{font-size:.98rem; line-height:1.55; margin:0 0 .6em}
.sru-p-info{display:flex; flex-wrap:wrap; gap:6px; align-items:center; flex:0 0 auto}
.sru-chip{display:inline-block; padding:2px 11px; border-radius:999px; border:1px solid #e6cf8d; background:#fbf3dc; color:#5a4210; font-size:.82rem}
.sru-p-klein{font-size:.78rem; color:var(--w-leise)}
.sru-w .sru-quellen{margin:0 !important; font-size:.72rem; color:var(--w-leise); line-height:1.4; flex:0 0 auto}
.sru-w .sru-quellen a{color:var(--w-leise) !important; text-decoration:underline; opacity:1 !important}
.sru-blaettern{justify-content:space-between}

/* --- Box [runen-box] ---------------------------------------------------- */
.sru-box{display:flex; gap:18px; align-items:center; max-width:760px; margin:20px auto; padding:18px 22px; border-radius:20px;
  border:1px solid #e3d7bd; background:linear-gradient(135deg,#fffaf0,#eef0df); box-shadow:0 12px 28px -20px rgba(47,68,52,.6); color:#33402f}
.sru-box-bild{flex:0 0 140px; width:140px; height:140px; object-fit:contain; display:block}
.sru-box h3{margin:0 0 4px; color:#2f4434; font-size:1.25rem}
.sru-box p{margin:0 0 10px; line-height:1.5}
.sru-box .sru-knopf{display:inline-flex !important; align-items:center; justify-content:center; gap:8px !important; line-height:1.2; text-decoration:none !important;
  border:1px solid #2f4434 !important; border-radius:999px !important; background:#4f6f52 !important}
.sru-box a.sru-knopf,.sru-box a.sru-knopf:visited{min-height:0 !important; height:auto !important; padding:9px 20px !important;
  font-size:1rem !important; margin:0 !important; opacity:1 !important; filter:none !important; color:#f6f1e3 !important}
.sru-box a.sru-knopf:hover,.sru-box a.sru-knopf:focus{background:#2f4434 !important; color:#fff !important}
@media (max-width:560px){ .sru-box{flex-direction:column; text-align:center} .sru-box-bild{width:120px; height:120px; flex-basis:auto} }

/* --- Drucken: nur das Ergebnis ------------------------------------------ */
.sru-druck{display:none}
@media print{
  html.sru-drucken body > *:not(.sru-druck){display:none !important}
  html.sru-drucken .sru-druck{display:block !important; font-family:"Comic Sans MS","Comic Neue",cursive; color:#222; padding:10mm}
  .sru-druck h1{font-size:22pt; margin:0 0 2mm}
  .sru-druck h2{font-size:14pt; margin:0 0 2mm}
  .sru-druck-datum,.sru-druck-frage{margin:0 0 5mm; color:#555}
  .sru-druck-rune{display:flex; gap:6mm; margin:0 0 6mm; page-break-inside:avoid}
  .sru-druck-zeichen{flex:0 0 18mm}
  .sru-druck .sru-rune{height:24mm; width:auto; color:#3d3326}
  .sru-druck p{margin:0 0 2mm; line-height:1.45}
}

/* ======================================================================
   PC mit wenig Höhe (1366×768, 1280×800): etwas enger
   ====================================================================== */
@media (min-width:761px) and (max-height:820px){
  .sru-w-buehne{padding:14px 22px 12px}
  .sru-w.mit-leiste .sru-w-buehne{padding-bottom:56px}
  .sru-w .sru-einstieg{padding-top:8px !important; padding-bottom:8px !important}
}

/* ======================================================================
   HANDY – alles auf einen Bildschirm, Leiste in eigener Zeile unten
   ====================================================================== */
@media (max-width:760px){
  .sru-w{max-height:none; border-radius:16px; margin:8px auto !important}
  .sru-w-buehne{padding:10px 12px 6px}
  .sru-w.mit-leiste .sru-w-buehne{padding-bottom:4px}
  .sru-w .sru-fussleiste{position:static !important; flex:0 0 auto; padding:6px 8px 10px; gap:8px}
  .sru-w .sru-leisten-knopf{flex:1 1 0 !important; width:auto !important; max-width:none; height:40px !important; min-height:40px !important;
    white-space:normal !important; line-height:1.15 !important; text-align:center; font-size:.76rem !important; padding:0 10px !important}
  .sru-w .sru-leisten-knopf span{overflow:visible; text-overflow:clip}
  .sru-w .sru-nav{margin-bottom:4px}
  .sru-w .sru-zurueck-knopf{height:30px !important; min-height:30px !important; padding:0 12px !important; font-size:.8rem !important}
  .sru-w h2{font-size:1.3rem}
  .sru-unter{font-size:.85rem; margin-bottom:6px !important; line-height:1.35 !important}

  .sru-start{grid-template-columns:1fr; grid-template-rows:minmax(90px,1fr) auto; gap:8px}
  .sru-panel{justify-content:flex-start; gap:6px}
  .sru-w .sru-panel .sru-seitentitel{text-align:center; font-size:1.35rem}
  .sru-w .sru-panel .sru-unter{text-align:center !important; font-size:.84rem; line-height:1.35}
  .sru-w .sru-heute{font-size:.82rem; padding:4px 28px 4px 6px !important}
  .sru-heute-rune{flex-basis:28px; height:32px}
  .sru-w .sru-heute-rune .sru-rune{height:1.3rem}
  .sru-einstiege{gap:6px}
  .sru-w .sru-einstieg{padding:6px 30px 6px 8px !important; gap:9px !important; border-radius:13px !important}
  .sru-einstieg-ic{flex-basis:32px; width:32px; height:32px; font-size:1.1rem}
  .sru-einstieg-text b{font-size:.95rem}
  .sru-einstieg-text small{font-size:.74rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

  .sru-rad-raster{grid-template-columns:1fr; grid-template-rows:minmax(150px,46%) minmax(0,1fr); gap:6px}
  .sru-rad-panel{justify-content:flex-start; gap:5px}
  .sru-w .sru-hinweis-klein{display:none}
  .sru-r-zeichen{width:40px; height:48px; border-radius:10px}
  .sru-w .sru-r-zeichen .sru-rune{height:2rem}
  .sru-w .sru-r-kopf{gap:9px}
  .sru-w .sru-r-kopf h2{font-size:1.25rem}
  .sru-w .sru-r-kopf h3{font-size:1.15rem}
  .sru-w .sru-r-meta{font-size:.76rem}
  .sru-w .sru-r-kurz{font-size:.88rem !important; line-height:1.35 !important}
  .sru-w .sru-r-text p{font-size:.86rem; line-height:1.42}
  .sru-w .sru-r-unten .sru-knopf{padding:5px 14px; min-height:34px; font-size:.86rem}
  .sru-w .sru-pfeil-knopf{min-width:40px; font-size:1.15rem !important; padding:3px 12px !important}
  .sru-w .sru-g-titel{font-size:1.15rem; text-align:center}
  .sru-w .sru-rad-panel .sru-unter{display:none}
  .sru-g-wahl{justify-content:center}
  .sru-w .sru-auswahl{height:40px; font-size:1rem !important; padding:4px 10px !important}

  .sru-z-raster{grid-template-columns:1fr; grid-template-rows:minmax(120px,40%) minmax(0,1fr); gap:6px}
  .sru-z-panel{justify-content:flex-start; gap:6px}
  .sru-w .sru-z-titel{font-size:1.15rem; text-align:center}
  .sru-w .sru-z-panel .sru-unter{text-align:center; font-size:.82rem}
  .sru-z-arten{gap:5px}
  .sru-w .sru-z-art{padding:5px 10px 5px 38px !important}
  .sru-w .sru-z-art b{font-size:.92rem}
  .sru-w .sru-z-art small{font-size:.72rem}
  .sru-w button.sru-z-art::after{left:11px; width:16px; height:16px; margin-top:-8px}
  .sru-w .sru-frage{height:38px; font-size:.9rem !important}
  .sru-z-los{justify-content:center}
  .sru-w .sru-gross{min-width:150px; font-size:1rem !important}
  .sru-w .sru-z-frage{font-size:.82rem; text-align:center}
  .sru-z-deutung{gap:5px}
  .sru-z-karte{padding:5px 9px}
  .sru-w .sru-z-karte p{font-size:.84rem; line-height:1.38}
  .sru-z-karte-kopf b{font-size:.95rem}

  .sru-lex-raster{gap:6px}
  .sru-lex-reihe{grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:auto minmax(0,1fr) minmax(0,1fr); gap:4px}
  .sru-lex-aett{grid-column:1 / -1; border-radius:9px; padding:1px 4px}
  .sru-lex-aett b{font-size:.78rem}
  .sru-w .sru-kachel{padding:2px !important; gap:1px !important; border-radius:10px !important; border-bottom-width:3px !important}
  .sru-w .sru-kachel .sru-rune{height:1.45rem}
  .sru-kachel-name{font-size:.7rem}

  .sru-p-raster{grid-template-columns:1fr; grid-template-rows:minmax(80px,26%) minmax(0,1fr); gap:6px}
  .sru-p-panel{gap:5px}
  .sru-w .sru-reiter-knopf{font-size:.7rem !important; padding:5px 2px !important}
  .sru-w .sru-p-inhalt p{font-size:.86rem; line-height:1.45}
  .sru-chip{font-size:.7rem; padding:1px 8px}
  .sru-p-klein{font-size:.68rem}
  .sru-w .sru-quellen{font-size:.62rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

  .sru-overlay{padding:8px}
  .sru-overlay-kasten{padding:10px 14px 16px}
  .sru-hist-bild{width:46%}
  .sru-hist-inhalt p{font-size:.9rem}
}
@media (prefers-reduced-motion:reduce){
  .sru-szene,.sru-rad-feld.an .sru-rad-hof,.sru-svgstein.schwebt,.sru-svgstein.faellt{animation:none !important}
}
.sru-hist-bild.sru-hist-hoch{width:min(27%,150px)}

/* 1.0.2: Tooltip „Was ist Merkstave?“ */
.sru-tipp{cursor:help}
.sru-merk.sru-tipp{text-decoration:underline dotted;text-underline-offset:3px}
.sru-tipp-blase{position:fixed;z-index:100000;display:none;max-width:300px;padding:10px 13px;border-radius:12px;
  background:#fffdf8;color:#33402f;border:1px solid #bfa24f;box-shadow:0 10px 26px -10px rgba(47,68,52,.45);
  font-family:"Comic Sans MS","Comic Neue",cursive;font-size:.86rem;line-height:1.45;pointer-events:none;text-align:left}
.sru-tipp-blase::after{content:"";position:absolute;left:var(--pfeil,50%);bottom:-7px;width:12px;height:12px;margin-left:-6px;
  background:#fffdf8;border-right:1px solid #bfa24f;border-bottom:1px solid #bfa24f;transform:rotate(45deg)}
.sru-tipp-blase.unten::after{bottom:auto;top:-7px;transform:rotate(225deg)}
