/* demogames — slot demo pages. Sits on top of noir.css (colours, fonts, header, footer come from there). */
:root {
  --dg-sky: #7dd3fc;
  --dg-sky-bg: rgba(125, 211, 252, .12);
  --dg-sky-line: rgba(125, 211, 252, .38);
  --dg-pop: #121a22;          /* dropdown panels: solid so content underneath doesn't show through */
  --dg-ink: #06202c;          /* text on sky buttons */
  --dg-card: var(--bg-card, #141b22);
  --dg-line: var(--border, #23303b);
  --dg-t1: var(--text-1, #e6edf3);
  --dg-t2: var(--text-2, #9fb0bf);
  --dg-t3: var(--text-3, #6b7c8b);
}
.dg-wrap { padding: 30px 0 64px; }
.dg-wrap a { color: inherit; }
.dg-wrap :focus-visible { outline: 2px solid var(--dg-sky); outline-offset: 2px; }
.dg-wrap input:focus-visible, .dg-wrap select:focus-visible { outline: none; border-color: var(--dg-sky); }

/* ---------- headings ---------- */
.dg-crumbs { font-size: 12.5px; color: var(--dg-t3); margin-bottom: 10px; }
.dg-crumbs a { color: var(--dg-t2); text-decoration: none; }
.dg-crumbs a:hover { color: var(--dg-sky); }
.dg-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 22px; }
.dg-title { font: 700 clamp(36px, 5vw, 54px)/1 var(--font-head); color: var(--dg-t1); margin: 0; letter-spacing: .5px; }
.dg-title span { color: var(--dg-sky); }
.dg-sub { color: var(--dg-t2); font-size: 14px; line-height: 1.65; margin: 10px 0 0; max-width: 560px; }
.dg-sub a { color: var(--dg-sky); }

.dg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-pill { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 12px; padding: 11px 16px; min-width: 104px; text-align: center; text-decoration: none; }
.dg-pill b { display: block; font: 700 19px/1 var(--font-mono); color: var(--dg-t1); margin-bottom: 5px; }
.dg-pill b.g { color: var(--green); }
.dg-pill b.a { color: var(--amber); }
.dg-pill b.s { color: var(--dg-sky); }
.dg-pill span { font: 700 10px var(--font-head); text-transform: uppercase; letter-spacing: 1.4px; color: var(--dg-t3); }
a.dg-pill:hover { border-color: var(--dg-sky-line); }

/* ---------- search ---------- */
.dg-search { position: relative; }
.dg-sbox { display: flex; align-items: center; gap: 10px; background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 12px; padding: 0 14px; }
.dg-sbox:focus-within { border-color: var(--dg-sky); }
.dg-sbox svg { flex: none; color: var(--dg-t3); }
.dg-sbox input { flex: 1; min-width: 0; border: 0; background: none; color: var(--dg-t1); font-family: inherit; font-size: 16px; padding: 14px 0; outline: none; }
.dg-sbox input::-webkit-search-cancel-button { display: none; }
#dg-qclear { background: none; border: 0; color: var(--dg-t3); font-size: 22px; cursor: pointer; padding: 0 4px; }
.dg-sbox kbd { border: 1px solid var(--dg-line); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; font: 12px var(--font-mono); color: var(--dg-t3); }
@media (hover: none) { .dg-sbox kbd { display: none; } }

.dg-ac { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--dg-pop); border: 1px solid var(--dg-line); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.dg-ac[hidden] { display: none; }
.dg-ac li { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.dg-ac li[aria-selected=true], .dg-ac li[role=option]:hover { background: rgba(255,255,255,.05); }
.dg-ac img, .dg-ac .ph { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: rgba(0,0,0,.3); flex: none; }
.dg-ac .ph { display: grid; place-items: center; color: var(--dg-sky); font: 700 15px var(--font-head); }
.dg-ac .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dg-ac .t b { font-weight: 600; color: var(--dg-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-ac .t small { color: var(--dg-t3); }
.dg-ac .go { color: var(--dg-t3); font-size: 12px; white-space: nowrap; }
.dg-ac mark { background: none; color: var(--dg-sky); }
.dg-ac .dg-achd { display: flex; justify-content: space-between; padding: 8px 8px 2px; font-size: 11px; color: var(--dg-t3); cursor: default; }

/* ---------- filter bar ---------- */
.dg-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.dg-seg { display: inline-flex; flex-wrap: wrap; background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 10px; padding: 3px; gap: 2px; }
.dg-seg label { position: relative; padding: 6px 12px; border-radius: 7px; font: 700 13.5px/1.2 var(--font-head); letter-spacing: .3px; color: var(--dg-t2); cursor: pointer; }
.dg-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dg-seg label:hover { color: var(--dg-t1); }
.dg-seg label:has(input:checked) { background: var(--dg-sky-bg); color: var(--dg-sky); }
.dg-seg label:has(input:focus-visible) { outline: 2px solid var(--dg-sky); }

.dg-dd { position: relative; }
.dg-dd > summary { list-style: none; display: flex; align-items: center; gap: 7px; background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 10px; padding: 8px 13px; font: 700 14px/1.2 var(--font-head); letter-spacing: .3px; color: var(--dg-t2); cursor: pointer; user-select: none; }
.dg-dd > summary::-webkit-details-marker { display: none; }
.dg-dd > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dg-dd[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.dg-dd > summary:hover { color: var(--dg-t1); }
.dg-dd[open] > summary { border-color: var(--dg-sky); color: var(--dg-sky); }
.dg-dd > summary b { font: 600 12px var(--font-mono); color: var(--dg-ink); background: var(--dg-sky); border-radius: 999px; padding: 1px 7px; }
.dg-dd > summary b:empty { display: none; }

.dg-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(560px, calc(100vw - 32px)); background: var(--dg-pop); border: 1px solid var(--dg-line); border-radius: 12px; padding: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 12px; }
.dg-ptitle { margin: 2px 0 -4px; font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: 1.6px; color: var(--dg-t3); }
.dg-find, .dg-field input, .dg-field select, .dg-sort select { background: var(--dg-card); border: 1px solid var(--dg-line); color: var(--dg-t1); border-radius: 8px; padding: 8px 10px; font-family: inherit; font-size: 13.5px; }
.dg-find { width: 100%; }
.dg-find:focus, .dg-field input:focus { border-color: var(--dg-sky); outline: none; }
.dg-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-opt { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: var(--dg-t2); cursor: pointer; }
.dg-opt[hidden] { display: none; }
.dg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.dg-opt small { color: var(--dg-t3); font: 11px var(--font-mono); }
.dg-opt:hover { border-color: var(--dg-t3); color: var(--dg-t1); }
.dg-opt:has(input:checked) { background: var(--dg-sky-bg); border-color: var(--dg-sky); color: var(--dg-sky); }
.dg-opt:has(input:focus-visible) { outline: 2px solid var(--dg-sky); outline-offset: 2px; }
.dg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dg-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--dg-t3); }
.dg-popfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--dg-line); padding-top: 11px; }
.dg-link { background: none; border: 0; padding: 0; color: var(--dg-sky); font-size: 13px; cursor: pointer; }
.dg-link:hover { text-decoration: underline; }
.dg-apply { background: var(--dg-sky); color: var(--dg-ink); border: 0; border-radius: 8px; padding: 8px 16px; font: 700 14px var(--font-head); letter-spacing: .3px; cursor: pointer; }
.dg-apply:hover { filter: brightness(1.08); }
.dg-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dg-t3); }
.dg-note { margin: 0; color: var(--dg-t3); font-size: 12.5px; }
.dg-note:empty { display: none; }

@media (max-width: 640px) {
  .dg-dd { position: static; }
  .dg-pop { left: 0; right: 0; width: auto; }
  .dg-sort { margin-left: 0; width: 100%; }
  .dg-sort select { flex: 1; }
  .dg-fields { grid-template-columns: 1fr; }
}

/* ---------- results ---------- */
#dg-results { margin-top: 6px; transition: opacity .15s; }
#dg-results.loading { opacity: .45; }
.dg-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.dg-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--dg-sky-bg); border: 1px solid var(--dg-sky-line); color: var(--dg-sky) !important; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; text-decoration: none; }
.dg-chip::after { content: "×"; font-size: 15px; line-height: 1; opacity: .8; }
.dg-chip:hover { border-color: var(--dg-sky); }
.dg-clearall { margin-left: 4px; font-size: 12.5px; color: var(--dg-t3) !important; }
.dg-count { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0 10px; font-size: 13px; color: var(--dg-t3); }
.dg-count b { font: 700 20px var(--font-mono); color: var(--dg-t1); }
.dg-empty { padding: 48px 0; text-align: center; color: var(--dg-t3); }

