/* Bow Dash. The boutique's palette (linen, blush, rose, plum ink) and its
   two voices: Fredoka for the game, Cormorant Garamond italic for the shop.
   Big targets and big type: the players are four, the buyers seventy. */

@font-face {
  font-family: 'Fredoka';
  src: url('./fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('./fonts/cormorant-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

:root {
  --linen: #fff8f1;
  --blush: #fce4ec;
  --rose: #f293b7;
  --deep: #d4548a;
  --ink: #b03a6f;
  --ink-dark: #8e2c58;
  --plum: #4a2c3a;
  --plum-soft: rgba(74, 44, 58, 0.66);
  --sage: #a8c3a0;
  --butter: #f6d98b;
  --card: #fffdfb;
  --glass: rgba(255, 253, 251, 0.88);
  --font: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: var(--font);
  color: var(--plum);
  background: linear-gradient(#9fd0f0, #fde7ee 70%);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#touch { position: fixed; inset: 0; touch-action: none; z-index: 1; }
button { font-family: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.loading {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(#fde7ee, var(--linen));
  font-size: 20px; font-weight: 500; color: var(--ink);
  transition: opacity 0.4s;
  padding: 24px; text-align: center;
}
.loading img { width: min(70vw, 320px); height: auto; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.loading.gone { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------- HUD --- */
#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3;
  padding: calc(var(--safe-top) + 10px) 12px 0;
  display: grid; grid-template-columns: 56px 1fr auto; align-items: start; gap: 8px;
  pointer-events: none;
}
#hud > * { pointer-events: auto; }
.hud-mid { text-align: center; }
.score {
  font-size: 38px; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 2px 0 var(--ink-dark), 0 0 3px var(--ink-dark), 0 3px 10px rgba(74, 44, 58, 0.35);
  -webkit-text-stroke: 1px var(--ink-dark);
}
.hearts { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.hearts svg { width: 26px; height: 26px; }
.hearts .lost { animation: heart-lost 0.5s ease-out; }
@keyframes heart-lost { 30% { transform: scale(1.5); } }
.hud-right { display: grid; justify-items: end; gap: 6px; }
.bows-pill {
  display: flex; align-items: center; gap: 4px;
  background: var(--glass);
  border: 2px solid rgba(176, 58, 111, 0.25);
  border-radius: 999px;
  padding: 3px 12px 3px 6px;
  font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums;
  min-width: 84px;
}
.bows-pill.pop { animation: bump 0.2s ease-out; }
@keyframes bump { 40% { transform: scale(1.12); } }
.bow-ico { width: 28px; height: 28px; display: inline-block; flex: none; }
.bow-ico svg { width: 100%; height: 100%; display: block; }
.powers { display: grid; gap: 4px; justify-items: end; }
.power-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--glass); border-radius: 999px;
  padding: 2px 10px 2px 4px; font-size: 15px; font-weight: 600;
  border: 2px solid rgba(176, 58, 111, 0.2);
}
.power-chip svg { width: 26px; height: 26px; }
.power-chip .bar { width: 46px; height: 7px; border-radius: 4px; background: rgba(74, 44, 58, 0.15); overflow: hidden; }
.power-chip .bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }

.round {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(74, 44, 58, 0.14);
  background: var(--glass);
  display: grid; place-items: center;
  box-shadow: 0 3px 0 rgba(74, 44, 58, 0.12);
  padding: 0;
}
.round svg { width: 24px; height: 24px; fill: var(--plum); }
.round.back svg { fill: none; stroke: var(--plum); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.round:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(74, 44, 58, 0.12); }

/* The twirl button: a ring that fills with bows. */
.twirl {
  position: fixed; z-index: 3;
  right: 14px; bottom: calc(var(--safe-bottom) + 18px);
  width: 92px; height: 92px; border-radius: 50%;
  border: 0; padding: 0;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--blush) 70%);
  box-shadow: 0 6px 16px rgba(74, 44, 58, 0.25);
  display: grid; place-items: center;
}
.twirl svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.twirl .track { fill: none; stroke: rgba(176, 58, 111, 0.15); stroke-width: 9; }
.twirl .fill { fill: none; stroke: var(--rose); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; transition: stroke-dashoffset 0.2s; }
.twirl-label { position: relative; font-size: 17px; font-weight: 600; color: var(--plum-soft); }
.twirl.ready { background: radial-gradient(circle at 50% 40%, #fff 0%, var(--rose) 80%); animation: ready 0.9s ease-in-out infinite; }
.twirl.ready .fill { stroke: var(--ink); }
.twirl.ready .twirl-label { color: #fff; text-shadow: 0 1px 0 var(--ink-dark); font-size: 21px; }
@keyframes ready { 50% { transform: scale(1.08) rotate(-4deg); } }
.twirl.spinning .twirl-label { animation: spin 0.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.finish { position: fixed; z-index: 3; left: 14px; bottom: calc(var(--safe-bottom) + 18px); width: auto; min-height: 50px; font-size: 18px; }

/* The lesson: a hand that shows the swipe. */
.teach {
  position: fixed; z-index: 4; left: 0; right: 0; top: 38%;
  display: grid; justify-items: center; gap: 10px; pointer-events: none;
}
.teach-text {
  background: var(--card); color: var(--ink);
  border: 3px solid var(--rose); border-radius: 999px;
  padding: 10px 26px; font-size: 30px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(74, 44, 58, 0.2);
  animation: pop 0.3s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.hand { width: 76px; height: 76px; filter: drop-shadow(0 4px 6px rgba(74, 44, 58, 0.3)); }
.hand svg { width: 100%; height: 100%; }
.teach.up .hand { animation: swipe-up 1s ease-in-out infinite; }
.teach.down .hand { animation: swipe-down 1s ease-in-out infinite; }
.teach.side .hand { animation: swipe-side 1s ease-in-out infinite; }
@keyframes swipe-up { 0% { transform: translateY(40px); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(-50px); opacity: 1; } 100% { opacity: 0; } }
@keyframes swipe-down { 0% { transform: translateY(-40px); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(50px); opacity: 1; } 100% { opacity: 0; } }
@keyframes swipe-side { 0% { transform: translateX(40px); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateX(-60px); opacity: 1; } 100% { opacity: 0; } }

.callout {
  position: fixed; z-index: 4; left: 50%; top: calc(var(--safe-top) + 108px);
  transform: translateX(-50%);
  background: var(--card); color: var(--ink);
  border: 2px solid var(--rose); border-radius: 999px;
  padding: 8px 18px; font-size: 19px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(74, 44, 58, 0.18);
  pointer-events: none;
  animation: callout 1.8s ease-out both;
}
@keyframes callout { 0% { transform: translate(-50%, -10px) scale(0.8); opacity: 0; } 12% { transform: translate(-50%, 0) scale(1.05); opacity: 1; } 20% { transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -8px); } }

/* ------------------------------------------------------------ Buttons --- */
.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; border-radius: 999px; border: 0;
  font-size: 21px; font-weight: 600; padding: 10px 22px; text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 5px 0 var(--ink-dark), 0 8px 18px rgba(176, 58, 111, 0.28); }
.btn.primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink-dark); }
.btn.big { min-height: 72px; font-size: 32px; letter-spacing: 0.5px; }
.btn.secondary { background: var(--card); color: var(--plum); border: 2px solid rgba(74, 44, 58, 0.16); box-shadow: 0 4px 0 rgba(74, 44, 58, 0.13); }
.btn.secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(74, 44, 58, 0.13); }
.btn-title { font-size: 18px; line-height: 1.15; white-space: nowrap; max-width: 100%; }
.btn-sub { font-size: 14px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--plum-soft); margin-top: 2px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.row3 .btn { font-size: 17px; padding: 8px 6px; }
.btn:focus-visible, .round:focus-visible, .icon-btn:focus-visible, .twirl:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* -------------------------------------------------------------- Title --- */
#title {
  position: fixed; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
#title > * { pointer-events: auto; }
.title-top { padding: calc(var(--safe-top) + 18px) 16px 0; text-align: center; }
.lockup { margin: 0; line-height: 0; }
.logo {
  display: block; margin: 0 auto;
  width: min(86vw, 420px, calc(29vh * 1.477));
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(176, 58, 111, 0.22));
  animation: logo-in 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes logo-in { from { transform: scale(0.8) translateY(-14px); opacity: 0; } }
.title-bottom {
  padding: 8px 18px calc(var(--safe-bottom) + 10px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 480px; width: 100%; margin: 0 auto;
}
.bank-line {
  justify-self: center; display: flex; align-items: center; gap: 6px;
  background: var(--glass); border-radius: 999px; padding: 4px 16px 4px 8px;
  font-size: 18px; font-weight: 600;
}
.bank-line .dot { color: var(--plum-soft); }
.iconrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 2px; }
.icon-btn {
  position: relative;
  border: 0; background: var(--glass);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 15px; font-weight: 500; padding: 6px 0 4px; min-height: 72px; border-radius: 18px;
}
.icon-btn .ico { width: 40px; height: 40px; display: block; }
.icon-btn .ico svg { width: 100%; height: 100%; }
.icon-btn:active .ico { transform: scale(0.92); }
.badge {
  position: absolute; top: 4px; right: 12px; min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; line-height: 20px; padding: 0 5px;
}

/* ------------------------------------------------------ Modal + pages --- */
.screen.modal {
  position: fixed; inset: 0; z-index: 12;
  display: grid; place-items: center;
  background: rgba(74, 44, 58, 0.32);
  padding: 20px;
  animation: fade 0.18s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.card {
  width: 100%; max-width: 400px;
  background: var(--card); border-radius: 28px; padding: 24px 20px 20px;
  display: grid; gap: 12px; text-align: center;
  box-shadow: 0 18px 40px rgba(74, 44, 58, 0.25);
  border: 2px solid rgba(74, 44, 58, 0.08);
  position: relative;
  animation: pop 0.24s cubic-bezier(0.2, 1.4, 0.4, 1);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.card::before { content: ''; position: absolute; inset: 7px; border: 2px dashed rgba(242, 147, 183, 0.55); border-radius: 22px; pointer-events: none; }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } }
h2 { margin: 0 0 4px; font-size: 28px; font-weight: 600; }
.pause-mark { width: 170px; height: auto; margin: -4px auto -6px; display: block; }
h3 { font-size: 20px; font-weight: 600; margin: 22px 0 10px; }
.lede { margin: 0; font-size: 18px; color: var(--plum-soft); }

.screen.page {
  position: fixed; inset: 0; z-index: 10;
  background: var(--linen);
  display: flex; flex-direction: column;
  animation: slide 0.22s ease-out;
}
@keyframes slide { from { transform: translateY(24px); opacity: 0; } }
.page-head {
  display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  border-bottom: 2px dashed rgba(242, 147, 183, 0.5);
}
.page-head h2 { margin: 0; flex: 1; }
.page-head.clear { border: 0; }
.page-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 18px calc(var(--safe-bottom) + 28px);
  max-width: 560px; width: 100%; margin: 0 auto;
  user-select: text;
}
.fine { font-size: 16px; color: var(--plum-soft); }
.fine a { color: var(--ink); }
.center { text-align: center; }

/* ------------------------------------------------------------- Toggles --- */
.toggles { display: grid; gap: 10px; margin-top: 8px; }
.toggles.compact { grid-template-columns: 1fr 1fr; margin-top: 4px; }
.toggle {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 16px;
  background: var(--card); border: 2px solid rgba(74, 44, 58, 0.1); border-radius: 18px;
  font-size: 19px; font-weight: 500; text-align: left;
}
.toggles.compact .toggle { font-size: 17px; padding: 6px 12px; }
.toggle input {
  appearance: none; -webkit-appearance: none;
  width: 52px; height: 32px; flex: none; border-radius: 999px;
  background: rgba(74, 44, 58, 0.18); position: relative; margin: 0; transition: background 0.15s;
}
.toggle input::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.15s;
}
.toggle input:checked { background: var(--ink); }
.toggle input:checked::after { transform: translateX(20px); }
.toggle input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.howto { padding-left: 22px; font-size: 18px; line-height: 1.5; margin: 0 0 14px; }
.page-body > .btn { margin-top: 10px; }

/* ----------------------------------------------------------- End sheet --- */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  display: flex; justify-content: center;
  animation: rise 0.4s 0.5s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
@keyframes rise { from { transform: translateY(100%); } }
.sheet-inner {
  width: 100%; max-width: 480px;
  background: var(--card); border-radius: 30px 30px 0 0;
  padding: 16px 18px calc(var(--safe-bottom) + 14px);
  box-shadow: 0 -12px 40px rgba(74, 44, 58, 0.22);
  display: grid; gap: 9px; position: relative;
  max-height: 72vh; overflow-y: auto; text-align: center;
}
.sheet-inner::before {
  content: ''; position: absolute; inset: 7px 7px 0;
  border: 2px dashed rgba(242, 147, 183, 0.55); border-bottom: 0;
  border-radius: 24px 24px 0 0; pointer-events: none;
}
.sheet h2 { font-size: 26px; margin: 0; }
.big-num { font-size: 56px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.ribbon-tag {
  justify-self: center; background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 600; padding: 4px 16px; border-radius: 6px;
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
  animation: pop 0.3s 0.9s both cubic-bezier(0.2, 1.6, 0.4, 1);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats > div { background: var(--linen); border-radius: 16px; padding: 6px 4px; display: grid; }
.stats b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--plum-soft); }
.near { margin: 0; font-size: 18px; color: var(--ink); }
.near:empty { display: none; }
.mission-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.mission-list:empty { display: none; }
.mission-list li {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  background: var(--linen); border-radius: 16px; padding: 8px 12px; min-height: 52px;
  font-size: 17px; border: 2px solid transparent;
}
.mission-list li.done { border-color: var(--sage); background: #f3f9f0; animation: pop 0.3s both; }
.mission-list li svg { width: 30px; height: 30px; }
.mission-list .reward { display: flex; align-items: center; gap: 2px; font-weight: 600; color: var(--ink); font-size: 16px; }
.mission-list .reward .bow-ico { width: 22px; height: 22px; }
.mission-list .prog { display: block; height: 6px; background: rgba(74, 44, 58, 0.12); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.mission-list .prog i { display: block; height: 100%; background: var(--rose); }
.mission-list.small li { font-size: 15px; min-height: 44px; padding: 6px 10px; }
.boutique-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #fff; border: 2px solid rgba(242, 147, 183, 0.6); border-radius: 20px;
  padding: 10px 14px; text-align: left; font-size: 16px; min-height: 64px;
}
.boutique-card .tag { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.boutique-card .serif { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 19px; line-height: 1.2; }
.boutique-card .mk { width: 40px; height: 52px; flex: none; }

/* -------------------------------------------------------------- Closet --- */
.screen.closet { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; animation: fade 0.2s; }
.closet .page-head { background: linear-gradient(rgba(255, 248, 241, 0.9), rgba(255, 248, 241, 0)); }
.spin-zone { flex: 1; min-height: 120px; touch-action: none; }
.closet-panel {
  background: var(--card); border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 30px rgba(74, 44, 58, 0.18);
  padding: 8px 14px calc(var(--safe-bottom) + 14px);
  height: min(52vh, 440px); display: flex; flex-direction: column;
}
.closet .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(74, 44, 58, 0.06); padding: 4px; border-radius: 999px; margin: 4px 0 6px; }
.closet .tabs button { border: 0; background: none; border-radius: 999px; min-height: 44px; font-size: 15px; font-weight: 600; }
.closet .tabs button[aria-selected='true'] { background: var(--card); box-shadow: 0 2px 6px rgba(74, 44, 58, 0.14); color: var(--ink); }
.closet-name { text-align: center; margin: 0 0 6px; font-size: 18px; font-weight: 600; min-height: 24px; color: var(--ink); }
.closet-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; align-content: start; padding: 2px 2px 8px; }
.cl-item {
  position: relative; border-radius: 20px; border: 3px solid transparent;
  background: var(--linen); padding: 8px 4px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 14px; font-weight: 600; min-height: 108px;
}
.cl-item .pic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background-size: 64px; }
.cl-item .pic svg { width: 52px; height: 52px; }
.cl-item[aria-selected='true'] { border-color: var(--ink); background: #fff5f9; }
.cl-item .price { display: flex; align-items: center; gap: 2px; color: var(--ink); }
.cl-item .price .bow-ico { width: 20px; height: 20px; }
.cl-item.locked .pic { filter: saturate(0.6) opacity(0.75); }
.cl-item.cant .price { color: var(--plum-soft); }
.cl-item .worn { color: var(--plum-soft); font-weight: 500; }
.cl-item.new::after { content: 'New'; position: absolute; top: -6px; right: -4px; background: var(--butter); color: var(--plum); border-radius: 999px; font-size: 12px; padding: 1px 8px; }

/* ---------------------------------------------------------------- Gate --- */
.gate-rose { width: 44px; height: 56px; margin: 0 auto; }
.gate-rose svg { width: 100%; height: 100%; }
.gate h2 { font-size: 23px; }
.gate-q { margin: 0; font-size: 22px; font-weight: 500; }
.gate-answer { font-size: 36px; font-weight: 600; min-height: 52px; border-bottom: 3px dashed rgba(242, 147, 183, 0.8); width: 120px; margin: 0 auto; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { min-height: 58px; font-size: 26px; font-weight: 600; border-radius: 18px; border: 2px solid rgba(74, 44, 58, 0.12); background: var(--linen); }
.keypad button:active { background: var(--blush); }
.keypad .ok { background: var(--ink); color: #fff; border-color: var(--ink); }
.gate-msg { margin: 0; min-height: 22px; font-size: 17px; color: var(--ink); }

/* ------------------------------------------------------------ Grown-ups --- */
.boutique-hero { display: flex; gap: 14px; align-items: center; margin: 10px 0 4px; }
.boutique-hero .mark { width: 52px; height: 66px; flex: none; }
.boutique-hero .mark svg { width: 100%; height: 100%; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; line-height: 1.3; margin: 0; }
.look-list { display: grid; gap: 8px; }
.look-row {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
  background: var(--card); border: 2px solid rgba(74, 44, 58, 0.08); border-radius: 18px;
  padding: 8px 12px; text-decoration: none; color: var(--plum); min-height: 64px;
}
.look-row .pic { width: 48px; height: 48px; }
.look-row .pic svg { width: 100%; height: 100%; }
.look-row b { display: block; font-size: 17px; color: var(--plum); }
.look-row span { font-size: 15px; color: var(--plum-soft); }
.look-row .go { color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.word { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.word input {
  font: inherit; font-size: 20px; letter-spacing: 2px; text-transform: uppercase;
  border: 2px solid rgba(74, 44, 58, 0.2); border-radius: 999px; padding: 10px 18px; min-height: 56px;
  background: var(--card); color: var(--plum); min-width: 0;
}
.word .btn { width: auto; }
.visit { text-align: center; margin-top: 10px; display: grid; gap: 10px; }
.visit h3 { margin-bottom: 0; }
.visit p { font-size: 18px; margin: 0; }

/* --------------------------------------------------------------- Toast --- */
.toast {
  position: fixed; z-index: 30; left: 50%; top: calc(var(--safe-top) + 92px);
  transform: translateX(-50%);
  background: var(--plum); color: #fff; border-radius: 999px; padding: 12px 22px;
  font-size: 18px; font-weight: 500; box-shadow: 0 8px 20px rgba(74, 44, 58, 0.3);
  animation: pop 0.2s ease-out; max-width: calc(100vw - 32px); text-align: center;
}
.noscript { padding: 40px; font-size: 20px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (max-height: 640px) {
  .btn.big { min-height: 62px; }
  .icon-btn { min-height: 62px; }
}


/* ================================================================ 2.0 === */

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.speedlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.3s;
  background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255,255,255,0) 0deg 5deg, rgba(255,255,255,0.22) 5.5deg 6deg);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, transparent 38%, #000 75%);
  mask-image: radial-gradient(circle at 50% 45%, transparent 38%, #000 75%);
}
.speedlines.on { opacity: 1; animation: whirl 0.35s linear infinite; }
@keyframes whirl { to { transform: rotate(6deg); } }

/* In-run: progress to your best, the combo, the race */
.bestbar { position: relative; width: 150px; height: 8px; margin: 6px auto 0; border-radius: 4px; background: rgba(255,255,255,0.6); box-shadow: inset 0 0 0 1.5px rgba(176,58,111,0.35); }
.bestbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--rose), var(--ink)); }
.bestbar .flag { position: absolute; right: -12px; top: -12px; width: 24px; height: 24px; }
.bestbar .flag svg { width: 100%; height: 100%; }
.bestbar.passed i { background: linear-gradient(90deg, #f6d98b, #f2b134); }
.combo { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.combo svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.combo .track { fill: rgba(255,255,255,0.85); stroke: rgba(176,58,111,0.18); stroke-width: 5; }
.combo .fill { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; transition: stroke-dashoffset 0.2s; }
.combo b { position: relative; font-size: 20px; font-weight: 700; color: var(--ink); }
.combo.x3 .fill { stroke: #6f93c4; } .combo.x3 b { color: #6f93c4; }
.combo.x4 .fill { stroke: #9a6fd0; } .combo.x4 b { color: #9a6fd0; }
.combo.x5 .fill { stroke: #f2b134; } .combo.x5 b { color: #e0901c; }
.combo.up { animation: comboup 0.45s cubic-bezier(0.2, 1.8, 0.4, 1); }
@keyframes comboup { 40% { transform: scale(1.45) rotate(-8deg); } }
.combo.lost { animation: combolost 0.4s; }
@keyframes combolost { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.race {
  position: fixed; z-index: 3; left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-top) + 118px);
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 2px solid rgba(176,58,111,0.25); border-radius: 999px;
  padding: 3px 14px 3px 4px; font-size: 15px; font-weight: 600; white-space: nowrap; pointer-events: none;
}
.race .pic svg { width: 30px; height: 30px; display: block; }
.race.ahead { border-color: #a8c3a0; color: #3f6f3a; }

/* Title */
.player {
  position: absolute; left: 12px; top: calc(var(--safe-top) + 10px); z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 2px solid rgba(176,58,111,0.2); border-radius: 999px;
  padding: 3px 14px 3px 3px; text-align: left; max-width: calc(100vw - 110px);
}
.player .pic svg { width: 40px; height: 40px; display: block; }
.player-text { display: grid; line-height: 1.1; min-width: 0; }
.player-text b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); }
.xpbar { display: inline-block; width: 56px; height: 7px; border-radius: 4px; background: rgba(176,58,111,0.15); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rose), var(--ink)); border-radius: 4px; transition: width 0.6s ease-out; }
.xpbar.big { width: auto; flex: 1; height: 12px; border-radius: 6px; }
.giftbtn {
  position: absolute; right: 12px; top: calc(var(--safe-top) + 8px); z-index: 2;
  width: 62px; height: 62px; border: 0; background: none; padding: 0;
  animation: giftwiggle 1.8s ease-in-out infinite;
}
.giftbtn .ico svg { width: 62px; height: 62px; filter: drop-shadow(0 4px 6px rgba(176,58,111,0.35)); }
.giftbtn .badge { top: 0; right: 0; }
@keyframes giftwiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-12deg) scale(1.08); } 80% { transform: rotate(10deg) scale(1.08); } 90% { transform: rotate(-6deg); } }
.title-top { position: relative; }
.title-top .lockup { padding-top: 42px; }
.news {
  margin: 6px auto 0; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--rose); border-radius: 999px; padding: 6px 16px 6px 8px;
  font-size: 16px; font-weight: 600; color: var(--ink); box-shadow: 0 6px 14px rgba(176,58,111,0.2);
  animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both, bob 2.2s 0.4s ease-in-out infinite;
}
.news .pic svg { width: 32px; height: 32px; display: block; }
.pulse { margin: -2px 0 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--plum); text-shadow: 0 1px 0 rgba(255,255,255,0.8); }
.pulse b { color: var(--ink); }
#btn-play { position: relative; }
.nudge { position: absolute; right: 18px; top: 50%; width: 40px; height: 40px; margin-top: -20px; animation: nudge 1s ease-in-out infinite; }
.nudge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
@keyframes nudge { 50% { transform: translateX(-8px); } }
.row3.modes .btn { padding: 8px 4px; min-height: 60px; }
.row3.modes .btn-title { font-size: 17px; }
.row3.modes .btn-sub { font-size: 13px; }
.iconrow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.icon-btn { font-size: 13px; min-height: 66px; }
.icon-btn .ico { width: 36px; height: 36px; }

