/* Water Sort's copy of the Handeware web kit look (from _kit/kit.css), adapted
   to a light, calm table: system type only, no bytes from the web. */
:root{
  --bg:#EEF2F6;--bg-hi:#FFFFFF;--ink:#17212B;--ink-soft:#4A5866;--ink-dim:#7A8794;
  --hair:rgba(23,33,43,.12);--accent:#2F6FEB;--accent-lo:#1F55C4;--accent-hi:#5B8FF5;--good:#1E9E6A;--pick:#2F6FEB;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font:18px/1.45 var(--sans);color:var(--ink);background:var(--bg);-webkit-tap-highlight-color:transparent;overflow:hidden}
button{font:inherit;color:inherit;cursor:pointer}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.screen{position:absolute;inset:0;display:flex;flex-direction:column}

.title{font-weight:800;color:var(--ink);letter-spacing:-.01em;margin:0;line-height:1}

/* buttons: a blue pill, plain links, round icon buttons */
.pill{border:0;border-radius:999px;padding:.7em 2.2em;font-weight:750;font-size:1.15em;color:#fff;min-height:48px;
  background:linear-gradient(180deg,var(--accent-hi),var(--accent));box-shadow:0 3px 0 var(--accent-lo),0 8px 18px rgba(47,111,235,.28)}
.pill:active{transform:translateY(2px);box-shadow:0 1px 0 var(--accent-lo),0 4px 10px rgba(47,111,235,.25)}
.link{background:none;border:0;color:var(--accent-lo);text-decoration:underline;text-underline-offset:.2em;padding:.4em .6em;min-height:44px;min-width:44px}
.jewel{width:3em;height:3em;min-width:44px;min-height:44px;border-radius:50%;border:1px solid var(--hair);display:grid;place-items:center;padding:0;
  background:var(--bg-hi);box-shadow:0 2px 8px rgba(23,33,43,.1)}
.jewel svg{width:1.4em;height:1.4em;fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.jewel:disabled{opacity:.4}
.jewel:focus-visible,.pill:focus-visible,.link:focus-visible,.choice:focus-visible,.row:focus-visible,.toggle:focus-visible,.x:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* cards */
.veil{position:fixed;inset:0;background:rgba(23,33,43,.38);display:grid;place-items:center;z-index:20;padding:1em;animation:fade .18s ease-out}
.card{background:var(--bg-hi);border-radius:1.2em;box-shadow:0 20px 50px rgba(23,33,43,.28);width:min(26em,100%);max-height:calc(100% - 1em);overflow:auto;
  padding:1.3em 1.4em 1.1em;position:relative;animation:pop .22s cubic-bezier(.2,1.4,.4,1)}
.card h2{font:800 1.5em/1.15 var(--sans);color:var(--ink);text-align:center;margin:0 1.2em .6em}
.card p{margin:.3em 0;text-align:center;color:var(--ink-soft)}
.card .x{position:absolute;right:.5em;top:.5em;width:44px;height:44px;border-radius:50%;border:0;background:none}
.card .x svg{width:1.2em;height:1.2em;fill:none;stroke:var(--ink-soft);stroke-width:2.2;stroke-linecap:round;vertical-align:middle}
.card .actions{display:flex;flex-direction:column;align-items:center;gap:.3em;margin-top:.9em}
@keyframes fade{from{opacity:0}}
@keyframes pop{from{transform:scale(.92);opacity:0}}
.rows{display:flex;flex-direction:column;gap:.5em}
.row{display:flex;align-items:center;justify-content:space-between;gap:1em;padding:.6em .9em;min-height:52px;border-radius:.8em;background:var(--bg);border:1px solid var(--hair);width:100%;text-align:left}
.row b{font-weight:700}
.row small{display:block;color:var(--ink-soft);font-size:.8em}
.choices{display:flex;gap:.4em;flex-wrap:wrap}
.choice{border:1px solid var(--hair);background:var(--bg);border-radius:.7em;padding:.5em .8em;min-width:48px;min-height:48px;color:var(--ink);font-weight:700}
.choice[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}
.toggle{width:3.2em;height:1.8em;border-radius:999px;border:0;background:#C9D1DA;position:relative;flex:none;padding:0}
.toggle::after{content:"";position:absolute;top:.2em;left:.2em;width:1.4em;height:1.4em;border-radius:50%;background:#fff;transition:left .2s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.toggle[aria-pressed=true]{background:var(--good)}
.toggle[aria-pressed=true]::after{left:1.6em}
.stats{display:flex;justify-content:center;gap:1.3em;margin:.2em 0 .6em;color:var(--ink-soft);text-align:center;flex-wrap:wrap;font-size:.85em}
.stats b{display:block;color:var(--ink);font:800 1.7em/1.1 var(--sans)}
.note{color:var(--ink-soft);font-size:.9em;text-align:center}
.toast{position:fixed;left:50%;bottom:6em;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:999px;padding:.6em 1.2em;z-index:30;pointer-events:none;white-space:nowrap;max-width:calc(100% - 2em);animation:fade .2s}
@media (max-width:420px){body{font-size:16px}}
@media (min-width:700px) and (min-height:700px) and (pointer:coarse){body{font-size:21px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.store-badge{display:inline-flex;height:52px;align-items:center}
.store-badge img{height:52px;width:auto;display:block}
.apps{display:flex;gap:.6em;justify-content:center;flex-wrap:wrap}
.card .app-icon{display:block;width:112px;height:112px;border-radius:26px;margin:0 auto .4em}

/* Handeware web-game shell v1: the way back to the arcade, the same in every
   game. Shown only while the game's home screen is (#home without [hidden]). */
.hw-arcade{display:none;position:fixed;z-index:50;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));align-items:center;gap:6px;min-height:44px;padding:0 16px 0 12px;border-radius:999px;background:rgba(255,255,255,.94);color:#121417;font:700 17px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.hw-arcade:hover{background:#fff}
.hw-arcade svg{width:18px;height:18px;flex:none}
body:has(#home:not([hidden])) .hw-arcade{display:inline-flex}
@media (max-width:760px){html:not(.hw-embed) body:has(#home:not([hidden])) #home{padding-top:max(64px,calc(env(safe-area-inset-top) + 58px))!important}}
html.hw-embed .hw-arcade{display:none!important}