.dg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.dg-card { display: grid; grid-template-columns: 108px 1fr; min-width: 0; overflow: hidden; background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 10px; text-decoration: none; }
.dg-card:hover { border-color: var(--dg-sky-line); }
.dg-thumb { position: relative; min-height: 80px; background: rgba(0,0,0,.3); }
.dg-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg-thumb.play::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--dg-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%2306202c'/%3E%3C/svg%3E") center/16px no-repeat; opacity: .9; }
.dg-meta { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding: 8px 11px; }
.dg-name { font-weight: 600; font-size: 13.5px; color: var(--dg-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-card:hover .dg-name { color: var(--dg-sky); }
.dg-prov, .dg-line { font-size: 12px; color: var(--dg-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-line b { font: 600 11.5px var(--font-mono); color: var(--green); }
.dg-line .up { color: var(--amber); }
.dg-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.dg-badge { font: 700 10.5px/17px var(--font-head); letter-spacing: .4px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--dg-line); color: var(--dg-sky); }
.dg-badge.new { color: var(--green); border-color: rgba(108,197,154,.3); }

.dg-pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--dg-t3); }
.dg-pager a, .dg-pager .off { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 8px; padding: 8px 14px; color: var(--dg-t1); text-decoration: none; }
.dg-pager a:hover { border-color: var(--dg-sky); }
.dg-pager .off { opacity: .35; }
.dg-cap { text-align: center; margin-top: 10px; }

/* ---------- overview sections ---------- */
.dg-section { margin-top: 36px; }
.dg-shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.dg-shead h2 { margin: 0; padding-left: 12px; border-left: 3px solid var(--dg-sky); font: 700 22px/1.1 var(--font-head); color: var(--dg-t1); }
.dg-shead p { margin: 4px 0 0 15px; font-size: 13px; color: var(--dg-t3); }
.dg-shead > a, .dg-subhead a { color: var(--dg-sky) !important; font-size: 13px; text-decoration: none; white-space: nowrap; }
.dg-shead > a:hover, .dg-subhead a:hover { text-decoration: underline; }
.dg-subhead { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; }
.dg-subhead h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--dg-t2); }
.dg-subhead h3 span { color: var(--dg-t3); font-weight: 400; margin-left: 4px; }

