/* Trichter - Thema Strandbar: eigener Gestaltungsstil. Gilt nur unter body[data-theme="strand"].
   Art Direction: "Strandbar bei Sonnenuntergang". Statt dunkler Spielsteine: sonnengebleichte Bretter mit
   Nägeln und Planken-Fugen, Seil als Rand, dunkles Treibholz für Schilder, handgemalte Schrift (Boogaloo),
   Knöpfe als bemalte Holzstücke und Surfbretter, Namen als Kofferanhänger, Karten als Postkarten mit
   Bambus-, Luftpost- und Rattanrahmen. Alles sitzt ein wenig schief und schaukelt beim Erscheinen wie ein
   aufgehängtes Schild. Helle Flächen mit dunkler Schrift - das Gegenteil des Standard-Themas.
   Farben sind themen-eigene Malfarben (keine Vitec-Markenfarben); Texturen nur aus CSS-Verläufen. */

/* Schriften: beide SIL Open Font License 1.1, aus @fontsource (latin, enthält ä ö ü ß) */
@font-face { font-family: "Boogaloo"; font-weight: 400 700; font-display: swap; src: url("/fonts/boogaloo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600 800; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben, Schriften, Texturen ---------- */
body[data-theme="strand"] {
  color-scheme: light;
  /* Holz und Papier */
  --s-wood-1: #4a2c17; --s-wood-2: #6e4526; --s-wood-3: #8c5c33; --s-wood-4: #b98a55;
  --s-board: #f3e3bb; --s-board-2: #e9d4a3; --s-board-3: #dcc086;
  --s-paper: #fff8e6; --s-ink: #3b2413; --s-ink-2: #6a4526;
  /* Malfarben */
  --s-teal: #128089; --s-teal-ink: #0d5f68; --s-aqua: #5fd3cf; --s-coral: #ff7a59; --s-sun: #ffc94d; --s-rust: #9c3a1a;

  /* die Variablen der Grundoberfläche, auf hell gedreht */
  --panel: var(--s-board); --panel-2: var(--s-board-2); --panel-3: var(--s-board-3);
  --edge: var(--s-wood-2); --shade: rgba(58, 32, 14, 0.55);
  --line: rgba(74, 44, 23, 0.22); --line-strong: rgba(74, 44, 23, 0.5);
  --text: var(--s-ink); --text-2: var(--s-ink-2);
  --coral: var(--s-coral); --coral-alt: #ff6a45; --gold: var(--s-sun); --peach: var(--s-rust); --sky: var(--s-teal-ink);
  --paper: var(--s-paper); --ink: var(--s-ink);

  --display: "Boogaloo", "Trebuchet MS", "Comic Sans MS", cursive;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --sway: cubic-bezier(0.3, 0.7, 0.3, 1);

  /* Texturen */
  --s-planks:
    linear-gradient(100deg, rgba(255, 255, 255, 0.34), transparent 38%, rgba(255, 255, 255, 0.16) 72%, transparent),
    repeating-linear-gradient(180deg, transparent 0 58px, rgba(74, 44, 23, 0.17) 58px 60px),
    repeating-linear-gradient(91deg, rgba(74, 44, 23, 0.04) 0 2px, transparent 2px 9px);
  --s-dwood:
    repeating-linear-gradient(91deg, rgba(0, 0, 0, 0.13) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #7d5130, #5f381d);
  --s-rope: repeating-linear-gradient(-45deg, #e6c994 0 4px, #a67c45 4px 6px, #cfaa70 6px 9px, #7d5a2e 9px 10px);
  --s-nail: radial-gradient(circle, #d9c4a0 0 1px, #4a2c17 1.3px 3px, rgba(74, 44, 23, 0.25) 3.3px 4.2px, transparent 4.6px);
  --s-nails:
    var(--s-nail) 7px 7px / 10px 10px no-repeat, var(--s-nail) calc(100% - 7px) 7px / 10px 10px no-repeat,
    var(--s-nail) 7px calc(100% - 7px) / 10px 10px no-repeat, var(--s-nail) calc(100% - 7px) calc(100% - 7px) / 10px 10px no-repeat;
  /* ungleichmäßig gesägte Ecken */
  --s-cut: 14px 22px 16px 24px / 20px 14px 22px 15px;
  --s-cut-s: 9px 14px 10px 15px / 13px 9px 14px 10px;

  color: var(--s-ink);
  font-family: var(--body);
  background-color: #efd9a8;
}
/* Himmel, Sonne und Sand hinter Start und Lobby */
body[data-theme="strand"]::before {
  background:
    radial-gradient(circle at 82% 0, #fff3c9 0 15vmax, rgba(255, 233, 170, 0.7) 15.2vmax 22vmax, rgba(255, 221, 160, 0.45) 22.2vmax 30vmax, transparent 30.2vmax),
    radial-gradient(rgba(140, 92, 51, 0.16) 1px, transparent 1.4px) 0 0 / 19px 23px,
    radial-gradient(rgba(140, 92, 51, 0.1) 1px, transparent 1.4px) 9px 12px / 27px 17px,
    linear-gradient(180deg, #ffd7a0 0, #f6dfb0 34%, #efd9a8 100%);
}
body[data-theme="strand"] .game { background: #06283a; }
body[data-theme="strand"] :focus-visible { outline: 3px solid var(--s-teal-ink); outline-offset: 2px; }
body[data-theme="strand"] .game canvas:focus-visible { outline-color: var(--s-paper); }

/* ---------- Knöpfe: bemalte Holzstücke, die Hauptaktion ist ein Surfbrett ---------- */
body[data-theme="strand"] .btn {
  --face: var(--s-teal); --rim: #0a4a50; --fg: var(--s-paper);
  border: 2px solid var(--s-wood-1); border-radius: var(--s-cut-s);
  background:
    linear-gradient(177deg, rgba(255, 255, 255, 0.2) 0 16%, transparent 16% 60%, rgba(0, 0, 0, 0.09) 60% 68%, transparent 68%),
    var(--face);
  box-shadow: 0 5px 0 var(--rim);
  font: 400 22px/1.05 var(--display); letter-spacing: 0.02em; text-transform: none;
  transition: transform 140ms var(--sway), box-shadow 140ms var(--sway);
}
body[data-theme="strand"] .btn:active { box-shadow: 0 1px 0 var(--rim); }
body[data-theme="strand"] .btn.secondary { --face: var(--s-teal); --rim: #0a4a50; --fg: var(--s-paper); }
body[data-theme="strand"] .btn.primary {
  --face: var(--s-coral); --rim: #b3462b; --fg: var(--s-ink);
  border-radius: 999px; font-size: 24px;
}
/* Surfbrett-Streifen an beiden Enden, nur wo der Knopf breit genug ist */
body[data-theme="strand"] .btn.primary:not(.small):not(.stack) {
  padding-left: 40px; padding-right: 40px;
  background:
    linear-gradient(90deg, transparent 16px, var(--s-paper) 16px 20px, transparent 20px 25px, var(--s-paper) 25px 28px, transparent 28px calc(100% - 28px), var(--s-paper) calc(100% - 28px) calc(100% - 25px), transparent calc(100% - 25px) calc(100% - 20px), var(--s-paper) calc(100% - 20px) calc(100% - 16px), transparent calc(100% - 16px)),
    linear-gradient(177deg, rgba(255, 255, 255, 0.24) 0 16%, transparent 16% 60%, rgba(0, 0, 0, 0.08) 60% 68%, transparent 68%),
    var(--face);
}
body[data-theme="strand"] .row.two .btn.primary:not(.small):not(.stack) {
  padding-left: 14px; padding-right: 14px;
  background: linear-gradient(177deg, rgba(255, 255, 255, 0.24) 0 16%, transparent 16% 60%, rgba(0, 0, 0, 0.08) 60% 68%, transparent 68%), var(--face);
}
body[data-theme="strand"] .btn.ghost {
  --fg: var(--s-ink); border: 2px dashed var(--s-wood-3); background: rgba(255, 248, 230, 0.55); box-shadow: none;
}
body[data-theme="strand"] .btn.ghost:active { transform: translateY(2px); box-shadow: none; border-style: solid; }
body[data-theme="strand"] .btn.danger { --face: #c2371f; --rim: #7a1d0d; --fg: #fff; }
body[data-theme="strand"] .btn.small { font-size: 18px; box-shadow: 0 3px 0 var(--rim); }
body[data-theme="strand"] .btn.small.ghost { box-shadow: none; }
body[data-theme="strand"] .btn .sub-label { font: 700 13px/1.2 var(--body); opacity: 1; }
body[data-theme="strand"] .row.two .btn { padding-left: 10px; padding-right: 10px; }
body[data-theme="strand"] .row.two .btn:first-child { rotate: -0.7deg; }
body[data-theme="strand"] .row.two .btn:last-child { rotate: 0.6deg; }
body[data-theme="strand"] .bot-row .btn { font-size: 19px; }

/* ---------- Start: Schild an zwei Seilen ---------- */
body[data-theme="strand"] .kicker {
  width: fit-content; max-width: 100%; padding: 5px 14px 6px; rotate: -1.5deg;
  background: var(--s-teal); color: var(--s-paper); border: 2px solid var(--s-wood-1); border-radius: 4px 14px 14px 4px;
  font: 400 15px/1.2 var(--display); letter-spacing: 0.08em;
}
body[data-theme="strand"] .brand { padding-top: 26px; }
body[data-theme="strand"] .brand h1 {
  position: relative; width: fit-content; margin: 30px 0 22px; padding: 6px 26px 12px; rotate: -2deg;
  font: 400 clamp(64px, 21vw, 124px)/0.95 var(--display); letter-spacing: 0.01em; text-transform: none;
  color: var(--s-paper); text-shadow: 0 4px 0 #2e1a0c;
  background: var(--s-nails), var(--s-dwood);
  border: 3px solid var(--s-wood-1); border-radius: var(--s-cut); box-shadow: 0 8px 0 var(--shade);
}
/* zwei Seile nach oben */
body[data-theme="strand"] .brand h1::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 34px; pointer-events: none;
  background: var(--s-rope) 26px 0 / 5px 100% no-repeat, var(--s-rope) calc(100% - 26px) 0 / 5px 100% no-repeat;
}
/* Cocktailschirmchen in der Ecke (ersetzt den Trichter-Keil) */
body[data-theme="strand"] .brand h1::after,
body[data-theme="strand"] .drink-card::after {
  content: ""; position: absolute; display: block; right: -16px; top: -34px; width: 64px; height: 70px; margin: 0; pointer-events: none;
  rotate: 24deg;
  background: conic-gradient(from -90deg at 50% 46%, #ff7a59 0 30deg, #fff8e6 30deg 60deg, #19b3b8 60deg 90deg, #fff8e6 90deg 120deg, #ffc94d 120deg 150deg, #fff8e6 150deg 180deg, #7d5130 180deg);
  -webkit-clip-path: polygon(0 46%, 3% 30%, 12% 16%, 25% 6%, 41% 1%, 50% 0, 59% 1%, 75% 6%, 88% 16%, 97% 30%, 100% 46%, 53% 46%, 53% 100%, 47% 100%, 47% 46%);
  clip-path: polygon(0 46%, 3% 30%, 12% 16%, 25% 6%, 41% 1%, 50% 0, 59% 1%, 75% 6%, 88% 16%, 97% 30%, 100% 46%, 53% 46%, 53% 100%, 47% 100%, 47% 46%);
}
body[data-theme="strand"] .lede { color: var(--s-ink); font-size: 18px; }
body[data-theme="strand"] .home-form,
body[data-theme="strand"] .qr-wrap {
  border: 3px solid var(--s-wood-1); border-radius: var(--s-cut);
  background: var(--s-nails), var(--s-planks), var(--s-board);
  box-shadow: 0 7px 0 var(--shade);
}
body[data-theme="strand"] .home-form { padding: 24px 20px 22px; rotate: 0.4deg; }
body[data-theme="strand"] .home-form label { font: 400 17px/1.2 var(--display); letter-spacing: 0.06em; text-transform: none; color: var(--s-ink-2); }
body[data-theme="strand"] .home-form input {
  background: var(--s-paper); color: var(--s-ink); border: 2px solid var(--s-wood-3); border-radius: var(--s-cut-s);
  box-shadow: inset 0 3px 0 rgba(74, 44, 23, 0.1); font-weight: 700;
}
body[data-theme="strand"] .home-form input:focus { border-color: var(--s-teal); outline: 3px solid var(--s-teal-ink); outline-offset: 1px; }
body[data-theme="strand"] .home-form input::placeholder { color: #8a6a48; }
body[data-theme="strand"] .code-row input { font: 400 28px/1 var(--display); letter-spacing: 0.24em; }
body[data-theme="strand"] .or { font: 400 17px/1 var(--display); color: var(--s-ink-2); }
body[data-theme="strand"] .or::before, body[data-theme="strand"] .or::after { height: 0; background: none; border-top: 2px dashed var(--line-strong); }
body[data-theme="strand"] .error { color: #a3200f; }
/* Schritte: kleine Sonnen */
body[data-theme="strand"] .how li { color: var(--s-ink); }
body[data-theme="strand"] .how li::before {
  background: radial-gradient(circle, var(--s-sun) 0 62%, #ffe6a3 63%); border: 2px dashed var(--s-wood-3);
  font: 400 24px/1 var(--display); color: var(--s-ink);
}
body[data-theme="strand"] .fine { color: var(--s-ink-2); }

/* ---------- Lobby ---------- */
body[data-theme="strand"] .code-big {
  font: 400 clamp(64px, 22vw, 104px)/0.95 var(--display); letter-spacing: 0.1em; color: var(--s-teal-ink);
  text-shadow: 0 4px 0 var(--s-sun); margin-top: 10px;
}
/* QR: Postkarte mit Seilrand */
body[data-theme="strand"] .qr-wrap {
  border: 6px solid transparent; rotate: -0.6deg; color: var(--s-ink); font-weight: 700;
  background: var(--s-nails), linear-gradient(var(--s-paper), var(--s-paper)) padding-box, var(--s-rope) border-box;
}
body[data-theme="strand"] .qr-wrap img { border-radius: 4px; border: 2px solid var(--s-wood-4); }
body[data-theme="strand"] .sub {
  font: 400 23px/1.2 var(--display); letter-spacing: 0.03em; text-transform: none; color: var(--s-ink);
  padding-bottom: 4px; border-bottom: 2px dashed var(--line-strong);
}
body[data-theme="strand"] .sub span { color: var(--s-ink-2); font-weight: 400; }
/* Spieler: Latten mit Nagel */
body[data-theme="strand"] .lobby-players li {
  border: 2px solid var(--s-wood-2); border-radius: var(--s-cut-s);
  background: var(--s-nail) calc(100% - 6px) 6px / 10px 10px no-repeat, var(--s-planks), var(--s-board);
  box-shadow: 0 3px 0 var(--shade);
}
body[data-theme="strand"] .lobby-players li:nth-child(odd) { rotate: -0.5deg; }
body[data-theme="strand"] .lobby-players li:nth-child(even) { rotate: 0.4deg; }
body[data-theme="strand"] .lobby-players .role { font: 400 14px/1 var(--display); letter-spacing: 0.08em; color: var(--s-rust); }
body[data-theme="strand"] .iconbtn { border-radius: 50%; color: var(--s-ink-2); box-shadow: inset 0 0 0 2px var(--line-strong); }
body[data-theme="strand"] .iconbtn:hover { color: #a3200f; box-shadow: inset 0 0 0 2px #a3200f; }
/* Figuren: Aufkleber mit weißem Rand */
body[data-theme="strand"] .avatar-pick button {
  background: var(--s-paper); border: 2px solid var(--s-wood-4); border-radius: 20px 14px 22px 16px; color: var(--s-ink-2);
  font-weight: 700; box-shadow: 0 3px 0 var(--shade);
}
body[data-theme="strand"] .avatar-pick button:nth-child(odd) { rotate: -1.2deg; }
body[data-theme="strand"] .avatar-pick button:nth-child(even) { rotate: 1deg; }
body[data-theme="strand"] .avatar-pick button[aria-pressed="true"] {
  background: var(--s-aqua); border: 3px solid var(--s-wood-1); color: var(--s-ink); transform: translateY(-4px); rotate: -3deg;
}
/* Zugzeit: Holzleiste, die gewählte Zeit ist aufgemalt */
body[data-theme="strand"] .seg { background: var(--s-dwood); border: 2px solid var(--s-wood-1); border-radius: var(--s-cut-s); }
body[data-theme="strand"] .seg button { border-radius: 8px 12px 9px 13px; font: 400 19px/1 var(--display); letter-spacing: 0.02em; text-transform: none; color: #f6e6c4; }
body[data-theme="strand"] .seg button[aria-pressed="true"] { background: var(--s-sun); color: var(--s-ink); rotate: -1.5deg; box-shadow: 0 2px 0 #2e1a0c; }
/* Themen: Postkarten */
body[data-theme="strand"] .theme-pick button {
  background: var(--s-paper); border: 2px solid var(--s-wood-4); border-radius: 6px; padding: 8px 8px 10px; color: var(--s-ink);
  box-shadow: 0 3px 0 var(--shade);
}
body[data-theme="strand"] .theme-pick button:nth-child(1) { rotate: -1.4deg; }
body[data-theme="strand"] .theme-pick button:nth-child(3) { rotate: 1.2deg; }
body[data-theme="strand"] .theme-pick button[aria-pressed="true"] { border: 3px solid var(--s-teal); background: #fff; transform: translateY(-3px); }
body[data-theme="strand"] .theme-pick b { font: 400 18px/1.1 var(--display); letter-spacing: 0.02em; text-transform: none; }
body[data-theme="strand"] .theme-pick small { color: var(--s-ink-2); }
body[data-theme="strand"] .theme-pick .sw { border-radius: 3px; height: 38px; }
body[data-theme="strand"] .hint { color: var(--s-ink-2); }

/* ---------- Spiel ---------- */
/* Wer ist dran: Schild, das an zwei Seilen von oben hängt */
body[data-theme="strand"] .turnchip {
  top: calc(16px + var(--safe-t)); rotate: -1.2deg; transform-origin: 50% -16px; padding: 5px 12px 5px 6px;
  background: var(--s-planks), var(--s-board); color: var(--s-ink);
  border: 2px solid var(--s-wood-1); border-bottom: 5px solid var(--c, var(--s-wood-1)); border-radius: var(--s-cut-s);
  box-shadow: 0 4px 0 var(--shade);
}
body[data-theme="strand"] .turnchip::before, body[data-theme="strand"] .turnchip::after {
  content: ""; position: absolute; bottom: 100%; width: 4px; height: calc(18px + var(--safe-t)); background: var(--s-rope); pointer-events: none;
}
body[data-theme="strand"] .turnchip::before { left: 16px; }
body[data-theme="strand"] .turnchip::after { right: 16px; }
body[data-theme="strand"] .turnchip .tc-name { font: 400 19px/1.1 var(--display); letter-spacing: 0.02em; text-transform: none; }
body[data-theme="strand"] .turnchip .tc-sub { color: var(--s-ink-2); font-weight: 700; }
body[data-theme="strand"] .turnchip .tc-time { font: 400 20px/1 var(--display); color: var(--s-teal-ink); border-left: 2px dashed var(--line-strong); }
body[data-theme="strand"] .turnchip .tc-time.low { color: #a3200f; }
body[data-theme="strand"] .turnchip.mine {
  background: linear-gradient(177deg, rgba(255, 255, 255, 0.24) 0 18%, transparent 18%), var(--s-coral);
  border-color: var(--s-wood-1); border-bottom-color: var(--s-wood-1); color: var(--s-ink);
}
body[data-theme="strand"] .turnchip.mine .tc-sub { color: #4a1f10; }
body[data-theme="strand"] .turnchip.mine .tc-time { color: var(--s-ink); border-left-color: rgba(59, 36, 19, 0.45); }

/* Spielerleiste */
body[data-theme="strand"] .rail .av { box-shadow: 0 0 0 2px var(--s-paper), 0 4px 0 var(--shade); }
body[data-theme="strand"] .rail li.active .av { outline: 3px solid var(--s-sun); outline-offset: 2px; }
body[data-theme="strand"] .rail .r-team { background: var(--s-sun); color: var(--s-ink); border: 1px solid var(--s-wood-1); border-radius: 3px 8px 8px 3px; font: 400 13px/1 var(--display); }
body[data-theme="strand"] .rail .r-status { background: var(--s-coral); border-color: var(--s-paper); }

/* Menü: Wegweiser-Latten aus Treibholz, jede ein wenig anders geneigt */
body[data-theme="strand"] .tool {
  background: var(--s-dwood); color: var(--s-paper); border: 2px solid var(--s-wood-1); border-radius: var(--s-cut-s);
  box-shadow: 0 4px 0 var(--shade);
}
body[data-theme="strand"] .tool:nth-child(odd) { rotate: -3deg; }
body[data-theme="strand"] .tool:nth-child(even) { rotate: 2.5deg; }
body[data-theme="strand"] .tool .t-label { font: 400 18px/1 var(--display); letter-spacing: 0.03em; text-transform: none; }
body[data-theme="strand"] .tool[aria-pressed="true"]#viewBtn { background: var(--s-sun); border-color: var(--s-wood-1); color: var(--s-ink); }
body[data-theme="strand"] .tool[aria-pressed="false"]#soundBtn { color: #d9c4a0; }
body[data-theme="strand"] .badge { background: var(--s-coral); color: var(--s-ink); border: 2px solid var(--s-wood-1); min-width: 22px; height: 22px; border-radius: 11px; font: 400 14px/1 var(--display); }

/* Abdunklung: warme Dämmerung statt Nachtblau */
body[data-theme="strand"] .scrim { background: radial-gradient(circle at 50% 50%, rgba(46, 22, 10, 0.5), rgba(38, 16, 8, 0.78)); }
body[data-theme="strand"] .dice-stage,
body[data-theme="strand"] .drink { background: radial-gradient(circle at 50% 46%, rgba(46, 22, 10, 0.58), rgba(38, 16, 8, 0.84)); }
body[data-theme="strand"] .sheet-wrap { background: rgba(40, 18, 8, 0.72); }

/* Würfel: Brett mit Seilrand, Würfel wie rundgeschliffene Muscheln */
body[data-theme="strand"] .dice-card {
  border: 6px solid transparent; border-radius: var(--s-cut); rotate: 1deg;
  background: var(--s-nails), var(--s-planks) padding-box, linear-gradient(var(--s-board), var(--s-board)) padding-box, var(--s-rope) border-box;
  box-shadow: 0 8px 0 var(--shade);
  animation: strand-drop 620ms var(--sway) both; transform-origin: 50% 0;
}
body[data-theme="strand"] .win .p-kicker {
  font: 400 17px/1.2 var(--display); letter-spacing: 0.08em; text-transform: none; color: var(--s-ink-2);
}
body[data-theme="strand"] .die {
  border-radius: 28px 24px 30px 22px; border: 2px solid var(--s-wood-1);
  background: radial-gradient(circle at 30% 24%, #fff 0 18%, transparent 46%), #fff3d6;
  box-shadow: 0 7px 0 #c79a5c, 0 12px 0 var(--shade);
}
body[data-theme="strand"] .die i { --pip: radial-gradient(circle at 36% 32%, #49c5c4 0 24%, #0d6f7a 62%); }
body[data-theme="strand"] .die[data-v="1"] i:nth-child(5) { background: radial-gradient(circle at 36% 32%, #ffb199 0 24%, #e2512c 62%); }
body[data-theme="strand"] .dice-sum { font: 400 24px/1.2 var(--display); letter-spacing: 0.02em; text-transform: none; color: var(--s-ink); }
body[data-theme="strand"] .dice-sum b { color: var(--s-teal-ink); }
body[data-theme="strand"] .dice-sum .pasch { background: var(--s-sun); color: var(--s-ink); border: 2px solid var(--s-wood-1); border-radius: 4px 16px 16px 4px; font-size: 20px; rotate: -1.5deg; }
body[data-theme="strand"] .dice-card.pasch { border-color: transparent; animation: strand-cheer 700ms var(--sway); }
body[data-theme="strand"] .dice-card.pasch .die { box-shadow: 0 7px 0 #c98600, 0 12px 0 var(--shade), 0 0 0 4px var(--s-sun); }

/* Feld-Landung */
body[data-theme="strand"] .fx-art { filter: none; }
:where(body[data-theme="strand"]) .fx-art { animation-name: strand-fx-pop; animation-timing-function: var(--sway); }
body[data-theme="strand"] .fx-name {
  background: var(--s-nail) 6px 50% / 10px 10px no-repeat, var(--s-nail) calc(100% - 6px) 50% / 10px 10px no-repeat, var(--s-dwood);
  color: var(--s-paper); border: 2px solid var(--s-wood-1); border-bottom: 5px solid var(--fxc); border-radius: var(--s-cut-s);
  padding: 8px 26px; rotate: -2deg; font: 400 25px/1.1 var(--display); letter-spacing: 0.03em; text-transform: none;
}
body[data-theme="strand"] .fx-ring { border-width: 4px; border-style: dashed; }

/* Die Aktion: gebleichtes Brett mit Nägeln, oben ein Farbstreifen in der Feldfarbe */
body[data-theme="strand"] .action {
  border: 3px solid var(--s-wood-1); border-radius: var(--s-cut); padding: 24px 16px 20px;
  background: var(--s-nails), linear-gradient(var(--fc), var(--fc)) 0 0 / 100% 9px no-repeat, var(--s-planks), var(--s-board);
  box-shadow: 0 8px 0 var(--shade);
  transform-origin: 50% 0; animation: strand-sway 700ms var(--sway);
}
body[data-theme="strand"] .action.bare { padding: 0; background: none; border: 0; box-shadow: none; }
body[data-theme="strand"] .action.bare .p-title {
  padding: 8px 28px 9px; rotate: -2deg; font-size: 30px; color: var(--s-paper);
  background: var(--s-nail) 6px 50% / 10px 10px no-repeat, var(--s-nail) calc(100% - 6px) 50% / 10px 10px no-repeat, var(--s-dwood);
  border: 2px solid var(--s-wood-1); border-radius: var(--s-cut-s); box-shadow: 0 5px 0 var(--shade);
}
body[data-theme="strand"] .action.bare .p-note { background: var(--s-paper); color: var(--s-ink); border: 2px solid var(--s-wood-3); border-radius: 4px 14px 14px 4px; font-weight: 700; }
body[data-theme="strand"] .win .p-title { font: 400 32px/1.05 var(--display); letter-spacing: 0.01em; text-transform: none; color: var(--s-ink); }
/* Aufgabentext: Zettel, mit Klebestreifen ans Brett geheftet */
body[data-theme="strand"] .action .p-text,
body[data-theme="strand"] .field-text {
  position: relative; background: var(--s-paper); color: var(--s-ink); border-radius: 3px; rotate: -0.6deg;
  font-weight: 700; padding: 18px 14px 14px; box-shadow: 0 3px 0 rgba(74, 44, 23, 0.3);
  background-image: repeating-linear-gradient(180deg, transparent 0 25px, rgba(18, 128, 137, 0.14) 25px 26px);
}
body[data-theme="strand"] .action .p-text::before,
body[data-theme="strand"] .field-text::before {
  content: ""; position: absolute; left: calc(50% - 30px); top: -8px; width: 60px; height: 16px; rotate: -3deg;
  background: rgba(255, 201, 77, 0.85); border-left: 2px dotted rgba(74, 44, 23, 0.3); border-right: 2px dotted rgba(74, 44, 23, 0.3);
}
body[data-theme="strand"] .action .p-note, body[data-theme="strand"] .sheet .p-note { color: var(--s-ink-2); font-size: 15px; }

/* Würfelknopf: Rettungsring, der leicht schaukelt */
body[data-theme="strand"] .roll-btn {
  width: 140px; height: 140px; color: var(--s-ink); border: 3px solid var(--s-wood-1);
  background:
    radial-gradient(circle, var(--s-sun) 0 43px, var(--s-wood-1) 43.5px 46px, transparent 46.5px),
    repeating-conic-gradient(from 22.5deg, var(--s-paper) 0 45deg, var(--s-coral) 45deg 90deg);
  box-shadow: 0 8px 0 var(--shade);
  font: 400 21px/1 var(--display); letter-spacing: 0.02em; text-transform: none;
  animation: strand-bob 3.4s ease-in-out infinite;
}
body[data-theme="strand"] .roll-btn svg { width: 36px; height: 36px; }
body[data-theme="strand"] .roll-btn > span { gap: 2px; }
body[data-theme="strand"] .roll-btn:active { box-shadow: 0 2px 0 var(--shade); animation: none; }
body[data-theme="strand"] .roll-btn:focus-visible { outline-color: var(--s-paper); outline-offset: 4px; }

/* Namen: Kofferanhänger mit Loch */
body[data-theme="strand"] .chip {
  background: radial-gradient(circle at calc(100% - 11px) 50%, var(--s-board-3) 0 3px, var(--s-wood-2) 3.4px 4.6px, transparent 5px), var(--s-paper);
  color: var(--s-ink); border: 2px solid var(--s-wood-3); border-radius: 26px 8px 8px 26px;
  padding-right: 26px; font-weight: 700; box-shadow: 0 3px 0 rgba(74, 44, 23, 0.35);
}
body[data-theme="strand"] .chips .chip:nth-child(odd) { rotate: -1.3deg; }
body[data-theme="strand"] .chips .chip:nth-child(even) { rotate: 1.1deg; }
body[data-theme="strand"] .chip.text { border-radius: 8px 20px 20px 8px; }
body[data-theme="strand"] .chip[aria-pressed="true"],
body[data-theme="strand"] .chip.wf.now {
  background: radial-gradient(circle at calc(100% - 11px) 50%, var(--s-paper) 0 3px, var(--s-wood-1) 3.4px 4.6px, transparent 5px), var(--s-aqua);
  color: var(--s-ink); border: 3px solid var(--s-wood-1);
}
/* Auswahl: Latten mit aufgemaltem Farbfeld links */
body[data-theme="strand"] .option {
  background: var(--s-planks), var(--s-board-2); color: var(--s-ink);
  border: 2px solid var(--s-wood-2); border-left: 12px solid var(--oc, var(--s-sun)); border-radius: var(--s-cut-s);
  box-shadow: 0 3px 0 rgba(74, 44, 23, 0.35);
}
body[data-theme="strand"] .option:not([disabled]):hover { border-color: var(--s-teal-ink); border-left-color: var(--oc, var(--s-sun)); }
body[data-theme="strand"] .option:not([disabled]):active { background: var(--s-board-3); transform: translateY(2px); box-shadow: 0 1px 0 rgba(74, 44, 23, 0.35); }
body[data-theme="strand"] .option .o-name,
body[data-theme="strand"] .sheet .rule .o-name { font: 400 22px/1.1 var(--display); letter-spacing: 0.01em; text-transform: none; }
body[data-theme="strand"] .option .o-kind,
body[data-theme="strand"] .sheet .rule .o-kind { font: 400 13px/1 var(--display); letter-spacing: 0.08em; color: var(--s-rust); }
body[data-theme="strand"] .option .o-text { color: var(--s-ink-2); font-weight: 700; }
body[data-theme="strand"] .bus-card { background: var(--s-paper); border: 2px solid var(--s-wood-3); border-radius: 6px; font: 400 30px/1 var(--display); box-shadow: 0 4px 0 var(--shade); }
body[data-theme="strand"] .bus-card:nth-child(odd) { rotate: -3deg; }
body[data-theme="strand"] .bus-card:nth-child(even) { rotate: 2deg; }
body[data-theme="strand"] .bus-card.red { color: #b3261e; }
body[data-theme="strand"] .bus-card small { font: 400 13px/1 var(--display); text-transform: none; }
body[data-theme="strand"] .bus-card.empty { background: transparent; border: 2px dashed var(--line-strong); color: var(--s-ink-2); box-shadow: none; }
body[data-theme="strand"] .pick-info { background: var(--s-paper); border: 2px dashed var(--s-wood-4); border-radius: 4px; color: var(--s-ink); }
body[data-theme="strand"] .pick-info b { font: 400 22px/1.1 var(--display); letter-spacing: 0.01em; text-transform: none; }
body[data-theme="strand"] .pick-row button.tcard[aria-pressed="true"] { outline-color: var(--s-teal-ink); }
body[data-theme="strand"] .action button.tcard:focus-visible,
body[data-theme="strand"] .sheet button.tcard:focus-visible { outline-color: var(--s-teal-ink); }

/* Laufzeile: schmale Treibholzlatte */
body[data-theme="strand"] .ticker {
  background: var(--s-dwood); color: var(--s-paper); border: 2px solid var(--s-wood-1); border-radius: var(--s-cut-s);
  font-weight: 700; rotate: -0.5deg; box-shadow: 0 3px 0 var(--shade);
}
body[data-theme="strand"] .ticker svg { color: #e6d2ac; }

/* Meldung in der Mitte: Postkarte */
body[data-theme="strand"] .flash {
  background: var(--s-paper); color: var(--s-ink); border: 6px solid transparent; border-radius: 6px;
  background: linear-gradient(var(--s-paper), var(--s-paper)) padding-box,
    repeating-linear-gradient(135deg, var(--fc, var(--s-coral)) 0 10px, var(--s-paper) 10px 16px, var(--s-teal) 16px 26px, var(--s-paper) 26px 32px) border-box;
  box-shadow: 0 0 0 2px var(--s-wood-1), 0 8px 0 var(--shade);
  transform-origin: 50% 0; animation: strand-sway 700ms var(--sway);
}
body[data-theme="strand"] .flash .p-kicker { font: 400 16px/1.1 var(--display); letter-spacing: 0.08em; text-transform: none; color: var(--s-ink-2); }
body[data-theme="strand"] .flash .p-title { font: 400 34px/1.05 var(--display); text-transform: none; }
body[data-theme="strand"] .flash.bare { background: none; border: 0; box-shadow: none; }
body[data-theme="strand"] .flash.bare .p-kicker { background: var(--s-dwood); color: var(--s-paper); border: 2px solid var(--s-wood-1); border-radius: var(--s-cut-s); padding: 6px 16px; rotate: -1.5deg; }

/* ---------- Hand ---------- */
body[data-theme="strand"] .handzone { background: linear-gradient(to top, rgba(46, 22, 10, 0.86) 14%, rgba(46, 22, 10, 0)); }
body[data-theme="strand"] .hand .empty { background: var(--s-paper); color: var(--s-ink-2); border: 2px dashed var(--s-wood-3); border-radius: 4px 14px 14px 4px; font-weight: 700; }
body[data-theme="strand"] .peek-note { background: var(--s-sun); color: var(--s-ink); border: 2px solid var(--s-wood-1); border-radius: 4px 16px 16px 4px; font: 400 18px/1.2 var(--display); letter-spacing: 0.02em; text-transform: none; min-height: 44px; }

/* ---------- Karten: Postkarten vom Strand ---------- */
/* Gewöhnlich: Bambusrahmen. Selten: Luftpost-Streifen. Legendär: goldenes Rattangeflecht. */
body[data-theme="strand"] .tcard {
  --frame:
    repeating-linear-gradient(0deg, transparent 0 1.7em, rgba(96, 62, 20, 0.6) 1.7em 1.82em, rgba(255, 240, 190, 0.5) 1.82em 1.92em),
    linear-gradient(90deg, #f1d68c, #c79d4c 50%, #a17a33);
  --inlay: rgba(74, 44, 23, 0.4); --gem: #e2694b; --gem-lo: #a8421f;
  padding: 0.42em; border-radius: 0.5em 0.7em 0.55em 0.75em; color: var(--s-ink);
  box-shadow: 0 0.42em 0 rgba(58, 32, 14, 0.6), 0 0 0 0.1em var(--s-wood-1);
}
body[data-theme="strand"] .tcard .tc-in {
  border-radius: 0.22em; color: var(--s-ink);
  background: linear-gradient(180deg, #fffaf0, #f6e8c6);
  box-shadow: inset 0 0 0 0.09em var(--inlay);
}
body[data-theme="strand"] .tcard .tc-art { margin: 0.34em 0.34em 0; border-radius: 0.2em; }
body[data-theme="strand"] .tcard .tc-art::after { background: none; box-shadow: inset 0 0 0 0.09em rgba(74, 44, 23, 0.55); }
/* Typ-Siegel: Poststempel */
body[data-theme="strand"] .tcard .tc-seal {
  top: 0.55em; left: 0.55em; rotate: -12deg; color: var(--ad1); background: var(--s-paper);
  box-shadow: 0 0 0 0.1em var(--ad1), 0 0 0 0.2em var(--s-paper), 0 0 0 0.28em var(--ad1);
}
/* Seltenheit: Perlen auf einem Papieranhänger */
body[data-theme="strand"] .tcard .tc-rar { top: 0.58em; right: 0.58em; background: var(--s-paper); border-radius: 0.2em 0.6em 0.6em 0.2em; box-shadow: 0 0 0 0.07em var(--s-wood-2); }
body[data-theme="strand"] .tcard .tc-rar i { transform: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--gem) 40%, var(--gem-lo)); }
/* Name: schief aufgenagelte, bemalte Latte */
body[data-theme="strand"] .tcard .tc-name {
  margin-left: 0.3em; margin-right: 0.3em; rotate: -1.6deg; color: var(--s-ink);
  text-transform: none; letter-spacing: 0.01em; font-weight: 400;
  -webkit-clip-path: none; clip-path: none; border-radius: 0.3em 0.5em 0.32em 0.55em / 0.5em 0.3em 0.55em 0.32em;
  background: linear-gradient(177deg, rgba(255, 255, 255, 0.4) 0 20%, transparent 20% 66%, rgba(0, 0, 0, 0.1) 66% 76%, transparent 76%), var(--ac);
  box-shadow: inset 0 0 0 0.08em var(--s-wood-1), 0 0.14em 0 rgba(58, 32, 14, 0.5);
}
body[data-theme="strand"] .tcard .tc-line { letter-spacing: 0.08em; }
body[data-theme="strand"] .tcard .tc-type { color: var(--ad1); }
body[data-theme="strand"] .tcard .tc-rname,
body[data-theme="strand"] .tcard.big .tc-rname,
body[data-theme="strand"] .tcard.show .tc-rname { color: var(--s-ink-2); }
/* Regeltext: Schreibfeld der Postkarte mit gestrichelten Linien */
body[data-theme="strand"] .tcard .tc-text {
  color: var(--s-ink); font-weight: 700; border-radius: 0; box-shadow: none;
  background:
    repeating-linear-gradient(90deg, rgba(74, 44, 23, 0.55) 0 0.5em, transparent 0.5em 0.9em) 0 0 / 100% 0.09em no-repeat,
    repeating-linear-gradient(90deg, rgba(74, 44, 23, 0.55) 0 0.5em, transparent 0.5em 0.9em) 0 100% / 100% 0.09em no-repeat;
}
body[data-theme="strand"] .tcard .tc-when { background: var(--ad1); color: var(--s-paper); border-radius: 0.2em 0.9em 0.9em 0.2em; box-shadow: none; }
body[data-theme="strand"] .tcard .tc-when svg { color: var(--s-paper); }
/* Selten: Luftpost */
body[data-theme="strand"] .tcard.r-rare {
  --frame: repeating-linear-gradient(135deg, #15a0a6 0 0.9em, #fff8e6 0.9em 1.2em, #ff7a59 1.2em 2.1em, #fff8e6 2.1em 2.4em);
  --inlay: rgba(13, 95, 104, 0.7); --gem: #19b3b8; --gem-lo: #0d5f68;
  box-shadow: 0 0.42em 0 rgba(58, 32, 14, 0.6), 0 0 0 0.1em var(--s-wood-1), 0 0 0 0.26em var(--s-paper);
}
body[data-theme="strand"] .tcard.r-rare .tc-in { background: linear-gradient(180deg, #f3fbf6, #f6e8c6 60%); box-shadow: inset 0 0 0 0.09em var(--inlay); }
body[data-theme="strand"] .tcard.r-rare .tc-art::after { background: none; }
/* Legendär: Rattan in Gold, Sonne oben, Abendhimmel als Grund */
body[data-theme="strand"] .tcard.r-legend {
  --frame:
    repeating-linear-gradient(45deg, rgba(150, 88, 12, 0.85) 0 0.16em, transparent 0.16em 0.56em),
    repeating-linear-gradient(-45deg, rgba(150, 88, 12, 0.85) 0 0.16em, transparent 0.16em 0.56em),
    linear-gradient(160deg, #ffe89a, #f2b23e 50%, #ffd166);
  --inlay: rgba(150, 88, 12, 0.85); --gem: #ffc94d; --gem-lo: #c97a00;
  padding: 0.5em;
  box-shadow: 0 0.42em 0 rgba(58, 32, 14, 0.6), 0 0 0 0.1em var(--s-wood-1), 0 0 0 0.26em var(--s-sun);
}
body[data-theme="strand"] .tcard.r-legend .tc-in {
  background: linear-gradient(180deg, #fff1c4, #ffd9a3 55%, #ffc4a0);
  box-shadow: inset 0 0 0 0.09em var(--inlay), inset 0 0 0 0.2em #fff3c9, inset 0 0 0 0.27em var(--inlay);
}
body[data-theme="strand"] .tcard.r-legend .tc-in::before {
  top: -0.5em; left: calc(50% - 0.5em); width: 1em; height: 1em; transform: none; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff3c9, #ffc94d 55%, #f08a2c);
  box-shadow: 0 0 0 0.1em var(--s-wood-1), 0 0 0 0.22em #fff3c9;
}
body[data-theme="strand"] .tcard.r-legend .tc-in::after { display: none; animation: none; }
body[data-theme="strand"] .tcard.r-legend .tc-art::after { background: none; box-shadow: inset 0 0 0 0.09em var(--inlay), inset 0 0 0 0.19em #fff3c9; }
body[data-theme="strand"] .tcard.r-legend .tc-seal { box-shadow: 0 0 0 0.1em var(--ad1), 0 0 0 0.2em #fff3c9, 0 0 0 0.3em #c97a00; }
body[data-theme="strand"] .tcard.r-legend .tc-rar { background: var(--s-paper); box-shadow: 0 0 0 0.08em #c97a00; }
body[data-theme="strand"] .tcard.r-legend .tc-name {
  background: linear-gradient(177deg, rgba(255, 255, 255, 0.4) 0 20%, transparent 20% 66%, rgba(0, 0, 0, 0.1) 66% 76%, transparent 76%), var(--ac);
  box-shadow: inset 0 0 0 0.08em var(--s-wood-1), inset 0 0 0 0.16em #ffe89a, 0 0.14em 0 rgba(58, 32, 14, 0.5);
}
body[data-theme="strand"] .tcard.r-legend .tc-text {
  box-shadow: none;
  background:
    repeating-linear-gradient(90deg, rgba(150, 88, 12, 0.8) 0 0.5em, transparent 0.5em 0.9em) 0 0 / 100% 0.09em no-repeat,
    repeating-linear-gradient(90deg, rgba(150, 88, 12, 0.8) 0 0.5em, transparent 0.5em 0.9em) 0 100% / 100% 0.09em no-repeat;
}
body[data-theme="strand"] .tcard.r-legend .tc-when { background: var(--ad1); box-shadow: none; }
body[data-theme="strand"] .tcard.r-legend .tc-when svg { color: var(--s-sun); }
/* Hand: ohne Leuchten, nur harte Kanten */
body[data-theme="strand"] .hand .tcard { box-shadow: 0 0.42em 0 rgba(58, 32, 14, 0.6), 0 0 0 2px var(--s-wood-1); }
body[data-theme="strand"] .hand .tcard.r-rare { box-shadow: 0 0.42em 0 rgba(58, 32, 14, 0.6), 0 0 0 2px var(--s-wood-1), 0 0 0 4px var(--s-paper); }
body[data-theme="strand"] .hand .tcard.r-legend { box-shadow: 0 0.42em 0 rgba(58, 32, 14, 0.6), 0 0 0 2px var(--s-wood-1), 0 0 0 4px var(--s-sun); }
body[data-theme="strand"] button.tcard:focus-visible { outline: 3px solid var(--s-paper); outline-offset: 2px; }

/* ---------- Blatt: großes Brett mit Seilkante, das wie eine Welle hochkommt ---------- */
body[data-theme="strand"] .sheet {
  border: 6px solid transparent; border-bottom: 0; border-radius: 22px 30px 0 0 / 28px 20px 0 0; color: var(--s-ink);
  background: var(--s-planks) padding-box, linear-gradient(var(--s-board), var(--s-board)) padding-box, var(--s-rope) border-box;
  animation: strand-tide 520ms var(--sway);
}
body[data-theme="strand"] .sheet h2 { font: 400 30px/1.1 var(--display); letter-spacing: 0.01em; text-transform: none; }
body[data-theme="strand"] .sheet h3 { font: 400 18px/1.2 var(--display); letter-spacing: 0.06em; text-transform: none; color: var(--s-ink-2); padding-bottom: 3px; border-bottom: 2px dashed var(--line-strong); }
/* Reiter: Holzleiste, der aktive Reiter ist ein aufgemaltes Schild */
body[data-theme="strand"] .tabs { background: var(--s-dwood); border-bottom: 3px solid var(--s-wood-1); border-radius: 14px 22px 0 0 / 20px 14px 0 0; }
body[data-theme="strand"] .tabs button { color: #f6e6c4; border-radius: var(--s-cut-s); font: 400 18px/1 var(--display); letter-spacing: 0.01em; text-transform: none; }
body[data-theme="strand"] .tabs button[aria-selected="true"] { background: var(--s-sun); color: var(--s-ink); rotate: -2deg; box-shadow: 0 3px 0 #2e1a0c; }
body[data-theme="strand"] .tabs button:focus-visible { outline-color: var(--s-paper); outline-offset: -3px; }
body[data-theme="strand"] .sheet .rule,
body[data-theme="strand"] .field-list li,
body[data-theme="strand"] .stat,
body[data-theme="strand"] .awards li,
body[data-theme="strand"] .facts li,
body[data-theme="strand"] .end-list li {
  background: var(--s-paper); border: 2px solid var(--s-wood-4); border-radius: var(--s-cut-s); color: var(--s-ink);
  box-shadow: 0 3px 0 rgba(74, 44, 23, 0.28);
}
body[data-theme="strand"] .sheet .rule { border-left: 12px solid var(--s-sun); }
body[data-theme="strand"] .sheet .rule.digital { border-left-color: var(--s-teal); }
body[data-theme="strand"] .sheet .rule p, body[data-theme="strand"] .field-list p { color: var(--s-ink-2); font-weight: 700; }
body[data-theme="strand"] .field-list li:nth-child(odd), body[data-theme="strand"] .awards li:nth-child(odd), body[data-theme="strand"] .facts li:nth-child(odd) { rotate: -0.5deg; }
body[data-theme="strand"] .field-list li:nth-child(even), body[data-theme="strand"] .awards li:nth-child(even), body[data-theme="strand"] .facts li:nth-child(even) { rotate: 0.5deg; }
body[data-theme="strand"] .field-list b { font: 400 21px/1.2 var(--display); letter-spacing: 0.01em; text-transform: none; }
body[data-theme="strand"] .field-list i, body[data-theme="strand"] .field-head i { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6), 0 0 0 2px var(--s-wood-1), 0 3px 0 2px var(--shade); }
body[data-theme="strand"] .legend { color: var(--s-ink); }
body[data-theme="strand"] .legend i { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 0 0 1px var(--s-wood-1); }
body[data-theme="strand"] .field-text { font-size: 18px; }
body[data-theme="strand"] .awards small { font: 400 14px/1.15 var(--display); letter-spacing: 0.06em; text-transform: none; color: var(--s-rust); }
body[data-theme="strand"] .awards span { color: var(--s-ink-2); }
body[data-theme="strand"] .stat .s-bar { height: 10px; border-radius: 3px; background: rgba(74, 44, 23, 0.16); box-shadow: inset 0 0 0 1px rgba(74, 44, 23, 0.35); }
body[data-theme="strand"] .stat .s-bar i { border-radius: 2px; }
body[data-theme="strand"] .stat .s-num, body[data-theme="strand"] .facts li { font: 400 28px/1 var(--display); }
body[data-theme="strand"] .stat .s-num small, body[data-theme="strand"] .facts small { font: 700 12px/1.2 var(--body); color: var(--s-ink-2); }
body[data-theme="strand"] .log li { border-top: 2px dashed var(--line); }
body[data-theme="strand"] .log li:first-child { border-top: 0; }
body[data-theme="strand"] .log .round { font: 400 17px/1 var(--display); letter-spacing: 0.08em; text-transform: none; color: var(--s-teal-ink); }
body[data-theme="strand"] .end-list li span:last-child { color: var(--s-ink-2); font-weight: 700; }

/* ---------- Trink-Ansage: Brett mit Seilrand und Schirmchen ---------- */
body[data-theme="strand"] .drink-card {
  position: relative; border: 6px solid transparent; border-radius: var(--s-cut); rotate: -1.2deg;
  background: var(--s-nails), var(--s-planks) padding-box, linear-gradient(var(--s-board), var(--s-board)) padding-box, var(--s-rope) border-box;
  box-shadow: 0 8px 0 var(--shade);
  transform-origin: 50% 0; animation: strand-drop 700ms var(--sway) both;
}
body[data-theme="strand"] .drink-card::after { right: -12px; top: -40px; }
body[data-theme="strand"] .drink .d-num { font: 400 clamp(104px, 32vw, 140px)/0.9 var(--display); color: var(--s-coral); text-shadow: 0 5px 0 var(--s-wood-1); -webkit-text-stroke: 2px var(--s-wood-1); }
body[data-theme="strand"] .drink .d-unit { font: 400 32px/1 var(--display); letter-spacing: 0.02em; text-transform: none; color: var(--s-ink); }
body[data-theme="strand"] .drink .d-why { color: var(--s-ink-2); font-weight: 700; }
body[data-theme="strand"] .drink-card .btn { rotate: 1.2deg; }

/* Verstoß-Meldung, Hinweise */
body[data-theme="strand"] .report-bar {
  background: var(--s-nails), var(--s-paper); color: var(--s-ink); border: 3px solid var(--s-wood-1); border-top: 9px solid var(--s-coral);
  border-radius: var(--s-cut-s); font-weight: 700; padding: 14px 16px;
}
body[data-theme="strand"] .report-bar .btn { font-size: 19px; }
body[data-theme="strand"] .report-bar small { color: var(--s-ink-2); font-weight: 700; }
body[data-theme="strand"] .toast {
  background: radial-gradient(circle at 12px 50%, var(--s-board-3) 0 3px, var(--s-wood-2) 3.4px 4.6px, transparent 5px), var(--s-paper);
  color: var(--s-ink); border: 2px solid var(--s-wood-1); border-radius: 6px 18px 18px 6px; padding: 10px 18px 10px 28px;
  font-weight: 700; rotate: -1deg; transform-origin: 0 50%; animation: strand-toast 520ms var(--sway);
}
body[data-theme="strand"] .offline { background: #b3261e; border: 2px solid var(--s-wood-1); border-radius: var(--s-cut-s); font-weight: 700; }

/* ---------- Breite Bildschirme ---------- */
@media (min-width: 900px) {
  body[data-theme="strand"] .rail button {
    background: var(--s-planks), var(--s-board); color: var(--s-ink); border: 2px solid var(--s-wood-1); border-radius: 30px 10px 12px 30px;
    box-shadow: 0 3px 0 var(--shade);
  }
  body[data-theme="strand"] .rail li:nth-child(odd) button { rotate: -0.8deg; }
  body[data-theme="strand"] .rail li:nth-child(even) button { rotate: 0.7deg; }
  body[data-theme="strand"] .rail .av { box-shadow: 0 0 0 2px var(--s-paper); }
  /* Die Leiste ist auf breiten Bildschirmen eine dunkle Box (style.css): Schrift hell, sonst dunkel auf dunkel (Owner 2026-12-02) */
  body[data-theme="strand"] .rail .r-txt b { font: 400 19px/1.1 var(--display); color: var(--s-paper); }
  body[data-theme="strand"] .rail .r-txt small { color: rgba(214, 244, 248, 0.85); font-weight: 700; }
  body:not(#_)[data-theme="strand"] .rail li:not(.active) { border-left-color: #19c2c9; }
  body[data-theme="strand"] .tool:nth-child(odd) { rotate: -1.5deg; }
  body[data-theme="strand"] .tool:nth-child(even) { rotate: 1.2deg; }
  body[data-theme="strand"] .turnchip { top: 22px; }
  body[data-theme="strand"] .turnchip .tc-name { font-size: 22px; }
  body[data-theme="strand"] .turnchip .tc-time { font-size: 23px; }
  body[data-theme="strand"] .sheet { border-bottom: 6px solid transparent; border-radius: 22px 30px 24px 28px / 28px 20px 30px 22px; }
}
@media (max-height: 640px) {
  body[data-theme="strand"] .roll-btn { width: 116px; height: 116px; background:
    radial-gradient(circle, var(--s-sun) 0 37px, var(--s-wood-1) 37.5px 40px, transparent 40.5px),
    repeating-conic-gradient(from 22.5deg, var(--s-paper) 0 45deg, var(--s-coral) 45deg 90deg); }
  body[data-theme="strand"] .roll-btn svg { width: 28px; height: 28px; }
}

/* ---------- Bewegung: alles schaukelt wie ein aufgehängtes Schild ---------- */
@keyframes strand-sway {
  0% { opacity: 0; transform: translate(-50%, -55%) rotate(-5deg); }
  40% { opacity: 1; transform: translate(-50%, -50%) rotate(2.4deg); }
  70% { transform: translate(-50%, -50%) rotate(-1deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}
@keyframes strand-drop {
  0% { opacity: 0; transform: translateY(-26px) rotate(-6deg); }
  40% { opacity: 1; transform: translateY(0) rotate(3deg); }
  70% { transform: rotate(-1.2deg); }
  100% { transform: none; }
}
@keyframes strand-cheer {
  0% { transform: none; } 30% { transform: rotate(-4deg) scale(1.06); } 60% { transform: rotate(3deg) scale(1.03); } 100% { transform: none; }
}
@keyframes strand-tide {
  0% { opacity: 0; transform: translateY(70px); }
  55% { opacity: 1; transform: translateY(-8px); }
  78% { transform: translateY(3px); }
  100% { transform: none; }
}
@keyframes strand-toast {
  0% { opacity: 0; transform: translateX(-50%) translateY(-14px) rotate(-5deg); }
  50% { opacity: 1; transform: translateX(-50%) rotate(2deg); }
  100% { transform: translateX(-50%); }
}
@keyframes strand-fx-pop {
  0% { opacity: 0; transform: scale(0.4) rotate(-14deg); }
  24% { opacity: 1; transform: scale(1.06) rotate(7deg); }
  42% { transform: scale(1) rotate(-4deg); }
  60%, 82% { transform: none; opacity: 1; }
  100% { opacity: 0; transform: translateY(14px) rotate(4deg) scale(0.92); }
}
@keyframes strand-bob { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  body[data-theme="strand"] .roll-btn,
  body[data-theme="strand"] .action,
  body[data-theme="strand"] .flash,
  body[data-theme="strand"] .sheet,
  body[data-theme="strand"] .toast,
  body[data-theme="strand"] .dice-card,
  body[data-theme="strand"] .drink-card { animation: none; }
}

/* Der Hauptknopf steht still: ein schaukelnder Würfel-Knopf ist schwerer zu treffen (Abnahme 2026-11-18). */
body[data-theme="strand"] .roll-btn { animation: none; transform: rotate(-3deg); }

@media (orientation: landscape) and (max-height: 520px) {
  body[data-theme="strand"] .rail button { padding: 0; background: none; border: 0; box-shadow: none; }
}

/* Reaktionen als Strand-Sticker (Owner 2026-12-02): cremefarbener Stanzrand und ein kurzer Schatten statt Neon-Leuchten */
body[data-theme="strand"] .em-art.em-strand { filter: drop-shadow(1.5px 0 0 #fff8e6) drop-shadow(-1.5px 0 0 #fff8e6) drop-shadow(0 1.5px 0 #fff8e6) drop-shadow(0 -1.5px 0 #fff8e6) drop-shadow(0 2px 1px rgba(6, 40, 58, 0.55)); }
body[data-theme="strand"] .rv-bit { filter: drop-shadow(0 3px 2px rgba(6, 40, 58, 0.5)); }
body[data-theme="strand"] .rv-bit .em-art.em-strand { filter: drop-shadow(1.5px 0 0 #fff8e6) drop-shadow(-1.5px 0 0 #fff8e6) drop-shadow(0 1.5px 0 #fff8e6) drop-shadow(0 -1.5px 0 #fff8e6); }
/* Knopf "Reagieren" als Holzschild statt Neon-Box; die drei Vorschau-Sticker auf hellem Papier */
body:not(#_)[data-theme="strand"] .emote-btn { background: var(--s-planks), var(--s-board); border: 2px solid var(--s-wood-1); box-shadow: 0 3px 0 var(--shade); }
body:not(#_)[data-theme="strand"] .emote-btn:hover { border-color: var(--s-ink); }
body:not(#_)[data-theme="strand"] .emote-fan i { background: #fff8e6; border-color: var(--s-wood-1); }
body:not(#_)[data-theme="strand"] .emote-btn:focus-visible { outline-color: var(--s-teal-ink); }
