@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f7efe2;
  --oat: #efe2cc;
  --card: #fffaf2;
  --stage: #f3e6d2;
  --ink: #3d2e24;
  --muted: #8a7564;
  --line: #e9dac3;
  --accent: #e07a5f;
  --accent-dark: #c25f45;
  --moss: #6f8f5e;
  --moss-dark: #557546;
  --lake: #8fb6c6;
  --honey: #f2c46d;
  --locked: #d9cbb6;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;
  --mono: "Nunito", ui-monospace, Menlo, monospace;
  --pillow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -4px 0 rgba(120, 84, 52, 0.06),
    0 2px 4px rgba(94, 64, 38, 0.05),
    0 14px 30px -14px rgba(94, 64, 38, 0.28);
  --boing: cubic-bezier(0.34, 1.8, 0.5, 1);
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(242, 196, 109, 0.28), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(143, 182, 198, 0.22), transparent 60%),
    var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 120px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("art/grain.png");
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 50;
}

.soft {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

header {
  width: 100%;
  max-width: 1080px;
  padding: 34px 20px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 20px;
  box-shadow: 0 8px 18px -10px rgba(94, 64, 38, 0.6);
  animation: logo-wobble 5s ease-in-out infinite;
}
@keyframes logo-wobble {
  0%, 80%, 100% { transform: none; }
  84% { transform: scale(1.08, 0.9); }
  88% { transform: scale(0.95, 1.06); }
  92% { transform: scale(1.02, 0.98); }
}
@media (max-width: 760px) { .logo { width: 52px; height: 52px; border-radius: 16px; } }
h1 {
  margin: 6px 0 2px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 650;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
}
h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
  display: inline-block;
  animation: wobble 4s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes wobble {
  0%, 82%, 100% { transform: none; }
  86% { transform: scale(1.06, 0.92); }
  90% { transform: scale(0.96, 1.05); }
  94% { transform: scale(1.02, 0.98); }
}
.tagline {
  margin: 8px 0 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}
.score {
  text-align: right;
  background: var(--card);
  border-radius: 26px;
  padding: 12px 18px 14px;
  box-shadow: var(--pillow);
}
.points {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.per-squish { color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.rebirth-info { color: #9a62b8; font-size: 0.85rem; font-weight: 800; }

main {
  width: 100%;
  max-width: 1080px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
@media (max-width: 760px) { main { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border-radius: 30px;
  padding: 18px;
  box-shadow: var(--pillow);
}

.stage {
  position: sticky;
  top: 16px;
  align-self: start;
  overflow: hidden;
}
.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tier-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
#squishy {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: var(--stage);
  box-shadow: inset 0 3px 12px rgba(94, 64, 38, 0.12), inset 0 -2px 0 rgba(255, 255, 255, 0.6);
  touch-action: none;
}
#squishy[data-tool="hand"] { cursor: grab; }
#squishy[data-tool="hand"]:active { cursor: grabbing; }
#squishy[data-tool="knife"] { cursor: url("cursor-knife.png") 3 29, crosshair; }
#squishy canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 24px; }
#squishy svg { width: 60%; height: 75%; margin: 8% 20%; }
.knife-trail { pointer-events: none; }

.tools {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px;
  background: var(--oat);
  box-shadow: inset 0 2px 4px rgba(94, 64, 38, 0.12);
}
.tools .tool {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  padding: 6px 14px;
  font-size: 0.85rem;
}
.tools .tool:hover:not(.on) { color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.tools .tool.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(94, 64, 38, 0.18), inset 0 -2px 0 rgba(94, 64, 38, 0.08);
}

.caption {
  margin: 12px 0 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.2rem;
}
.caption em { color: var(--muted); }
.readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 0;
}
.readouts div {
  background: var(--cream);
  border-radius: 18px;
  padding: 9px 12px;
  box-shadow: inset 0 2px 4px rgba(94, 64, 38, 0.07);
}
.readouts dt { font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.readouts dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.stage-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.hint { margin: 0; color: var(--muted); font-size: 0.86rem; }
.hint b { color: var(--ink); }

.float {
  position: absolute;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-weight: 800;
  font-size: 1.5rem;
  pointer-events: none;
  animation: floatUp 0.9s ease-out forwards;
  text-shadow: 0 2px 0 #fff, 0 0 8px #fff;
  z-index: 2;
}
.float.lucky { font-size: 2rem; color: #d99a1e !important; }
.float.combo { font-size: 1.9rem; color: var(--accent) !important; }
@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.6, 1.3); }
  25% { transform: translate(-50%, -20px) scale(1.15, 0.9); }
  100% { opacity: 0; transform: translate(-50%, -80px) scale(1); }
}

.shop h2 {
  margin: 0 0 2px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 650;
  font-size: 1.55rem;
}
.shop p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.upgrades-title { margin-top: 26px !important; }
.shop-list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: inset 0 -3px 0 rgba(94, 64, 38, 0.05), 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.4s var(--boing), box-shadow 0.2s;
}
.item:hover { transform: translateY(-2px) scale(1.012); box-shadow: inset 0 -3px 0 rgba(94, 64, 38, 0.05), 0 10px 18px -12px rgba(94, 64, 38, 0.35); }
.item:active { transform: scale(0.985, 0.96); transition-duration: 0.08s; }
.item.equipped { background: #fdeee6; box-shadow: inset 0 0 0 2px var(--accent), 0 10px 18px -14px rgba(224, 122, 95, 0.6); }
.item.locked { opacity: 0.55; }
.item .thumb {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 18px;
  background: var(--card);
  padding: 4px;
  box-shadow: 0 2px 6px rgba(94, 64, 38, 0.12);
}
.item .thumb svg { width: 100%; height: 100%; }
.item.locked .thumb svg { filter: grayscale(1) brightness(0.5) sepia(0.3); }
.item .icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; border-radius: 18px; background: var(--card);
  box-shadow: 0 2px 6px rgba(94, 64, 38, 0.12);
}
.item .info { flex: 1; min-width: 0; }
.item .info strong {
  display: block;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.08rem;
  font-weight: 650;
}
.item .info small { font-family: var(--sans); font-weight: 800; color: var(--muted); font-size: 0.75rem; }
.item .info span { font-size: 0.83rem; color: var(--muted); }
.level-pips { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.level-pips i { width: 12px; height: 6px; border-radius: 3px; background: var(--line); }
.level-pips i.on { background: var(--accent); }

button {
  font: inherit;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  color: #fffaf2;
  background: linear-gradient(180deg, #82a46f, var(--moss-dark));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 6px 12px -6px rgba(85, 117, 70, 0.7);
  white-space: nowrap;
  transition: transform 0.35s var(--boing), filter 0.15s;
}
button:hover:not(:disabled) { filter: brightness(1.06); transform: scale(1.04); }
button:active:not(:disabled) { transform: scale(1.08, 0.86); transition-duration: 0.06s; }
button:disabled {
  background: var(--oat);
  color: #b4a28f;
  box-shadow: inset 0 2px 3px rgba(94, 64, 38, 0.08);
  cursor: not-allowed;
}
button.secondary, button.ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(94, 64, 38, 0.08), 0 4px 10px -6px rgba(94, 64, 38, 0.45), 0 0 0 1px var(--line);
}

button.secondary:disabled, button.ghost:disabled {
  background: var(--oat);
  color: #b4a28f;
  box-shadow: inset 0 2px 3px rgba(94, 64, 38, 0.08);
}

.rebirth-box {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 22px;
  background: #f6eefb;
  box-shadow: inset 0 0 0 2px #e3cff0;
}
.rebirth-box .icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.rebirth-box .info { flex: 1; min-width: 0; }
.rebirth-box .info strong { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.08rem; font-weight: 650; }
.rebirth-box .info small { font-weight: 800; color: var(--muted); }
.rebirth-box .info span { font-size: 0.83rem; color: var(--muted); }
#rebirthBtn:not(:disabled) { background: linear-gradient(180deg, #b47fd1, #8c55ad); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 6px 12px -6px rgba(140, 85, 173, 0.7); }

body.reborn main { animation: reborn 0.9s var(--boing); }
@keyframes reborn {
  0% { filter: brightness(1.6) saturate(0.3); transform: scale(0.97, 1.02); }
  100% { filter: none; transform: none; }
}

.howto-btn { margin-top: 8px; }

.tutor {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 330px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fffaf2, #f3e6d2);
  border-radius: 30px;
  box-shadow: var(--pillow), 0 20px 50px -20px rgba(94, 64, 38, 0.45);
  padding: 16px 18px;
  overflow-y: auto;
}
.tutor[hidden] { display: none; }
.tutor-head { display: flex; justify-content: space-between; align-items: center; }
.tutor-x {
  background: var(--oat);
  color: var(--muted);
  box-shadow: none;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 0.9rem;
}
.pip { width: 100%; height: 290px; flex-shrink: 0; transform: scaleX(-1); }
.tutor-name { font-size: 0.85rem; color: var(--muted); }
.tutor-name b { color: var(--ink); }
.tutor-step {
  margin-top: 4px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 650;
  font-size: 1.35rem;
}
.tutor-caption {
  margin: 8px 0 0;
  min-height: 5.8em;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.02rem;
  line-height: 1.42;
  background: var(--card);
  border-radius: 20px;
  padding: 12px 14px;
  box-shadow: inset 0 2px 4px rgba(94, 64, 38, 0.07);
}
.tutor-progress { height: 8px; margin: 14px 0; background: var(--oat); border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(94, 64, 38, 0.12); }
.tutor-progress i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--honey), var(--accent)); transition: width 0.5s var(--boing); }
.tutor-actions { display: flex; gap: 8px; }
.tutor-note { margin: 12px 0 0; font-size: 0.78rem; color: var(--muted); }

