/* ==========================================================
   CUTE CORNER 2.0 — STYLE.CSS
   ==========================================================
   soft chaos + scrapbook + old web + polka dots + gingham
   ========================================================== */


/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    "Trebuchet MS",
    Verdana,
    Arial,
    sans-serif;

  color: #633f56;

  background-color: #ffd9e9;

  background-image:
    radial-gradient(#ff91bd 2px, transparent 2px),
    radial-gradient(#ffffff 2px, transparent 2px);

  background-position:
    0 0,
    14px 14px;

  background-size:
    28px 28px;

  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

img,
video {
  max-width: 100%;
}


/* ==========================================================
   BACKGROUND DOODLES
   ========================================================== */

.background-doodles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.background-doodles span {
  position: absolute;
  opacity: 0.5;
}

.bg-star-one {
  top: 6%;
  left: 3%;
  font-size: 48px;
  transform: rotate(-15deg);
}

.bg-star-two {
  right: 4%;
  top: 34%;
  font-size: 34px;
}

.bg-heart-one {
  left: 2%;
  bottom: 17%;
  font-size: 48px;
}

.bg-heart-two {
  right: 2%;
  bottom: 8%;
  font-size: 34px;
}

.bg-flower {
  right: 5%;
  top: 9%;
  font-size: 44px;
}


/* ==========================================================
   MAIN SITE
   ========================================================== */

.site-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 22px auto 60px;

  background: #fffafc;

  border:
    4px solid #ffffff;

  outline:
    2px solid #e985ae;

  box-shadow:
    0 12px 0 rgba(145, 76, 107, 0.12),
    0 18px 35px rgba(109, 55, 82, 0.18);

  position: relative;
}


/* ==========================================================
   TOP BAR
   ========================================================== */

.tiny-topbar {
  min-height: 28px;

  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 10px;

  padding: 5px 12px;

  font-size: 10px;
  letter-spacing: 0.05em;

  background:
    repeating-linear-gradient(
      90deg,
      #fff 0,
      #fff 14px,
      #ffe8f1 14px,
      #ffe8f1 28px
    );

  border-bottom:
    1px dashed #d991ad;
}

.tiny-topbar-middle {
  text-align: center;
}

.tiny-topbar-right {
  text-align: right;
}

.online-dot {
  width: 8px;
  height: 8px;

  display: inline-block;

  border-radius: 50%;

  background: #70c98b;

  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #70c98b;

  margin-right: 7px;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  min-height: 180px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px 170px 28px 50px;

  background-color: #ffe5ef;

  background-image:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.6) 50%,
      transparent 50%
    ),
    linear-gradient(
      rgba(255,255,255,0.6) 50%,
      transparent 50%
    );

  background-size:
    34px 34px;

  border-bottom:
    3px solid #e991b4;
}

.header-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.header-kicker {
  display: inline-block;

  padding: 4px 10px;

  background: #fff8c9;

  border:
    1px dashed #b68a6b;

  transform:
    rotate(-1deg);

  font-family:
    "Comic Sans MS",
    cursive;

  font-size: 13px;
}

.site-header h1 {
  margin:
    6px 0 0;

  font-family:
    "Comic Sans MS",
    "Trebuchet MS",
    cursive;

  font-size:
    clamp(48px, 8vw, 86px);

  line-height: 0.95;

  color: #f06fa6;

  text-shadow:
    3px 3px 0 #fff,
    5px 5px 0 #8bd6d5;

  transform:
    rotate(-1deg);
}

.header-subtitle {
  margin:
    15px 0 0;

  font-size: 12px;

  letter-spacing: 0.08em;

  color: #756070;
}


/* ---------- TAPE ---------- */

.header-tape,
.paper-tape {
  position: absolute;

  width: 75px;
  height: 23px;

  background:
    rgba(255, 246, 184, 0.72);

  border:
    1px solid rgba(170, 147, 97, 0.18);

  z-index: 4;
}

.tape-left {
  left: -15px;
  top: 18px;

  transform:
    rotate(-28deg);
}

.tape-right {
  right: -16px;
  bottom: 20px;

  transform:
    rotate(-25deg);
}

.tape-top {
  top: -9px;
  left: 40%;

  transform:
    rotate(2deg);
}


/* ---------- HEADER CHARACTER ---------- */

.header-character {
  position: absolute;

  right: 25px;
  bottom: -10px;

  width: 145px;
  height: 160px;

  z-index: 3;

  transform:
    rotate(3deg);
}

.header-character img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* ---------- CONFETTI ---------- */

.header-confetti span {
  position: absolute;

  font-size: 18px;

  color: #ef7daf;
}

.header-confetti span:nth-child(1) {
  top: 17px;
  left: 9%;
}

.header-confetti span:nth-child(2) {
  top: 48px;
  left: 17%;
}

.header-confetti span:nth-child(3) {
  bottom: 22px;
  left: 11%;
}

.header-confetti span:nth-child(4) {
  top: 24px;
  right: 20%;
  color: #8ed5d0;
}

.header-confetti span:nth-child(5) {
  bottom: 25px;
  right: 29%;
  color: #e3c45f;
}

