/* Homemade finishing touches, shared across Lilo's little rooms. */
:root {
  --ink-purple: #583b79;
  --gingham: repeating-linear-gradient(0deg, #ad91bf22 0 6px, transparent 6px 12px), repeating-linear-gradient(90deg, #ad91bf22 0 6px, transparent 6px 12px);
}
body { color: #30253e; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, canvas:focus-visible { outline: 3px solid #a32668; outline-offset: 3px; }
button { border-radius: 0; box-shadow: inset 1px 1px #fff9, 1px 1px #7e65894d; }
button:active { box-shadow: inset 1px 1px #7e65894d; }
.site { border: 4px ridge #a996c2; }
header { background: radial-gradient(ellipse at center, #fffdf1 15%, #f2deec 80%); padding-bottom: 22px; }
header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 8px; background: var(--gingham); border-top: 1px solid #ba9dc14d; }
.header-pup { position: absolute; left: calc(50% - 320px); top: 66px; width: 90px; height: 72px; object-fit: contain; image-rendering: pixelated; transform: rotate(-8deg); }
h1 { color: #715198; text-shadow: 1px 1px white, 3px 3px #d5b1cf, 4px 4px #9f77ad; }
.stars { color: #93588b; font-size: 22px; }
.topline { background: linear-gradient(90deg, #64518c, #81649d 60%, #64518c); }
.ticker { border-bottom: 3px double #b99c58; }
.box { border: 2px ridge #c2b0d2; box-shadow: 2px 3px #d9cee67a; }
.box h2 { background-image: linear-gradient(#ffffff55, #ffffff00); border-bottom: 3px double #ab94bd; }
.navigation { background: #eee5f7; }
#site-menu a { border: 1px solid #cdb9db; box-shadow: inset 1px 1px #fffc, 1px 1px #c1accb; background: #faf5ff; margin: 0 0 7px; padding: 8px 9px; line-height: 1.35; }
#site-menu a:nth-child(3n + 2) { background: #fff8df; }
#site-menu a:nth-child(3n) { background: #edf4e4; }
#site-menu a[aria-current='page'] { background: #dfcde9; border-style: inset; color: #783058; text-decoration-thickness: 2px; }
#site-menu a:hover { background: #f9e1eb; }
.profile img { border: 5px ridge #bba786; padding: 2px; background: #fffce7; }
.snack-pup { display: block; margin: 3px auto 0; object-fit: contain; image-rendering: pixelated; }
.snack p { margin: 8px 0 12px; }
.snack { background: #fff5d4; }
.news-date { color: #62743d; font: bold 13px 'Courier New', monospace; }
.news > a { display: inline-block; font-size: 14px; padding: 4px 0; }
.news hr { margin-block: 14px; }
.news p { line-height: 1.55; }
.polaroid { border: 1px solid #bda9b6; box-shadow: 3px 3px #c4b5bb6e; }
.polaroid::before { content: ''; position: absolute; width: 60px; height: 19px; background: #e7d7a8b3; top: -8px; left: 34%; transform: rotate(-5deg); }
.polaroid img { border: 1px solid #c8bbc1; }
.construction { border-top: 7px solid; border-bottom: 7px solid; border-image: repeating-linear-gradient(45deg, #554b43 0 7px, #f6da6a 7px 14px) 7; background: #fff2b5; margin-top: 24px; }
.construction-mark { display: inline-block; margin-right: 5px; border: 2px solid #6d512f; width: 20px; line-height: 18px; }
.page-heading-group { margin: 0 0 22px; border-bottom: 1px dotted #aa8db8; padding: 0 8px 14px; }
.page-heading { font-size: 30px; line-height: 1.25; color: var(--ink-purple); text-shadow: 1px 1px #fff; }
.page-heading-group .intro { margin: 8px 0 0; line-height: 1.5; }
body[data-page='home'] .page-heading-group { border: 0; padding-bottom: 0; }
.hero-photo { box-shadow: 3px 4px #b5a89455; border-color: #ad9d8d; }
.hero-photo::before { background: repeating-linear-gradient(90deg, #e9dcaeb3 0 8px, #e9dcae99 8px 16px); box-shadow: 0 1px #c7b78f44; }
.hero-photo figcaption { padding: 3px 0 2px; }
.note { position: relative; background: #fff2b8; border: 1px solid #d4b973; border-left: 4px double #bd9e53; box-shadow: 2px 3px #bd9e5326; padding: 15px; }
.note::after { content: ''; width: 14px; height: 14px; position: absolute; right: -1px; bottom: -1px; background: linear-gradient(135deg, #e5c883 0 49%, #fffef2 51%); }
.note h3 { font-family: 'Comic Sans MS', 'Chalkboard SE', cursive; font-size: 18px; }
.note p { line-height: 1.6; }
.mini-links img { border: 5px ridge #beaccf; padding: 2px; background: #fff; }
.mini-links a:nth-child(2) { transform: rotate(1deg); }
.mini-links a:nth-child(3) { transform: rotate(-1deg); }
.stamp { padding: 11px; letter-spacing: 1px; color: #91466d; background: #fff9ed; }
.facts { border: 3px double #a78cb6; }
.facts th { font: bold 14px Tahoma, sans-serif; color: #684379; background: #e9ddef; }
.facts td { background: #fffaf0; }
.facts tr:nth-child(even) td { background: #f4efd9; }
.filters { padding: 8px; border: 1px solid #c9b5d7; background: var(--gingham), #f5ebfa; gap: 8px; }
.filters button { background: #fffbed; border-color: #c5b2d1; }
.filters button.active { background: #6e518c; color: #fff; border-color: #9b80b1; }
.photo-count { margin: 0 0 16px; font-family: 'Courier New', monospace; font-size: 14px; color: #6b527d; }
.gallery { background: #f2e8ee; border: 3px double #c5a9c2; padding: 20px 14px; gap: 24px 16px; }
.photo-card { position: relative; padding: 7px 7px 0; border: 1px solid #b7a4b2; background: #fffef8; box-shadow: 2px 3px #a58a9c44; }
.photo-card::before { content: ''; position: absolute; top: -7px; left: calc(50% - 22px); width: 44px; height: 14px; background: #e1cf9eaa; transform: rotate(-4deg); pointer-events: none; }
.photo-card:nth-child(4n + 1) { transform: rotate(-.65deg); }
.photo-card img { border: 1px solid #d0c2c5; }
.photo-card figcaption { min-height: 58px; display: flex; align-items: center; justify-content: center; font: 14px/1.45 'Comic Sans MS', 'Chalkboard SE', cursive; color: #543e5a; padding: 10px 3px; }
body[data-page='couch'] .gallery { background: #e9eee1; border-color: #aeb59b; }
body[data-page='couch'] .stamp { margin-top: 24px; }
.entry { position: relative; padding: 18px 22px 20px 34px; background: linear-gradient(90deg, transparent 23px, #dbadc17a 23px 24px, transparent 24px), repeating-linear-gradient(#fffdf2 0 29px, #c9c2d54a 29px 30px); border: 1px solid #bfaecb; box-shadow: 3px 4px #c1b4c538; }
.entry::before { content: ''; position: absolute; top: 21px; left: 8px; width: 6px; height: 6px; border: 1px solid #c5b9cd; border-radius: 50%; background: #e9e2e9; box-shadow: 0 60px #e9e2e9, 0 120px #e9e2e9; }
.entry small { color: #765b80; font-family: 'Courier New', monospace; font-size: 13px; }
.entry h3 { color: #8d3e68; font-size: 23px; line-height: 1.3; margin: 10px 0; }
.diary-photo { height: auto; max-height: 420px; width: min(100%, 400px); object-fit: cover; margin: 18px auto 4px; transform: rotate(-1deg); }
.favorite { padding: 16px; border: 1px solid #c9b5c9; background: #fffaf0; box-shadow: 2px 3px #cabccc55; align-items: center; }
.favorite:nth-of-type(even) { background: #f2f6e8; }
.favorite img { border: 4px solid #fff; outline: 1px solid #b9a9bb; box-shadow: 2px 3px #bba6be66; transform: rotate(-2deg); }
.favorite:nth-of-type(even) img { transform: rotate(2deg); }
.favorite h3 { font: 22px 'Comic Sans MS', 'Chalkboard SE', cursive; color: #734d85; }
.favorite p { line-height: 1.6; }
.guest-form { border: 3px double #b49ac2; background: #efe5f5; padding: 16px; }
.guest-form label:first-child { margin-top: 0; }
.guest-form label { font-weight: bold; color: #69477a; }
.guest-form input, .guest-form textarea { border: 2px inset #c8b4d5; background: #fffdf5; }
#guest-status:empty { display: none; }
#guest-status { font-size: 15px; margin-bottom: 0; }
.guest-entry { border: 1px solid #c2a9ca; border-left: 5px double #b495bd; background: #fffaf1; padding: 16px; }
.guest-entry strong { color: #754781; font-family: 'Comic Sans MS', cursive; font-size: 18px; }
.guest-entry p { margin: 8px 0; }
.guest-empty { padding: 20px; text-align: center; font-style: italic; border-block: 1px dotted #b79ac3; color: #775784; }
.page-onward { margin: 28px 0 0; padding: 14px 8px 0; border-top: 1px dotted #aa8db8; text-align: center; font-size: 15px; }
.page-onward a { display: inline-block; padding: 10px 6px; }
.game-frame { position: relative; border: 5px ridge #af94c0; padding: 10px; background: var(--gingham), #eee2fa; box-shadow: 3px 4px #b5a0c161; }
.game-scoreboard { font-weight: bold; color: #654073; }
.game-scoreboard b { background: #433348; color: #f3e3a2; border: 2px inset #987b9e; padding: 0 5px; min-width: 3ch; text-align: right; }
.game-controls button { border-width: 3px; }
.game-promo { border: 3px double #829969; background: linear-gradient(90deg, #e7efcf, #f5f8e9); box-shadow: 2px 3px #a5b58a44; }
.game-promo strong { color: #61417c; }
.install-promo { border: 3px double #b49ac2; background: #f2e6f4; }
.install-promo img { box-shadow: 2px 3px #ad96bd44; }
.viewer-toolbar { background: #ded0eb; border: 1px solid #b39bc2; padding: 5px 8px; }
#viewer-position { color: #583d6a; }
#photo-caption { font-family: 'Comic Sans MS', 'Chalkboard SE', cursive; }
footer { margin-top: 14px; padding-top: 20px; border-top: 8px solid #d4bedf; background: var(--gingham), #f7eff7; }
.footer-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.footer-badges span { display: block; padding: 4px 8px; min-width: 100px; border: 3px ridge #bda6c9; background: #6f548c; color: white; font: 10px/1.3 Verdana, sans-serif; }
.footer-badges span:nth-child(2) { background: #f7e6a5; color: #654b25; }
.footer-badges span:nth-child(3) { background: #e7edcb; color: #4b6337; }
.counter { background: repeating-linear-gradient(90deg, #2b2531 0 12px, #43364c 12px 13px); padding: 4px 6px; }
@media (max-width: 900px) { .header-pup { display: none; } }
@media (max-width: 700px) {
 .site { border-width: 3px; }
 header { padding-bottom: 18px; }
 .header-pup { display: none; }
 .stars { font-size: 17px; }
 .navigation { background: #efe3f5; border-bottom: 3px ridge #c3a9cf; }
 .mobile-navigation a { border: 1px solid #c9b5d6; background: #faf6ff; box-shadow: inset 1px 1px white; }
 .mobile-navigation a[aria-current='page'] { background: #dac7e8; border-style: inset; }
 .navigation.menu-open nav { padding: 10px 3px 3px; gap: 7px; }
 #site-menu a { margin: 0; min-height: 48px; font-size: 15px; padding: 8px; }
 .page-heading-group { padding: 0 2px 12px; margin-bottom: 22px; }
 .page-heading { font-size: clamp(26px, 7vw, 31px); }
 .page-heading-group .intro { font-size: 16px; }
 .note { padding: 15px; }
 .note h3 { font-size: 20px; }
 .box h2 { font-size: 19px; }
 .snack-pup { width: 82px; height: 65px; }
 .news > a { min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
 .gallery { padding: 18px 9px; gap: 23px 12px; }
 .photo-card { padding: 5px 5px 0; }
 .photo-card figcaption { font-size: 14px; min-height: 64px; }
 .entry { padding: 16px 14px 18px 28px; line-height: 30px; background: linear-gradient(90deg, transparent 19px, #dbadc17a 19px 20px, transparent 20px), repeating-linear-gradient(#fffdf2 0 29px, #c9c2d52e 29px 30px); }
 .entry::before { left: 6px; width: 5px; height: 5px; }
 .entry small { font-size: 14px; line-height: 1.5; display: block; }
 .diary-photo { max-height: 340px; }
 .favorite { padding: 13px; gap: 14px; align-items: flex-start; }
 .favorite h3 { font-size: 22px; }
 .favorite img { flex-basis: 88px; width: 88px; height: 115px; }
 .favorite p { font-size: 16px; }
 .guest-form { padding: 14px; }
 .game-frame { padding: 5px; border-width: 4px; }
 .game-scoreboard { font-size: 13px; }
 .game-scoreboard b { font-size: 18px; }
 .page-onward { font-size: 16px; }
 footer { padding-top: 20px; }
 .footer-badges { gap: 6px; }
 .footer-badges span { min-width: 88px; padding: 4px 5px; font-size: 9px; }
 .viewer-toolbar { padding: 4px 6px; }
}
@media (max-width: 380px) {
 .photo-card figcaption { font-size: 16px; min-height: 52px; }
 .favorite { flex-direction: column; }
 .favorite img { width: 100%; height: 200px; flex-basis: auto; }
 .game-scoreboard { gap: 6px; font-size: 12px; }
}