.ghost-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}
.ghost-cursor img { width: 40px; height: 40px; display: block; }
.ghost-ripple {
  position: fixed;
  z-index: 39;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.ghost-ripple.go { animation: ripple 0.45s ease-out; }
@keyframes ripple {
  from { opacity: 1; transform: scale(0.4); }
  to { opacity: 0; transform: scale(1.4); }
}
.tutor-spot { outline: 3px solid var(--accent); outline-offset: 3px; animation: spot 0.8s ease-in-out infinite alternate; }
@keyframes spot { from { outline-color: var(--accent); } to { outline-color: rgba(224, 122, 95, 0.25); } }

body.tutor-open { padding-right: 354px; }
body.tutor-open .sound-toggle { right: 366px; top: auto; bottom: 16px; }

.confirm[hidden] { display: none; }
.confirm {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(61, 46, 36, 0.35);
  backdrop-filter: blur(3px);
}
.confirm-card {
  width: min(380px, 100%);
  background: var(--card);
  border-radius: 28px;
  padding: 22px 22px 18px;
  box-shadow: var(--pillow), 0 30px 60px -20px rgba(61, 46, 36, 0.5);
  animation: pop 0.45s var(--boing);
}
.confirm-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 650;
  font-size: 1.45rem;
}
.confirm-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.45; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@keyframes pop { from { transform: scale(0.8, 1.15); opacity: 0; } to { transform: none; opacity: 1; } }
button:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; }

