/* =========================================================
   Half Sugar app
   Main colour: cream, like milk tea. Accent: one orange, used everywhere.
   Radius rule: buttons are pills, cards 20px, inputs 12px.
   ========================================================= */

:root {
  --bg: #f3eee3;
  --surface: #faf7f0;
  --sunk: #eae3d4;
  --ink: #2a1d16; /* dark brown, like tapioca */
  --pearl: #3b2518; /* tapioca pearls */
  --milk: #d9be97; /* milk tea */
  --muted: #6a6257;
  --line: #dcd3c3;
  --orange: #e25c14;
  --orange-deep: #b4460b; /* for small text, passes contrast */
  --orange-soft: #f6dcc8;
  --danger: #a3260f;

  --r-card: 20px;
  --r-input: 12px;
  --r-pill: 999px;

  --font: "Outfit", "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 20px 40px -24px rgb(92 64 30 / 0.28);

  --side-w: 232px;
  --tab-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain. Fixed to the screen so it does not repaint on scroll. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.36 0 0 0 0 0.25 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
fieldset {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

fieldset {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--orange-deep);
  outline-offset: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo__mark {
  flex: none;
  width: 22px;
  height: 26px;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn--primary {
  background: var(--orange);
}

.btn--primary:hover {
  background: #ec6a22;
}

.btn--dark {
  background: var(--ink);
  color: var(--bg);
}

.btn--dark:hover {
  background: #46301f;
}

.btn--ghost {
  border-color: #b9ad98;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn--danger {
  background: var(--danger);
  color: #fff8f2;
}

.btn[disabled] {
  background: var(--sunk);
  color: var(--muted);
  cursor: default;
}

.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btnrow--center {
  justify-content: center;
}

/* ---------- Layout ---------- */

.app {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100dvh;
}

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100dvh;
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.side .logo {
  padding-left: 12px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--r-input);
  color: var(--muted);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.nav a i {
  font-size: 1.375rem;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--sunk);
  color: var(--ink);
}

.nav a[aria-current="page"] i {
  color: var(--orange-deep);
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.main {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 40px clamp(16px, 4vw, 40px) 72px;
}

.main > * + * {
  margin-top: 16px;
}

.main--chat {
  height: 100dvh;
  padding-bottom: 20px;
}

/* ---------- Page header ---------- */

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.sub {
  margin-top: 6px;
  color: var(--orange-deep);
  font-weight: 500;
}

.lead {
  max-width: 34em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.meta,
.hint {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Cards and panels ---------- */

.card,
.panel {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.card {
  box-shadow: var(--shadow);
  animation: rise 0.5s var(--ease) both;
}

.card > * + * {
  margin-top: 14px;
}

.card--mine {
  border-color: var(--orange);
  background: #fbf1e6;
  box-shadow: none;
}

.mine > * + * {
  margin-top: 12px;
}

.mine h2 {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.thought {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.post-title {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.35;
}

.byline small {
  color: var(--muted);
  font-size: 0.875rem;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--muted);
  font-weight: 600;
}

.avatar--on {
  background: var(--orange);
  color: var(--ink);
}

.brief {
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.brief > div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 12px;
}

.brief dt {
  color: var(--muted);
}

.brief--locked {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #b9ad98;
}

.locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.locked i {
  color: var(--orange-deep);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.chips span {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 0.875rem;
}

.responses {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #ecc9ad;
}

.responses li > * + * {
  margin-top: 10px;
}

.quote {
  padding-left: 14px;
  border-left: 2px solid var(--orange);
}

.waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.empty {
  padding: 40px 20px;
  border: 1px dashed #b9ad98;
  border-radius: var(--r-card);
  color: var(--muted);
  text-align: center;
}

.empty > * + * {
  margin-top: 16px;
}

.note > * + * {
  margin-top: 12px;
}

.note p {
  color: var(--muted);
}

/* ---------- Forms ---------- */

.stack {
  display: grid;
  gap: 16px;
}

.row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field label,
legend {
  font-size: 0.9375rem;
  font-weight: 500;
}

fieldset.panel {
  display: grid;
  gap: 16px;
}

legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: var(--orange-deep);
}

.panel--locked {
  border-style: dashed;
  border-color: #b9ad98;
  background: var(--sunk);
}

.panel--locked legend {
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #b9ad98;
  border-radius: var(--r-input);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

::placeholder {
  color: #7a7064;
  opacity: 1;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.error {
  color: var(--danger);
  font-size: 0.9375rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.filters select {
  min-height: 40px;
  padding: 6px 10px;
  border-color: var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.9375rem;
}

.reply {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- Onboarding ---------- */

.onboard {
  max-width: 640px;
  margin-inline: auto;
  padding: 48px clamp(16px, 4vw, 40px) 72px;
}

.onboard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.onboard h1 {
  margin-top: 28px;
}

.onboard form {
  margin-top: 32px;
}

/* ---------- Drop ---------- */

.drop-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 48px);
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--r-card);
  background: var(--orange);
}

.drop-card__label {
  font-weight: 500;
}

.drop-card__time {
  margin-block: 4px 8px;
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.drop-card .btn {
  margin-top: 22px;
}

.rules {
  display: grid;
  gap: 18px;
  padding: 12px 4px;
}

.rules li {
  display: flex;
  gap: 14px;
}

.rules i {
  flex: none;
  margin-top: 2px;
  color: var(--orange);
  font-size: 1.5rem;
}

.rules p {
  color: var(--muted);
}

.drop-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-block: clamp(48px, 14vh, 140px);
  text-align: center;
}

.drop-stage .sub {
  max-width: 30em;
  color: var(--muted);
  font-weight: 400;
}

.drop-stage .btnrow,
.drop-stage .waiting {
  margin-top: 16px;
}

/* ---------- Boba pieces ---------- */

.cup {
  display: block;
  width: 24px;
  height: 28px;
  color: var(--ink);
  overflow: visible;
}

.cup--lg {
  width: 72px;
  height: 84px;
}

.cup--hero {
  width: clamp(88px, 16vw, 128px);
  height: auto;
  aspect-ratio: 28 / 34;
  animation: float 3.2s ease-in-out infinite alternate;
}

.cup--mystery {
  width: clamp(92px, 18vw, 136px);
  height: auto;
  aspect-ratio: 28 / 34;
  animation: float 3.2s ease-in-out infinite alternate;
}

@keyframes float {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-8px) rotate(3deg); }
}

.avatar--cup {
  background: var(--surface);
  border: 1px solid var(--line);
}

.avatar--cup .cup {
  width: 20px;
  height: 24px;
}

.flavor {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 10px;
  border-radius: var(--r-pill);
  background: var(--flavor);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  vertical-align: 2px;
}

.onboard__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.onboard__hero h1 {
  margin-top: 0;
}

.receipt {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px dashed #b9ad98;
  border-radius: var(--r-card);
  background:
    radial-gradient(circle at 0 50%, var(--bg) 10px, transparent 11px),
    radial-gradient(circle at 100% 50%, var(--bg) 10px, transparent 11px),
    var(--surface);
  margin-bottom: 20px;
}

.receipt__label {
  color: var(--muted);
  font-size: 0.8125rem;
}

.receipt__item {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.receipt__meta {
  color: var(--muted);
}

/* The printed seal film on top of a cup, until both people pop it */
.brief--locked.is-sealed {
  padding: 14px;
  border: 0;
  border-radius: var(--r-input);
  background: repeating-linear-gradient(135deg, var(--orange-soft) 0 10px, #fbeadb 10px 20px);
}

.shake {
  animation: shake 0.5s ease-in-out infinite alternate;
}

@keyframes shake {
  from { transform: rotate(-12deg); }
  to { transform: rotate(12deg); }
}

/* Three tapioca pearls bouncing while we shake your cup */
.pearls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pearls span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  animation: bounce 0.8s var(--ease) infinite alternate;
}

.pearls span:nth-child(2) {
  background: var(--orange);
  animation-delay: 0.15s;
}

.pearls span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  from { transform: translateY(8px); }
  to { transform: translateY(-12px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}

/* ---------- Chat list ---------- */

.threads {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}

.threads li + li {
  border-top: 1px solid var(--line);
}

.threads a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  transition: background-color 0.2s;
}

.threads a:hover {
  background: #fffdf8;
}

.threads__body {
  display: grid;
  min-width: 0;
  line-height: 1.4;
}

.threads__body small {
  color: var(--orange-deep);
  font-size: 0.8125rem;
}

.threads__last {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9375rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Chat ---------- */

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.chat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.chat__head h1 {
  font-size: 1.5rem;
}

.chat__head .sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.chat__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.25rem;
}

.timer {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.who {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.who summary {
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.who[open] summary {
  margin-bottom: 14px;
}

.booking {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-input);
  background: var(--orange-soft);
  font-size: 0.9375rem;
  font-weight: 500;
}

.booking i {
  font-size: 1.25rem;
}

.log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow-y: auto;
}

.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.msg--me {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--ink);
  color: var(--bg);
}

.msg--them {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--sunk);
}

.msg--sys {
  align-self: center;
  max-width: 92%;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.msg--typing {
  display: flex;
  gap: 4px;
  padding: 14px;
}

.msg--typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pearl);
  animation: blink 1s infinite alternate;
}

.msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.msg--typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  from { opacity: 0.25; }
  to { opacity: 1; }
}

.composer {
  display: flex;
  gap: 8px;
}

.composer input {
  min-height: 48px;
  border-radius: var(--r-pill);
  padding-inline: 20px;
}

.composer .btn {
  flex: none;
  width: 48px;
  padding: 0;
  font-size: 1.25rem;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  transform: translateX(-50%);
  animation: rise 0.4s var(--ease) both;
}

/* ---------- Phones ---------- */

@media (max-width: 820px) {
  .app {
    display: block;
  }

  .side {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: block;
    height: auto;
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .side .logo {
    display: none;
  }

  .nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .nav a {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: var(--tab-h);
    padding: 0;
    font-size: 0.75rem;
  }

  .nav a[aria-current="page"] {
    background: none;
  }

  .nav .badge {
    position: absolute;
    top: 8px;
    left: calc(50% + 6px);
    margin: 0;
  }

  .main {
    padding: 24px 16px calc(var(--tab-h) + 40px);
  }

  .main--chat {
    height: calc(100dvh - var(--tab-h) - env(safe-area-inset-bottom, 0px));
    padding: 16px 16px 12px;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toast {
    bottom: calc(var(--tab-h) + 20px);
  }
}

@media (max-width: 520px) {
  .row2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .brief > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .msg {
    max-width: 88%;
  }

  .chat__tools {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Boba pieces on small screens ---------- */

.empty .cup {
  margin-inline: auto;
}

@media (max-width: 520px) {
  .drop-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .onboard__hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .onboard__hero .cup--hero {
    display: none;
  }
}

/* ---------- Small explanations for the boba words ---------- */

.explain {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 40em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.explain i {
  flex: none;
  margin-top: 2px;
  color: var(--orange-deep);
}

.explain a,
.onboard__about a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.onboard__about {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.nav__text {
  display: grid;
  line-height: 1.25;
}

.nav__text small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.side__about {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: var(--r-input);
  color: var(--muted);
  font-size: 0.875rem;
}

.side__about:hover,
.side__about[aria-current="page"] {
  background: var(--sunk);
  color: var(--ink);
}

/* ---------- About page ---------- */

.about-page {
  max-width: 760px;
  margin-inline: auto;
  padding: 40px clamp(16px, 4vw, 40px) 72px;
}

.about > * + * {
  margin-top: clamp(40px, 6vw, 64px);
}

.about h2 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.about p {
  max-width: 40em;
}

.about__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.about__hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.about__block > * + * {
  margin-top: 12px;
}

.about__block > p {
  color: var(--muted);
  font-size: 1.0625rem;
}

.about__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about__card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.about__card p {
  margin-top: 10px;
  color: var(--muted);
}

.about__card--sugar {
  border-color: transparent;
  background: linear-gradient(to top, var(--milk) 50%, var(--surface) 50%);
}

.about__card--sugar p {
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 48px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pearl);
  color: var(--bg);
  font-weight: 600;
}

.about__hint {
  color: var(--muted);
}

.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.glossary > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.glossary dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.glossary dt i {
  color: var(--orange-deep);
  font-size: 1.125rem;
}

.glossary dd {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.flavors__title {
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 600;
}

.flavors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.9375rem;
}

.flavors li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flavors .flavor {
  margin-left: 0;
  vertical-align: 0;
}

.about__belief {
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--r-card);
  background: var(--pearl);
  color: var(--bg);
  text-align: center;
}

.about__belief p {
  max-width: none;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about__belief .accent {
  color: var(--orange);
}

.about__belief .btnrow {
  margin-top: 24px;
}

@media (max-width: 820px) {
  .nav__text small,
  .side__about {
    display: none;
  }
}

@media (max-width: 600px) {
  .about__pair,
  .glossary {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__hero .cup--hero {
    display: none;
  }
}

/* ---------- Sugar level chip (set per thought, brew or Mystery Cup) ---------- */

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.sugar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 8px;
  border-radius: var(--r-pill);
  background: var(--sunk);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

.cup--chip {
  width: 14px;
  height: 17px;
}

.drop-card__sugar {
  display: grid;
  gap: 6px;
  max-width: 280px;
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.drop-card__sugar select {
  min-height: 42px;
  border-color: var(--ink);
  border-radius: var(--r-pill);
}

@media (max-width: 520px) {
  .drop-card__sugar {
    margin-inline: auto;
  }
}

/* ---------- Chat time limit ---------- */

.expiry {
  color: var(--muted);
  font-size: 0.8125rem;
}

.chat__head .meta-row {
  margin-top: 6px;
}

.cold {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px dashed #b9ad98;
  border-radius: var(--r-card);
  color: var(--muted);
}

.cold i {
  color: var(--orange-deep);
  font-size: 1.25rem;
}

.threads .is-cold a {
  opacity: 0.55;
}

/* Development-only buttons */
.devrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.devrow .btn {
  min-height: 32px;
  border-style: dashed;
  font-size: 0.8125rem;
}

/* ---------- Language switch ---------- */

.side__foot {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.side__foot .side__about {
  margin-top: 0;
}

.lang {
  justify-self: start;
  min-height: 36px;
  font-size: 0.875rem;
}

.lang i {
  font-size: 1.0625rem;
}

@media (max-width: 820px) {
  .side__foot {
    display: none;
  }
}

/* ---------- About: why chats go cold ---------- */

.about__cold {
  display: flex;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px dashed #b9ad98;
  border-radius: var(--r-card);
  background: var(--surface);
}

.about__cold > i {
  flex: none;
  color: var(--orange-deep);
  font-size: 1.75rem;
}

.about__cold > div > * + * {
  margin-top: 10px;
}

.about__cold p {
  color: var(--muted);
}

.about__cold .about__hint {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Traditional Chinese typography ----------
   Chinese characters are square and dense, so they need more room
   between letters and lines than Latin text. English slogans inside
   the Chinese page are marked lang="en" and keep their tight spacing. */

html:lang(zh-Hant) body {
  line-height: 1.85;
  letter-spacing: 0.04em;
  text-autospace: normal; /* adds a small gap between Chinese and Latin where supported */
}

html:lang(zh-Hant) :is(h1, h2, h3, .receipt__item, .sub, .lead, .drop-card__label, .glossary dt, .nav__text > span, .about__belief p) {
  letter-spacing: 0.06em;
}

html:lang(zh-Hant) :is(h1, h2, h3, .post-title, .receipt__item) {
  font-weight: 600;
}

html:lang(zh-Hant) h1 {
  line-height: 1.35;
}

html:lang(zh-Hant) :is(.thought, .post-title, .lead) {
  line-height: 1.65;
}

html:lang(zh-Hant) :is(.brief, .explain, .byline, .msg, .hint, .quote, .glossary dd, .about__card p, .about__cold p, .steps li, .threads__body, .receipt__meta) {
  line-height: 1.75;
}

html:lang(zh-Hant) .nav__text {
  gap: 2px;
  line-height: 1.45;
}

html:lang(zh-Hant) .brief > div {
  gap: 16px;
}

html:lang(zh-Hant) .btn {
  letter-spacing: 0.08em;
}

html:lang(zh-Hant) .steps {
  gap: 18px;
}

/* English slogans on the Chinese page */
html:lang(zh-Hant) [lang="en"] {
  letter-spacing: -0.01em;
}

html:lang(zh-Hant) h1[lang="en"] {
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* What people write can be English or Chinese, so it gets a middle value */
html:lang(zh-Hant) :is(.thought, .post-title, .msg, .quote, .threads__last, .brief dd, .byline small, .chips span) {
  letter-spacing: 0.015em;
}

/* ---------- Matching: today's picks, looking for, sent brews ---------- */

.picks__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.picks__head h2 {
  font-size: 1.25rem;
}

.pick__thought {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-input);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.pick__thought span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.why {
  padding: 12px 16px;
  border-radius: var(--r-input);
  background: var(--orange-soft);
}

.why__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.why ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 6px;
  font-size: 0.9375rem;
}

.why--inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.why i {
  color: var(--orange-deep);
}

.nudge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border: 1px dashed var(--orange);
  border-radius: var(--r-card);
  font-size: 0.9375rem;
}

.nudge i {
  margin-top: 3px;
  color: var(--orange-deep);
}

.nudge a {
  color: var(--orange-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field__label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check {
  position: relative;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #b9ad98;
  border-radius: var(--r-pill);
  background: #fffdf8;
  font-size: 0.9375rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.check input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.check input:focus-visible + span {
  outline: 2px solid var(--orange-deep);
  outline-offset: 2px;
}

.sent {
  padding-top: 12px;
  border-top: 1px solid #ecc9ad;
}

.sent .meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sent__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  font-size: 0.875rem;
}

.sent__list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sent__list .avatar {
  width: 30px;
  height: 30px;
}

.sent__list .avatar .cup {
  width: 15px;
  height: 18px;
}

/* ---------- Onboarding questions ---------- */

.progress {
  height: 6px;
  margin-top: 28px;
  border-radius: var(--r-pill);
  background: var(--sunk);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 0.4s var(--ease);
}

.quiz {
  margin-top: 28px;
}

.quiz > * + * {
  margin-top: 14px;
}

.quiz__q {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.quiz__hint {
  color: var(--muted);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}

.option:hover {
  border-color: var(--ink);
}

.option:active {
  transform: scale(0.98);
}

.option.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.option.is-on .cup {
  color: var(--bg);
}

.options--flavors {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.cup--option {
  width: 26px;
  height: 30px;
  flex: none;
}

.options--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option--chip {
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
}

.quiz .field {
  margin-top: 22px;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 520px) {
  .options {
    grid-template-columns: minmax(0, 1fr);
  }

  .options--flavors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Two-flavor cups ---------- */

.flavor {
  background: linear-gradient(90deg, var(--flavor) 50%, var(--flavor2, var(--flavor)) 50%);
}

.option small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.75;
}

.quiz__preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px dashed #b9ad98;
  border-radius: var(--r-card);
  font-size: 1.125rem;
  font-weight: 600;
}

.quiz__preview .cup--lg {
  width: 48px;
  height: 56px;
}

/* ---------- Algorithm panel in My order ---------- */

.algo > * + * {
  margin-top: 12px;
}

.algo h3 {
  margin-top: 20px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.algo__weights,
.algo__funnel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}

.algo__weights li,
.algo__funnel li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 6px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9375rem;
}

.algo__weights strong,
.algo__funnel strong {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .algo__weights,
  .algo__funnel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Explore forum ---------- */

.cats {
  display: flex;
  gap: 8px;
  margin-inline: -4px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.cat:hover {
  border-color: var(--ink);
}

.cat.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.forum-post__cat {
  color: var(--orange-deep);
  font-size: 0.8125rem;
  font-weight: 600;
}

.forum-post__link {
  display: block;
}

.forum-post__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

.forum-post__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.forum-post__foot form {
  flex-basis: 100%;
}

.forum-post--open .thought {
  font-size: 1.375rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
}

.back-link:hover {
  color: var(--ink);
}

.comments > * + * {
  margin-top: 12px;
}

.comments h2 {
  margin-top: 8px;
  font-size: 1.125rem;
}

.comments__list {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.comment {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
}

.comment + .comment {
  border-top: 1px solid var(--line);
}

.comment__body {
  flex: 1;
  min-width: 0;
}

.comment__body > * + * {
  margin-top: 6px;
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.tag {
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--orange-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.comment-form textarea {
  min-height: 52px;
}

/* Shown until the app has drawn the first screen */
.boot {
  padding: 48px 24px;
  color: var(--muted);
  text-align: center;
}

.inline-link {
  color: var(--orange-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mystery Cup: the one thing you share */
.anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 12px 3px 10px;
  border-radius: var(--r-pill);
  background: var(--orange-soft);
  font-size: 0.875rem;
  font-weight: 600;
}

.anchor i {
  color: var(--orange-deep);
}

/* ---------- Tags: curious about, can share ---------- */

.tags > * + * {
  margin-top: 4px;
}

.tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
}

.tag-chip button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.tag-chip button:hover {
  background: rgb(255 255 255 / 0.15);
}

.tags__add {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tags__add input {
  flex: 1;
  min-width: 0;
}

.tags__add .btn {
  min-height: 46px;
}

.tags__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cat--sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.8125rem;
  font-weight: 400;
}

/* ---------- Brew: kind, event, roles ---------- */

.brew-kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.kind-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 12px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
}

.kind-chip i {
  color: var(--orange-deep);
}

.brew-kind__event {
  font-weight: 600;
}

.roles {
  display: grid;
  gap: 6px;
}

.role {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 6px 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--bg);
}

.role i {
  flex: none;
  color: var(--orange-deep);
  font-size: 1.25rem;
}

.role__name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.role.is-filled {
  background: transparent;
}

.role.is-filled .role__name {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--orange);
}

.role__tag {
  padding-right: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.role .btn--sm {
  min-height: 32px;
  font-size: 0.8125rem;
}

.done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange-deep);
}

.brew.is-complete .post-title {
  color: var(--muted);
}

/* ---------- Role descriptions ---------- */

.role__more {
  flex: 1;
  min-width: 0;
}

.role__more summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

.role__more summary::-webkit-details-marker {
  display: none;
}

.role__more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.role__more[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.role__more p {
  margin-top: 4px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.role {
  align-items: flex-start;
  padding-block: 9px;
}

.role > i {
  margin-top: 1px;
}

.role-drafts {
  display: grid;
  gap: 8px;
}

.role-draft {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--bg);
}

.role-draft__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.role-draft textarea {
  min-height: 0;
  font-size: 0.9375rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--sunk);
  color: var(--ink);
}

/* =========================================================
   Depth and motion
   One light from the top left: soft layered shadows tinted to the
   cream, buttons with a pressable edge, cards that lean toward the
   pointer. Motion is skipped for people who prefer less of it.
   ========================================================= */

:root {
  --shadow-1: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 1px 2px rgb(92 64 30 / 0.06), 0 8px 16px -8px rgb(92 64 30 / 0.16);
  --shadow-3: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 4px 8px rgb(92 64 30 / 0.08), 0 30px 60px -24px rgb(92 64 30 / 0.36);
  --lip-orange: #b8470c;
  --lip-ink: #0f0805;
  --lip-soft: #d8cdb9;
}

/* Cards */
.card {
  animation: none;
  box-shadow: var(--shadow-1);
}

/* Pressable buttons: a darker edge underneath that disappears when pressed */
.btn {
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  box-shadow: 0 4px 0 var(--lip-orange), 0 10px 18px -8px rgb(226 92 20 / 0.55);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--lip-orange), 0 14px 22px -8px rgb(226 92 20 / 0.6);
}

.btn--primary:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--lip-orange), 0 4px 8px -4px rgb(226 92 20 / 0.5);
}

.btn--dark {
  box-shadow: 0 4px 0 var(--lip-ink), 0 10px 18px -8px rgb(42 29 22 / 0.5);
}

.btn--dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--lip-ink), 0 14px 22px -8px rgb(42 29 22 / 0.55);
}

.btn--dark:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--lip-ink), 0 4px 8px -4px rgb(42 29 22 / 0.4);
}

.btn--ghost {
  background: var(--surface);
  box-shadow: 0 3px 0 var(--lip-soft);
}

.btn--ghost:hover {
  border-color: #b9ad98;
  background: #fffdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--lip-soft);
}

.btn--ghost:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--lip-soft);
}

.btn[disabled] {
  box-shadow: none;
  transform: none;
}

/* Topic tabs and quiz answers press in too */
.cat,
.option {
  box-shadow: 0 3px 0 var(--lip-soft);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.2s, border-color 0.2s;
}

.cat:hover,
.option:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--lip-soft);
}

.cat:active,
.option:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--lip-soft);
}

.cat.is-on,
.option.is-on {
  box-shadow: 0 3px 0 var(--lip-ink);
}

/* The current page in the sidebar sits up like a tile */
@media (min-width: 821px) {
  .nav a[aria-current="page"] {
    background: #fffdf8;
    box-shadow: var(--shadow-1);
  }
}

/* Mystery Cup: the cup swirls while we match, then the chat flips open */
.swirl {
  perspective: 600px;
}

.swirl .cup {
  transform-origin: 50% 85%;
  animation: swirl 1.1s ease-in-out infinite alternate;
}

@keyframes swirl {
  from { transform: rotateY(-35deg) rotateZ(-10deg); }
  to { transform: rotateY(35deg) rotateZ(10deg); }
}

.flip-in {
  transform-origin: 50% 0;
  animation: flip-in 0.7s var(--ease) both;
}

@keyframes flip-in {
  from {
    opacity: 0;
    transform: perspective(800px) rotateX(-75deg);
  }
}

.drop-card {
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 26px 50px -22px rgb(226 92 20 / 0.6);
}

/* Pages rise in when you arrive, a little one after another */
.main.enter > *,
.quiz.enter > * {
  animation: rise 0.55s var(--ease) both;
}

.main.enter > :nth-child(2),
.quiz.enter > :nth-child(2) { animation-delay: 0.05s; }
.main.enter > :nth-child(3),
.quiz.enter > :nth-child(3) { animation-delay: 0.1s; }
.main.enter > :nth-child(4) { animation-delay: 0.15s; }
.main.enter > :nth-child(5) { animation-delay: 0.2s; }
.main.enter > :nth-child(n+6) { animation-delay: 0.25s; }

/* ---------- Less text: compact pieces ---------- */

.forum-post__foot {
  justify-content: flex-start;
  gap: 10px 14px;
}

.forum-post__foot .byline {
  margin-right: auto;
}

.count-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.count-link i {
  color: var(--orange-deep);
  font-size: 1.125rem;
}

.count-link:hover {
  color: var(--orange-deep);
}

.fill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dots {
  display: inline-flex;
  gap: 4px;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sunk);
  box-shadow: inset 0 1px 2px rgb(92 64 30 / 0.25);
}

.dots i.on {
  background: var(--orange);
  box-shadow: 0 1px 2px rgb(226 92 20 / 0.4);
}

.more summary,
details.algo > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
}

