/* Key Changer — keychanger.app/welcome (concept: drawn-not-pinned.png). Self-contained: colours, font and header are lifted from site.css; site.css is not loaded.
   Two views in one page: <body data-mode="pin"> (not pinned) or data-mode="usage" (pinned). Only the matching section shows.
   The Chrome picture is one inline SVG (viewBox 1000×580): it scales as a whole, like an image. Its Chrome colours follow
   prefers-color-scheme; html[data-chrome="light|dark"] forces one (used by the review boards). */
:root{
--ink:#292C33;--accent:#C62932;--accent-hover:#A9222A;--paper:#F7F8FA;
--pink:#FFD6D9;
--mark:#C62932;--halo:#FFFFFF;
--red:linear-gradient(135deg,#D23B44 0%,#C62932 52%,#B6232C 100%);
--font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
--mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
--pad:clamp(20px,5.5vw,80px);
/* Chrome, light (default theme) */
--ch-frame:#D3E3FD;--ch-bar:#FFFFFF;--ch-omni:#E9EEF6;--ch-icon:#474747;--ch-text:#1F1F1F;--ch-muted:#444746;
--ch-menu:#FFFFFF;--ch-line:#DADCE0;--ch-press:#E2E5EA;--ch-chip:#C3D5F5;--ch-avatar:#C2E7FF;--ch-avatar-ink:#0B57D0;
--ch-page:#F1F2F4;
color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-chrome="light"]){
  --ch-frame:#202124;--ch-bar:#35363A;--ch-omni:#202124;--ch-icon:#C4C7C5;--ch-text:#E3E3E3;--ch-muted:#B4B7BB;
  --ch-menu:#2B2C30;--ch-line:#4A4C50;--ch-press:#4A4C50;--ch-chip:#35363A;--ch-avatar:#004A77;--ch-avatar-ink:#C2E7FF;
  }
}
:root[data-chrome="dark"]{
  --ch-frame:#202124;--ch-bar:#35363A;--ch-omni:#202124;--ch-icon:#C4C7C5;--ch-text:#E3E3E3;--ch-muted:#B4B7BB;
  --ch-menu:#2B2C30;--ch-line:#4A4C50;--ch-press:#4A4C50;--ch-chip:#35363A;--ch-avatar:#004A77;--ch-avatar-ink:#C2E7FF;
}

