/* Molar & Sons Family Dentistry: calm, sincere, slightly dated. The form does the rest. */
:root {
  --mint: #8fd9c4; --mint-50: #eaf8f3; --mint-100: #d5f1e8; --mint-200: #bfeadd;
  --teal: #1f6f6b; --teal-dark: #154e4b; --ink: #1d3b3a; --muted: #4d7270;
  --coral: #ff7a66; --coral-dark: #d94f38; --butter: #ffe08a; --paper: #ffffff; --line: #c6e3da;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", Verdana, Arial, sans-serif;
  --rh: 48px;
  --shadow: 0 1px 0 #fff inset, 0 10px 28px -14px rgba(21, 78, 75, .45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; font: 16px/1.5 var(--sans); color: var(--ink);
  background: var(--mint-50) linear-gradient(#f6fcfa, var(--mint-50) 420px);
  min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
img.missing { visibility: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--teal-dark); margin: 0; line-height: 1.15; }
p { margin: 0; }
.wrap { width: min(100% - 32px, 820px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- chrome */
.exhibit {
  background: var(--teal-dark); color: #e9fbf5; text-align: center; font-size: 12.5px; letter-spacing: .08em;
  padding: 5px 12px; text-transform: uppercase;
}
.exhibit b { color: var(--butter); letter-spacing: .14em; }
.site {
  position: sticky; top: 0; z-index: 30; background: linear-gradient(#ffffff, #f1fbf7);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px -14px rgba(21, 78, 75, .6);
}
.site-in { display: flex; align-items: center; gap: 18px; padding: 8px 0; width: min(100% - 32px, 1080px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; background: var(--mint) radial-gradient(circle at 50% 42%, #fff 0 34%, transparent 36%); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font: 700 22px/1.1 var(--serif); color: var(--teal-dark); }
.brand-text i { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; font-size: 14px; }
.nav span { padding: 6px 11px; border-radius: 6px 6px 0 0; color: var(--teal); border-bottom: 2px solid transparent; cursor: default; }
.nav .on { background: var(--mint-100); border-bottom-color: var(--teal); font-weight: 700; }
.site-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.session {
  font-size: 13px; padding: 5px 10px; border-radius: 999px; background: #fff7dc; border: 1px solid #f0d27a; color: #6b5200; white-space: nowrap;
}
.session b { font-variant-numeric: tabular-nums; }
.session.urgent { background: #ffe5df; border-color: var(--coral); color: #9b2f1c; animation: pulse 1s ease-in-out infinite; }
.session.renewed { animation: renew .7s ease-out; }
.sound { font-size: 12px; padding: 5px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--teal); }
.sound[aria-pressed="false"] { opacity: .65; }
.sound[aria-pressed="false"] .s-ico { text-decoration: line-through; }
.s-ico { display: none; font-weight: 700; }

.hero { position: relative; height: 224px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--mint-100); }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 70% 52%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 252, 250, .96) 0 34%, rgba(246, 252, 250, .55) 58%, rgba(246, 252, 250, 0) 80%); }
.hero-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; width: min(100% - 32px, 1080px); }
.kicker { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-dark); font-weight: 700; }
.hero h1 { font-size: clamp(25px, 3.6vw, 40px); max-width: 17ch; margin: 6px 0 8px; }
.hero-sub { font-size: 17px; color: var(--teal); max-width: 44ch; }

.main { padding: 26px 0 150px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.form { padding: 22px 24px 18px; }
.form-head h2 { font-size: 26px; }
.form-head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.req { color: var(--coral-dark); font-weight: 700; }
.progress { height: 8px; border-radius: 99px; background: var(--mint-100); margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--teal)); transform-origin: left; transform: scaleX(0); transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
.progress-note { font-size: 12.5px !important; text-transform: uppercase; letter-spacing: .1em; }
.form-foot { font-size: 12.5px; color: var(--muted); text-align: center; padding-top: 14px; }

.fields { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.field { border: 1px solid var(--line); border-radius: 10px; background: #fbfefd; transition: border-color .3s, background .3s, box-shadow .3s; }
.field-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-height: 46px; }
.num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--sans);
  background: var(--mint-100); color: var(--teal);
}
.label { font-weight: 700; color: var(--teal-dark); }
.status { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; overflow-wrap: anywhere; min-width: 0; }
.field.is-locked { opacity: .62; cursor: not-allowed; }
.field.is-locked .status::before { content: "🔒 "; font-size: 11px; }
.field.is-active { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(143, 217, 196, .45); }
.field.is-active .num { background: var(--teal); color: #fff; }
.field.is-active .status { color: var(--coral-dark); font-weight: 700; }
.field.is-done .num { background: var(--teal); color: #fff; font-size: 0; }
.field.is-done .num::after { content: "✓"; font-size: 14px; }
.field.is-done .status { color: var(--teal); }
.field.is-skipped .num { background: var(--coral); }
.field.is-skipped .num::after { content: "↷"; }
.field.is-skipped .status { color: var(--coral-dark); font-style: italic; }
.field-body:empty { display: none; }
.field-body { padding: 4px 14px 12px; }
.game { position: relative; }
.skip-row { display: flex; justify-content: flex-end; margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.skip { background: none; border: 0; padding: 4px 2px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.skip:hover { color: var(--coral-dark); }

/* ---------------------------------------------------------------- controls */
.btn {
  border: 1px solid var(--teal-dark); border-radius: 8px; padding: 9px 16px; font-weight: 700; color: #fff;
  background: linear-gradient(#2c8c86, var(--teal)); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 2px 0 var(--teal-dark);
  transition: transform .08s, filter .15s, box-shadow .08s; touch-action: manipulation;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 0 0 var(--teal-dark); }
.btn:disabled { filter: grayscale(.7); opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-coral { background: linear-gradient(#ff907f, var(--coral)); border-color: var(--coral-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 2px 0 var(--coral-dark); color: #4a130a; }
.btn-ghost { background: #fff; color: var(--teal); box-shadow: 0 2px 0 var(--line); border-color: var(--line); }
.btn-big { font-size: 22px; padding: 14px 24px; }
.lbl { display: block; font-size: 13.5px; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.inp {
  width: 100%; min-width: 0; font: 17px var(--sans); color: var(--ink); padding: 9px 11px; border: 1px solid #9ccdc0; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 4px rgba(21, 78, 75, .08) inset;
}
.inp:focus { outline: 3px solid rgba(143, 217, 196, .8); border-color: var(--teal); }
.row { display: flex; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; margin-top: 10px; }
.row.between { justify-content: space-between; margin-top: 10px; flex-wrap: wrap; }
.help { font-size: 14px; color: var(--muted); margin: 6px 0; }
.help.small { font-size: 12.5px; }
.help.warn { color: var(--coral-dark); font-weight: 700; }
.err { font-size: 14px; color: var(--coral-dark); font-weight: 700; min-height: 0; margin: 4px 0; }
.err:empty { display: none; }
.err.info { color: var(--teal); }
.readout { font: 700 19px var(--serif); color: var(--teal-dark); margin: 8px 0 2px; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- 1. name */
.slots { font: 700 22px var(--serif); color: var(--teal-dark); margin: 6px 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px; }
.slots .hello { margin-right: 6px; }
.slot-l { display: inline-block; min-width: .8em; text-align: center; color: #a9cfc5; }
.slot-l.got { color: var(--teal-dark); animation: pop .3s; }
.slot-l.next { color: var(--coral); animation: blink 1s steps(2) infinite; }
.next-l { font: 13px var(--sans); color: var(--muted); margin-left: 10px; white-space: pre; }
.rain {
  position: relative; height: 300px; border-radius: 12px; overflow: hidden; touch-action: none; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .7) 2px, transparent 3px) 0 0 / 28px 28px,
    linear-gradient(#dff5ee, #c4ecdf);
}
.rain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(#b2e3d4, #9fd9c8); border-top: 1px solid #8ccdb9; }
.drop {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; will-change: transform;
  font: 700 22px var(--serif); color: var(--teal-dark); background: linear-gradient(#fff, #f2fbf8); border: 1px solid #9ccdc0;
  box-shadow: 0 3px 0 #b7dfd3, 0 8px 12px -6px rgba(21, 78, 75, .4); pointer-events: none;
}
.cup { position: absolute; left: 0; bottom: 6px; width: 84px; height: 84px; will-change: transform; pointer-events: none; z-index: 2; }
.cup img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(21, 78, 75, .28)); transform-origin: 50% 100%; }
.cup img.missing { visibility: visible; content: none; }
.cup.gulp img { animation: gulp .28s; }

/* ------------------------------------------------------------- 2. phone */
.slot { display: flex; align-items: flex-end; gap: 10px; margin: 8px 0; }
.slot-cab { flex: 1; min-width: 0; max-width: 560px; }
.slot-crest { width: 100%; height: auto; display: block; position: relative; z-index: 1; pointer-events: none; }
.slot-body {
  margin: -2.2% 1.2% 0; padding: 16px 12px 10px; border-radius: 0 0 14px 14px; border: 3px solid #17756f; border-top: 0;
  background: linear-gradient(#94e0ce, #94e0ce 60%, #7fd3bf); box-shadow: 0 6px 0 #17756f, 0 14px 18px -10px rgba(21, 78, 75, .55);
}
.slot-win { display: flex; gap: 3px; padding: 6px; border-radius: 10px; background: var(--teal-dark); box-shadow: 0 3px 8px rgba(0, 0, 0, .35) inset; }
.reel-col { flex: 1 1 0; min-width: 0; display: grid; gap: 3px; }
.reel-col.gap { margin-left: 7px; }
.nudge { border: 0; border-radius: 5px; height: 24px; padding: 0; font-size: 11px; line-height: 1; color: #063b38; background: #6fc2ad; touch-action: manipulation; }
@media (hover: hover) { .nudge:hover { background: var(--butter); } }
.nudge:active { transform: scale(.92); }
.reel {
  position: relative; height: var(--rh); overflow: hidden; border: 0; border-radius: 6px; padding: 0;
  background: linear-gradient(#e9efed, #fff 30%, #fff 70%, #dfe8e5); box-shadow: 0 0 0 1px #0d3836 inset; touch-action: manipulation;
}
.strip { display: block; transform: translateY(calc(var(--rh) * var(--d, 0) * -1)); transition: transform .38s cubic-bezier(.2, 1.5, .4, 1); will-change: transform; }
.strip span { display: grid; place-items: center; height: var(--rh); font: 700 26px var(--serif); color: var(--teal-dark); }
.strip.spin { transition: none; animation: spin .26s linear infinite; filter: blur(1.3px); }
.reel[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--coral) inset; background: #fff1ee; }
.held-tag { position: absolute; left: 0; right: 0; bottom: 0; font: 700 8px/11px var(--sans); letter-spacing: .06em; color: #fff; background: var(--coral-dark); opacity: 0; font-style: normal; }
.reel[aria-pressed="true"] .held-tag { opacity: 1; }
.slot-tray { height: 12px; margin: 10px 18px 0; border-radius: 0 0 10px 10px; background: linear-gradient(var(--coral), var(--coral-dark)); box-shadow: 0 3px 0 rgba(0, 0, 0, .15) inset; }
.lever {
  flex: none; width: 58px; height: 196px; padding: 0 0 6px; border: 0; background: none; position: relative; touch-action: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.lever img { width: 34px; height: 172px; object-fit: contain; transform-origin: 50% 93%; transition: transform .2s; filter: drop-shadow(0 4px 4px rgba(21, 78, 75, .3)); }
.lever span { font: 700 11px var(--sans); letter-spacing: .12em; color: var(--coral-dark); }
@media (hover: hover) { .lever:hover img { transform: rotate(6deg); } }
.lever.pulled img { animation: lever .55s cubic-bezier(.3, 1.6, .5, 1); }
.credits { font-size: 13.5px; color: var(--muted); }
.credits.debt { color: var(--coral-dark); font-weight: 700; }

/* --------------------------------------------------------------- 3. dob */
.dob-out { display: block; font: 700 clamp(26px, 6vw, 40px)/1.1 var(--serif); color: var(--teal-dark); text-align: center; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.dob-wrap { padding: 6px 2px 0; }
.dob-range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: grab; touch-action: pan-y; }
.dob-range::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--mint-100), var(--mint)); border: 1px solid #8ccdb9; }
.dob-range::-moz-range-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--mint-100), var(--mint)); border: 1px solid #8ccdb9; }
.dob-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb3a6, var(--coral) 60%, var(--coral-dark)); border: 2px solid #fff; box-shadow: 0 3px 6px rgba(21, 78, 75, .4); }
.dob-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; box-shadow: 0 3px 6px rgba(21, 78, 75, .4); }
.dob-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.breeze { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.sock { flex: none; width: 3px; height: 34px; position: relative; background: var(--teal); border-radius: 2px; margin: 0 40px; }
.sock i {
  position: absolute; left: 0; top: 1px; width: 36px; height: 14px; transform-origin: 0 50%;
  background: repeating-linear-gradient(90deg, var(--coral) 0 9px, #fff 9px 18px); clip-path: polygon(0 0, 100% 22%, 100% 78%, 0 100%); transition: transform .5s ease-out;
}
.fine { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* ------------------------------------------------------------- 4. email */
.fake-input {
  min-height: 44px; display: flex; align-items: center; padding: 8px 11px; border: 1px solid #9ccdc0; border-radius: 8px; background: #fff;
  font: 18px ui-monospace, Consolas, "Courier New", monospace; overflow: hidden; box-shadow: 0 2px 4px rgba(21, 78, 75, .08) inset;
}
.fake-input.ok { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(143, 217, 196, .6); }
.fake-text { white-space: pre; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.caret { width: 2px; height: 22px; background: var(--teal-dark); margin-left: 1px; animation: blink 1s steps(2) infinite; flex: none; }
.kb { position: relative; margin: 8px 0 4px; height: 230px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.key {
  position: absolute; left: 0; top: 0; padding: 0; border: 1px solid #9ccdc0; border-radius: 7px; font: 700 17px var(--sans); color: var(--teal-dark);
  background: linear-gradient(#fff, #edf8f4); box-shadow: 0 2px 0 #b7dfd3; transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), background .15s; touch-action: manipulation;
}
@media (hover: hover) { .key:hover { background: var(--butter); } }
.key:active { box-shadow: none; }
.key.wide-txt { font-size: 12px; }
.key.at { background: linear-gradient(#ffd3cb, #ffb3a6); border-color: var(--coral-dark); color: #6b1c0f; transition-duration: .16s; z-index: 2; }
.key.at.tired { animation: pant .5s ease-in-out infinite; background: var(--butter); }
.kb.no-anim .key { transition: none; }

/* -------------------------------------------------------------- 5. time */
.clock-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.clock { width: 236px; height: 236px; flex: none; touch-action: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 8px 10px rgba(21, 78, 75, .25)); }
.c-rim { fill: var(--teal); }
.c-face { fill: #fff; stroke: var(--mint); stroke-width: 3; }
.c-tick { stroke: #9ccdc0; stroke-width: 1.2; }
.c-tick.big { stroke: var(--teal); stroke-width: 2.4; }
.c-num { font: 700 15px var(--serif); fill: var(--teal-dark); pointer-events: none; }
.c-pin { fill: var(--coral-dark); pointer-events: none; }
.hand { cursor: grab; outline: none; }
.hand .h-line { stroke-linecap: round; transition: stroke .15s; }
.hand .h-hit { stroke: transparent; stroke-width: 26; stroke-linecap: round; }
.hand.hour .h-line { stroke: var(--teal-dark); stroke-width: 7; }
.hand.minute .h-line { stroke: var(--coral); stroke-width: 4.5; }
.hand.dragging .h-line { stroke: #f0b400; }
@media (hover: hover) { .hand:hover .h-line { stroke: #f0b400; } }
.hand:focus-visible .h-line { stroke: #f0b400; stroke-width: 8; }
.hand.dragging { cursor: grabbing; }
.clock-side { flex: 1; min-width: 200px; }

/* ---------------------------------------------------------- 6. password */
.pw { resize: vertical; min-height: 92px; font-family: ui-monospace, Consolas, "Courier New", monospace; line-height: 1.45; }
.tries { font-size: 13px; color: var(--muted); }
.rules { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.rules li { display: flex; gap: 8px; align-items: baseline; padding: 4px 8px; border-radius: 6px; background: var(--mint-50); }
.rules li i { font-style: normal; font-weight: 700; width: 14px; flex: none; }
.rules li.good { color: var(--teal); }
.rules li.bad { color: #9b2f1c; background: #fff0ec; }
.rules li.new { animation: newrule .7s ease-out; }
.syl { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- 7. robot */
.flee { position: relative; height: 200px; border: 1px dashed #9ccdc0; border-radius: 12px; background: var(--mint-50); overflow: hidden; touch-action: manipulation; }
.flee-card {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 14px -10px rgba(21, 78, 75, .6);
}
.flee-socket { width: 30px; height: 30px; border: 2px dashed #b9d9d0; border-radius: 5px; flex: none; }
.flee-label { font-weight: 700; color: var(--ink); white-space: nowrap; }
.flee-brand { display: grid; font: 700 10px var(--sans); color: var(--teal); text-align: center; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.flee-brand small { font-weight: 400; color: var(--muted); font-size: 8px; }
.flee-box {
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; padding: 0; border: 2px solid var(--teal); border-radius: 5px; background: #fff; z-index: 3;
  box-shadow: 0 3px 6px rgba(21, 78, 75, .3); transition: transform .17s cubic-bezier(.3, 1.4, .5, 1); display: grid; place-items: center;
}
.flee-box.no-anim { transition: none; }
.flee-box i { font-style: normal; font-weight: 700; color: #fff; opacity: 0; }
.flee-box.tired { animation: pant .5s ease-in-out infinite; border-color: #c79a1c; background: #fff7dc; }
.flee-box.on { background: var(--teal); transition-duration: .45s; }
.flee-box.on i { opacity: 1; }
.regret-head { background: var(--teal); color: #fff; border-radius: 8px 8px 0 0; padding: 10px 14px; display: grid; max-width: 372px; }
.regret-head span { font-size: 13px; opacity: .9; }
.regret-head b { font: 700 26px var(--serif); line-height: 1.1; }
.regret-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 372px; padding: 4px; background: #fff; border: 1px solid var(--line); border-top: 0; }
.tile { position: relative; padding: 0; border: 0; aspect-ratio: 1; background: linear-gradient(135deg, var(--mint-100), #ffe2dc); overflow: hidden; transition: transform .12s; touch-action: manipulation; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile i { position: absolute; left: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 13px/22px var(--sans); text-align: center; opacity: 0; transform: scale(.4); transition: .15s; }
.tile[aria-pressed="true"] { transform: scale(.86); outline: 3px solid var(--teal); }
.tile[aria-pressed="true"] i { opacity: 1; transform: none; }

/* ------------------------------------------------------------- 8. terms */
.terms {
  height: 250px; overflow: hidden; border: 1px solid #9ccdc0; border-radius: 8px; background: #fffef8; touch-action: none;
  box-shadow: 0 0 18px rgba(21, 78, 75, .1) inset; font-family: var(--serif);
}
.screen { min-height: 250px; padding: 16px 18px; border-bottom: 1px dashed #d8cfa8; display: flex; flex-direction: column; }
.screen-n { font: 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9a8a4a; }
.screen h4 { font-size: 20px; margin: 6px 0 8px; }
.screen p { font-size: 15.5px; }
.screen .boiler { margin-top: auto; padding-top: 10px; font-size: 12px; color: #9a8a4a; font-style: italic; }
.terms-bar { margin-top: 8px; }
.terms-where { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn-hold { min-width: 150px; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; }
.btn-hold.down { transform: translateY(2px); box-shadow: none; filter: brightness(1.15); }
.terms-actions { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; }
.decline { flex: 1; font: 700 clamp(20px, 5vw, 30px) var(--serif); padding: 20px 14px; letter-spacing: .02em; }
.accept {
  flex: none; position: relative; font-size: 9px; line-height: 1; padding: 2px 5px; border: 1px solid #b9d9d0; border-radius: 3px; background: #f4faf8; color: #86a8a2;
}
.accept::after { content: ""; position: absolute; inset: -9px; }
.accept.ready { color: var(--teal-dark); border-color: var(--teal); background: #fff; }
.accept[aria-disabled="true"] { cursor: not-allowed; }

/* ------------------------------------------------------------ 9. submit */
.submit-zone { display: grid; gap: 14px; justify-items: center; padding: 10px 0 4px; }
.btn-submit { font: 700 24px var(--serif); padding: 16px 54px; border-radius: 12px; user-select: none; -webkit-user-select: none; }
.btn-submit.zap { animation: zap .16s; }
.charge { position: relative; width: min(100%, 420px); height: 26px; border-radius: 99px; background: #e4efec; border: 2px solid var(--teal-dark); }
.charge .fill { position: absolute; inset: 0; border-radius: 99px; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(115deg, var(--coral) 0 14px, #ff9684 14px 28px); transition: transform .12s linear; }
.charge .crack { position: absolute; left: 38%; bottom: -3px; width: 12px; height: 12px; background: #e4efec; border: 2px solid var(--teal-dark); border-top: 0; border-radius: 0 0 4px 4px; clip-path: polygon(0 35%, 30% 60%, 55% 30%, 100% 55%, 100% 100%, 0 100%); }
.charge .drips { position: absolute; left: calc(38% + 4px); top: 100%; width: 7px; height: 7px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: var(--coral); opacity: 0; }
.charge.leaking .drips { animation: drip .8s ease-in infinite; }

/* --------------------------------------------------------------- Stapley */
.stapley { position: fixed; right: 14px; bottom: 10px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.stapley[hidden] { display: none; }
.stapley-btn { pointer-events: auto; border: 0; background: none; padding: 0; width: 112px; height: 112px; }
.stapley-btn img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(21, 78, 75, .3)); transform-origin: 50% 100%; animation: bob 3.2s ease-in-out infinite; }
.stapley.talking .stapley-btn img { animation: hop .5s; }
.bubble {
  pointer-events: auto; position: relative; max-width: 250px; margin: 0 26px 6px 0; padding: 10px 12px; font-size: 14px; line-height: 1.35; color: var(--ink);
  background: #fffbe9; border: 1px solid #e6cf7d; border-radius: 12px 12px 3px 12px; box-shadow: 0 10px 22px -12px rgba(21, 78, 75, .7); animation: pop .22s;
}
.bubble-act { display: block; margin-top: 8px; padding: 5px 10px; font-size: 13px; font-weight: 700; border: 1px solid var(--teal-dark); border-radius: 6px; background: var(--teal); color: #fff; }
.cover {
  position: absolute; inset: -4px -8px; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px;
  background: rgba(234, 248, 243, .9); border-radius: 12px; animation: coverIn .34s cubic-bezier(.3, 1.3, .5, 1);
}
.cover img { width: clamp(96px, 30%, 170px); height: auto; filter: drop-shadow(0 10px 10px rgba(21, 78, 75, .3)); animation: bob 2.6s ease-in-out infinite; }
.cover-say { max-width: 260px; background: #fffbe9; border: 1px solid #e6cf7d; border-radius: 12px; padding: 12px; box-shadow: 0 10px 22px -12px rgba(21, 78, 75, .7); display: grid; gap: 10px; font-size: 15px; }
.cover.leaving { opacity: 0; transform: translateX(40px); transition: .2s; }

/* ---------------------------------------------------------------- modals */
.scrim { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(21, 78, 75, .5); animation: fade .2s; }
.modal { position: relative; width: min(100%, 420px); background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 22px 22px 18px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); animation: pop .26s; }
.modal h3 { font-size: 23px; margin-bottom: 6px; }
.modal p { color: var(--muted); }
.modal-stap { margin: -68px auto 4px; width: 120px; height: 120px; object-fit: contain; }
.modal.leave { margin-top: 40px; }
.modal-btns { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.tiny-x { position: absolute; right: 6px; top: 4px; width: 16px; height: 16px; padding: 0; border: 0; background: none; font-size: 11px; line-height: 16px; color: #a9c4be; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 12px 0 6px; }
.star { width: 46px; height: 46px; padding: 0; font-size: 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--mint-50); filter: grayscale(1); opacity: .6; transition: .15s; }
.star.lit, .star:focus-visible { filter: none; opacity: 1; transform: translateY(-3px); background: var(--butter); }
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; margin: 12px 0 6px; }
.nps button { padding: 8px 0; font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; background: var(--mint-50); color: var(--teal-dark); }
@media (hover: hover) { .nps button:hover { background: var(--butter); } .star:hover { filter: none; opacity: 1; transform: translateY(-3px); background: var(--butter); } }
.survey-out { min-height: 22px; color: var(--teal) !important; font-weight: 700; }

/* ---------------------------------------------------------------- result */
.result { scroll-margin-top: 74px; }
.rcard {
  position: relative; background: #fff; border-radius: 16px; padding: 30px 30px 24px; border: 1px solid var(--line);
  box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line), 0 30px 50px -30px rgba(21, 78, 75, .6); margin: 10px 8px 0; animation: pop .4s;
  background-image: radial-gradient(circle at 100% 0, rgba(255, 224, 138, .35), transparent 42%);
}
.rcard::before { content: ""; position: absolute; inset: 10px; border: 2px dotted #9ccdc0; border-radius: 10px; pointer-events: none; }
.seal { position: absolute; right: 18px; top: 14px; width: 132px; height: 132px; object-fit: contain; transform: rotate(8deg); animation: stamp .5s .25s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.r-kicker { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.rcard h2 { font-size: clamp(30px, 6vw, 44px); margin: 6px 140px 4px 0; outline: none; }
.r-when { font: italic 700 clamp(18px, 3.4vw, 24px) var(--serif); color: var(--coral-dark); margin-right: 140px; }
.r-patient { margin-top: 10px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 12px; }
.stat { background: var(--mint-50); border-radius: 10px; padding: 10px 12px; }
.stat dt { font-size: 12px; color: var(--muted); }
.stat dd { margin: 2px 0 0; font: 700 24px var(--serif); color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.pfi-top { display: flex; justify-content: space-between; font-weight: 700; }
.pfi-bar { height: 12px; border-radius: 99px; background: var(--mint-100); overflow: hidden; margin-top: 5px; }
.pfi-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb3a6, var(--coral), var(--coral-dark)); animation: grow 1s .3s cubic-bezier(.2, .9, .3, 1) backwards; transform-origin: left; }
.rank { font: 700 22px var(--serif); color: var(--teal-dark); margin-top: 12px; }
.rank b { color: var(--coral-dark); }
.remark { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.remark img { flex: none; width: 64px; height: 64px; object-fit: contain; }
.remark-txt { background: #fffbe9; border: 1px solid #e6cf7d; border-radius: 12px 12px 12px 3px; padding: 10px 12px; font-size: 15px; }
.remark-txt.typing { color: var(--muted); font-style: italic; animation: pulse 1.2s ease-in-out infinite; }
.r-foot { margin-top: 14px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.r-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.r-note { text-align: center; min-height: 20px; }

.foot { padding: 18px 0 120px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: #f6fcfa; }
.built { font-weight: 700; color: var(--teal); margin-top: 4px; }
.byok { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.linkish { background: none; border: 0; padding: 2px; color: var(--teal); text-decoration: underline; text-underline-offset: 2px; font-size: 13px; }
.chip { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--mint-100); color: var(--teal-dark); border: 1px solid var(--line); }
.chip.own { background: #fff7dc; border-color: #f0d27a; color: #6b5200; }
.modal.keydlg { text-align: left; }
.modal.keydlg h3 { text-align: center; }
.modal.keydlg > p { font-size: 14px; }
.modal.keydlg .lbl { margin-top: 10px; }
.modal.keydlg select.inp { padding: 8px 9px; }
.key-note { font-size: 12.5px !important; margin-top: 8px; }
.key-note a { color: var(--teal); }
.key-nudge { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 22px 8px -6px; font-size: 13.5px; color: var(--muted); text-align: center; }
.key-nudge[hidden] { display: none; }

/* -------------------------------------------------------------- motion */
.shake { animation: shake .36s; }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes pop { from { transform: scale(.82); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes blink { 50% { opacity: .15; } }
@keyframes pulse { 50% { opacity: .6; } }
@keyframes renew { 0% { transform: scale(1.12); background: var(--mint-100); } }
@keyframes spin { from { transform: translateY(0); } to { transform: translateY(calc(var(--rh) * -10)); } }
@keyframes bulb { 50% { background: #fff6d6; box-shadow: none; } }
@keyframes lever { 35% { transform: rotate(58deg); } 100% { transform: rotate(0); } }
@keyframes gulp { 40% { transform: scale(1.14, .86); } }
@keyframes pant { 50% { scale: 1.12 .9; } }
@keyframes newrule { 0% { background: var(--butter); transform: translateX(-10px); } }
@keyframes zap { 50% { transform: scale(.96) rotate(-1deg); filter: brightness(1.3); } }
@keyframes drip { 0% { opacity: 1; transform: translateY(0) scale(.6); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(34px) scale(1); } }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes hop { 30% { transform: translateY(-14px) scale(1.05, .95); } 60% { transform: translateY(0) scale(.96, 1.04); } }
@keyframes coverIn { from { opacity: 0; transform: translateX(60px) rotate(4deg); } }
@keyframes stamp { from { transform: rotate(-20deg) scale(2.2); opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }

/* --------------------------------------------------------------- phones */
@media (max-width: 720px) {
  .nav { display: none; }
  .site-in { gap: 8px; width: min(100% - 20px, 1080px); }
  .site-tools { margin-left: auto; gap: 6px; min-width: 0; }
  .brand { gap: 7px; min-width: 0; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-text b { font-size: 16px; white-space: nowrap; }
  .brand-text i { display: none; }
  .session { font-size: 11px; padding: 4px 8px; }
  .sound { font-size: 13px; padding: 0; width: 28px; height: 28px; flex: none; }
  .s-txt { display: none; }
  .s-ico { display: inline; }
  .exhibit span { display: none; }
  .hero { height: 176px; }
  .hero-img { object-position: 50% 78%; }
  .hero::after { background: linear-gradient(180deg, rgba(246, 252, 250, .96) 0 58%, rgba(246, 252, 250, .62) 100%); }
  .hero-in { justify-content: flex-start; padding-top: 14px; }
  .hero-sub { font-size: 15px; }
  .main { padding-top: 14px; }
  .wrap { width: min(100% - 20px, 820px); }
  .form { padding: 16px 12px 14px; }
  .form-head h2 { font-size: 22px; }
  .field-head { padding: 8px 10px; gap: 8px; flex-wrap: wrap; }
  .field-body { padding: 2px 10px 10px; }
  .status { font-size: 12px; }
  :root { --rh: 40px; }
  .slot { gap: 4px; }
  .slot-body { padding: 10px 6px 8px; margin-inline: .6%; }
  .slot-win { gap: 2px; padding: 4px; }
  .reel-col.gap { margin-left: 4px; }
  .strip span { font-size: 21px; }
  .nudge { height: 26px; font-size: 10px; }
  .lever { width: 40px; height: 168px; }
  .lever img { width: 30px; height: 146px; }
  .key { font-size: 15px; border-radius: 6px; }
  .key.wide-txt { font-size: 9.5px; }
  .clock { width: 212px; height: 212px; margin-inline: auto; }
  .clock-side { text-align: center; }
  .flee-card { left: 8px; padding: 10px; gap: 9px; }
  .flee-brand { display: none; }
  .stapley-btn { width: 72px; height: 72px; }
  .stapley { right: 6px; bottom: 6px; }
  .bubble { max-width: 210px; font-size: 13px; margin-right: 10px; }
  .cover { flex-direction: column; inset: -2px -4px; }
  .cover img { width: 96px; }
  .result { scroll-margin-top: 58px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .rcard { padding: 22px 18px 18px; margin: 8px 6px 0; }
  .seal { width: 84px; height: 84px; right: 10px; top: 8px; }
  .rcard h2 { margin-right: 84px; }
  .r-when { margin-right: 70px; }
  .stat dd { font-size: 21px; }
  .nps button { padding: 9px 0; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .strip.spin { filter: none; opacity: .35; }
}
