:root {
  --pink: #f7bfd4;
  --pink-deep: #c95f8b;
  --pink-soft: #fff0f6;
  --cream: #fffdf1;
  --mint: #dfeec4;
  --mint-deep: #829760;
  --blue: #dceeff;
  --yellow: #fff1a9;
  --ink: #654e58;
  --muted: #927783;
  --line: #bccb95;
  --white: #fffefa;
  --shadow: rgba(155, 102, 126, 0.16);
}

html[data-theme="mint"] {
  --pink: #cfe4b3;
  --pink-deep: #66894f;
  --pink-soft: #f4fae9;
  --mint: #bfe0d1;
  --mint-deep: #4f8772;
  --blue: #e3f3ee;
  --yellow: #fff5b8;
  --ink: #50665d;
  --muted: #73877e;
  --line: #a8c28d;
  --shadow: rgba(75, 112, 84, 0.17);
}

html[data-theme="sky"] {
  --pink: #c9dfff;
  --pink-deep: #5f7fae;
  --pink-soft: #eef6ff;
  --mint: #d9eaca;
  --mint-deep: #718e5e;
  --blue: #c8e8ff;
  --yellow: #fff3bd;
  --ink: #4f5f7a;
  --muted: #73809a;
  --line: #9fb9da;
  --shadow: rgba(75, 96, 139, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--pink) var(--pink-soft);
}

