
#ort { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(var(--ort-licht, .9)); }
@media (prefers-reduced-motion: no-preference) {
  #ort { animation: licht 7s ease-in-out infinite alternate; }
  @keyframes licht { from { filter: brightness(calc(var(--ort-licht, .9) - .03)); } to { filter: brightness(calc(var(--ort-licht, .9) + .03)); } }
}

#platte { position: absolute; border-radius: calc(var(--fw) * .28); background: rgba(50,34,18,.35);
  box-shadow: inset 0 2px 0 rgba(255,245,215,.45), inset 0 -3px 0 rgba(40,24,8,.45), 0 calc(var(--fw) * .16) 0 #5e4426, 0 calc(var(--fw) * .16 + 2px) 0 #3a2812,
    0 calc(var(--fw) * .35) calc(var(--fw) * .6) rgba(0,0,0,.55); }
#platte .flaechebild { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--flaeche) center / cover; opacity: .9; }
#platte[data-lv="4"] .flaechebild, #platte[data-lv="5"] .flaechebild { filter: brightness(.62) saturate(.85); }
#platte::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse at 25% 15%, rgba(255,236,180,.2), transparent 55%), radial-gradient(ellipse at 80% 100%, rgba(30,18,6,.25), transparent 60%); }

.st { position: absolute; background-size: 100% 100%; cursor: pointer; filter: drop-shadow(1px 2px 2px rgba(20,12,4,.45));
  transition: filter .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.st[hidden] { display: none; }
.st.gewaehlt { filter: drop-shadow(0 0 3px var(--wahl)) drop-shadow(0 0 7px var(--wahl)) brightness(1.06); transform: translateY(-3px); }
.st.zeig { filter: drop-shadow(0 0 4px #6ad1ff) drop-shadow(0 0 9px #2a9ad8); }
@media (prefers-reduced-motion: no-preference) {
  .st.zeig { animation: zeig 1s ease-in-out infinite alternate; }
  @keyframes zeig { from { transform: translateY(0); } to { transform: translateY(-4px); } }
  .st.wackelt { animation: wackelt .35s ease-in-out; }
  @keyframes wackelt { 0%, 100% { translate: 0 0; } 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
}
.st.weg { animation: weg .45s ease-in forwards; pointer-events: none; }
@keyframes weg { to { opacity: 0; transform: translateY(-14px) scale(.85); } }
#feld.hammer .st { cursor: crosshair; }
#feld.vorlos .st { visibility: hidden; }

#seite { position: absolute; z-index: 1500; display: flex; flex-direction: column; justify-content: space-evenly; gap: calc(var(--fw) * .12);
  padding: calc(var(--fw) * .3 + 10px) calc(var(--fw) * .24 + 4px); box-sizing: border-box; border-radius: calc(var(--fw) * .3);
  background:
    radial-gradient(ellipse at 25% 8%, rgba(255,226,170,.22), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(20,10,2,.35), transparent 60%),
    repeating-linear-gradient(93deg, rgba(40,20,6,.10) 0 2px, transparent 2px 7px, rgba(255,225,180,.05) 7px 8px, transparent 8px 13px),
    repeating-radial-gradient(ellipse at 70% 40%, transparent 0 18px, rgba(40,20,6,.08) 18px 20px),
    linear-gradient(165deg, #94653a, #76502c 40%, #5a3a1e 75%, #4a2e16);
  box-shadow:
    inset 0 0 0 3px #3a2210, inset 0 0 0 5px rgba(255,214,150,.28), inset 0 0 0 9px rgba(60,34,14,.55), inset 0 0 0 10px rgba(255,214,150,.18),
    inset 0 3px 0 10px rgba(255,230,180,.08),
    0 calc(var(--fw) * .16) 0 #2e1a0a, 0 calc(var(--fw) * .16 + 2px) 0 #1e1006, 0 calc(var(--fw) * .34) calc(var(--fw) * .55) rgba(0,0,0,.55); }
#seite::before, #seite::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; opacity: .9;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M6 20c0-8 6-14 14-14M20 6c8 0 14 6 14 14M34 20c0 8-6 14-14 14M20 34c-8 0-14-6-14-14M12 12l16 16M28 12L12 28' stroke='%232a1608' stroke-width='4.4'/%3E%3Cpath d='M6 20c0-8 6-14 14-14M20 6c8 0 14 6 14 14M34 20c0 8-6 14-14 14M20 34c-8 0-14-6-14-14M12 12l16 16M28 12L12 28' stroke='%23c89a5a' stroke-width='1.8' transform='translate(-.6 -.6)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
#seite::before { left: 4px; top: 4px; }
#seite::after { right: 4px; bottom: 4px; }

.sp { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 6px; border-radius: 12px; min-height: 40px;
  box-sizing: border-box; text-align: center; color: #f6e7c4; font: 600 15px/1.2 Georgia, "Times New Roman", serif; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.5);
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(180deg, rgba(34,20,8,.92), rgba(48,30,14,.9));
  box-shadow: inset 0 3px 7px rgba(0,0,0,.7), inset 0 -1px 0 rgba(255,220,170,.22), 0 1px 0 rgba(255,220,170,.28), 0 -1px 0 rgba(0,0,0,.35); }
.sp i { flex: 0 0 auto; width: 58px; height: 58px; background: center / contain no-repeat; filter: drop-shadow(1px 3px 3px rgba(0,0,0,.55)); }
.sp.schiff i { width: 100%; max-width: 132px; height: 72px; }
.sp span { min-width: 0; }
.sp b { color: #ffd27a; font-size: 21px; margin-left: 2px; }
.sp.knopf { border: 0; cursor: pointer; }
.sp.knopf:hover { background: linear-gradient(180deg, rgba(58,36,14,.95), rgba(76,48,20,.92)); }
.sp.knopf:hover i { transform: scale(1.06); }
.sp.knopf.leer { color: #b8a684; }
.sp.knopf.leer i { filter: grayscale(.85) brightness(.75); }
.sp.knopf.leer b { color: #b8a684; }
.sp.knopf.an { box-shadow: inset 0 3px 7px rgba(0,0,0,.7), 0 0 0 2px var(--wahl), 0 0 14px var(--wahl); }
.sp.drache u { position: relative; display: block; width: 84%; height: 6px; border-radius: 3px; background: rgba(0,0,0,.55); box-shadow: inset 0 1px 2px #000; text-decoration: none; overflow: hidden; }
.sp.drache u s { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #ff7a2a, #ffd24a); text-decoration: none; }
.sp.drache.heiss i { filter: drop-shadow(0 0 8px #ff8a3a) drop-shadow(1px 3px 3px rgba(0,0,0,.55)); }
.sp.drache.aus { color: #b8a684; }
.sp.rest { font-size: 14px; gap: 0; }
.sp.rest b { font-size: 17px; }

#feld.hoch #seite { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 6px; padding: 9px 10px; }
#feld.hoch #seite .sp.rest { grid-column: 1 / 3; }
#feld.hoch #seite::before, #feld.hoch #seite::after { width: 18px; height: 18px; left: auto; top: auto; }
#feld.hoch #seite::before { left: 3px; top: 3px; }
#feld.hoch #seite::after { right: 3px; bottom: 3px; }
#feld.hoch .sp { flex-direction: row; gap: 8px; padding: 4px 8px; font-size: 13px; min-height: 40px; }
#feld.hoch .sp i { width: 34px; height: 34px; }
#feld.hoch .sp.schiff i { width: 52px; height: 32px; }
#feld.hoch .sp b { font-size: 16px; }
#feld.hoch .sp.drache u { position: absolute; left: 50px; right: 10px; bottom: 4px; width: auto; height: 4px; }
#feld.hoch .sp.rest { min-height: 28px; gap: 14px; }
#feld.kompakt:not(.hoch) .sp { font-size: 13px; }
#feld.kompakt:not(.hoch) .sp i { width: 42px; height: 42px; }
#feld.kompakt:not(.hoch) .sp.schiff i { height: 52px; }

#querHinweis { position: absolute; z-index: 1700; left: 8px; right: 8px; top: 8px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px;
  border-radius: 10px; background: var(--tafelkasten); color: var(--tafelschrift); font-size: 13px; line-height: 1.25; box-shadow: 0 3px 10px rgba(0,0,0,.45);
  border: 1px solid rgba(240,214,160,.45); }
#querHinweis[hidden] { display: none; }
#querHinweis i { flex: 0 0 auto; width: 28px; height: 28px; background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2b357' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='16' rx='2'/%3E%3Cpath d='M3 16a9 9 0 0 0 9 6M19 8a9 9 0 0 0-5-5'/%3E%3Cpath d='M12 22l-1.5-2M12 22l2-1'/%3E%3C/svg%3E") center / contain no-repeat; }
#querHinweis span { flex: 1; min-width: 0; }
#querHinweis button { flex: 0 0 auto; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(240,214,160,.55); background: var(--knopf); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
#querHinweis button.zu { min-width: 40px; padding: 0; font-size: 20px; font-weight: 400; }

.schwebe { position: absolute; z-index: 1600; transform: translate(-50%, 0); pointer-events: none; font: 700 17px Georgia, serif; color: #ffe39a;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,.6); animation: schwebe 1.4s ease-out forwards; white-space: nowrap; }
.schwebe.schnell { color: #ffb24a; font-size: 20px; }
.schwebe.hammer { color: #d8e2ea; }
@keyframes schwebe { from { opacity: 0; margin-top: 0; } 15% { opacity: 1; } to { opacity: 0; margin-top: -46px; } }

* { scrollbar-width: thin; scrollbar-color: var(--akzent) transparent; }

.wy-karte { position: absolute; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 12px;
  background: radial-gradient(ellipse at 50% 40%, rgba(30,22,12,.86), rgba(6,4,2,.95)); animation: karteauf .45s ease-out; }
.wy-karte.weg { animation: karteweg .45s ease-in forwards; }
@keyframes karteauf { from { opacity: 0; } }
@keyframes karteweg { to { opacity: 0; transform: scale(1.04); } }
.wy-karte-box { position: relative; width: min(760px, 100%); max-height: 100%; overflow: auto; text-align: center; color: #3a2410; padding: 14px 18px 16px; box-sizing: border-box;
  border-radius: 6px; background:
    radial-gradient(ellipse at 50% 45%, #f4e6c2 0%, #e8d3a0 55%, #c9a86a 88%, #8a6430 100%);
  box-shadow: inset 0 0 40px rgba(110,70,20,.55), inset 0 0 6px rgba(80,40,10,.6), 0 10px 40px rgba(0,0,0,.7); }
.wy-karte-box small { display: block; color: #6a4a24; letter-spacing: 2px; text-transform: uppercase; font: 700 13px Georgia, serif; }
.wy-karte-box h2 { margin: 2px 0 4px; font: 700 clamp(24px, 4.6vw, 40px) Georgia, "Times New Roman", serif; letter-spacing: 2px; color: #6a1a0a; }
.wy-karte svg { width: 100%; max-height: 54vh; display: block; margin: 0 auto; }
.wy-karte .meer { fill: none; }
.wy-karte .land { fill: rgba(150,110,50,.13); }
.wy-karte .kueste { fill: none; stroke: #5a3a18; stroke-width: 2.4; }
.wy-karte .fjord, .wy-karte .berg, .wy-karte .wald { fill: none; stroke: #6a4a24; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.wy-karte .rose circle { fill: none; stroke: #6a4a24; stroke-width: 1.6; }
.wy-karte .rose path { fill: #6a4a24; opacity: .8; }
.wy-karte .rose text { fill: #6a1a0a; font: 700 14px Georgia, serif; text-anchor: middle; }
.wy-karte .weg { fill: none; stroke: #6a4a24; stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.wy-karte .weg.ok { stroke: #a8320e; stroke-width: 4.4; stroke-dasharray: none; }
.wy-karte .stn path { stroke: #4a2e10; }
.wy-karte .stn circle { fill: #f4e6c2; stroke: #6a4a24; stroke-width: 2.4; }
.wy-karte .stn text { fill: #6a4a24; font: 700 18px Georgia, serif; text-anchor: middle; }
.wy-karte .stn text.nm { font: 700 14px Georgia, serif; fill: #4a2e10; }
.wy-karte .stn text.nm[text-anchor="end"] { text-anchor: end; }
.wy-karte .stn.ok circle { fill: #c89030; stroke: #6a3a08; }
.wy-karte .stn.ok text { fill: #fff4d8; }
.wy-karte .stn.ok text.nm { fill: #8a5a10; }
.wy-karte .stn.jetzt circle { fill: #a8320e; stroke: #3a0e04; stroke-width: 3; animation: station 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.wy-karte .stn.jetzt text { fill: #fff4d8; }
.wy-karte .stn.jetzt text.nm { fill: #6a1a0a; font-size: 16px; }
@keyframes station { to { transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .wy-karte .stn.jetzt circle { animation: none; } }
.wy-karte .stn .haken { fill: none; stroke: #fff4d8; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.wy-karte .stn.zu circle { fill: #efdfb6; stroke: #a8906a; stroke-dasharray: 4 4; }
.wy-karte .stn.zu text, .wy-karte .stn.zu path { opacity: .55; }
.wy-karte-info { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 10px; }
.wy-karte-info span { padding: 4px 12px; border-radius: 999px; background: rgba(90,58,24,.14); border: 1px solid rgba(106,74,36,.5); font: 600 14px Georgia, serif; color: #3a2410; }
.wy-karte .wy-los { min-height: 46px; padding: 0 30px; border-radius: 10px; border: 2px solid #6a3a08; background: linear-gradient(#b8402a, #7a1a0a); color: #fff4d8;
  font: 700 18px Georgia, serif; cursor: pointer; box-shadow: 0 3px 0 #3a0e04, 0 6px 14px rgba(0,0,0,.35); }
.wy-karte .wy-los:hover { background: linear-gradient(#c8503a, #8a2414); }
.wy-karte-tipp { margin: 8px 0 0; font: italic 13px Georgia, serif; color: #6a4a24; }

.hammerschlag { position: absolute; z-index: 1650; pointer-events: none; background: center / contain no-repeat; transform-origin: 80% 85%;
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,.5)); animation: schwung .5s ease-in forwards; }
@keyframes schwung { 0% { transform: rotate(-70deg); opacity: 0; } 20% { opacity: 1; } 34% { transform: rotate(8deg); } 46% { transform: rotate(-4deg); } 80% { opacity: 1; } 100% { transform: rotate(-12deg); opacity: 0; } }
.st.zerschlagen { animation: krach .85s ease-out forwards; pointer-events: none; }
@keyframes krach { 0% { transform: none; } 18% { transform: translate(-2px, 2px) rotate(-3deg); filter: brightness(1.5); } 26% { transform: translate(2px, -1px) rotate(2deg); opacity: 1; }
  100% { transform: translateY(6px) scale(.82); opacity: 0; filter: blur(3px) brightness(1.2); } }
.staub { position: absolute; z-index: 1640; width: 0; height: 0; pointer-events: none; }
.staub i { position: absolute; left: 0; top: 0; width: calc(var(--g) * var(--s)); height: calc(var(--g) * var(--s)); border-radius: 50%; margin: calc(var(--g) * var(--s) / -2);
  background: radial-gradient(circle at 40% 35%, rgba(236,226,206,.95), rgba(190,176,150,.75) 55%, rgba(150,136,110,0) 72%);
  animation: staub .9s ease-out var(--d) forwards; opacity: 0; }
@keyframes staub { 0% { opacity: .95; transform: translate(0, 0) scale(.3); } 60% { opacity: .75; } 100% { opacity: 0; transform: translate(calc(var(--x) * var(--g)), calc(var(--y) * var(--g))) scale(1.4); } }
.staub b { position: absolute; left: 0; top: 0; width: calc(var(--g) * .14); height: calc(var(--g) * .1); margin: -3px; background: #d8d0bc; border: 1px solid #6a604e;
  transform: rotate(var(--r)); animation: splitter .7s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes splitter { to { transform: translate(calc(var(--x) * var(--g)), calc(var(--y) * var(--g) + var(--g) * .5)) rotate(calc(var(--r) + 220deg)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hammerschlag { animation-duration: .2s; } .staub i, .staub b { animation-duration: .3s; } }

.sp.schiff small { display: block; font: 600 12px Georgia, serif; color: #d8c49c; }
.sp.schiff small b { font-size: 14px; }
.sp-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--fw) * .12); }
.sp-reihe .sp { padding: 6px 4px; }
.sp-reihe .sp i { width: 42px; height: 42px; }
.sp.runen { background: linear-gradient(180deg, rgba(10,30,36,.92), rgba(20,44,52,.9)); }
.sp.runen b { color: #8ff4ff; font-size: 24px; text-shadow: 0 0 8px rgba(80,220,255,.7), 0 1px 0 #000; }
.sp-joker { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--fw) * .12); }
.sp.joker { padding: 6px 4px 4px; gap: 2px; font-size: 13px; }
.sp.joker > i { width: 40px; height: 40px; }
.sp.joker em { display: inline-flex; align-items: center; gap: 2px; font: 700 15px Georgia, serif; font-style: normal; color: #8ff4ff; text-shadow: 0 0 6px rgba(80,220,255,.6), 0 1px 0 #000; }
.sp.joker em i { width: 16px; height: 16px; background: center / contain no-repeat; filter: none; }
.sp.knopf.leer em { color: #6a8a90; text-shadow: none; }
.sp.knopf[aria-disabled="true"] { cursor: not-allowed; border: 1px dashed rgba(240,214,160,.35); }
.sp.fach { justify-content: flex-start; gap: 4px; padding: 6px; min-height: 64px; }
.sp.fach > span { font-size: 13px; color: #d8c49c; }
.fachsteine { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; align-items: center; min-height: 40px; }
.fachsteine small { font: italic 12px Georgia, serif; color: #a8946c; }
.st.fst { position: relative; width: calc(var(--fw) * .78); height: calc(var(--fw) * .78 * 104 / 68); background-size: 100% 100%; cursor: pointer; }
.st.fst.unterwegs { visibility: hidden; }
#feld[data-modus="hammer"] .st, #feld[data-modus="messer"] .st { cursor: crosshair; }
#feld[data-modus="messer"] .st:not(.fst):hover { filter: drop-shadow(0 0 4px #8ff4ff) drop-shadow(1px 2px 2px rgba(20,12,4,.45)); }
.st.flug { pointer-events: none; }
.messerschnitt { position: absolute; z-index: 1750; pointer-events: none; background: center / contain no-repeat; animation: schnitt .45s ease-out forwards; filter: drop-shadow(0 0 6px #fff); }
@keyframes schnitt { 0% { transform: translate(-30%, -30%) rotate(-30deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(30%, 30%) rotate(10deg); opacity: 0; } }

.gott { position: absolute; inset: 0; z-index: 1900; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(60,200,232,.28), rgba(6,14,20,.55) 70%); animation: gottauf .6s ease-out; }
.gott i { width: min(46vh, 340px); height: min(46vh, 340px); background: center / contain no-repeat; filter: drop-shadow(0 0 24px rgba(140,240,255,.8)); animation: schweben 1.6s ease-in-out infinite alternate; }
.gott b { margin-top: 8px; padding: 6px 16px; border-radius: 10px; background: rgba(10,26,32,.88); color: #bff8ff; font: 700 18px Georgia, serif; text-shadow: 0 0 8px rgba(80,220,255,.7); }
.gott.weg { animation: gottweg .55s ease-in forwards; }
@keyframes gottauf { from { opacity: 0; transform: scale(.9); } }
@keyframes gottweg { to { opacity: 0; transform: scale(1.06); } }
@keyframes schweben { to { transform: translateY(-10px); } }
.st.wirbel { transition: transform .35s ease-in, filter .35s; transform: rotateY(90deg) scale(.8); filter: brightness(1.6) drop-shadow(0 0 8px #8ff4ff); }
.st.wirbelein { animation: wirbelein .6s ease-out; }
@keyframes wirbelein { from { transform: rotateY(90deg) scale(.8); filter: brightness(1.6); } }
@media (prefers-reduced-motion: reduce) { .gott i { animation: none; } .st.wirbel { transform: none; } .st.wirbelein { animation: none; } }

#feld.hoch #seite { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; }
#feld.hoch .sp.schiff { flex-direction: row; justify-content: center; min-height: 36px; }
#feld.hoch .sp.schiff small { margin-left: 8px; }
#feld.hoch .sp-joker { grid-template-columns: repeat(4, 1fr); gap: 5px; }
#feld.hoch .sp.joker { flex-direction: column; padding: 3px 2px; font-size: 11.5px; min-height: 44px; }
#feld.hoch .sp.joker > i { width: 26px; height: 26px; }
#feld.hoch .sp-reihe .sp i { width: 28px; height: 28px; }
#feld.hoch .sp.fach { flex-direction: row; min-height: 44px; }
#feld.hoch .st.fst { width: 26px; height: 40px; }

.sp.letzt { padding: 4px; gap: 2px; font-size: 12.5px; }
.sp.letzt .mini { display: flex; gap: 3px; justify-content: center; min-height: 36px; align-items: center; }
.sp.letzt .mini i { width: 26px; height: 36px; background: center / 100% 100% no-repeat; filter: drop-shadow(1px 2px 2px rgba(0,0,0,.5)); }
.sp.letzt small { font: italic 12px Georgia, serif; color: #a8946c; }
.sp.rest { padding: 4px; gap: 0; font-size: 12.5px; }
.sp.rest b { font-size: 16px; }
#feld.hoch .sp.letzt, #feld.hoch .sp.rest { flex-direction: row; gap: 6px; min-height: 36px; }
#feld.hoch .sp.letzt .mini i { width: 20px; height: 28px; }

.st.dreh { animation: dreh .3s ease-in-out; }
@keyframes dreh { 50% { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .st.dreh { animation: none; } }

#feld:not(.hoch) #seite { justify-content: space-between; gap: 5px; padding-top: calc(var(--fw) * .2 + 8px); padding-bottom: calc(var(--fw) * .2 + 8px); }
#feld:not(.hoch) .sp { padding: 4px 4px; min-height: 0; }
#feld:not(.hoch) .sp.schiff { gap: 0; }
#feld:not(.hoch) .sp.schiff i { height: 46px; max-width: 110px; }
#feld:not(.hoch) .sp-reihe .sp i { width: 32px; height: 32px; }
#feld:not(.hoch) .sp.joker > i { width: 32px; height: 32px; }
#feld:not(.hoch) .sp.joker { font-size: 12.5px; }
#feld:not(.hoch) .sp.runen b { font-size: 20px; }
#feld:not(.hoch) .sp.fach { min-height: 52px; }
#feld:not(.hoch) .sp b { font-size: 17px; }

.sp-reihe .sp { position: relative; padding-bottom: 12px; }
.sp-reihe .sp .zeile { display: flex; align-items: center; justify-content: center; gap: 4px; height: 26px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.sp-reihe .sp .zeile b { display: inline-block; min-width: 1.2em; text-align: center; }
.sp.drache .zeile b { color: #ffb24a; font-size: 22px; text-shadow: 0 0 8px rgba(255,140,40,.7), 0 1px 0 #000; }
.sp.drache u { position: absolute; left: 12%; right: 12%; bottom: 5px; width: auto; height: 5px; }
#feld.hoch .sp-reihe .sp { padding-bottom: 4px; }
#feld.hoch .sp-reihe .sp .zeile { height: 22px; }
#feld.hoch .sp.drache u { left: 12%; right: 12%; bottom: 2px; height: 3px; }

.sp-reihe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sp-reihe .sp { min-width: 0; padding-bottom: 16px; }
.sp-reihe .sp .zeile { font-size: 13px; }
.sp.drache u { bottom: 6px; }
#feld.hoch .sp-reihe .sp { padding-bottom: 8px; }
#feld.hoch .sp.drache u { bottom: 3px; }
#seite > * { flex-shrink: 0; }
.sp-reihe .sp { padding-bottom: 6px; }
.sp.drache u { position: relative; left: auto; right: auto; bottom: auto; display: block; width: 76%; height: 5px; margin-top: 4px; }
.sp.runen::after { content: ""; display: block; height: 9px; }
.sp-reihe .sp .zeile { height: 24px; }
.sp.runen .zeile b { font-size: 19px; }
#feld.hoch .sp.drache u { position: absolute; left: 12%; right: 12%; bottom: 2px; width: auto; margin: 0; }
#feld.hoch .sp.runen::after { display: none; }
#feld:not(.hoch) .sp.schiff i { height: 40px; }
#feld:not(.hoch) .sp.fach { min-height: 46px; }
#feld:not(.hoch) .sp-joker .sp.joker > i { width: 28px; height: 28px; }

#ov .seg button.wy-zu { opacity: .45; border-style: dashed; cursor: not-allowed; }
#ov .wy-sperre { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: var(--gedimmt); }
#ov .wy-sperre svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }

#schatulle { position: absolute; z-index: 6; filter: drop-shadow(2px 5px 6px rgba(0,0,0,.55)); }
#feld.vorlos #schatulle { visibility: hidden; }
#schatulle > i { position: absolute; inset: 0; background: center / 100% 100% no-repeat; pointer-events: none; }
#schatulle .paar { position: absolute; left: 16%; right: 16%; top: 22%; bottom: 14%; display: flex; gap: 6%; justify-content: center; align-items: flex-start; }
#schatulle .paar i { width: 46%; aspect-ratio: 76 / 104; background: center / 100% 100% no-repeat; filter: drop-shadow(1px 2px 2px rgba(0,0,0,.5)); }
#schatulle .paar.neu i { animation: inkiste .45s ease-out; }
@keyframes inkiste { from { transform: translateY(-30%); opacity: 0; } }
#schatulle .schild { position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 100%); padding: 1px 8px; border-radius: 6px; white-space: nowrap;
  background: rgba(34,20,8,.9); color: #f6e7c4; font: 600 11.5px Georgia, serif; }

.sp.rest { flex-direction: row; justify-content: center; gap: 12px; padding: 5px 6px; min-height: 0; }
#feld:not(.hoch) .sp b { font-size: calc(17px * var(--tz, 1)); }
#feld:not(.hoch) .sp { font-size: calc(13px * var(--tz, 1)); }
#feld:not(.hoch) .sp.schiff i { height: calc(40px * var(--tz, 1)); max-width: calc(110px * var(--tz, 1)); }
#feld:not(.hoch) .sp-reihe .sp i, #feld:not(.hoch) .sp-joker .sp.joker > i { width: calc(30px * var(--tz, 1)); height: calc(30px * var(--tz, 1)); }
#feld:not(.hoch) .sp-reihe .sp .zeile { height: calc(24px * var(--tz, 1)); font-size: calc(13px * var(--tz, 1)); }
#feld:not(.hoch) .sp.joker em { font-size: calc(15px * var(--tz, 1)); }
#feld:not(.hoch) .sp.joker em i { width: calc(16px * var(--tz, 1)); height: calc(16px * var(--tz, 1)); }
#feld:not(.hoch) .st.fst { width: calc(var(--fw) * .7); height: calc(var(--fw) * .7 * 104 / 68); }
#feld:not(.hoch) .sp.fach { min-height: calc(46px * var(--tz, 1)); }
#schatulle .schild { bottom: 4%; transform: translateX(-50%); font-size: 11px; padding: 0 6px; background: rgba(34,20,8,.88); }
#feld:not(.hoch) #seite { justify-content: flex-start; }
#feld:not(.hoch) #seite > .sp.schiff { flex: 1.3 0 auto; }
#feld:not(.hoch) #seite > .sp.rest { flex: .5 0 auto; }
#feld:not(.hoch) #seite > .sp-reihe { flex: 1.1 0 auto; grid-auto-rows: 1fr; }
#feld:not(.hoch) #seite > .sp-joker { flex: 2.2 0 auto; grid-auto-rows: 1fr; }
#feld:not(.hoch) #seite > .sp.fach { flex: 1 0 auto; }
#feld.eng:not(.hoch) #seite { padding: 6px 7px; gap: 4px; }
#feld.eng:not(.hoch) #seite > .sp.schiff > i { display: none; }
#feld.eng:not(.hoch) #seite > .sp.schiff, #feld.eng:not(.hoch) #seite > .sp.rest { padding: 2px 4px; }
#feld.eng:not(.hoch) #seite > .sp.fach .fachsteine small { display: none; }
#feld.eng:not(.hoch) #seite > .sp.fach .fachsteine { min-height: 0; }
#feld.eng:not(.hoch) #seite > * { flex-grow: 0; }
#feld { --zi: 26px; --zn: 17px; --zw: 20px; }
#feld:not(.hoch) { --zi: calc(30px * var(--tz, 1)); --zn: calc(19px * var(--tz, 1)); --zw: calc(22px * var(--tz, 1)); }
#seite .sp-reihe .sp, #seite .sp.joker { display: grid; grid-template-rows: var(--zi) var(--zn) var(--zw); justify-items: center; align-content: center;
  gap: calc(3px * var(--tz, 1)); padding: calc(5px * var(--tz, 1)) 3px; min-height: 0; flex-direction: initial; }
#seite .sp-reihe .sp > i, #seite .sp.joker > i { width: var(--zi); height: var(--zi); }
#seite .sp-reihe .sp .name, #seite .sp.joker .name { height: var(--zn); line-height: var(--zn); display: flex; align-items: center; justify-content: center; white-space: nowrap; font-size: calc(var(--zn) * .7); }
#seite .sp-reihe .sp .wert, #seite .sp.joker .wert { height: var(--zw); display: flex; align-items: center; justify-content: center; width: 100%; line-height: 1; }
#seite .sp.runen .wert b { font-size: calc(var(--zw) * .95); min-width: 0; }
#seite .sp.joker em.wert { font-size: calc(var(--zw) * .72); gap: 3px; }
#seite .sp.joker em.wert i { width: calc(var(--zw) * .72); height: calc(var(--zw) * .72); }
#seite .sp.drache .wert u { position: relative; left: auto; right: auto; bottom: auto; margin: 0; width: 76%; height: calc(5px * var(--tz, 1)); }
#seite .sp.drache .name b { font-size: calc(var(--zn) * 1.05); }
#seite .sp.runen::after { display: none; }
#seite .sp-reihe .sp { padding-bottom: calc(5px * var(--tz, 1)); }
#seite .sp.rest span { white-space: nowrap; }
#seite .sp-joker, #seite .sp-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#feld.hoch #seite .sp-joker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#seite .sp-reihe .sp, #seite .sp.joker, #seite .sp.rest, #seite .sp.schiff, #seite .sp.fach { min-width: 0; max-width: 100%; box-sizing: border-box; }
#seite .sp-reihe .sp .name, #seite .sp.joker .name { font-size: calc(var(--zn) * .64); max-width: 100%; }
#seite .sp.joker em.wert, #seite .sp.drache .wert u, #seite .sp.runen .wert { max-width: 100%; box-sizing: border-box; }
#seite .sp.rest { font-size: calc(12px * var(--tz, 1)); gap: calc(8px * var(--tz, 1)); }
#seite .sp.rest b { font-size: calc(15px * var(--tz, 1)); }
#feld.hoch #seite .sp.rest { font-size: 12.5px; } #feld.hoch #seite .sp.rest b { font-size: 16px; }
#seite .wert { box-sizing: border-box; max-width: 100%; min-width: 0; }
.wy-karte-info .wy-mit { font-style: normal; opacity: .8; font-size: .9em; }
.karte-ov:has(.wy-ende) { width: min(820px, 100%); padding: 20px 26px 22px; }
.karte-ov:has(.wy-ende) h2 { font-size: 32px; margin-bottom: 8px; }
.karte-ov:has(.wy-ende) > p.mitte { display: none; }
.karte-ov:has(.wy-ende) .gesamt { display: none; }
.karte-ov:has(.wy-ende) button.wartet { opacity: .45; cursor: default; }
.wy-ende { position: relative; }
.wy-weg { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; padding: 0; }
.wy-weg li { position: relative; height: 54px; border-radius: 9px; background-size: cover; background-position: center; border: 2px solid rgba(240,214,160,.3);
  filter: grayscale(.85) brightness(.55); transition: transform .4s, box-shadow .4s, filter .4s; overflow: hidden; }
.wy-weg li span { position: absolute; left: 5px; top: 2px; font: 700 18px var(--zier); color: #fff; text-shadow: 0 1px 3px #000; }
.wy-weg li small { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 4px; font-size: 11px; color: #f8eedb; background: rgba(20,12,4,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wy-weg li.ok { filter: none; border-color: #e8b24e; }
.wy-weg li.aus { filter: grayscale(.4) brightness(.7) sepia(.4); border-color: #c8321e; }
.wy-weg li.jetzt.an { transform: translateY(-4px); box-shadow: 0 0 0 2px #ffd27a, 0 0 18px rgba(255,200,90,.7); }
.wy-weg li.naechst.an { filter: none; border-color: #ffd27a; animation: wyNaechst 1.4s ease-in-out infinite alternate; }
@keyframes wyNaechst { to { box-shadow: 0 0 14px rgba(255,210,122,.8); } }
.wy-weg li em.stempel { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-14deg); padding: 0 5px; border: 2px solid #ff6a50; border-radius: 4px;
  font: 700 11px var(--zier); color: #ffb19c; background: rgba(40,8,4,.6); text-transform: uppercase; letter-spacing: 1px; }
.wy-truhe { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 2px 0 10px; }
.wy-truhe small { display: block; color: var(--gedimmt); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.wy-truhe b { display: block; font: 700 46px var(--zier); color: #ffd27a; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.wy-gesamt { text-align: right; }
.wy-gesamt b { font-size: 28px; color: #e9d8b0; }
.wy-level { text-align: left; }
.wy-truhe .kiste { position: relative; display: block; width: 96px; height: 88px; }
.wy-truhe .kiste i { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
.wy-truhe .kiste i.gold { inset: 36% 16% 30%; border-radius: 40% 40% 8px 8px; background: radial-gradient(circle at 30% 35%, #fff6c8 0 6%, transparent 7%), radial-gradient(circle at 62% 42%, #fff2b0 0 5%, transparent 6%),
  radial-gradient(ellipse at 50% 70%, #ffd24a, #c88a1a 60%, #7a4a0a); transform: scaleY(.25); transform-origin: bottom; transition: transform .5s ease-out; }
.wy-truhe.glanz .kiste { animation: wyGlanz .5s ease-out; }
.wy-truhe.voll .kiste i.gold { transform: scaleY(1); }
.wy-truhe.voll .wy-level b { animation: wyVoll .9s ease-out; text-shadow: 0 0 18px rgba(255,200,90,.65); }
@keyframes wyGlanz { 40% { transform: scale(1.08) rotate(-2deg); filter: drop-shadow(0 0 14px rgba(255,210,90,.9)); } }
@keyframes wyVoll { 40% { transform: scale(1.12); } }
.wy-ende.verloren .wy-level b { color: #ffb19c; }
.wy-posten { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.wy-posten li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 8px;
  opacity: 0; transform: translateX(-14px); transition: opacity .35s, transform .35s; }
.wy-posten li:nth-child(odd) { background: rgba(255,240,200,.05); }
.wy-posten li.da { opacity: 1; transform: none; }
.wy-posten li > i { width: 28px; height: 28px; background: center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.wy-posten li > span { min-width: 0; }
.wy-posten li b { font-variant-numeric: lining-nums tabular-nums; min-width: 7ch; text-align: right; }
.wy-posten li.plus b { color: #ffd27a; }
.wy-posten li.info span { color: #ffb19c; }
.wy-posten li.summe { background: rgba(232,178,78,.12); border-top: 2px solid rgba(232,178,78,.55); font-weight: 700; }
.wy-posten li.summe b { color: #ffd27a; font-size: 19px; }
.wy-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 0; }
.wy-chips span { padding: 3px 11px; border-radius: 999px; background: rgba(255,240,200,.1); border: 1px solid rgba(240,214,160,.3); font-size: 13px; }
.wy-naechst { text-align: center; margin: 10px 0 0; font-size: 15px; }
.wy-naechst b { color: #ffd27a; }
.wy-naechst b.mit { color: #8ff4ff; }
@media (max-width: 640px), (max-height: 520px) {
  .karte-ov:has(.wy-ende) { padding: 12px 12px 14px; }
  .karte-ov:has(.wy-ende) h2 { font-size: 22px; margin-bottom: 4px; }
  .wy-weg { gap: 4px; margin-bottom: 6px; }
  .wy-weg li { height: 34px; }
  .wy-weg li small { display: none; }
  .wy-weg li span { font-size: 14px; }
  .wy-truhe { gap: 10px; margin-bottom: 6px; }
  .wy-truhe .kiste { width: 62px; height: 56px; }
  .wy-truhe b { font-size: 32px; }
  .wy-gesamt b { font-size: 20px; }
  .wy-posten { font-size: 13.5px; }
  .wy-posten li { padding: 3px 8px; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; }
  .wy-posten li > i { width: 22px; height: 22px; }
  .wy-chips { margin-top: 6px; } .wy-chips span { font-size: 11.5px; padding: 2px 8px; }
  .wy-naechst { font-size: 13px; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .wy-posten li { transition: none; } .wy-weg li.naechst.an, .wy-truhe.glanz .kiste { animation: none; } }
.wy-truhe .kiste i.gold { inset: 40% 14% 38% 14%; border-radius: 50% 50% 6px 6px / 70% 70% 6px 6px; }
@media (max-height: 440px) {
  .karte-ov:has(.wy-ende) { padding: 8px 12px 10px; }
  .karte-ov:has(.wy-ende) h2 { font-size: 19px; margin-bottom: 3px; }
  .wy-weg li { height: 24px; }
  .wy-truhe .kiste { width: 46px; height: 42px; }
  .wy-truhe b { font-size: 26px; } .wy-gesamt b { font-size: 17px; } .wy-truhe small { font-size: 10px; }
  .wy-posten li { padding: 1px 8px; } .wy-posten li.summe b { font-size: 16px; }
  .wy-chips { display: none; }
  .wy-naechst { margin-top: 4px; font-size: 12px; }
  .karte-ov:has(.wy-ende) .reihe-k { margin-top: 6px; }
  .karte-ov:has(.wy-ende) .reihe-k button { padding-top: 6px; padding-bottom: 6px; }
}
.wy-wegbox { position: relative; }
.wy-segel { position: absolute; left: -2%; top: -14px; width: 74px; height: 50px; background: center / contain no-repeat; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6));
  transition: left 3.2s cubic-bezier(.45,.05,.3,1); pointer-events: none; z-index: 2; animation: wySchaukeln 1.6s ease-in-out infinite alternate; }
.wy-fahrt.fertig .wy-segel { left: calc(100% - 66px); }
@keyframes wySchaukeln { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-3px); } }
.wy-fahrt.sieg.fertig .wy-weg li:last-child { box-shadow: 0 0 0 2px #ffd27a, 0 0 22px rgba(255,200,90,.85); }
.wy-kopf { text-align: center; margin: 2px 0 6px; font: 600 17px var(--zier); color: #f2e2bc; }
.wy-fahrt.sieg .wy-kopf { color: #ffd27a; }
.wy-fahrt.verloren .wy-kopf { color: #ffb19c; }
.wy-posten.fahrt li > i { width: 40px; height: 26px; border-radius: 5px; background-size: cover; border: 1px solid rgba(240,214,160,.4); }
.wy-posten.fahrt li { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 3px 10px; font-size: 15px; }
@media (max-width: 640px), (max-height: 520px) {
  .wy-segel { width: 48px; height: 32px; top: -8px; } .wy-fahrt.fertig .wy-segel { left: calc(100% - 44px); }
  .wy-kopf { font-size: 14px; margin: 0 0 4px; }
  .wy-posten.fahrt li { grid-template-columns: 30px minmax(0, 1fr) auto; font-size: 13px; padding: 1px 8px; }
  .wy-posten.fahrt li > i { width: 30px; height: 20px; }
}
@media (max-height: 440px) { .wy-posten.fahrt li { font-size: 12px; padding: 0 8px; } .wy-posten.fahrt li > i { height: 16px; } }
@media (prefers-reduced-motion: reduce) { .wy-segel { transition: none; animation: none; } }
.wy-posten.fahrt li.summe > i { border: none; background: none; }
