:root {
  color-scheme: light;
  --ink: #3a1535;
  --navy: #5f155a;
  --blue: #df4ca5;
  --pool: #ffe7f6;
  --lime: #ffb8de;
  --pink: #ff69bd;
  --hotpink: #ff149f;
  --gold: #ffd75c;
  --violet: #a33292;
  --silver: #ecf3fb;
  --chrome: #b5c1d0;
  --paper: #fff6fb;
  --panel: rgba(255, 255, 255, 0.86);
  --danger: #dc155d;
  --shadow: 6px 6px 0 rgba(127, 28, 102, 0.28);
  --hand: "Comic Sans MS", "Trebuchet MS", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 15px;
  line-height: 1.55;
  background:
    linear-gradient(rgba(255, 246, 251, 0.62), rgba(255, 246, 251, 0.8)),
    url("assets/pink-swirls.svg") center top / 760px auto repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 180px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(137, 22, 100, 0.08) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #ffb8de, #ff6fbe 42%, #ffd7ef);
}

a {
  color: var(--navy);
  font-weight: 800;
}

button,
input,
select,
textarea {
  font: inherit;
}

.password-wall {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.password-window {
  width: min(520px, 100%);
  border: 3px solid #8b1a72;
  background:
    linear-gradient(rgba(255, 244, 250, 0.9), rgba(255, 244, 250, 0.96)),
    url("assets/pink-swirls.svg") center / 520px auto repeat;
  box-shadow: 8px 8px 0 rgba(127, 28, 102, 0.3);
  transform: rotate(-0.6deg);
}

.password-window-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.password-window h1 {
  margin: 0;
  color: #8b1a72;
  font-size: clamp(2rem, 8vw, 4.2rem);
  line-height: 0.9;
  text-shadow: 2px 2px 0 #ffd4eb;
}

.password-window p {
  margin: 0;
  font-weight: 900;
}

.password-error {
  min-height: 1.3em;
  color: #dc155d;
}

.page-shell {
  width: min(1100px, calc(100% - 24px));
  margin: 18px auto;
  border: 2px solid #8b1a72;
  border-radius: 0;
  background: rgba(255, 246, 251, 0.95);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-masthead {
  position: relative;
  border-bottom: 2px solid #8b1a72;
  background:
    linear-gradient(rgba(255, 129, 199, 0.78), rgba(255, 129, 199, 0.64)),
    url("assets/pink-swirls.svg") right -110px top -120px / 560px auto no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 44%),
    linear-gradient(110deg, #ff8bcc, #ff4fab 54%, #ffc4e4);
}

.blog-masthead::after {
  content: "";
  position: absolute;
  inset: auto 24px 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.blog-masthead::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22px;
  background: linear-gradient(90deg, #8b1a72, #ff8bcc, #8b1a72);
  opacity: 0.28;
}

.status-strip,
.tab-nav,
.title-row,
.layout-grid,
.button-row,
.site-footer {
  display: flex;
}

.status-strip {
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  background: #8b1a72;
  color: white;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  text-shadow: 0 1px 0 #00133d;
}

.status-strip span {
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.58);
}

.title-row {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 22px;
  padding: clamp(24px, 5vw, 56px) clamp(22px, 5vw, 58px) clamp(30px, 5vw, 62px);
}

.kicker,
.tagline,
.hand-note,
.editor-note,
.guestbook-note {
  margin: 0;
}

.kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 2px 12px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff, #ffb8de 46%, #d71b92 48%, #8b1a72);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 0 var(--navy);
  box-shadow: inset 0 1px 0 white, 0 3px 10px rgba(0, 58, 125, 0.24);
}

h1,
h2,
h3,
p,
a,
label,
input,
textarea,
button {
  overflow-wrap: anywhere;
}

h1 {
  margin: 8px 0 8px;
  color: #fff7fd;
  font-family: "Arial Black", Impact, "Trebuchet MS", sans-serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 #c6f8ff,
    0 3px 0 var(--navy),
    0 7px 18px rgba(255, 20, 159, 0.95),
    0 12px 26px rgba(0, 31, 105, 0.42);
}

.tagline {
  max-width: 720px;
  color: #09265d;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hand-note {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px dashed #9e2e82;
  border-radius: 4px;
  background: rgba(255, 246, 251, 0.78);
  color: #7a1f66;
  font-family: var(--hand);
  font-size: 0.96rem;
  font-weight: 700;
  transform: rotate(-1.6deg);
}

.tab-nav {
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ffc9e8;
  border-bottom: 2px solid #8b1a72;
  background: #ffd8ec;
}

.tab-nav a {
  flex: 1 1 120px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 48%),
    linear-gradient(135deg, #db2b99, #ff86c9);
  color: white;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 var(--navy);
  box-shadow: inset 0 1px 0 white, 0 8px 18px rgba(0, 72, 160, 0.2);
}

.tab-nav a:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.tab-nav a:nth-child(even) {
  transform: rotate(0.6deg);
}

.tab-nav a:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(135deg, #a52b8b, #ff78c1);
}

.tab-nav a:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(135deg, #ffc9e8, #ff5fb7);
  color: #5f155a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tab-nav a:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(135deg, #fff7ff, var(--pink), #b23b99);
  color: white;
  text-shadow: 0 1px 0 var(--navy);
}

.tab-nav a:nth-child(5) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent 42%),
    linear-gradient(135deg, #f7fbff, #7b8da6);
  color: #5f155a;
  text-shadow: 0 1px 0 white;
}