.more summary {
  display: inline-flex;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.more summary::-webkit-details-marker,
details.algo > summary::-webkit-details-marker {
  display: none;
}

.more summary::after,
details.algo > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.more[open] summary::after,
details.algo[open] > summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.more[open] summary {
  margin-bottom: 10px;
}

details.algo > summary {
  justify-content: space-between;
}

.rule-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rule-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 0.9375rem;
  font-weight: 500;
}

.rule-pills i {
  color: var(--orange-deep);
  font-size: 1.125rem;
}

.receipt {
  box-shadow: var(--shadow-1);
}

/* Who a commenter is, in one line */
.comment__body > .comment__intro {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.dm-who .byline {
  padding: 10px 12px;
  border-radius: var(--r-input);
  background: var(--bg);
}

/* =========================================================
   Toppings, gift boxes and the profile pop-up
   ========================================================= */

/* Clickable names and cups */
.name-btn,
.avatar-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.name-btn {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.name-btn:hover {
  text-decoration-color: var(--orange);
}

.name-btn--big {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: inherit;
}

.name-btn--big i {
  color: var(--muted);
  font-size: 1rem;
}

.avatar-btn {
  border: 1px solid var(--line);
  background: var(--surface);
}

.avatar-btn:hover {
  border-color: var(--orange);
}

/* Topping chips */
.ti {
  width: 18px;
  height: 18px;
  flex: none;
}

.tchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 6px;
  border-radius: var(--r-pill);
  background: var(--sunk);
  font-size: 0.875rem;
  font-weight: 500;
}

.tchip b {
  color: var(--muted);
  font-weight: 600;
}

.tchip--premium {
  background: var(--orange-soft);
}

.tchip--secret {
  background: linear-gradient(90deg, #e8defc, #fbe9c2);
}

.tier-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--sunk);
  font-size: 0.75rem;
  font-weight: 600;
}

