/* ThroneGames – created by Blue Lamp Studios – https://blue-lamp.de/ */
:root {
  --bg: #dbeefc;          /* helles Blau statt Weiß */
  --bg-dark: #c3def4;
  --ink: #101418;
  --ink-soft: #4f5b68;
  --orange: #1a8fe3;      /* Hauptfarbe: Logo-Blau */
  --orange-dark: #0d6dbd;
  --amber: #ffcf1a;       /* Logo-Gelb */
  --amber-soft: #fff1b3;
  --wood: #b8720f;
  --paper: #fffdf6;
  --paper-line: #c9d8e6;
  --paper-dark: #eaf3fb;
  --ivory: #fbf8f0;
  --sheet-font: Georgia, "Times New Roman", serif;
  --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ui-font); color: var(--ink); background: linear-gradient(180deg, #eaf5fd 0%, var(--bg) 40%, #c9e2f6 100%); background-attachment: fixed; min-height: 100vh; line-height: 1.45; }
a { color: var(--orange); }
button { font: inherit; }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem 1rem; padding-top: max(.45rem, env(safe-area-inset-top)); background: #fff; border-bottom: 4px solid var(--amber); box-shadow: 0 2px 8px rgba(13,109,189,.15); }
.brand img { display: block; height: 44px; width: auto; }
.top nav { display: flex; gap: .7rem; font-size: .85rem; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.top nav a.muted { font-weight: normal; color: var(--ink-soft); }
.wrap { max-width: 560px; margin: 0 auto; padding: 1rem .8rem 3rem; }
.foot { text-align: center; font-size: .75rem; color: var(--ink-soft); padding: 1rem; }
.foot a { color: var(--orange-dark); }
.foot a { color: inherit; }
h1 { font-weight: 800; font-size: 1.7rem; margin: .4rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1rem; font-weight: 700; margin: 1.6rem 0 .5rem; color: var(--orange-dark); }
.lead { margin: 0 0 1rem; color: var(--ink-soft); }
.small { font-size: .85rem; color: var(--ink-soft); }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-block; text-align: center; padding: .7rem 1.1rem; border-radius: .6rem; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 700; box-shadow: 0 3px 0 var(--ink); }
.btn.primary { background: linear-gradient(180deg, #ffe14a, #ffb800); border-color: var(--ink); color: var(--ink); }
.btn.primary:not(:disabled):active { background: #ffb800; }
.btn:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.big { width: 100%; padding: .8rem; font-size: 1rem; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.mini { padding: .35rem .6rem; font-size: .8rem; border-radius: .35rem; }
.btn.danger { border-color: var(--orange-dark); color: var(--orange-dark); }
.btn.challenge { width: 100%; text-align: left; margin-top: .6rem; border-color: var(--amber); background: var(--amber-soft); }
.btn.challenge small { display: block; color: var(--ink-soft); font-weight: normal; margin-top: .15rem; }
.btn:focus-visible, .row:focus-visible, .die:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Formulare */
.auth { max-width: 380px; margin: 1.5rem auto; }
.auth h1 { text-align: center; }
.auth-logo { display: block; width: 100%; max-width: 340px; margin: 0 auto .6rem; }
.auth .lead { text-align: center; }
.form label { display: block; font-size: .85rem; margin-bottom: .8rem; color: var(--ink-soft); }
.form select { display: block; width: 100%; margin-top: .25rem; padding: .7rem .8rem; border-radius: .45rem; border: 2px solid var(--paper-line); background: #fff; color: var(--ink); font-size: 1rem; }
.form input { display: block; width: 100%; margin-top: .25rem; padding: .7rem .8rem; border-radius: .45rem; border: 2px solid var(--paper-line); background: #fff; color: var(--ink); font-size: 1rem; }
.form input:focus { outline: none; border-color: var(--orange); }
.form .btn { margin-top: .3rem; width: 100%; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.flash { padding: .7rem .9rem; border-radius: .45rem; margin-bottom: 1rem; background: var(--amber-soft); border: 1px solid var(--amber); font-size: .92rem; word-break: break-all; }
.flash.err { background: #fde3d6; border-color: var(--orange); }

/* Bonus-Balken */
.bonusbar { position: sticky; top: 0; z-index: 5; margin: 0 -.8rem .8rem; padding: .5rem 1rem .4rem; background: var(--bg-dark); border-bottom: 2px solid var(--ink); }
.bonusbar-track { position: relative; height: 14px; border-radius: 7px; background: #fff; border: 1px solid var(--paper-line); overflow: visible; }
.bonusbar-fill { height: 100%; width: 0; border-radius: 7px; background: var(--amber); transition: width .5s ease; }
.bonusbar-fill.done { background: var(--orange); }
.bonusbar-mark { position: absolute; right: -2px; top: -20px; font-size: .7rem; color: var(--ink-soft); }
.bonusbar-mark::after { content: ""; position: absolute; left: 50%; top: 18px; width: 2px; height: 18px; background: var(--ink); opacity: .5; }
.bonusbar-text { font-size: .8rem; margin-top: .35rem; font-weight: 600; }

/* Würfel */
.dice-area { margin-bottom: 1rem; }
.dice { display: flex; justify-content: space-between; gap: .4rem; margin-bottom: .4rem; }
.die { flex: 1; aspect-ratio: 1; max-width: 60px; padding: 0; border: 0; border-radius: 16%; background: #fff; box-shadow: 0 3px 0 #d9d1c3, 0 6px 10px rgba(40,41,42,.18); cursor: pointer; transition: transform .15s; position: relative; }
.die.empty { background: var(--bg-dark); box-shadow: none; }
.die.held { transform: translateY(8px); box-shadow: 0 1px 0 #d9d1c3, 0 2px 4px rgba(0,0,0,.25); outline: 3px solid var(--orange); }
.die.held::after { content: "halten"; position: absolute; left: 0; right: 0; bottom: -20px; font-size: .62rem; color: var(--orange); font-weight: 700; }
.die:disabled { cursor: default; }
.die .face { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; padding: 16%; }
.die .face i { display: block; }
.die .face i.pip { background: var(--ink); border-radius: 50%; width: 70%; height: 70%; margin: 15%; }
.die.rolling { animation: wobble .35s ease; }
@keyframes wobble { 0% { transform: rotate(0); } 25% { transform: rotate(-14deg) translateY(-6px); } 50% { transform: rotate(12deg); } 75% { transform: rotate(-6deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .die.rolling { animation: none; } .bonusbar-fill { transition: none; } }
.dice-ctrl { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.dice-ctrl .btn { flex: 1; }
.round { font-size: .85rem; white-space: nowrap; color: var(--ink-soft); }
.hint { min-height: 1.2rem; font-size: .8rem; color: var(--orange-dark); font-weight: 600; text-align: center; margin-top: .3rem; }

/* Block */
.sheet { background: var(--paper); color: var(--ink); font-family: var(--sheet-font); border-radius: .4rem; border: 2px solid var(--ink); box-shadow: 0 6px 16px rgba(40,41,42,.12); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.sheet-head { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: .45rem .8rem; background: var(--paper-dark); border-bottom: 2px solid var(--ink); font-size: .95rem; }
.sheet-head span:last-child { font-weight: bold; }
.sheet-part + .sheet-part { border-left: 2px solid var(--ink); }
.row { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: .3rem .6rem; min-height: 2.15rem; border: 0; border-bottom: 1px solid var(--paper-line); background: transparent; color: var(--ink); text-align: left; cursor: default; font-size: .9rem; line-height: 1.1; }
.row .lbl { display: flex; flex-direction: column; }
.row .val { font-size: 1.1rem; min-width: 2.2rem; text-align: right; }
.row:disabled { opacity: 1; }
.row.zero .val { color: var(--orange-dark); }
.row.zero .val::before { content: "\2014"; margin-right: .15rem; font-size: .8rem; }
.row.free .val { color: var(--ink-soft); font-size: .95rem; }
.row.option { cursor: pointer; }
.row.option.good { background: var(--amber); }
.row.option.good .val { color: var(--ink); font-weight: bold; font-size: 1.15rem; }
.row.option.nix .val { color: var(--ink-soft); }
.row.option.nix { opacity: .7; }
.row.option:active { filter: brightness(.9); }
.row.joker .lbl::after { content: "Joker"; font-family: var(--ui-font); font-size: .6rem; color: var(--orange-dark); }
.row.blocked { opacity: .35; }
.row.sum { background: var(--paper-dark); font-size: .85rem; }
.row.sum .val { font-size: .95rem; }
.row.total { grid-column: 1 / -1; border-bottom: 0; border-top: 2px solid var(--ink); background: var(--paper-dark); font-weight: bold; }
.row.total .val { font-size: 1.35rem; }

/* Abschluss */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(40,41,42,.6); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.result { background: #fff; color: var(--ink); border-radius: .8rem; border: 3px solid var(--ink); border-top: 8px solid var(--amber); padding: 1.4rem; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ov-title { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: .6rem; color: var(--orange); }
.result p { margin: .3rem 0; }
.result .big-note { color: var(--orange-dark); font-weight: 700; }
.result .btn { width: 100%; margin-top: .6rem; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 2rem; font-size: .9rem; opacity: 0; transition: all .3s; z-index: 30; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Statistik & Listen */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 480px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: .4rem; padding: .7rem .5rem; text-align: center; }
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--orange); }
.stat span { font-size: .72rem; color: var(--ink-soft); }
.tbl { width: 100%; border-collapse: collapse; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: .4rem; overflow: hidden; font-size: .92rem; }
.tbl th, .tbl td { padding: .5rem .7rem; border-bottom: 1px solid var(--paper-line); text-align: left; }
.tbl th { font-weight: 600; font-size: .78rem; color: var(--ink-soft); background: var(--paper-dark); }
.tbl td:not(:first-child):not(:nth-child(2)) { text-align: right; }
.tbl.rank td:first-child { color: var(--ink-soft); width: 2rem; }
.tbl tr.me td { background: var(--amber-soft); }
.tbl a { color: var(--orange-dark); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.tab { padding: .35rem .75rem; border-radius: 2rem; border: 2px solid var(--ink); color: var(--ink); background: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; }
.tab.on { background: var(--orange); border-color: var(--ink); color: #fff; }
.tab.live:not(.on)::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-left: .4rem; }
.badge { font-size: .68rem; background: var(--amber); color: var(--ink); padding: .1rem .4rem; border-radius: 2rem; vertical-align: middle; }
.badge.red { background: var(--orange-dark); color: #fff; }

/* Admin */
.users { display: flex; flex-direction: column; gap: .6rem; }
.user { background: #fff; color: var(--ink); border: 1px solid var(--paper-line); border-radius: .4rem; padding: .7rem .9rem; }
.user.blocked { opacity: .6; }
.user-head { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.user-head .right { margin-left: auto; font-size: .8rem; color: var(--ink-soft); }
.user-meta { font-size: .82rem; color: var(--ink-soft); margin: .25rem 0 .5rem; }
.user-meta a { color: var(--orange-dark); }
.user-actions form { display: flex; gap: .35rem; flex-wrap: wrap; }
.user-actions .btn { border-width: 1px; border-color: var(--ink-soft); font-weight: normal; }
.user-actions .btn.danger { color: var(--orange-dark); border-color: var(--orange-dark); }
.tbl form { display: inline; }
.tbl .btn.mini { border-width: 1px; border-color: var(--ink-soft); font-weight: normal; }

/* Portal */
.cards { display: grid; gap: .7rem; }
@media (min-width: 520px) { .cards { grid-template-columns: 1fr 1fr; } }
.gamecard { display: flex; gap: .8rem; background: #fff; border: 2px solid var(--ink); border-radius: .8rem; padding: .8rem; text-decoration: none; color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.gamecard:active { border-color: var(--orange); }
.gc-dice { display: grid; grid-template-columns: repeat(2, 14px); gap: 4px; align-content: start; padding-top: .2rem; }
.gc-dice i { display: block; width: 14px; height: 14px; border-radius: 3px; background: var(--orange); border: 1.5px solid var(--ink); }
.gc-dice i:nth-child(even) { background: var(--amber); }
.gc-body { flex: 1; min-width: 0; }
.gc-body b { display: block; font-size: 1.05rem; }
.gc-body small { display: block; color: var(--ink-soft); margin: .15rem 0 .4rem; }
.gc-meta { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font-size: .78rem; color: var(--ink-soft); align-items: center; }
.gc-meta b { color: var(--orange-dark); }

/* Spielseite */
.gamehead { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.gamehead h1 { margin: 0; }
.gamelogo { height: 44px; width: auto; }
.gamelinks { display: flex; gap: .7rem; font-size: .82rem; font-weight: 600; }
.tourname { font-size: .8rem; font-weight: 700; color: var(--orange-dark); margin-bottom: .4rem; min-height: 1rem; }
.scoreline { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; margin-bottom: .8rem; }
.scoreline div { background: #fff; border: 2px solid var(--ink); border-radius: .4rem; text-align: center; padding: .4rem .3rem; }
.scoreline small { display: block; font-size: .7rem; color: var(--ink-soft); }
.scoreline b { font-size: 1.4rem; line-height: 1.1; }
.scoreline div:last-child b { color: var(--orange); }
.dice.small { justify-content: center; gap: .7rem; }
.dice.small .die { max-width: 64px; flex: 0 0 64px; }
.dice.wrap { flex-wrap: wrap; }
.dice-ctrl.col { flex-direction: column; align-items: stretch; gap: .5rem; }
.dice-ctrl .two { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dice-ctrl .two .btn { padding: .8rem .4rem; }
.hint.bad { color: var(--orange-dark); }
.kept { min-height: 34px; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin-bottom: .6rem; font-size: .75rem; color: var(--ink-soft); }
.mini-die { display: inline-block; width: 28px; height: 28px; background: #fff; border: 1px solid var(--paper-line); border-radius: 5px; }
.mini-die .face { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; padding: 12%; }
.mini-die .face i { display: block; } .mini-die .face i.pip { background: var(--ink); border-radius: 50%; width: 70%; height: 70%; margin: 15%; }
.die.mark { outline: 3px solid var(--amber); }
.die.dim { opacity: .35; }

/* Shut the Box */
.box { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .3rem; margin-bottom: 1rem; padding: .6rem; background: var(--wood); border: 3px solid var(--ink); border-radius: .6rem; }
.tile { display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; height: 3.4rem; border: 0; border-radius: .3rem; background: var(--paper); color: var(--ink); font-weight: 800; font-size: clamp(.9rem, 4vw, 1.2rem); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); padding: 0; margin: 0; font-family: inherit; }
.tile.shut { background: #6b3a17; color: rgba(255,255,255,.35); box-shadow: none; }
.tile.pick { background: var(--amber); box-shadow: inset 0 0 0 3px var(--ink); }
.tile:disabled:not(.shut) { opacity: .85; }

/* Tabs */
.tabs.sub .tab { font-size: .78rem; padding: .25rem .6rem; border-width: 1px; }
.tourinfo { margin-top: .8rem; padding: .7rem .9rem; border-radius: .5rem; background: var(--amber-soft); border: 1px solid var(--amber); }
.tourinfo small { display: block; color: var(--ink-soft); margin-top: .15rem; }
.user-games { font-size: .82rem; margin: .3rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.user-games span { background: var(--bg-dark); border-radius: 2rem; padding: .1rem .55rem; }
.user-games span b { color: var(--orange-dark); }
.user-games span.t { background: var(--amber-soft); }

/* Bestenlisten-Auswahl */
.pick { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.pick-lbl { flex: 0 0 4.4rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); padding-top: .45rem; }
.pick .tabs { margin-bottom: 0; }
.tourbox { margin: 1rem 0 .4rem; padding: .7rem .8rem; border-radius: .6rem; background: var(--ink); color: #fff; }
.tourbox-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--amber); margin-bottom: .5rem; }
.tourbox .tabs { margin-bottom: 0; }
.tab.tour { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.tab.tour.on { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.tab.tour .live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7fd67f; margin-right: .4rem; box-shadow: 0 0 0 3px rgba(127,214,127,.25); }
.tab.tour.on .live { background: var(--ink); box-shadow: none; }
.tourbox-info { font-size: .82rem; margin-top: .6rem; color: rgba(255,255,255,.8); }
.tourbox-info b { color: #fff; }
.listtitle { margin: 1rem 0 .5rem; }
.gamepick { background: #fff; border: 2px solid var(--paper-line); border-radius: .6rem; padding: .7rem .8rem; margin-bottom: 0; }
.sep { border: 0; border-top: 3px solid var(--orange); margin: 1.1rem 0 1rem; }

/* Kategorien */
.cathead { font-size: 1.1rem; margin: 1.4rem 0 .6rem; padding-bottom: .3rem; border-bottom: 3px solid var(--orange); color: var(--ink); }
.catnav { margin-bottom: .4rem; }
.tabgroup { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; width: 100%; margin-bottom: .3rem; }
.tabgroup small { flex: 0 0 100%; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-top: .2rem; }
.gc-dice.karten i { border-radius: 2px; width: 12px; height: 16px; background: #fff; border: 1.5px solid var(--ink); }
.gc-dice.karten i:nth-child(even) { border-color: var(--orange); }
.gc-dice.strategie i { border-radius: 50%; }

/* Spielkarten */
.card { display: inline-flex; flex-direction: column; justify-content: space-between; width: 64px; height: 92px; padding: 5px 6px; border-radius: 8px; background: linear-gradient(160deg, #fff 0%, #f7f3ea 100%); border: 1px solid #cfc7b8; box-shadow: 0 2px 4px rgba(40,41,42,.25), inset 0 0 0 2px #fff; color: var(--ink); font-weight: 800; line-height: 1; vertical-align: top; position: relative; user-select: none; }
.card b { font-size: 1.15rem; letter-spacing: -.02em; }
.card b::after { content: attr(data-s); display: block; font-size: .8rem; margin-top: 1px; }
.card i { font-style: normal; font-size: 2.3rem; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.card em { font-style: normal; font-size: 1.15rem; align-self: flex-end; transform: rotate(180deg); }
.card em::after { content: attr(data-s); display: block; font-size: .8rem; margin-top: 1px; }
.card.red { color: #c8281e; }
.card.back { background: repeating-linear-gradient(45deg, var(--orange) 0 6px, var(--orange-dark) 6px 12px); border-color: var(--orange-dark); box-shadow: 0 2px 4px rgba(40,41,42,.25), inset 0 0 0 3px #fff, inset 0 0 0 4px var(--orange-dark); }
.card.sm { width: 50px; height: 72px; padding: 3px 4px; } .card.sm b, .card.sm em { font-size: .95rem; } .card.sm b::after, .card.sm em::after { font-size: .65rem; } .card.sm i { font-size: 1.6rem; }
.card.sel { outline: 3px solid var(--amber); transform: translateY(-6px); }
.card.dim { opacity: .4; }
.card.deal { animation: deal .35s ease-out; }
@keyframes deal { from { opacity: 0; transform: translateY(-14px) scale(.9); } to { opacity: 1; transform: none; } }
.card.flip { animation: flip .4s ease-out; }
@keyframes flip { from { transform: rotateY(90deg); } to { transform: none; } }
button.cardbtn { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; }
button.cardbtn:disabled { cursor: default; }
.hand { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; min-height: 94px; }
.table { border: 3px solid var(--ink); background: #2f6b46; border-radius: .6rem; padding: .8rem .6rem; margin-bottom: .8rem; color: #fff; }
.table .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; margin-bottom: .3rem; }
.table .row2 { display: flex; justify-content: center; gap: 1rem; align-items: center; margin: .3rem 0 .6rem; }
.thinking { display: inline-block; color: var(--amber); font-weight: 700; }
.thinking::after { content: '…'; animation: dots 1s steps(3, end) infinite; }
@keyframes dots { 0% { content: ''; } 33% { content: '.'; } 66% { content: '..'; } 100% { content: '...'; } }
.table .hint { color: #fff; }
.ctrl { display: flex; gap: .5rem; margin-top: .6rem; }
.ctrl .btn { flex: 1; }
.suitpick { display: flex; gap: .5rem; justify-content: center; margin-top: .5rem; }
.suitpick .btn { font-size: 1.4rem; padding: .4rem .9rem; }
.suitpick .btn.red { color: #c8281e; }
.wishmark { font-weight: 700; font-size: .9rem; background: #fff; color: var(--ink); border-radius: 2rem; padding: .2rem .6rem; } .wishmark:empty { display: none; } .wishmark.red { color: #c8281e; }
.hand.golf { display: grid; grid-template-columns: repeat(3, 64px); gap: .4rem; justify-content: center; }
.pyramid { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: .6rem; }
.pyr-row { display: flex; gap: 2px; }
.pyr-row .card.sm { width: 40px; height: 56px; padding: 2px 3px; } .pyr-row .card.sm b { font-size: .8rem; } .pyr-row .card.sm b::after, .pyr-row .card.sm em { display: none; } .pyr-row .card.sm i { font-size: 1.1rem; }
.card.slot { background: rgba(255,255,255,.12); border: 1.5px dashed rgba(255,255,255,.4); box-shadow: none; }
.scoreline.sw3 b { font-size: 1rem; color: var(--orange); }
.table.sol { padding: .5rem .3rem; }
.sol-top { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; margin-bottom: .6rem; }
.sol-tab { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; align-items: start; min-height: 300px; }
.sol-col { display: flex; flex-direction: column; }
.sol-top .cardbtn, .sol-col .cardbtn { display: block; width: 100%; position: relative; }
.sol-top .card, .sol-col .card { width: 100%; height: auto; aspect-ratio: 5 / 7; padding: 3px 3px; border-radius: 5px; box-sizing: border-box; display: flex; }
.sol-top .card b, .sol-col .card b { font-size: clamp(.75rem, 3.4vw, 1rem); }
.sol-top .card b::after, .sol-col .card b::after { font-size: clamp(.55rem, 2.6vw, .75rem); }
.sol-top .card i, .sol-col .card i { font-size: clamp(1rem, 5vw, 1.5rem); }
.sol-top .card em, .sol-col .card em { display: none; }
.sol-top .card.sel, .sol-col .card.sel { transform: none; outline-offset: -3px; }
.sol-col .cardbtn.over-up { margin-top: -104%; }
.sol-col .cardbtn.over-down { margin-top: -128%; }
.card.sm.slot { color: rgba(255,255,255,.6); font-size: 1.2rem; align-items: center; justify-content: center; }
/* Vier gewinnt */
.c4wrap { background: var(--ink); border-radius: .6rem; padding: .5rem; margin-bottom: .6rem; }
.c4 { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.c4c { aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--bg); padding: 0; cursor: pointer; }
.c4c.me { background: var(--amber); } .c4c.cpu { background: var(--orange); }
.c4c.win { box-shadow: 0 0 0 3px var(--amber); }
.c4c.last { box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.c4c:disabled { cursor: default; }
/* Memory */
.memgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: .6rem; }
.memc { aspect-ratio: 1; border: 0; border-radius: .5rem; font-size: 2rem; background: repeating-linear-gradient(45deg, var(--orange) 0 8px, var(--orange-dark) 8px 16px); cursor: pointer; }
.memc.up { background: #fff; border: 2px solid var(--amber); }
.memc.found { background: var(--amber-soft); border: 2px solid var(--paper-line); opacity: .8; }
/* Zahlenjagd */
.numgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; margin-bottom: .6rem; }
.numc { aspect-ratio: 1; border: 2px solid var(--ink); border-radius: .4rem; background: #fff; font-size: 1.3rem; font-weight: 800; cursor: pointer; padding: 0; }
.numc.done { background: var(--amber); border-color: var(--amber); color: var(--ink); opacity: .6; }
.numc.wrong { background: #f5b9b0; }
.numc:disabled { cursor: default; }
/* Reaktion */
.arena { position: relative; height: 320px; background: var(--ink); border-radius: .6rem; margin-bottom: .6rem; display: flex; align-items: center; justify-content: center; touch-action: none; }
.arena .btn { width: auto; }
.target { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--amber); border: 5px solid var(--orange); cursor: pointer; }
.portallink { display: block; background: var(--ink); color: #fff; text-decoration: none; border-radius: .8rem; padding: .7rem .9rem; margin: .2rem 0 1rem; border-left: 8px solid var(--amber); }
.portallink b { display: block; color: var(--amber); font-size: 1.05rem; }
.portallink small { color: rgba(255,255,255,.8); }
.portalrank td:nth-child(3) { font-size: 1.1rem; }
.tourres { background: #fff; border: 1px solid var(--paper-line); border-radius: .5rem; padding: .6rem .8rem; margin-bottom: .5rem; }
.tourres-head { font-size: .85rem; color: var(--ink-soft); margin-bottom: .3rem; } .tourres-head b { color: var(--ink); }
.tourres-rows { display: flex; flex-wrap: wrap; gap: .3rem .6rem; font-size: .85rem; }
.tourres-rows span { background: var(--bg-dark); border-radius: 2rem; padding: .1rem .55rem; }
.tourres-rows em { font-style: normal; font-weight: 700; color: var(--orange-dark); }
.gamesel { display: flex; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.gamesel select { flex: 1; padding: .55rem .7rem; border-radius: .45rem; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 700; }
.gamesel .btn.mini { white-space: nowrap; padding: .55rem .7rem; }
/* Plakative Ergebnis-Meldung */
.banner { display: block; margin: .4rem auto; padding: .6rem 1rem; border-radius: .6rem; text-align: center; font-size: 1.35rem; font-weight: 800; line-height: 1.2; animation: pop .35s ease-out; }
.banner small { display: block; font-size: .85rem; font-weight: 600; opacity: .85; margin-top: .15rem; }
.banner.win { background: var(--amber); color: var(--ink); }
.banner.lose { background: #d62828; color: #fff; }
.banner.tie { background: #fff; color: var(--ink); }
.banner.info { background: rgba(255,255,255,.18); color: #fff; font-size: 1.1rem; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.c4c.drop { animation: c4drop .45s cubic-bezier(.3,1.4,.6,1); }
@keyframes c4drop { from { transform: translateY(-260%); } to { transform: none; } }
.c4hint { min-height: 1.6rem; }
.foot { line-height: 1.9; }
.btn.danger { background: #fff; }
/* Kronenstapel */
.ks-wrap { display: flex; gap: .6rem; justify-content: center; align-items: flex-start; margin-bottom: .6rem; }
#ks-canvas { width: min(200px, 52vw); height: auto; aspect-ratio: 1 / 2; border: 3px solid var(--ink); border-radius: .4rem; background: #101418; touch-action: none; }
.ks-side { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.ks-side small { font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
#ks-next { width: 80px; height: 80px; border: 2px solid var(--ink); border-radius: .4rem; }
.ks-side .btn.big { width: auto; padding: .8rem 1.4rem; }
.ks-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin-bottom: .5rem; }
.ks-pad .btn { padding: 1rem 0; font-size: 1.4rem; touch-action: none; user-select: none; -webkit-user-select: none; }