.layout-grid {
  align-items: flex-start;
  gap: 16px;
  padding: 18px 16px 16px;
}

.sidebar,
.rightbar {
  width: 238px;
  flex: 0 0 238px;
}

.rightbar {
  overflow-x: clip;
}

.content-column {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: clip;
}

.window {
  border: 1px solid #b02a87;
  border-radius: 3px;
  background: #fffafd;
  box-shadow: 4px 4px 0 rgba(139, 26, 114, 0.22);
  overflow: hidden;
  position: relative;
}

.panel:nth-child(2) {
  transform: rotate(0.45deg);
}

.panel:nth-child(3) {
  transform: rotate(-0.35deg);
}

.window::after {
  content: none;
}

.panel {
  margin-bottom: 16px;
}

.window-title {
  padding: 8px 11px;
  border-bottom: 1px solid #8b1a72;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.08) 46%),
    linear-gradient(90deg, #8b1a72, #d72999, #ff85c9);
  color: white;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: lowercase;
  text-shadow: 0 1px 0 var(--navy);
}

.profile-card {
  padding-bottom: 14px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 250, 253, 0.88), rgba(255, 250, 253, 0.94)),
    url("assets/pink-swirls.svg") center top / 410px auto no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 105, 189, 0.07) 0 1px, transparent 1px 26px),
    #fffafd;
}

.tape {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 240, 180, 0.78), rgba(255, 255, 255, 0.42));
  box-shadow: 0 3px 9px rgba(50, 33, 10, 0.12);
  opacity: 0.82;
}

.tape-left {
  top: 39px;
  left: 17px;
  transform: rotate(-11deg);
}

.tape-right {
  top: 34px;
  right: 28px;
  transform: rotate(8deg);
}

.avatar {
  display: block;
  width: min(170px, calc(100% - 32px));
  aspect-ratio: 1;
  margin: 20px auto 12px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.1)),
    var(--pool);
  image-rendering: pixelated;
  object-fit: cover;
  box-shadow:
    inset 0 1px 0 white,
    0 0 0 5px #ffd4eb,
    0 0 0 8px rgba(139, 26, 114, 0.25);
}

.profile-card h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
  text-shadow: 0 1px 0 white;
}

.profile-card h2::after {
  content: " <3";
  color: var(--hotpink);
  font-family: var(--hand);
}

.profile-card p,
.mood-list,
.guestbook-note,
.stats-panel p {
  padding: 0 13px;
}

.profile-facts {
  display: grid;
  gap: 5px;
  margin: 12px 10px;
  text-align: left;
}

.profile-facts div {
  display: grid;
  grid-template-columns: 58px 1fr;
  min-width: 0;
  border: 1px solid #ff9ed2;
  background: #fffafd;
  box-shadow: 2px 2px 0 rgba(139, 26, 114, 0.16);
}

.profile-facts dt,
.profile-facts dd {
  min-width: 0;
  margin: 0;
  padding: 5px 7px;
}

.profile-facts dt {
  background: #ff7ac4;
  color: white;
  font-weight: 900;
  text-shadow: 0 1px 0 #8b1a72;
}

.profile-facts dd {
  color: #5f155a;
  font-weight: 900;
}

.profile-mini-section {
  margin: 10px;
  border: 1px dashed #ff65b9;
  background:
    linear-gradient(rgba(255, 250, 253, 0.78), rgba(255, 250, 253, 0.92)),
    repeating-linear-gradient(135deg, rgba(255, 105, 189, 0.15) 0 5px, transparent 5px 10px);
  text-align: left;
}