.header-confetti span:nth-child(6) {
  top: 80px;
  right: 10%;
}


/* ==========================================================
   MARQUEE
   ========================================================== */

.marquee-strip {
  overflow: hidden;

  padding: 5px 0;

  background: #f486b5;

  color: #fff;

  border-top:
    2px solid #fff;

  border-bottom:
    2px solid #d66495;

  font-size: 11px;

  white-space: nowrap;
}

.marquee-track {
  display: inline-block;

  min-width: 100%;

  animation:
    marqueeMove 24s linear infinite;
}

@keyframes marqueeMove {
  from {
    transform:
      translateX(100%);
  }

  to {
    transform:
      translateX(-100%);
  }
}


/* ==========================================================
   NAV
   ========================================================== */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;

  padding: 10px 12px;

  background:
    #fffdf7;

  border-bottom:
    2px dashed #e5a1ba;
}

.nav-button {
  border:
    2px solid #dc8dad;

  border-radius:
    999px;

  padding:
    7px 11px;

  background:
    #fff;

  color:
    #8c536e;

  font-size:
    11px;

  font-weight:
    800;

  box-shadow:
    2px 2px 0 #f5bed2;

  transition:
    transform 0.12s ease,
    background 0.12s ease;
}

.nav-button:hover {
  transform:
    translateY(-2px)
    rotate(-1deg);

  background:
    #fff0f6;
}

.nav-button.active {
  background:
    #f486b5;

  color:
    #fff;

  box-shadow:
    2px 2px 0 #9bdad6;
}

.mystery-nav {
  border-style:
    dashed;
}


/* ==========================================================
   THREE COLUMN LAYOUT
   ========================================================== */

.site-grid {
  display: grid;

  grid-template-columns:
    185px minmax(0, 1fr) 195px;

  gap: 12px;

  padding: 12px;

  align-items: start;
}

.left-sidebar,
.right-sidebar {
  display: grid;
  gap: 12px;
}

.main-content {
  min-width: 0;
}


/* ==========================================================
   GENERIC PANELS
   ========================================================== */

.mini-panel,
.scrap-panel,
.book-panel {
  position: relative;

  background:
    #fff;

  border:
    2px solid #df9ab5;

  box-shadow:
    4px 4px 0 #f6d4e1;
}

.mini-panel {
  padding:
    10px;

  font-size:
    12px;
}

.scrap-panel {
  margin-bottom:
    14px;

  padding:
    18px;
}

.scrap-panel:nth-child(even) {
  transform:
    rotate(0.15deg);
}

.mini-panel:nth-child(odd) {
  transform:
    rotate(-0.3deg);
}

.mini-panel-title {
  margin:
    -10px -10px 10px;

  padding:
    6px 8px;

  background:
    #f7bdd2;

  border-bottom:
    1px dashed #bd6e8e;

  color:
    #75475d;

  font-family:
    "Comic Sans MS",
    cursive;

  font-weight:
    700;

  text-align:
    center;
}

.scrap-panel h2,
.page-intro h2 {
  margin-top:
    0;

  color:
    #d85e94;

  font-family:
    "Comic Sans MS",
    cursive;
}

.panel-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-label {
  display: inline-block;

  margin-bottom:
    12px;

  padding:
    5px 9px;

  border:
    1px dashed rgba(93, 70, 81, 0.45);

  font-family:
    "Comic Sans MS",
    cursive;

  font-weight:
    bold;

  transform:
    rotate(-1deg);
}

.pink-label {
  background:
    #ffd5e5;
}

.blue-label {
  background:
    #d8f2f3;
}

.yellow-label {
  background:
    #fff2b6;
}

.green-label {
  background:
    #dff1c9;
}

.tiny-note {
  font-size:
    10px;

  line-height:
    1.5;
}