.dg-soon { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 12px; overflow: hidden; }
.dg-srow { display: grid; grid-template-columns: 88px 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--dg-line); text-decoration: none; }
.dg-srow:first-child { border-top: 0; }
.dg-srow:hover { background: rgba(125,211,252,.05); }
.dg-srow .dt b { display: block; font: 700 16px/1.1 var(--font-head); color: var(--amber); }
.dg-srow .dt span { font-size: 11.5px; color: var(--dg-t3); }
.dg-srow img, .dg-srow .ph { display: block; width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: rgba(0,0,0,.3); }
.dg-srow .nm { display: flex; flex-direction: column; min-width: 0; }
.dg-srow .nm b { font-weight: 600; color: var(--dg-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-srow .nm small { color: var(--dg-t3); }
.dg-srow .go { font-size: 12px; color: var(--dg-sky); }
@media (max-width: 560px) { .dg-srow { grid-template-columns: 72px 1fr; } .dg-srow .th, .dg-srow .go { display: none; } }

.dg-studios { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-studio { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--dg-t1) !important; text-decoration: none; }
.dg-studio:hover { border-color: var(--dg-sky); }
.dg-studio em { font: normal 600 12px var(--font-mono); color: var(--green); margin-left: 2px; }

/* ---------- game page ---------- */
.dg-ghead { margin-bottom: 16px; }
.dg-ghead h1 { margin: 0; font: 700 clamp(30px, 4.4vw, 46px)/1.04 var(--font-head); color: var(--dg-t1); }
.dg-ghead h1 span { color: var(--dg-sky); }
.dg-ghead p { margin: 8px 0 0; font-size: 14px; color: var(--dg-t2); }
.dg-ghead p a { color: var(--dg-sky); text-decoration: none; }

.dg-player { background: #000; border: 1px solid var(--dg-line); border-radius: 14px; overflow: hidden; }
.dg-stage { position: relative; display: grid; place-items: center; width: 100%; max-width: calc((100vh - 190px) * 16 / 9); min-width: min(100%, 320px); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #000; color: var(--dg-t2); }
.dg-stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.45); transform: scale(1.04); }
.dg-stage iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; }
.dg-start { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; }
.dg-start button { background: var(--dg-sky); color: var(--dg-ink); border: 0; border-radius: 999px; padding: 13px 32px; font: 700 19px var(--font-head); letter-spacing: .5px; cursor: pointer; }
.dg-start button:hover { filter: brightness(1.08); }
.dg-start small { color: #c3ced8; }
.dg-stagebar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; background: var(--dg-card); border-top: 1px solid var(--dg-line); font-size: 12.5px; color: var(--dg-t3); }

.dg-promo { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at center, rgba(14,19,24,.72), rgba(4,8,12,.94)); backdrop-filter: blur(3px); }
.dg-pbox { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 22px 20px; text-align: center; background: rgba(18,26,34,.94); border: 1px solid var(--dg-line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.dg-plogo { display: block; width: min(260px, 70vw); height: auto; }
.dg-pbox p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #c3ced8; }
.dg-pbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.dg-pvisit { background: var(--dg-sky); color: var(--dg-ink) !important; border-radius: 999px; padding: 11px 22px; font: 700 16px/1 var(--font-head); letter-spacing: .4px; text-decoration: none; }
.dg-pvisit:hover { filter: brightness(1.08); }
.dg-pcont { background: none; border: 1px solid var(--dg-sky-line); border-radius: 999px; padding: 10px 20px; font: 600 14px/1 var(--font-head); color: var(--dg-t1); cursor: pointer; }
.dg-pcont:hover { border-color: var(--dg-sky); color: var(--dg-sky); }
@media (max-width: 560px) { .dg-promo { padding: 8px; } .dg-pbox { padding: 12px; gap: 8px; } .dg-pbox p { display: none; } .dg-plogo { width: 170px; } }

.dg-specs { margin-top: 14px; }
.dg-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; margin-top: 14px; }
@media (max-width: 900px) { .dg-cols { grid-template-columns: 1fr; } }
.dg-box { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 14px; padding: 18px 20px; }
.dg-box h2 { margin: 18px 0 10px; font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: 1.6px; color: var(--dg-t3); }
.dg-box h2:first-child { margin-top: 0; }
.dg-box p { margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: var(--dg-t2); max-width: 72ch; }
.dg-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.dg-dl dt { color: var(--dg-t3); }
.dg-dl dd { margin: 0; text-align: right; font-weight: 600; color: var(--dg-t1); }
.dg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-tag { border: 1px solid var(--dg-line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--dg-t2); text-decoration: none; }
a.dg-tag:hover { border-color: var(--dg-sky); color: var(--dg-sky); }
.dg-tag.on { color: var(--green); border-color: rgba(108,197,154,.35); }
.dg-statlink { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--dg-sky-line); border-radius: 12px; background: var(--dg-sky-bg); text-decoration: none; }
.dg-statlink b { font: 700 17px var(--font-head); color: var(--dg-sky); }
.dg-statlink span { font-size: 13px; color: var(--dg-t2); }
.dg-statlink:hover { border-color: var(--dg-sky); }

