/* Name a kick: the page (/name-a-kick) and the tile on the home page. Built on tokens.css and base.css.
   Motion is transform and opacity only, on small layers; prefers-reduced-motion switches all of it off. */
.kn { max-width: 860px; padding-block: 18px 48px; display: grid; gap: var(--gap); }
.kn-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; }
.kn-back::before { content: "\2190"; margin-right: 8px; }
.kn-back:hover { color: var(--text); }
.kn-head, .kn-stage, .kn-mine { padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 12px; align-content: start; }
.kn-kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.kn-h1 { font-size: clamp(40px, 8vw, 84px); font-weight: 900; font-stretch: 118%; letter-spacing: -0.05em; line-height: 0.92; }
.kn-h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.kn-desc { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 56ch; }
.kn-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.kn-meta span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--hairline); }
.kn-note { color: var(--muted); font-size: 15px; line-height: 1.5; }
.kn-note b { color: var(--text); }
.kn-fine { color: var(--muted); font-size: 13px; }
.kn-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline-2); cursor: pointer; }
.kn-link:hover { text-decoration-color: currentColor; }

/* stage */
.kn-stage { position: relative; overflow: hidden; }
.kn-form { display: grid; gap: 12px; position: relative; z-index: 1; min-width: 0; }
.kn-form[hidden], .kn-who[hidden], .kn-as[hidden], .kn-err[hidden], .kn-mine[hidden], .kn-thanks[hidden] { display: none; }
.kn-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kn-more { display: grid; gap: 12px; }
.kn-more[hidden] { display: none; }
.kn-more.rise { animation: kn-rise 0.45s var(--ease-out); }
@keyframes kn-rise { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
.kn-who { display: grid; gap: 8px; }
.kn-as { color: var(--muted); font-size: 14px; }
.kn-as b { color: var(--text); font-weight: 700; }
.kn-code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

/* the kick drum behind the stage: every key sends a ring out of the corner */
.kn-pulse { position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; pointer-events: none; z-index: 0; }
.kn-pulse::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.32), transparent 68%); opacity: 0.5; }
.kn-pulse i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(var(--accent-rgb) / 0.55); opacity: 0; transform: scale(0.35); }
.kn-pulse.hit::before { animation: kn-core 0.5s var(--ease-out); }
.kn-pulse.hit i { animation: kn-ring 0.8s var(--ease-out); }
.kn-pulse.hit i:nth-child(2) { animation-delay: 0.08s; }
.kn-pulse.hit i:nth-child(3) { animation-delay: 0.16s; }
@keyframes kn-ring { 0% { opacity: 0.8; transform: scale(0.35); } 100% { opacity: 0; transform: scale(1); } }
@keyframes kn-core { 0% { transform: scale(0.8); opacity: 0.95; } 100% { transform: scale(1); opacity: 0.5; } }

/* the cells: 18 places, the first 8 are the minimum */
.kn-slots { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 4px; }
.kn-cell { position: relative; display: grid; place-items: center; height: 46px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.kn-cell.is-req { box-shadow: inset 0 0 0 1px var(--hairline-2), inset 0 -2px 0 rgb(var(--accent-rgb) / 0.28); }
.kn-cell.is-on { background: rgb(var(--accent-rgb) / 0.12); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.4); }
.kn-cell::after { content: ""; position: absolute; inset: -5px; border-radius: 13px; background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.55), transparent 70%); opacity: 0; pointer-events: none; }
.kn-cell.pop { animation: kn-pop 0.34s var(--ease-out); }
.kn-cell.pop::after { animation: kn-flash 0.5s var(--ease-out); }
@keyframes kn-pop { 0% { transform: scale(0.55) translateY(6px); } 55% { transform: scale(1.14); } 100% { transform: none; } }
@keyframes kn-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.kn-slots.is-ok .kn-cell.is-on { color: var(--accent); background: rgb(var(--accent-rgb) / 0.16); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.7); animation: kn-wave 0.55s var(--ease-out) calc(var(--i) * 16ms) both; }
@keyframes kn-wave { 0% { transform: none; } 40% { transform: translateY(-5px); } 100% { transform: none; } }
.kn-slots.is-bad .kn-cell.is-on { color: color-mix(in srgb, var(--danger) 70%, #fff); background: color-mix(in srgb, var(--danger) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 60%, transparent); }
.kn-slots.launch .kn-cell.is-on { animation: kn-lift 0.6s var(--ease-in-out) calc(var(--i) * 22ms) both; }
@keyframes kn-lift { 0% { transform: none; opacity: 1; } 100% { transform: translateY(-38px) scale(0.7); opacity: 0; } }

.kn-input { display: block; width: 100%; min-height: 58px; padding: 12px 18px; font-size: 22px; font-weight: 800; letter-spacing: 0.01em; color: var(--text); background: var(--surface-2); border: 0; border-radius: var(--radius-s); outline: 0; box-shadow: inset 0 0 0 1px var(--hairline-2); transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); appearance: none; -webkit-appearance: none; }
.kn-input::placeholder { color: #5f6964; font-weight: 600; }
.kn-input:focus { background: #171d1a; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px rgb(var(--accent-rgb) / 0.12); }
.kn-hint { min-height: 20px; color: var(--muted); font-size: 14px; }
.kn-hint.is-ok { color: var(--accent); }
.kn-hint.is-bad { color: color-mix(in srgb, var(--danger) 60%, #fff); }
.kn-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; min-height: 44px; padding-top: 2px; cursor: pointer; color: var(--muted); }
.kn-check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.kn-check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline-2); }
.kn-go { min-height: 54px; width: 100%; font-size: 17px; }
.kn-err { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: color-mix(in srgb, var(--danger) 60%, #fff); font-size: 14px; line-height: 1.45; }
.kn-stage.shake { animation: kn-shake 0.42s var(--ease-out); }
@keyframes kn-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* your names */
.kn-thanks { color: var(--accent); font-weight: 700; font-size: 16px; }
.kn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kn-card { padding: 10px 16px; border-radius: 999px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; background: rgb(var(--accent-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.35); }
.kn-card.is-new { animation: kn-land 0.7s var(--ease-out); }
@keyframes kn-land { 0% { transform: translateY(18px) scale(0.7); opacity: 0; } 60% { transform: translateY(-3px) scale(1.06); opacity: 1; } 100% { transform: none; } }

/* home tile */
.b-kn { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(16px, 3vw, 40px); padding: clamp(18px, 2.6vw, 30px); align-items: center; overflow: hidden; }
.b-kn > .tile-link { position: absolute; inset: 0; z-index: 3; }
.bkn-tx { display: grid; gap: 12px; justify-items: start; min-width: 0; position: relative; z-index: 1; }
.bkn-go { min-height: 48px; margin-top: 4px; }
.kn-slots-demo { position: relative; z-index: 1; pointer-events: none; }
.kn-slots-demo .kn-cell { height: 42px; }
@media (max-width: 860px) {
  .b-kn { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .kn-slots { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .kn-cell { height: 42px; font-size: 18px; }
  .kn-pulse { right: -110px; top: -110px; }
  .kn-input { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .kn-pulse i, .kn-pulse::before, .kn-cell, .kn-cell::after, .kn-card, .kn-stage, .kn-more { animation: none !important; transition: none !important; }
}