.big-handwriting {
  font-family:
    "Comic Sans MS",
    cursive;

  font-size:
    20px;

  color:
    #b66086;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.cute-button,
.text-link-button,
.sidebar-links button,
.pet-buttons button,
.poll-panel button,
.internet-toolbar button,
.research-tabs button,
.grimoire-tabs button {
  border:
    1px solid #b96d8e;

  background:
    #ffe4ef;

  color:
    #74455d;

  padding:
    7px 10px;

  box-shadow:
    2px 2px 0 #e8abc2;

  font-weight:
    bold;

  transition:
    0.12s ease;
}

.cute-button:hover,
.text-link-button:hover,
.sidebar-links button:hover,
.pet-buttons button:hover,
.poll-panel button:hover,
.internet-toolbar button:hover,
.research-tabs button:hover,
.grimoire-tabs button:hover {
  transform:
    translate(-1px, -1px);

  box-shadow:
    3px 3px 0 #e8abc2;

  background:
    #fff2f7;
}

.cute-button:active,
button:active {
  transform:
    translate(1px, 1px);

  box-shadow:
    none;
}

.small-button {
  padding:
    5px 8px;

  font-size:
    11px;
}

.text-link-button {
  border:
    0;

  background:
    transparent;

  box-shadow:
    none;

  text-decoration:
    underline;

  padding-left:
    0;
}


/* ==========================================================
   INPUTS
   ========================================================== */

input,
textarea,
select {
  width:
    100%;

  border:
    1px solid #d9a0b5;

  background:
    #fffdfd;

  color:
    #654354;

  padding:
    8px;

  border-radius:
    2px;

  outline:
    none;
}

input:focus,
textarea:focus,
select:focus {
  border-color:
    #6fc7c8;

  box-shadow:
    0 0 0 2px #d9f2f2;
}

textarea {
  min-height:
    130px;

  resize:
    vertical;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.sidebar-links {
  display:
    grid;

  gap:
    5px;
}

.sidebar-links button {
  width:
    100%;

  text-align:
    left;
}

.mini-profile-avatar {
  display:
    flex;

  justify-content:
    center;

  margin:
    7px 0;
}

#mini-avatar-preview {
  width:
    82px;

  height:
    82px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    50%;

  border:
    3px solid #fff;

  outline:
    1px solid #d37b9e;

  background:
    repeating-linear-gradient(
      45deg,
      #ffd7e6,
      #ffd7e6 10px,
      #d9f0ee 10px,
      #d9f0ee 20px
    );

  font-size:
    32px;
}

.button-wall {
  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    4px;
}

.web-button {
  min-height:
    31px;

  display:
    grid;

  place-items:
    center;

  padding:
    3px;

  border:
    1px solid #8d6677;

  background:
    #fff;

  color:
    #70465b;

  font-family:
    Verdana,
    sans-serif;

  font-size:
    8px;

  font-weight:
    bold;

  line-height:
    1.05;

  text-align:
    center;

  box-shadow:
    inset 0 0 0 2px #f5d5e1;
}

.useless-info p {
  margin:
    7px 0;
}

.suspicious-panel {
  text-align:
    center;
}

.tiny-secret-trigger {
  width:
    29px;

  height:
    29px;

  border-radius:
    50%;

  border:
    1px dashed #a77b8c;

  background:
    transparent;

  color:
    #c1849d;
}


/* ==========================================================
   PAGES
   ========================================================== */

.page-view {
  display:
    none;
}

.page-view.active-page {
  display:
    block;

  animation:
    pageAppear 0.2s ease;
}

@keyframes pageAppear {
  from {
    opacity:
      0;

    transform:
      translateY(5px);
  }

  to {
    opacity:
      1;

    transform:
      translateY(0);
  }
}

.page-intro {
  background-color:
    #fff;

  background-image:
    linear-gradient(
      #edf4ff 1px,
      transparent 1px
    );

  background-size:
    100% 23px;
}

.page-sticker {
  float:
    right;

  font-size:
    40px;

  transform:
    rotate(10deg);
}


/* ==========================================================
   HOME
   ========================================================== */

.welcome-panel {
  background:
    #fffefa;
}

.welcome-actions {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    8px;

  margin-top:
    14px;
}

.random-result {
  margin-top:
    14px;

  padding:
    10px;

  background:
    #fff5c9;

  border:
    1px dashed #b99d62;

  min-height:
    40px;
}

.content-split {
  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    14px;
}

.today-panel {
  background:
    #fff8fb;
}

.today-items {
  display:
    grid;

  gap:
    8px;
}

.check-row {
  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  padding:
    5px;

  border-bottom:
    1px dotted #e1afc2;
}

.check-row input {
  width:
    auto;
}

.tiny-add-row {
  display:
    grid;

  grid-template-columns:
    1fr 35px;

  gap:
    5px;

  margin-top:
    12px;
}

.tiny-add-row button {
  border:
    1px solid #b96d8e;

  background:
    #ffd8e7;

  font-weight:
    bold;
}


/* ---------- POLAROID ---------- */

.polaroid {
  width:
    min(220px, 90%);

  margin:
    auto;

  padding:
    10px 10px 25px;

  background:
    #fff;

  border:
    1px solid #ddd;

  box-shadow:
    3px 5px 8px rgba(0,0,0,0.15);

  transform:
    rotate(2deg);
}

.photo-placeholder {
  aspect-ratio:
    1 / 1;

  display:
    grid;

  place-items:
    center;

  background:
    #e7f4ef;

  font-size:
    60px;
}

.polaroid p {
  margin:
    9px 0 -12px;

  font-family:
    "Comic Sans MS",
    cursive;

  font-size:
    10px;
}


/* ---------- MUSIC ---------- */

.music-panel {
  background:
    repeating-linear-gradient(
      0deg,
      #fff 0,
      #fff 25px,
      #f3edf2 26px
    );
}

.music-decoration {
  position:
    absolute;

  right:
    18px;

  top:
    12px;

  font-size:
    24px;

  transform:
    rotate(8deg);
}

.now-playing-layout {
  display:
    grid;

  grid-template-columns:
    90px 1fr;

  gap:
    14px;

  align-items:
    center;
}

.album-placeholder {
  width:
    90px;

  aspect-ratio:
    1;

  display:
    grid;

  place-items:
    center;

  background:
    repeating-linear-gradient(
      45deg,
      #a5dcd6,
      #a5dcd6 10px,
      #ffd3e4 10px,
      #ffd3e4 20px
    );

  border:
    5px solid #fff;

  outline:
    1px solid #b48698;

  font-size:
    36px;
}

.track-info {
  display:
    grid;

  gap:
    4px;
}

.tiny-uppercase {
  font-size:
    9px;

  letter-spacing:
    0.18em;
}

.fake-progress {
  height:
    8px;

  background:
    #eee;

  border:
    1px solid #d1a1b4;

  margin:
    8px 0;
}

#music-progress {
  width:
    36%;

  height:
    100%;

  background:
    #8dd4d0;
}

