/* Digifro Ratequiz. Alles auf .dgfq begrenzt. Das Theme "Tracks" färbt jeden Text in .entry per !important
   hellgrau, deshalb tragen die Farben hier ebenfalls !important. Raleway liefert die Website selbst aus. */
.dgfq {
  --bg: #000000; --surface: #18191c; --surface-2: #1d1e22; --fg: #d3d3d3; --fg-strong: #f2f2f2; --muted: #8f8f8f;
  --faint: #4a4a4a; --rule: #282a2e; --hot: #e9bf3a; --warm-surface: #15120a; --warm-line: #5a4718;
  --ok: #6fcf8e; --bad: #e0675d; --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  width: min(1240px, calc(100vw - 64px)); margin-left: calc(50% - min(620px, 50vw - 32px)); margin-block: 0 2em;
  font-family: "Raleway", "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6;
  color: var(--fg) !important; -webkit-text-size-adjust: 100%; hyphens: manual; -webkit-hyphens: manual;
  background: var(--bg); padding: 16px; border-radius: 12px;
}
/* Das Theme schneidet den Seitenrahmen mit overflow:hidden ab, das bricht position:sticky. clip tut dasselbe ohne Scrollbereich. */
#overflow-container:has(#dgfq-app) { overflow: clip !important; }
.dgfq *, .dgfq *::before, .dgfq *::after { box-sizing: border-box; }
.dgfq p, .dgfq ul, .dgfq ol, .dgfq figure, .dgfq h2, .dgfq table { margin: 0; padding: 0; }
.dgfq ol, .dgfq ul { list-style: none; }
.dgfq [hidden] { display: none !important; }
.dgfq .lede { text-align: center; font-style: italic; font-size: 15.5px; color: var(--fg) !important; max-width: 62ch; margin: 0 auto 16px; text-wrap: balance; }
.dgfq .loading, .dgfq .empty { text-align: center; color: var(--muted) !important; padding: 40px 0; }
.dgfq .err { text-align: center; padding: 40px 0; display: grid; gap: 14px; justify-items: center; }
.dgfq .err p { color: var(--bad) !important; }

/* Buttons */
.dgfq .btn { appearance: none; -webkit-appearance: none; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-shadow: none; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border: 2px solid var(--faint); border-radius: 999px; background: transparent; color: var(--fg) !important; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform 160ms var(--ease-out), border-color 160ms ease, color 160ms ease; }
.dgfq .btn:active { transform: scale(0.97); }
.dgfq .btn:focus-visible, .dgfq input:focus-visible, .dgfq .scroller:focus-visible, .dgfq .card:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
.dgfq .btn.hot { border-color: var(--hot); color: var(--hot) !important; }
.dgfq .btn[disabled] { opacity: .4; cursor: default; transform: none; }
.dgfq .btn.quiet { border-color: transparent; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--muted) !important; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding-inline: 8px; }
@media (hover: hover) and (pointer: fine) {
  .dgfq .btn:not([disabled]):hover { border-color: var(--fg); color: var(--fg-strong) !important; }
  .dgfq .btn.hot:not([disabled]):hover { border-color: var(--hot); background: #e9bf3a; color: #000000 !important; }
  .dgfq .card:hover { border-color: var(--hot); }
  .dgfq .card:hover .thumb img { transform: scale(1.03); }
}

/* Übersicht */
.dgfq .gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 22px; }
.dgfq .card { appearance: none; -webkit-appearance: none; font: inherit; position: relative; display: grid; gap: 0; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: border-color 160ms ease; }
.dgfq .card .thumb { display: block; overflow: hidden; background: #f4f3ef; line-height: 0; aspect-ratio: 2355 / 1152; }
.dgfq .card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.dgfq .card .badge { position: absolute; top: 8px; left: 8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .78); border: 1px solid var(--faint); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--fg-strong) !important; font-variant-numeric: tabular-nums; }
.dgfq .card .st { display: block; padding: 9px 12px; font-size: 13px; letter-spacing: .04em; color: var(--muted) !important; }
.dgfq .card.going { border-color: var(--warm-line); }
.dgfq .card.going .st { color: var(--hot) !important; }
.dgfq .card.done { border-color: #2c5a3c; }
.dgfq .card.done .st { color: var(--ok) !important; font-weight: 700; }
.dgfq .ranking { margin-top: 36px; display: grid; gap: 10px; }
.dgfq .ranking h2, .dgfq .result h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--fg) !important; }

