/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 * Copyright © 2026 Marcel Rymenhout and IniqDash contributors */
.iq-spot { container: iq-spot / size; position: relative; isolation: isolate; height: 100%; min-height: 0; padding: 22px 24px; box-sizing: border-box; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; color: var(--text-primary); border-radius: var(--radius-device, 22px); outline: none; }
.iq-spot:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.iq-spot__pic { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .9; }
.iq-spot[data-pic="false"] .iq-spot__pic { background: radial-gradient(70% 60% at 55% 30%, color-mix(in srgb, var(--text-primary) 7%, transparent), transparent 70%); }
.iq-spot__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 11, 15, .25) 0%, rgba(10, 11, 15, .05) 35%, rgba(10, 11, 15, .78) 78%, rgba(10, 11, 15, .92) 100%); }
.iq-spot__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.iq-spot__count { padding: 7px 12px; border-radius: 999px; background: rgba(20, 22, 28, .72); font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.iq-spot__count b { color: var(--text-primary); font-weight: 700; }
.iq-spot__nav { display: flex; gap: 8px; align-items: center; }
.iq-spot__btn, .iq-spot__chipbtn { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: rgba(20, 22, 28, .72); color: var(--text-primary); border: 1px solid rgba(255, 255, 255, .06); }
.iq-spot__btn:hover, .iq-spot__chipbtn:hover { background: rgba(60, 63, 74, .8); }
.iq-spot__btn:focus-visible, .iq-spot__chipbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.iq-spot__btn svg { width: 18px; height: 18px; }
.iq-spot__chipbtn { width: auto; padding: 0 14px; display: inline-flex; gap: 6px; border-radius: 999px; font-size: 12.5px; }
.iq-spot__chipic svg { width: 15px; height: 15px; }
.iq-spot__body { align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.iq-spot__ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; color: #1b1c22;
  background: radial-gradient(circle at 35% 30%, #f4f5f8, #b9bcc6); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 10px 26px rgba(0, 0, 0, .45); }
.iq-spot__ic svg { width: 28px; height: 28px; }
.iq-spot__cat { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--text-secondary); }
.iq-spot__tag { padding: 2px 8px; border-radius: 999px; background: var(--warning, #fc8427); color: #20140a; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.iq-spot__title { margin: 0; font-size: clamp(22px, 9cqi, 34px); line-height: 1.1; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iq-spot__when { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.iq-spot__when svg { width: 16px; height: 16px; }
.iq-spot__note { margin: 0; font-size: 12.5px; color: var(--text-secondary); }
.iq-spot__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.iq-spot__dots { display: flex; gap: 6px; }
.iq-spot__dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .25); transition: width .2s; }
.iq-spot__dots span.is-on { width: 20px; background: var(--warning, #fc8427); }
.iq-spot__exp { width: 30px; height: 30px; background: transparent; border: 0; color: var(--text-muted); }
.iq-spot__exp svg { width: 16px; height: 16px; }
@container iq-spot (max-height: 300px) { .iq-spot__ic { width: 44px; height: 44px; margin-bottom: 6px; } .iq-spot__ic svg { width: 20px; height: 20px; } .iq-spot__note { display: none; } }
@media (prefers-reduced-motion: reduce) { .iq-spot__dots span { transition: none; } }

.iq-spot__chipbtn[hidden], .iq-spot [hidden] { display: none; }
