@font-face {
  font-family: Hand;
  src: url("/fonts/hand.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    system-ui,
    -apple-system,
    sans-serif;
  color: #efe6f7;
  background: #17131f;
  font-size: 15px;
  --purple: #cba7e7;
  --muted: #baa9c7;
  --line: #493952;
  --paper: #241e2d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-image: radial-gradient(#382d43 0.65px, transparent 0.65px);
  background-size: 18px 18px;
  min-height: 100dvh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--purple);
  color: #25182f;
  padding: 11px 18px;
  font-weight: 650;
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: var(--purple);
}
input,
textarea,
select {
  width: 100%;
  background: #241e2d;
  color: #efe6f7;
  border: 1px solid #594566;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  min-height: 45px;
}
input[type="checkbox"] {
  width: 21px;
  min-height: 21px;
  height: 21px;
  accent-color: var(--purple);
  margin: 3px 0;
  flex-shrink: 0;
}
textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.55;
}
label {
  display: block;
  font-size: 13px;
  color: #d1bedf;
  margin-bottom: 6px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #b189d1;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.notebook {
  max-width: 610px;
  margin: auto;
  padding: 0 22px 12px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 18px;
  gap: 14px;
}
.brand {
  font:
    30px Hand,
    cursive;
  text-decoration: none;
  color: #e0bef5;
  white-space: nowrap;
}
.brand > span:first-child {
  font-size: 23px;
  color: #c096dc;
}
.brand .heart {
  display: inline-block;
  transform: rotate(12deg);
  margin-left: 5px;
  color: #dab2ef;
}
.icon-button {
  background: #33263f;
  color: #cba7e7;
  padding: 8px 12px;
  font-size: 20px;
  min-width: 44px;
}
main {
  min-height: 55vh;
  outline: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    34px/1.1 Hand,
    cursive;
  margin-bottom: 8px;
}
h2 {
  font:
    27px/1.15 Hand,
    cursive;
  margin-bottom: 14px;
  color: #e0bef5;
}
h3 {
  font:
    22px/1.2 Hand,
    cursive;
  margin-bottom: 10px;
}
p {
  line-height: 1.65;
}
main > .subtitle {
  margin-bottom: 23px;
}
.subtitle,
.small,
.muted {
  color: var(--muted);
}
.subtitle {
  font-size: 13px;
}
.small {
  font-size: 12px;
  line-height: 1.65;
}
.card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px 19px 15px 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 3px 0 #00000026;
}
.pink {
  background: #30212d;
  border-color: #654357;
}
.lilac {
  background: #2b2238;
}
.butter {
  background: #302b21;
  border-color: #5d523b;
}
.mint {
  background: #202d28;
  border-color: #3e5a4b;
}
.card p:last-child {
  margin-bottom: 0;
}
.welcome {
  padding: 42px 0 24px;
  text-align: center;
}
.welcome h1 {
  font-size: 42px;
}
.welcome .doodle {
  display: block;
  font:
    67px Hand,
    cursive;
  line-height: 1;
  color: #c29bdf;
  transform: rotate(-10deg);
  margin: 16px 0 18px;
}
.welcome p {
  max-width: 310px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 14px;
}
.welcome > .card {
  text-align: left;
  margin: 20px 0;
}
.full {
  display: block;
  width: 100%;
}
.quiet {
  background: transparent;
  color: var(--purple);
  font-weight: 500;
  padding: 9px 8px;
}
.outline {
  background: transparent;
  color: var(--purple);
  border: 1px dashed #bea5d0;
}
.danger {
  color: #f3a5be;
}
.link-button {
  background: none;
  padding: 0;
  min-height: 44px;
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
  font-weight: 500;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.button-row > button {
  flex: 1;
}
.field {
  margin-bottom: 16px;
}
.message-input {
  background: #271e2a;
  min-height: 74px;
  font-size: 17px;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.chips button {
  font-size: 12px;
  min-height: 36px;
  background: #271e2a;
  color: #e0b5d0;
  border: 1px solid #654357;
  padding: 7px 11px;
  border-radius: 20px;
  font-weight: 500;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0;
}
.check-label input {
  min-width: 19px;
}
.send {
  font:
    23px Hand,
    cursive;
  width: 100%;
  padding: 11px 16px;
  background: #d3a6e8;
  min-height: 49px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-heading h2,
.card-heading h3 {
  margin: 0;
}
.card-heading .link-button {
  min-height: 30px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.split .card {
  padding: 18px;
  min-width: 0;
}
.split h2 {
  font-size: 24px;
}
.split p {
  font-size: 12px;
}
.mini-scores {
  display: flex;
  gap: 18px;
  margin: 8px 0 12px;
}
.mini-scores strong {
  display: block;
  font:
    29px Hand,
    cursive;
  color: var(--purple);
}
.mini-scores span {
  font-size: 11px;
  color: var(--muted);
}
.empty {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0;
}
.stamp {
  font:
    17px Hand,
    cursive;
  color: #d0abdf;
  border: 1px dashed #665078;
  border-radius: 9px;
  padding: 9px 12px;
  display: inline-block;
  transform: rotate(-2deg);
}
.nudge {
  font:
    22px/1.5 Hand,
    cursive;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.section-space {
  margin-top: 24px;
}
.scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.score-box {
  text-align: center;
  padding: 20px 14px;
  background: #2e223c;
  border: 1px dashed #76598b;
  border-radius: 17px;
  position: relative;
}
.score-box:nth-child(2) {
  background: #30212d;
  border-color: #80586f;
}
.score-box .number {
  display: block;
  font:
    58px/1.15 Hand,
    cursive;
  color: #d5b1ee;
}
.score-box .who {
  font:
    22px Hand,
    cursive;
}
.score-box .small {
  margin: 2px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history li {
  border-top: 1px dashed var(--line);
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.history li:first-child {
  border-top: 0;
}
.history .description {
  flex: 1;
  min-width: 0;
}
.description strong {
  display: block;
  font-size: 14px;
}
.description small {
  font-size: 11px;
  color: var(--muted);
}
.tiny-button {
  padding: 7px 9px;
  min-height: 40px;
  font-size: 12px;
  background: #382b45;
  color: var(--purple);
}
.tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0 20px;
  padding: 5px;
  background: #221a2c;
  border-radius: 13px;
}
.tabs button {
  flex: 1;
  min-width: 0;
  padding: 9px 6px;
  color: #c7b0d9;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}
.tabs button[aria-selected="true"] {
  background: #493355;
  color: #f0dafa;
  box-shadow: 0 1px 4px #00000026;
}
.note-field {
  position: relative;
  padding-left: 28px;
  margin: 14px 0;
}
.note-field > span {
  position: absolute;
  left: 0;
  top: 12px;
  font:
    22px Hand,
    cursive;
  color: #ac8ac1;
}
.note-field textarea {
  background: #221b2b;
}
.count {
  font-size: 12px;
  color: #c6a5da;
}
.privacy-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.save-status {
  min-height: 20px;
  font-size: 12px;
  color: #c5abd7;
  margin: 10px 0 0;
  text-align: center;
}
.archive-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  color: var(--purple);
  border-top: 1px dashed var(--line);
  border-radius: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
}
.reading {
  margin: 16px 0;
}
.reading h3 {
  margin: 22px 0 10px;
}
.reading ol {
  padding-left: 22px;
  margin: 0;
}
.reading li {
  padding: 7px 0 9px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  font-size: 14px;
}
.reading .person {
  font:
    24px Hand,
    cursive;
  margin: 19px 0 10px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}
.task-row {
  display: flex;
  align-items: start;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.task-row:last-child {
  border-bottom: 0;
}
.task-copy {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.task-copy small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.task-copy.done > span {
  text-decoration: line-through;
  color: #b2a4bc;
}
.task-row button {
  background: none;
  color: #c1a5d3;
  padding: 0 7px;
  min-width: 35px;
  font-size: 20px;
}
.task-row .copy {
  font-size: 12px;
  min-width: 54px;
}
.task-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.task-form select {
  font-size: 13px;
}
.task-form .task-text {
  grid-column: 1/-1;
}
.task-form button {
  padding: 9px 24px;
}
.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 18px;
}
.week-nav span {
  font:
    21px Hand,
    cursive;
  text-align: center;
}
.week-nav button {
  min-width: 44px;
}
.settings-section {
  margin-bottom: 20px;
}
.settings-section h2 {
  margin-bottom: 12px;
}
details {
  margin: 14px 0;
}
summary {
  cursor: pointer;
  min-height: 35px;
  color: var(--purple);
  font-size: 13px;
}
details p {
  font-size: 13px;
  line-height: 1.7;
}
.key-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  gap: 10px;
  padding: 10px 0;
  font-size: 12px;
}
.settings-section .field:last-child {
  margin-bottom: 0;
}
.loading {
  font:
    25px Hand,
    cursive;
  text-align: center;
  padding-top: 80px;
  color: #d4afea;
}
nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom));
  margin: 28px -4px 0;
  padding: 6px;
  border: 1px solid #574263;
  background: #221b2bf2;
  backdrop-filter: blur(12px);
  border-radius: 19px;
  box-shadow: 0 4px 18px #00000045;
  z-index: 5;
}
nav button {
  padding: 7px 2px;
  background: transparent;
  color: #c4a9d5;
  font-size: 11px;
  min-height: 53px;
  font-weight: 500;
}
nav button > span {
  display: block;
  font-size: 21px;
  line-height: 25px;
  margin-bottom: 2px;
}
nav button[aria-current="page"] {
  background: #493355;
  color: #efd5fc;
}
footer {
  text-align: center;
  color: #b99bce;
  font:
    17px Hand,
    cursive;
  padding: 20px 0 10px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 105px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 36px);
  background: #604176;
  color: white;
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: 0 4px 20px #51356133;
  line-height: 1.5;
  font-size: 13px;
  z-index: 20;
}
#toast.error {
  background: #92536c;
}
dialog {
  max-width: 440px;
  width: calc(100vw - 32px);
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid #705584;
  border-radius: 18px;
  background: #241b30;
  color: #efe6f7;
  padding: 25px;
  box-shadow: 0 20px 70px #3b1e5d33;
}
dialog::backdrop {
  background: #38234566;
}
dialog p {
  font-size: 13px;
}
.codes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 18px 0;
  font:
    13px ui-monospace,
    monospace;
  user-select: all;
  overflow-wrap: anywhere;
}
dialog > button {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.skip {
  position: absolute;
  left: 10px;
  top: -80px;
  padding: 12px;
  background: var(--paper);
  z-index: 25;
}
.skip:focus {
  top: 10px;
}
.inline-error {
  padding: 12px;
  border: 1px dashed #84566c;
  border-radius: 9px;
  background: #38202c;
  color: #f3b3cb;
  font-size: 13px;
  line-height: 1.5;
}
.row-end {
  display: flex;
  justify-content: flex-end;
}
.recovery-input {
  font-family: ui-monospace, monospace;
}
.join-timing {
  margin-top: 20px;
}
.join-timing select {
  font-size: 14px;
}
.offline {
  padding: 11px 14px;
  background: #332b1d;
  border: 1px solid #6c5837;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 15px;
}
@media (min-width: 760px) {
  .notebook {
    padding-top: 20px;
  }
  header {
    padding-top: 25px;
  }
  nav {
    bottom: 20px;
  }
  main {
    min-height: 530px;
  }
}
@media (max-width: 370px) {
  .notebook {
    padding-left: 16px;
    padding-right: 16px;
  }
  .split {
    gap: 10px;
  }
  .split .card {
    padding: 15px 12px;
  }
  .split h2 {
    font-size: 22px;
  }
  .card {
    padding: 19px;
  }
  .tabs button {
    font-size: 12px;
  }
  .brand {
    font-size: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: 1;
  }
  .button-row {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      transform 0.15s;
  }
  button:active {
    transform: translateY(1px);
  }
}

.form-grid > .field {
  min-width: 0;
}
input[type="date"] {
  color-scheme: dark;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 47px;
  line-height: 24px;
  padding: 10px 12px;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"]::-webkit-datetime-edit {
  padding: 0;
  line-height: 24px;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  line-height: 24px;
  min-height: 24px;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.85;
  margin: 0;
  padding: 3px;
  cursor: pointer;
}
::placeholder {
  color: #a08cad;
  opacity: 1;
}

.buzz-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 88px;
  margin-bottom: 18px;
  background: #30233e;
  border: 1px dashed #89629f;
  color: #e7c4f6;
  font:
    25px Hand,
    cursive;
}
.buzz-heart {
  font:
    58px/1 Hand,
    cursive;
  color: #eab8d9;
}
.anniversary {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #2b202e;
  border-color: #624257;
}
.anniversary-heart {
  font:
    54px/1 Hand,
    cursive;
  color: #e6b4d3;
  transform: rotate(-9deg);
}
.anniversary h2 {
  margin: 0 0 4px;
}
.anniversary p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.shortcut-steps {
  padding-left: 21px;
  font-size: 13px;
  line-height: 1.7;
}
.shortcut-steps li {
  margin-bottom: 18px;
}
.shortcut-steps label {
  margin-top: 9px;
}
#shortcut-authorization {
  font:
    12px/1.6 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
#shortcut-url {
  font-size: 12px;
}
.pookie-check {
  margin: 0 0 18px;
}

.anniversary > div { min-width: 0; }
.anniversary .together { font: 22px/1.35 Hand, cursive; color: #efd5fc; margin: 6px 0; }

.game-flags { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0 0 16px; }
.game-flags .check-label { min-height: 38px; margin: 0; }