.dgfq p.tip { text-align: center; font-size: 14px; color: var(--muted) !important; }
.dgfq table.rank { width: 100%; max-width: 640px; margin: 0 auto; border-collapse: collapse; font-size: 14.5px; }
.dgfq table.rank th, .dgfq table.rank td { border: 0; border-bottom: 1px solid var(--rule); padding: 7px 10px; text-align: left; line-height: 1.4; background: transparent; }
.dgfq table.rank th { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; }
.dgfq table.rank td { color: var(--fg-strong) !important; }
.dgfq table.rank td.n { text-align: right; width: 18%; font-variant-numeric: tabular-nums; }
.dgfq table.rank th:first-child, .dgfq table.rank td:first-child { width: 12%; text-align: left; }
.dgfq table.rank td.empty { text-align: center; color: var(--muted) !important; padding: 18px; }
.dgfq table.rank tr.mine td { color: var(--hot) !important; font-weight: 700; }
.dgfq form.nick { display: grid; gap: 6px; max-width: 420px; width: 100%; margin: 4px auto; text-align: left; }
.dgfq form.nick label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg) !important; }

/* Kopfzeile der Spielansicht */
.dgfq .topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dgfq .topbar .where { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
.dgfq .topbar .nav { display: flex; gap: 2px; }
.dgfq .topbar .nav .btn { font-size: 20px; min-width: 40px; text-decoration: none; }

/* Spielbühne: links Bild, Punkte und Eingabe, rechts scrollen nur die Hinweise */
.dgfq .stage { position: sticky; top: var(--dgfq-top, 0px); height: var(--dgfq-h, 100vh); min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; background: var(--bg); }
.dgfq .left { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
.dgfq .right { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.dgfq .frame { border: 2px solid #333333; padding: 6px; background: #585858; border-radius: 6px; line-height: 0; display: flex; justify-content: center; flex: none; }
.dgfq .frame img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(46vh, 440px); aspect-ratio: 2355 / 1152; object-fit: contain; background: #f4f3ef; border-radius: 2px; border: 0; outline: 0; }
.dgfq .score { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: none; }
.dgfq .stat { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 8px; text-align: center; min-width: 0; }
.dgfq .stat span { display: block; }
.dgfq .stat .lab { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgfq .stat .val { font-size: 20px; font-weight: 700; color: var(--fg-strong) !important; font-variant-numeric: tabular-nums; line-height: 1.3; }
.dgfq .stat .val small { font-size: 12px; font-weight: 400; color: var(--muted) !important; }
.dgfq .stat.total .val { color: var(--hot) !important; }
.dgfq > .score { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; }
.dgfq .guess { display: grid; grid-template-columns: 1fr; gap: 10px; flex: none; }
.dgfq .field { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; }
.dgfq .field label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fg) !important; }
.dgfq .inrow { display: flex; gap: 8px; }
.dgfq .inrow input { flex: 1 1 auto; min-width: 0; appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px; box-shadow: none; height: 44px; padding: 0 14px; border: 1px solid var(--faint); border-radius: 8px; background: var(--bg); color: var(--fg-strong) !important; }
.dgfq .inrow input::placeholder { color: var(--muted); opacity: 1; }
.dgfq .inrow input[disabled] { opacity: .6; }
.dgfq .inrow .btn { padding-inline: 16px; }
.dgfq .fb { min-height: 1.5em; font-size: 14px; line-height: 1.4; color: var(--muted) !important; }
.dgfq .fb:empty { min-height: 0; }
.dgfq .fb.ok { color: var(--ok) !important; font-weight: 700; }
.dgfq .fb.bad { color: var(--bad) !important; }
.dgfq .fb.near { color: var(--hot) !important; }
.dgfq .bar { display: grid; gap: 8px; flex: none; }
.dgfq .meter { display: grid; gap: 4px; }
.dgfq .meter i { display: block; height: 5px; border-radius: 3px; background: var(--rule); transition: background-color 240ms ease; }
.dgfq .meter i.on { background: var(--hot); }
.dgfq .row-reveal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; }
.dgfq .scroller { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; border: 1px solid var(--rule); border-radius: 10px; padding: 10px; background: #0a0a0b; display: grid; gap: 8px; align-content: start; }
.dgfq .hints { display: grid; gap: 8px; }
.dgfq li.hint { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border: 1px dashed var(--faint); border-radius: 8px; background: transparent; }
.dgfq .hint .no { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--faint); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted) !important; font-variant-numeric: tabular-nums; }
.dgfq .hint .bars { display: grid; gap: 7px; padding-top: 11px; }
.dgfq .hint .bars i { display: block; height: 6px; border-radius: 3px; background: var(--rule); width: 58%; }
.dgfq li.hint.open { border-style: solid; border-color: var(--warm-line); background: var(--warm-surface); padding: 12px 14px; }
.dgfq .hint.open .no { border-color: var(--hot); color: var(--hot) !important; }
.dgfq .hint.late { opacity: .62; }
.dgfq .hint .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hot) !important; margin-bottom: 2px; }
.dgfq .hint .t { display: block; font-size: 15px; line-height: 1.55; color: var(--fg-strong) !important; text-wrap: pretty; }
.dgfq .hint.fresh { animation: dgfq-reveal 320ms var(--ease-out) both; }
@keyframes dgfq-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dgfq .hint.fresh { animation: none; } .dgfq .meter i, .dgfq .card .thumb img { transition: none; } }
.dgfq .result { padding: 20px 16px; text-align: center; border: 1px solid var(--warm-line); border-radius: 10px; background: var(--warm-surface); display: grid; gap: 8px; justify-items: center; }
.dgfq .result h2 { font-size: 20px; }
.dgfq .result .big { font-size: clamp(38px, 7vw, 56px); font-weight: 700; line-height: 1.1; color: var(--hot) !important; font-variant-numeric: tabular-nums; }
.dgfq .result .big small { font-size: .35em; font-weight: 400; color: var(--muted) !important; }
.dgfq .result .rankmsg { font-style: italic; color: var(--fg-strong) !important; }
.dgfq .result .sol { color: var(--fg-strong) !important; }
.dgfq .result .sol b { font-weight: 700; color: var(--hot) !important; }
.dgfq .result .note { max-width: 56ch; font-size: 14px; color: var(--muted) !important; text-wrap: balance; }
.dgfq .result .mini { width: 100%; display: grid; gap: 4px; margin-top: 6px; }
.dgfq .result .minihead { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; }
.dgfq .result .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.dgfq .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dgfq noscript p { text-align: center; color: var(--muted) !important; }