.sound-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 1.1rem;
  padding: 7px 11px;
  z-index: 5;
  box-shadow: var(--pillow);
}
.reset {
  margin: 10px 0 32px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reset:hover:not(:disabled) { color: var(--ink); filter: none; }

.credit {
  margin: -16px 0 24px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: 0.95rem;
  color: var(--muted);
}
.credit a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(224, 122, 95, 0.35);
}
.credit a:hover { border-bottom-color: var(--accent); }
.credit a:focus-visible { outline: 3px solid var(--lake); outline-offset: 2px; border-radius: 4px; }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px) scale(0.8);
  background: var(--ink);
  color: var(--card);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(61, 46, 36, 0.6);
  transition: transform 0.45s var(--boing);
  z-index: 30;
}
.toast.show { transform: translateX(-50%) translateY(0) scale(1); }

@media (max-width: 900px) {
  .tutor {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 46vh;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 12px;
    border-radius: 26px;
    padding: 10px 14px 14px;
  }
  .tutor-head { width: 100%; }
  .pip { width: 96px; height: 113px; }
  .tutor-text { flex: 1; min-width: 0; }
  .tutor-step { margin-top: 0; font-size: 1.1rem; }
  .tutor-caption { min-height: 0; font-size: 0.92rem; padding: 8px 12px; }
  .tutor-progress { margin: 8px 0; }
  .tutor-note { display: none; }
  body.tutor-open { padding-right: 0; padding-bottom: calc(var(--tutor-h, 46vh) + 24px); }
  /* while Pip is only offering the tour, keep the card slim */
  body:not(.tutor-running) .tutor .pip,
  body:not(.tutor-running) .tutor-caption,
  body:not(.tutor-running) .tutor-progress { display: none; }
  body:not(.tutor-running) .tutor-step { margin-bottom: 8px; }
  body.tutor-open .sound-toggle { right: 14px; top: 14px; bottom: auto; }
}