body {
  min-width: 280px;
  margin: 0;
  padding-bottom: 72px;
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  background-color: #fff5f8;
  background-image:
    linear-gradient(rgba(244, 175, 203, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 175, 203, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 12px 12px, rgba(194, 213, 148, 0.42) 2px, transparent 2.5px);
  background-size: 24px 24px, 24px 24px, 48px 48px;
}

html[data-theme="mint"] body {
  background-color: #f3faed;
  background-image:
    linear-gradient(rgba(155, 194, 130, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 194, 130, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 12px 12px, rgba(126, 180, 158, 0.38) 2px, transparent 2.5px);
}

html[data-theme="sky"] body {
  background-color: #f2f8ff;
  background-image:
    linear-gradient(rgba(139, 181, 224, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 181, 224, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 12px 12px, rgba(242, 179, 206, 0.36) 2px, transparent 2.5px);
}

html[data-theme="mint"] .site-shell,
html[data-theme="sky"] .site-shell {
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--pink) 62%, transparent),
    0 14px 34px var(--shadow);
}

html[data-theme="mint"] .site-title,
html[data-theme="sky"] .site-title {
  color: var(--pink-deep);
}

html[data-theme="mint"] .site-nav,
html[data-theme="sky"] .site-nav {
  border-color: var(--line);
  background: repeating-linear-gradient(90deg, var(--pink-soft) 0 18px, var(--cream) 18px 36px);
}

html[data-theme="mint"] .panel-title,
html[data-theme="mint"] .card-title,
html[data-theme="sky"] .panel-title,
html[data-theme="sky"] .card-title {
  background: repeating-linear-gradient(90deg, var(--pink) 0 14px, var(--pink-soft) 14px 28px);
}

a {
  color: #a84170;
  text-decoration-color: #eab0c8;
  text-underline-offset: 3px;
}

a:hover {
  color: #6d8846;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #7f95c9;
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 99;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-shell {
  width: min(1100px, calc(100% - 28px));
  margin: 24px auto;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow:
    0 0 0 6px rgba(247, 191, 212, 0.55),
    0 14px 34px var(--shadow);
}

.hero {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(24px, 6vw, 62px);
  border: 2px solid #d7adbd;
  border-radius: 14px;
  background-color: #fff4f7;
  background-image: linear-gradient(90deg, rgba(255, 253, 246, 0.98) 0%, rgba(255, 253, 246, 0.76) 43%, rgba(255, 253, 246, 0.08) 72%), url("assets/cute-banner.png");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.62);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(540px, 70%);
}

.site-kicker {
  display: inline-block;
  margin-bottom: 4px;
  color: #8a9a61;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-title {
  margin: 0;
  color: #bd5f87;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.93;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(233, 175, 197, 0.35);
}

.site-subtitle {
  width: fit-content;
  margin: 14px 0 0;
  padding: 5px 11px;
  border: 1px dashed #d9a5ba;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #806672;
  font-size: 0.86rem;
}

.time-greeting {
  width: fit-content;
  margin: 8px 0 0;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #e6bacb;
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, #fff4f8 0 18px, #fff9e9 18px 36px);
}

.site-nav a {
  min-width: 100px;
  padding: 7px 13px;
  border: 1px solid #d9a9bb;
  border-radius: 999px;
  color: #875d70;
  background: linear-gradient(#fff, #f9dce8);
  box-shadow: 0 2px 0 #d7b7c2;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.site-nav a:hover,
body[data-page="home"] .nav-home,
body[data-page="about"] .nav-about,
body[data-page="interests"] .nav-interests,
body[data-page="gallery"] .nav-gallery,
body[data-page="links"] .nav-links,
body[data-page="extras"] .nav-extras {
  color: #5f733e;
  background: linear-gradient(#fff, #e4efc8);
  transform: translateY(-1px);
}

.ticker {
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px dashed #ceb18b;
  border-radius: 8px;
  background: #fff9d9;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  min-width: 100%;
  padding: 5px 0;
  color: #866d59;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  text-align: center;
  animation: gentle-slide 17s ease-in-out infinite alternate;
}

@keyframes gentle-slide {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

.page-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 205px;
  gap: 12px;
  align-items: start;
}

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

.panel,
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8bdc7;
  border-radius: 10px;
  background: rgba(255, 254, 249, 0.94);
  box-shadow: 0 4px 12px rgba(139, 99, 117, 0.09);
}

.panel-title,
.card-title {
  margin: 0;
  padding: 7px 11px;
  border-bottom: 1px solid #d7bdc7;
  color: #705460;
  background: repeating-linear-gradient(90deg, #f9d7e4 0 14px, #fee9f0 14px 28px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.panel-title.mint,
.card-title.mint {
  background: repeating-linear-gradient(90deg, #dfeec4 0 14px, #edf6dc 14px 28px);
}

.panel-title.blue,
.card-title.blue {
  background: repeating-linear-gradient(90deg, #dceeff 0 14px, #edf7ff 14px 28px);
}

.panel-body,
.card-body {
  padding: 13px;
}

.card-body > :first-child,
.panel-body > :first-child {
  margin-top: 0;
}

.card-body > :last-child,
.panel-body > :last-child {
  margin-bottom: 0;
}

.profile-placeholder {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 2px solid #dfb6c6;
  border-radius: 8px;
  color: #9b7283;
  background:
    radial-gradient(circle at 50% 44%, #fff 0 30%, transparent 31%),
    linear-gradient(135deg, #fce4ed, #e9f4d8 52%, #dfefff);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.mini-profile {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.81rem;
}

.mini-profile li {
  padding: 5px 0;
  border-bottom: 1px dotted #dfc7d0;
}

.mini-profile li:last-child {
  border-bottom: 0;
}

.status-bubble {
  padding: 9px;
  border: 1px dashed #c3d08f;
  border-radius: 8px;
  background: #f7fbe9;
  font-size: 0.78rem;
}

.welcome-title {
  margin: 0 0 10px;
  color: #c45e89;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-style: italic;
  line-height: 1;
}

.lead {
  font-size: 1.02rem;
  line-height: 1.75;
}

.note {
  padding: 10px 12px;
  border-left: 4px solid #a9bc76;
  border-radius: 4px 8px 8px 4px;
  background: #f4f9e7;
  color: #6f6956;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.tag {
  padding: 4px 9px;
  border: 1px solid #e0b6c5;
  border-radius: 999px;
  background: #fff4f8;
  color: #895e70;
  font-size: 0.76rem;
}

.tag:nth-child(3n + 2) {
  border-color: #c8d49e;
  background: #f3f8e4;
}

.tag:nth-child(3n) {
  border-color: #bcd6ec;
  background: #eff8ff;
}

.updates {
  margin: 0;
  padding: 0;
  list-style: none;
}

.updates li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted #dac0ca;
}

.updates li:last-child {
  border-bottom: 0;
}

.updates time {
  color: #a2687f;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
}

.quick-list {
  margin: 0;
  padding-left: 18px;
}

.quick-list li {
  margin-bottom: 7px;
}

.list-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dotted #d9bec8;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  margin: 0;
  font-size: 0.77rem;
}

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

.stats dd {
  margin: 0;
  font-family: "Courier New", monospace;
  text-align: right;
}

.now-playing {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 9px;
  align-items: center;
}

.album-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #bcd0a0;
  border-radius: 5px;
  background: linear-gradient(135deg, #e9f3d4, #f9dbea);
  font-size: 1.35rem;
}

.now-playing p {
  margin: 0;
  font-size: 0.75rem;
}

.tiny-buttons {
  display: grid;
  gap: 6px;
}

.tiny-button {
  display: grid;
  min-height: 31px;
  place-items: center;
  border: 1px solid #ad8b9a;
  color: #6d5360;
  background:
    linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, #f6c5d9 0 8px, #fce4ee 8px 16px);
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  font-weight: 700;
  text-align: center;
}

.tiny-button:nth-child(even) {
  background:
    linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, #dcebbf 0 8px, #eef5dc 8px 16px);
}

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

.fandom-card {
  padding: 13px;
  border: 1px dashed #d6b2c0;
  border-radius: 9px;
  background: linear-gradient(135deg, #fffdfa, #fff2f7);
}

.fandom-card h3 {
  margin: 0 0 6px;
  color: #a24b71;
  font-family: Georgia, serif;
}

.fandom-card p {
  margin: 0;
  font-size: 0.84rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 8px;
  outline: 1px solid #dcc1cb;
  color: #7a6070;
  background: linear-gradient(145deg, #fbdce8, #f7f1c9 52%, #def0cf);
  box-shadow: 0 4px 10px rgba(128, 90, 106, 0.12);
  font-family: "Courier New", monospace;
  font-size: 0.77rem;
  font-weight: 700;
  text-align: center;
}

.gallery-item:nth-child(2n) {
  background: linear-gradient(145deg, #dfefff, #fce5ed 52%, #fff6c8);
}

.gallery-item span {
  padding: 8px;
  border: 1px dashed rgba(126, 86, 103, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

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

.link-card {
  display: block;
  padding: 13px;
  border: 1px solid #d5b8c4;
  border-radius: 9px;
  background: #fff8fb;
  text-decoration: none;
}

.link-card:hover {
  border-color: #a9bb77;
  background: #f7fbe9;
  transform: translateY(-2px);
}

.link-card strong,
.link-card small {
  display: block;
}

.extras-grid,
.oc-grid,
.shrine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.extra-card {
  display: block;
  min-height: 128px;
  padding: 15px;
  border: 1px solid #d9b7c4;
  border-radius: 10px;
  color: var(--ink);
  background: linear-gradient(145deg, #fff9fb, #fbe0ea);
  text-decoration: none;
}

.extra-card:nth-child(3n + 2) {
  border-color: #c6d49b;
  background: linear-gradient(145deg, #fffef5, #e9f3d2);
}

.extra-card:nth-child(3n) {
  border-color: #bad4e9;
  background: linear-gradient(145deg, #fff, #e4f2ff);
}

.extra-card:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: 0 7px 14px rgba(128, 90, 106, 0.13);
}

.extra-card strong {
  display: block;
  margin-bottom: 5px;
  color: #9e4c70;
  font-family: Georgia, serif;
  font-size: 1.08rem;
}

.extra-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.journal-entry {
  padding: 13px 0;
  border-bottom: 1px dotted #d9bec8;
}

.journal-entry:last-child {
  border-bottom: 0;
}

.journal-entry h3 {
  margin: 0 0 4px;
  color: #a04f71;
  font-family: Georgia, serif;
}

.journal-meta {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.oc-card,
.shrine-card {
  overflow: hidden;
  border: 1px solid #d8b9c5;
  border-radius: 10px;
  background: #fffafc;
}

.portrait-slot {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: #8a6978;
  background: linear-gradient(145deg, #f8dce8, #edf5d9 54%, #e1effb);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.oc-info,
.shrine-info {
  padding: 12px;
}

.oc-info h3,
.shrine-info h3 {
  margin: 0 0 5px;
  color: #a44e73;
  font-family: Georgia, serif;
}

.oc-info p,
.shrine-info p {
  margin: 0;
  font-size: 0.82rem;
}

.heart-rating {
  color: #d16d97;
  letter-spacing: 0.15em;
}

.media-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.media-table th,
.media-table td {
  padding: 9px;
  border: 1px solid #ddc4cd;
  text-align: left;
  vertical-align: top;
}

.media-table th {
  color: #765662;
  background: #fae3ec;
}

.media-table tr:nth-child(even) td {
  background: #fbfdf3;
}

.guestbook-box {
  padding: 18px;
  border: 2px dashed #d6abc0;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff6fa, #f5fae9);
  text-align: center;
}

.fake-message {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #dac2cb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.8rem;
  text-align: left;
}

.resource-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-list a {
  display: block;
  padding: 10px;
  border: 1px dotted #cbb2bc;
  border-radius: 8px;
  background: #fffafd;
  text-decoration: none;
}

.generator-stack {
  display: grid;
  gap: 12px;
}

.generator-card {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid #d7b5c3;
  border-radius: 11px;
  background: linear-gradient(145deg, #fffafd, #f9e2eb);
}

.generator-card:nth-child(2) {
  border-color: #c1d196;
  background: linear-gradient(145deg, #fffef8, #eaf4d5);
}

.generator-card:nth-child(3) {
  border-color: #b9d2e7;
  background: linear-gradient(145deg, #fff, #e4f2ff);
}

.generator-card:nth-child(4) {
  border-color: #cdb8e7;
  background: linear-gradient(145deg, #fffafd, #eee4fb);
}

.generator-card:nth-child(5) {
  border-color: #ddca89;
  background: linear-gradient(145deg, #fffef8, #fff2bf);
}

.generator-card h3 {
  margin: 0 0 5px;
  color: #9d4d70;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.generator-card > p {
  margin-top: 0;
  font-size: 0.84rem;
}

.generator-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #ca92ab;
  border-radius: 999px;
  color: #75505f;
  background: linear-gradient(#fff, #f7cfdf);
  box-shadow: 0 2px 0 #d5a9ba;
  font: 700 0.8rem "Trebuchet MS", Verdana, sans-serif;
  cursor: pointer;
}

.generator-button:hover {
  color: #566b3b;
  border-color: #9db573;
  background: linear-gradient(#fff, #e5f0ca);
  transform: translateY(-1px);
}

.generator-output {
  min-height: 82px;
  margin: 13px 0 0;
  padding: 12px;
  border: 1px dashed #d0adbb;
  border-radius: 9px;
  color: #85707a;
  background: rgba(255, 255, 255, 0.7);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
}

.generator-output.has-result {
  color: var(--ink);
  border-style: solid;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45);
}

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

.toy-card {
  padding: 15px;
  border: 1px solid #dab9c6;
  border-radius: 12px;
  background: linear-gradient(145deg, #fffafd, #f9e1ec);
}

.toy-card:nth-child(2) {
  border-color: #bcd09a;
  background: linear-gradient(145deg, #fffef7, #edf5da);
}

.toy-card h3 {
  margin: 0 0 6px;
  color: #a14f72;
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.toy-card > p {
  margin-top: 0;
  font-size: 0.83rem;
}

.toy-icon {
  float: right;
  font-size: 1.6rem;
}

.compact-output {
  min-height: 94px;
}

.pet-zone {
  display: grid;
  place-items: center;
  min-height: 145px;
  margin: 10px 0;
  padding: 12px;
  border: 1px dashed #c9b0ba;
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    linear-gradient(145deg, #e8f4d6, #fff5cf 54%, #f8dce8);
  background-size: 26px 26px, auto;
  text-align: center;
}

.pet-zone strong {
  color: #9a4b6d;
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

.pet-zone span {
  font-size: 0.76rem;
}

.pet-face {
  color: #745b65;
  font-family: "Courier New", monospace;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  white-space: nowrap;
}

.pet-name-form {
  margin-bottom: 10px;
  font-size: 0.73rem;
}

.pet-name-form > label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "Courier New", monospace;
}

.inline-form,
.todo-form {
  display: flex;
  gap: 7px;
}

.cute-input,
.cute-select,
.cute-textarea {
  width: 100%;
  border: 1px solid #d0aeba;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
}

.cute-input,
.cute-select {
  min-height: 38px;
  padding: 7px 10px;
}

.cute-textarea {
  min-height: 220px;
  padding: 14px;
  resize: vertical;
  line-height: 1.65;
  background-color: #fffdfa;
  background-image: linear-gradient(transparent 31px, rgba(220, 183, 198, 0.38) 32px);
  background-size: 100% 32px;
}

.cute-input::placeholder,
.cute-textarea::placeholder {
  color: #a58c96;
}

.mini-action {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #b9c98d;
  border-radius: 8px;
  color: #617047;
  background: #f4f9e7;
  font: 700 0.74rem "Trebuchet MS", Verdana, sans-serif;
  cursor: pointer;
}

.mini-action:hover {
  background: #e7f1cc;
  transform: translateY(-1px);
}

.danger-action {
  border-color: #d7a7b7;
  color: #97526e;
  background: #fff1f5;
}

.pet-meters {
  display: grid;
  gap: 7px;
  margin: 11px 0;
}

.pet-meters label {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
}

progress {
  width: 100%;
  height: 12px;
  accent-color: #d879a1;
}

.toy-actions,
.quiz-actions,
.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.game-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}

.game-toolbar span {
  padding: 6px;
  border: 1px solid #d8bec8;
  border-radius: 7px;
  background: #fff8fb;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  text-align: center;
}

.star-board {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 2px solid #b9cde3;
  border-radius: 13px;
  color: #6d6682;
  background:
    radial-gradient(circle at 15% 22%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 78% 30%, #fff4a9 0 2px, transparent 3px),
    radial-gradient(circle at 42% 76%, #fff 0 1px, transparent 2px),
    linear-gradient(165deg, #8aa9d6, #bca9d5 55%, #efb8cf);
  background-size: 45px 45px, 62px 62px, 36px 36px, auto;
  box-shadow: inset 0 0 22px rgba(62, 70, 120, 0.22);
}

.star-board > p {
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  text-align: center;
}

.star-target {
  position: absolute;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid #fff5a9;
  border-radius: 50%;
  color: #fff3a1;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 20px #fff4a5;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  animation: star-breathe 850ms ease-in-out infinite alternate;
}

@keyframes star-breathe {
  from { transform: scale(0.92) rotate(-8deg); }
  to { transform: scale(1.08) rotate(8deg); }
}

.game-start {
  display: block;
  margin-inline: auto;
}

.quiz-form {
  display: grid;
  gap: 13px;
}

.quiz-form fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 13px;
  border: 1px solid #d8b8c5;
  border-radius: 11px;
  background: linear-gradient(145deg, #fffafd, #fffdf4);
}

.quiz-form fieldset:nth-child(even) {
  border-color: #c4d29e;
  background: linear-gradient(145deg, #fffef8, #f2f7e5);
}

.quiz-form legend {
  padding: 0 7px;
  color: #974f6e;
  font-family: Georgia, serif;
  font-weight: 700;
}

.quiz-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
}

.quiz-option:hover,
.quiz-option:has(input:checked) {
  border-color: #d9b2c1;
  background: #fff3f8;
}

.quiz-option input {
  margin-top: 0.25em;
  accent-color: #c7608b;
}

.quiz-result {
  margin-top: 18px;
  padding: clamp(18px, 4vw, 30px);
  border: 2px solid #d4acc0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    linear-gradient(145deg, #fbdcea, #eef5d8 55%, #dfefff);
  background-size: 26px 26px, auto;
  text-align: center;
}

.quiz-result-icon {
  font-size: 2.5rem;
}

.quiz-result-kicker {
  margin: 4px 0;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.quiz-result h3 {
  margin: 0 0 7px;
  color: #9d4d70;
  font-family: Georgia, serif;
  font-size: clamp(1.65rem, 5vw, 2.4rem);
}

.quiz-result .tiny-button {
  width: min(260px, 100%);
  margin: 14px auto 0;
}

.note-meta-row {
  display: grid;
  grid-template-columns: auto minmax(150px, 210px) 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
}

.note-counter {
  justify-self: end;
}

.sticker-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  padding: 7px;
  border: 1px dashed #d8b5c3;
  border-radius: 9px;
  background: #fff7fa;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
}

.sticker-toolbar button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid #d5b5c1;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.sticker-toolbar button:hover {
  background: #f3f8e4;
  transform: translateY(-1px) rotate(-2deg);
}

.note-actions {
  margin-top: 10px;
}

.save-status,
.empty-list {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.todo-form {
  margin: 12px 0;
}

.todo-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #d9bec8;
  border-radius: 8px;
  background: #fffafd;
}

.todo-item label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
}

.todo-item input {
  margin-top: 0.28em;
  accent-color: #a5bd73;
}

.todo-item.is-done {
  border-color: #c6d49f;
  background: #f3f8e7;
}

.todo-item.is-done .todo-text {
  color: #879075;
  text-decoration: line-through;
}

.todo-delete {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d9adbc;
  border-radius: 7px;
  color: #a05170;
  background: #fff2f6;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.link-card small {
  margin-top: 4px;
  color: var(--muted);
}

details {
  border: 1px dashed #d5b2c0;
  border-radius: 8px;
  background: #fff9fb;
}

summary {
  padding: 9px 11px;
  cursor: pointer;
  color: #97526f;
  font-weight: 700;
}

details > div {
  padding: 0 12px 12px;
}

.site-footer {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #c9d4a4;
  border-radius: 9px;
  color: #806d75;
  background: linear-gradient(90deg, #f3f7e5, #fff7e6, #fce8f0);
  font-size: 0.76rem;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.sparkle-divider {
  margin: 13px 0;
  color: #d27da1;
  letter-spacing: 0.35em;
  text-align: center;
}

.js-controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  gap: 7px;
  padding: 6px;
  border: 1px solid #d7b7c4;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 6px 18px rgba(94, 61, 75, 0.18);
  backdrop-filter: blur(8px);
}

.js-control-button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #d7aabd;
  border-radius: 999px;
  color: #725563;
  background: linear-gradient(#fff, #f8dce8);
  font: 700 0.75rem "Trebuchet MS", Verdana, sans-serif;
  cursor: pointer;
}

.js-control-button:hover {
  color: var(--ink);
  border-color: var(--line);
  background: linear-gradient(#fff, var(--mint));
  transform: translateY(-1px);
}

.js-toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 55;
  max-width: min(360px, calc(100% - 28px));
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 7px 20px var(--shadow);
  font-size: 0.82rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.js-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.js-sparkle-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.js-sparkle {
  position: fixed;
  left: var(--start-x);
  top: var(--start-y);
  color: #d46998;
  font-size: 1.1rem;
  text-shadow: 1px 1px #fff;
  opacity: 0;
  animation: sparkle-pop 950ms ease-out var(--delay) forwards;
}

@keyframes sparkle-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y))) scale(1.2) rotate(120deg);
  }
}

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

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  body {
    font-size: 14px;
  }

  .site-shell {
    width: min(100% - 14px, 1100px);
    margin: 10px auto;
    padding: 7px;
    border-radius: 12px;
    box-shadow: 0 0 0 3px rgba(247, 191, 212, 0.5);
  }

  .hero {
    min-height: 190px;
    align-items: flex-end;
    padding: 22px;
    background-image: linear-gradient(0deg, rgba(255, 253, 246, 0.96) 0%, rgba(255, 253, 246, 0.54) 62%, rgba(255, 253, 246, 0.08) 100%), url("assets/cute-banner.png");
    background-position: 66% center;
  }

  .hero-copy {
    width: 100%;
  }

  .site-title {
    font-size: clamp(2.3rem, 13vw, 3.7rem);
  }

  .site-subtitle {
    font-size: 0.75rem;
  }

  .site-nav a {
    min-width: calc(50% - 7px);
  }

  .page-grid,
  .two-column,
  .link-grid,
  .extras-grid,
  .toy-grid,
  .oc-grid,
  .shrine-grid {
    grid-template-columns: 1fr;
  }

  .game-toolbar,
  .note-meta-row {
    grid-template-columns: 1fr;
  }

  .note-counter {
    justify-self: start;
  }

  .todo-form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .profile-panel {
    grid-row: span 2;
  }

  .right-rail {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

  .js-controls {
    right: 8px;
    bottom: 8px;
    gap: 4px;
    padding: 4px;
  }

  .js-control-button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.69rem;
  }

  .js-toast {
    bottom: 58px;
  }
}

@media (max-width: 400px) {
  .left-rail,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .updates li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
