/* iKaru for Android: the iPhone's look (VISUAL_CHARTER.md; HeaderBar, BottomChrome, CardPanel, AtlasOverlay). Light
   museum look by default; the dark macro look at close zoom. Glass chrome, shadows only under things that lie on the
   ground, no blue halos, no transparency on the objects. */

/* Standalone (index.html, the Android wrap): the app is the page. A host page (the website's /ikage/) keeps its own
   scrolling and marks a stage instead (host.js); these two rules are for the standalone page only. */
html.kr-standalone, html.kr-standalone body { margin: 0; height: 100%; overflow: hidden; background: #0B0D11; overscroll-behavior: none; }
body { -webkit-tap-highlight-color: transparent; }

.kr-app {
  --kr-ink: #2E2014;
  --kr-paper: #FBF6EB;
  --kr-text: #2E2014;
  --kr-secondary: rgb(79 60 41 / 0.92);
  --kr-glass: rgb(251 246 235 / 0.74);
  --kr-glass-line: rgb(255 250 238 / 0.65);
  --kr-card: #FAF4E8;
  --kr-section: rgb(90 60 25 / 0.07);
  --kr-toggle: rgb(90 60 25 / 0.08);
  --kr-accent: #1F6B78;
  --kr-accent-solid: #1F5D6B;
  --kr-on-accent: #FFFFFF;
  --kr-warning: #8A4B0E;
  --kr-warning-fill: #FCE5CC;
  --kr-safe-top: env(safe-area-inset-top, 0px);
  --kr-safe-bottom: env(safe-area-inset-bottom, 0px);
  position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  font-family: system-ui, -apple-system, "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--kr-text);
  font-size: 15px;
}
.kr-app[data-look="macro"] {
  --kr-text: #FFFFFF;
  --kr-secondary: rgb(255 255 255 / 0.6);
  --kr-glass: rgb(30 32 37 / 0.72);
  --kr-glass-line: rgb(255 255 255 / 0.10);
  --kr-card: #1D1E21;
  --kr-section: rgb(255 255 255 / 0.065);
  --kr-toggle: rgb(255 255 255 / 0.10);
  --kr-accent: #3CC6DC;
  --kr-accent-solid: #3CC6DC;
  --kr-on-accent: #0B0D11;
}
.kr-app button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.kr-app [hidden] { display: none !important; }

/* The parchment (2026-10-13; LookPalette.museum): aged map paper, fibres and a light foxing, a soft vignette. */
.kr-backdrop { position: absolute; inset: 0; background:
  radial-gradient(circle at 18% 72%, rgb(140 97 51 / 0.07) 0, transparent 7%),
  radial-gradient(circle at 81% 23%, rgb(140 97 51 / 0.06) 0, transparent 5%),
  radial-gradient(circle at 64% 86%, rgb(140 97 51 / 0.05) 0, transparent 4%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.08' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.12 0 0 0 0.5 -0.12'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23f)'/%3E%3C/svg%3E"),
  radial-gradient(ellipse at 50% 40%, #EADCBD 0%, #DDCAA2 55%, #CCB791 100%); transition: background 0.3s; }
.kr-app[data-look="macro"] .kr-backdrop { background: radial-gradient(ellipse at 50% 45%, #15181D 0%, #0B0D11 60%, #000 100%); }
.kr-app[data-render="atlas"] .kr-backdrop { background: #C6C2BA; }
.kr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }

.kr-glass {
  background: var(--kr-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 0 0 0.5px var(--kr-glass-line), 0 1px 4px rgb(0 0 0 / 0.10);
}

/* MARK: Header (one quiet row) */
.kr-header { position: absolute; left: 0; right: 0; top: calc(var(--kr-safe-top) + 10px); padding: 0 16px; z-index: 30; pointer-events: none; }
.kr-headrow { display: flex; align-items: center; gap: 8px; height: 44px; }
.kr-headrow > * { pointer-events: auto; }
.kr-spacer { flex: 1 1 auto; pointer-events: none !important; }
.kr-mark { width: 34px; height: 34px; padding: 2px; border: 0; background: none; color: var(--kr-ink); display: grid; place-items: center; cursor: pointer; }
.kr-app[data-look="macro"] .kr-mark { background: var(--kr-paper); border-radius: 50%; color: var(--kr-ink); }
.kr-back { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--kr-ink); cursor: pointer; }
.kr-back svg { width: 19px; height: 19px; }
.kr-app[data-look="macro"] .kr-back svg { background: var(--kr-paper); border-radius: 50%; padding: 6px; width: 30px; height: 30px; box-sizing: border-box; }
.kr-trail { display: flex; align-items: center; gap: 6px; color: var(--kr-secondary); }
.kr-pic { position: relative; width: 30px; height: 30px; padding: 2px; border: 0; border-radius: 9px; background: linear-gradient(#D9D6D1, #B9B5AF); box-shadow: 0 2px 4px rgb(0 0 0 / 0.22); display: grid; place-items: center; cursor: pointer; color: #33302C; }
.kr-pic img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.kr-pic-current { width: 38px; height: 38px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.9), 0 2px 5px rgb(0 0 0 / 0.25); }
.kr-picbadge { position: absolute; top: -6px; right: -6px; width: 15px; height: 15px; border-radius: 50%; background: #F4A142; color: #fff; font: 700 10px/15px Georgia, serif; text-align: center; box-shadow: 0 0 0 1.5px var(--kr-card); }
.kr-lens { display: flex; padding: 3px; border-radius: 999px; }
.kr-lensbtn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-size: 13px !important; font-weight: 600 !important; color: var(--kr-secondary) !important; cursor: pointer; }
.kr-lensbtn.kr-on { background: var(--kr-text); color: var(--kr-card) !important; }
.kr-app[data-look="museum"] .kr-lensbtn.kr-on { background: #191E2A; color: #fff !important; }
.kr-more { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--kr-text); cursor: pointer; margin-left: 4px; }

/* MARK: The atlas's overlay */
.kr-atlaslayer { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.kr-atlaslayer > * { pointer-events: auto; }
.kr-gauge { position: absolute; left: calc(16px + 13px); top: calc(var(--kr-safe-top) + 10px + 44px + 2px); width: 14px; height: 120px; pointer-events: none !important; }
.kr-gaugeline { position: absolute; left: 6.5px; top: 6px; width: 1px; height: 104px; background: rgb(25 30 42 / 0.28); }
.kr-gaugedot { position: absolute; left: 7px; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: rgb(245 244 240 / 0.9); box-shadow: inset 0 0 0 1px rgb(25 30 42 / 0.45); }
.kr-gaugedot.kr-past { background: rgb(25 30 42 / 0.55); }
.kr-gaugedot.kr-on { width: 11px; height: 11px; margin: -5.5px; background: #191E2A; box-shadow: 0 0 0 2px #F5F4F0, 0 0 1px 2px rgb(0 0 0 / 0.35); }
.kr-gaugeword { position: absolute; left: 20px; padding: 2px 7px; border-radius: 999px; background: rgb(245 244 240 / 0.6); font-size: 11.5px; font-weight: 600; color: rgb(25 30 42 / 0.75); white-space: nowrap; }
.kr-names { position: absolute; inset: 0; pointer-events: none !important; }
.kr-namepill { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 12.5px; color: rgb(25 30 42 / 0.82); text-shadow: 0 0 3px rgb(225 222 216 / 0.95), 0 0 6px rgb(225 222 216 / 0.9); }
.kr-namepill b { font-weight: 600; }
.kr-namepill.kr-lit { padding: 4px 9px; border-radius: 999px; background: rgb(245 244 240 / 0.9); color: #191E2A; text-shadow: none; box-shadow: 0 1px 2px rgb(25 30 42 / 0.2); }
.kr-rel { margin-left: 4px; font-weight: 500; opacity: 0.6; }
.kr-edgechip { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgb(245 244 240 / 0.92); box-shadow: 0 1px 2.5px rgb(0 0 0 / 0.2); font-size: 12px; font-weight: 600; white-space: nowrap; color: #191E2A; }
.kr-edgechip img { width: 26px; height: 26px; border-radius: 50%; background: #D8D4CD; object-fit: contain; }
.kr-atlashint { position: absolute; left: 50%; bottom: calc(var(--kr-safe-bottom) + 12px); transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 7px 14px; border-radius: 999px; background: rgb(245 244 240 / 0.55); font-size: 12.5px; font-weight: 500; color: rgb(25 30 42 / 0.78); white-space: nowrap; pointer-events: none !important; }
.kr-atlashint b { font-weight: 500; }
.kr-atlashint i { font-style: normal; opacity: 0.45; }
.kr-palette { position: absolute; right: 16px; bottom: calc(var(--kr-safe-bottom) + 56px); width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgb(245 244 240 / 0.7); color: rgb(25 30 42 / 0.8); display: grid; place-items: center; cursor: pointer; }
.kr-atlascardwrap { position: absolute; left: 10px; right: 10px; bottom: calc(max(10px, var(--kr-safe-bottom) - 14px)); display: flex; justify-content: center; }
.kr-atlascard { width: 100%; max-width: 560px; box-sizing: border-box; padding: 9px 18px 16px; border-radius: 26px; background: rgb(243 241 238 / 0.95); box-shadow: 0 -1px 9px rgb(25 30 42 / 0.16); color: #191E2A; touch-action: none; animation: kr-rise 0.22s ease-out; }
@keyframes kr-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.kr-grabber { width: 38px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: rgb(25 30 42 / 0.22); }
.kr-atitle { margin: 0; font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-asub { margin: 2px 0 0; font-size: 12.5px; color: rgb(25 30 42 / 0.58); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-aschema { display: flex; gap: 8px; margin-top: 8px; }
.kr-ahue { flex: 0 0 4px; border-radius: 2px; }
.kr-aworks { margin: 0; font-size: 12.5px; font-weight: 600; }
.kr-aop { margin: 1px 0 0; font-size: 12px; color: rgb(25 30 42 / 0.62); }
.kr-astrip { display: flex; gap: 3px; margin-top: 10px; }
.kr-acell { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.kr-acellsq { width: 100%; height: 15px; border-radius: 3px; }
.kr-acell-hollow { box-shadow: inset 0 0 0 1px rgb(25 30 42 / 0.35); background: repeating-linear-gradient(90deg, transparent 0 3px, rgb(243 241 238) 3px 5px); }
.kr-acellid { font-size: 8.5px; font-weight: 600; color: rgb(25 30 42 / 0.45); }
.kr-auses { margin: 6px 0 0; font-size: 11.5px; color: rgb(25 30 42 / 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-adoors { display: flex; gap: 8px; margin-top: 14px; }
.kr-adoor { flex: 1 1 0; height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 14px; background: rgb(25 30 42 / 0.06); color: #1F5D6B !important; font-size: 13.5px !important; font-weight: 600 !important; white-space: nowrap; cursor: pointer; padding: 0 6px; }
.kr-adoor-primary { background: #1F5D6B; color: #F5F4F0 !important; }
.kr-adoor:disabled { opacity: 0.4; }
.kr-adoor span { overflow: hidden; text-overflow: ellipsis; }

/* MARK: The object view's overlays */
.kr-labelhost { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.kr-focusglow { position: absolute; width: 360px; height: 300px; margin: -150px 0 0 -180px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(closest-side, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.22) 60%, rgb(255 255 255 / 0)); filter: blur(6px); }
.kr-app[data-look="macro"] .kr-focusglow { display: none; }
.kr-canvas { z-index: 2; }
.kr-callout { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; }
.kr-callout-ring { position: absolute; width: 30px; height: 30px; margin: -15px; border-radius: 50%; box-shadow: inset 0 0 0 2px #1F6B78; }
.kr-callout-line { position: absolute; left: -0.75px; top: -50px; width: 1.5px; height: 35px; background: #1F6B78; }
.kr-callout-pill { position: absolute; left: 0; top: -66px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgb(240 243 242 / 0.95); box-shadow: inset 0 0 0 1px #1F6B78; font-size: 13px; font-weight: 600; white-space: nowrap; color: #191E2A; }
.kr-madeby { position: absolute; right: 10px; top: calc(var(--kr-safe-top) + 10px + 44px + 8px); z-index: 12; max-width: 250px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--kr-card) 94%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kr-accent) 35%, transparent); display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.kr-madebyhead { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--kr-secondary); }
.kr-madebyrow { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; max-width: 230px; color: var(--kr-accent) !important; cursor: pointer; }
.kr-ring { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--kr-accent); box-sizing: border-box; }
.kr-madebyname { font-size: 13px; font-weight: 600; color: var(--kr-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-exemplar { flex: 0 0 auto; padding: 1px 5px; border-radius: 999px; background: var(--kr-warning-fill); color: var(--kr-warning); font-size: 11px; font-weight: 600; }
.kr-app[data-look="macro"] .kr-exemplar { background: #5A3A12; color: #F6B25C; }

/* MARK: The bottom chrome */
.kr-bottom { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.kr-bottomcol { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: bottom 0.38s cubic-bezier(0.25, 1, 0.4, 1); }
.kr-bottomcol > * { pointer-events: auto; }
.kr-toolrow { width: 100%; box-sizing: border-box; padding: 0 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none !important; }
.kr-toolrow > * { pointer-events: auto; }
.kr-doorspace { width: 56px; flex: 0 0 56px; }
.kr-door { width: 56px; flex: 0 0 56px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.kr-doorpic { display: block; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.92), 0 3px 5px rgb(0 0 0 / 0.3); }
.kr-doorpic svg { display: block; }
.kr-doorword { font-size: 10px; font-weight: 600; color: color-mix(in srgb, var(--kr-text) 85%, transparent); white-space: nowrap; }
.kr-capsule { height: 46px; padding: 0 8px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.kr-tool { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--kr-text) !important; cursor: pointer; padding: 0; }
.kr-tool.kr-on { background: color-mix(in srgb, var(--kr-accent) 22%, transparent); color: var(--kr-accent) !important; }
.kr-hintchip { max-width: calc(100% - 48px); box-sizing: border-box; padding: 6px 12px; border-radius: 18px; font-size: 12px; line-height: 1.35; color: var(--kr-secondary); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; pointer-events: none !important; }
.kr-handle { position: absolute; left: 50%; transform: translateX(-50%); min-width: 200px; max-width: min(372px, calc(100% - 24px)); height: 40px; box-sizing: border-box; padding: 4px 14px 0; border: 0; border-radius: 999px; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: auto; cursor: pointer; touch-action: none; }
.kr-handlegrab { width: 34px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--kr-secondary) 55%, transparent); }
.kr-handleline { display: flex; align-items: center; gap: 8px; height: 30px; max-width: 100%; }
.kr-handletitle { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 230px; }
.kr-handleline .kr-cells { flex: 0 0 auto; }
.kr-handleline .kr-cell { border-radius: 2.5px; }
.kr-raised { width: calc(100% - 32px); max-width: 420px; box-sizing: border-box; padding: 12px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px; }
.kr-legendchip { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px; background: var(--kr-toggle); font-size: 12px; }
.kr-legendchip span { width: 11px; height: 11px; border-radius: 50%; }
.kr-legendchip b { margin-left: 4px; font-weight: 600; }
.kr-sliderrow { display: flex; align-items: center; gap: 10px; }
.kr-slider { flex: 1 1 auto; accent-color: var(--kr-accent); }
.kr-stageword { font-size: 12px; color: var(--kr-secondary); max-width: 110px; text-align: right; }
.kr-phaserow { display: flex; gap: 6px; }
.kr-seg { flex: 1 1 0; min-height: 34px; border: 0; border-radius: 999px; background: var(--kr-toggle); font-size: 14px !important; font-weight: 600 !important; cursor: pointer; }
.kr-seg.kr-on { background: var(--kr-accent-solid); color: var(--kr-on-accent) !important; }

/* MARK: The card panel */
.kr-cardpanel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; flex-direction: column; background: var(--kr-card); border-radius: 30px 30px 0 0; box-shadow: 0 -2px 18px rgb(0 0 0 / 0.18); transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1), transform 0.12s; touch-action: none; color: var(--kr-text); overflow: hidden; }
.kr-cardpanel-handle { display: none; }
.kr-grabrow { flex: 0 0 22px; display: grid; place-items: center; cursor: grab; }
.kr-grabrow .kr-grabber { margin: 0; background: color-mix(in srgb, var(--kr-secondary) 75%, transparent); }
.kr-peekrow { flex: 0 0 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border: 0; background: none; cursor: pointer; }
.kr-peektitle { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-cardscroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(max(var(--kr-safe-bottom), 10px) + 24px); display: flex; flex-direction: column; gap: 14px; touch-action: pan-y; }
.kr-cardtop { display: flex; flex-direction: column; gap: 14px; }
.kr-cardhead { display: flex; align-items: flex-start; gap: 12px; }
.kr-cardtitle { flex: 1 1 auto; margin: 3px 0 0; font-size: 20px; font-weight: 600; line-height: 1.2; }
.kr-closebtn { flex: 0 0 auto; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--kr-section); font-size: 15px !important; font-weight: 600 !important; cursor: pointer; }
.kr-app[data-look="museum"] .kr-closebtn { background: rgb(25 30 42 / 0.07); }
.kr-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.kr-badge { padding: 4px 9px; border-radius: 11px; background: var(--kr-warning-fill); color: var(--kr-warning); box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--kr-warning) 45%, transparent); font-size: 13px; font-weight: 600; }
.kr-app[data-look="macro"] .kr-badge { background: #4A2F10; color: #F6B25C; }
.kr-flag { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 4px 9px; border-radius: 11px; background: var(--kr-section); box-shadow: inset 0 0 0 0.75px color-mix(in srgb, var(--kr-text) 35%, transparent); font-size: 12.5px; font-weight: 600; }
.kr-profiletop { display: flex; flex-direction: column; gap: 8px; }
.kr-frame { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kr-levelchip { padding: 3px 8px; border-radius: 999px; background: var(--kr-toggle); font-size: 13px; font-weight: 600; }
.kr-system { font-size: 15px; }
.kr-verdict { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15.5px; font-weight: 600; }
.kr-verdict-mark { flex: 0 0 auto; }
.kr-striprow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.kr-cells { display: flex; }
.kr-cellwrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.kr-cell { display: block; border-radius: 4px; box-sizing: border-box; }
.kr-cell-hollow { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kr-text) 35%, transparent); background: none; border: 1px dashed color-mix(in srgb, var(--kr-text) 35%, transparent); box-shadow: none; }
.kr-cell-crossed { background: linear-gradient(45deg, transparent 46%, color-mix(in srgb, var(--kr-text) 45%, transparent) 46% 54%, transparent 54%); border: 1px solid color-mix(in srgb, var(--kr-text) 30%, transparent); }
.kr-cellid { font-size: 11px; font-weight: 500; color: var(--kr-secondary); }
.kr-flagchip { padding: 3px 8px; border-radius: 10px; background: var(--kr-section); font-size: 12px; font-weight: 600; }
.kr-bubbleline { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 600; }
.kr-bubbledot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.kr-readon { margin: 0; font-size: 13px; font-weight: 600; color: var(--kr-secondary); }
.kr-note, .kr-small { margin: 0; font-size: 13px; color: var(--kr-secondary); line-height: 1.35; }
.kr-tiny { margin: 0; font-size: 11.5px; color: var(--kr-secondary); }
.kr-strong { font-weight: 600; }
.kr-doorrow { display: flex; flex-wrap: wrap; gap: 8px; }
.kr-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--kr-toggle); font-size: 15.5px !important; font-weight: 600 !important; cursor: pointer; white-space: nowrap; }
.kr-pill-accent { background: var(--kr-accent-solid); color: var(--kr-on-accent) !important; }
.kr-section { padding: 14px; border-radius: 14px; background: var(--kr-section); display: flex; flex-direction: column; gap: 8px; }
.kr-caption { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--kr-secondary); }
.kr-text { margin: 0; font-size: 15px; line-height: 1.35; }
.kr-verdictfull { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.kr-verdictfull svg { margin-top: 3px; }
.kr-prow { display: flex; flex-direction: column; gap: 6px; }
.kr-prowhead { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--kr-text) !important; }
.kr-prowtitle { flex: 1 1 auto; font-size: 16px; font-weight: 600; white-space: pre; }
.kr-prowhead svg { color: var(--kr-secondary); }
.kr-prow.kr-open .kr-prowhead svg { transform: rotate(180deg); }
.kr-comp { display: flex; align-items: center; gap: 8px; }
.kr-compname { flex: 0 0 120px; font-size: 13.5px; color: var(--kr-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-prowtitle-plain { white-space: normal; font-size: 15px; line-height: 1.3; }
.kr-plainanswer { display: flex; align-items: baseline; gap: 8px; }
.kr-plainpips { display: inline-flex; gap: 3px; flex: 0 0 auto; transform: translateY(1px); }
.kr-plainpip { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.kr-plainpip-off { border: 1px dashed color-mix(in srgb, var(--kr-text) 30%, transparent); box-sizing: border-box; opacity: 0.4; }
.kr-plaintext { font-size: 14px; line-height: 1.35; }
.kr-psteps { display: flex; gap: 2px; }
.kr-pstep { width: 17px; height: 17px; border-radius: 3px; border: 1px dashed color-mix(in srgb, var(--kr-text) 30%, transparent); box-sizing: border-box; }
.kr-pstep-on { border: 0; }
.kr-pstep-outlined { box-shadow: 0 0 0 2px var(--kr-accent); }
.kr-prowdetail { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 2px; }
.kr-divider { border: 0; height: 1px; margin: 2px 0; background: color-mix(in srgb, var(--kr-text) 10%, transparent); }

/* MARK: The doorway's wash and the push's title */
.kr-wash { position: absolute; inset: 0; background: rgb(14 15 19); opacity: 0; pointer-events: none; z-index: 28; }
.kr-cuetitle { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 6px 14px; border-radius: 999px; background: rgb(245 244 240 / 0.9); font-size: 15px; font-weight: 600; color: #191E2A; opacity: 0; pointer-events: none; z-index: 29; white-space: nowrap; }

/* MARK: Sheets */
.kr-sheethost { position: absolute; inset: 0; pointer-events: none; z-index: 40; }
.kr-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.28); pointer-events: auto; }
.kr-scrim-clear { background: transparent; }
.kr-sheet { position: absolute; left: 12px; right: 12px; bottom: 0; max-height: 52%; overflow-y: auto; box-sizing: border-box; padding: 10px 26px 26px; border-radius: 34px 34px 0 0; background: #F3F1EE; color: #191E2A; pointer-events: auto; transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.25, 1, 0.4, 1); touch-action: pan-y; box-shadow: 0 -4px 22px rgb(0 0 0 / 0.18); }
.kr-sheet.kr-in { transform: none; }
.kr-sheet-legend { left: 12px; right: 12px; bottom: 10px; border-radius: 34px; max-height: 56%; }
.kr-sheet-menu { left: auto; right: 12px; top: calc(var(--kr-safe-top) + 60px); bottom: auto; width: 240px; padding: 8px; border-radius: 18px; transform: scale(0.96); opacity: 0; transition: transform 0.18s, opacity 0.18s; }
.kr-sheet-menu.kr-in { transform: none; opacity: 1; }
.kr-sheet-menu > .kr-grabber { display: none; }
.kr-menu { display: flex; flex-direction: column; }
.kr-menuitem { text-align: left; padding: 12px 14px; border: 0; border-radius: 10px; background: none; font-size: 16px !important; cursor: pointer; }
.kr-menuitem:active { background: rgb(25 30 42 / 0.06); }
.kr-legend { display: flex; flex-direction: column; gap: 14px; }
.kr-legendtitle { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.kr-legendrow { display: flex; gap: 12px; align-items: flex-start; }
.kr-legendtext { margin: 0; font-size: 15px; line-height: 1.35; }
.kr-italic { font-style: italic; opacity: 0.75; }
.kr-sample { flex: 0 0 46px; height: 22px; display: flex; gap: 2px; align-items: center; justify-content: center; }
.kr-sample-ground span { flex: 1; height: 22px; border-radius: 4px; }
.kr-sample-valley { border-radius: 11px; background: var(--hue); position: relative; }
.kr-sample-valley::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(25 30 42 / 0.35); }
.kr-sample-petals span { flex: 1; height: 22px; border-radius: 2px; }
.kr-sample-petals_hollow span { width: 14px; height: 22px; border-radius: 3px; border: 1px dashed rgb(25 30 42 / 0.4); }
.kr-sample-works_in { height: 4px; margin-top: 9px; border-radius: 2px; background: rgb(217 150 46); gap: 8px; }
.kr-sample-works_in span { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.kr-sample-made_through { gap: 4px; }
.kr-sample-made_through span { width: 4px; height: 4px; border-radius: 50%; background: rgb(122 90 60); }
.kr-sample-same_operation { flex-direction: column; gap: 3px; }
.kr-sample-same_operation span { width: 100%; height: 1px; background: rgb(52 74 104); }
.kr-sample-seat { flex-direction: column; gap: 0; }
.kr-sample-seat span { width: 12px; height: 12px; border-radius: 50%; background: var(--hue); box-shadow: inset 0 0 0 1.5px #191E2A; }
.kr-sample-seat i { width: 1.5px; height: 9px; background: #191E2A; }
.kr-sample-example span { width: 10px; height: 10px; border-radius: 50%; background: #F5F4EF; box-shadow: inset 0 0 0 1.5px #191E2A; }
.kr-gestures { display: flex; flex-direction: column; gap: 12px; }

/* How it's made (the strata sheet, half the screen; the object stays above) */
.kr-sheet-strata { left: 0; right: 0; height: 55%; max-height: none; border-radius: 0; padding: 0; background: #F2F0EC; overflow: hidden; display: flex; flex-direction: column; }
.kr-sheet-strata > .kr-grabber { display: none; }
.kr-strata { display: flex; flex-direction: column; height: 100%; }
.kr-stratahead { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; border-top: 2px solid #1F6B78; }
.kr-stratatitles { flex: 1 1 auto; }
.kr-stratakicker { margin: 0; font-size: 14px; color: rgb(25 30 42 / 0.75); }
.kr-stratatitle { margin: 0; font-size: 19px; font-weight: 600; }
.kr-roundbtn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(25 30 42 / 0.07); display: grid; place-items: center; cursor: pointer; }
.kr-stratabody { flex: 1 1 auto; overflow: auto; padding: 4px 10px 20px; touch-action: pan-x pan-y; border-left: 4px solid #1F6B78; margin-left: 8px; }
.kr-assembly { margin: 4px 0 10px; padding: 8px; border: 1.5px dashed rgb(25 30 42 / 0.35); border-radius: 12px; text-align: center; font-size: 14px; }
.kr-stratacols { display: flex; gap: 8px; align-items: flex-start; }
.kr-stratacol { flex: 0 0 90px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.kr-colhead { padding: 5px 6px; border-radius: 12px; background: rgb(255 255 255 / 0.8); box-shadow: inset 0 0 0 1px rgb(25 30 42 / 0.25); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; }
.kr-sstep { display: flex; align-items: center; gap: 5px; min-height: 30px; padding: 5px 6px; border-radius: 10px; background: #FAF9F7; box-shadow: inset 0 0 0 1px rgb(25 30 42 / 0.16), 0 1px 2px rgb(0 0 0 / 0.08); font-size: 11.5px; line-height: 1.2; }
.kr-sstep-gap { justify-content: center; text-align: center; background: transparent; box-shadow: none; border: 1.5px dashed rgb(25 30 42 / 0.4); font-weight: 600; font-size: 12px; }
.kr-sstep-photo { min-height: 46px; }
.kr-stepimg { flex: 0 0 34px; width: 34px; height: 30px; border-radius: 4px; object-fit: cover; }
.kr-sstepname { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kr-stepjoin { align-self: center; font-size: 10px; line-height: 10px; color: rgb(25 30 42 / 0.55); }
.kr-assembly { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.kr-assembly span { font-size: 12px; color: rgb(25 30 42 / 0.7); }

/* MARK: The lineage view (parchment), placed under the header like the phone's */
.kr-app .ik-lineage.kr-lineage { position: absolute; inset: 0; z-index: 22; padding-top: calc(var(--kr-safe-top) + 64px); box-sizing: border-box; }

.kr-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 13px; color: var(--kr-secondary); z-index: 50; pointer-events: none; }

/* the leader labels of the diode (white pills, a dot, a fine leader), as the phone draws them */
.kr-app .ik-pill { background: rgb(245 244 240 / 0.94); color: #191E2A; font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.kr-app { --ik-font: system-ui, -apple-system, Roboto, sans-serif; --ik-leader: #191E2A; --ik-leader-halo: rgb(245 244 240 / 0.85); --ik-selection: #1F6B78; }

/* The lineage view as the phone draws it (LineageView.swift: parchment, the title row, the grouping capsules, the wash's
   name, the lanes' names, the roll running down to today, the footer) */
.kr-app .ik-lineage.kr-lineage {
  display: flex; flex-direction: column; gap: 6px; overflow: hidden; padding-left: 16px; padding-right: 16px; padding-bottom: 6px;
  background: radial-gradient(circle at 18% 22%, rgb(0 0 0 / 0.025) 0 22px, transparent 23px), radial-gradient(circle at 72% 64%, rgb(0 0 0 / 0.02) 0 30px, transparent 31px), linear-gradient(#EFE4CB, #E9DCBE);
  font-family: "Iowan Old Style", "Noto Serif", Palatino, Georgia, serif;
  color: #2B2118;
}
.kr-lineage .ik-lineage-top { gap: 10px; }
.kr-lineage .ik-lineage-kicker { font-size: 13px; }
.kr-lineage .ik-lineage-title { font-size: 19px; font-weight: 600; }
.kr-lineage .ik-lineage-round { width: 36px; height: 36px; margin: 4px; font: 700 15px/1 system-ui, sans-serif; background: rgb(43 33 24 / 0.09); }
.kr-lineage .ik-lineage-ribbon { font-size: 12px; }
.kr-lineage .ik-lineage-switch { gap: 6px; min-height: 44px; align-items: center; }
.kr-lineage .ik-lineage-seg { min-height: 32px; font-size: 13px; }
.kr-lineage .ik-lineage-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.kr-lineage .ik-lineage-wash-head { flex: 0 0 auto; }
.kr-lineage .ik-lineage-wash { margin: 0; font-size: 17px; font-weight: 600; }
.kr-lineage .ik-lineage-op { font-size: 13px; font-style: italic; }
.kr-lineage .ik-lineage-lanes { flex: 0 0 30px; position: relative; height: 30px; }
.kr-lineage .ik-lineage-lane-name { font-size: 12px; font-weight: 600; text-align: left; }
.kr-lineage .ik-lineage-roll { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overflow-x: hidden; border: 0; touch-action: pan-y; }
.kr-lineage .ik-lineage-colwash { fill: rgb(43 33 24 / 0.045); }
.kr-lineage .ik-lineage-rule { stroke: rgb(92 72 52 / 0.14); stroke-width: 0.5; }
.kr-lineage .ik-lineage-today { stroke: rgb(43 33 24 / 0.55); stroke-width: 1; stroke-dasharray: none; }
.kr-lineage .ik-lineage-year { left: 0; transform: translateY(-50%); text-align: right; font-size: 10px; font-style: italic; color: rgb(92 72 52); }
.kr-lineage .ik-lineage-year-today { color: #2B2118; }
.kr-lineage .ik-lineage-ink { stroke: #2B2118; stroke-width: 2.2; }
.kr-lineage .ik-lineage-vignette { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding: 4px 8px; border-radius: 6px; border: 1.2px dashed #2B2118; background: rgb(246 240 226 / 0.9); color: #2B2118; text-align: left; font: 12px/1.25 "Iowan Old Style", "Noto Serif", Palatino, Georgia, serif; cursor: pointer; box-shadow: none; max-width: none; white-space: normal; overflow: hidden; }
.kr-lineage .ik-lineage-vignette.ik-solid { border: 1.4px solid #2B2118; }
.kr-lineage .ik-lineage-vignette.ik-focus { font-weight: 700; box-shadow: none; border-width: 2px; }
.kr-lineage .ik-lineage-vignette.ik-on { background: #2B2118; color: rgb(246 240 226); }
.kr-lineage .ik-lineage-vname { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kr-lineage .ik-lineage-vdate { font-size: 10px; font-style: italic; color: rgb(92 72 52); font-weight: 400; }
.kr-lineage .ik-lineage-more { flex: 0 0 auto; text-align: center; font-size: 11px; padding: 2px 0 4px; }
.kr-lineage .ik-lineage-folio { position: absolute; left: 12px; right: 12px; bottom: 12px; max-height: 46%; overflow: auto; z-index: 3; }

.kr-statechips { display: flex; flex-wrap: wrap; gap: 6px; }
.kr-statechip { padding: 5px 9px; border: 0; border-radius: 999px; background: var(--kr-toggle); font-size: 12px !important; font-weight: 600 !important; cursor: pointer; white-space: nowrap; }
.kr-statechip.kr-on { background: var(--kr-accent-solid); color: var(--kr-on-accent) !important; }
.kr-statename { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.kr-traynote { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12px; color: var(--kr-secondary); }
.kr-traynote svg { flex: 0 0 auto; margin-top: 1px; }

/* The bow's energy gauge (the phone's MechanismEnergyGauge, 2026-10-13): stored in the limbs, carried by the arrow */
.kr-egauge { position: absolute; left: calc(env(safe-area-inset-left, 0px) + 12px); top: calc(env(safe-area-inset-top, 0px) + 72px); width: 168px; padding: 10px; border-radius: 10px; background: rgb(245 244 240 / 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 6px; pointer-events: none; z-index: 24; }
.kr-egauge[hidden] { display: none; }
.kr-egauge-row { display: flex; flex-direction: column; gap: 3px; }
.kr-egauge-word { font-size: 11px; font-weight: 600; color: #191E2A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-egauge-track { position: relative; height: 7px; border-radius: 999px; background: rgb(25 30 42 / 0.16); overflow: hidden; }
.kr-egauge-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: rgb(255 194 46); transition: width 80ms linear; }
.kr-egauge-moving .kr-egauge-fill { background: rgb(255 133 31); }
.kr-egauge-lit .kr-egauge-fill { box-shadow: 0 0 6px currentColor; }
.kr-egauge-stored { color: rgb(255 194 46); }
.kr-egauge-moving { color: rgb(255 133 31); }
.kr-egauge-word { color: #191E2A; }

/* decision 80: the board of one territory ("Open the board" on the map's focus, "Back to the map" on the board) */
.g-board-open { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); z-index: 30; padding: 10px 18px; border: 0; border-radius: 999px; background: #2B1D12; color: #F4EBDD; font: 600 14px/1.1 system-ui, sans-serif; box-shadow: 0 4px 14px rgb(0 0 0 / 0.25); cursor: pointer; }
.g-board-open[hidden], .g-board-row[hidden] { display: none; }
.kr-boardbar { position: absolute; left: 16px; right: 16px; top: calc(var(--kr-safe-top, 0px) + 64px); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; pointer-events: auto; }
.kr-boardback { padding: 7px 14px; border: 0; border-radius: 999px; background: rgb(25 30 42 / 0.85); color: #F5F4F0; font: 600 13px/1.1 system-ui, sans-serif; cursor: pointer; }
.kr-boardname { font: italic 500 15px/1.2 Georgia, serif; color: rgb(25 30 42 / 0.85); }
.kr-boardempty { flex-basis: 100%; font-size: 12.5px; color: rgb(25 30 42 / 0.7); }

/* MARK: Interaction mechanics (2026-11-16: hold.js, reveal.js, sound.js) */
/* A hold's charge: a ring round the tool that fills while it is pressed and empties faster when it is let go. */
.kr-tool { position: relative; }
.kr-holdring { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); pointer-events: none; color: var(--kr-accent); opacity: 0; transition: opacity 120ms linear; }
.kr-tool[data-hold="charging"] .kr-holdring, .kr-tool[data-hold="full"] .kr-holdring { opacity: 1; }
.kr-tool[data-hold="full"] { background: color-mix(in srgb, var(--kr-accent) 30%, transparent); }
@media (prefers-reduced-motion: reduce) { .kr-holdring { transition: none; } }

/* Arrival without holes: a quiet flat box where a model still loading will stand, at its final size; the model
   dissolves in over 0.4 s while the box goes. */
.kr-arrival { position: absolute; left: 0; top: 0; z-index: 1; box-sizing: border-box; border-radius: 14px; pointer-events: none; opacity: 0; background: rgb(25 30 42 / 0.05); box-shadow: inset 0 0 0 1px rgb(25 30 42 / 0.12); }
.kr-arrival[hidden] { display: none; }
.kr-app[data-look="macro"] .kr-arrival { background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.kr-app[data-arrival="waiting"] .kr-arrival { opacity: 1; }
.kr-app[data-arrival="waiting"][data-render="object"] .kr-canvas { opacity: 0; }
.kr-app[data-arrival="in"] .kr-arrival { animation: kr-arrival-out 400ms ease-out both; }
.kr-app[data-arrival="in"] .kr-canvas { animation: kr-arrival-in 400ms ease-out both; }
@keyframes kr-arrival-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes kr-arrival-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .kr-app[data-arrival="in"] .kr-arrival { animation: none; opacity: 0; }
  .kr-app[data-arrival="in"] .kr-canvas { animation: none; }
}

/* The ragged circular reveal: the outgoing view, kept as a still over the 3D view, opens from the touched point. */
.kr-reveal { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 3; pointer-events: none; }
.kr-reveal[hidden] { display: none; }

/* The sound's switch in the menu: its word, and its state at the right. */
.kr-menuswitch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kr-menustate { font-size: 13px !important; font-weight: 600 !important; padding: 3px 10px; border-radius: 999px; background: rgb(25 30 42 / 0.08); color: var(--kr-secondary) !important; }
.kr-menuswitch[aria-checked="true"] .kr-menustate { background: var(--kr-accent-solid); color: var(--kr-on-accent) !important; }

/* The object's constellation (decision 278, ninestars.js): the nine dimensions as a sky inside the ring of molten metal,
   above the nine rows. The sky is square, as wide as the card allows up to 357 px (the ring then stands 141 px from the middle, as in the app's 340 px box); the ring's fire is a canvas over it. */
.kr-stars { display: flex; flex-direction: column; gap: 8px; }
.kr-sky { position: relative; align-self: center; width: min(100%, 357px); aspect-ratio: 1; touch-action: pan-y; cursor: default; border-radius: 12px; outline-offset: 2px; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.kr-sky:focus-visible { outline: 2px solid var(--kr-accent); }
.kr-stars { overflow-x: clip; }
.kr-sky-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.kr-sky-fire { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; display: block; pointer-events: none; }   /* ninestars.js SKY.fire */
.kr-star-in { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.kr-star-now .kr-star-in { transform: scale(1.42); }
.kr-stars-banner { display: flex; flex-direction: column; gap: 2px; }
.kr-stars-bannertitle { margin: 0; font-size: 15px; font-weight: 600; white-space: pre-wrap; }
.kr-stars-ask { margin: 0; font-size: 13px; line-height: 1.35; color: var(--kr-secondary); }
.kr-stars-plate { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 10px; background: var(--kr-section); }
.kr-stars-line { margin: 0; font-size: 13px; }
.kr-stars-counts { font-weight: 600; }
.kr-stars-note { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--kr-secondary); }
.kr-stars-why { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; font-size: 12.5px !important; font-weight: 600; color: var(--kr-text) !important; cursor: pointer; }
.kr-stars-why[aria-expanded="true"] .kr-stars-chevron { transform: rotate(180deg); }
.kr-stars-reasons { display: flex; flex-direction: column; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .kr-star-in { transition: none; } }

/* "How it works" (decisions 317, 318): the guided tour of an object, over the stage; the page's own chrome steps aside */
.kr-app[data-tour] .kr-header, .kr-app[data-tour] .kr-bottom, .kr-app[data-tour] .kr-cardpanel { display: none; }
.kr-tour { position: absolute; inset: 0; z-index: 60; pointer-events: none; color: #f3ead6; font-family: inherit; }
.kr-tour > * { pointer-events: auto; }
.kr-tour-leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.kr-tour-leader line { stroke: #f0d58c; stroke-width: 1.4; stroke-dasharray: 4 3; stroke-opacity: .85; }
.kr-tour-leader circle { fill: #f0d58c; }
.kr-tour-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; background: linear-gradient(rgba(8, 12, 28, .78), rgba(8, 12, 28, 0)); }
.kr-tour-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(240, 213, 140, .5); background: rgba(8, 12, 28, .6); color: inherit; font-size: 16px; cursor: pointer; }
.kr-tour-heading { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.kr-tour-kicker { font-size: 12px; font-weight: 600; color: #f0d58c; }
.kr-tour-object { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-tour-tint { border: 1px solid rgba(240, 213, 140, .5); background: rgba(8, 12, 28, .6); color: inherit; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
.kr-tour-tint[aria-pressed="true"] { background: #b8923e; color: #14100a; }
.kr-tour-panel { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(560px, calc(100% - 32px)); box-sizing: border-box; padding: 14px; border-radius: 16px; background: rgba(10, 14, 32, .84); border: 1px solid rgba(184, 146, 62, .55); display: flex; flex-direction: column; gap: 8px; }
.kr-tour-headline { margin: 0; font-size: 19px; font-weight: 600; color: #f0d58c; }
.kr-tour-body { margin: 0; font-size: 16px; line-height: 1.4; }
.kr-tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kr-tour-count { font-size: 12.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.kr-tour-next { border: 0; border-radius: 999px; padding: 9px 18px; background: #b8923e; color: #14100a; font-weight: 600; font-size: 14px; cursor: pointer; }
.kr-tour-close:focus-visible, .kr-tour-tint:focus-visible, .kr-tour-next:focus-visible { outline: 2px solid #f5db8f; outline-offset: 2px; }
.kr-app[data-tour] ~ .dr-root, .kr-app[data-tour] ~ .g-toglobe { display: none; }   /* the depth ruler and the globe button wait outside the tour */