@media (max-width: 760px) {
  .stage { position: relative; top: 0; }
  header { padding-top: 60px; }
  .score { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  h1 em, .logo { animation: none; }
  .item, button, .toast { transition: none; }
}


/* ===================== Picnic look =====================
   Sky, meadow and frosted glass, layered over the base styles above. */
:root {
  --sky-top: #3f92dc;
  --sky-mid: #7fc0ee;
  --sky-low: #cfe8f7;
  --grass: #6fae4c;
  --picnic: #e2453c;
  --picnic-dark: #c2342c;
  --ink: #1f2a37;
  --muted: #5e6b78;
  --line: #dbe5ee;
  --card: rgba(255, 255, 255, 0.8);
  --cream: #f3f7fb;
  --oat: #e7eef5;
  --stage: #7fc0ee;
  --accent: #e2453c;
  --accent-dark: #c2342c;
  --locked: #c7d2dc;
  --glass-edge: rgba(255, 255, 255, 0.85);
  --pillow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(20, 60, 110, 0.06),
    0 22px 44px -24px rgba(20, 60, 110, 0.45);
}
html { background: #2462a6; }
body {
  background:
    url("art/clouds.png") center top / 100% auto no-repeat,
    url("art/meadow.png") center bottom / 100% auto no-repeat fixed,
    linear-gradient(180deg, #2462a6 0, #2d73b8 30%, var(--sky-mid) 62%, var(--sky-low) 88%, #e6f3fa 100%) fixed;
  padding-bottom: 160px;
}
body::before { opacity: 0.07; }

.top-flower {
  width: 30px;
  height: 30px;
  margin-top: 18px;
  filter: drop-shadow(0 2px 4px rgba(20, 60, 110, 0.25));
  animation: flower-spin 14s linear infinite;
}
@keyframes flower-spin { to { transform: rotate(360deg); } }

/* header: white mixed lettering over the sky */
header { padding-top: 10px; }
header .label { color: #ffffff; }
h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(20, 60, 110, 0.35);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.18em;
}
h1 .h-sans {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 0.42em;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
h1 em {
  color: #ffffff;
  font-weight: 300;
  font-size: 1.25em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  letter-spacing: -0.03em;
}
.tagline {
  color: #ffffff;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 800;
  font-size: 0.95rem;
  text-shadow: 0 1px 8px rgba(20, 60, 110, 0.25);
}
.tagline .and {
  display: inline-block;
  padding: 0 9px;
  margin: 0 2px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
}
.logo { box-shadow: 0 10px 22px -10px rgba(20, 60, 110, 0.55); }

/* frosted glass */
.card, .score, .tutor, .confirm-card {
  background: var(--card);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-edge);
}
.score {
  background: rgba(30, 90, 160, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}
.score .points { text-shadow: 0 2px 14px rgba(20, 60, 110, 0.25); }
.score .per-squish { color: #ffffff; }
.score .rebirth-info { color: #ffffff; }

/* glassy pill buttons */
button.ghost, button.secondary, .sound-toggle {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px -10px rgba(20, 60, 110, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.score button.ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.sound-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}
button:not(.ghost):not(.secondary):not(.tool):not(.tutor-x):not(.reset):not(.sound-toggle):not(:disabled) {
  background: linear-gradient(180deg, #3f7d29, #346c22);
}
button.ghost:disabled, button.secondary:disabled { background: rgba(231, 238, 245, 0.8); color: #9aa8b5; }

.tools { background: rgba(231, 238, 245, 0.9); }
.tools .tool.on { background: #ffffff; }

.item { background: rgba(243, 247, 251, 0.9); }
.item.equipped { background: #fff1ee; box-shadow: inset 0 0 0 2px var(--picnic), 0 10px 18px -14px rgba(226, 69, 60, 0.6); }
.item .thumb, .item .icon { background: #ffffff; }
.readouts div { background: rgba(243, 247, 251, 0.9); }
.rebirth-box { background: rgba(246, 240, 255, 0.9); }
#squishy { box-shadow: inset 0 2px 10px rgba(20, 60, 110, 0.18); }

/* bottom of the page sits on the meadow */
.reset { color: #16222e; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.credit { color: #16222e; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.credit a { color: #16222e; border-bottom-color: rgba(22, 34, 46, 0.5); }

.toast { background: rgba(31, 42, 55, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.confirm { background: rgba(31, 60, 90, 0.3); }

@media (prefers-reduced-motion: reduce) {
  .top-flower { animation: none; }
}

#squishy:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; box-shadow: 0 0 0 6px #2462a6; }
a:focus-visible, summary:focus-visible { outline: 3px solid #2462a6; outline-offset: 2px; border-radius: 4px; }

/* about, privacy & terms */
.legal {
  width: calc(100% - 40px);
  max-width: 1040px;
  margin: 4px 20px 16px;
}
.legal h2 { margin: 0; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 1.4rem; }
.legal-updated { margin: 2px 0 10px; color: var(--muted); font-size: 0.85rem; }
.legal details { border-top: 1px solid var(--line); padding: 4px 0; }
.legal summary {
  cursor: pointer;
  padding: 10px 2px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-weight: 650;
  font-size: 1.08rem;
}
.legal details > :not(summary) { max-width: 70ch; line-height: 1.55; }
.legal h3 { margin: 14px 0 4px; font-size: 0.98rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal a { color: #1d5d9e; font-weight: 700; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 6px; font-family: var(--sans); font-size: 0.85rem; }
.legal-links a { color: #16222e; font-weight: 700; }
.credit { text-align: center; }

.notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 1040px;
  width: calc(100% - 40px);
  margin: 8px 20px 0;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
}
.notice[hidden] { display: none; }
.notice span { flex: 1; min-width: 200px; }
.notice a { color: #1d5d9e; font-weight: 700; }