.music-buttons {
  display:
    flex;

  gap:
    5px;

  flex-wrap:
    wrap;
}

.music-buttons button {
  border:
    1px solid #a76d84;

  background:
    #fff;

  color:
    #75485c;
}


/* ---------- WEEK ---------- */

.week-grid {
  display:
    grid;

  grid-template-columns:
    repeat(7, 1fr);

  gap:
    5px;
}

.week-grid label {
  min-width:
    0;
}

.week-grid span {
  display:
    block;

  text-align:
    center;

  font-size:
    9px;

  font-weight:
    bold;

  margin-bottom:
    3px;
}

.week-grid input {
  padding:
    5px;

  font-size:
    10px;
}


/* ---------- UPDATES ---------- */

.updates-panel {
  background:
    #fff7dc;
}

.huge-scrap-title {
  display:
    inline-block;

  margin-bottom:
    12px;

  padding:
    4px 13px;

  background:
    #f27dac;

  color:
    #fff;

  font-family:
    "Comic Sans MS",
    cursive;

  font-size:
    25px;

  transform:
    rotate(-2deg);
}

.update-entry {
  padding:
    9px 0;

  border-bottom:
    1px dashed #c6a58a;
}

.update-entry p {
  margin:
    3px 0;
}


/* ---------- SCRATCH ---------- */

.scratch-panel {
  background-color:
    #fff;

  background-image:
    linear-gradient(
      #e6edf4 1px,
      transparent 1px
    );

  background-size:
    100% 24px;
}

.scratch-panel textarea {
  border:
    0;

  background:
    transparent;

  min-height:
    180px;

  line-height:
    24px;
}

.scratch-footer {
  text-align:
    right;

  font-size:
    9px;
}


/* ==========================================================
   CURRENTLY
   ========================================================== */

.currently-panel label {
  display:
    grid;

  grid-template-columns:
    62px 1fr;

  gap:
    5px;

  align-items:
    center;

  margin-bottom:
    6px;
}

.currently-panel label span {
  font-size:
    9px;

  font-weight:
    bold;
}

.currently-panel input {
  padding:
    4px;

  font-size:
    10px;
}


/* ==========================================================
   COUNTER
   ========================================================== */

.visitor-panel {
  text-align:
    center;
}

.counter-digits {
  display:
    inline-block;

  padding:
    5px 7px;

  margin:
    4px 0;

  background:
    #272127;

  color:
    #a9f7cf;

  font-family:
    monospace;

  font-size:
    18px;

  letter-spacing:
    3px;

  border:
    3px inset #ddd;
}


/* ==========================================================
   PET
   ========================================================== */

.pet-stage {
  min-height:
    100px;

  display:
    grid;

  place-items:
    center;

  background:
    linear-gradient(
      #d8f3f1 0 65%,
      #dff0c3 65%
    );

  border:
    2px inset #eee;

  overflow:
    hidden;
}

#virtual-pet {
  font-family:
    monospace;

  font-size:
    15px;

  white-space:
    nowrap;

  animation:
    petBob 2s ease-in-out infinite;
}

@keyframes petBob {
  0%,
  100% {
    transform:
      translateY(0);
  }

  50% {
    transform:
      translateY(-5px);
  }
}

.pet-message {
  margin:
    6px 0;

  padding:
    4px;

  background:
    #fff;

  border:
    1px dotted #bd8ca0;

  text-align:
    center;

  font-size:
    10px;
}

.pet-stats {
  display:
    flex;

  justify-content:
    space-around;

  font-size:
    9px;

  margin:
    5px 0;
}

.pet-buttons {
  display:
    grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap:
    3px;
}

.pet-buttons button {
  padding:
    4px;

  font-size:
    8px;
}


/* ==========================================================
   POLL
   ========================================================== */

.poll-panel label {
  display:
    block;

  margin:
    5px 0;
}

.poll-panel input {
  width:
    auto;
}

#poll-result {
  margin-top:
    7px;

  font-size:
    10px;
}


/* ==========================================================
   MAILBOX
   ========================================================== */

.mailbox-panel {
  text-align:
    center;
}

.mailbox {
  width:
    65px;

  height:
    50px;

  border:
    2px solid #9e627d;

  background:
    #ffd2e3;

  font-size:
    25px;

  box-shadow:
    3px 3px 0 #d99ab3;
}


/* ==========================================================
   PORTAL
   ========================================================== */

.portal-panel {
  background:
    #f8f5fa;

  border-color:
    #aaa0b1;

  text-align:
    center;

  color:
    #6b6270;
}