@media (max-width: 899px) {
  .dgfq { width: auto; margin-left: 0; }
  .dgfq .stage { display: flex; flex-direction: column; gap: 8px; }
  .dgfq .left { display: contents; }
  .dgfq .right { flex: 1 1 0; gap: 8px; }
  .dgfq .frame { padding: 4px; }
  .dgfq .frame img { max-height: 24vh; }
  .dgfq .guess { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dgfq .field { padding: 8px 10px; }
  .dgfq .inrow .btn { padding-inline: 12px; min-height: 40px; }
  .dgfq .inrow input { height: 40px; }
  .dgfq .stat .val { font-size: 17px; }
  .dgfq .gal { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  /* Nach der Lösung: Bühne so hoch wie der Inhalt, kein kleiner Rahmen mit eigener Bildlaufleiste (Ergebnis, Nächstes Bild, Spotify, Spitzname) */
  .dgfq .stage.done { position: static; height: auto; min-height: 0; }
  .dgfq .stage.done .guess, .dgfq .stage.done .bar { display: none; }
  .dgfq .stage.done .right { flex: none; }
  .dgfq .stage.done .scroller { flex: none; overflow: visible; }
}
@media (max-width: 560px) {
  .dgfq .guess { grid-template-columns: 1fr; }
  .dgfq .field { grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 4px 10px; }
  .dgfq .field .fb { grid-column: 1 / -1; }
  .dgfq .field label { letter-spacing: .1em; }
  .dgfq .row-reveal { flex-wrap: nowrap; gap: 4px 6px; }
  .dgfq .row-reveal .btn.hot { flex: 1 1 auto; min-width: 0; min-height: 40px; padding-inline: 10px; font-size: 12px; letter-spacing: .05em; text-align: center; }
  .dgfq .row-reveal .btn.quiet { flex: none; }
  .dgfq .stat .lab { font-size: 9.5px; letter-spacing: .06em; }
  .dgfq .gal { grid-template-columns: 1fr 1fr; }
  .dgfq table.rank th, .dgfq table.rank td { padding: 6px 6px; }
}

/* Auswahlliste und Expertenmodus */
.dgfq .fhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dgfq .btn.mini { min-height: 30px; padding: 2px 8px; font-size: 12.5px; }
.dgfq .meta { font-size: 12.5px; color: var(--muted) !important; line-height: 1.4; }
.dgfq .meta:empty { display: none; }
.dgfq .inrow select { flex: 1 1 auto; min-width: 0; appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px; box-shadow: none; height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--hot); border-radius: 8px; color: var(--fg-strong) !important; background-color: var(--bg); background-image: linear-gradient(45deg, transparent 50%, var(--hot) 50%), linear-gradient(135deg, var(--hot) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
.dgfq .inrow select:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
.dgfq .inrow select option { color: #f2f2f2; background: #18191c; }
.dgfq .inrow select option:disabled { color: #6b6b6b; text-decoration: line-through; }
.dgfq label.exp { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 13px; line-height: 1.4; color: var(--fg) !important; cursor: pointer; padding: 4px 8px; text-align: left; }
.dgfq label.exp span { color: var(--fg) !important; }
.dgfq label.exp input { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; margin: 0; accent-color: #e9bf3a; flex: none; cursor: pointer; }
.dgfq label.exp input[disabled] { cursor: default; opacity: .7; }
@media (max-width: 560px) {
  .dgfq .field .fhead { grid-column: 1 / -1; }
  .dgfq .field { grid-template-columns: minmax(0, 1fr); }
  .dgfq .field .meta { grid-column: 1 / -1; }
  .dgfq label.exp { font-size: 12px; }
}

/* Stufen (Sterne) in der Übersicht, Einsteigermodus */
.dgfq .stars .on { color: var(--hot) !important; }
.dgfq .stars .off { color: var(--faint) !important; }
.dgfq .card .lv { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 9px; border-radius: 999px; background: rgba(0, 0, 0, .78); border: 1px solid var(--faint); display: grid; place-items: center; font-size: 13px; letter-spacing: .08em; white-space: nowrap; }
.dgfq h2.lvl { margin: 26px 0 0; font-size: clamp(15px, 2.4vw, 19px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg) !important; }
.dgfq h2.lvl small { font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--muted) !important; }
.dgfq h2.lvl + .gal { margin-top: 10px; }
.dgfq .modes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px; }
.dgfq .modes:not(:has(:not([hidden]))) { display: none; }
.dgfq .begon { font-size: 13px; line-height: 1.4; text-align: center; color: var(--hot) !important; padding: 4px 8px; }

/* Spotify nach dem Lösen: nur ein Link (ab 0.5.3, kein eingebetteter Player) */
.dgfq .result .rpart { display: grid; gap: 8px; justify-items: center; width: 100%; }
.dgfq .result .rpart:empty { display: none; }
.dgfq .sp { width: 100%; display: grid; gap: 10px; justify-items: center; margin-block: 8px; padding: 14px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #0a0a0b; }
.dgfq .sp .minihead { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; }
.dgfq .sp-txt { font-size: 14px; text-align: center; color: var(--fg) !important; }
.dgfq .sp-open { text-decoration: none; }
.dgfq .sp-act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; }
.dgfq .sp-note { font-size: 12.5px; line-height: 1.5; max-width: 62ch; text-align: center; color: var(--muted) !important; text-wrap: pretty; }
.dgfq .sp-note a { color: var(--fg) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .dgfq .sp-note a:hover { color: var(--fg-strong) !important; }
}

/* Hinweis am Spitznamen-Feld */
.dgfq form.nick .nick-hint { font-size: 12.5px; line-height: 1.5; color: var(--muted) !important; text-wrap: pretty; }
.dgfq form.nick .nick-hint a { color: var(--fg) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .dgfq form.nick .nick-hint a:hover { color: var(--fg-strong) !important; } }