.tier-tag--premium {
  background: var(--orange);
}

.tier-tag--secret {
  background: linear-gradient(90deg, #cdb8f5, #f5cf6e);
}

/* My order: your drink */
.mydrink {
  align-items: center;
  gap: clamp(18px, 4vw, 36px);
}

.mydrink__cup {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.cup--profile {
  width: clamp(104px, 18vw, 140px);
  height: auto;
  aspect-ratio: 28 / 34;
}

.mydrink__info > * + * {
  margin-top: 8px;
}

.pf__toppings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gift-cta i {
  font-size: 1.125rem;
}

/* Collection board */
.collection > * + * {
  margin-top: 18px;
}

.collection h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.collection__how {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.tile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 8px 10px;
  border: 1px dashed #c9bda8;
  border-radius: var(--r-input);
  text-align: center;
}

.tile__art {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--muted);
  font-size: 1.25rem;
}

.tile__art .ti {
  width: 28px;
  height: 28px;
}

.tile:not(.is-owned) .tile__art .ti {
  filter: grayscale(1);
  opacity: 0.3;
}

.tile__name {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.tile:not(.is-owned) .tile__name {
  color: var(--muted);
}

.tile.is-owned {
  border-style: solid;
  border-color: var(--line);
  background: #fffdf8;
  box-shadow: var(--shadow-1);
}

.tile.is-owned .tile__art {
  background: var(--bg);
}

.tile__count {
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--orange-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.tile__lock {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #b9ad98;
  font-size: 0.875rem;
}

/* Pop-up window */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(42 29 22 / 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade 0.25s ease both;
}

@keyframes fade {
  from { opacity: 0; }
}

.modal__card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px -20px rgb(42 29 22 / 0.5);
  animation: pop-in 0.4s var(--ease) both;
}

.modal__card:focus {
  outline: none;
}

.modal__card > * + * {
  margin-top: 14px;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

.modal__x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--ink);
  cursor: pointer;
}

.modal__x:hover {
  background: var(--line);
}

/* Profile pop-up */
.pf__top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 36px;
}

