/* Approved v13 native cursor charms. Pointer rendering remains browser-native.
   Touch, coarse pointers and forced colors retain their existing controls. */
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
  :root {
    --ola-cursor-explorer: url("cursor-charms-v13/hq.png") 3 3, auto;
    --ola-cursor-clickable: url("cursor-charms-v13/hq-active.png") 3 3, pointer;
    --ola-cursor-seeker: url("cursor-charms-v13/key.png") 3 3, pointer;
  }
  :root[data-ola-cursor-family="heart"] {
    --ola-cursor-explorer: url("cursor-charms-v13/heart.png") 3 5, auto;
    --ola-cursor-clickable: url("cursor-charms-v13/heart-active.png") 3 5, pointer;
    --ola-cursor-seeker: url("cursor-charms-v13/heart-key.png") 3 5, pointer;
  }
  :root[data-ola-cursor-family="polaroid"] {
    --ola-cursor-explorer: url("cursor-charms-v13/polaroid.png") 3 3, auto;
    --ola-cursor-clickable: url("cursor-charms-v13/polaroid-active.png") 3 3, pointer;
  }
  :root[data-ola-cursor-family="cinema"] {
    --ola-cursor-explorer: url("cursor-charms-v13/cinema.png") 5 3, auto;
    --ola-cursor-clickable: url("cursor-charms-v13/cinema-active.png") 5 3, pointer;
    --ola-cursor-seeker: url("cursor-charms-v13/cinema-key.png") 5 3, pointer;
  }
  :root[data-ola-cursor-family="music"] {
    --ola-cursor-explorer: url("cursor-charms-v13/note.png") 14 3, auto;
    --ola-cursor-clickable: url("cursor-charms-v13/note-active.png") 14 3, pointer;
    --ola-cursor-seeker: url("cursor-charms-v13/note-key.png") 14 3, pointer;
  }
  :root[data-ola-cursor-family="football"] {
    --ola-cursor-explorer: url("cursor-charms-v13/trophy.png") 6 4, auto;
    --ola-cursor-clickable: url("cursor-charms-v13/trophy-active.png") 6 4, pointer;
    --ola-cursor-seeker: url("cursor-charms-v13/trophy-key.png") 6 4, pointer;
  }
  :root[data-ola-cursor-family="calm"] {
    --ola-cursor-explorer: url("cursor-charms-v13/wave.png") 3 3, auto;
    --ola-cursor-clickable: url("cursor-charms-v13/wave-active.png") 3 3, pointer;
  }
  :where(html) { cursor: var(--ola-cursor-explorer); }
  :where(a[href], area[href], button, summary, label[for], [role="button"],
    [role="link"], [role="tab"], [role="menuitem"]):not(:where(.has-3d-globe,
    .portal-globe-door, .cabin-view, .stage-cards[data-deck-ready],
    .stage-cards[data-deck-ready] *, [style*="cursor:"],
    [draggable="true"], [draggable="true"] *, :disabled, :disabled *,
    [aria-disabled="true"], [aria-disabled="true"] *, [inert], [inert] *)):is(:hover, :active) {
    cursor: var(--ola-cursor-clickable) !important;
  }
  /* Home deck links use the Cinema charm; a held deck retains native grabbing.
     Direct-child links inherit that stage cue without overriding image/text cursors. */
  :root[data-ola-cursor-family="cinema"] :where(.stage-cards[data-deck-ready]:not(:active) > a[href]):not(:where(
    [style*="cursor:"], [style*="cursor:"] *, [draggable="true"], [draggable="true"] *,
    [contenteditable], [contenteditable] *, :disabled, :disabled *,
    [aria-disabled="true"], [aria-disabled="true"] *, [inert], [inert] *)):hover {
    cursor: var(--ola-cursor-clickable) !important;
  }
  :root[data-ola-cursor-family="cinema"] :where(.stage-cards[data-deck-ready]:active > a[href]):not(:where(
    [style*="cursor:"], [style*="cursor:"] *, [draggable="true"], [draggable="true"] *,
    [contenteditable], [contenteditable] *, :disabled, :disabled *,
    [aria-disabled="true"], [aria-disabled="true"] *, [inert], [inert] *)) {
    cursor: inherit !important;
  }
  /* Missing photographs have no data-photo action; their shared .photo styling
     must not advertise a clickable hand. They stay noninteractive Explorer tiles. */
  :root[data-ola-cursor-family="polaroid"] :where(div.photo:not([data-photo])):not(:where(
    [style*="cursor:"], [style*="cursor:"] *, [draggable="true"], [draggable="true"] *,
    [contenteditable], [contenteditable] *, [aria-disabled="true"], [aria-disabled="true"] *,
    [inert], [inert] *)) {
    cursor: var(--ola-cursor-explorer);
  }
  /* Existing real cabin discoveries are native buttons with keyboard/touch actions. */
  :where(button.scene-region[data-secret="chair"], button.scene-region[data-secret="bar"],
    button.scene-region[data-secret="window"]):not(:where(:disabled, :disabled *,
    [aria-disabled="true"], [aria-disabled="true"] *, [inert], [inert] *)):is(:hover, :active) {
    cursor: var(--ola-cursor-seeker) !important;
  }
  /* Native controls and their descendants never inherit a charm from a parent. */
  :root :is(input, textarea, select, audio, video, iframe, object, embed),
  :root :is(input, textarea, select, audio, video, iframe, object, embed) * {
    cursor: auto !important;
  }
  :is([contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]),
  :is([contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]) * {
    cursor: text !important;
  }
  /* Exclude disabled targets from charms; let authored not-allowed cues win. */
  :where(:disabled, [aria-disabled="true"], [inert]) { cursor: auto; }
  :where(:disabled, [aria-disabled="true"], [inert]) * { cursor: inherit; }
  /* Zero specificity preserves authored grab/grabbing/resize feedback. */
  :where([draggable="true"]) { cursor: auto; }
  :where([draggable="true"] *) { cursor: inherit; }
}
