/* Module "opfergaben" (offerings, totems & trials, src/modules.js): styles, moved out of voodoo.css in 2.78.8. Pages only get this
   file when the module is on (src/routes/pages.js appends it to <head>, after voodoo.css/altar.css). */

/* --------------------------------------------------------------- Punkte */

.pts {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--data); font-size: .74rem; letter-spacing: .06em;
  color: var(--gold); white-space: nowrap;
}
.pts svg { width: 11px; height: 11px; fill: currentColor; }
.pts.bump { animation: pts-bump .5s ease-out; }
@keyframes pts-bump { 40% { transform: scale(1.16); color: var(--spirit); } }
@media (prefers-reduced-motion: reduce) { .pts.bump { animation: none; } }

.board { display: grid; gap: 3px; }
.board-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 3px 5px; border-radius: 2px; font-size: .85rem;
}
.board-row.me { background: rgba(63, 240, 176, .1); }
.board-row .r { font-family: var(--data); font-size: .68rem; color: var(--ui-dim); width: 2em; text-align: right; }
.board-row .u { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .p { font-family: var(--data); font-size: .74rem; color: var(--gold); }
.board-mine { margin-top: 9px; font-family: var(--data); font-size: .7rem; color: var(--ui-dim); }


/* --------------------------------------------------- Totems (Namen, src/modules/opfergaben/totems.js) */
/* Only classes from totems-lib.js; without a totem a name looks as before. Frames with outline/box-shadow so the
   border of a chip stays free (.who-chip.sending marks senders with border-color). */
.tn { white-space: nowrap; }
.tn-badge { margin-right: .3em; font-style: normal; white-space: nowrap; }
.who-chip .tn-badge { margin-right: 0; }
/* name and title on one baseline (the title is smaller - centred it sat too high) */
.who-chip .tn, .who-chip .tn-title { align-self: baseline; }
.tn-title { margin-left: .45em; font: .62rem/1.2 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--ui-dim); white-space: nowrap; }
.tn-c-knochen { color: #efe6d2; }
.tn-c-kerze { color: #f0c66e; }
.tn-c-gift { color: #8ff05a; }
.tn-c-nacht { color: #7fa8ff; }
.tn-c-blut { color: #ff5470; }
.tn-c-loa { color: #c58cff; }
.tn-c-asche { color: #a9a3b3; }
.tn-c-rost { color: #e0773a; }
.tn-c-moos { color: #9cc56a; }
.tn-c-eis { color: #bfefff; }
.tn-c-rose { color: #ff8fc0; }
.tn-c-bernstein { color: #ffb347; }
.tn-c-blutmond, .tn-c-geist, .tn-c-irrlicht, .tn-c-hoellenfeuer { background-clip: text; -webkit-background-clip: text; color: transparent; }
.tn-c-blutmond { background-image: linear-gradient(90deg, #ff4b5c, #ff9a3c 55%, #ffd36e); }
.tn-c-geist { background-image: linear-gradient(90deg, #b8f7ff, #c58cff, #7ff0c8, #b8f7ff); background-size: 300% 100%; animation: tn-shimmer 6s linear infinite; }
@keyframes tn-shimmer { to { background-position: 300% 0; } }
.tn-c-irrlicht { background-image: linear-gradient(90deg, #7ff0c8, #6fd3ff 60%, #e6fff6); }
.tn-c-hoellenfeuer { background-image: linear-gradient(90deg, #ff3b2f, #ff9a3c, #ffe066, #ff3b2f); background-size: 300% 100%; animation: tn-shimmer 3s linear infinite; }
.tn-framed { border-radius: 3px; }
span.tn-framed:not(.who-chip) { display: inline-block; padding: 0 6px; }
/* Frames from a 2 px border (soul swirl, blood moon, eternal swamp) instead of a shadow: the border eats room and starts at the box,
   shadow frames lie 1 px outside - compensate so frame edge and name are flush with the others. */
span.tn-framed.tn-f-seelenwirbel:not(.who-chip), span.tn-framed.tn-f-blutmond:not(.who-chip), span.tn-framed.tn-f-ewigersumpf:not(.who-chip),
span.tn-framed.tn-f-fortuna:not(.who-chip) {
  padding: 0 5px; margin: -2px -1px;
}
.tn-f-knochen { outline: 2px dashed rgba(239, 230, 210, .8); outline-offset: 1px; }
.tn-f-ranken { box-shadow: 0 0 0 2px #2f6b3a, 0 0 0 3px rgba(143, 240, 90, .45), inset 0 0 6px rgba(143, 240, 90, .25); }
.tn-f-runen { outline: 1px solid #c58cff; outline-offset: 2px; box-shadow: 0 0 0 1px rgba(197, 140, 255, .5), 0 0 8px rgba(197, 140, 255, .45); }
.tn-f-flammen { box-shadow: 0 0 0 1px #ff9a3c, 0 0 8px 1px rgba(255, 90, 40, .7); animation: tn-flame 1.6s ease-in-out infinite alternate; }
@keyframes tn-flame { to { box-shadow: 0 0 0 1px #ffd36e, 0 0 12px 3px rgba(255, 120, 40, .55); } }
.tn-f-ketten { outline: 2px double #8d8698; outline-offset: 1px; }
.tn-f-blut { outline: 2px dotted #ff3355; outline-offset: 1px; }
.tn-f-gold { box-shadow: 0 0 0 1px #f0c66e, 0 0 0 3px rgba(240, 198, 110, .35), 0 0 6px rgba(240, 198, 110, .4); }
.tn-f-nebel { box-shadow: 0 0 0 1px rgba(230, 230, 245, .5), 0 0 10px 2px rgba(220, 220, 240, .35); }
.tn-f-gift { box-shadow: 0 0 0 1px #8ff05a, 0 0 9px 1px rgba(143, 240, 90, .5); }
.tn-f-geister { box-shadow: 0 0 0 1px #c58cff, 0 0 8px 1px rgba(127, 240, 200, .45); animation: tn-ghost 2.4s ease-in-out infinite alternate; }
@keyframes tn-ghost { to { box-shadow: 0 0 0 1px #7ff0c8, 0 0 12px 3px rgba(197, 140, 255, .5); } }
.tn-c-blutpuls { color: #ff3355; animation: tn-blutpuls 1.4s ease-in-out infinite; }
@keyframes tn-blutpuls { 50% { color: #8a0f25; text-shadow: 0 0 6px rgba(255, 51, 85, .6); } }
.tn-c-glut { color: #ff7a2f; animation: tn-glut 2.2s steps(1, end) infinite, tn-glow 1.1s ease-in-out infinite alternate; }
@keyframes tn-glut { 0% { color: #ff7a2f; } 37% { color: #ffb347; } 41% { color: #c94a1a; } 60% { color: #ff8c3a; } 83% { color: #ffd36e; } }
@keyframes tn-glow { to { text-shadow: 0 0 7px rgba(255, 140, 40, .7); } }
.tn-c-polarlicht, .tn-c-neon { background-clip: text; -webkit-background-clip: text; color: transparent; background-size: 300% 100%; }
.tn-c-polarlicht { background-image: linear-gradient(90deg, #6fffb0, #6fd3ff, #c58cff, #ff8fc0, #6fffb0); animation: tn-shimmer 8s ease-in-out infinite alternate; }
.tn-c-neon { background-image: linear-gradient(90deg, #ff2fd6, #8a5cff, #2fe6ff, #ff2fd6); animation: tn-shimmer 2.5s linear infinite; filter: drop-shadow(0 0 3px rgba(255, 47, 214, .55)); }
.tn-f-herzschlag { box-shadow: 0 0 0 1px #ff3355; animation: tn-herz 1.2s ease-out infinite; }
@keyframes tn-herz { 0%, 40%, 100% { box-shadow: 0 0 0 1px #ff3355, 0 0 0 0 rgba(255, 51, 85, .6); } 15% { box-shadow: 0 0 0 1px #ff6680, 0 0 0 4px rgba(255, 51, 85, .35); } 30% { box-shadow: 0 0 0 1px #ff3355, 0 0 0 2px rgba(255, 51, 85, .25); } }
.tn-f-irrlichter { box-shadow: 0 0 0 1px rgba(127, 240, 200, .5); animation: tn-orbit 3s linear infinite; }
@keyframes tn-orbit {
  0% { box-shadow: 0 0 0 1px rgba(127, 240, 200, .5), -5px -2px 5px -2px #7ff0c8, 5px 2px 5px -2px #c58cff; }
  25% { box-shadow: 0 0 0 1px rgba(127, 240, 200, .5), 5px -2px 5px -2px #7ff0c8, -5px 2px 5px -2px #c58cff; }
  50% { box-shadow: 0 0 0 1px rgba(127, 240, 200, .5), 5px 2px 5px -2px #7ff0c8, -5px -2px 5px -2px #c58cff; }
  75% { box-shadow: 0 0 0 1px rgba(127, 240, 200, .5), -5px 2px 5px -2px #7ff0c8, 5px -2px 5px -2px #c58cff; }
  100% { box-shadow: 0 0 0 1px rgba(127, 240, 200, .5), -5px -2px 5px -2px #7ff0c8, 5px 2px 5px -2px #c58cff; } }
.tn-f-gewitter { box-shadow: 0 0 0 1px #6f7cff; animation: tn-blitz 4s linear infinite; }
@keyframes tn-blitz { 0%, 61%, 66%, 100% { box-shadow: 0 0 0 1px #6f7cff, 0 0 4px rgba(111, 124, 255, .4); }
  62%, 64% { box-shadow: 0 0 0 1px #fff, 0 0 14px 4px rgba(200, 210, 255, .9); } 63% { box-shadow: 0 0 0 1px #6f7cff; } }
@property --tn-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.tn-f-seelenwirbel { border: 2px solid transparent !important; animation: tn-wirbel 3s linear infinite;
  background: linear-gradient(rgb(14, 9, 22), rgb(14, 9, 22)) padding-box, conic-gradient(from var(--tn-a), #c58cff, #7ff0c8, #ff3355, #c58cff) border-box !important; }
@keyframes tn-wirbel { to { --tn-a: 360deg; } }
.tn-badge { display: inline-block; }
.tn-b-schwebegeist { animation: tn-schweben 2.4s ease-in-out infinite; }
@keyframes tn-schweben { 50% { transform: translateY(-3px); opacity: .7; } }
.tn-b-tanzschaedel { animation: tn-tanz 1s ease-in-out infinite; }
@keyframes tn-tanz { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.tn-b-herz { animation: tn-poch 1.2s ease-out infinite; }
@keyframes tn-poch { 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } 60% { transform: scale(1); } }
.tn-b-orakel { animation: tn-orakel 2.6s ease-in-out infinite; }
@keyframes tn-orakel { 50% { filter: drop-shadow(0 0 5px #c58cff) brightness(1.3); } }
.tn-t-geisterstimme { animation: tn-flacker 3s linear infinite; }
@keyframes tn-flacker { 0%, 100% { opacity: 1; } 8% { opacity: .35; } 10% { opacity: .9; } 12% { opacity: .4; } 14%, 70% { opacity: 1; } 72% { opacity: .5; } 74% { opacity: 1; } }
.tn-t-flammenzunge { color: #ff9a3c; animation: tn-glow 1.1s ease-in-out infinite alternate; }
.tn-t-samedi, .tn-t-loa, .tn-t-fortuna { background: linear-gradient(90deg, #a07a2c, #ffe7a3, #a07a2c) 0 0 / 200% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: tn-shimmer 3s linear infinite; }
/* Totems 2.30.0 */
.tn-c-schwefel { color: #e8e04a; }
.tn-c-tinte { color: #8f7bff; }
.tn-c-koralle { color: #ff7f6a; }
.tn-c-lavendel { color: #d4b8ff; }
.tn-c-smaragd { color: #3ddc97; }
.tn-c-kupfer { color: #d98c5f; }
.tn-c-sumpfgas, .tn-c-daemmerung, .tn-c-schatten, .tn-c-seelenfeuer, .tn-c-sternenstaub { background-clip: text; -webkit-background-clip: text; color: transparent; }
.tn-c-sumpfgas { background-image: linear-gradient(90deg, #8ff05a, #d6e86a 50%, #6fbf7f); }
.tn-c-daemmerung { background-image: linear-gradient(90deg, #ff8fc0, #c58cff 50%, #6f8bff); }
.tn-c-vollmond { color: #f3ecd0; animation: tn-mondglanz 3s ease-in-out infinite; }
@keyframes tn-mondglanz { 50% { text-shadow: 0 0 8px rgba(243, 236, 208, .85), 0 0 2px #fff; } }
.tn-c-schatten { background-image: linear-gradient(90deg, #6d6478, #e6e0ef, #6d6478); background-size: 250% 100%; animation: tn-shimmer 4s ease-in-out infinite alternate; }
.tn-c-seelenfeuer { background-image: linear-gradient(0deg, #2f6bff, #6fd3ff 45%, #e6fbff, #6fd3ff, #2f6bff); background-size: 100% 300%; animation: tn-lodern 1.6s ease-in-out infinite alternate; filter: drop-shadow(0 0 3px rgba(111, 211, 255, .6)); }
@keyframes tn-lodern { to { background-position: 0 100%; } }
.tn-c-sternenstaub { background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px), linear-gradient(90deg, #c58cff, #6fd3ff, #ffe7a3, #c58cff); background-size: 9px 9px, 300% 100%; animation: tn-sterne 5s linear infinite; }
@keyframes tn-sterne { to { background-position: 18px 9px, 300% 0; } }
.tn-f-dornen { outline: 2px dashed #6b2f3a; outline-offset: 1px; box-shadow: 0 0 0 1px #2f6b3a; }
.tn-f-spinnennetz { outline: 1px dotted rgba(230, 230, 245, .8); outline-offset: 3px; box-shadow: 0 0 0 1px rgba(230, 230, 245, .35); }
.tn-f-mond { box-shadow: 0 0 0 1px #f3ecd0, 0 0 9px 1px rgba(243, 236, 208, .35); }
.tn-f-kupfer { box-shadow: 0 0 0 2px #8a4b2a, 0 0 0 3px #d98c5f; }
.tn-f-sumpf { box-shadow: 0 0 0 1px #6fbf7f; animation: tn-sumpf 3.5s ease-in-out infinite alternate; }
@keyframes tn-sumpf { 0% { box-shadow: 0 0 0 1px #6fbf7f, -4px 2px 9px rgba(143, 240, 90, .35); } 100% { box-shadow: 0 0 0 1px #8ff05a, 4px -2px 11px 2px rgba(214, 232, 106, .4); } }
.tn-f-runenpuls { outline: 1px solid #c58cff; outline-offset: 2px; animation: tn-runenpuls 2s ease-in-out infinite; }
@keyframes tn-runenpuls { 50% { outline-color: #7ff0c8; outline-offset: 4px; box-shadow: 0 0 10px 2px rgba(197, 140, 255, .55); } }
.tn-f-kerzen { box-shadow: 0 0 0 1px #f0c66e, 0 0 8px rgba(240, 198, 110, .5); animation: tn-kerzen 2.4s steps(6, end) infinite; }
@keyframes tn-kerzen { 0% { box-shadow: 0 0 0 1px #f0c66e, 0 0 6px rgba(240, 198, 110, .45); } 30% { box-shadow: 0 0 0 1px #ffe7a3, 0 0 11px 2px rgba(255, 190, 90, .6); } 55% { box-shadow: 0 0 0 1px #e0a94a, 0 0 7px rgba(240, 198, 110, .4); } 80% { box-shadow: 0 0 0 1px #ffd36e, 0 0 10px 1px rgba(255, 200, 100, .55); } }
.tn-f-sternenstaub { box-shadow: 0 0 0 1px #c58cff; animation: tn-funkeln 2.8s linear infinite; }
@keyframes tn-funkeln {
  0% { box-shadow: 0 0 0 1px #c58cff, -6px -4px 0 -2px #fff, 7px 3px 0 -2px #ffe7a3; }
  33% { box-shadow: 0 0 0 1px #6fd3ff, 5px -5px 0 -2px #ffe7a3, -7px 4px 0 -2px #fff; }
  66% { box-shadow: 0 0 0 1px #ffe7a3, 8px 0 0 -2px #fff, -5px -5px 0 -2px #6fd3ff; }
  100% { box-shadow: 0 0 0 1px #c58cff, -6px -4px 0 -2px #fff, 7px 3px 0 -2px #ffe7a3; } }
.tn-f-blutmond { border: 2px solid transparent !important; animation: tn-wirbel 5s linear infinite, tn-blutglut 2.5s ease-in-out infinite alternate;
  background: linear-gradient(rgb(14, 9, 22), rgb(14, 9, 22)) padding-box, conic-gradient(from var(--tn-a), #8a0f25, #ff4b5c, #ffd36e, #ff4b5c, #8a0f25) border-box !important; }
@keyframes tn-blutglut { to { box-shadow: 0 0 12px 2px rgba(255, 75, 92, .5); } }
.tn-t-seelenhaendler { color: #7ff0c8; animation: tn-flacker 3.4s linear infinite; }
.tn-t-legende { background: linear-gradient(90deg, #a07a2c, #ffe7a3, #a07a2c) 0 0 / 200% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: tn-shimmer 3s linear infinite; }
.tn-t-unsterblich { background: linear-gradient(90deg, #ff4b5c, #ffd36e, #7ff0c8, #6fd3ff, #c58cff, #ff4b5c) 0 0 / 300% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: tn-shimmer 4s linear infinite; }
.tn-b-flackerkerze { animation: tn-flacker 2.2s linear infinite; }
.tn-b-blitz { animation: tn-zucken 2.6s linear infinite; }
@keyframes tn-zucken { 0%, 70%, 100% { transform: none; filter: none; } 72% { transform: translateX(-1px) rotate(-8deg); filter: drop-shadow(0 0 4px #ffe066) brightness(1.5); } 75% { transform: translateX(1px) rotate(6deg); } 78% { filter: drop-shadow(0 0 6px #ffe066) brightness(1.8); } }
.tn-b-wachauge { animation: tn-blinzeln 4s ease-in-out infinite; }
@keyframes tn-blinzeln { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.tn-b-schleichkatze { animation: tn-schleichen 3s ease-in-out infinite; }
@keyframes tn-schleichen { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px) scaleX(-1); } }
.tn-b-goldkrone, .tn-b-muenze { animation: tn-goldglanz 2.4s ease-in-out infinite; }
@keyframes tn-goldglanz { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 215, 110, .5)); transform: none; } 50% { filter: drop-shadow(0 0 6px #ffd36e) brightness(1.3); transform: translateY(-1px) rotate(-6deg); } }
.points-event { margin: 0 0 10px; padding: 6px 10px; border: 1px solid var(--gold); border-radius: var(--r); color: var(--gold); font: 600 .8rem/1.3 var(--data); background: rgba(240, 198, 110, .08); }
.tn-c-rampenlicht { color: #fff4c2; animation: tn-rampe 2.2s ease-in-out infinite; }
@keyframes tn-rampe { 0%, 100% { text-shadow: 0 0 4px rgba(255, 236, 160, .6); } 50% { text-shadow: 0 0 10px #ffe7a3, 0 0 18px rgba(255, 215, 110, .6); color: #fff; } }
.tn-f-ewigersumpf { border: 2px solid transparent !important; animation: tn-wirbel 6s linear infinite, tn-sumpf 3.5s ease-in-out infinite alternate;
  background: linear-gradient(rgb(14, 9, 22), rgb(14, 9, 22)) padding-box, conic-gradient(from var(--tn-a), #2f6b3a, #8ff05a, #d6e86a, #6fbf7f, #2f6b3a) border-box !important; }
.tn-t-stammgast { color: #f0c66e; }
.tn-t-eingeweiht { color: #c58cff; text-shadow: 0 0 6px rgba(197, 140, 255, .45); }
.tn-t-stimmungsmacher { color: #ff8fc0; animation: tn-glow 1.4s ease-in-out infinite alternate; }
.tn-t-pruefling { background: linear-gradient(90deg, #7ff0c8, #ffe7a3, #c58cff, #7ff0c8) 0 0 / 300% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: tn-shimmer 5s linear infinite; }
/* gamble achievements (2.125.0): Fortuna's Child's golden frame - a rotating gold border that glows; High Roller in steady gold */
.tn-f-fortuna { border: 2px solid transparent !important; animation: tn-wirbel 4s linear infinite, tn-fortuna 2.4s ease-in-out infinite alternate;
  background: linear-gradient(rgb(14, 9, 22), rgb(14, 9, 22)) padding-box, conic-gradient(from var(--tn-a), #a07a2c, #ffe7a3, #f0c66e, #fff4c2, #a07a2c) border-box !important; }
@keyframes tn-fortuna { from { box-shadow: 0 0 4px rgba(255, 215, 110, .35); } to { box-shadow: 0 0 12px rgba(255, 215, 110, .75); } }
.tn-t-highroller { color: #f0c66e; text-shadow: 0 0 6px rgba(240, 198, 110, .55); }
@media (prefers-reduced-motion: reduce) { [class*="tn-"] { animation: none !important; } }
/* .u cuts off overlong names (overflow: hidden) - room inside so frames and glow aren't cut off along */
.board-row .u:has(.tn-framed) { padding: 5px 12px 5px 6px; margin: -3px 0; }
.board-row .u .tn-framed { margin: 0; }
.board-row .u .tn-framed.tn-f-seelenwirbel, .board-row .u .tn-framed.tn-f-blutmond, .board-row .u .tn-framed.tn-f-ewigersumpf,
.board-row .u .tn-framed.tn-f-fortuna { margin: -2px -1px; }
/* title in the leaderboard centred to the name instead of on its baseline (small capitals sit too low otherwise) */
.board-row .tn-title { vertical-align: .2em; }
.board-shop { margin-top: 9px; gap: 6px; flex-wrap: wrap; }

/* Page /totems - "shelf" (2.80.0): header bar, tabs, sub chips + filter, tile grid, detail bar (narrow: bottom sheet).
   .totem-card/.totem-grid/.totem-sample/.totem-name/.totem-price is used by the season overview too (/pruefungen, season-panel.js). */
.totem-wrap { max-width: 1180px; display: flex; flex-direction: column; gap: 12px; }
/* tabs, chips/filter and grid below each other with air (2.80.1: the chip line stuck to tabs and tiles) */
.totem-wrap #shop { display: flex; flex-direction: column; gap: 12px; }
.totem-balance { display: inline-flex; align-items: center; gap: 6px; font: 600 1.05rem/1 var(--data); color: var(--gold); font-variant-numeric: tabular-nums; }
.totem-balance svg { width: 12px; height: 12px; fill: currentColor; }
.shop-bar { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.shop-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.shop-bar-row .spacer { flex: 1; }
.shop-bar .points-event { margin: 0; }
.shop-preview { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.shop-hint { margin: 0; font-size: .8rem; color: var(--ui-dim); }
.shop-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--k-line); overflow-x: auto; scrollbar-width: none; }
.shop-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font: 600 .8rem/1.2 var(--data);
  color: var(--k-muted); cursor: pointer; white-space: nowrap; }
.shop-tabs button small { color: var(--ui-dim); font-weight: 400; margin-left: 5px; }
.shop-tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.shop-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.shop-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.shop-seg button { background: transparent; border: 1px solid var(--k-line-soft); border-radius: 14px; padding: 3px 11px; font: .72rem/1.4 var(--data); color: var(--k-muted); cursor: pointer; }
.shop-seg button small { color: var(--ui-dim); margin-left: 4px; }
.shop-seg button[aria-pressed="true"] { border-color: var(--spirit); color: var(--spirit); background: var(--k-teal-bg); }
.shop-main { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shop-grid .empty { grid-column: 1 / -1; }
/* cat in the tile smaller (katze.css draws it 92 px wide - that big only in the detail bar) */
.shop-grid .totem-cat { zoom: .65; }
.totem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.totem-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: var(--hairline); border-radius: var(--r); background: rgba(27, 17, 41, .5); }
.totem-card.on { border-color: var(--spirit); }
.totem-card .totem-sample { min-height: 2.2em; display: flex; align-items: center; min-width: 0; }
.totem-card .totem-sample .who-chip { max-width: 100%; flex-wrap: wrap; row-gap: 2px; }
.totem-card .totem-sample .tn-title { white-space: normal; }
/* sounds in the shop (2.108.0) */
.totem-card .totem-sample .totem-snd { font-size: 1.6rem; line-height: 1; }
.shop-detail-sample .totem-snd { font-size: .9rem; }
.totem-card .totem-sample .totem-food { font-size: 2.2rem; line-height: 1; }
.shop-detail-sample .totem-food { font-size: 3.4rem; line-height: 1; }
.totem-card .totem-name { font-weight: 600; }
.totem-price { font: .74rem/1.3 var(--data); color: var(--gold); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.totem-price .own { color: var(--spirit); }
/* tile in the shop: one button without buttons in it */
button.totem-card { gap: 6px; padding: 10px; border: 1px solid var(--k-line-soft); background: var(--k-tile); color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
button.totem-card:hover { border-color: var(--k-line); }
button.totem-card[aria-pressed="true"] { border-color: var(--gold); background: var(--k-panel-2); }
button.totem-card.poor { opacity: .6; }
button.totem-card .totem-name { font-size: .82rem; line-height: 1.25; }
button.totem-card:focus-visible, .shop-seg button:focus-visible { outline: 2px solid var(--spirit); outline-offset: 2px; }
/* the tab line scrolls sideways (overflow) - focus ring inwards, otherwise it is cut off */
.shop-tabs button:focus-visible { outline: 2px solid var(--spirit); outline-offset: -2px; }
.shop-detail { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--k-panel);
  border: 1px solid var(--k-line); border-radius: var(--r); min-width: 0; }
.shop-detail-sample { min-height: 96px; padding: 14px; display: flex; align-items: center; justify-content: center; background: rgba(8, 5, 13, .55);
  border: 1px solid var(--k-line-soft); border-radius: var(--r); }
.shop-detail-sample .who-chip { font-size: .92rem; padding: 5px 12px; max-width: 100%; flex-wrap: wrap; }
.shop-detail-sample .react-sample { width: 72px; height: 72px; object-fit: contain; }
.shop-detail-head { display: flex; flex-direction: column; gap: 4px; }
.shop-detail-head h3 { margin: 0; font-size: 1rem; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.shop-tag { display: inline-block; padding: 0 5px; border: 1px solid var(--k-line); border-radius: 2px; font: .6rem/1.5 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--ui-dim); }
.shop-tag-cursed { border-color: #8a2a44; color: #d5486b; background: rgba(0, 0, 0, .35); }
.shop-action { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-confirm { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--k-gold-dim); border-radius: var(--r); background: rgba(232, 195, 122, .06); font-size: .82rem; }
.shop-confirm b { font-family: var(--data); color: var(--gold); }
.shop-sheet-close { display: none; align-self: flex-end; }
/* narrow: the detail bar becomes a bottom sheet, only after tapping a tile */
@media (max-width: 820px) {
  .shop-main { grid-template-columns: minmax(0, 1fr); }
  .shop-detail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 20; max-height: 60vh; overflow-y: auto;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .55); }
  .shop-detail:not(.open) { display: none; }
  .shop-sheet-close { display: inline-flex; margin: -4px -4px -8px 0; }
}

.guest-badge {
  font-family: var(--data); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 2px;
  border: 1px solid var(--gold); color: var(--gold);
}

.preview-body { font-size: .84rem; color: var(--ui-text); margin-top: 5px; }


/* Verwaltung: Abschnitt "Totems" (admin.html) */
.admin-totems-wrap { overflow-x: auto; }
.admin-totems input[type="number"] { width: 7em; }


/* page /pruefungen */
.trial-wrap { max-width: 980px; display: grid; gap: 18px; }
.trial-list { display: grid; gap: 10px; }
.trial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.trial { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: var(--hairline); border-radius: var(--r); background: rgba(27, 17, 41, .5); }
.trial.done { border-color: var(--spirit); }
.trial-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.trial-name { font-weight: 600; }
.trial-reward { font: .74rem/1 var(--data); color: var(--gold); white-space: nowrap; }
.trial.done .trial-reward { color: var(--spirit); }
.trial-text { font-size: .82rem; }
.trial-totem { font: .74rem/1.3 var(--data); color: var(--loa-lit); }
.trial-bar { height: 6px; border-radius: 3px; background: rgba(180, 120, 232, .15); overflow: hidden; }
.trial-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--loa-lit), var(--spirit)); }
.trial-progress { font: .7rem/1 var(--data); color: var(--ui-dim); }
.board-shop[hidden] { display: none; }


/* weekly offers in the totem shop */
.totem-old { color: var(--ui-dim); text-decoration-thickness: 1px; }
.totem-offer { display: inline-block; padding: 1px 5px; border-radius: 3px; font: 700 .68rem/1.3 var(--data); color: #1b1129; background: var(--spirit); vertical-align: 1px; }
.totem-offer.top { background: var(--gold); }
/* Tier / season looks of shop tiles: shared block in voodoo.css (also used by the larder). */
button.totem-card.tier-season .totem-sample { background: linear-gradient(135deg, color-mix(in srgb, var(--s1) 22%, transparent), color-mix(in srgb, var(--s2) 16%, transparent)); border-radius: 6px; }
.totem-card.offer { border-color: rgba(63, 240, 176, .45); }
.admin-totems .totem-offer { margin-left: 6px; }
:is(.tiles, .cam-grid6) :is(.tile-watch, .tile-return) { white-space: nowrap; }


/* Admins: Pruefungen zum Testen freischalten (2.77.1, pruefungen.html) */
.trial-test { align-self: flex-start; border-style: dashed; opacity: .75; }
.trial-test:hover { opacity: 1; }

/* Dammberman looks in the shop (2.98.0): the first frame of the 32 x 32 sheet, pixel-sharp */
.totem-bomber { display: inline-block; width: 64px; height: 64px; background-repeat: no-repeat; image-rendering: pixelated; }
.totem-bomber-mann { background-size: 400% 100%; background-position: 0 0; }
.totem-bomber-damm { background-size: 300% 300%; background-position: 0 0; }
.totem-bomber-bruch { background-size: 300% 200%; background-position: 100% 0; }
