/* Smiley Keys: the wizard's family (base.css tokens, ink borders, hard shadows) in Play with Jev's pink and sky.
   The faces are set in a monospace stack so they look typed, the way people write them. */
:root { --sk-pink: #e0628a; --sk-sky: #2f8fc4; --sk-face: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
:root[data-theme="dark"] { --sk-pink: #f386a1; --sk-sky: #8cc4e8; }

.sk { padding-top: 2rem; }
.sk-head { text-align: center; margin-bottom: 22px; }
.sk-title { margin: 0; font: 700 clamp(2.6rem, 12vw, 3.6rem)/1 var(--pixel); letter-spacing: .03em; color: var(--sk-pink); text-shadow: 3px 3px 0 var(--ink); }
.sk-sub { margin: 10px 0 0; font-size: 1.1rem; }
.sk-sub b { color: var(--sk-sky); }
.sk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sk-panel { background: var(--card); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--sk-pink); padding: 20px 18px; margin-top: 18px; }
.sk-write { box-shadow: 6px 6px 0 var(--sk-sky); padding: 16px 14px; }

/* rules */
.sk-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.sk-faces span { padding: 10px 14px; font: 700 1.5rem/1 var(--sk-face); background: var(--bg); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--sk-sky); }
.sk-faces span:nth-child(2n) { box-shadow: 3px 3px 0 var(--sk-pink); }
.sk-steps { margin: 18px 0 0; padding-left: 1.4rem; font-size: 1.05rem; }
.sk-steps li { margin-bottom: 6px; }
.sk-steps li::marker { font-weight: 700; color: var(--sk-pink); }
kbd { padding: 1px 6px; font: 700 .95rem/1.3 var(--sans); background: var(--bg); border: 2px solid var(--ink); border-bottom-width: 3px; }

.sk-btn { display: inline-block; padding: 12px 20px; font: 700 1rem/1 var(--sans); color: var(--ink); background: var(--card); border: 3px solid var(--ink);
  border-radius: 0; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform .08s var(--ease), box-shadow .08s var(--ease); }
.sk-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.sk-go { width: 100%; margin-top: 18px; padding: 16px; font: 700 1.6rem/1 var(--pixel); color: #fff; background: var(--sk-pink); }
.sk-go:hover { filter: brightness(1.06); }
.sk-quiet { background: var(--bg); }

/* the writer: the face row sits above the message on screen but after it in the page's order, so Tab from the
   message lands on the first face */
.sk-box { display: flex; flex-direction: column; gap: 12px; }
.sk-row { order: -1; display: flex; flex-wrap: wrap; gap: 10px 8px; min-height: 3.4rem; align-items: stretch; transition: opacity .15s var(--ease); }
.sk-row.wait { opacity: .45; }
.sk-hint { margin: 0; align-self: center; font-size: 1rem; color: var(--muted); }
.sk-chip { position: relative; flex: 1 0 auto; min-width: 3.4rem; padding: 10px 10px 8px; font: inherit; color: var(--ink); background: var(--bg);
  border: 3px solid var(--ink); border-radius: 0; box-shadow: 3px 3px 0 var(--sk-sky); cursor: pointer; }
.sk-chip:first-of-type { box-shadow: 3px 3px 0 var(--sk-pink); }
.sk-chip:hover { background: var(--tint); }
.sk-chip:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.sk-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sk-key { position: absolute; top: 2px; left: 5px; font: 700 .85rem/1 var(--sans); color: var(--muted); }
.sk-face { font: 700 1.3rem/1.2 var(--sk-face); white-space: nowrap; }
.sk-text { display: block; width: 100%; padding: 12px 14px; font: 1.1rem/1.45 var(--sans); color: var(--ink); background: var(--bg);
  border: 3px solid var(--ink); border-radius: 0; resize: vertical; appearance: none; }
.sk-text:focus { outline: none; box-shadow: 4px 4px 0 var(--gold); }

.sk-status { min-height: 1.5em; margin: 10px 0 0; font-size: 1rem; }
.sk-meter { margin: 4px 0 12px; padding: 10px 12px; font-size: 1rem; font-variant-numeric: tabular-nums; background: var(--bg); border: 2px dashed var(--ink); }
.sk-meter p { margin: 2px 0; }
.sk-meter .sk-mh { margin-bottom: 4px; font-weight: 700; color: var(--sk-pink); }
.sk-mk { display: inline-block; min-width: 5.6em; color: var(--muted); }
.sk-meter b { color: var(--ink); }
.sk-actions { display: flex; gap: 12px; margin-top: 6px; }
.sk-copy { flex: 1; background: var(--sk-sky); color: #04202b; }

.sk-how { margin-top: 18px; border-top: 2px dashed var(--line); padding-top: 14px; font-size: 1rem; }
.sk-how summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.sk-nums { margin: 12px 0; padding-left: 1.4rem; }
.sk-nums li { margin-bottom: 8px; }
.sk-nums .sk-face { font-size: 1.1rem; margin-right: 8px; }
.sk-means { color: var(--muted); }
.sk-read { margin: 12px 0 0; }
.sk-read q { font-weight: 700; }
.sk-pf { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }

.sk-credit { margin-top: 28px; font-size: 1rem; color: var(--muted); }