.portal-static {
  font-family:
    monospace;

  letter-spacing:
    4px;

  animation:
    portalFlicker 3s steps(2) infinite;
}

@keyframes portalFlicker {
  0%,
  95% {
    opacity:
      1;
  }

  96% {
    opacity:
      0.15;
  }

  97% {
    opacity:
      1;
  }

  98% {
    opacity:
      0.4;
  }

  100% {
    opacity:
      1;
  }
}

.other-lives-link {
  display:
    inline-block;

  color:
    #76657e;

  text-decoration:
    none;

  border-bottom:
    1px dotted #76657e;

  font-family:
    monospace;

  font-size:
    11px;

  transition:
    0.2s ease;
}

.other-lives-link:hover {
  letter-spacing:
    2px;

  color:
    #241e28;
}


/* ==========================================================
   DRESS UP
   ========================================================== */

.dress-up-layout {
  display:
    grid;

  grid-template-columns:
    minmax(220px, 1fr)
    minmax(190px, 0.7fr);

  gap:
    20px;
}

.avatar-stage {
  min-height:
    360px;

  position:
    relative;

  overflow:
    hidden;

  border:
    8px solid #fff;

  outline:
    2px solid #e0a1b9;

  background:
    repeating-linear-gradient(
      45deg,
      #ffe2ed,
      #ffe2ed 18px,
      #e2f4ef 18px,
      #e2f4ef 36px
    );
}

.avatar-stage > div {
  position:
    absolute;

  inset:
    0;

  display:
    grid;

  place-items:
    center;

  pointer-events:
    none;
}

#avatar-body-layer {
  font-size:
    80px;
}

.avatar-controls {
  display:
    grid;

  align-content:
    start;

  gap:
    12px;
}

.avatar-controls label {
  display:
    grid;

  gap:
    4px;

  font-size:
    11px;

  font-weight:
    bold;
}


/* ==========================================================
   TAG BOARD
   ========================================================== */

.tag-board {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    7px;
}

.tag-board span {
  padding:
    6px 9px;

  border:
    1px dashed #b98a9d;

  background:
    #fff6c9;

  transform:
    rotate(-1deg);
}

.tag-board span:nth-child(even) {
  background:
    #d9f2ef;

  transform:
    rotate(1deg);
}


/* ==========================================================
   BLOG
   ========================================================== */

.blog-editor {
  display:
    grid;

  gap:
    10px;
}

.blog-meta-editor {
  display:
    grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap:
    7px;
}

.blog-editor textarea {
  min-height:
    230px;

  background-color:
    #fff;

  background-image:
    linear-gradient(
      #edf0f4 1px,
      transparent 1px
    );

  background-size:
    100% 25px;

  line-height:
    25px;
}

.editor-buttons {
  display:
    flex;

  justify-content:
    flex-end;

  gap:
    7px;
}

.tiny-search {
  width:
    150px;
}


/* ==========================================================
   INTERNET
   ========================================================== */

.internet-toolbar {
  display:
    grid;

  grid-template-columns:
    1fr 150px auto;

  gap:
    7px;

  margin-bottom:
    15px;
}

.website-grid {
  display:
    grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    10px;
}

.website-card {
  padding:
    10px;

  border:
    1px solid #b88ba0;

  background:
    #fff;

  box-shadow:
    3px 3px 0 #e7cad5;
}

.add-website-panel {
  display:
    grid;

  gap:
    7px;
}


/* ==========================================================
   GRIMOIRE
   ========================================================== */

.book-panel {
  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  min-height:
    500px;

  background:
    #efe2c7;

  border:
    7px solid #7d5748;

  box-shadow:
    inset 0 0 30px rgba(89, 54, 39, 0.2),
    5px 6px 0 rgba(81, 47, 35, 0.18);
}

.book-page {
  padding:
    30px;

  background:
    #fff8df;

  color:
    #5e4a3f;
}

.book-page:first-child {
  border-right:
    2px solid #c8b58d;

  box-shadow:
    inset -12px 0 20px rgba(74, 48, 35, 0.08);
}

.book-page:last-child {
  box-shadow:
    inset 12px 0 20px rgba(74, 48, 35, 0.08);
}

.book-page h2,
.book-page h3 {
  font-family:
    Georgia,
    serif;

  color:
    #725040;
}

.book-page textarea {
  min-height:
    300px;

  background:
    transparent;

  border:
    0;

  border-bottom:
    1px solid #bda987;

  font-family:
    Georgia,
    serif;

  line-height:
    1.8;
}

.grimoire-tabs {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    5px;
}

.grimoire-tabs button {
  background:
    #e9d7ad;

  border-color:
    #8c725b;

  box-shadow:
    none;
}

#grimoire-section-content {
  margin-top:
    20px;

  padding:
    15px;

  border:
    1px dashed #9d856a;

  min-height:
    160px;
}


/* ==========================================================
   SCHOOL / RESEARCH
   ========================================================== */

.research-tabs {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    5px;

  margin-bottom:
    10px;
}

.research-tabs button {
  background:
    #e8f3f3;

  box-shadow:
    2px 2px 0 #c2dddd;

  font-size:
    10px;
}