.profile-mini-section h3 {
  margin: 0;
  padding: 5px 8px;
  border-bottom: 1px dashed #ff65b9;
  background: #ffd4eb;
  color: #8b1a72;
  font-size: 0.95rem;
}

.profile-mini-section p {
  margin: 0;
  padding: 8px;
  font-weight: 800;
}

.dni-box {
  background:
    linear-gradient(rgba(255, 247, 252, 0.86), rgba(255, 247, 252, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 20, 159, 0.16) 0 8px, transparent 8px 14px);
}

.mood-list {
  margin: 12px 0;
  list-style: square;
}

.mood-list li::marker {
  color: var(--pink);
}

.link-button {
  display: block;
  margin: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.08) 45%),
    linear-gradient(135deg, #ffffff, #ffd6ec, #ff9ed2);
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 1px 0 white, 0 4px 10px rgba(5, 39, 92, 0.14);
}

.link-button:nth-of-type(2) {
  transform: rotate(-1deg);
}

.link-button:nth-of-type(3) {
  transform: rotate(0.8deg);
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(5, 39, 92, 0.14);
  overflow: hidden;
}

.ticker span {
  display: grid;
  min-width: 118px;
  place-items: center;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 42%),
    linear-gradient(135deg, #8b1a72, #ff69bd);
  color: white;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-weight: 900;
  text-shadow: 0 1px 0 var(--navy);
}

.ticker p {
  margin: 0;
  padding: 12px;
}

.post-list {
  display: grid;
  gap: 16px;
  overflow-x: clip;
}

.post {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 250, 253, 0.9)),
    url("assets/pink-swirls.svg") right -190px top -80px / 420px auto no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(135deg, rgba(255, 20, 159, 0.05) 0 8px, rgba(255, 215, 92, 0.08) 8px 16px),
    #ffffff;
  box-shadow: 0 16px 30px rgba(5, 39, 92, 0.18), inset 0 1px 0 white;
  overflow: hidden;
}

.post:nth-child(2n) {
  transform: rotate(0.18deg);
}

.post:nth-child(2n + 1) {
  transform: rotate(-0.12deg);
}

.post-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 15px;
  border-bottom: 1px solid rgba(17, 60, 143, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.24) 50%),
    linear-gradient(90deg, rgba(255, 201, 232, 0.75), rgba(255, 244, 250, 0.92));
}

.post h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.04;
  text-shadow: 0 1px 0 white;
}

.post time,
.mood {
  color: #7a1f66;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  font-weight: 900;
}

.post-body {
  padding: 16px;
}

.post-body p {
  margin: 0 0 12px;
}

.edit-post-button,
.pixel-button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.08) 43%),
    linear-gradient(135deg, #ff9ed2, #d72999);
  color: white;
  cursor: pointer;
  font-weight: 900;
  text-shadow: 0 1px 0 var(--navy);
  box-shadow: inset 0 1px 0 white, 0 7px 14px rgba(0, 72, 160, 0.22);
}

.edit-post-button {
  min-width: 76px;
}

.mini-calendar {
  overflow: hidden;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 11px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
}

.calendar-grid span,
.calendar-grid b {
  min-width: 0;
  padding: 5px 0;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.12)),
    #fff0f8;
}

.calendar-grid b {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.1)),
    var(--pool);
}

.guestbook-entry {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  margin: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 6px 9px 7px 10px;
  background: linear-gradient(135deg, #ffffff, #fff0fb);
  font-family: var(--hand);
  font-weight: 800;
  transform: rotate(-0.8deg);
}

.guestbook-entry + .guestbook-entry {
  transform: rotate(1.1deg);
}

.guestbook-form {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.guestbook-form label {
  font-size: 0.86rem;
}

.guestbook-form input,
.guestbook-form textarea {
  padding: 7px;
  border-radius: 3px;
  font-size: 0.88rem;
}

.guestbook-form .pixel-button {
  min-height: 34px;
}

.guestbook-entries {
  display: grid;
  gap: 0;
  max-height: 280px;
  overflow: auto;
  padding-bottom: 4px;
}

.guestbook-entry strong {
  display: block;
  color: #7a1f66;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
}

.guestbook-entry p {
  margin: 4px 0 0;
}

.playlist-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 244, 250, 0.92)),
    #fffafd;
}

.playlist-card h2 {
  margin: 10px 12px 6px;
  color: #7a1f66;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 1.25rem;
  line-height: 1.05;
  text-transform: lowercase;
}

.playlist-date {
  margin: 0;
  padding: 10px 12px 0;
  color: #6c315e;
  font-family: var(--hand);
  font-size: 0.92rem;
  font-weight: 700;
}

