/* iKaru's page (/ikaru/): the chapters "The games" and "The ideas" (scripts/ikaru-play.js, assets/js/ikaru-games.js,
   assets/js/ikaru-stars.js). The games: a half circle of brass wheels over half of the ring of molten metal, and the
   stage their mini games open on, laid over the page (a dialog). The ideas: the object's constellation, nine double
   stars turned by the ring. The page's tokens (--ik-*) and its buttons (.ikr-btn) come from ikaru.css.
   Without scripts the wheels are a plain list and the first sky is a still chart with its nine answers under it. */

/* The games: the wheels ------------------------------------------------------------------------------------------ */
.ikr-gamessec .ikr-sheet-in { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.ikp-lead { margin: 0 auto 0.4rem !important; max-width: 46ch !important; text-align: center; font-style: italic; }
html:not(.ikr-js) .ikp-lead-js, html:not(.ikr-js) .iks-lead-js { display: none; }
.ikp-arc { list-style: none; margin: 1.2rem auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.8rem 1.4rem; max-width: 60rem; }
.ikp-way { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 0.8rem; align-items: center; width: 100%; padding: 0; border: 0; background: none; color: var(--ik-ink); font: inherit; text-align: left; cursor: var(--hand, pointer); }
.ikp-way .ikr-wheel { grid-row: 1 / span 2; filter: drop-shadow(0 0.25rem 0.3rem rgb(30 18 6 / 0.45)); }
.ikp-way b { font-weight: 600; font-variant: small-caps; letter-spacing: 0.04em; line-height: 1.1; align-self: end; }
.ikp-way i { font-size: 0.9rem; line-height: 1.25; color: var(--ik-ink-2); align-self: start; }
.ikp-arc.set { position: relative; display: block; height: 15.5rem; max-width: 42rem; margin: 1rem auto 0; --arx: 15rem; --ary: 8.6rem; }
.ikp-arc.set::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 76px; height: 38px; margin-left: -38px; border-radius: 38px 38px 0 0; border: 3px solid #FFC56A; border-bottom: 0; box-shadow: 0 0 10px 2px rgb(255 150 40 / 0.75), inset 0 0 8px 1px rgb(255 190 90 / 0.8), 0 0 26px 6px rgb(255 120 20 / 0.28); pointer-events: none; }
.ikp-arc.set::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 22px; margin-left: -22px; border-radius: 22px 22px 0 0; background: radial-gradient(circle at 50% 100%, #F6DC8E 0 22%, #9C7A2E 24% 34%, #D9B45A 36% 62%, #7A5A1C 64% 70%, transparent 72%); pointer-events: none; }
.ikp-arc.set li { display: contents; }
.ikp-arc.set .ikp-way { position: absolute; left: 50%; bottom: 0.5rem; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 0.2rem; width: 6.4rem; margin-left: -3.2rem; text-align: center; transform: scale(0.3); opacity: 0; transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) var(--delay, 0ms), opacity 0.3s ease var(--delay, 0ms); }
.ikp-arc.set.out .ikp-way { transform: translate(calc(var(--ax) * var(--arx)), calc(var(--ay) * var(--ary))); opacity: 1; }
.ikp-arc.set .ikp-way .ikr-wheel { grid-row: auto; width: 4.4rem; transition: transform 0.25s ease; }
.ikp-arc.set .ikp-way i { display: none; }
.ikp-arc.set .ikp-way b { font-size: 0.92rem; }
.ikp-way:hover .ikr-wheel-gear, .ikp-way:focus-visible .ikr-wheel-gear { animation: ikr-turn 6s linear infinite; }
.ikp-arc.set .ikp-way:hover .ikr-wheel, .ikp-arc.set .ikp-way:focus-visible .ikr-wheel { transform: scale(1.1); }
.ikp-arc.set .ikp-way:active .ikr-wheel { transform: scale(0.96); }

/* The stage laid over the page ----------------------------------------------------------------------------------- */
html.ikp-open { overflow: hidden; scrollbar-gutter: stable; }
.ikp-stage { --tint: #7A1C19; width: min(62rem, 100vw - 2rem); max-width: none; height: fit-content; min-height: min(33rem, 94dvh); max-height: min(94dvh, 58rem); margin: auto; padding: 0; border: 1px solid var(--ik-hz-gilt-dark); border-radius: 14px; overflow: hidden; color: var(--ik-cream); font-family: var(--ik-serif);
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #1A2F66, #0B1838 62%, #070F26); box-shadow: 0 0 0 4px #0B1838, 0 0 0 5px var(--ik-hz-gilt-dark), 0 2rem 5rem -1rem rgb(0 0 0 / 0.8); }
.ikp-stage[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: ikp-rise 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.ikp-stage::backdrop { background: rgb(5 9 24 / 0.78); backdrop-filter: blur(3px); }
@keyframes ikp-rise { from { opacity: 0; transform: translateY(1.2rem) scale(0.97); } }
.ikp-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0.7rem 0.6rem 0.9rem; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 30% 0%, color-mix(in srgb, var(--tint) 82%, #fff 0%), color-mix(in srgb, var(--tint) 60%, #000)); border-bottom: 1px solid var(--ik-hz-gilt-dark); box-shadow: inset 0 -3px 0 -2px var(--ik-hz-gilt); }
.ikp-bar-wheel { flex: none; width: 2.9rem; }
.ikp-bar-words { min-width: 0; }
.ikp-bar h3 { margin: 0; font: 700 clamp(1.2rem, 1rem + 1vw, 1.6rem)/1.05 var(--ik-display) !important; letter-spacing: 0.01em; color: #F6DC8E; }
.ikp-bar p { margin: 0.15rem 0 0; font-size: 0.88rem; line-height: 1.25; font-style: italic; color: rgb(246 235 207 / 0.9); }
.ikp-close { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; min-width: 2.75rem; padding: 0.2rem 0.9rem; border: 1px solid #7C5E1B; border-radius: 99px; background: linear-gradient(#F6DC8E, var(--ik-brass) 60%, #C79A3C); color: var(--ik-ink); font: 600 0.92rem/1 var(--ik-serif); cursor: var(--hand, pointer); }
.ikp-close svg { width: 1.1rem; height: 1.1rem; }
.ikp-close:hover { filter: brightness(1.08); }
.ikp-stage :focus-visible { outline: 2px solid #FFE9A8; outline-offset: 3px; border-radius: 4px; }
.ikp-body { overflow: auto; overscroll-behavior: contain; padding: clamp(0.8rem, 2.4vw, 1.6rem); }
.ikp-body p { margin: 0; max-width: none; }
.ikp-body h4, .ikp-body h5 { margin: 0; }
.ikp-badge { display: inline-block; width: 1.5rem; height: 1.5rem; vertical-align: -0.35rem; margin-right: 0.3rem; }
.ikp-body [aria-live] { min-height: 2.9em; padding: 0.5rem 0.8rem; border-left: 3px solid var(--ik-gilt); border-radius: 0 6px 6px 0; background: rgb(246 235 207 / 0.07); font-style: italic; line-height: 1.35; }
.ikp-body [aria-live]:empty { visibility: hidden; }
.ikp-body [aria-live].in { animation: ikp-say 0.35s ease-out; }
.ikp-body [aria-live][data-tone="good"] { border-color: #7FD3A7; background: rgb(127 211 167 / 0.1); }
.ikp-body [aria-live][data-tone="bad"] { border-color: #F08A7F; background: rgb(240 138 127 / 0.1); }
.ikp-body [aria-live][data-tone="ask"] { border-color: #F2C14E; background: rgb(242 193 78 / 0.12); }
@keyframes ikp-say { from { opacity: 0; transform: translateX(-0.4rem); } }
.ikp-stage .ikr-btn:disabled { opacity: 0.55; cursor: default; filter: none; transform: none; }
.ikp-stage .ikr-btn.right { background: linear-gradient(#9CD3B6, #3E8A6A); color: #08180F; opacity: 1; }
.ikp-stage .ikr-btn.wrong { background: radial-gradient(ellipse at 40% 30%, var(--ik-cloth), var(--ik-cloth-dark)); color: var(--ik-hz-gilt); opacity: 1; }
.ikp-end { margin-top: 1.1rem; padding: 1rem 1.2rem 1.1rem; border-radius: 8px; color: var(--ik-ink); background: var(--ik-fibre), linear-gradient(#FBF3DC, #EFE3C8); border: 1px solid #7C5E1B; box-shadow: inset 0 0 0 3px #FBF3DC, inset 0 0 0 4px rgb(124 94 27 / 0.6); animation: ikp-rise 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.ikp-end:focus { outline: none; }
.ikp-end-head { font: 700 1.3rem/1.15 var(--ik-display); color: var(--ik-sanguine); }
.ikp-end-extra { margin-top: 0.5rem !important; font-size: 0.95rem; line-height: 1.35; }
.ikp-end-app { margin-top: 0.6rem !important; font-size: 0.98rem; line-height: 1.4; }
.ikp-end-app b { font-variant: small-caps; letter-spacing: 0.06em; color: var(--ik-sanguine); }
.ikp-end-go { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem !important; }
.ikp-end .ikr-btn.ikp-back { background: radial-gradient(ellipse at 40% 30%, var(--ik-cloth), var(--ik-cloth-dark)); color: var(--ik-hz-gilt); border-color: var(--ik-hz-gilt-dark); }
.ikp-end :focus-visible { outline-color: var(--ik-sanguine); }
@keyframes ikp-no { 20% { transform: translateX(-5px) rotate(-1.5deg); } 45% { transform: translateX(5px) rotate(1.5deg); } 70% { transform: translateX(-3px); } }

/* Tending */
.ikc { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(0.8rem, 2.5vw, 1.8rem); align-items: start; }
.ikc-left { display: grid; gap: 0.5rem; }
.ikc-tab { display: flex; align-items: center; gap: 0.2rem; font-size: 0.85rem; line-height: 1.15; }
.ikc-tab .ikp-badge { width: 2.2rem; height: 2.2rem; }
.ikc-tab span { display: grid; }
.ikc-tab i { font-size: 0.8rem; color: rgb(246 235 207 / 0.7); }
.ikc-tab b { font-variant: small-caps; letter-spacing: 0.05em; color: #F6DC8E; }
.ikc-screen { position: relative; aspect-ratio: 160 / 170; overflow: hidden; border-radius: 10px; border: 3px solid #C9A24A; box-shadow: 0 0 0 2px #5a3f10, 0 0.8rem 1.6rem -0.6rem #000; background: #1b2a4a; image-rendering: pixelated; transition: box-shadow 0.3s; }
.ikc-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.ikc-obj { position: absolute; height: auto; transition: filter 0.4s; }
.ikc-face { position: absolute; aspect-ratio: 28 / 18; background-size: 800% 600%; background-repeat: no-repeat; }
.ikc-screen.passing .ikc-layer, .ikc-screen.passing .ikc-obj { animation: ikc-days 2.2s linear; }
@keyframes ikc-days { 0%, 100% { filter: none; } 16% { filter: brightness(0.35) saturate(0.7) hue-rotate(20deg); } 33% { filter: none; } 50% { filter: brightness(0.35) saturate(0.7) hue-rotate(20deg); } 66% { filter: none; } 83% { filter: brightness(0.35) saturate(0.7) hue-rotate(20deg); } }
.ikc-screen.asking { box-shadow: 0 0 0 2px #5a3f10, 0 0 0 5px rgb(242 193 78 / 0.85), 0 0.8rem 1.6rem -0.6rem #000; }
.ikc-screen.asking .ikc-obj { filter: brightness(0.62) saturate(0.6); }
.ikc-right { display: grid; gap: 0.7rem; align-content: start; }
.ikc-name { font: 700 1.35rem/1.1 var(--ik-display) !important; color: #F6DC8E; }
.ikc-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 2.75rem; }
.ikc-care { display: grid; justify-items: center; gap: 0.2rem; width: 4.5rem; padding: 0.4rem 0.2rem 0.35rem; border: 1px solid #7C5E1B; border-radius: 10px; background: linear-gradient(#FBF3DC, #E6D5AE); color: var(--ik-ink); font: 600 0.78rem/1.1 var(--ik-serif); cursor: var(--hand, pointer); }
.ikc-care:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ikc-care.no { animation: ikp-no 0.4s; opacity: 0.45; }
.ikc-icon { width: 30px; height: 30px; background-size: 3100% 100%; background-repeat: no-repeat; image-rendering: pixelated; }
.ikc-book { padding: 0.7rem 0.9rem 0.8rem; border-radius: 6px; color: var(--ik-ink); background: var(--ik-fibre), linear-gradient(#FBF3DC, #EFE3C8); border: 1px solid #7C5E1B; }
.ikc-book h5, .ika-book h5 { font: 600 1rem/1.2 var(--ik-serif) !important; font-variant: small-caps !important; letter-spacing: 0.08em; color: var(--ik-sanguine); }
.ikc-notes { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.ikc-notes li { display: grid; gap: 0.1rem; padding-left: 0.7rem; border-left: 3px solid var(--ik-sanguine); line-height: 1.3; animation: ikp-rise 0.4s; }
.ikc-notes li.empty { border: 0; padding: 0; font-style: italic; color: var(--ik-ink-2); animation: none; }
.ikc-notes b { font-size: 1rem; }
.ikc-notes i { font-size: 0.9rem; color: var(--ik-sanguine); }
.ikc-notes span { font-size: 0.86rem; color: #4F3C29; }

/* Ariadne's Thread */
.ikt { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(0.8rem, 2.5vw, 1.8rem); align-items: start; }
.ikt-left { display: grid; gap: 0.6rem; justify-items: center; }
.ikt-lab { width: 100%; max-width: 17rem; height: auto; overflow: visible; }
.ikt-floor { fill: #EFE3C8; stroke: #7C5E1B; stroke-width: 1.5; }
.ikt-walls { fill: none; stroke: var(--ik-ink); stroke-width: 5; stroke-linecap: round; }
.ikt-heart { fill: #C9A24A; stroke: var(--ik-ink); stroke-width: 1.5; }
.ikt-lab.done .ikt-heart { fill: #B32B22; }
.ikt-thread { fill: none; stroke: #B32B22; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.3s cubic-bezier(0.4, 0.1, 0.3, 1); }
.ikt-thread.run { stroke-dashoffset: 0; opacity: 1; }
.ikt-thread.broken { animation: ikt-break 0.9s ease-out; }
@keyframes ikt-break { 0% { stroke-dashoffset: 1; opacity: 1; } 45% { stroke-dashoffset: 0.45; opacity: 1; } 55% { stroke-dashoffset: 0.45; opacity: 0.25; stroke-dasharray: 0.06 0.05; } 100% { stroke-dashoffset: 1; opacity: 0; } }
.ikt-depths { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.9rem; font-size: 0.86rem; line-height: 1.2; }
.ikt-depths li { display: flex; align-items: center; gap: 0.35rem; color: rgb(246 235 207 / 0.6); }
.ikt-depths i { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 1.5px solid #C9A24A; background: #1a2238; }
.ikt-depths .walked i { background: #C9A24A; }
.ikt-depths .now { color: #FFE9A8; font-weight: 600; }
.ikt-depths .now i { background: #FFD76A; box-shadow: 0 0 8px 2px rgb(255 190 80 / 0.8); }
.ikt-right { display: grid; gap: 0.6rem; align-content: start; }
.ikt-game { font-variant: small-caps; letter-spacing: 0.08em; color: #F6DC8E; }
.ikt-prompt { display: flex; align-items: center; gap: 0.8rem; font-size: 1.08rem; line-height: 1.3; }
.ikt-level { font-size: 0.86rem; font-style: italic; color: rgb(246 235 207 / 0.75); }
.ikt-card { display: grid; justify-items: center; gap: 0.25rem; flex: none; }
.ikt-card img, .ikt-blank { width: 4.6rem; height: 4.6rem; }
.ikt-blank { display: grid; place-items: center; border-radius: 50%; border: 2px solid #9C7A2E; background: radial-gradient(circle at 38% 30%, #FBF3DC, #D9C594); color: #7C5E1B; font: 700 2rem/1 var(--ik-display); }
.ikt-card b { font-size: 0.84rem; line-height: 1.12; text-align: center; max-width: 7.2rem; }
.ikt-prompt .ikt-card img, .ikt-prompt .ikt-blank { width: 5.2rem; height: 5.2rem; }
.ikt-prompt .ikt-card b { color: #F6DC8E; }
.ikt-cands { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ikt-cand { position: relative; padding: 0.6rem 0.5rem 0.5rem; min-width: 6.6rem; border: 1px solid #7C5E1B; border-radius: 10px; background: var(--ik-fibre), linear-gradient(#FBF3DC, #EADBB8); color: var(--ik-ink); font: inherit; cursor: var(--hand, pointer); box-shadow: 0 0.4rem 0.8rem -0.4rem #000; transition: transform 0.2s, filter 0.2s; }
.ikt-cand:hover:not(:disabled) { transform: translateY(-3px) rotate(-1deg); }
.ikt-cand.right { box-shadow: 0 0 0 3px #7FD3A7, 0 0.4rem 0.8rem -0.4rem #000; }
.ikt-cand.wrong { animation: ikp-no 0.4s; filter: grayscale(0.7) brightness(0.8); cursor: default; }
.ikt-cand:disabled:not(.right):not(.wrong) { opacity: 0.6; cursor: default; }
.ikt-why { display: block; margin-top: 0.2rem; font-size: 0.74rem; line-height: 1.1; color: var(--ik-cloth); max-width: 7.2rem; }

/* Be the part */
.ikb { display: grid; gap: 0.6rem; }
.ikb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; }
.ikb-head b { font: 700 1.3rem/1.1 var(--ik-display); color: #F6DC8E; }
.ikb-head i { font-size: 0.86rem; color: rgb(246 235 207 / 0.75); }
.ikb-rule { font-size: 0.98rem; line-height: 1.35; }
.ikb-box { position: relative; aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; border: 2px solid #C9A24A; box-shadow: 0 0 0 2px #5a3f10; background: radial-gradient(ellipse at 50% 20%, #24408A, #101D45 70%); }
.ikb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; cursor: var(--hand, pointer); }
.ikb-canvas:focus-visible { outline-offset: -4px; }
.ikb-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgb(11 24 56 / 0.6), 0 0.6rem 1.4rem #000; }
.ikb-start[hidden] { display: none; }
.ikb-start:hover { transform: translate(-50%, -50%) scale(1.04); }
.ikb-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.ikb-score { padding-top: 0.5rem; font-variant: small-caps; letter-spacing: 0.06em; color: #F6DC8E; white-space: nowrap; }

/* Part by part */
.ika-pick { margin-bottom: 0.8rem !important; font-style: italic; text-align: center; }
.ika-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 12rem)); justify-content: center; gap: clamp(0.5rem, 2vw, 1.2rem); }
.ika-card { display: grid; justify-items: center; align-content: start; gap: 0.3rem; padding: 0.6rem 0.4rem 0.7rem; border: 1px solid #7C5E1B; border-radius: 12px; background: var(--ik-fibre), linear-gradient(#FBF3DC, #EADBB8); color: var(--ik-ink); font: inherit; text-align: center; cursor: var(--hand, pointer); box-shadow: 0 0.6rem 1.2rem -0.5rem #000; transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1); }
.ika-card:nth-child(1) { transform: rotate(-2deg); } .ika-card:nth-child(3) { transform: rotate(2deg); }
.ika-card:hover, .ika-card:focus-visible { transform: translateY(-6px) rotate(0deg); }
.ika-back { display: block; width: 100%; aspect-ratio: 5 / 6; border-radius: 8px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--hue) 85%, #fff), color-mix(in srgb, var(--hue) 70%, #000)); border: 2px solid #C9A24A; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--hue) 60%, #000), inset 0 0 0 4px rgb(237 209 133 / 0.7); }
.ika-back svg { width: 100%; height: 100%; }
.ika-back ellipse { fill: none; stroke: rgb(246 220 142 / 0.75); stroke-width: 1.2; }
.ika-back circle { fill: rgb(246 220 142 / 0.85); }
.ika-card b { font-variant: small-caps; letter-spacing: 0.04em; line-height: 1.1; }
.ika-card i { font-size: 0.78rem; line-height: 1.15; color: var(--ik-ink-2); }
.ika-card em { font-size: 0.76rem; line-height: 1.15; color: var(--ik-sanguine); }
.ika-board { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(0.8rem, 2.5vw, 1.8rem); align-items: start; }
.ika-left { display: grid; gap: 0.5rem; justify-items: center; }
.ika-mood { text-align: center; line-height: 1.2; }
.ika-mood b { display: block; font: 700 1.25rem/1.1 var(--ik-display); color: #F6DC8E; }
.ika-mood i { font-size: 0.9rem; color: rgb(246 235 207 / 0.8); }
.ika-plan { width: 100%; max-width: 15rem; max-height: 17rem; padding: 0.6rem; border-radius: 10px; border: 1px solid rgb(201 162 74 / 0.6); background: repeating-linear-gradient(0deg, rgb(140 180 255 / 0.07) 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, rgb(140 180 255 / 0.07) 0 1px, transparent 1px 14px), #0E1F4D; overflow: visible; }
.ika-slot { fill: rgb(232 197 106 / 0.04); stroke: #E8C56A; stroke-width: 1; stroke-dasharray: 3 2.4; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.ika-slot.in { fill: rgb(232 197 106 / 0.36); stroke: #FFE9A8; stroke-dasharray: none; stroke-width: 1.4; animation: ika-seat 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes ika-seat { from { transform: scale(1.25); fill: #fff; } }
.ika-slot.wide.in { fill: rgb(232 197 106 / 0.08); }
.ika-plan.whole .ika-slot { stroke: #FFF6DC; filter: drop-shadow(0 0 2.5px rgb(255 200 90 / 0.95)); }
.ika-plan.whole { box-shadow: 0 0 0 2px rgb(255 226 150 / 0.7), 0 0 1.6rem rgb(255 190 80 / 0.35); }
.ika-count { font-size: 0.86rem; font-variant: small-caps; letter-spacing: 0.06em; color: #F6DC8E; }
.ika-right { display: grid; gap: 0.6rem; align-content: start; }
.ika-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.45rem; }
.ika-part { display: grid; gap: 0.1rem; padding: 0.45rem 0.7rem 0.5rem; border: 1px solid #7C5E1B; border-radius: 10px; background: linear-gradient(#F6DC8E, var(--ik-brass) 60%, #C79A3C); color: var(--ik-ink); font: inherit; text-align: left; line-height: 1.15; cursor: var(--hand, pointer); }
.ika-part:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ika-part.no { animation: ikp-no 0.4s; }
.ika-part b { font-size: 0.98rem; }
.ika-part i { font-size: 0.82rem; }
.ika-book { padding: 0.6rem 0.9rem 0.7rem; border-radius: 6px; color: var(--ik-ink); background: var(--ik-fibre), linear-gradient(#FBF3DC, #EFE3C8); border: 1px solid #7C5E1B; }
.ika-notes { margin: 0.3rem 0 0; padding-left: 1.2rem; list-style: decimal; font-size: 0.9rem; line-height: 1.3; }
.ika-notes li.empty { list-style: none; margin-left: -1.2rem; font-style: italic; color: var(--ik-ink-2); }
.ika-won { display: grid; justify-items: center; perspective: 40rem; }
.ika-face { display: grid; justify-items: center; gap: 0.25rem; width: 12rem; padding: 0.7rem 0.6rem 0.8rem; border-radius: 12px; border: 2px solid #C9A24A; color: var(--ik-ink); text-align: center; background: var(--ik-fibre), linear-gradient(#FBF3DC, #EADBB8); box-shadow: inset 0 0 0 3px #FBF3DC, inset 0 0 0 6px var(--hue), 0 0.8rem 1.6rem -0.5rem #000; animation: ika-flip 0.8s cubic-bezier(0.3, 1.2, 0.5, 1); }
@keyframes ika-flip { from { transform: rotateY(-180deg) scale(0.8); opacity: 0; } 50% { opacity: 1; } }
.ika-face img:not(.ikp-badge) { width: 7.5rem; height: 7.5rem; }
.ika-face b { font-variant: small-caps; letter-spacing: 0.05em; line-height: 1.1; }
.ika-face i { font-size: 0.8rem; line-height: 1.2; }
.ika-stars { font-size: 1.3rem; letter-spacing: 0.2em; color: #B8862B; }

/* Psyche's Grains */
.ikg { display: grid; gap: 0.6rem; max-width: 40rem; margin-inline: auto; }
.ikg-found { display: grid; gap: 0.45rem; }
.ikg-found:empty { display: none; }
.ikg-band { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.7rem; align-items: center; padding: 0.45rem 0.8rem 0.5rem; border-radius: 8px; color: var(--ik-ink); background: linear-gradient(90deg, color-mix(in srgb, var(--hue) 34%, #FBF3DC), #FBF3DC 70%); border-left: 0.45rem solid var(--hue); line-height: 1.25; animation: ikp-rise 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.ikg-band-pics { grid-row: 1 / span 3; display: grid; grid-template-columns: repeat(2, 2.3rem); gap: 0.15rem; }
.ikg-band-pics svg { width: 2.3rem; height: 2.3rem; }
.ikg-band b { font-size: 1.02rem; }
.ikg-band > span:not(.ikg-band-pics) { font-size: 0.86rem; }
.ikg-band i { font-size: 0.78rem; color: #4F3C29; }
.ikg-band .ikp-badge { width: 1.1rem; height: 1.1rem; vertical-align: -0.2rem; }
.ikg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.ikg-tile { display: grid; justify-items: center; align-content: start; gap: 0.1rem; width: 100%; height: 100%; padding: 0.3rem 0.2rem 0.35rem; border: 1.5px solid #CDB579; border-radius: 10px; background: linear-gradient(#FBF3DC, #EFE3C8); color: var(--ik-ink); font: 600 0.8rem/1.1 var(--ik-serif); cursor: var(--hand, pointer); transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.2s, box-shadow 0.2s; }
.ikg-tile svg { width: min(100%, 5.4rem); height: auto; aspect-ratio: 1; }
.ikg-tile span { min-height: 2.2em; display: grid; align-items: center; text-align: center; }
.ikg-tile:hover { transform: translateY(-2px); }
.ikg-tile[aria-pressed="true"] { background: linear-gradient(#DCE6FF, #A9BCF2); border-color: #FFE9A8; box-shadow: 0 0 0 2px #FFE9A8, 0 0.5rem 0.8rem -0.3rem #000; transform: translateY(-4px) rotate(-1.5deg); }
.ikg-tile.no { animation: ikp-no 0.4s; }
.ikg-tile.lit { box-shadow: 0 0 0 3px #F2C14E, 0 0 14px 3px rgb(242 193 78 / 0.7); }
.ikg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.ikg-misses { font-style: italic; font-size: 0.9rem; }
.ikg-misses i { display: inline-block; width: 0.7rem; height: 0.7rem; margin-left: 0.25rem; border-radius: 50%; background: #F2C14E; vertical-align: -0.05rem; transition: opacity 0.3s; }
.ikg-misses i.used { opacity: 0.2; }
.ikg-tools { display: flex; align-items: center; gap: 0.5rem; }
.ikg-plain { min-height: 2.75rem; padding: 0.2rem 0.9rem; border: 1px solid rgb(237 209 133 / 0.7); border-radius: 99px; background: none; color: #F6DC8E; font: 600 0.92rem/1 var(--ik-serif); cursor: var(--hand, pointer); }
.ikg-plain:hover:not(:disabled) { background: rgb(237 209 133 / 0.12); }
.ikg-plain:disabled { opacity: 0.4; cursor: default; }
.ikp-body .ikg-say { min-height: 2.2em; }

/* The ideas: the object's constellation --------------------------------------------------------------------------- */
.iks-lead { margin: 0 auto 1.2rem !important; max-width: 54ch !important; text-align: center; }
.iks-note { margin: 1.2rem auto 0 !important; text-align: center; }
.iks { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0.7rem; }
.iks-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.iks-who { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.9rem; padding: 0.15rem 0.9rem 0.15rem 0.2rem; border: 1px solid #7C5E1B; border-radius: 99px; background: linear-gradient(#FBF3DC, #E6D5AE); color: var(--ik-ink); font: 600 0.95rem/1.1 var(--ik-serif); cursor: var(--hand, pointer); }
.iks-who img { width: 2.5rem; height: 2.5rem; }
.iks-who[aria-pressed="true"] { background: radial-gradient(ellipse at 40% 30%, var(--ik-cloth), var(--ik-cloth-dark)); color: var(--ik-hz-gilt); border-color: var(--ik-hz-gilt-dark); box-shadow: inset 0 0 0 2px var(--ik-cloth-dark), inset 0 0 0 3px var(--ik-hz-gilt-dark); }
.iks-frame { margin: 0 !important; text-align: center; line-height: 1.25; }
.iks-frame b { font-variant: small-caps; letter-spacing: 0.05em; color: var(--ik-sanguine); }
.iks-frame span { display: block; font-size: 0.86rem; font-style: italic; color: var(--ik-ink-2); }
.iks-sky { position: relative; width: min(100%, 21rem); aspect-ratio: 1; }
.iks-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.iks-fire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.iks-over { z-index: 2; pointer-events: none; }
.iks-night { fill: url(#iks-deep) #0C1A3F; stroke: #060C20; stroke-width: 6; }
.iks-dust circle { fill: #CFE0FF; opacity: 0.45; }
.iks-thread-all { fill: none; stroke: rgb(237 209 133 / 0.38); stroke-width: 0.7; }
.iks-thread { fill: none; stroke: #F6DC8E; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 9; transition: stroke-dasharray 0.6s cubic-bezier(0.3, 0.7, 0.3, 1); filter: drop-shadow(0 0 2px rgb(255 200 90 / 0.9)); }
html:not(.ikr-js) .iks-thread { stroke-dasharray: none; }
.iks-leader { stroke: rgb(246 220 142 / 0.6); stroke-width: 0.8; stroke-dasharray: 2 2.6; }
.iks-figure { display: none; }
.iks-figure.on, .iks-figure.ghost { display: inline; }
.iks-hit { fill: transparent; }
.iks-star { fill: #FFF3CF; }
.iks-halo { fill: url(#iks-glow); }
.iks-ray { fill: none; stroke: #FFF6DC; stroke-width: 0.55; stroke-linecap: round; opacity: 0.75; }
[data-band="1"] > .iks-star, .iks-star[data-band="1"] { fill: #8F8672; } [data-band="1"] > .iks-halo { opacity: 0.22; }
[data-band="2"] > .iks-star, .iks-star[data-band="2"] { fill: #C9B88E; } [data-band="2"] > .iks-halo { opacity: 0.4; }
[data-band="3"] > .iks-star, .iks-star[data-band="3"] { fill: #EDDCA9; } [data-band="3"] > .iks-halo { opacity: 0.6; }
[data-band="4"] > .iks-star, .iks-star[data-band="4"] { fill: #FFF2CC; } [data-band="4"] > .iks-halo { opacity: 0.85; }
[data-band="5"] > .iks-star, .iks-star[data-band="5"] { fill: #FFFFFF; } [data-band="5"] > .iks-halo { opacity: 1; }
.iks-hollow { fill: none; stroke: #BFD2F5; stroke-width: 1.1; stroke-dasharray: 2.2 1.7; }
.iks-na { fill: none; stroke: #BFD2F5; stroke-width: 1.2; stroke-linecap: round; }
.iks-counts { fill: none; stroke: #F6DC8E; stroke-width: 0.7; }
.iks-tick { fill: none; stroke: #E9C977; stroke-width: 0.9; stroke-linecap: round; opacity: 0.85; }
.iks-name { fill: rgb(246 235 207 / 0.65); font: 600 9px/1 var(--ik-serif); letter-spacing: 0.08em; text-anchor: middle; pointer-events: none; }
.iks-swell { transform-box: fill-box; transform-origin: center; transition: transform 0.4s cubic-bezier(0.3, 1.7, 0.5, 1); }
.iks.live .iks-pair { cursor: var(--hand, pointer); }
.iks-pair.now .iks-swell { transform: scale(1.42); }
.iks-pair.now .iks-name { fill: #FFE9A8; font-size: 10.5px; }
.iks-figure.ghost .iks-star { fill: none; stroke: #8FD3FF; stroke-width: 1.1; }
.iks-figure.ghost .iks-hollow { stroke: #8FD3FF; }
.iks-figure.ghost :is(.iks-halo, .iks-ray, .iks-name, .iks-counts, .iks-tick, .iks-hit) { display: none; }
.iks-figure.ghost { pointer-events: none; }
.iks-calm { fill: none; stroke: rgb(245 219 143 / 0.9); stroke-width: 2.5; }
.iks.fire .iks-calm { opacity: 0; }
.iks-band { fill: none; stroke: transparent; stroke-width: 44; pointer-events: stroke; cursor: grab; touch-action: none; }
.iks-bead { pointer-events: auto; }
.iks-bead-glow { fill: rgb(255 240 190 / 0.35) !important; stroke: none !important; }
.iks-bead { cursor: grab; touch-action: none; transform-box: view-box; transform-origin: 0 0; transition: transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1); }
.iks.turning .iks-bead { transition: none; cursor: grabbing; }
.iks-bead circle { fill: url(#ikr-brass-g) #D9B45A; stroke: #5a3f10; stroke-width: 1.4; }
.iks-bead path { fill: #5a3f10; }
.iks-turn { position: absolute; inset: 3%; border-radius: 50%; pointer-events: none; }
.iks-turn:focus-visible { outline: 3px solid var(--ik-sanguine); outline-offset: 5px; border-radius: 50%; }
.iks-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; width: 100%; max-width: 36rem; }
.iks-step { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #7C5E1B; border-radius: 50%; background: linear-gradient(#F6DC8E, var(--ik-brass) 60%, #C79A3C); color: var(--ik-ink); cursor: var(--hand, pointer); }
.iks-step svg { width: 1.3rem; height: 1.3rem; }
.iks-step:hover { filter: brightness(1.08); }
.iks-question { margin: 0 !important; min-height: 6.4em; display: grid; align-content: center; justify-items: center; gap: 0.1rem; padding: 0.5rem 0.9rem 0.6rem; text-align: center; line-height: 1.25; color: var(--ik-hz-gilt); border-radius: 4px; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 40% 30%, var(--ik-cloth), var(--ik-cloth-dark)); box-shadow: inset 0 0 0 2px var(--ik-cloth-dark), inset 0 0 0 3px var(--ik-hz-gilt-dark); }
.iks-question i { font-size: 0.8rem; font-style: normal; font-variant: small-caps; letter-spacing: 0.1em; opacity: 0.85; }
.iks-question b { font: 700 1.3rem/1.1 var(--ik-display); color: #F6DC8E; }
.iks-question span { font-size: 0.92rem; font-style: italic; color: #F4E3B8; }
.iks-plate { width: 100%; max-width: 36rem; min-height: 6.6em; padding: 0.7rem 1rem 0.75rem; background: rgb(255 250 235 / 0.7); border: 1px dashed rgb(46 32 20 / 0.6); border-radius: 4px; line-height: 1.3; }
.iks-plate p { margin: 0; max-width: none; }
.iks-answer li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4rem; }
.iks-answer i { font-size: 0.88rem; color: var(--ik-ink-2); }
.iks-answer i::after { content: ":"; }
.iks-answer b { font-size: 1.04rem; }
.iks-answer span { font-size: 0.84rem; color: var(--ik-ink-2); }
.iks-answer li.counts b { text-decoration: underline; text-decoration-color: var(--ik-gilt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.iks-branch { margin-top: 0.25rem !important; font-size: 0.84rem; font-style: italic; color: var(--ik-ink-2); }
.iks-other { margin-top: 0.3rem !important; font-size: 0.88rem; color: #1E5C86; }
.iks-other span { white-space: nowrap; }
.iks-why { margin-top: 0.35rem; font-size: 0.86rem; }
.iks-why summary { display: inline-block; padding: 0.15rem 0; font-variant: small-caps; letter-spacing: 0.06em; color: var(--ik-sanguine); cursor: var(--hand, pointer); }
.iks-why summary::after { content: " +"; }
.iks-why[open] summary::after { content: " \2212"; }
.iks-why p { margin-top: 0.3rem !important; }
.iks-why small { color: var(--ik-ink-2); }
.iks-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.2rem; max-width: 36rem; font-size: 0.84rem; font-style: italic; line-height: 1.25; color: var(--ik-ink-2); }
.iks-flags li { position: relative; padding-left: 1.5rem; }
.iks-flags li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1.15rem; height: 0.32rem; border-radius: 0 50% 50% 0 / 0 50% 50% 0; background: linear-gradient(90deg, transparent, #C9A24A 70%, #8E3B26); transform: rotate(-18deg); }
.iks-side { margin: 0 !important; display: grid; justify-items: center; gap: 0.3rem; max-width: 36rem; text-align: center; }
.iks-side .ikr-btn { min-height: 2.5rem; font-size: 0.92rem; }
.iks-side span { font-size: 0.86rem; font-style: italic; color: #1E5C86; }
.iks-side span:empty { display: none; }
.iks-key { margin: 0 !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1rem; max-width: 36rem; font-size: 0.78rem; color: var(--ik-ink-2); }
.iks-key span { display: inline-flex; align-items: center; gap: 0.3rem; }
.iks-key svg { height: 1.25rem; width: auto; padding: 0.1rem 0.25rem; border-radius: 99px; background: #0C1A3F; overflow: visible; }
.iks-list { display: grid; gap: 0.7rem; max-width: 40rem; counter-reset: none; }
.iks-list p { margin: 0; }
.iks-list i { font-style: italic; color: var(--ik-sanguine); }
.iks-list ul { padding-left: 1rem; font-size: 0.92rem; }
.iks.live .iks-list { display: none; }
.iks:not(.live) :is(.iks-pick, .iks-banner, .iks-plate, .iks-side, .iks-turn, .iks-over, .iks-leader, .iks-fire) { display: none; }

@media (min-width: 900px) {
  .iks.live { grid-template-columns: minmax(0, 30rem) minmax(0, 34rem); grid-template-areas: "sky pick" "sky frame" "sky banner" "sky plate" "sky flags" "sky side" "key key"; justify-content: center; column-gap: clamp(1.5rem, 4vw, 4rem); align-content: center; }
  .iks.live .iks-sky { grid-area: sky; width: 100%; align-self: center; }
  .iks.live .iks-pick { grid-area: pick; } .iks.live .iks-frame { grid-area: frame; } .iks.live .iks-banner { grid-area: banner; }
  .iks.live .iks-plate { grid-area: plate; } .iks.live .iks-flags { grid-area: flags; } .iks.live .iks-side { grid-area: side; } .iks.live .iks-key { grid-area: key; margin-top: 0.6rem !important; }
}
@media (max-width: 700px) {
  .ikp-arc.set { --arx: 8.7rem; --ary: 12rem; height: 17.5rem; margin-top: 0.6rem; }
  .ikp-arc.set .ikp-way { width: 5rem; margin-left: -2.5rem; }
  .ikp-arc.set .ikp-way .ikr-wheel { width: 3.5rem; }
  .ikp-arc.set .ikp-way b { font-size: 0.74rem; }
  .ikp-stage { width: 100vw; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .ikp-close { padding: 0; justify-content: center; }
  .ikp-close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ikp-bar p { font-size: 0.8rem; }
  .ikc, .ikt, .ika-board { grid-template-columns: minmax(0, 1fr); }
  .ikc-left { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); align-items: center; }
  .ikc-left .ikc-screen { grid-column: 1; grid-row: 1; }
  .ikc-left .ikc-tab { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .ikc-care { width: calc(25% - 0.4rem); }
  .ikt-left { grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); align-items: center; justify-items: start; }
  .ikt-depths { flex-direction: column; align-items: flex-start; }
  .ikt-card img, .ikt-blank { width: 3.8rem; height: 3.8rem; }
  .ikt-cand { min-width: 0; flex: 1 1 5.6rem; }
  .ikb-box { aspect-ratio: 1 / 1; }
  .ika-left { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); align-items: center; justify-items: start; }
  .ika-left .ika-plan { grid-row: 1 / span 2; max-height: 12rem; }
  .ika-left .ika-mood { text-align: left; }
  .ika-tray { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ikg-grid { gap: 0.3rem; }
  .ikg-tile { font-size: 0.68rem; padding: 0.2rem 0.1rem 0.25rem; }
  .ikg-plain { padding: 0.2rem 0.7rem; }
  .iks-question { min-height: 7.4em; padding-inline: 0.6rem; }
  .iks-pick { gap: 0.3rem; flex-wrap: nowrap; }
  .iks-who { min-height: 2.75rem; gap: 0.3rem; padding: 0.1rem 0.6rem 0.1rem 0.15rem; font-size: 0.78rem; }
  .iks-who img { width: 2rem; height: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ikp-arc.set .ikp-way { transition-duration: 0.15s; transition-delay: 0s; transform: translate(calc(var(--ax) * var(--arx)), calc(var(--ay) * var(--ary))); opacity: 1; }
  .ikp-way:hover .ikr-wheel-gear, .ikp-way:focus-visible .ikr-wheel-gear { animation: none; }
  .ikp-stage[open], .ikp-end, .ikp-body [aria-live].in, .ikc-notes li, .ikg-band, .ika-face, .ika-slot.in, .ikt-thread.broken, .ikc-screen.passing .ikc-layer, .ikc-screen.passing .ikc-obj { animation: none; }
  .ikt-thread, .iks-thread, .iks-swell, .iks-bead, .ikg-tile, .ika-card, .ikt-cand { transition-duration: 0.01s; }
}