#research-content {
  min-height:
    200px;
}


/* ==========================================================
   BOARDS / PIX / COLLECTIONS
   ========================================================== */

.board-grid,
.pix-grid,
.collection-grid {
  display:
    grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap:
    12px;
}

.board-card,
.pix-card,
.collection-card {
  min-height:
    140px;

  padding:
    12px;

  background:
    #fff;

  border:
    2px solid #dca0b7;

  box-shadow:
    4px 4px 0 #f2d4df;

  position:
    relative;
}

.board-card:nth-child(odd),
.pix-card:nth-child(odd),
.collection-card:nth-child(odd) {
  transform:
    rotate(-0.5deg);
}

.board-card:nth-child(even),
.pix-card:nth-child(even),
.collection-card:nth-child(even) {
  transform:
    rotate(0.5deg);
}


/* ==========================================================
   WISHLIST
   ========================================================== */

.wishlist-editor {
  display:
    grid;

  grid-template-columns:
    1fr 1fr 160px auto;

  gap:
    7px;
}

#wishlist-grid {
  display:
    grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap:
    10px;
}

.wishlist-card {
  padding:
    12px;

  background:
    #fff;

  border:
    1px dashed #c27f9c;

  box-shadow:
    3px 3px 0 #f0cfdb;
}


/* ==========================================================
   PINK DS
   ========================================================== */

.ds-console {
  width:
    min(570px, 100%);

  margin:
    25px auto;

  filter:
    drop-shadow(
      0 14px 10px rgba(101, 56, 75, 0.22)
    );
}

.ds-top,
.ds-bottom {
  position:
    relative;

  width:
    100%;

  background:
    linear-gradient(
      145deg,
      #ffb5d1,
      #e67eaa
    );

  border:
    4px solid #b95f87;

  box-shadow:
    inset 0 0 0 3px #ffc8dc;
}

.ds-top {
  min-height:
    310px;

  border-radius:
    28px 28px 10px 10px;

  padding:
    35px 70px;
}

.ds-bottom {
  min-height:
    330px;

  border-radius:
    10px 10px 30px 30px;

  padding:
    35px 130px;
}

.ds-screen {
  height:
    230px;

  display:
    grid;

  place-items:
    center;

  overflow:
    hidden;

  background:
    #eef7f4;

  border:
    9px solid #4d4550;

  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.2);

  text-align:
    center;
}

.ds-screen-content {
  display:
    grid;

  gap:
    8px;
}

.ds-camera {
  position:
    absolute;

  top:
    10px;

  left:
    50%;

  transform:
    translateX(-50%);

  color:
    #563d49;
}

.ds-speakers {
  position:
    absolute;

  top:
    130px;

  font-size:
    14px;

  line-height:
    8px;

  color:
    #a95179;
}

.left-speaker {
  left:
    24px;
}

.right-speaker {
  right:
    24px;
}

.ds-hinge {
  height:
    26px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-around;

  background:
    #c86993;

  border-left:
    4px solid #a75379;

  border-right:
    4px solid #a75379;

  color:
    #fff;

  font-size:
    8px;
}

.touch-screen {
  height:
    220px;

  grid-template-columns:
    1fr 1fr;

  gap:
    8px;

  padding:
    12px;

  background:
    #fff9d7;
}

.touch-screen button {
  min-height:
    70px;

  border:
    2px solid #d99ab2;

  background:
    #fff;

  color:
    #74485d;

  font-weight:
    bold;
}

.d-pad {
  width:
    95px;

  height:
    95px;

  position:
    absolute;

  left:
    18px;

  top:
    80px;

  display:
    grid;

  grid-template-columns:
    repeat(3, 1fr);

  grid-template-rows:
    repeat(3, 1fr);
}

.d-pad button {
  border:
    0;

  background:
    #6f5360;

  color:
    #fff;
}

.d-pad button:nth-child(1) {
  grid-column:
    2;

  grid-row:
    1;
}

.d-pad button:nth-child(2) {
  grid-column:
    1;

  grid-row:
    2;
}

.d-pad button:nth-child(3) {
  grid-column:
    2;

  grid-row:
    2;
}

.d-pad button:nth-child(4) {
  grid-column:
    3;

  grid-row:
    2;
}

.d-pad button:nth-child(5) {
  grid-column:
    2;

  grid-row:
    3;
}

.abxy {
  position:
    absolute;

  right:
    18px;

  top:
    70px;

  width:
    100px;

  height:
    100px;
}

.abxy button {
  width:
    34px;

  height:
    34px;

  position:
    absolute;

  border-radius:
    50%;

  border:
    2px solid #6e4559;

  background:
    #fff;

  color:
    #b75c86;

  font-weight:
    bold;
}

.abxy button:nth-child(1) {
  top:
    0;

  left:
    33px;
}

.abxy button:nth-child(2) {
  top:
    33px;

  left:
    0;
}

.abxy button:nth-child(3) {
  top:
    33px;

  right:
    0;
}

.abxy button:nth-child(4) {
  bottom:
    0;

  left:
    33px;
}