.playlist-tracks {
  display: grid;
  gap: 6px;
  margin: 10px 12px 14px;
  padding-left: 26px;
}

.playlist-tracks li {
  padding: 5px 7px;
  border: 1px solid #ffd0e9;
  background: linear-gradient(90deg, #ffffff, #ffe8f5);
  color: #3d1c37;
  font-size: 0.92rem;
  font-weight: 800;
}

.playlist-tracks li:nth-child(even) {
  transform: rotate(-0.45deg);
}

.playlist-tracks li:nth-child(odd) {
  transform: rotate(0.35deg);
}

.chatroom-zone {
  margin: 0 16px 16px;
  background:
    linear-gradient(rgba(255, 250, 253, 0.88), rgba(255, 250, 253, 0.9)),
    url("assets/pink-swirls.svg") left -130px bottom -120px / 520px auto no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.52)),
    linear-gradient(135deg, rgba(255, 201, 232, 0.55), rgba(255, 246, 251, 0.7));
}

.chatroom-zone,
.editor-zone {
  transform: rotate(0.08deg);
}

.chatroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  padding: 16px;
}

.chatroom-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.22)),
    rgba(226, 249, 255, 0.82);
  box-shadow: inset 0 1px 0 white, 0 10px 24px rgba(5, 39, 92, 0.14);
  overflow: hidden;
}

.chat-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 60, 143, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.18)),
    linear-gradient(90deg, rgba(255, 201, 232, 0.86), rgba(255, 146, 205, 0.7));
  color: var(--navy);
  font-weight: 900;
}

.status-light {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff, #ffb8de 38%, #ff149f 72%);
  box-shadow: 0 0 12px rgba(255, 20, 159, 0.72);
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 280px;
  max-height: 380px;
  overflow: auto;
  padding: 12px;
}

.chat-bubble {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  max-width: min(620px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px 11px 12px 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.28)),
    #ffffff;
  box-shadow: 0 6px 14px rgba(5, 39, 92, 0.12), inset 0 1px 0 white;
}

.chat-bubble:nth-child(even) {
  border-radius: 12px 12px 3px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, #fef5ff, #dffbff);
}

.chat-bubble p {
  font-family: var(--hand);
  font-size: 1rem;
}

.chat-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--navy);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.84rem;
  font-weight: 900;
}

.chat-bubble p,
.chat-note {
  margin: 6px 0 0;
}

.chat-form {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.visitor-profile-tools {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px dashed #ff65b9;
  background: #fffafd;
  box-shadow: 2px 2px 0 rgba(139, 26, 114, 0.16);
}

.visitor-avatar-preview,
.message-avatar {
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #8b1a72;
  border-radius: 3px;
  background: #ffd4eb;
}

.visitor-avatar-preview {
  width: 76px;
  box-shadow: 3px 3px 0 #ff9ed2;
}

.message-avatar {
  width: 42px;
}

.visitor-profile-fields,
.message-content {
  min-width: 0;
}

.visitor-profile-fields {
  display: grid;
  gap: 9px;
}

.chat-room-tools {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px dashed #ff65b9;
  background:
    linear-gradient(rgba(255, 250, 253, 0.86), rgba(255, 250, 253, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 105, 189, 0.14) 0 7px, transparent 7px 13px);
  box-shadow: 2px 2px 0 rgba(139, 26, 114, 0.16);
}

.chat-room-tools input[readonly] {
  cursor: text;
}

.owner-locked-note,
.owner-login {
  min-width: 0;
  padding: 14px;
  border: 2px dashed #ff65b9;
  background:
    linear-gradient(rgba(255, 250, 253, 0.88), rgba(255, 250, 253, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 105, 189, 0.16) 0 6px, transparent 6px 12px);
  box-shadow: 3px 3px 0 rgba(139, 26, 114, 0.18);
}

.owner-locked-note strong,
.owner-login strong {
  color: #8b1a72;
  font-size: 1.15rem;
}

.owner-locked-note p,
.owner-login p {
  margin: 6px 0 0;
  font-weight: 800;
}

.owner-login {
  margin: 16px;
}

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

.owner-status {
  color: #7a1f66;
}

.is-hidden {
  display: none !important;
}

.chat-note {
  color: #7a1f66;
  font-size: 0.9rem;
}

.editor-zone {
  margin: 0 16px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
    #fff6fb;
}

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

.editor-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

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

label {
  display: grid;
  gap: 4px;
  color: var(--navy);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(17, 60, 143, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #fff0f8);
  color: var(--ink);
  padding: 10px;
  box-shadow: inset 0 2px 5px rgba(5, 39, 92, 0.12);
}

input[type="file"] {
  border-style: dashed;
  background:
    linear-gradient(180deg, #ffffff, #fff1fb),
    linear-gradient(135deg, var(--pool), var(--gold));
  cursor: pointer;
}

textarea {
  resize: vertical;
}

.button-row {
  flex-wrap: wrap;
  gap: 8px;
}

.pixel-button.alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.08) 43%),
    linear-gradient(135deg, #ffd8ec, #ff72be);
  color: #5f155a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
}

.pixel-button.danger {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.08) 43%),
    linear-gradient(135deg, var(--danger), var(--pink));
  color: white;
}

