:root {
  --bg: #F4F8FF;
  --surface: #FFFFFF;
  --ink: #20385C;
  --muted: #5D6E84;
  --line: #D8E6F5;
  --coral: #3979C6;       /* white text on this = 5.6:1 */
  --coral-dark: #285E9F;
  --coral-soft: #E8F2FC;
  --sun: #EAA9CB;
  --sun-soft: #FCEAF2;
  --mint: #4E8A6C;
  --mint-soft: #E8F4EB;
  --lilac: #7258B7;
  --lilac-soft: #F0EBFF;
  --focus: #245FB7;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(91, 40, 40, 0.08);
  --font: 'Plus Jakarta Sans', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html:lang(th) { --font: 'Noto Sans Thai', 'Plus Jakarta Sans', system-ui, sans-serif; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.55; font-size: 16px;
  background: radial-gradient(1200px 500px at 100% -10%, #E6F2FF 0%, transparent 60%),
              radial-gradient(900px 400px at -10% 10%, #FBEAF2 0%, transparent 55%), var(--bg);
  min-height: 100vh; padding-bottom: 88px;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.small { font-size: .85rem; }
.strong { font-weight: 700; }
.num { text-align: right; white-space: nowrap; }
.center { text-align: center; }
.center-row { display: flex; justify-content: center; margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row--between { justify-content: space-between; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.page-title:focus, .page-title:focus-visible, main:focus, .receipt__title:focus, .tab-panel:focus { outline: none; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 246, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; cursor: pointer; font-weight: 800; font-size: 1.05rem; }
.brand__mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--coral); }
.brand__mark svg { display: block; width: 100%; height: 100%; }
.brand__mark .eq span { background: #fff; }
.brand__mark .eq span:nth-child(even) { background: var(--sun); }
.top-nav { display: none; gap: 4px; margin-left: 8px; }
.header__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang__btn { border: 0; background: transparent; padding: 4px 12px; cursor: pointer; font-weight: 700; font-size: .85rem; min-height: 32px; }
.lang__btn.is-active { background: var(--ink); color: #fff; }
.account { display: flex; align-items: center; gap: 6px; }
.account__chip { display: inline-flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; cursor: pointer; line-height: 1.2; max-width: 160px; }
.account__name { font-weight: 700; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.account__pts { font-size: .75rem; color: var(--lilac); font-weight: 700; }
.header-menu { position: relative; }
.header-menu__trigger { width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.header-menu__trigger:hover, .header-menu__trigger[aria-expanded="true"] { background: var(--blue-soft, #E8F2FF); }
.header-menu__trigger svg { width: 22px; height: 22px; }
.header-menu__panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: min(250px, calc(100vw - 20px)); display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 36px rgba(32,56,92,.18); }
.header-menu__panel[hidden] { display: none; }
.header-menu__label { color: var(--muted); font-size: .78rem; font-weight: 700; }
.header-menu__languages { align-self: flex-start; }
.header-menu__action { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; font-weight: 650; text-align: left; text-decoration: none; cursor: pointer; }
.header-menu__action:hover { background: var(--blue-soft, #E8F2FF); }
.header-menu__action svg { width: 20px; height: 20px; flex: none; }
.header-menu__action span:not(.header-menu__switch-icon) { font-size: .85rem; }
.header-menu__switch-icon { width: 20px; flex: none; text-align: center; font-size: 1.15rem; }

.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 600; color: var(--muted); }
.nav-link:hover { background: var(--coral-soft); color: var(--ink); }
.nav-link.is-active { background: var(--ink); color: #fff; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
.bottom-nav .nav-link { flex-direction: column; gap: 0; font-size: .72rem; padding: 6px 8px; border-radius: 12px; min-width: 56px; }
.nav-link__icon { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; }
.nav-link__icon svg { display: block; width: 20px; height: 20px; }
.bottom-nav .nav-link__icon { width: 20px; height: 20px; }
.header-menu__action[aria-busy="true"] svg { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .header__inner { padding: 6px 10px; gap: 6px; }
  .brand { gap: 7px; padding: 2px; font-size: .94rem; }
  .brand__mark { width: 30px; height: 30px; }
  .header__tools { gap: 5px; }
  .lang__btn { min-height: 28px; padding: 3px 8px; font-size: .76rem; }
  .header-menu__action span:not(.header-menu__switch-icon) { font-size: .76rem; }
  .account__chip { max-width: 106px; padding: 3px 7px; }
  .account__name { max-width: 92px; font-size: .76rem; }
  .account__pts { font-size: .66rem; }
  .brand { font-size: .86rem; }
  .brand__mark { width: 28px; height: 28px; }
  .header-menu__trigger { width: 40px; height: 40px; }
}
@media (min-width: 1100px) {
  .top-nav { display: flex; }
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

main { padding-top: 20px; padding-bottom: 32px; min-height: 60vh; }
.site-footer { padding: 24px 16px 32px; color: var(--muted); font-size: .85rem; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 44px; transition: transform .1s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: not-allowed; }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--coral-dark); }
.btn--accent { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.btn--accent:hover:not(:disabled) { background: #F4C5DB; }
.btn--done { background: var(--mint-soft); color: var(--mint); border-color: var(--mint); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover:not(:disabled) { background: var(--coral-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover:not(:disabled) { background: var(--surface); }
.btn--mint { background: var(--mint); color: #fff; }
.btn--small { padding: 6px 12px; min-height: 36px; font-size: .88rem; }
.btn--large { padding: 12px 22px; font-size: 1.02rem; min-height: 50px; }
.btn--block { width: 100%; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.section { margin-top: 28px; }
.section-title { font-size: 1.2rem; font-weight: 800; }
.page-header { margin-bottom: 16px; }
.page-title { font-size: 1.7rem; font-weight: 800; }
.page-intro { color: var(--muted); max-width: 60ch; font-size: .88rem; line-height: 1.45; }
.page-intro--quiet { max-width: 72ch; margin-top: -4px; color: #6B7D93; }

/* Hero */
.hero { display: grid; gap: 16px; align-items: center; background: linear-gradient(135deg, #DCEEFF 0%, #F5F8FF 55%, #FBE6F0 100%); border-radius: 26px; padding: 24px; border: 1px solid #C7DDF3; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--coral-dark); font-size: .9rem; }
.hero__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.hero__body { max-width: 52ch; font-size: .88rem; line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero__art { display: none; justify-content: center; }
.vinyl { width: 200px; height: 200px; border-radius: 50%; background: repeating-radial-gradient(circle, #20385C 0 2px, #2D4D78 2px 5px); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(43,27,51,.3); animation: spin 8s linear infinite; }
.vinyl__label { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, var(--bg) 0 6px, var(--coral) 7px 100%); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 720px) { .hero { grid-template-columns: 1.6fr 1fr; padding: 36px; } .hero__art { display: flex; } }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq span { width: 3px; background: var(--coral); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(1) { height: 40%; animation-delay: -.2s; }
.eq span:nth-child(2) { height: 90%; animation-delay: -.5s; }
.eq span:nth-child(3) { height: 60%; animation-delay: -.1s; }
.eq span:nth-child(4) { height: 100%; animation-delay: -.7s; }
.eq span:nth-child(5) { height: 50%; animation-delay: -.3s; }
@keyframes eq { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.eq span { transform-origin: bottom; }
@media (prefers-reduced-motion: reduce) { .eq span, .vinyl { animation: none; } * { scroll-behavior: auto !important; } }

/* Blue and white community theme with a small blush accent */
:root {
  --bg: #F4F9FF;
  --surface: #FFFFFF;
  --ink: #20385C;
  --muted: #5D6E84;
  --line: #D8E6F5;
  --coral: #3979C6;
  --coral-dark: #285E9F;
  --coral-soft: #E8F2FC;
  --sun: #F2B8D0;
  --sun-soft: #FCEAF2;
  --mint: #596FC2;
  --mint-soft: #EAF0FF;
  --lilac: #5268B8;
  --lilac-soft: #EEF0FF;
  --focus: #245FB7;
}
body {
  background: radial-gradient(1000px 460px at 100% -10%, #E6F2FF 0%, transparent 62%),
              radial-gradient(800px 420px at -10% 8%, #FBEAF2 0%, transparent 58%), var(--bg);
}
.hero {
  background: linear-gradient(135deg, #DCEEFF 0%, #F6FAFF 60%, #FBE6F0 100%);
  border-color: #C7DDF3;
}
.vinyl {
  background: repeating-radial-gradient(circle, #20385C 0 2px, #2D4D78 2px 5px);
}

/* Artist image sits in its own section, separate from the hero vinyl */
.artist-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
}
.artist-spotlight__media {
  min-height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #DCEEFF, #FBE6F0);
}
.artist-spotlight__image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 35%;
}
.artist-spotlight__fallback {
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}
.artist-spotlight__title { margin: 0 0 8px; }
.artist-spotlight__eyebrow { color: var(--coral-dark); font-weight: 700; margin: 0 0 6px; }
@media (min-width: 720px) {
  .artist-spotlight { grid-template-columns: minmax(240px, 0.8fr) 1.2fr; }
  .artist-spotlight__image { height: 260px; }
}

/* Compact single-row desktop header */
@media (min-width: 1280px) {
  .header__inner { max-width: 1560px; flex-wrap: nowrap; gap: 8px; padding: 8px 18px; }
  .brand { gap: 8px; font-size: .95rem; white-space: nowrap; }
  .brand__mark { width: 32px; height: 32px; }
  .top-nav { gap: 0; margin-left: 4px; flex-wrap: nowrap; }
  .top-nav .nav-link { gap: 4px; padding: 6px 8px; font-size: .86rem; white-space: nowrap; }
  .header__tools { flex-wrap: nowrap; gap: 6px; margin-left: auto; }
  .lang__btn { min-height: 30px; padding: 3px 8px; font-size: .78rem; }
  .account__chip { max-width: 120px; padding: 3px 7px; }
  .account__name { max-width: 106px; font-size: .76rem; }
  .account__pts { font-size: .68rem; }
  .header__tools .btn--small { min-height: 31px; padding: 4px 9px; font-size: .78rem; white-space: nowrap; }
}

/* Today card */
.today { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; border-left: 6px solid var(--sun); }
.today--done { border-left-color: var(--mint); }
.today__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); font-weight: 800; }
.today--done .today__icon { background: var(--mint-soft); color: var(--mint); }
.today__title { font-size: 1.05rem; }
.today p { margin: 0; }
.onboard { margin-top: 16px; border: 2px dashed var(--coral); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats--two { grid-template-columns: repeat(2, 1fr); } }
.stat { border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; }
.stat__value { font-size: 1.6rem; font-weight: 800; }
.stat__label { font-size: .88rem; font-weight: 600; }
.stat--coral { background: var(--coral-soft); color: #7A1621; }
.stat--sun { background: var(--sun-soft); color: #8B4166; }
.stat--mint { background: var(--mint-soft); color: #40569F; }
.stat--lilac { background: var(--lilac-soft); color: #3A2496; }
.stat--blue { background: #E8F2FC; color: #285E9F; border-color: #D3E4F6; }
.community-stats-content { display: grid; gap: 14px; }
.community-scorebook { position: relative; overflow: hidden; padding: 20px 22px 16px 42px; background: var(--surface); box-shadow: 0 8px 22px rgba(32,56,92,.07), inset 0 0 0 5px #F3F8FF; }
.community-scorebook::before { content: ""; position: absolute; left: 15px; top: 23px; width: 9px; height: calc(100% - 46px); background: radial-gradient(circle, #C9D9EC 0 4px, transparent 4.5px) center top / 9px 38px repeat-y; }
.community-scorebook::after { content: ""; position: absolute; right: 42px; top: 13px; width: 58px; height: 15px; border-radius: 3px; background: rgba(234,169,203,.52); transform: rotate(4deg); }
.community-scorebook__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 3px 0 14px; }
.community-scorebook__eyebrow { color: var(--coral-dark); font-size: .68rem; font-weight: 800; letter-spacing: .09em; margin: 0 0 3px; text-transform: uppercase; }
.community-scorebook__title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.community-scorebook__intro { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }
.community-scorebook__count { flex: none; margin-top: 10px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--coral-soft); color: var(--coral-dark); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.community-scorebook__list { display: grid; gap: 8px; }
.community-scorebook__member { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; min-height: 58px; padding: 8px 11px; border-radius: 14px; background: #F2F7FF; }
.community-scorebook__member:nth-child(even) { background: #FFF3F8; }
.community-scorebook__badge { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #D6E3F4; border-radius: 50%; background: var(--surface); }
.community-scorebook__badge svg { display: block; width: 29px; height: 29px; }
.community-scorebook__copy { min-width: 0; }
.community-scorebook__name { display: block; overflow: hidden; color: var(--ink); font-size: .9rem; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.community-scorebook__latest { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.25; overflow-wrap: anywhere; }
.community-scorebook__points { color: var(--ink); font-size: .8rem; font-weight: 800; text-align: right; white-space: nowrap; }
.community-scorebook__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; }
.community-scorebook__motto { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .68rem; letter-spacing: .04em; }
.community-scorebook__motto .eq { transform: scale(.72); transform-origin: left center; }
.community-scorebook__actions { display: flex; justify-content: flex-end; }
.community-scorebook__empty { margin: 0; padding: 16px 8px; color: var(--muted); text-align: center; }
.community-scorebook__status:empty { display: none; }
@media (max-width: 600px) {
  .community-scorebook { padding: 17px 12px 14px 33px; }
  .community-scorebook::before { left: 9px; }
  .community-scorebook::after { right: 23px; width: 42px; }
  .community-scorebook__head { gap: 7px; }
  .community-scorebook__title { font-size: 1rem; }
  .community-scorebook__intro { max-width: 32ch; font-size: .76rem; }
  .community-scorebook__count { margin-top: 10px; padding: 4px 7px; font-size: .66rem; }
  .community-scorebook__member { grid-template-columns: 33px minmax(0, 1fr) auto; gap: 7px; padding: 7px; }
  .community-scorebook__badge { width: 31px; height: 31px; }
  .community-scorebook__badge svg { width: 25px; height: 25px; }
  .community-scorebook__name { font-size: .82rem; }
  .community-scorebook__latest { font-size: .68rem; }
  .community-scorebook__points { font-size: .72rem; }
  .community-scorebook__foot { align-items: flex-start; flex-direction: column; }
}

/* Playlists */
.playlist-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .playlist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .playlist-grid { grid-template-columns: repeat(3, 1fr); } }
.playlist { display: flex; flex-direction: column; gap: 6px; }
.playlist__top { display: flex; gap: 6px; flex-wrap: wrap; }
.playlist__title { font-size: 1.08rem; font-weight: 800; margin: 4px 0 0; overflow-wrap: anywhere; }
.playlist__song { color: var(--coral-dark); font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.playlist__desc { color: var(--muted); margin: 0; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.45; }
.playlist__bottom { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.playlist__date { font-size: .82rem; color: var(--muted); margin: 0; }
.playlist-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.playlist-filters__label { color: var(--muted); font-size: .82rem; font-weight: 700; margin-right: 2px; }
.playlist-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.playlist-filter:hover { border-color: var(--coral); background: var(--coral-soft); }
.playlist-filter.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.playlist-filter__count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 999px; background: rgba(32,56,92,.08); font-size: .7rem; line-height: 1; }
.playlist-filter.is-active .playlist-filter__count { background: rgba(255,255,255,.2); }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge--spotify { background: #E7F3E9; color: #477556; }
.badge--youtube_music { background: #FFE1E1; color: #A4161A; }
.badge--apple_music { background: #FFE3EE; color: #A1124D; }
.badge--other { background: #ECE7F3; color: #4B3F5C; }
.badge--hidden { background: #EEE; color: #444; }
.badge--type-daily { background: #E2F0FF; color: #1F5A9B; }
.badge--type-weekly { background: #FCEAF2; color: #9A416A; }
.badge--type-focus { background: #EEF0FF; color: #4C4D9B; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.form > .btn:not(.btn--block) { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field--inline { flex-direction: row; align-items: center; gap: 10px; margin: 12px 0; }
.field__label { font-weight: 700; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__hint { font-size: .88rem; line-height: 1.45; color: var(--muted); margin: 0; }
.field__error { font-size: .88rem; color: #A3122A; font-weight: 600; margin: 0; min-height: 0; }
.field__error:empty { display: none; }
input[type=text], input[type=url], input[type=email], input:not([type]), select, textarea {
  width: 100%; border: 2px solid #C9D9EC; border-radius: 12px; padding: 10px 12px; background: #fff; min-height: 46px;
}
input[type=file] { border: 2px dashed #C9D9EC; border-radius: 12px; padding: 14px; background: #F8FBFF; width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #A3122A; }
.form-status:empty { display: none; }
.privacy-note { font-size: .88rem; line-height: 1.45; color: var(--muted); margin: 0; }
.preview:empty { display: none; }
.preview__img { max-height: 280px; border-radius: 12px; border: 1px solid var(--line); }

/* Alerts, toasts, loading, empty */
.alert { border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.alert p { margin: 0 0 8px; }
.alert--error { background: #FFE5E8; color: #8A0F22; border: 1px solid #F5B8C1; }
.alert--success { background: var(--mint-soft); color: #40569F; border: 1px solid #C5D3F4; }
.alert--info { background: var(--sun-soft); color: #75415E; border: 1px solid #EBC5D9; }
.toasts { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: 96px; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 1100px) { .toasts { bottom: 24px; } }
.toast { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.15); background: var(--ink); color: #fff; }
.toast--error { background: #8A0F22; }
.toast--info { background: #75415E; }
.toast__close { background: transparent; border: 0; color: inherit; font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.loading { display: flex; gap: 10px; align-items: center; padding: 18px; color: var(--muted); font-weight: 600; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--coral-soft); border-top-color: var(--coral); animation: spin .8s linear infinite; }
.empty { text-align: center; padding: 28px 16px; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty__art { display: flex; justify-content: center; margin-bottom: 8px; }
.empty__art .eq { height: 32px; gap: 4px; }
.empty__art .eq span { width: 6px; }
.empty__title { font-weight: 800; font-size: 1.1rem; }
.empty__body { color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* Receipt */
.receipt { max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.receipt__icon { font-size: 2rem; }
.receipt__list { margin: 8px 0; border-top: 1px dashed var(--line); }
.receipt__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.receipt__row dt { color: var(--muted); }
.receipt__row dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

/* Tables, history, pills */
.two-col { display: grid; gap: 0 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 1fr; } }
.disclosure { min-width: 0; }
.disclosure__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.disclosure__head .section-title { margin: 0; }
.disclosure__toggle { flex: none; }
.disclosure__body[hidden] { display: none; }
.badge-history { list-style: none; margin: 0; padding: 6px 16px; }
.badge-history__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.badge-history__row:last-child { border-bottom: 0; }
.badge-history__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #E7F2FF, #FBEAF2); color: var(--ink); }
.badge-history__icon svg { width: 30px; height: 30px; }
.badge-history__text { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.badge-history__row time { text-align: right; }
.member-badges { display: flex; flex-direction: column; gap: 16px; }
.profile-name-card { display: flex; flex-direction: column; gap: 8px; }
.profile-name-card, .profile-name-form { width: 100%; max-width: none; border-color: #EBC5D9; background: linear-gradient(135deg, #FFF4F9, #FCEAF2); }
.profile-name-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-name-card__copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.profile-name-card__value { color: var(--ink); font-size: 1.15rem; overflow-wrap: anywhere; }
.profile-name-card__meta { margin: 0; }
.profile-name-card__edit { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #F7FAFF; color: #315D93; cursor: pointer; }
.profile-name-card__edit:hover { background: var(--coral-soft); }
.profile-name-card__edit svg { width: 21px; height: 21px; }
.profile-name-form .row { align-items: center; }
.profile-name-form .row .btn { min-width: 100px; }
.member-badges__section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.member-badges__section-head .section-title { margin: 0; }
.member-badges__feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 14px; }
.member-badge-current, .member-badge-next { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.member-badge-current__label, .member-badge-next__label { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.member-badge { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 15px; border: 1px solid #D6E4F5; border-radius: 18px; background: linear-gradient(135deg, #E9F4FF, #F6F9FF); }
.member-badge__status { position: absolute; top: 8px; right: 8px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); }
.member-badge__status svg { display: block; width: 20px; height: 20px; }
.member-badge__mark { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border: 1px solid rgba(49,79,119,.12); border-radius: 18px; background: rgba(255,255,255,.75); color: #315D93; box-shadow: 0 4px 12px rgba(49,79,119,.08); }
.member-badge__mark svg { width: 42px; height: 42px; }
.member-badge__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.member-badge__name { color: var(--ink); font-size: 1rem; line-height: 1.25; }
.member-badge__rule, .member-badge__date { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.member-badge--first_note { background: linear-gradient(135deg, #E7F3FF, #F5F9FF); }
.member-badge--stream_rookie { background: linear-gradient(135deg, #D9EBFF, #EDF6FF); }
.member-badge--active_streamer { background: linear-gradient(135deg, #E5E6FF, #F4ECFB); }
.member-badge--chart_pusher { background: linear-gradient(135deg, #F9E0EF, #FFF1F7); }
.member-badge--legend_streamer { background: linear-gradient(120deg, #DCEEFF 0%, #F1E8FF 48%, #F8DDEC 100%); border-color: #D8C7EB; }
.member-badge--featured { min-height: 144px; padding: 20px; }
.member-badge--featured .member-badge__mark { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; }
.member-badge--featured .member-badge__mark svg { width: 54px; height: 54px; }
.member-badge--featured .member-badge__name { font-size: 1.2rem; }
.member-badge--upcoming { opacity: .76; border-style: dashed; }
.member-badge--upcoming .member-badge__mark { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; filter: grayscale(.45); }
.member-badge--upcoming .member-badge__mark svg { width: 54px; height: 54px; }
.member-badge--small.is-locked { opacity: .56; filter: grayscale(.42); border-style: dashed; }
.member-badge-current > p, .member-badge-next > p { margin: 0; }
.badge-progress { height: 9px; overflow: hidden; border-radius: 999px; background: #E5EAF2; }
.badge-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #73A9E8, #E69AC0); transition: width .2s ease; }
.badge-progress__text { font-size: .78rem !important; }
.badge-collection-wrap { display: flex; flex-direction: column; gap: 9px; }
.badge-collection-wrap .section-title { display: block; margin: 0; font-size: 1rem; }
.badge-collection { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.member-badge--small { aspect-ratio: 1; min-width: 0; min-height: 0; padding: 12px; gap: 6px; border-radius: 50%; flex-direction: column; justify-content: center; text-align: center; }
.member-badge--small .member-badge__mark { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; }
.member-badge--small .member-badge__mark svg { width: 38px; height: 38px; }
.member-badge--small .member-badge__copy { align-items: center; width: 100%; }
.member-badge--small .member-badge__name { font-size: .78rem; overflow-wrap: anywhere; }
.member-badge--small .member-badge__rule { font-size: .68rem; }
.member-badge--small .member-badge__status { top: 8%; right: 8%; width: 20px; height: 20px; }
.badge-guide { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.badge-guide__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.badge-guide__row:last-child { border-bottom: 0; }
.badge-guide__row svg { width: 28px; height: 28px; color: var(--ink); }
.badge-guide__row > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.badge-guide__points { color: var(--muted); font-size: .75rem; text-align: right; }
.badge-share { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: linear-gradient(105deg, #F7FAFF, #FFF8FC); }
.badge-share__copy { min-width: 0; }
.badge-share__copy strong { display: block; margin-bottom: 3px; }
.badge-share__copy p { margin: 0; }
.badge-share .image-actions { flex: none; }
.board-form { max-width: none; margin-bottom: 22px; }
.board-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; padding: 8px 4px; }
.board-message { position: relative; padding: 24px 18px 18px; border: 1px solid #D9E2EF; border-radius: 3px 5px 4px 2px; background: #FFF9D8; box-shadow: 2px 5px 11px rgba(42,61,88,.12); transform: rotate(-.65deg); transition: transform .18s ease, box-shadow .18s ease; }
.board-message:nth-child(4n+2) { background: #EAF5FF; transform: rotate(.7deg); }
.board-message:nth-child(4n+3) { background: #FCECF4; transform: rotate(-.35deg); }
.board-message:nth-child(4n) { background: #F0EEFF; transform: rotate(.45deg); }
.board-message:hover { z-index: 1; transform: rotate(0) translateY(-2px); box-shadow: 3px 8px 16px rgba(42,61,88,.16); }
.board-message::before { content: ''; position: absolute; top: -8px; left: 50%; width: 58px; height: 18px; background: rgba(255,255,255,.62); border: 1px solid rgba(180,194,211,.42); transform: translateX(-50%) rotate(-2deg); box-shadow: 0 1px 3px rgba(42,61,88,.08); }
.board-message__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; }
.board-message__author { color: #315D93; font-family: 'Caveat', 'Mali', 'Comic Sans MS', cursive; font-size: 1.25rem; }
.board-message__text { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: 'Caveat', 'Mali', 'Comic Sans MS', cursive; font-size: 1.55rem; line-height: 1.35; color: #344765; }
.board-message__text--thai { font-size: 1.12rem; line-height: 1.55; }
.board-message__delete { margin-top: 12px; color: #8A3152; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table th.num, .table td.num { text-align: right; }
.table select { min-width: 160px; }
.history { list-style: none; margin: 0; padding: 6px 18px; }
.history__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.history__row:last-child { border-bottom: 0; }
.history__icon { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); }
.history__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.history__label { font-weight: 700; }
.history__pts { font-weight: 800; color: var(--mint); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #EEE; color: #333; margin-left: 4px; }
.pill--submitted { background: var(--sun-soft); color: #75415E; }
.pill--approved { background: var(--mint-soft); color: #40569F; }
.pill--flagged { background: #FFE5E8; color: #8A0F22; }
.pill--role { background: var(--lilac-soft); color: #3A2496; }

/* Tabs & admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs__tab { border: 2px solid var(--ink); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; min-height: 40px; }
.tabs__tab.is-active { background: var(--ink); color: #fff; }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.review-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.review-item p { margin: 0; }
.viewer { margin-bottom: 14px; }
.viewer__img { display: block; margin-top: 10px; max-height: 70vh; border-radius: 12px; border: 1px solid var(--line); }
/* Artist platform links shown before playlist categories */
.playlist-motto { margin: 16px 0 -10px; color: var(--lilac); font-size: .82rem; font-weight: 800; letter-spacing: .18em; text-align: center; }
@media (max-width: 600px) {
  .muted, .page-intro, .hero__body, .playlist__desc, .field__hint, .privacy-note, .empty__body, .profile-intro, .profile-link__text span { font-size: .82rem; }
}
.profile-intro { color: var(--muted); margin: -6px 0 14px; font-size: .88rem; line-height: 1.45; }
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.profile-link { display: flex; align-items: center; gap: 12px; padding: 15px; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.profile-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(36, 59, 99, .12); }
.profile-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.profile-link__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft, #E8F2FF); color: var(--ink); font-size: 1.3rem; font-weight: 800; }
.profile-link__text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.profile-link__text span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.profile-link__arrow { font-size: 1.1rem; color: var(--blue, #3D78C9); }
@media (min-width: 600px) { .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cute check-in receipts and shareable monthly calendar */
.receipt { max-width: 760px; border-color: #D7E6F7; background: linear-gradient(145deg, #fff 0%, #FBFDFF 58%, #FFF8FC 100%); }
.receipt__celebration { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.receipt__mascot { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(135deg, #E6F2FF, #FBE8F2); font-size: 2.5rem; }
.receipt__dy { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border: 2px dashed #D88EAF; border-radius: 50%; background: #FFF3F8; color: #315D93; font-family: 'Segoe Print', 'Comic Sans MS', cursive; font-size: 1.2rem; font-style: italic; font-weight: 800; letter-spacing: .04em; text-shadow: .5px .5px 0 #315D9380; transform: rotate(8deg); }
.encourage-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(27, 42, 67, .42); backdrop-filter: blur(4px); }
.encourage-card { position: relative; width: min(420px, 100%); padding: 30px 26px 26px; border: 1px solid #D7E6F7; border-radius: 26px; background: linear-gradient(145deg, #fff 0%, #F5FAFF 58%, #FFF4F9 100%); box-shadow: 0 24px 70px rgba(26, 47, 78, .24); text-align: center; animation: encourage-pop .24s ease-out; }
.encourage-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #EAF2FF; color: var(--ink); font-size: 1.45rem; cursor: pointer; }
.encourage-stamp { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 14px; border: 1px dashed #D99AB8; border-radius: 22px; background: linear-gradient(135deg, #EAF4FF, #FCEAF2); color: #718DC5; }
.encourage-stamp svg { width: 38px; height: 38px; stroke-width: 1.5; }
.encourage-eyebrow { margin: 0 0 8px; color: var(--lilac); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.encourage-card h2 { margin: 0 auto 10px; max-width: 340px; color: var(--ink); font-size: clamp(1.35rem, 5vw, 1.8rem); line-height: 1.25; }
.encourage-body { margin: 0 auto 20px; max-width: 330px; color: var(--muted); }
@keyframes encourage-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.receipt__title { color: var(--ink); }
.receipt__list { width: 100%; padding: 4px 14px; background: rgba(255,255,255,.76); border-radius: 14px; }
.image-actions { margin: 4px 0; }
.monthly-root { width: 100%; }
.month-card { max-width: 720px; padding: 18px; background: linear-gradient(145deg, #fff 0%, #F8FBFF 58%, #FFF8FC 100%); border-color: #D7E6F7; }
.month-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 2px 14px; }
.month-card__identity { display: flex; align-items: center; gap: 10px; }
.month-card__display-name { margin: -4px 0 4px; color: var(--muted); font-size: 1rem; font-weight: 750; text-align: center; overflow-wrap: anywhere; }
.month-card__dy { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 2px dashed #D88EAF; border-radius: 50%; background: linear-gradient(135deg, #EAF4FF, #FBEAF2); color: #315D93; font-family: 'Segoe Print', 'Comic Sans MS', cursive; font-style: italic; font-weight: 800; letter-spacing: .02em; text-shadow: .5px .5px 0 #315D9380; transform: rotate(-7deg); }
.month-card__mascot { font-family: 'Segoe Print', 'Comic Sans MS', cursive; font-size: 1.15rem; color: #526882; text-shadow: .45px .45px 0 #D99AB880; background: linear-gradient(135deg, #EAF4FF, #FBEAF2); border: 1px dashed #D9A9C0; border-radius: 20px; padding: 8px 12px; letter-spacing: .02em; transform: rotate(-1deg); }
.month-card__summary { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); }
.month-card__summary strong { font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.month-nav__title { margin: 0; text-align: center; text-transform: capitalize; font-size: 1.06rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-weekday { padding: 6px 2px; text-align: center; font-size: .78rem; font-weight: 800; color: var(--muted); }
.calendar-cell { min-height: 54px; border: 1px solid #E7EEF7; border-radius: 12px; background: rgba(255,255,255,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.calendar-cell--blank { background: transparent; border-color: transparent; }
.calendar-cell--checked { background: #F0FAF4; border: 1px solid #A8D9BE; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.calendar-cell__day { font-size: .88rem; font-weight: 700; line-height: 1.2; }
.calendar-stamp { width: 29px; height: 29px; position: relative; display: grid; place-items: center; border: 1.5px dashed #D99AB8; border-radius: 50%; background: #FFF7FB; box-shadow: 0 1px 3px rgba(48,65,96,.08); }
.calendar-stamp__bunny { color: #49617B; font-family: 'Segoe Print', 'Comic Sans MS', cursive; font-size: 8px; font-weight: 700; letter-spacing: -1.1px; line-height: 1; white-space: nowrap; text-shadow: .35px .35px 0 #49617B70; transform: rotate(-5deg) translateY(1px); }
.calendar-stamp__clover { position: absolute; right: -5px; top: -5px; color: #718DC5; font-family: 'Segoe Print', 'Comic Sans MS', cursive; font-size: 12px; line-height: 1; transform: rotate(-12deg); text-shadow: .4px .4px 0 #718DC570; }
.calendar-stamp__note { position: absolute; left: -4px; bottom: -4px; color: #7B69B1; font-family: 'Segoe Print', 'Comic Sans MS', cursive; font-size: 12px; font-weight: 800; line-height: 1; transform: rotate(-10deg); text-shadow: .4px .4px 0 #7B69B170; }
.calendar-stamp__dy { position: absolute; right: -6px; bottom: -5px; min-width: 15px; padding: 1px 2px; border-radius: 6px; background: #EAF2FF; color: #315D93; font-family: 'Segoe Print', 'Comic Sans MS', cursive; font-size: 7px; font-style: italic; font-weight: 900; line-height: 1.2; text-align: center; transform: rotate(5deg); text-shadow: .3px .3px 0 #315D9370; }
.calendar-legend { margin: 12px 0; color: var(--muted); font-size: .86rem; }
.calendar-legend__clover { color: #718DC5; font-family: 'Segoe Print', 'Comic Sans MS', cursive; text-shadow: .4px .4px 0 #718DC570; }
@media (max-width: 380px) {
  .month-card { padding: 12px; }
  .calendar-grid { gap: 3px; }
  .calendar-cell { min-height: 46px; border-radius: 9px; }
  .calendar-cell__day { font-size: .8rem; }
  .calendar-stamp { width: 25px; height: 25px; }
  .calendar-stamp__bunny { font-size: 7px; }
  .calendar-stamp__clover { font-size: 9px; }
  .calendar-stamp__note { font-size: 10px; }
  .calendar-stamp__dy { right: -5px; bottom: -4px; min-width: 13px; font-size: 6px; }
}

/* Blue, white, pink and lavender palette with soft green accents. */
:root {
  --sun: #EAA9CB;
  --sun-soft: #FCEAF2;
  --mint: #4E8A6C;
  --mint-soft: #E8F4EB;
  --lilac: #7258B7;
  --lilac-soft: #F0EBFF;
}
.brand__mark { background: #3979C6; }
.btn--accent:hover:not(:disabled) { background: #F4C5DB; }
.btn--done, .btn--mint { background: #DDEEE2; color: #315F49; border-color: #A7D5B8; }
.btn--done:hover:not(:disabled), .btn--mint:hover:not(:disabled) { background: #CCE5D3; }
.stat--coral { background: #E8F2FC; color: #285E9F; }
.stat--sun { background: #FCEAF2; color: #8B4166; }
.stat--mint { background: #E8F4EB; color: #36664E; }
.stat--lilac { background: #F0EBFF; color: #554093; }
.badge--spotify { background: #E7F3E9; color: #477556; }
.alert--success { background: #E8F4EB; color: #36664E; border-color: #C4DEC9; }
.alert--info { background: #FCEAF2; color: #75415E; border-color: #EBC5D9; }
.toast--info { background: #596FC2; }
.pill--submitted { background: #FCEAF2; color: #75415E; }
.pill--approved { background: #E8F4EB; color: #36664E; }
.history__icon { background: #F0EBFF; color: #7258B7; }
input[type=text], input[type=url], input[type=email], input:not([type]), select, textarea { border-color: #C9D9EC; }
input[type=file] { border-color: #C9D9EC; background: #F8FBFF; }
.hero { background: linear-gradient(135deg, #DCEEFF 0%, #F5F8FF 55%, #FBE6F0 100%); border-color: #C7DDF3; }
.calendar-cell--checked { background: #F0F8F1; border-color: #C2DFC8; }
.month-card__mascot { display: flex; align-items: center; gap: 7px; font-family: var(--font); font-size: 1.45rem; color: inherit; text-shadow: none; transform: none; }
.month-card__brand { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.month-card__name { color: var(--muted); font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .month-card { width: 100%; padding: 14px; }
  .month-card__head { padding-bottom: 8px; }
  .month-card__dy { width: 40px; height: 40px; }
  .month-card__mascot { padding: 6px 9px; font-size: 1rem; }
  .month-card__summary strong { font-size: 1.5rem; }
  .month-card__summary span { max-width: 120px; font-size: .76rem; text-align: right; }
  .month-card__display-name { font-size: .92rem; }
  .month-nav { gap: 6px; }
  .month-nav .btn { min-width: 38px; padding: 6px 10px; }
  .month-nav__title { font-size: .98rem; }
}
.month-card__clover { filter: saturate(.55) brightness(1.12); }
.receipt__dy, .month-card__dy { font-family: var(--font); font-style: normal; font-weight: 900; text-shadow: none; }
.calendar-stamp__bunny { font-family: var(--font); font-size: 15px; letter-spacing: normal; text-shadow: none; transform: translateY(1px); }
.calendar-stamp__clover { filter: saturate(.55) brightness(1.12); text-shadow: none; }
.calendar-stamp__note { font-family: var(--font); text-shadow: none; }
.calendar-stamp__dy { font-family: var(--font); font-style: normal; text-shadow: none; }
.calendar-legend__clover { color: #6B9B79; font-family: var(--font); text-shadow: none; }
@media (max-width: 380px) { .calendar-stamp__bunny { font-size: 13px; } }

/* Responsive badge layout is placed last so it overrides the base badge styles above. */
@media (max-width: 1024px) {
  .member-badges__feature { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .member-badge-current, .member-badge-next { width: 100%; min-width: 0; align-items: stretch; }
  .member-badge-current__label, .member-badge-next__label { min-height: 0; }
  .member-badge--featured, .member-badge--upcoming { width: 100%; min-height: 112px; align-items: center; flex-direction: row; padding: 14px; text-align: left; }
  .member-badge--featured .member-badge__mark, .member-badge--upcoming .member-badge__mark { width: 64px; height: 64px; flex: 0 0 64px; }
  .member-badge--featured .member-badge__mark svg, .member-badge--upcoming .member-badge__mark svg { width: 46px; height: 46px; }
  .member-badge--featured .member-badge__copy, .member-badge--upcoming .member-badge__copy { align-items: flex-start; }
  .badge-collection { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .member-badge--small { flex: 0 1 calc((100% - 20px) / 3); width: 100%; max-width: 100px; padding: 8px; gap: 4px; overflow: hidden; }
  .member-badge--small .member-badge__mark { width: 58px; height: 58px; flex: 0 0 58px; }
  .member-badge--small .member-badge__mark svg { width: 42px; height: 42px; }
  .member-badge--small .member-badge__copy { display: none; }
  .member-badge--small .member-badge__status { top: 23%; right: 23%; width: 20px; height: 20px; }
  .member-badge--small .member-badge__status svg { width: 14px; height: 14px; }
  .badge-share { align-items: flex-start; flex-direction: column; }
  .badge-share .image-actions { margin-top: 4px; }
}

/* ===== Sign in with Google ===== */
.signin .hero__text > * + * { margin-top: 4px; }
.signin .alert { margin: 8px 0; }
.gsi-slot { min-height: 48px; margin: 14px 0 10px; display: flex; align-items: center; }

/* ===== Image preview (save on iPhone / in-app browsers) ===== */
.image-preview { overflow-y: auto; }
.image-preview__card { width: min(480px, 100%); padding-top: 26px; }
.image-preview__card h2 { margin: 0 0 6px; font-size: 1.3rem; }
.image-preview__hint { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.image-preview__img { display: block; width: 100%; max-height: 62vh; object-fit: contain; border-radius: 16px; border: 1px solid #D7E6F7; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.image-preview__actions { justify-content: center; margin-top: 14px; }

/* ===== Scorebook: full list + search ===== */
.community-scorebook__search { position: relative; display: grid; gap: 4px; margin: 0 0 12px; }
.community-scorebook__search[hidden] { display: none; }
.community-scorebook__search-icon { position: absolute; left: 13px; top: 11px; color: var(--muted); font-size: 1.15rem; line-height: 1; pointer-events: none; }
.community-scorebook__search-input { width: 100%; min-height: 44px; padding: 10px 14px 10px 38px; border: 2px solid #D6E3F4; border-radius: 999px; background: #fff; font: inherit; font-size: .92rem; color: var(--ink); }
.community-scorebook__search-input:focus-visible { outline: 3px solid var(--focus, #315D93); outline-offset: 1px; border-color: transparent; }
.community-scorebook__search-count { margin: 0 0 0 14px; color: var(--muted); font-size: .75rem; }
.community-scorebook__search-count:empty { display: none; }
.community-scorebook__rank { display: inline-block; min-width: 2.2em; margin-right: 6px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.community-scorebook__more { display: flex; justify-content: center; padding-top: 4px; }