.start-select {
  position:
    absolute;

  bottom:
    20px;

  left:
    50%;

  transform:
    translateX(-50%);

  display:
    flex;

  gap:
    10px;
}

.start-select button {
  border:
    0;

  background:
    transparent;

  color:
    #704c5e;

  font-size:
    8px;

  font-weight:
    bold;
}


/* ==========================================================
   GUESTBOOK
   ========================================================== */

.guestbook-form {
  display:
    grid;

  grid-template-columns:
    1fr 150px;

  gap:
    8px;
}

.guestbook-form textarea {
  grid-column:
    1 / -1;

  min-height:
    130px;
}

.guestbook-form button {
  grid-column:
    1 / -1;
}

.guestbook-entry {
  margin:
    10px 0;

  padding:
    12px;

  background:
    #fff;

  border:
    1px solid #dca0b7;

  box-shadow:
    3px 3px 0 #f0d2dd;
}


/* ==========================================================
   MYSTERY
   ========================================================== */

.mystery-page {
  min-height:
    380px;

  display:
    grid;

  place-items:
    center;

  align-content:
    center;

  text-align:
    center;

  background:
    #f8f5f9;

  border-color:
    #8f8495;
}

.mystery-page h2 {
  font-family:
    monospace;

  color:
    #49404e;

  font-size:
    45px;
}

#mystery-button {
  padding:
    8px 15px;

  background:
    transparent;

  border:
    1px dashed #756b7a;

  color:
    #514858;
}

#mystery-result {
  margin-top:
    15px;

  font-family:
    monospace;
}


/* ==========================================================
   FLOATING STICKERS
   ========================================================== */

.floating-sticker {
  position:
    fixed;

  z-index:
    20;

  pointer-events:
    none;

  filter:
    drop-shadow(
      3px 4px 2px rgba(77, 43, 60, 0.18)
    );
}

.floating-sticker img {
  display:
    block;

  width:
    100%;

  height:
    100%;

  object-fit:
    contain;
}

.sticker-one {
  width:
    110px;

  left:
    max(4px, calc(50% - 650px));

  bottom:
    30px;

  transform:
    rotate(-7deg);
}

.sticker-two {
  width:
    100px;

  right:
    max(5px, calc(50% - 650px));

  top:
    230px;

  transform:
    rotate(8deg);
}

.sticker-three {
  width:
    85px;

  right:
    max(5px, calc(50% - 640px));

  bottom:
    25px;

  transform:
    rotate(-4deg);
}


/* ==========================================================
   VIDEO SUPPORT
   ========================================================== */

/*
  Used later for things such as dancing Groot.

  object-fit: cover means the VIDEO fills the frame instead
  of shrinking the whole original video into a tiny rectangle.
*/

.frame-video {
  width:
    100%;

  height:
    100%;

  display:
    block;

  object-fit:
    cover;

  object-position:
    center;

  border:
    0;
}

.sticker-video {
  width:
    100%;

  height:
    100%;

  object-fit:
    cover;

  object-position:
    center;

  pointer-events:
    none;
}


/* ==========================================================
   MODAL
   ========================================================== */

.cute-modal {
  position:
    fixed;

  inset:
    0;

  z-index:
    100;

  display:
    none;

  place-items:
    center;

  padding:
    20px;

  background:
    rgba(69, 49, 62, 0.28);
}

.cute-modal.open {
  display:
    grid;
}

.modal-window {
  width:
    min(470px, 100%);

  background:
    #fff;

  border:
    3px solid #d77fa3;

  box-shadow:
    8px 8px 0 rgba(106, 70, 87, 0.25);
}

.modal-titlebar {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  padding:
    6px 8px;

  background:
    #f39abc;

  color:
    #fff;

  font-weight:
    bold;

  font-size:
    11px;
}

.modal-titlebar button {
  width:
    24px;

  height:
    24px;

  border:
    1px solid #fff;

  background:
    #fff;

  color:
    #c95e8a;

  font-weight:
    bold;
}

#modal-content {
  padding:
    20px;

  min-height:
    120px;
}


/* ==========================================================
   TOAST
   ========================================================== */

.toast {
  position:
    fixed;

  left:
    50%;

  bottom:
    25px;

  transform:
    translate(-50%, 20px);

  z-index:
    200;

  padding:
    9px 14px;

  background:
    #51404b;

  color:
    #fff;

  border:
    2px solid #fff;

  box-shadow:
    3px 3px 0 #d58ba9;

  opacity:
    0;

  pointer-events:
    none;

  transition:
    0.2s ease;
}

.toast.show {
  opacity:
    1;

  transform:
    translate(-50%, 0);
}


/* ==========================================================
   NEW BADGE + SCRIBBLES
   ========================================================== */

.new-badge {
  display:
    inline-block;

  padding:
    3px 6px;

  background:
    #f05e9b;

  color:
    #fff;

  font-size:
    9px;

  font-weight:
    bold;

  transform:
    rotate(5deg);

  animation:
    newBlink 1.4s steps(2) infinite;
}

@keyframes newBlink {
  50% {
    opacity:
      0.45;
  }
}

.doodle-arrow,
.scribble {
  font-family:
    "Comic Sans MS",
    cursive;

  font-size:
    26px;

  color:
    #e47fa6;
}