@media (max-width: 640px) {
  .dg-wrap { padding-top: 20px; }
  .dg-grid { grid-template-columns: 1fr; }
  .dg-hero > div { width: 100%; }
  .dg-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .dg-pill { min-width: 0; padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { #dg-results, .dg-dd > summary::after { transition: none; } }

/* ---------- overview (option A): filter fold, originals, tiles, information boxes ---------- */
.dg-kick { margin: 0 0 4px 15px; font: 700 11px var(--font-head); letter-spacing: 1.8px; text-transform: uppercase; color: var(--dg-sky); }
.dg-kick.up { color: var(--amber); }

/* filter bar: always open on desktop (no summary), a fold-out on phones */
.dg-fold > summary { display: none; }

.dg-origs { margin-top: 28px; }
.dg-obar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 13px; }
.dg-obal { color: var(--dg-t3); }
.dg-obal b { margin-left: 4px; font: 700 15px var(--font-mono); color: var(--green); }
.dg-obtn { min-height: 36px; padding: 0; background: none; border: 0; color: var(--dg-sky); font: inherit; cursor: pointer; }
.dg-obtn:hover { text-decoration: underline; }
.dg-ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
@media (min-width: 1240px) { .dg-ogrid { grid-template-columns: repeat(11, minmax(0, 1fr)); } }
.dg-orig { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 12px; text-align: center; text-decoration: none; transition: border-color .15s, transform .15s; }
.dg-orig:hover { border-color: var(--acc); transform: translateY(-2px); }
.dg-oico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 21px var(--font-head); color: var(--acc); background: color-mix(in srgb, var(--acc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.dg-orig b { font-weight: 600; font-size: 13px; color: var(--dg-t1); }

.dg-two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 0 26px; align-items: start; }
@media (max-width: 980px) { .dg-two { grid-template-columns: 1fr; } }
.dg-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px 10px; }
@media (max-width: 760px) { .dg-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dg-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; }
.dg-tthumb { position: relative; aspect-ratio: 4 / 3; margin-bottom: 4px; overflow: hidden; border: 1px solid var(--dg-line); border-radius: 8px; background: rgba(0,0,0,.3); }
.dg-tthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.dg-tthumb.play::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--dg-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%2306202c'/%3E%3C/svg%3E") center/14px no-repeat; opacity: .9; }
.dg-tile:hover .dg-tthumb { border-color: var(--dg-sky-line); }
.dg-tile:hover .dg-tthumb img { transform: scale(1.04); }
.dg-tname { font-weight: 600; font-size: 12.5px; color: var(--dg-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-tile:hover .dg-tname { color: var(--dg-sky); }
.dg-tprov { font-size: 11.5px; color: var(--dg-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-twhen { font-size: 11px; color: var(--green); }
.dg-more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--dg-sky) !important; text-decoration: none; }
.dg-more:hover { text-decoration: underline; }
.dg-side .dg-srow { grid-template-columns: 64px 52px 1fr; gap: 10px; }
.dg-side .dg-srow .th { display: block; }
.dg-side .dg-srow img, .dg-side .dg-srow .ph { width: 52px; height: 39px; }
.dg-side .dg-srow .go { display: none; }

.dg-infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .dg-infos { grid-template-columns: 1fr; } }
.dg-info { background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 14px; padding: 16px 18px; }
.dg-info > summary { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.dg-info > summary::-webkit-details-marker { display: none; }
.dg-info .dg-kick { margin: 0; }
.dg-info summary b { font: 700 19px/1.2 var(--font-head); color: var(--dg-t1); }
.dg-info p { margin: 8px 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--dg-t2); }
.dg-info a { font-size: 13px; color: var(--dg-sky) !important; text-decoration: none; }
.dg-info a:hover { text-decoration: underline; }
@media (min-width: 641px) { .dg-info > summary { pointer-events: none; } }   /* always open on desktop */

@media (max-width: 640px) {
  .dg-fold { margin-top: 10px; padding: 0 12px; background: var(--dg-card); border: 1px solid var(--dg-line); border-radius: 12px; }
  .dg-fold > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 46px; font: 700 15px var(--font-head); color: var(--dg-t1); cursor: pointer; }
  .dg-fold > summary::-webkit-details-marker { display: none; }
  .dg-fold > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .dg-fold[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
  .dg-fold > summary b { font: 600 12px var(--font-mono); color: var(--dg-ink); background: var(--dg-sky); border-radius: 999px; padding: 1px 7px; }
  .dg-fold > summary b:empty { display: none; }
  .dg-fold .dg-bar { margin: 0 0 12px; }

  .dg-shead { flex-wrap: wrap; }
  .dg-obar { width: 100%; }
  .dg-ogrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .dg-orig { padding: 10px 2px 8px; }
  .dg-oico { width: 38px; height: 38px; font-size: 18px; }
  .dg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
  .dg-tile:nth-child(n+13) { display: none; }
  .dg-tprov { display: none; }

  .dg-info { padding: 2px 14px; }
  .dg-info > summary { position: relative; justify-content: center; min-height: 48px; padding-right: 26px; cursor: pointer; }
  .dg-info > summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--dg-t3); }
  .dg-info[open] > summary::after { content: "−"; }
  .dg-info .dg-kick { display: none; }
  .dg-info summary b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .dg-orig, .dg-tthumb img { transition: none; } }

/* game page: provider description above the demo */
.dg-lead { max-width: 80ch; margin: -4px 0 16px; }
.dg-lead p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.7; color: var(--dg-t2); }
.dg-lead details > summary { display: inline-block; list-style: none; cursor: pointer; font-size: 13px; color: var(--dg-sky); }
.dg-lead details > summary::-webkit-details-marker { display: none; }
.dg-lead details > summary:hover { text-decoration: underline; }
.dg-lead details[open] > summary { display: none; }

/* game page: search box above the breadcrumbs */
.dg-gsearch { margin-bottom: 18px; }
.dg-gsearch .dg-sbox input { padding: 11px 0; font-size: 15px; }