*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;background:#C62932}
body{margin:0;min-height:100svh;overflow-x:clip;background:url(art/red-field.jpg) 50% 50%/cover no-repeat fixed,var(--red);color:#fff;font:400 17px/1.5 var(--font);-webkit-font-smoothing:antialiased}
h1,p,ol,figure{margin:0}
ol{padding:0;list-style:none}
img{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit}
a{color:#fff;text-decoration-thickness:1px;text-underline-offset:.22em}
a:hover{color:#fff;text-decoration-thickness:2px}
:focus-visible{outline:2px solid #fff;outline-offset:4px}
.kc-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- One view at a time ---------- */
body:not([data-mode="usage"]) [data-view="usage"]{display:none}
body[data-mode="usage"] [data-view="pin"]{display:none}

/* ---------- Header: mark + name only (site.css .site-header / .brand / .tile) ---------- */
.kc-top{position:absolute;top:0;inset-inline:0;z-index:5;display:flex;align-items:center;width:min(1240px,100% - 2 * var(--pad));min-height:clamp(64px,9svh,84px);margin-inline:auto}
.kc-brand{display:inline-flex;align-items:center;gap:12px;min-height:44px;color:#fff;font-size:18px;font-weight:750;letter-spacing:-.02em;line-height:1.15;text-decoration:none}
.kc-brand:hover{color:#fff}
.kc-tile{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(70,5,12,.25)}
.kc-tile img{width:26px;height:26px}

/* ---------- View: one screen, one column. The picture row takes whatever height is left ---------- */
.kc-view{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;justify-items:center;width:min(1240px,100% - 2 * var(--pad));height:clamp(700px,100svh,1100px);margin-inline:auto;padding-top:clamp(64px,9svh,84px);padding-bottom:clamp(14px,2.4svh,24px);text-align:center}
.kc-view[data-view="usage"]{grid-template-rows:auto auto minmax(0,1fr) auto auto}

.kc-title{display:grid;justify-items:center;gap:clamp(6px,1.2svh,12px)}
.kc-h1{position:relative;font-size:clamp(40px,min(4.6vw,7.4svh),66px);font-weight:800;line-height:1.02;letter-spacing:-.042em;text-wrap:balance}
.kc-sub{max-width:640px;color:var(--pink);font-size:clamp(18px,min(1.6vw,2.6svh),23px);font-weight:650;line-height:1.3;letter-spacing:-.01em;text-wrap:balance}

/* ---------- Entrance: headline, then the markers one by one. Confetti comes from the page script ---------- */
@media (prefers-reduced-motion:no-preference){
  .kc-h1{animation:kc-h1 .45s cubic-bezier(.2,.8,.2,1.2) both}
  .kc-pop{animation:kc-pop .4s .45s cubic-bezier(.2,.8,.3,1.3) both;transform-box:fill-box;transform-origin:center}
  .kc-pop--2{animation-delay:.62s}
  .kc-pop--3{animation-delay:.79s}
}
@keyframes kc-h1{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
@keyframes kc-pop{from{opacity:0;transform:scale(.55)}to{opacity:1;transform:none}}

/* ---------- Player (usage view, step 1): one big white pill, obviously a button ---------- */
.kc-player{display:grid;grid-template-columns:auto auto auto;align-items:center;justify-content:center;column-gap:16px;row-gap:8px;margin-top:clamp(12px,2svh,22px)}
.kc-play{display:inline-flex;align-items:center;gap:16px;min-height:72px;padding:8px 30px 8px 8px;border:0;border-radius:999px;background:#fff;color:var(--accent);font-size:clamp(18px,1.5vw,21px);font-weight:750;letter-spacing:-.01em;line-height:1.2;cursor:pointer;box-shadow:0 1px 2px rgba(70,5,12,.2),0 14px 28px -12px rgba(50,4,10,.6);transition:transform .15s,background-color .15s}
.kc-play:hover{background:var(--paper);color:var(--accent-hover);transform:translateY(-1px)}
.kc-play:active{transform:scale(.98)}
.kc-play:focus-visible{outline-offset:5px}
.kc-play-icon{position:relative;flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--accent)}
.kc-play-icon::before{content:"";width:0;height:0;margin-left:5px;border-left:19px solid #fff;border-block:12px solid transparent}
.kc-play-label--on{display:none}
[data-player][data-playing] .kc-play-icon::before{width:18px;height:20px;margin:0;border:0;background:linear-gradient(90deg,#fff 0 6px,transparent 6px 12px,#fff 12px 18px)}
[data-player][data-playing] .kc-play-label{display:none}
[data-player][data-playing] .kc-play-label--on{display:inline}
@media (prefers-reduced-motion:no-preference){[data-player][data-playing] .kc-play-icon{animation:kc-beat 1.2s ease-in-out infinite}}
@keyframes kc-beat{50%{box-shadow:0 0 0 7px rgba(198,41,50,.18)}}
.kc-credit{max-width:240px;margin-inline-start:4px;color:var(--pink);font-size:13px;line-height:1.35;text-align:start}

/* ---------- Picture row ---------- */
.kc-stage{container-type:size;display:grid;place-items:center;width:100%;min-height:0;margin-top:clamp(16px,3svh,32px)}
.kc-player+.kc-stage{margin-top:clamp(14px,2.4svh,24px)}
.kc-shot{display:block;width:min(100cqw,calc(100cqh * 1000 / 580),1000px);height:auto;aspect-ratio:1000/580;overflow:visible;filter:drop-shadow(0 22px 26px rgba(55,4,10,.42)) drop-shadow(0 2px 3px rgba(55,4,10,.25));direction:ltr}
.kc-shot text{font-family:var(--font)}
.c-frame{fill:var(--ch-frame)}.c-bar{fill:var(--ch-bar)}.c-omni{fill:var(--ch-omni)}.c-page{fill:var(--ch-page)}.c-menu{fill:var(--ch-menu)}
.c-press{fill:var(--ch-press)}.c-chip{fill:var(--ch-chip)}.c-avatar{fill:var(--ch-avatar)}.c-avatar-ink{fill:var(--ch-avatar-ink)}
.c-icon{fill:var(--ch-icon)}.c-stroke{fill:none;stroke:var(--ch-icon);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.c-text{fill:var(--ch-text)}.c-muted{fill:var(--ch-muted)}.c-line{fill:var(--ch-line)}
.c-menu-shadow{filter:drop-shadow(0 10px 18px rgba(20,24,32,.22)) drop-shadow(0 1px 3px rgba(20,24,32,.18))}
/* Markers: white circle, red edge and red number; red ring and hand-drawn red arrow on a thin white halo (reads on dark Chrome and on the red field) */
.m-ring-halo{fill:none;stroke:var(--halo);stroke-width:13}
.m-ring{fill:none;stroke:var(--mark);stroke-width:7}
.m-line-halo{fill:none;stroke:var(--halo);stroke-width:17;stroke-linecap:round}
.m-line{fill:none;stroke:var(--mark);stroke-width:10;stroke-linecap:round}
.m-badge{fill:#fff;stroke:var(--mark);stroke-width:5}
.m-num{fill:var(--mark);font-size:44px;font-weight:800;text-anchor:middle}

/* ---------- Step captions: white circle, red number, as in the picture ---------- */
.kc-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:12px clamp(32px,5vw,72px);margin-top:clamp(14px,2.6svh,26px)}
.kc-steps li{display:flex;align-items:center;gap:14px;font-size:clamp(20px,1.8vw,26px);font-weight:750;letter-spacing:-.015em;line-height:1.2}
.kc-n{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;color:var(--accent);font-size:24px;font-weight:800;line-height:1;letter-spacing:0;box-shadow:0 4px 10px -4px rgba(40,4,8,.6)}
.kc-player .kc-n{width:52px;height:52px;font-size:27px}

/* ---------- Fallback switch: one quiet line ---------- */
.kc-switch{margin-top:clamp(12px,2.2svh,22px);color:var(--pink);font-size:15px;line-height:1.4}
.kc-switch a{display:inline-flex;align-items:center;min-height:36px;margin-inline-start:4px;color:#fff;font-weight:650}

/* ---------- Narrow windows: same single column, normal flow, picture full width ---------- */
@media (max-width:720px){
  .kc-view,.kc-view[data-view="usage"]{display:flex;flex-direction:column;align-items:center;height:auto;min-height:100svh;padding-top:76px;padding-bottom:20px}
  .kc-top,.kc-view{width:calc(100% - 32px)}
  .kc-h1{font-size:clamp(34px,10vw,44px);letter-spacing:-.045em}
  .kc-sub{font-size:18px}
  .kc-stage{container-type:normal;display:block;margin-top:24px}
  .kc-shot{width:100%;filter:drop-shadow(0 12px 16px rgba(55,4,10,.4))}
  .kc-steps{flex-direction:column;align-items:flex-start;gap:14px;margin-top:24px}
  .kc-steps li{font-size:20px}
  .kc-n{width:40px;height:40px;font-size:21px}
  .kc-player{grid-template-columns:auto;justify-items:center;margin-top:24px}
  .kc-player .kc-n{display:none}
  .kc-credit{max-width:none;margin:0;text-align:center}
  .kc-play{min-height:64px;padding-inline-end:24px;font-size:18px}
  .kc-play-icon{width:48px;height:48px}
  .kc-switch{margin-top:auto;padding-top:28px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
}
