/* sholpan's site: styles. colours and fonts live in :root at the top. */
:root {
    color-scheme: light only;
    --sky: #c5dcf7; --sky-top: #c5dcf7; --sky-deep: #c5dcf7;
    --glass: transparent; --glass-edge: rgba(255, 255, 255, 0.7);
    --gloss: rgba(255, 255, 255, 0.85);
    --ink: #5a5f66; --ink-soft: #858a92; --link: #1f5ea8;
    --chrome-a: #cfe7fb; --chrome-b: #5f9fdb; --chrome-c: #2a63a8;
    --pink: #ffb3c6; --butter: #fff0b3; --sage: #cfe8d2;     --shadow: rgba(30, 80, 130, 0.25);
    --mono: "PT Mono", "SF Mono", Menlo, monospace;
    --pixel: "Silkscreen", "PT Mono", monospace;
    --hand: "Caveat", "Comic Sans MS", cursive;
  }

  body {
    margin: 0; color: var(--ink); font-family: var(--mono); font-size: 13px; line-height: 1.55;
    background: var(--sky);
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M6 26 L22 10' stroke='%232a63a8' stroke-width='3' stroke-linecap='round'/><path d='M24 8 l1.5 -4 l1.5 4 l4 1.5 l-4 1.5 l-1.5 4 l-1.5 -4 l-4 -1.5z' fill='%23ffd6e6' stroke='%232a63a8' stroke-width='1'/><circle cx='12' cy='6' r='1.3' fill='%232a63a8'/><circle cx='29' cy='18' r='1.3' fill='%232a63a8'/></svg>") 4 28, auto;
    overflow-x: hidden;
  }
  a { color: var(--link); }

  /* sparkles */
  .spark { position: fixed; pointer-events: none; z-index: 50; font-size: 14px; line-height: 1; animation: sparkle 0.9s ease-out forwards; will-change: transform, opacity; }
  @keyframes sparkle { 0% { transform: translate(-50%,-50%) scale(0.4) rotate(0); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(60deg); opacity: 0; } }
  body.still .spark { display: none; }

  .wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding-block: 18px 40px; padding-inline: 16px; }

  /* transparent boxes */
  .box { position: relative; background: transparent; border: 1px solid var(--glass-edge); border-radius: 14px; margin-bottom: 14px; }
  .box:last-child { margin-bottom: 0; }
  .box h2 { position: relative; margin: 0; padding: 9px 14px 4px; font-family: var(--pixel); font-weight: normal; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--chrome-c); }
  .box h2::after { content: ""; display: block; height: 1px; margin-top: 4px; background: rgba(255,255,255,0.7); }
  .box .in { position: relative; padding: 10px 14px 14px; }
  .box p { margin: 0 0 8px; } .box p:last-child { margin: 0; }
  .x { display: none; }

  .banner .squig { display: block; margin: 8px auto 0; width: 220px; max-width: 100%; }

  .banner { text-align: center; padding: 18px 14px; margin-bottom: 14px; }
  .banner h1 { margin: 0; font-family: var(--pixel); font-weight: normal; font-size: 24px; letter-spacing: 1px; text-transform: uppercase; color: var(--chrome-c); line-height: 1.3; text-wrap: balance; }
  .cols { display: grid; grid-template-columns: 210px 1fr 210px; gap: 14px; }
  @media (max-width: 840px) { .cols { grid-template-columns: 1fr; } }

  /* left */
  .cloud-stage { display: flex; justify-content: center; padding: 18px 0 8px; }
  .mascot-kao { font-size: 21px; white-space: nowrap; color: var(--chrome-c); font-family: var(--mono); letter-spacing: 1px; }
  .status dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
  .status dt { color: var(--ink-soft); } .status dd { margin: 0; }

  /* plain menu */
  .menu ul { position: relative; list-style: none; margin: 0; padding: 6px 4px; display: grid; gap: 2px; }
  .menu a { display: block; padding: 6px 12px; text-decoration: none; color: var(--ink); font-size: 14px; border-radius: 8px; }
  .menu a:hover { background: rgba(255,255,255,0.35); color: var(--chrome-c); }
  .menu a.on { color: var(--chrome-c); background: rgba(255,255,255,0.5); }

  /* centre */
  .room { display: none; } .room.on { display: block; }
  .welcome .big { font-size: 16px; }
  .kao { color: var(--ink-soft); }
  .divider { text-align: center; margin: 10px 0 8px; }
  .divider svg { width: 200px; max-width: 100%; height: 14px; }
  .log article { border-left: 3px solid var(--chrome-b); padding: 2px 0 2px 10px; margin-bottom: 10px; }
  .box.bare { border: 0; }
  .box.bare h2::after { display: none; }
  .log.bare article { border-left: 0; padding-left: 0; margin-bottom: 18px; }
  .log.fog article { filter: blur(2.5px); opacity: 0.7; transition: filter 0.5s ease, opacity 0.5s ease; cursor: default; }
  .log.fog article:hover, .log.fog article:focus-within { filter: none; opacity: 1; }
  @media (prefers-reduced-motion: reduce) { .log.fog article { transition: none; } }
  .log time { display: block; font-size: 11px; color: var(--ink-soft); }
  .pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .pics div { aspect-ratio: 1; max-width: 100%; border-radius: 10px; background: var(--sky); box-shadow: inset 0 1px 0 #fff, 0 4px 10px -4px var(--shadow); border: 1px solid #fff; box-sizing: border-box; }
  .pics div.pol { border-radius: 2px; background: #fff; padding: 5px 5px 16px; transform: rotate(-2.5deg); }
  .pics div.pol span { display: block; width: 100%; height: 100%; background: var(--pink); }
  @media (max-width: 480px) { .pics { grid-template-columns: repeat(3, 1fr); } }
  .som-title { }
  .songs li { margin-bottom: 4px; } .songs small { color: var(--ink-soft); }
  .sugg { display: grid; gap: 6px; } .sugg div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; } .sugg span:first-child { color: var(--ink-soft); }
  .gb-list p { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.7); border-radius: 12px; padding: 6px 10px; }
  .gb-list .who { display: block; font-size: 11px; color: var(--ink-soft); }
  .gb-del { float: right; border: 0; background: none; color: var(--ink-soft); font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; font-family: var(--mono); }
  .gb-del:hover { color: var(--ink); }
  .gb-form { display: grid; gap: 6px; margin-top: 8px; }
  .gb-form input, .gb-form textarea, .gb-form button { font-family: var(--mono); font-size: 12px; padding: 7px 10px; border: 1px solid var(--chrome-b); border-radius: 10px; background: rgba(255,255,255,0.85); color: var(--ink); }
  .gb-form textarea { min-height: 50px; resize: vertical; }
  .gb-form .gb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .gb-say { margin: 0; font-size: 11px; color: var(--ink-soft); min-height: 1em; }
  .gb-form button:disabled { opacity: 0.6; cursor: default; }
  .gb-form button { cursor: pointer; background: linear-gradient(#fff, #d8ecfb); font-family: var(--pixel); font-size: 11px; letter-spacing: 0.5px; color: var(--chrome-c); }
  .gb-form button:hover { background: linear-gradient(#fff, var(--pink)); }

  /* right */
  .links ul { list-style: none; margin: 0; padding: 0; } .links li { margin-bottom: 4px; } .links a::before { content: "○ "; color: var(--chrome-b); }
  .buttons { display: grid; grid-template-columns: repeat(2, 88px); gap: 6px; justify-content: center; }
  .btn88 { width: 88px; height: 31px; box-sizing: border-box; border: 1px solid var(--chrome-b); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; line-height: 1; text-align: center; color: var(--ink); background: linear-gradient(#fff, #d8ecfb); }
  a.btn88 { text-decoration: none; cursor: pointer; } a.btn88:hover { transform: translateY(-1px); box-shadow: 0 2px 4px -2px var(--shadow); }
  .btn88.p { background: linear-gradient(#fff, var(--pink)); } .btn88.y { background: linear-gradient(#fff, var(--butter)); } .btn88.g { background: linear-gradient(#fff, var(--sage)); }
  .icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .icons div, .icons img { aspect-ratio: 1; width: 100%; max-width: 100%; box-sizing: border-box; border-radius: 6px; border: 1px solid rgba(255,255,255,0.8); background: rgba(255,255,255,0.35); object-fit: contain; display: block; padding: 3px; image-rendering: pixelated; }
  .foot { text-align: center; font-size: 12px; color: var(--chrome-c); margin: 24px 16px 40px; letter-spacing: 0.5px; }
  .twinkly { overflow: hidden; }
  .twinkly .tw { position: absolute; pointer-events: none; font-size: 18px; line-height: 1; color: var(--pink); opacity: 0.8; text-shadow: 0 0 6px rgba(255,255,255,0.9); animation: twinkle 2.6s ease-in-out infinite; }
  .twinkly .tw:nth-of-type(5n+2) { color: var(--chrome-b); font-size: 15px; }
  .twinkly .tw:nth-of-type(5n+3) { color: #ffd98a; }
  .twinkly .tw:nth-of-type(5n+4) { color: #fff; font-size: 22px; }
  .twinkly .tw:nth-of-type(5n) { color: #c9b6ff; font-size: 16px; }
  .twinkly .tw:nth-of-type(7n) { color: #a8e0b8; font-size: 14px; }
  @keyframes twinkle { 0%, 100% { opacity: 0.45; transform: scale(0.85) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(25deg); } }
  @media (prefers-reduced-motion: reduce) { .twinkly .tw { animation: none; opacity: 0.6; } }
  .gb-empty { color: var(--ink-soft); font-size: 12px; margin: 0 0 8px; }
  .log-sep { display: flex; justify-content: center; gap: 14px; margin: -4px 0 14px; font-size: 17px; line-height: 1; text-shadow: 0 0 6px rgba(255,255,255,0.9); }
  .log-sep span { color: var(--pink); animation: twinkle 2.6s ease-in-out infinite; }
  .log-sep span:nth-child(2n) { color: var(--chrome-b); }
  .log-sep span:nth-child(3) { color: #ffd98a; }
  .rec-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; align-items: start; }
  .rec-item .kao { white-space: nowrap; }
  .rec-grid .box { margin-bottom: 0; }
  .rec-list { margin: 0 0 6px; padding-left: 18px; } .rec-list:empty { display: none; }
  @media (max-width: 560px) { .rec-grid { grid-template-columns: 1fr; } }
  .log article p { margin: 4px 0 10px; } .log article p:last-child { margin-bottom: 0; }
  .song-list { margin: 0; padding-left: 22px; } .song-list li { margin-bottom: 4px; }
  .rec-item + .rec-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.7); }
  .rec-item p { margin: 0; }
  .rec-name { display: block; margin-bottom: 6px; }
  .rec-meta { display: block; margin: -2px 0 6px; }
  .pics div { overflow: hidden; }
  .pics img, .icons img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
  .pics img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
  .icons a { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.8); }
  .icons a img { padding: 0; border: 0; border-radius: 0; object-fit: cover; height: 100%; image-rendering: auto; }
  :focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