.editor-note {
  padding: 0 16px 12px;
  color: #7a1f66;
  font-size: 0.92rem;
}

.export-box {
  display: none;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  font-family: "Courier New", Courier, monospace;
}

.export-box.is-visible {
  display: block;
}

.site-footer {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(17, 60, 143, 0.45);
  background: linear-gradient(180deg, #eef7ff, #9eb7da 48%, #405885 52%, #162c58);
  color: white;
  text-shadow: 0 1px 0 #00133d;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: white;
}

@media (max-width: 980px) {
  .layout-grid {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .rightbar {
    width: auto;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .rightbar .panel {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 14px);
    margin: 7px auto;
    border-radius: 12px;
  }

  .title-row,
  .layout-grid,
  .editor-grid,
  .owner-login-grid,
  .chatroom-grid,
  .rightbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sidebar,
  .rightbar {
    width: auto;
    flex-basis: auto;
  }

  .tab-nav a {
    flex: 1 1 132px;
  }

  .post-header {
    grid-template-columns: 1fr;
  }
}

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

  .status-strip {
    display: none;
  }

  .title-row {
    padding: 22px;
  }

  .ticker {
    grid-template-columns: 1fr;
  }

  .ticker span {
    min-width: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .tiny-field-grid {
    grid-template-columns: 1fr;
  }
}

*,
*::before,
*::after {
  font-family: var(--hand) !important;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.82;
}

.blog-masthead {
  background:
    linear-gradient(rgba(255, 129, 199, 0.5), rgba(255, 129, 199, 0.76)),
    url("assets/pink-swirls.svg") right -70px top -80px / 500px auto no-repeat,
    #ff80c5;
}

.tab-nav a,
.pixel-button,
.edit-post-button,
.link-button {
  box-shadow: 2px 2px 0 #8b1a72;
}

.window-title {
  text-transform: none;
}

body {
  background:
    linear-gradient(rgba(255, 238, 248, 0.52), rgba(255, 238, 248, 0.76)),
    url("assets/pink-swirls.svg") center top / 690px auto repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 46px),
    linear-gradient(135deg, #ffc1e2, #ff5bb5 42%, #ffd3ec);
}

.page-shell {
  border: 3px solid #8b1a72;
  background: rgba(255, 244, 250, 0.96);
}

.window {
  border: 2px solid #a1177d;
  background: #fff6fb;
}

.window-title {
  background: #ff65b9;
  border-bottom: 2px solid #8b1a72;
}

.tab-nav,
.site-footer,
.chatroom-panel,
.chat-status {
  background: #ffd4eb;
}

.tab-nav a:nth-child(5),
.site-footer {
  color: #5f155a;
  text-shadow: none;
}

.site-footer a {
  color: #7a0f63;
}

.chatroom-panel,
.chat-bubble,
.chat-bubble:nth-child(even),
input,
textarea {
  border-radius: 3px;
}

.chatroom-panel {
  border: 2px dotted #ff4fab;
  box-shadow: 3px 3px 0 rgba(139, 26, 114, 0.22);
}

.chat-bubble,
.chat-bubble:nth-child(even) {
  justify-self: stretch;
  background: #fffafd;
  border: 1px dashed #ff7ac4;
}

.profile-card::before {
  content: "xoxo";
  position: absolute;
  top: 42px;
  right: 18px;
  color: #ff149f;
  font-size: 1.15rem;
  font-weight: 900;
  transform: rotate(12deg);
}

.post:nth-child(odd),
.playlist-tracks li:nth-child(odd),
.guestbook-entry:nth-child(odd) {
  transform: rotate(-0.7deg);
}

.post:nth-child(even),
.playlist-tracks li:nth-child(even),
.guestbook-entry:nth-child(even) {
  transform: rotate(0.65deg);
}