/* ==========================================================
   BOTTOM CLUTTER
   ========================================================== */

.bottom-clutter {
  padding:
    15px;

  background:
    #fff8fb;

  border-top:
    2px dashed #e4a1ba;
}

.bottom-button-row {
  display:
    flex;

  justify-content:
    center;

  flex-wrap:
    wrap;

  gap:
    5px;
}

.bottom-button-row .web-button {
  width:
    88px;

  height:
    31px;
}

.footer-stamp {
  margin-top:
    14px;

  text-align:
    center;

  font-family:
    "Comic Sans MS",
    cursive;

  font-size:
    11px;

  color:
    #9c6d82;
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {
  min-height:
    42px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding:
    8px 12px;

  background:
    #e994b5;

  color:
    #fff;

  font-size:
    9px;

  letter-spacing:
    0.05em;
}

footer button {
  border:
    1px solid #fff;

  background:
    #fff;

  color:
    #b4577e;

  padding:
    5px 8px;
}


/* ==========================================================
   NOSCRIPT
   ========================================================== */

.noscript-warning {
  position:
    fixed;

  left:
    20px;

  right:
    20px;

  bottom:
    20px;

  padding:
    15px;

  z-index:
    999;

  background:
    #fff1ad;

  border:
    3px solid #b78751;

  text-align:
    center;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 950px) {

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

  .right-sidebar {
    grid-column:
      1 / -1;

    grid-template-columns:
      repeat(3, 1fr);
  }

  .portal-panel {
    grid-column:
      auto;
  }

  .week-grid {
    grid-template-columns:
      repeat(4, 1fr);
  }

  .board-grid,
  .pix-grid,
  .collection-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (max-width: 700px) {

  body {
    background-size:
      22px 22px;
  }

  .site-shell {
    width:
      calc(100% - 10px);

    margin-top:
      5px;
  }

  .tiny-topbar {
    grid-template-columns:
      1fr;

    text-align:
      center;
  }

  .tiny-topbar-right {
    text-align:
      center;
  }

  .site-header {
    padding:
      28px 20px 40px;

    min-height:
      200px;
  }

  .site-header h1 {
    font-size:
      52px;
  }

  .header-character {
    width:
      85px;

    height:
      100px;

    right:
      3px;
  }

  .site-grid {
    display:
      flex;

    flex-direction:
      column;
  }

  .left-sidebar,
  .right-sidebar,
  .main-content {
    width:
      100%;
  }

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

  .right-sidebar {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .content-split,
  .dress-up-layout,
  .book-panel {
    grid-template-columns:
      1fr;
  }

  .book-page:first-child {
    border-right:
      0;

    border-bottom:
      2px solid #c8b58d;
  }

  .blog-meta-editor {
    grid-template-columns:
      1fr;
  }

  .internet-toolbar {
    grid-template-columns:
      1fr;
  }

  .website-grid,
  #wishlist-grid {
    grid-template-columns:
      1fr;
  }

  .wishlist-editor {
    grid-template-columns:
      1fr;
  }

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

  .board-grid,
  .pix-grid,
  .collection-grid {
    grid-template-columns:
      1fr;
  }

  .guestbook-form {
    grid-template-columns:
      1fr;
  }

  .guestbook-form textarea,
  .guestbook-form button {
    grid-column:
      auto;
  }

  .ds-top {
    min-height:
      260px;

    padding:
      35px 50px;
  }

  .ds-screen {
    height:
      190px;
  }

  .ds-bottom {
    min-height:
      330px;

    padding:
      35px 95px;
  }

  .touch-screen {
    height:
      200px;
  }

  .d-pad {
    transform:
      scale(0.75);

    transform-origin:
      left center;
  }

  .abxy {
    transform:
      scale(0.75);

    transform-origin:
      right center;
  }

  .floating-sticker {
    display:
      none !important;
  }

}


@media (max-width: 470px) {

  .left-sidebar,
  .right-sidebar {
    grid-template-columns:
      1fr;
  }

  .main-nav {
    gap:
      4px;
  }

  .nav-button {
    font-size:
      9px;

    padding:
      6px 8px;
  }

  .site-header h1 {
    font-size:
      43px;
  }

  .now-playing-layout {
    grid-template-columns:
      1fr;
  }

  .album-placeholder {
    margin:
      auto;
  }

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

  .ds-top {
    padding:
      35px 35px;
  }

  .ds-bottom {
    padding:
      30px 65px 75px;
  }

  .ds-speakers {
    display:
      none;
  }

  footer {
    flex-direction:
      column;

    text-align:
      center;
  }

}


/* ==========================================================
   PRINT
   ========================================================== */

@media print {

  body {
    background:
      white;
  }

  .main-nav,
  .left-sidebar,
  .right-sidebar,
  footer,
  .marquee-strip,
  .floating-sticker {
    display:
      none !important;
  }

  .site-grid {
    display:
      block;
  }

  .site-shell {
    width:
      100%;

    margin:
      0;

    border:
      0;

    outline:
      0;

    box-shadow:
      none;
  }

}