/* apedle1 (06-11-2026): ApeDle, bascdao.com/apedle (templates/apedle.html, js/apedle.js). The look of the approved mockup
   «Daily Ape»: the vault (the frosted ape the server sends) with the clock, the board of six boxes per try, the trait
   picker, the result with its X grid, and the side cards. Everything is prefixed ad- so nothing touches the rest. */
.ad { --ad-hit: #22c55e; --ad-hit-2: #16a34a; --ad-near: #eab308; --ad-near-2: #ca8a04; --ad-miss: #2a2140; --ad-miss-2: #3a3056;
    --ad-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; padding: 40px 0 24px; }
.ad [hidden] { display: none !important; }
.ad button { font: inherit; color: inherit; }
.ad :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* the header: number, the next ape, today's players */
.ad-headline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ad-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
    color: #d7deea; background: rgba(7, 2, 15, 0.55); border: 1px solid var(--line-strong); }
.ad-pill b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-pill small { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ad-pill--clock b { font-family: var(--ad-mono); color: var(--cyan); }

.ad-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .ad-grid { grid-template-columns: minmax(0, 1fr); } }

/* the game card */
.ad-game { position: relative; border-radius: 26px; padding: 24px; border: 1px solid rgba(0, 221, 235, 0.18);
    background: radial-gradient(500px 300px at 0% 0%, rgba(0, 221, 235, 0.10), transparent 70%), linear-gradient(160deg, #170a30, #0b0520 75%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.ad-game-top { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 640px) {
    .ad-game { padding: 14px; border-radius: 20px; }
    .ad-game-top { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; }
    .ad-status { width: 100%; }
}

.ad-vault { position: relative; width: 260px; max-width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; isolation: isolate;
    border: 1px solid var(--line-strong); box-shadow: 0 0 0 6px rgba(0, 221, 235, 0.06), 0 18px 40px rgba(0, 0, 0, 0.45); background: #1a0d33; }
.ad-vault img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ad-glass-in 0.8s ease; }
.ad-vault img.is-new { animation: ad-glass-in 0.8s ease; }
@keyframes ad-glass-in { from { opacity: 0.25; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.ad-vault::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px); mix-blend-mode: overlay; opacity: var(--scan, 1); transition: opacity 0.9s; }
.ad-vault-tag { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
    background: rgba(7, 2, 15, 0.72); border: 1px solid var(--line-strong); }
.ad-vault-q { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-size: 4.2rem; font-weight: 900; color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); transition: opacity 0.6s; pointer-events: none; }
.ad-vault.is-clear .ad-vault-q { opacity: 0; }
.ad-cover { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 18px;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px), linear-gradient(160deg, #24124a, #0e0624); }
.ad-lock { font-size: 2.4rem; line-height: 1; }
.ad-cover b { font-size: 1.05rem; }
.ad-cover span { color: var(--muted); font-size: 0.85rem; max-width: 22ch; }
.ad-login { margin-top: 6px; padding: 10px 16px; font-size: 0.9rem; }

.ad-timer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 12px; margin-bottom: 12px;
    font-family: var(--ad-mono); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums;
    background: rgba(0, 221, 235, 0.08); border: 1px solid rgba(0, 221, 235, 0.35); color: var(--cyan); }
.ad-timer.is-idle { color: var(--muted); border-color: var(--line-strong); background: var(--panel); }
.ad-timer.is-warn { color: var(--orange); border-color: rgba(249, 115, 22, 0.55); background: rgba(249, 115, 22, 0.10); }
.ad-timer.is-crit { color: #f87171; border-color: rgba(248, 113, 113, 0.6); background: rgba(248, 113, 113, 0.12); animation: ad-pulse 1s infinite; }
.ad-timer small { font-family: var(--font); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
@keyframes ad-pulse { 50% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.12); } }

