
.today.raetselcard { border-color: var(--berry); background: linear-gradient(135deg, rgba(217, 87, 126, .13), transparent 70%), var(--card); }

.raetselpage h2 { margin: 6px 0 0; }
.rhost .bubble { flex: 1; }
.raetselgo { display: flex; align-items: center; justify-content: center; gap: 10px; }
.rnow { margin: 4px 0 0; }
.rlevels { display: grid; padding: 4px 14px; }
.rlevel { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 2px solid var(--line); }
.rlevel:last-child { border-bottom: 0; }
.rlevel__n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark);
  font-family: var(--display); font-weight: 600; font-size: 20px; }
.rlevel.is-now .rlevel__n { background: var(--teal); color: #fff; }
.rlevel__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rlevel__text b { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.rlevel__text b span { white-space: nowrap; }
.rlevel__stars { flex: none; display: flex; gap: 3px; }
.rlevel__stars i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.rlevel__stars i.on { background: var(--gold); }
.rlevel__lock { flex: none; display: grid; place-items: center; width: 52px; opacity: .7; }
.rlevel.is-locked .rlevel__n, .rlevel.is-locked .rlevel__text { opacity: .6; }

.rgame__title { flex: 1; min-width: 0; font-family: var(--display); font-weight: 600; font-size: 17px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rgame__xp { flex: none; font-weight: 800; color: var(--muted); font-size: 14px; }
.rgame__scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rgame__body { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; padding: 4px 16px 18px; }
.rgame__read { display: grid; gap: 10px; align-content: start; }
.rgame__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 19px; }
.rgame__h .small { font-family: var(--body, inherit); font-weight: 700; }

.rstory { padding: 12px 14px; font-size: 17px; line-height: 1.45; }
.rstory p { margin: 0 0 6px; }
.rstory__q { margin: 8px 0 0 !important; font-weight: 800; color: var(--teal-dark); }

.rclues { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rclue { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 12px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--ink); text-align: left; font: inherit; font-size: 17px; line-height: 1.4; font-weight: 700; cursor: pointer; }
.rclue__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; background: var(--teal-soft);
  color: var(--teal-dark); font-family: var(--display); font-weight: 600; font-size: 15px; }
.rclue.is-done { background: transparent; color: var(--muted); }
.rclue.is-done .rclue__t { text-decoration: line-through 2px; text-decoration-color: var(--muted); }
.rclue.is-done .rclue__n { background: var(--green); color: #fff; font-size: 0; }
.rclue.is-done .rclue__n::before { content: "✓"; font-size: 15px; }
.rclue.is-tip { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }

.rtabwrap { position: relative; }
.rtab { display: grid; grid-template-columns: 66px repeat(var(--rcols), minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.rtab__head { display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 1px; padding-bottom: 2px;
  font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; line-height: 1.15; }
.rtab__em { font-size: 22px; line-height: 1.1; }
.rtab__who { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; }
.rtab__who b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rcell { min-height: 58px; min-width: 0; display: grid; place-items: center; padding: 4px 3px; border: 2px solid var(--line); border-radius: 13px;
  background: var(--card); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.rcell:active { transform: translateY(2px); box-shadow: none; }
.rcell.is-empty { border-style: dashed; background: transparent; box-shadow: none; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 22px; }
.rcell.is-wrong { border-color: var(--red); background: var(--red-soft); box-shadow: 0 2px 0 var(--red); }
.rcell.is-tip { border-color: var(--orange); border-style: solid; box-shadow: 0 0 0 3px var(--orange-soft); animation: rtipPulse 1.2s ease-in-out 3; }
.rcell.is-nudge { animation: rnudge .5s ease-in-out; border-color: var(--orange); }
@keyframes rtipPulse { 50% { box-shadow: 0 0 0 6px var(--orange-soft); } }
@keyframes rnudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.rval { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; max-width: 100%; text-align: center; line-height: 1.1; }
.rval__em { font-size: 22px; line-height: 1.15; }
.rval__t { font-size: 12.5px; font-weight: 800; overflow-wrap: anywhere; hyphens: auto; }
.rval--zahl { flex-direction: row; gap: 3px; }
.rval--zahl b, .rval--platz b { font-family: var(--display); font-weight: 600; font-size: 22px; }
.rval--zahl .rval__em { font-size: 18px; }
.rdots { display: flex; gap: 2px; }
.rdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.rdots i.on { background: var(--teal); }

.rgame__bar { flex: none; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); background: var(--bg); }
.rgame__bar .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rgame__bar .grow { flex: 1; }
#rcheck.is-ready { animation: rready 1.6s ease-in-out infinite; }
@keyframes rready { 50% { transform: scale(1.03); } }

.rpick { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .3); animation: fadeIn .15s ease-out; }
.rpick__panel { width: 100%; max-width: 560px; display: grid; gap: 12px; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
  background: var(--card); animation: rup .2s ease-out; }
@keyframes rup { from { transform: translateY(30px); } }
.rpick__head { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.rpick__head b { font-family: var(--display); font-weight: 600; font-size: 20px; }
.rpick__vals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rpick__vals.is-short { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.rpick__val { display: grid; justify-items: center; gap: 2px; min-height: 64px; padding: 8px 4px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.rpick__val .rval__t { font-size: 14px; }
.rpick__val.on { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 2px 0 var(--teal); }
.rpick__val.is-used { opacity: .55; }
.rpick__val small { font-size: 11px; font-weight: 800; color: var(--muted); }
.rpick__clear { justify-self: center; color: var(--muted); }

.rlevelup { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--gold); color: var(--edge); font-weight: 800;
  display: flex; align-items: center; gap: 8px; text-align: left; }
.rgame.game--end .btn + .btn { margin-top: 8px; }

@media (min-width: 760px) {
  .rgame__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 22px; }
  .rgame__grid { position: sticky; top: 4px; }
  .rtab { grid-template-columns: 80px repeat(var(--rcols), minmax(0, 1fr)); }
  .rcell { min-height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .rcell.is-tip, .rcell.is-nudge, #rcheck.is-ready, .rpick, .rpick__panel { animation: none; }
}

@media (prefers-color-scheme: dark) {
  .rstory__q { color: var(--teal); }
  .rlevelup { color: #2a1a0e; }
  .rcell.is-wrong { color: var(--ink); }
}