/* End sheet extras */
.vs { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600; }
.vs .side { display: grid; justify-items: center; gap: 2px; }
.vs .pic svg { width: 46px; height: 46px; display: block; }
.vs .win { color: #3f6f3a; }
.vs .vsx { font-size: 22px; color: var(--ink); }
.rank { margin: 0; text-align: center; font-size: 17px; font-weight: 600; color: var(--ink); }
.rank:empty { display: none; }
.rank.pop { animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1); }
.rewards { background: var(--linen); border-radius: 20px; padding: 10px 12px; display: grid; gap: 8px; text-align: left; }
.reward-line { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 500; }
.reward-line b { margin-left: auto; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.reward-line .plus { font-size: 15px; font-weight: 600; color: #3f6f3a; min-width: 40px; text-align: right; }
.xp { display: flex; align-items: center; gap: 8px; }
.lvl-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.lvl-badge.up { animation: comboup 0.5s cubic-bezier(0.2, 1.8, 0.4, 1); }
.stars { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.wish { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; background: #fff; border-radius: 14px; padding: 6px 10px; font-size: 15px; }
.wish .pic svg { width: 40px; height: 40px; display: block; }
.wish .wbar { display: block; height: 9px; border-radius: 5px; background: rgba(176,58,111,0.13); overflow: hidden; margin-top: 4px; }
.wish .wbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f6d98b, var(--rose)); transition: width 0.9s ease-out; }
.wish.ready { outline: 3px solid #f6d98b; animation: pop 0.4s both; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 2px 10px 2px 2px; font-size: 13px; font-weight: 600; animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.chip svg { width: 28px; height: 28px; display: block; }
.btn.slim { min-height: 44px; font-size: 16px; }
.sheet-foot {
  position: sticky; bottom: calc(-1 * (var(--safe-bottom) + 14px)); z-index: 2;
  display: grid; gap: 8px; margin: 0 -18px; padding: 18px 18px calc(var(--safe-bottom) + 14px);
  background: linear-gradient(rgba(255,253,251,0), var(--card) 22%);
}
.sheet-inner { max-height: 74vh; }
.gain .bow-ico { width: 30px; height: 30px; }
.gain .bow-ico svg { width: 30px; height: 30px; }
.chips-h { width: 100%; font-size: 14px; font-weight: 600; color: var(--ink); }

/* Party cards: level up, daily gift */
.card.party { overflow: hidden; }
.burst-star { position: relative; width: 120px; height: 120px; margin: -4px auto 0; display: grid; place-items: center; }
.burst-star::before {
  content: ''; position: absolute; inset: 0;
  background: conic-gradient(from 0deg, #f6d98b 0 10deg, transparent 10deg 30deg, #f7a8c4 30deg 40deg, transparent 40deg 60deg, #9cc3e6 60deg 70deg, transparent 70deg 90deg, #f6d98b 90deg 100deg, transparent 100deg 120deg, #f7a8c4 120deg 130deg, transparent 130deg 150deg, #9cc3e6 150deg 160deg, transparent 160deg 180deg, #f6d98b 180deg 190deg, transparent 190deg 210deg, #f7a8c4 210deg 220deg, transparent 220deg 240deg, #9cc3e6 240deg 250deg, transparent 250deg 270deg, #f6d98b 270deg 280deg, transparent 280deg 300deg, #f7a8c4 300deg 310deg, transparent 310deg 330deg, #9cc3e6 330deg 340deg, transparent 340deg 360deg);
  border-radius: 50%; animation: spinslow 8s linear infinite; opacity: 0.8;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 72%); mask-image: radial-gradient(circle, #000 40%, transparent 72%);
}
@keyframes spinslow { to { transform: rotate(360deg); } }
.burst-star span { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 36px; font-weight: 700; box-shadow: 0 6px 0 var(--ink-dark); animation: pop 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
.gains { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gain { display: flex; align-items: center; gap: 6px; background: var(--linen); border-radius: 16px; padding: 6px 12px; font-size: 16px; font-weight: 600; animation: pop 0.4s both; }
.gain svg { width: 40px; height: 40px; display: block; }
.giftbox { border: 0; background: none; padding: 0; margin: 0 auto; width: 150px; height: 150px; animation: giftwiggle 1.4s ease-in-out infinite; }
.giftbox svg { width: 150px; height: 150px; filter: drop-shadow(0 8px 12px rgba(176,58,111,0.35)); }
.giftbox.open { animation: giftopen 0.5s ease-out forwards; }
@keyframes giftopen { 50% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(0.2); opacity: 0; } }
.gift-won { display: grid; justify-items: center; animation: pop 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
.gift-won svg { width: 110px !important; height: 110px !important; filter: none !important; }
.gift-won b { font-size: 34px; font-weight: 700; color: var(--ink); margin-top: -10px; }
.giftbox:disabled { animation: none; cursor: default; }
.giftcard { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.giftcard .spot { aspect-ratio: 1; border-radius: 10px; border: 2px dashed rgba(176,58,111,0.3); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--plum-soft); background: #fff; }
.giftcard .spot.got { border-style: solid; border-color: var(--rose); background: var(--blush); }
.giftcard .spot svg { width: 80%; height: 80%; }
.giftcard .spot.big { border-color: #f2b134; }
.giftcard .spot.now { animation: pop 0.5s 0.3s cubic-bezier(0.2, 1.8, 0.4, 1) both; }

/* Challenges */
.challenger { display: flex; justify-content: center; }
.pic.big svg { width: 96px; height: 96px; display: block; filter: drop-shadow(0 4px 8px rgba(176,58,111,0.25)); }
.codeshow, .codeslots { display: flex; justify-content: center; gap: 6px; }
.codeshow .c, .codeslots .c { width: 54px; height: 54px; border-radius: 14px; background: #fff; border: 2px solid rgba(176,58,111,0.25); display: grid; place-items: center; }
.codeshow .c svg, .codeslots .c svg { width: 44px; height: 44px; }
.codeshow .c { animation: pop 0.4s both cubic-bezier(0.2, 1.8, 0.4, 1); }
.codeslots .c.next { border-color: var(--ink); border-style: dashed; animation: bob 1s ease-in-out infinite; }
.code-words { margin: 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--ink); }
.codepad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.codepad button { min-height: 70px; border-radius: 18px; border: 2px solid rgba(74,44,58,0.12); background: var(--linen); display: grid; place-items: center; }
.codepad button svg { width: 50px; height: 50px; }
.codepad button:active { background: var(--blush); transform: scale(0.95); }
.codepad .del { font-size: 26px; font-weight: 600; }
.how { display: grid; gap: 8px; margin: 6px 0 14px; }
.how div { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 8px 12px; font-size: 17px; }
.how .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 700; flex: none; }
.page-body > .btn { margin-top: 10px; }
.mine { display: grid; gap: 8px; }
.mine .empty { color: var(--plum-soft); font-size: 16px; text-align: center; padding: 10px; }
.mine-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; background: var(--card); border-radius: 18px; padding: 10px 12px; border: 2px solid transparent; }
.mine-row.hot { border-color: var(--rose); }
.mine-row .codes { display: flex; gap: 3px; }
.mine-row .codes svg { width: 30px; height: 30px; }
.mine-row .meta { font-size: 15px; color: var(--plum-soft); grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.mine-row .meta .pic svg { width: 28px; height: 28px; display: block; }
.mine-row .meta b { color: var(--ink); }
.mine-row .btn { width: auto; min-height: 40px; font-size: 15px; padding: 4px 14px; }

/* Scoreboards */
.tabs.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: rgba(74,44,58,0.06); padding: 4px; border-radius: 999px; margin: 8px 0 12px; }
.tabs.three button { border: 0; background: none; border-radius: 999px; min-height: 46px; font-size: 15px; font-weight: 600; }
.tabs.three button[aria-selected='true'] { background: var(--card); box-shadow: 0 2px 6px rgba(74,44,58,0.14); color: var(--ink); }
.you { text-align: center; font-size: 17px; color: var(--plum-soft); margin: 0 0 8px; }
.you b { color: var(--ink); }
.board { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 34px 40px 1fr auto; align-items: center; gap: 8px; background: var(--card); border-radius: 16px; padding: 6px 12px; font-size: 17px; min-height: 54px; border: 2px solid transparent; }
.board li.me { border-color: var(--ink); background: #fff5f9; }
.board .pos { font-weight: 700; color: var(--plum-soft); text-align: center; }
.board li:nth-child(1) .pos { color: #e0a31c; }
.board li:nth-child(2) .pos { color: #9aa3ad; }
.board li:nth-child(3) .pos { color: #c08452; }
.board .pic svg { width: 40px; height: 40px; display: block; }
.board .who { display: grid; line-height: 1.15; min-width: 0; }
.board .who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .who span { font-size: 13px; color: var(--plum-soft); }
.board .pts { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.board .empty { display: block; text-align: center; color: var(--plum-soft); background: none; }

/* Nickname picker */
.name-preview { font-size: 28px; font-weight: 600; color: var(--ink); min-height: 38px; }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picker { height: 190px; overflow-y: auto; border-radius: 18px; background: var(--linen); border: 2px solid rgba(74,44,58,0.1); padding: 6px; display: grid; gap: 4px; align-content: start; }
.picker button { border: 0; background: none; border-radius: 12px; min-height: 44px; font-size: 18px; font-weight: 500; }
.picker button[aria-selected='true'] { background: var(--ink); color: #fff; }

/* Sticker book */
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; }
.sticker { background: var(--card); border-radius: 18px; padding: 8px 4px 8px; text-align: center; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 2px solid transparent; }
.sticker svg { width: 64px; height: 64px; }
.sticker.locked svg { filter: grayscale(1) opacity(0.28); }
.sticker.locked { color: var(--plum-soft); font-weight: 500; }
.sticker .hint { font-size: 12px; font-weight: 500; color: var(--plum-soft); line-height: 1.2; }
.sticker.fresh { border-color: var(--rose); }
.places { display: grid; gap: 10px; }
.place { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 10px 14px; font-size: 18px; font-weight: 600; }
.place svg { width: 54px; height: 54px; flex: none; }
.place.locked { color: var(--plum-soft); }
.place.locked svg { filter: grayscale(1) opacity(0.3); }
.place span { display: block; font-size: 14px; font-weight: 500; color: var(--plum-soft); }

/* Closet extras */
.closet-name { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; }
.closet-name .wishbtn { border: 2px solid var(--rose); background: #fff; border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 600; color: var(--ink); min-height: 32px; }
.closet-name .wishbtn.on { background: var(--rose); color: #fff; }
.cl-item .lvl { color: var(--plum-soft); font-size: 13px; }
.cl-item.wished::before { content: ''; position: absolute; top: 5px; left: 6px; width: 16px; height: 16px; background: var(--rose); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 41S6 30 6 17c0-6 5-10 10-10 4 0 7 2 8 5 1-3 4-5 8-5 5 0 10 4 10 10 0 13-18 24-18 24z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 41S6 30 6 17c0-6 5-10 10-10 4 0 7 2 8 5 1-3 4-5 8-5 5 0 10 4 10 10 0 13-18 24-18 24z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Grown-ups extras */
.select { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; background: var(--card); border: 2px solid rgba(74,44,58,0.1); border-radius: 18px; font-size: 18px; font-weight: 500; margin-top: 10px; }
.select select { font: inherit; font-size: 16px; border-radius: 12px; border: 2px solid rgba(74,44,58,0.2); padding: 6px 10px; background: #fff; color: var(--plum); }
.shop-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 6px; scroll-snap-type: x proximity; }
.shop-scroll:empty { display: none; }
.product { flex: none; width: 138px; text-decoration: none; color: var(--plum); background: var(--card); border-radius: 16px; overflow: hidden; border: 2px solid rgba(74,44,58,0.08); scroll-snap-align: start; }
.product img { width: 138px; height: 138px; object-fit: cover; display: block; background: var(--blush); }
.product .p-title { font-size: 14px; line-height: 1.25; padding: 6px 8px 0; height: 42px; overflow: hidden; }
.product .p-price { font-size: 15px; font-weight: 600; padding: 2px 8px 8px; }

@media (max-height: 700px) {
  .title-top .lockup { padding-top: 38px; }
  .logo { width: min(80vw, 360px, calc(24vh * 1.477)); }
  .row3.modes .btn { min-height: 54px; }
  .icon-btn { min-height: 58px; }
}

/* ------------------------------------------------------------ Bow Dash 2.1 */

/* Six tabs in the closet (and six in the room); six buttons on the title. */
.closet .tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.closet .tabs button { font-size: 13px; padding: 0 2px; min-height: 42px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconrow { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.icon-btn { font-size: 12px; }
.icon-btn .ico { width: 34px; height: 34px; }
.cl-item.shopnew::before { content: 'New this month'; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; z-index: 1; }

/* The season on the title: what to collect and the next prize. */
.season-card {
  margin: 6px auto 0; display: flex; align-items: center; gap: 8px; max-width: 360px; width: calc(100% - 24px);
  background: #fff; border: 2px solid #f3c38f; border-radius: 20px; padding: 6px 12px 6px 6px; text-align: left;
  box-shadow: 0 6px 14px rgba(176, 58, 111, 0.18); color: var(--plum);
  animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.season-card .tok svg { width: 44px; height: 44px; display: block; animation: bob 2.2s ease-in-out infinite; }
.season-card .txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.season-card .txt b { font-size: 15px; color: var(--ink); }
.season-card .txt span { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.season-card .bar, .town .bar, .season-bar { display: block; height: 8px; border-radius: 8px; background: rgba(74, 44, 58, 0.1); overflow: hidden; margin-top: 3px; }
.season-card .bar i, .town .bar i, .season-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #f7a94f, #f293b7); transition: width 0.8s ease-out; }
.town { display: block; margin: 0 auto; max-width: 360px; width: calc(100% - 24px); background: rgba(255, 255, 255, 0.82); border: 0; border-radius: 14px; padding: 5px 10px; font-size: 13px; font-weight: 500; color: var(--plum); text-align: center; }
.town b { color: var(--ink); }
.town .bar i { background: linear-gradient(90deg, #9cc3e6, #b69ad8); }

/* The season and town cards. */
.season-art { width: 84px; height: 84px; margin: 0 auto 4px; }
.season-art svg { width: 100%; height: 100%; }
.season-bar { height: 14px; margin: 6px 0 12px; }
.prize-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; text-align: left; }
.prize-list li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 6px 10px 6px 6px; }
.prize-list li.got { background: #fff5f9; }
.prize-list .pic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background-size: 52px; }
.prize-list .pic svg { width: 42px; height: 42px; }
.prize-list li > span:last-child { display: flex; flex-direction: column; font-size: 14px; }
.prize-list li > span:last-child span { color: var(--plum-soft); font-weight: 500; }

/* Season tokens on the HUD. */
.token-pill .tok-ico svg { width: 26px; height: 26px; display: block; }
.token-pill.pop { animation: bump 0.2s ease-out; }
.chip.gold { background: #fff4d6; }
.chip .pic, .chip > span.pic { display: inline-grid; }

/* The hair bow on the grown-ups page. */
.reward-card { background: #fff; border: 2px dashed #f3c38f; border-radius: 20px; padding: 14px 16px; margin: 4px 0 14px; }
.reward-card .rw-h { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.reward-card p { margin: 0 0 8px; }
.rw-code { font-size: 38px; font-weight: 700; letter-spacing: 6px; text-align: center; color: var(--plum); background: #fff4d6; border-radius: 14px; padding: 8px 0; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