.ad-status h2 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 900; }
.ad-status p { margin: 0 0 12px; color: var(--muted); }
.ad-meter { display: flex; gap: 6px; margin: 4px 0 14px; }
.ad-meter span { flex: 1; height: 8px; border-radius: 99px; background: var(--ad-miss-2); }
.ad-meter span.is-used { background: linear-gradient(90deg, var(--orange), var(--gold)); }
.ad-meter span.is-win { background: linear-gradient(90deg, var(--ad-hit), #4ade80); }
.ad-found { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
    background: var(--panel-strong); border: 1px solid var(--line); color: var(--muted); }
.ad-chip.is-on { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.5); color: #bbf7d0; }

/* the board: one row per try */
.ad-board { margin-top: 22px; display: grid; gap: 8px; }
.ad-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ad-tile { position: relative; min-height: 64px; border-radius: 14px; padding: 8px 9px 7px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); text-align: left; overflow: hidden; }
.ad-tile .ad-lab { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ad-tile .ad-val { font-size: 0.9rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.ad-row.is-cur .ad-tile { cursor: pointer; border-style: dashed; border-color: rgba(0, 221, 235, 0.35); background: rgba(0, 221, 235, 0.04); transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.ad-row.is-cur .ad-tile:hover { transform: translateY(-2px); background: rgba(0, 221, 235, 0.09); border-color: rgba(0, 221, 235, 0.6); }
.ad-row.is-cur .ad-tile.is-filled { border-style: solid; border-color: rgba(0, 221, 235, 0.6); }
.ad-row.is-cur .ad-tile.is-locked { cursor: default; border-style: solid; background: linear-gradient(160deg, var(--ad-hit), var(--ad-hit-2)); border-color: transparent; transform: none; }
.ad-row.is-cur .ad-tile.is-locked .ad-lab { color: rgba(255, 255, 255, 0.82); }
.ad-row.is-cur .ad-tile.is-sel { box-shadow: 0 0 0 2px var(--cyan); }
.ad-tile.is-ph .ad-val { color: rgba(255, 255, 255, 0.32); }
.ad-tile.is-hit { background: linear-gradient(160deg, var(--ad-hit), var(--ad-hit-2)); border-color: transparent; }
.ad-tile.is-hit .ad-lab { color: rgba(255, 255, 255, 0.82); }
.ad-tile.is-near { background: linear-gradient(160deg, var(--ad-near), var(--ad-near-2)); border-color: transparent; color: #1c1402; }
.ad-tile.is-near .ad-lab { color: rgba(0, 0, 0, 0.6); }
.ad-tile.is-miss { background: var(--ad-miss); border-color: var(--ad-miss-2); }
.ad-tile.is-miss .ad-val { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.35); }
.ad-tile.is-flip { animation: ad-flip 0.55s ease both; }
@keyframes ad-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.ad-row.is-shake { animation: ad-shake 0.4s; }
@keyframes ad-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 640px) {
    .ad-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .ad-board { gap: 12px; }
    .ad-row:not(.is-cur):not(.is-done) { display: none; }
    .ad-tile { min-height: 58px; }
}

.ad-actions { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ad-actions--c { justify-content: center; }
.ad-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 22px;
    font-weight: 900; cursor: pointer; letter-spacing: 0.01em; transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; }
.ad-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.ad-btn--go { color: #04141a; background: linear-gradient(135deg, #5ff3fb, var(--cyan)); box-shadow: 0 10px 26px -10px rgba(0, 221, 235, 0.8); }
.ad .ad-btn--go { color: #04141a; }
.ad-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.ad-btn.is-busy { opacity: 0.6; cursor: progress; }
.ad-btn--ghost { background: var(--panel-strong); border: 1px solid var(--line-strong); }
.ad-btn--x { color: #fff; background: #000; border: 1px solid var(--line-strong); }
.ad-hint { color: var(--muted); font-size: 0.85rem; }
.ad-hint.is-error { color: #fca5a5; }

/* the trait picker */
.ad-picker { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; background: rgba(4, 1, 10, 0.7); backdrop-filter: blur(4px);
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ad-sheet { width: min(460px, 100%); max-height: min(640px, 86vh); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
    background: #140a28; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.ad-sheet-h { padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.ad-sheet-top { display: flex; align-items: center; gap: 12px; }
.ad-sheet-top b { font-size: 1.05rem; margin-right: auto; }
.ad-pk-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line-strong); flex: none; cursor: zoom-in;
    transition: transform 0.2s; transform-origin: left top; position: relative; z-index: 2; background: #1a0d33; }
.ad-pk-img:hover, .ad-pk-img:focus { transform: scale(3); }
.ad-pk-img:not([src]) { visibility: hidden; }
.ad-timer.ad-timer--sm { margin: 0; padding: 4px 10px; font-size: 1.05rem; border-radius: 10px; flex: none; }
.ad-sheet-s { display: block; margin-top: 6px; color: var(--muted); font-size: 0.8rem; }
.ad-sheet input { width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: #0c0619; color: var(--text); font: inherit; }
.ad-opts { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.ad-opt { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 90px 50px; gap: 10px; align-items: center; padding: 9px 10px; border: 0; border-radius: 10px;
    background: transparent; cursor: pointer; text-align: left; }
.ad-opt:hover, .ad-opt:focus-visible { background: var(--panel-strong); }
.ad-opt.is-cur { background: rgba(0, 221, 235, 0.10); }
.ad-opt-bar { height: 6px; border-radius: 9px; background: var(--ad-miss-2); overflow: hidden; }
.ad-opt-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.ad-opt-pct { font-family: var(--ad-mono); font-size: 0.75rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ad-opt:disabled { opacity: 0.32; text-decoration: line-through; cursor: not-allowed; }
.ad-opt:disabled:hover { background: transparent; }
.ad-opt.is-near .ad-opt-nm::after { content: ' · close'; color: var(--ad-near); font-size: 0.75rem; font-weight: 700; }
.ad-opts .ad-empty { padding: 10px; }
.ad-sheet-f { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
@media (max-width: 640px) {
    .ad-picker { place-items: end center; padding: 0; }
    .ad-sheet { width: 100%; border-radius: 22px 22px 0 0; max-height: 80vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* the side */
.ad-side { display: grid; gap: 16px; }
.ad-card { border-radius: 20px; padding: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22); }
.ad-card h3 { margin: 0 0 12px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ad-card .ad-h3-gap { margin-top: 18px; }
.ad-how ol { margin: 0; padding-left: 18px; display: grid; gap: 9px; color: var(--muted); font-size: 0.92rem; }
.ad-how b { color: var(--text); }
.ad-leg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }
.ad-leg--hit { background: var(--ad-hit); }
.ad-leg--near { background: var(--ad-near); }
.ad-leg--miss { background: var(--ad-miss-2); }
.ad-streak { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.ad-flame { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; line-height: 1;
    background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.4), rgba(249, 115, 22, 0.15)); border: 1px solid rgba(249, 115, 22, 0.4); }
.ad-streak-n { font-size: 1.9rem; font-weight: 900; line-height: 1; }
.ad-streak-s { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.ad-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ad-stat { text-align: center; padding: 8px 4px; border-radius: 12px; background: var(--panel-strong); }
.ad-stat b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ad-stat span { font-size: 0.75rem; color: var(--muted); }
.ad-dist { display: grid; gap: 5px; }
.ad-dist-r { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: center; font-family: var(--ad-mono); font-size: 0.78rem; }
.ad-dist-r span + span { display: block; height: 20px; border-radius: 6px; background: var(--ad-miss-2); padding: 0 8px; text-align: right; line-height: 20px; min-width: 28px; font-weight: 700; }
.ad-dist-r.is-me span + span { background: linear-gradient(90deg, var(--ad-hit-2), var(--ad-hit)); }
.ad-lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ad-lb li { display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 6px; border-radius: 12px; transition: background 0.15s; }
.ad-lb li:hover { background: rgba(255, 255, 255, 0.04); }
.ad-lb li.is-me { background: rgba(0, 221, 235, 0.09); box-shadow: inset 0 0 0 1px rgba(0, 221, 235, 0.3); }
.ad-lb-p { font-weight: 900; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.ad-lb li:nth-child(1) .ad-lb-p { color: #fcd34d; }
.ad-lb li:nth-child(2) .ad-lb-p { color: #e2e8f0; }
.ad-lb li:nth-child(3) .ad-lb-p { color: #fdba74; }
.ad-lb img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #1a0d33; border: 1px solid var(--line-strong); }
.ad-lb-nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
a.ad-lb-nm:hover { color: var(--cyan); }
.ad-lb-sc { font-family: var(--ad-mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.ad-lb-sc b { color: var(--cyan); }
.ad-empty, .ad-note { margin: 10px 0 0; color: var(--muted); font-size: 0.85rem; }
.ad-empty { color: var(--text); }

/* the result */
.ad-result { position: fixed; inset: 0; z-index: 1210; display: grid; place-items: center; background: rgba(4, 1, 10, 0.78); backdrop-filter: blur(6px);
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ad-res { width: min(520px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 26px; padding: 24px; text-align: center;
    background: radial-gradient(400px 220px at 50% 0%, rgba(34, 197, 94, 0.18), transparent 70%), #130927; border: 1px solid var(--line-strong); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.ad-res.is-lost { background: radial-gradient(400px 220px at 50% 0%, rgba(249, 115, 22, 0.18), transparent 70%), #130927; }
.ad-res-ape { width: 160px; height: 160px; margin: 0 auto 14px; border-radius: 20px; overflow: hidden; background: #1a0d33; border: 2px solid rgba(255, 255, 255, 0.25); }
.ad-res-ape img { width: 100%; height: 100%; object-fit: cover; }
.ad-res h2 { margin: 0; font-size: 1.6rem; font-weight: 900; }
.ad-res-sub { color: var(--muted); margin: 6px 0 12px; }
.ad-res-traits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.ad-res-xp { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px; font-weight: 900; color: #04141a;
    background: linear-gradient(90deg, #5ff3fb, var(--cyan)); margin-bottom: 14px; }
.ad-res-xp.is-soft { color: var(--text); background: var(--panel-strong); border: 1px solid var(--line-strong); font-weight: 700; }
.ad-share { text-align: left; font-family: var(--ad-mono); font-size: 0.85rem; line-height: 1.45; white-space: pre-wrap; padding: 14px; border-radius: 14px;
    background: #0b0518; border: 1px solid var(--line); margin: 0 0 14px; overflow-wrap: anywhere; }
.ad-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1220; }
@media (prefers-reduced-motion: reduce) {
    .ad-tile.is-flip, .ad-row.is-shake, .ad-vault img, .ad-timer.is-crit { animation: none; }
    .ad-pk-img:hover, .ad-pk-img:focus { transform: none; }
}

/* apedlefame1 (Mortimer 06-11-2026): «ApeDle legends», the all-time top 10 between the header and the game. Wider than the
   content (1160) and narrower than the header: halfway between both on big screens (50vw + 560px), the header's own
   margins below 1200. Ten cards in one line; on phones they slide sideways. */
.ad-fame { width: min(calc(100% - 40px), calc(50vw + 560px)); margin: 22px auto 0; }
.ad-fame-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 0 4px 12px; }
.ad-fame-h h2 { margin: 0; font-size: 1.15rem; font-weight: 900; letter-spacing: 0.01em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ad-fame-h h2 small { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ad-fame-cup { font-style: normal; display: inline-block; }
.ad-fame-rule { font-size: 0.8rem; font-weight: 700; color: #d7deea; padding: 5px 12px; border-radius: 999px; background: rgba(7, 2, 15, 0.55);
    border: 1px solid var(--line-strong); cursor: help; font-variant-numeric: tabular-nums; }
.ad-fame-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.ad-fc { --fc: rgba(255, 255, 255, 0.10); --fc-glow: transparent; min-width: 0; }
.ad-fc.is-p1 { --fc: rgba(252, 211, 77, 0.55); --fc-glow: rgba(252, 211, 77, 0.22); }
.ad-fc.is-p2 { --fc: rgba(226, 232, 240, 0.45); --fc-glow: rgba(226, 232, 240, 0.14); }
.ad-fc.is-p3 { --fc: rgba(253, 186, 116, 0.5); --fc-glow: rgba(253, 186, 116, 0.16); }
.ad-fc-in { position: relative; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    padding: 14px 8px 12px; border-radius: 18px; color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate;
    background: radial-gradient(120% 70% at 50% 0%, var(--fc-glow), transparent 70%), linear-gradient(165deg, #1a0d36, #0c0622 80%);
    border: 1px solid var(--fc); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; }
a.ad-fc-in:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--fc), 0 0 26px var(--fc-glow); }
.ad-fc.is-me .ad-fc-in { border-color: rgba(0, 221, 235, 0.6); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 221, 235, 0.35), 0 0 22px rgba(0, 221, 235, 0.18); }
.ad-fc-p { position: absolute; left: 8px; top: 8px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.74rem; font-weight: 900; line-height: 1;
    font-variant-numeric: tabular-nums; color: var(--muted); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); }
.ad-fc.is-p1 .ad-fc-p { color: #1a1200; background: linear-gradient(160deg, #fde68a, #f59e0b); border-color: transparent; }
.ad-fc.is-p2 .ad-fc-p { color: #111827; background: linear-gradient(160deg, #f8fafc, #94a3b8); border-color: transparent; }
.ad-fc.is-p3 .ad-fc-p { color: #2a1203; background: linear-gradient(160deg, #fed7aa, #c2410c); border-color: transparent; }
.ad-fc-ava { width: 56px; height: 56px; border-radius: 50%; margin: 4px 0 4px; flex: none; display: grid; place-items: center; overflow: hidden;
    background: #1a0d33; box-shadow: 0 0 0 2px var(--fc), 0 0 18px var(--fc-glow); }
.ad-fc-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-fc-nm { max-width: 100%; font-size: 0.86rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ad-fc-in:hover .ad-fc-nm { color: var(--cyan); }
.ad-fc-pts { font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.ad-fc-pts b { font-size: 1.15rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.ad-fc.is-p1 .ad-fc-pts b { color: #fcd34d; }
.ad-fc-sub { font-size: 0.72rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ad-fc-fl { font-style: normal; display: inline-block; margin-right: 1px; }
.ad-fc.is-free .ad-fc-in { background: rgba(255, 255, 255, 0.015); border: 1px dashed rgba(255, 255, 255, 0.14); box-shadow: none; }
.ad-fc.is-free .ad-fc-ava { box-shadow: none; border: 1px dashed rgba(255, 255, 255, 0.18); background: transparent; color: var(--muted); font-weight: 900; font-size: 1.3rem; }
.ad-fc.is-free .ad-fc-nm { color: var(--muted); font-weight: 700; }
.ad-fc.is-free .ad-fc-p { opacity: 0.7; }
.ad-fame + .wrap .ad, .ad-fame ~ .wrap .ad { padding-top: 26px; }
@media (max-width: 1100px) {
    .ad-fame-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 128px; overflow-x: auto; scroll-snap-type: x mandatory;
        padding: 2px 2px 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
    .ad-fc { scroll-snap-align: start; }
}
@media (max-width: 600px) {
    .ad-fame { width: calc(100% - 32px); margin-top: 18px; }
    .ad-fame-row { grid-auto-columns: 118px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ad-fc-in, a.ad-fc-in:hover { transition: none; transform: none; } }

/* apedle2 (Mortimer 06-11-2026): up to 3 apes a day, the best game counts. The three games above the clock. */
.ad-games { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ad-gm { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
    color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }
.ad-gm i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 900;
    line-height: 1; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.ad-gm.is-cur { color: #fff; border-color: rgba(0, 221, 235, 0.55); background: rgba(0, 221, 235, 0.08); }
.ad-gm.is-cur i { background: var(--cyan); color: #04141a; }
.ad-gm.is-won { color: #bbf7d0; border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.08); }
.ad-gm.is-won i { background: var(--ad-hit); color: #04140a; }
/* apedle2b (Mortimer 06-11: «no me marca el Ape 1 como hecho», «ponle colorcito rojizo»): played, not solved */
.ad-gm.is-lost { color: #fecaca; border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.1); }
.ad-gm.is-lost i { background: #ef4444; color: #fff; }
.ad-res-more { margin-top: 10px; }