.pf__cup {
  flex: none;
  color: var(--ink);
}

.pf__who > * + * {
  margin-top: 4px;
}

.pf__who h2 {
  font-size: 1.625rem;
  letter-spacing: -0.02em;
}

.pf__drink {
  font-weight: 500;
}

.pf__tags .chips {
  margin-top: 6px;
}

.pf__sealed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r-input);
  background: repeating-linear-gradient(135deg, var(--orange-soft) 0 10px, #fbeadb 10px 20px);
  font-size: 0.9375rem;
}

.pf__sealed i {
  color: var(--orange-deep);
}

.pf__actions .stack {
  gap: 8px;
}

.pf__actions .btn {
  justify-self: start;
}

/* Gift boxes */
.modal__card--box {
  text-align: center;
}

.modal__card--box h2 {
  font-size: 1.625rem;
  letter-spacing: -0.02em;
}

.modal__card--box .sub {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}

.gifts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-block: 22px 8px;
}

.gift {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 10px 4px 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
}

.gift:disabled {
  cursor: default;
}

.gift__art {
  width: 100%;
  max-width: 120px;
  overflow: visible;
}

.gifts--small .gift__body { fill: #d9be97; }
.gifts--small .gift__top { fill: #e8d6bc; }
.gifts--small .gift__ribbon,
.gifts--small .gift__bow { fill: var(--orange); }
.gifts--premium .gift__body { fill: var(--orange); }
.gifts--premium .gift__top { fill: #f08a4d; }
.gifts--premium .gift__ribbon,
.gifts--premium .gift__bow { fill: #f5cf6e; }

.gift__lid {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}

.gift.is-pick {
  animation: wobble 2.4s ease-in-out infinite;
}

.gift.is-pick:nth-child(2) { animation-delay: 0.3s; }
.gift.is-pick:nth-child(3) { animation-delay: 0.6s; }

.gift.is-pick:hover {
  animation: none;
  transform: translateY(-6px) rotate(-3deg);
  transition: transform 0.2s var(--ease);
}

@keyframes wobble {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(-4deg); }
  90% { transform: rotate(4deg); }
  95% { transform: rotate(-2deg); }
}

.gift.is-shake.is-picked {
  animation: shake-box 0.12s linear infinite alternate;
}

@keyframes shake-box {
  from { transform: rotate(-6deg) translateY(-2px); }
  to { transform: rotate(6deg) translateY(-2px); }
}

.gift.is-other {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.gift.is-open .gift__lid {
  transform: translateY(-14px) rotate(-18deg);
}

.gift.is-open.is-other .gift__lid {
  transform: translateY(-6px) rotate(10deg);
}

.gift__prize {
  position: absolute;
  top: -6px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 2px;
  transform: translateX(-50%);
  animation: prize-up 0.6s var(--ease) both;
}

.gift__prize .ti {
  width: 46px;
  height: 46px;
  padding: 6px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 8px 20px -8px rgb(92 64 30 / 0.5);
}

.gift.is-picked .gift__prize .ti {
  width: 62px;
  height: 62px;
  box-shadow: 0 0 0 6px rgb(245 207 110 / 0.45), 0 12px 26px -8px rgb(92 64 30 / 0.55);
}

.gift__prize small {
  max-width: 110px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.gift.is-other .gift__prize small {
  color: var(--muted);
}

@keyframes prize-up {
  from {
    opacity: 0;
    transform: translate(-50%, 24px) scale(0.6);
  }
}

.prize-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Explore: suggest Brew */
.brew-nudge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 14px 16px;
  border-radius: var(--r-input);
  background: var(--orange-soft);
  animation: rise 0.3s var(--ease) both;
}

.brew-nudge > i {
  color: var(--orange-deep);
  font-size: 1.375rem;
}

.brew-nudge p {
  font-weight: 500;
}

.brew-nudge .btnrow {
  grid-column: 2;
}

/* Boba run check-in */
.booking {
  flex-wrap: wrap;
}

.booking > span:first-of-type {
  flex: 1;
}

@media (max-width: 520px) {
  .pf__top,
  .mydrink {
    flex-direction: column;
    align-items: flex-start;
  }

  .gifts {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift.is-pick,
  .gift.is-shake.is-picked {
    animation: none;
  }
}

/* The prize floats above its box; its name sits below */
.gifts {
  margin-top: 48px;
}

.gift__prize {
  top: -40px;
}

.gift__name {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  animation: fade 0.4s 0.2s ease both;
}

.gift.is-other .gift__name {
  color: var(--muted);
  font-weight: 500;
}

/* Your drink and its toppings on one line */
.order-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.order-line .receipt__item {
  margin-right: 4px;
}

/* Choosing the toppings in your cup */
.pick-toppings {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.pick-toppings > * + * {
  margin-top: 8px;
}

.tchip-btn {
  border: 1px solid transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}

.tchip-btn:not(.is-on) {
  background: transparent;
  border-color: var(--line);
  opacity: 0.7;
}

.tchip-btn:hover {
  opacity: 1;
  border-color: var(--ink);
}

.tchip-btn > i {
  font-size: 0.875rem;
}

.tchip-btn.is-on > i {
  color: var(--orange-deep);
}

/* Gift box prize: a warm milk-tea circle so white toppings show */
.gift__prize .ti {
  background: radial-gradient(circle at 35% 30%, #f6ead6, #d9be97);
}

.tchip .ti {
  width: 22px;
  height: 22px;
}

/* The other two boxes fade, but what was inside stays easy to see */
.gift.is-other {
  opacity: 1;
  filter: none;
}

.gift.is-other .gift__art {
  opacity: 0.4;
  filter: grayscale(0.5);
}

.gift.is-other .gift__prize {
  opacity: 0.9;
}

.about-tops {
  margin-top: 10px;
}

.about-tops .pf__toppings {
  margin-top: 8px;
}

.about__block > p.about-tops {
  font-size: 0.875rem;
}

/* One kind of gift box for every milestone */
.gifts .gift__body { fill: var(--orange); }
.gifts .gift__top { fill: #f08a4d; }
.gifts .gift__ribbon,
.gifts .gift__bow { fill: #f5cf6e; }

/* ---------- Puzzle cup: layers that pull apart ---------- */

.cup--lg {
  height: auto;
  aspect-ratio: 28 / 34;
}

.cup--hero {
  width: clamp(110px, 18vw, 156px);
  margin-block: 24px 10px;
}

.cup .part {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.cup-x {
  cursor: pointer;
}

.cup-x:hover .part,
.cup-x.is-apart .part {
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg));
}

/* The first-page cup comes apart and back together on its own */
.cup--hero .part {
  animation: puzzle 5.2s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}

@keyframes puzzle {
  0%, 28%, 100% { transform: none; }
  44%, 74% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)); }
}

.pf__cup,
.mydrink__cup {
  padding-top: 14px;
}

/* Exploded view: the whole cup shrinks a little so the separated layers still fit */
.cup .asm {
  transform-box: view-box;
  transform-origin: 12px 13px;
  transition: transform 0.7s var(--ease);
}

.cup .cup-shadow {
  transition: opacity 0.4s;
}

.cup-x:hover .asm,
.cup-x.is-apart .asm {
  transform: scale(0.6);
}

.cup-x:hover .cup-shadow,
.cup-x.is-apart .cup-shadow {
  opacity: 0;
}

.cup--hero .asm {
  animation: puzzle-shrink 5.2s var(--ease) infinite;
}

.cup--hero .cup-shadow {
  animation: puzzle-shadow 5.2s var(--ease) infinite;
}

@keyframes puzzle-shrink {
  0%, 28%, 100% { transform: none; }
  44%, 74% { transform: scale(0.6); }
}

@keyframes puzzle-shadow {
  0%, 28%, 100% { opacity: 1; }
  44%, 74% { opacity: 0; }
}

/* Left-right puzzle: no shrinking, the cup sits in the middle of a wide canvas */
.cup-x:hover .asm,
.cup-x.is-apart .asm,
.cup--hero .asm {
  transform: none;
  animation: none;
}

.cup-x.cup--hero,
.cup-x.cup--mystery {
  aspect-ratio: 64 / 34;
  height: auto;
}

/* First page and About: the cup gets its own wide row above the heading */
.onboard__hero,
.about__hero {
  grid-template-columns: minmax(0, 1fr);
}

.onboard__hero > .cup--hero,
.about__hero > .cup--hero {
  order: -1;
  justify-self: center;
  width: min(100%, 440px);
  margin-block: 8px 0;
}

.cup-x.cup--mystery {
  width: clamp(230px, 32vw, 320px);
}

@media (max-width: 520px) {
  .onboard__hero .cup--hero,
  .about__hero .cup--hero {
    display: block;
  }
}

/* Mystery Cup card: the cup gets the whole top row, the countdown sits below */
.drop-card {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.cup-x.cup--mystery {
  width: min(100%, 380px);
}

/* ---------- Cup comes apart: straw and lid up, toppings and pearls to the sides ---------- */

.cup-x.cup--hero,
.cup-x.cup--mystery,
.cup-x.cup--profile {
  aspect-ratio: 46 / 44;
  height: auto;
}

.onboard__hero > .cup--hero,
.about__hero > .cup--hero {
  width: min(100%, 280px);
}

.cup-x.cup--mystery {
  width: min(100%, 280px);
}

.mydrink__cup .cup-x {
  width: clamp(190px, 26vw, 240px);
}

.pf__cup .cup-x {
  width: 190px;
}

.mydrink__cup,
.pf__cup {
  padding-top: 0;
}

/* ---------- My order: folded sections ---------- */

.sec {
  display: block;
  padding: 0;
}

.sec__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
}

.sec__head::-webkit-details-marker {
  display: none;
}

.sec__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-deep);
  font-weight: 600;
}

.panel--locked .sec__title {
  color: var(--muted);
}

.sec__edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.sec__edit::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.sec[open] .sec__edit::after {
  transform: rotate(-135deg) translateY(-1px);
}

.sec__sum {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  font-size: 0.9375rem;
}

.sec[open] .sec__sum {
  display: none;
}

.sec__body {
  padding: 4px 22px 22px;
}

/* Save only shows while a section is open */
.profile-form.is-folding:not(:has(details[open])) .save-btn {
  display: none;
}

/* ---------- Toppings in a cup: five fixed slots, so cards keep their size ---------- */

.slots-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.slots {
  display: flex;
  gap: 6px;
}

.slot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--sunk);
}

.slot .ti {
  width: 30px;
  height: 30px;
}

.slot--secret {
  background: linear-gradient(135deg, #e8defc, #fbe9c2);
}

.slot--empty {
  background: transparent;
  border: 1.5px dashed #c9bda8;
}

/* All your toppings sit on one line you can scroll sideways */
.pick-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-inline: -2px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  min-height: 40px;
}

.pick-strip .tchip-btn {
  flex: none;
}

/* Arrows on both sides, and a soft fade so you can tell there is more */
.strip-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.strip-wrap .pick-strip {
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
  padding-inline: 10px 24px;
}

.strip-wrap .pick-strip::-webkit-scrollbar {
  display: none;
}

.strip-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--lip-soft);
}

.strip-arrow:hover {
  border-color: var(--ink);
}

.strip-arrow:active {
  transform: translateY(2px);
  box-shadow: none;
}

.mydrink__info {
  min-width: 0;
}

/* Accounts: a button that reads like a link, and a calm success note */
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange-deep);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ok-note {
  padding: 10px 14px;
  border-radius: var(--r-input);
  background: #e7f1e1;
  color: #2f5a22;
}

/* EN / 中文 switch */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
}

.lang-switch__btn {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-switch__btn.is-on {
  background: var(--ink);
  color: var(--bg);
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--orange-deep);
  outline-offset: 2px;
}

.side__foot .lang-switch {
  margin-top: 12px;
}

/* Sign in with Google / LinkedIn */
.oauth {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 24px 0 12px;
}

.oauth__btn {
  justify-content: center;
  width: 100%;
}

.oauth__btn i {
  margin-right: 8px;
  font-size: 1.125rem;
}

