/* MiniWeb published pages: the page layout and every page theme (Dark, Minimal, Green, Blue, Pink, Chrome, Orange, Sunny, Bold, Kawaii, Pixel Quest, Classic Realm, Shibuya Punk).
   Add a new theme: put its name in THEMES in lib.php and its rules here. The rest of the site is in style.css. */

/* ===== Part 2: published page (the five themes) ===== */
.site { /* default = Minimal */
  --bg: #fbfbfa; --sf: #fff; --tx: #1f1f1f; --mu: #6b6b6b; --bd: #e5e5e3; --ac: #1f1f1f; --lk: #1f1f1f; --hf: Georgia, 'Times New Roman', serif;
  --c-red: #b3261e; --c-orange: #a8550a; --c-green: #26702f; --c-blue: #1f5fae; --c-purple: #6a3fa0; --c-pink: #b02a5e; --c-teal: #14706b; --c-gray: #555;
  background: var(--bg); color: var(--tx); font: 16px/1.6 Verdana, Geneva, sans-serif; padding: 1.2rem; overflow-wrap: anywhere; }
.site[data-theme=dark]  { --bg: #1c1c1f; --sf: #26262b; --tx: #ececf0; --mu: #a0a0aa; --bd: #3a3a42; --ac: #9db4ff; --lk: #9db4ff;
  --c-red: #ff8a80; --c-orange: #ffb066; --c-green: #8fd69a; --c-blue: #8fb8ff; --c-purple: #c4a3ff; --c-pink: #ff9ec2; --c-teal: #6fdad3; --c-gray: #b8b8c0; }
.site[data-theme=green] { --bg: #eef6ec; --sf: #f8fcf6; --tx: #1d3322; --mu: #4f6a54; --bd: #b9d6b4; --ac: #2f7a3e; --lk: #23692f; }
.site[data-theme=blue]  { --bg: #eaf2fb; --sf: #f6faff; --tx: #14263d; --mu: #4a6280; --bd: #b3cdea; --ac: #1f66b5; --lk: #1a5aa0; }
.site[data-theme=pink]  { --bg: #fdeef2; --sf: #fff8fa; --tx: #3d1a27; --mu: #7d4a5c; --bd: #f1bccb; --ac: #c2366b; --lk: #a82659; }
.site[data-font=arial] { --hf: Arial, Helvetica, sans-serif; }
.site[data-font=verdana] { --hf: Verdana, Geneva, sans-serif; }
.site[data-font=trebuchet] { --hf: 'Trebuchet MS', Tahoma, sans-serif; }
.site[data-font=courier] { --hf: 'Courier New', Courier, monospace; }
.site[data-font=comic] { --hf: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', cursive; }
.site[data-font=system] { --hf: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.site a { color: var(--lk); }
.site h1 { font-family: var(--hf); font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.15; margin: 0 0 .3rem; color: var(--ac); }
.site h2.t { font-family: var(--hf); font-size: 1.4rem; margin: .2rem 0; }
.site .desc { color: var(--mu); margin: 0 0 1rem; }
.site .body, .site .fr, .site .status { background: var(--sf); border: 1px solid var(--bd); padding: 1rem; }
.site .fr { margin-top: 1rem; padding: .6rem 1rem; }
.site .fr h2 { font-size: 1.05rem; margin: .1rem 0; }
.site .fr ol { margin: .3rem 0; padding-left: 1.4rem; }
.site .foot { margin-top: 1rem; font-size: .8rem; color: var(--mu); }
.site hr { border: 0; border-top: 2px dotted var(--bd); margin: 1rem 0; }
.site img { display: block; margin: 1rem auto; max-width: 100%; height: auto; }
/* pictures next to each other in the page text: one centered row that wraps on small screens */
.site .imgrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin: 1rem 0; }
.site .imgrow img { margin: 0; }
/* Blog box on a profile: post previews (the list from the Blog page) in the page's own colors */
.site .bposts { background: none; border: 0; border-radius: 0; margin: .3rem 0 .6rem; }
.site .bposts li.bl, .site .bposts li.bl:nth-child(even) { background: none; padding: .8rem 0; border-bottom: 1px dashed var(--bd); }
.site .bposts li.bl:last-child { border-bottom: 0; }
.site .bposts small { color: var(--mu); }
.site .bposts .th img { margin: 0; }
.c-red { color: var(--c-red); }
.c-orange { color: var(--c-orange); }
.c-green { color: var(--c-green); }
.c-blue { color: var(--c-blue); }
.c-purple { color: var(--c-purple); }
.c-pink { color: var(--c-pink); }
.c-teal { color: var(--c-teal); }
.c-gray { color: var(--c-gray); }
.ctr { font-family: 'Courier New', monospace; }
.ctr.retro { display: inline-block; background: #111; padding: .2rem .35rem; border: 2px inset #777; }
.ctr.retro i { display: inline-block; min-width: 1.15em; margin: 0 1px; text-align: center; font: 700 1.3rem 'Courier New', monospace; background: #1b2a1b; color: #5dff6b; border: 1px solid #2f4a2f; }
/* ===== Part 3: extra themes (add each name to THEMES in lib.php) ===== */
.site[data-theme=orange] { --bg: #fff1e0; --sf: #fffaf3; --tx: #3a1d00; --mu: #7a4a1c; --bd: #ffb870; --ac: #b04600; --lk: #a84300; }
.site[data-theme=orange] header { border-bottom: 4px solid #ff7a00; margin-bottom: 1rem; }
.site[data-theme=sunny] { --bg: #fff3b8; --sf: #fffdf0; --tx: #173a24; --mu: #4f5f3f; --bd: #e3cf62; --ac: #0b6b3a; --lk: #0b6b3a; }
.site[data-theme=sunny] .body, .site[data-theme=sunny] .fr, .site[data-theme=sunny] .status { border-left: 6px solid #0b6b3a; }
/* profile pages: the theme background spans the full width and fills down to the footer; the content stays 800px wide */
.site-full { flex: 1 0 auto; padding: 1.5rem max(1rem, calc((100% - 800px) / 2 + 1rem)); }
/* ---------- status ---------- */
.site .status { margin: 0 0 1rem; padding: .6rem 1rem; }
.site .status small { color: var(--mu); }
/* ASCII art: [ascii]...[/ascii] */
.site pre.ascii { font-family: "Courier New", Courier, monospace; font-size: .85rem; line-height: 1.15; white-space: pre; overflow-x: auto; margin: 1rem 0; }
/* ---------- avatars ---------- */
.site img.pfp { display: block; margin: 0; width: 100px; height: 100px; image-rendering: pixelated; border: 1px solid var(--bd); background: var(--sf); }
.site header.has-pfp { display: grid; grid-template-columns: 100px 1fr; column-gap: 1rem; align-items: center; }
.site header.has-pfp .pfp { grid-row: 1 / span 2; }
.site header.has-pfp h1, .site header.has-pfp .desc { grid-column: 2; margin-top: 0; margin-bottom: .2rem; }
@media (max-width: 520px) { .site img.pfp { width: 50px; height: 50px; } .site header.has-pfp { grid-template-columns: 50px 1fr; } }
.site header.has-pfp { margin-bottom: 1rem; }
/* guestbook */
.site .gb h2{margin-bottom:.4rem}
.site .gbe{padding:.4rem 0;border-top:1px dashed var(--bd)}
.site .gbe p{margin:.1rem 0;overflow-wrap:anywhere}
.site .gb>p:last-child{margin:.6rem 0 .2rem}
/* webrings */
.site .zonebox h2{margin-bottom:.4rem}
.site .zonebox p{margin:.35rem 0}
/* Chrome theme: brushed-metal bars, white panels with soft shadows. Old keys (sky, oldschool) look the same until setup.php moves them. */
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) {
  --bg: #f0f0f0; --sf: #fff; --tx: #333; --mu: #777; --bd: #d3d3d3; --ac: #2b2b2b; --lk: #1d6fc0;
  background: linear-gradient(#fff, #ebebeb 70%); font: 15px/1.5 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, sans-serif; }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) a { text-decoration: none; }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) a:hover { text-decoration: underline; }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) header { background: linear-gradient(#f9f9f9, #cfcfcf); border: 1px solid #8f8f8f; border-radius: 8px; box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(0,0,0,.25); padding: .9rem 1.1rem; margin-bottom: 1.1rem; }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) h1 { text-shadow: 0 1px 0 #fff; margin: 0; }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) header .desc { color: #555; margin: .2rem 0 0; text-shadow: 0 1px 0 #fff; }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) :is(.body, .fr, .status) { background: linear-gradient(#fff, #f6f6f6); border: 1px solid #cfcfcf; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) .fr { overflow: hidden; }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) .fr h2 { background: linear-gradient(#fdfdfd, #dedede); border-bottom: 1px solid #c4c4c4; margin: -.6rem -1rem .6rem; padding: .45rem 1rem; font-size: .95rem; color: #333; text-shadow: 0 1px 0 #fff; }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) .gbe { border-top: 1px solid #e3e3e3; }
.site:is([data-theme=chrome],[data-theme=oldschool],[data-theme=sky]) hr { border: 0; border-top: 1px solid #cfcfcf; border-bottom: 1px solid #fff; }
/* Bold theme: Japanese variety-TV look in pixel style. Peach checkerboard, salmon header, cream boxes with stepped (pixel) navy borders. */
.site[data-theme=bold] { --bg: #ffe0cf; --sf: #fff; --tx: #141852; --mu: #c81e10; --bd: #1a1f6b; --ac: #fff; --lk: #c81e10;
  --hf: 'Arial Black', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --jp: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; --mono: 'Courier New', Courier, monospace;
  --px: 0 -4px 0 0 #1a1f6b, 0 4px 0 0 #1a1f6b, -4px 0 0 0 #1a1f6b, 4px 0 0 0 #1a1f6b, 6px 2px 0 0 #7d82c8, 6px 10px 0 0 #7d82c8, 2px 6px 0 0 #7d82c8, 10px 6px 0 0 #7d82c8, 6px 6px 0 0 #7d82c8;
  background-color: #ffe0cf; background-image: repeating-conic-gradient(#ffd3bc 0 25%, transparent 0 50%); background-size: 16px 16px;
  font: 16px/1.6 var(--jp), Verdana, sans-serif; }
.site[data-theme=bold] a { color: #c81e10; font-weight: bold; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site[data-theme=bold] header { position: relative; background: none; box-shadow: none; padding: 1.6rem .2rem 0; margin: 1.4rem 10px 2.8rem 4px; }
.site[data-theme=bold] header::after { content: 'ようこそ！'; position: absolute; top: -.4rem; right: .4rem; color: #c81e10; background: #fff; box-shadow: 0 -3px 0 0 #1a1f6b, 0 3px 0 0 #1a1f6b, -3px 0 0 0 #1a1f6b, 3px 0 0 0 #1a1f6b; padding: .05rem .6rem; font: 900 1rem/1.4 var(--jp); }
.site[data-theme=bold] h1 { color: #fff; text-transform: uppercase; font-weight: 900; font-size: clamp(1.5rem, 5.5vw, 2.4rem); letter-spacing: .06em; word-spacing: .2em; line-height: 1.15; margin: 0 0 .6rem; text-shadow: 2px 0 0 #1a1f6b, -2px 0 0 #1a1f6b, 0 2px 0 #1a1f6b, 0 -2px 0 #1a1f6b, 2px 2px 0 #1a1f6b, -2px -2px 0 #1a1f6b, 2px -2px 0 #1a1f6b, -2px 2px 0 #1a1f6b, 3px 3px 0 #1a1f6b, 4px 4px 0 #1a1f6b, 5px 5px 0 #1a1f6b, 6px 6px 0 #1a1f6b; }
.site[data-theme=bold] header .desc { background: none; color: #b3180b; font-weight: bold; margin: .8rem 0 0; padding: 0; box-shadow: none; text-shadow: none; }
.site[data-theme=bold] img.pfp { border: 0; box-shadow: none; background: none; margin: 0; }
.site[data-theme=bold] :is(.body, .fr, .status) { background: #fff; border: 0; box-shadow: var(--px); margin-left: 4px; margin-right: 10px; }
.site[data-theme=bold] .status { position: relative; margin-top: 3.2rem; margin-bottom: 1.6rem; padding: 1.2rem 1rem 1rem; background: #fff; font: bold 1rem/1.6 var(--jp), Verdana, sans-serif; }
.site[data-theme=bold] .status > strong:first-child { display: table; background: #1a1f6b; color: #fff; font: 900 .95rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: .25rem .8rem; margin: -1.2rem 0 .15rem -.6rem; transform: translateY(calc(-50% - 2px)); }
.site[data-theme=bold] .status > strong:first-child::after { content: ' / ステータス'; font-family: var(--jp); font-weight: 700; color: #ffe58f; text-transform: none; letter-spacing: 0; }
.site[data-theme=bold] .status .c { display: none; }
.site[data-theme=bold] .status::before { content: 'NEW'; position: absolute; right: .6rem; top: -1.9rem; width: 3rem; height: 3rem; display: grid; place-items: center; background: #a8ecd0; color: #1a1f6b; font: 900 .8rem/1 var(--mono);
  clip-path: polygon(35% 0, 65% 0, 65% 15%, 85% 15%, 85% 35%, 100% 35%, 100% 65%, 85% 65%, 85% 85%, 65% 85%, 65% 100%, 35% 100%, 35% 85%, 15% 85%, 15% 65%, 0 65%, 0 35%, 15% 35%, 15% 15%, 35% 15%); }
@media (prefers-reduced-motion: no-preference) { .site[data-theme=bold] .status::before { animation: px-blink 1.2s steps(1) infinite; } }
@keyframes px-blink { 50% { background: #ffe58f; } }
.site[data-theme=bold] .fr { margin-top: 2.4rem; padding: 1.2rem 1rem 1rem; }
.site[data-theme=bold] .fr h2 { display: table; background: #1a1f6b; color: #fff; font: 900 .95rem/1.3 var(--mono); text-transform: uppercase; padding: .25rem .8rem; margin: -1.2rem 0 .15rem -.6rem; transform: translateY(calc(-50% - 2px)); letter-spacing: .04em; }
.site[data-theme=bold] .fr h2::after { content: ' / ともだち'; font-family: var(--jp); font-weight: 700; color: #ffe58f; text-transform: none; letter-spacing: 0; }
.site[data-theme=bold] .zonebox h2::after { content: ' / ゾーン'; }
.site[data-theme=bold] .gb h2::after { content: ' / ゲストブック'; }
.site[data-theme=bold] .gbe { border-top: 0; background: repeating-linear-gradient(90deg, #1a1f6b 0 4px, transparent 4px 8px) top / 100% 2px no-repeat; padding-top: .6rem; }
.site[data-theme=bold] hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, #1a1f6b 0 8px, transparent 8px 16px); }
.site[data-theme=bold] h2.t { display: table; margin: .2rem 0 .6rem; background: #1a1f6b; color: #fff; padding: .15rem .7rem; text-transform: uppercase; font-family: var(--mono); }
.site[data-theme=bold] .foot { color: #1a1f6b; font: bold .8rem/1.5 var(--mono); }
/* Kawaii theme: the Bold pixel look in pink. Pastel pink checkerboard, white boxes, raspberry borders and links, mint NEW badge. */
.site[data-theme=kawaii] { --bg: #ffd9e8; --sf: #fff; --tx: #4a1230; --mu: #c2185b; --bd: #8e2a63; --ac: #fff; --lk: #c2185b;
  --hf: 'Arial Black', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --jp: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; --mono: 'Courier New', Courier, monospace;
  --px: 0 -4px 0 0 #8e2a63, 0 4px 0 0 #8e2a63, -4px 0 0 0 #8e2a63, 4px 0 0 0 #8e2a63, 6px 2px 0 0 #f4a6c8, 6px 10px 0 0 #f4a6c8, 2px 6px 0 0 #f4a6c8, 10px 6px 0 0 #f4a6c8, 6px 6px 0 0 #f4a6c8;
  background-color: #ffd9e8; background-image: repeating-conic-gradient(#ffc6dc 0 25%, transparent 0 50%); background-size: 16px 16px;
  font: 16px/1.6 var(--jp), Verdana, sans-serif; }
.site[data-theme=kawaii] a { color: #c2185b; font-weight: bold; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site[data-theme=kawaii] header { position: relative; background: none; box-shadow: none; padding: 1.6rem .2rem 0; margin: 1.4rem 10px 2.8rem 4px; }
.site[data-theme=kawaii] header::after { content: 'ようこそ♡'; position: absolute; top: -.4rem; right: .4rem; color: #c2185b; background: #fff; box-shadow: 0 -3px 0 0 #8e2a63, 0 3px 0 0 #8e2a63, -3px 0 0 0 #8e2a63, 3px 0 0 0 #8e2a63; padding: .05rem .6rem; font: 900 1rem/1.4 var(--jp); }
.site[data-theme=kawaii] h1 { color: #fff; text-transform: uppercase; font-weight: 900; font-size: clamp(1.5rem, 5.5vw, 2.4rem); letter-spacing: .06em; word-spacing: .2em; line-height: 1.15; margin: 0 0 .6rem; text-shadow: 2px 0 0 #8e2a63, -2px 0 0 #8e2a63, 0 2px 0 #8e2a63, 0 -2px 0 #8e2a63, 2px 2px 0 #8e2a63, -2px -2px 0 #8e2a63, 2px -2px 0 #8e2a63, -2px 2px 0 #8e2a63, 3px 3px 0 #8e2a63, 4px 4px 0 #8e2a63, 5px 5px 0 #8e2a63, 6px 6px 0 #8e2a63; }
.site[data-theme=kawaii] header .desc { background: none; color: #a3154f; font-weight: bold; margin: .8rem 0 0; padding: 0; box-shadow: none; text-shadow: none; }
.site[data-theme=kawaii] img.pfp { border: 0; box-shadow: none; background: none; margin: 0; }
.site[data-theme=kawaii] :is(.body, .fr, .status) { background: #fff; border: 0; box-shadow: var(--px); margin-left: 4px; margin-right: 10px; }
.site[data-theme=kawaii] .status { position: relative; margin-top: 3.2rem; margin-bottom: 1.6rem; padding: 1.2rem 1rem 1rem; background: #fff; font: bold 1rem/1.6 var(--jp), Verdana, sans-serif; }
.site[data-theme=kawaii] .status > strong:first-child { display: table; background: #8e2a63; color: #fff; font: 900 .95rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: .25rem .8rem; margin: -1.2rem 0 .15rem -.6rem; transform: translateY(calc(-50% - 2px)); }
.site[data-theme=kawaii] .status > strong:first-child::after { content: ' / ステータス 🌸'; font-family: var(--jp); font-weight: 700; color: #ffe58f; text-transform: none; letter-spacing: 0; }
.site[data-theme=kawaii] .status .c { display: none; }
.site[data-theme=kawaii] .status::before { content: 'NEW'; position: absolute; right: .6rem; top: -1.9rem; width: 3rem; height: 3rem; display: grid; place-items: center; background: #a8ecd0; color: #8e2a63; font: 900 .8rem/1 var(--mono);
  clip-path: polygon(35% 0, 65% 0, 65% 15%, 85% 15%, 85% 35%, 100% 35%, 100% 65%, 85% 65%, 85% 85%, 65% 85%, 65% 100%, 35% 100%, 35% 85%, 15% 85%, 15% 65%, 0 65%, 0 35%, 15% 35%, 15% 15%, 35% 15%); }
@media (prefers-reduced-motion: no-preference) { .site[data-theme=kawaii] .status::before { animation: px-blink 1.2s steps(1) infinite; } }
@keyframes px-blink { 50% { background: #ffe58f; } }
.site[data-theme=kawaii] .fr { margin-top: 2.4rem; padding: 1.2rem 1rem 1rem; }
.site[data-theme=kawaii] .fr h2 { display: table; background: #8e2a63; color: #fff; font: 900 .95rem/1.3 var(--mono); text-transform: uppercase; padding: .25rem .8rem; margin: -1.2rem 0 .15rem -.6rem; transform: translateY(calc(-50% - 2px)); letter-spacing: .04em; }
.site[data-theme=kawaii] .fr h2::after { content: ' / ともだち 🫶'; font-family: var(--jp); font-weight: 700; color: #ffe58f; text-transform: none; letter-spacing: 0; }
.site[data-theme=kawaii] .zonebox h2::after { content: ' / ゾーン 🔗'; }
.site[data-theme=kawaii] .gb h2::after { content: ' / ゲストブック ✉️'; }
.site[data-theme=kawaii] .gbe { border-top: 0; background: repeating-linear-gradient(90deg, #8e2a63 0 4px, transparent 4px 8px) top / 100% 2px no-repeat; padding-top: .6rem; }
.site[data-theme=kawaii] hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, #8e2a63 0 8px, transparent 8px 16px); }
.site[data-theme=kawaii] h2.t { display: table; margin: .2rem 0 .6rem; background: #8e2a63; color: #fff; padding: .15rem .7rem; text-transform: uppercase; font-family: var(--mono); }
.site[data-theme=kawaii] .body :is(h1, h2, h3) { color: #fff; text-shadow: none; }
.site[data-theme=kawaii] .foot { color: #8e2a63; font: bold .8rem/1.5 var(--mono); }
@font-face { font-family: 'Press Start 2P'; src: url('/theme/font/PressStart2P-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
/* Pixel Quest theme: blocky retro-game look. Sky and grass at the top, orange checkered earth, dirt-block header, stone-gray inventory-style panels. */
.site[data-theme=pixel] { --bg: #f8e3c5; --sf: #f4f4f4; --tx: #1b1b1b; --mu: #333; --bd: #000; --ac: #fff; --lk: #0a3fc4;
  --mono: 'Courier New', Courier, monospace;
  --pxb: 0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, 6px 2px 0 0 rgba(0,0,0,.35), 6px 10px 0 0 rgba(0,0,0,.35), 2px 6px 0 0 rgba(0,0,0,.35), 10px 6px 0 0 rgba(0,0,0,.35), 6px 6px 0 0 rgba(0,0,0,.35);
  --px: var(--pxb), inset 4px 4px 0 0 #fff, inset -4px -4px 0 0 #c9c9c9;
  background-color: #f8e3c5;
  background-image: linear-gradient(#cde8f7 0 128px, #a9dc8f 128px 140px, #8cc271 140px 148px, transparent 148px), repeating-conic-gradient(#f2cfa4 0 25%, #f8e3c5 0 50%);
  background-size: 100% 148px, 56px 56px; background-repeat: no-repeat, repeat;
  font: 16px/1.6 Verdana, Geneva, sans-serif; }
.site[data-theme=pixel] a { color: #0a3fc4; font-weight: bold; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site[data-theme=pixel] header { position: relative; margin: 2.6rem 10px 2.4rem 4px; padding: 2.6rem 1.6rem 1.5rem; box-shadow: var(--pxb);
  background: linear-gradient(#a9dc8f 0 14px, #8cc271 14px 22px, transparent 22px), repeating-conic-gradient(#8a6040 0 25%, #7f5738 0 50%) 0 0 / 16px 16px; }
.site[data-theme=pixel] header::after { content: 'PRESS START'; position: absolute; top: -1.5rem; right: .8rem; background: #000; color: #ffff55; padding: .25rem .8rem; font: 400 .83rem/1.8 'Press Start 2P', var(--mono); letter-spacing: .04em; }
.site[data-theme=pixel] h1 { color: #fff; text-transform: uppercase; font: 700 clamp(.8rem, 2.72vw, 1.2rem)/1.6 'Press Start 2P', var(--mono); letter-spacing: 0; margin: 0; text-shadow: none; }
.site[data-theme=pixel] header .desc { color: #fff2a0; font: 400 clamp(.65rem, 1.82vw, .91rem)/1.9 'Press Start 2P', var(--mono); margin: .8rem 0 0; padding: 0; text-shadow: none; background: none; }
.site[data-theme=pixel] img.pfp { border: 0; background: #000; padding: 3px; margin: 0; image-rendering: pixelated; }
.site[data-theme=pixel] :is(.body, .fr, .status) { background: #f4f4f4; border: 0; box-shadow: var(--px); margin-left: 4px; margin-right: 10px; padding: 1.2rem 1.2rem 1.1rem; }
.site[data-theme=pixel] .status { position: relative; margin-top: 3.2rem; margin-bottom: 1.6rem; font-weight: bold; }
.site[data-theme=pixel] .status::before { content: 'NEW'; position: absolute; right: .8rem; top: -2rem; width: 3rem; height: 3rem; display: grid; place-items: center; background: #ffe680; color: #1b1b1b; font: 900 .8rem/1 var(--mono);
  clip-path: polygon(35% 0, 65% 0, 65% 15%, 85% 15%, 85% 35%, 100% 35%, 100% 65%, 85% 65%, 85% 85%, 65% 85%, 65% 100%, 35% 100%, 35% 85%, 15% 85%, 15% 65%, 0 65%, 0 35%, 15% 35%, 15% 15%, 35% 15%); }
@media (prefers-reduced-motion: no-preference) { .site[data-theme=pixel] .status::before { animation: px-blink-y 1.2s steps(1) infinite; } .site[data-theme=pixel] header::after { animation: px-blink-s 1.4s steps(1) infinite; } }
@keyframes px-blink-y { 50% { background: #fff; } }
@keyframes px-blink-s { 60% { color: #000; } }
.site[data-theme=pixel] .fr { margin-top: 2.4rem; }
.site[data-theme=pixel] :is(.fr h2, .status > strong:first-child) { display: table; background: #3b3b3b; color: #fff; font: 900 .95rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: .25rem .8rem; margin: -1.9rem 0 .6rem -.6rem; box-shadow: 0 -3px 0 0 #000, 0 3px 0 0 #000, -3px 0 0 0 #000, 3px 0 0 0 #000; text-shadow: 2px 2px 0 #000; }
.site[data-theme=pixel] :is(.fr h2, .status > strong:first-child)::after { color: #55ff55; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.site[data-theme=pixel] .status > strong:first-child::after { content: ' / CHAT'; }
.site[data-theme=pixel] .fr h2::after { content: ' / PLAYER 2'; }
.site[data-theme=pixel] .zonebox h2::after { content: ' / PORTALS'; }
.site[data-theme=pixel] .gb h2::after { content: ' / SIGNS'; }
.site[data-theme=pixel] .status .c { display: none; }
.site[data-theme=pixel] h2.t { display: table; margin: .2rem 0 .6rem; background: #3b3b3b; color: #fff; padding: .15rem .7rem; text-transform: uppercase; font-family: var(--mono); text-shadow: 2px 2px 0 #000; }
.site[data-theme=pixel] .gbe { border-top: 0; background: repeating-linear-gradient(90deg, #555 0 4px, transparent 4px 8px) top / 100% 2px no-repeat; padding-top: .6rem; }
.site[data-theme=pixel] hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, #555 0 8px, transparent 8px 16px); }
.site[data-theme=pixel] .foot { color: #4a3320; font: bold .8rem/1.5 var(--mono); text-shadow: none; }
.site[data-theme=pixel] .foot a { color: #4a3320; }
/* Classic Realm theme: an old Warcraft menu. Riveted dark iron plates hanging on chains, deep blue buttons with pale gold text, spiked arrows, a dark pixel forest behind. */
.site[data-theme=realm] { --bg: #102012; --sf: #1b1b20; --tx: #ece5cc; --mu: #f2e3a0; --bd: #4c4c54; --ac: #f2c744; --lk: #f7d95a;
  --ser: 'Friz Quadrata TT', 'Friz Quadrata', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  background-color: #102012; background-image: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), url('/theme/img/realm-forest.png'); background-size: 100% 100%, 100% auto; background-position: 0 0, center top; background-repeat: no-repeat;   /* first layer = extra darkness, change .4 to taste */ image-rendering: pixelated;
  overflow-x: clip;
  display: flow-root; font: 16px/1.5 var(--ser); color: var(--tx); }
html:has(.site[data-theme=realm]) { overflow-x: hidden; }
/* the page never scrolls sideways */
.site-full[data-theme=realm] { padding-top: 0; }
/* the chains start right under the menu */
.site[data-theme=realm] a { color: #f7d95a; font-weight: bold; text-decoration: underline; text-decoration-color: rgba(247,217,90,.4); text-underline-offset: 3px; }
.site[data-theme=realm] a:hover { color: #fff; text-decoration-color: currentColor; }
/* iron plates with rivets */
.site[data-theme=realm] :is(header, .body, .fr, .status) { position: relative; margin: 0 14px; padding: 1.2rem 1.5rem 1.3rem; background: linear-gradient(rgba(48,48,56,.88), rgba(20,20,25,.9)); border: 12px solid transparent; border-image: url('/theme/img/realm-frame.png') 12 round; border-radius: 0; background-clip: padding-box; box-shadow: inset 0 0 0 2px #0b0b0e, 6px 6px 0 rgba(0,0,0,.5); }
.site[data-theme=realm] header { text-align: center; }
.site[data-theme=realm][data-font] header { margin-top: 3.6rem; margin-bottom: 1.6rem; }
/* room above for the chains */
.site[data-theme=realm] header.has-pfp { text-align: left; }
.site[data-theme=realm] header::before { content: ''; position: absolute; left: 0; right: 0; top: calc(-3.6rem - 12px); height: calc(3.6rem + 6px); pointer-events: none;
  background: repeating-linear-gradient(#b4b6be 0 4px, #14151a 4px 6px, #6c6e78 6px 11px, #0a0b0e 11px 13px) 17% 0 / 9px 100% no-repeat, repeating-linear-gradient(#b4b6be 0 4px, #14151a 4px 6px, #6c6e78 6px 11px, #0a0b0e 11px 13px) 83% 0 / 9px 100% no-repeat; }
.site[data-theme=realm] h1 { margin: 0 0 .4rem; font: 900 clamp(1.5rem, 5vw, 2.3rem)/1.1 var(--ser); text-transform: uppercase; letter-spacing: .05em; color: #f7c93a;
  text-shadow: -2px -2px 0 #14245a, 2px -2px 0 #14245a, -2px 2px 0 #14245a, 2px 2px 0 #14245a, 0 3px 4px rgba(0,0,0,.8); }
.site[data-theme=realm] header .desc { color: #f2e3a0; margin: 0; text-shadow: 1px 1px 0 #000; }
.site[data-theme=realm] img.pfp { border: 4px solid; border-color: #c8a44a #3a2a10 #2a1e0a #a08038; border-radius: 3px; background: #000; margin: 0 .9rem .4rem 0; box-shadow: 0 0 0 1px #000; }
.site[data-theme=realm] .status { margin-top: 1.6rem; margin-bottom: 1.4rem; }
.site[data-theme=realm] .fr { margin-top: 1.6rem; }
/* box titles are blue menu buttons with a spiked arrow */
.site[data-theme=realm] :is(.fr h2, .status > strong:first-child) { display: block; position: relative; margin: 0 0 .9rem 2.4rem; padding: .3rem .8rem; text-align: center; color: #f2e3a0; font: 700 .95rem/1.4 var(--ser); text-shadow: 1px 1px 0 #000; background: linear-gradient(#1c1cae 0 50%, #0e0e7c 50% 100%); border: 2px solid; border-color: #b4b6c0 #2a2b32 #1c1d22 #8c8e9a; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(0,0,0,.55); }
.site[data-theme=realm] :is(.fr h2, .status > strong:first-child)::before { content: ''; position: absolute; left: -2.3rem; top: 50%; width: 2rem; height: 1.9rem; transform: translateY(-50%); background: linear-gradient(#b8bac4 0 50%, #62646e 50% 100%); clip-path: polygon(0 50%, 38% 0, 48% 32%, 100% 40%, 100% 60%, 48% 68%, 38% 100%); }
.site[data-theme=realm] .status .c { display: none; }
.site[data-theme=realm] :is(.status small, .fr small) { color: #f2e3a0; opacity: .85; }
.site[data-theme=realm] .fr ol { list-style: none; counter-reset: f; padding: 0; margin: .3rem 0; }
.site[data-theme=realm] .fr li { counter-increment: f; padding: .15rem .6rem; border-radius: 2px; }
.site[data-theme=realm] .fr li::before { content: counter(f) '. '; color: #f2c744; font-weight: 700; }
.site[data-theme=realm] .fr li:hover { background: rgba(30,30,170,.5); }
.site[data-theme=realm] h2.t { color: #f7c93a; font: 700 1.5rem/1.25 var(--ser); margin: .1rem 0 .7rem; text-shadow: 1px 1px 0 #000, -1px -1px 0 #14245a; }
.site[data-theme=realm] :is(.gb > p:last-child a, .zonebox p a:nth-of-type(n+2)) { display: inline-block; padding: .25rem 1.2rem; margin: .25rem .2rem .15rem 0; color: #f2e3a0; text-decoration: none; font-weight: 700; text-shadow: 1px 1px 0 #000; background: linear-gradient(#1c1cae 0 50%, #0e0e7c 50% 100%); border: 2px solid; border-color: #b4b6c0 #2a2b32 #1c1d22 #8c8e9a; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(0,0,0,.55); }
.site[data-theme=realm] :is(.gb > p:last-child a, .zonebox p a:nth-of-type(n+2)):hover { background: linear-gradient(#3030d4 0 50%, #1a1a9c 50% 100%); color: #fff; }
.site[data-theme=realm] .gbe { border-top: 2px groove #3a3a44; }
.site[data-theme=realm] hr { border: 0; height: 4px; background: linear-gradient(#9ea0aa 0 50%, #25262c 50% 100%); box-shadow: 0 0 0 1px #000; }
.site[data-theme=realm] .foot { color: #e4eaf4; text-shadow: 1px 1px 0 #000; }
.site[data-theme=realm] .foot a { color: #f7d95a; }
.song iframe{display:block;margin:0 auto;border:0;max-width:100%}
.fr-row{display:grid;grid-template-columns:1fr;column-gap:1rem;align-items:stretch}
@media (min-width:700px){.fr-row{grid-template-columns:1fr 1fr}}
.site[data-theme=bold] .song h2::after { content: ' / おんがく'; }
.site[data-theme=kawaii] .song h2::after { content: ' / おんがく 🎵'; }
.site[data-theme=pixel] .song h2::after { content: ' / JUKEBOX'; }
/* Shibuya Punk theme: purple sticker-wall checkerboard, lime-green tilted boxes with yellow shadows, marker-pen titles. */
@font-face { font-family: 'Permanent Marker'; src: url('/theme/font/PermanentMarker-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
/* Apache License 2.0, see theme/font/LICENSE-PermanentMarker.txt */
.site[data-theme=shibuya] { --bg: #dccdf3; --sf: #1d0a38; --tx: #fff; --mu: #ecdd05; --bd: #72b43f; --ac: #1d0a38; --lk: #ecdd05;
  --hf: 'Permanent Marker', 'Marker Felt', 'Comic Sans MS', cursive;
  background-color: #dccdf3; background-image: repeating-conic-gradient(#cdb9ee 0 25%, transparent 0 50%); background-size: 32px 32px;
  color: #fff; font: 16px/1.6 Verdana, Arial, sans-serif; }
.site[data-theme=shibuya] a { color: #ecdd05; font-weight: bold; text-decoration: underline wavy #72b43f; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site[data-theme=shibuya] header { position: relative; background: none; box-shadow: none; padding: 1.6rem .2rem 0; margin: 1.4rem 10px 2.8rem 4px; }
.site[data-theme=shibuya] header::after { content: 'SHIBUYA!'; position: absolute; top: -.6rem; right: .4rem; color: #1d0a38; background: #ecdd05; padding: .05rem .7rem; font: 1.1rem/1.4 var(--hf); transform: rotate(6deg); clip-path: polygon(0 12%, 100% 0, 96% 100%, 4% 88%); }
.site[data-theme=shibuya] h1 { font-family: var(--hf); font-weight: 400; color: #ecdd05; font-size: clamp(1.7rem, 6vw, 2.8rem); line-height: 1.1; margin: 0 0 .6rem; transform: rotate(-2deg); transform-origin: left center; text-shadow: 2px 0 0 #0f5a3e, -2px 0 0 #0f5a3e, 0 2px 0 #0f5a3e, 0 -2px 0 #0f5a3e, 2px 2px 0 #0f5a3e, -2px -2px 0 #0f5a3e, 2px -2px 0 #0f5a3e, -2px 2px 0 #0f5a3e, 4px 4px 0 #0f5a3e; }
.site[data-theme=shibuya] header .desc { background: none; color: #ecdd05; font-weight: bold; margin: .8rem 0 0; padding: 0; box-shadow: none; text-shadow: 2px 2px 0 #1d0a38; }
.site[data-theme=shibuya] img.pfp { border: 6px solid #72b43f; border-radius: 0; box-shadow: 5px 5px 0 #ecdd05; transform: rotate(-3deg); background: #1d0a38; margin: 0 .4rem 0 0; }
.site[data-theme=shibuya] :is(.body, .fr, .status) { background: #fff; color: #1d0a38; border: 22px solid transparent; border-image: url('/theme/img/shibuya-a.png') 36 / 22px stretch; border-radius: 0; box-shadow: none; background-clip: padding-box; margin-left: 8px; margin-right: 16px; }
.site[data-theme=shibuya] .body { transform: rotate(-.5deg); }
.site[data-theme=shibuya] .fr { transform: rotate(.6deg); margin-top: 2.6rem; padding: 1.2rem 1rem 1rem; }
.site[data-theme=shibuya] .status { position: relative; transform: rotate(-.8deg); margin-top: 3.2rem; margin-bottom: 1.8rem; padding: 1.2rem 1rem 1rem; font-weight: bold; }
.site[data-theme=shibuya] .status > strong:first-child, .site[data-theme=shibuya] .fr h2 { display: table; background: #ecdd05; color: #0f5a3e; font: 1.15rem/1.3 var(--hf); text-transform: uppercase; letter-spacing: .03em; padding: .2rem .9rem; margin: -1.2rem 0 .3rem -1rem; transform: rotate(-3deg) translateY(-50%); clip-path: polygon(0 8%, 100% 0, 97% 100%, 3% 92%); }
.site[data-theme=shibuya] .status > strong:first-child::after { content: ' ★'; }
.site[data-theme=shibuya] .fr h2::after { content: ' ♥'; }
.site[data-theme=shibuya] .zonebox h2::after { content: ' ✦'; }
.site[data-theme=shibuya] .gb h2::after { content: ' ✎'; }
.site[data-theme=shibuya] .song h2::after { content: ' ♪'; }
.site[data-theme=shibuya] .status .c { display: none; }
.site[data-theme=shibuya] .status::before { content: 'NEW!'; position: absolute; right: .2rem; top: -2.6rem; width: 4.6rem; height: 4.2rem; display: grid; place-items: center; background: #72b43f; color: #0f5a3e; font: 1rem/1 var(--hf); padding-top: .1rem; transform: rotate(10deg);
  clip-path: polygon(50% 0, 62% 22%, 90% 10%, 78% 38%, 100% 50%, 78% 62%, 90% 90%, 62% 78%, 50% 100%, 38% 78%, 10% 90%, 22% 62%, 0 50%, 22% 38%, 10% 10%, 38% 22%); }
@media (prefers-reduced-motion: no-preference) { .site[data-theme=shibuya] .status::before { animation: sb-pop 1.2s steps(1) infinite; } }
@keyframes sb-pop { 50% { background: #ecdd05; transform: rotate(-8deg); } }
.site[data-theme=shibuya] .gbe { border-top: 3px dashed #72b43f; padding-top: .6rem; }
.site[data-theme=shibuya] hr { border: 0; height: 6px; background: repeating-linear-gradient(115deg, #72b43f 0 12px, #ecdd05 12px 24px); transform: rotate(-.6deg); }
.site[data-theme=shibuya] h2.t { display: table; margin: .2rem 0 .6rem; background: #72b43f; color: #0f5a3e; padding: .15rem .7rem; font: 1.1rem/1.3 var(--hf); transform: rotate(-2deg); }
.site[data-theme=shibuya] .foot { color: #ecdd05; font-weight: bold; }
.site[data-theme=shibuya] :is(.body, .fr, .status, .zonebox, .gb) a { color: #5a1ea0; }
.site[data-theme=shibuya] :is(.body, .fr, .status) small, .site[data-theme=shibuya] .status .c { color: #5a1ea0; }
.site[data-theme=shibuya] :is(.zonebox, .gb, .song, .fr, .body, .status) :is(a, a:link, a:visited) { color: #5a1ea0; }
.site[data-theme=shibuya] :is(.zonebox, .gb, .song) :is(p, small, span, .empty, .none, .c) { color: #1d0a38; }
.site[data-theme=shibuya] :is(.zonebox, .gb) small { color: #5a1ea0; }
.site[data-theme=shibuya] :is(.fr, .zonebox, .gb, .song) { border-image-source: url('/theme/img/shibuya-b.png'); }
.site[data-theme=shibuya] header .desc { color: #0f5a3e; text-shadow: none; }
.site[data-theme=shibuya] .foot, .site[data-theme=shibuya] .foot a { color: #0f5a3e; }
.site[data-theme=shibuya] img.pfp { background: #0f5a3e; }