* { box-sizing: border-box; }

  body {
    margin: 0;
    padding: 0;
    background-color: #ffd9e8;
    background-image:
      radial-gradient(circle, #ffffff 1px, transparent 1.5px),
      radial-gradient(circle, #ffffff 1px, transparent 1.5px);
    background-size: 38px 38px;
    background-position: 0 0, 19px 19px;
    font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive, sans-serif;
    color: #4a2b3a;
    cursor: url('https://u.pone.rs/mdlpxfry.png') 8 8, auto;
  }

  a, button, .nav a { cursor: url('https://u.pone.rs/mdlpxfry.png') 8 8, pointer; }

  .trail-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: trailFade 0.7s ease-out forwards;
  }
  @keyframes trailFade {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.2) translateY(6px); }
  }

  a { color: #d6336c; }
  a:visited { color: #a23b72; }

  .wrapper {
    max-width: 780px;
    margin: 18px auto;
    background: #fff5f9;
    border: 6px ridge #ff9ec7;
    box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255,110,165,0.6);
  }

  .banner {
    background: linear-gradient(180deg, #ffc2dd 0%, #ff9ec7 60%, #ff7ab3 100%);
    padding: 18px 10px 10px;
    text-align: center;
    border-bottom: 4px solid #ff5c9e;
    position: relative;
    overflow: hidden;
  }
  .banner::before, .banner::after {
    content: "★";
    position: absolute;
    color: #fff566;
    font-size: 22px;
    text-shadow: 0 0 4px #ff8fc0;
    animation: twinkle 1.4s infinite ease-in-out alternate;
  }
  .banner::before { top: 10px; left: 30px; }
  .banner::after { top: 20px; right: 34px; animation-delay: .6s; }
  @keyframes twinkle { from { opacity: .3; transform: scale(.8);} to {opacity: 1; transform: scale(1.2);} }

  .banner h1 {
    margin: 6px 0 2px;
    font-size: 40px;
    color: #fff;
    text-shadow: 3px 3px 0 #ff4f95, -1px -1px 0 #fff;
    letter-spacing: 1px;
  }
  .banner .subtitle {
    font-size: 15px;
    color: #6b2d4d;
    background: #fff9c4;
    display: inline-block;
    padding: 3px 12px;
    border: 2px dashed #ff8fc0;
    border-radius: 12px;
    margin-top: 4px;
  }

  .langbar {
    text-align: right;
    padding: 6px 12px;
    background: #cdefff;
    border-bottom: 3px solid #7ecbf2;
    font-size: 13px;
  }
  .langbar button {
    font-family: inherit;
    font-size: 12px;
    background: #fff;
    border: 2px outset #7ecbf2;
    padding: 3px 10px;
    margin-left: 6px;
    cursor: pointer;
    color: #205a7a;
    font-weight: bold;
  }
  .langbar button.active {
    background: #7ecbf2;
    color: #fff;
    border-style: inset;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    background: #fff0f6;
    padding: 12px;
    border-bottom: 3px dotted #ff9ec7;
  }
  .nav a {
    display: inline-block;
    background: linear-gradient(180deg, #fff566, #ffd43b);
    border: 3px outset #ffe066;
    color: #7a4a00;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 14px;
    font-size: 13px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  }
  .nav a:hover { background: #ffe066; cursor: pointer; }

  .content { padding: 18px 24px; line-height: 1.55; font-size: 15px; }

  .sparklerule {
    text-align: center;
    color: #ff8fc0;
    letter-spacing: 6px;
    margin: 18px 0;
    font-size: 16px;
  }

  .about-box {
    background: #cdefff;
    border: 3px solid #7ecbf2;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 18px;
  }
  .about-box h2 { margin-top: 0; color: #205a7a; }

  .sysbox {
    background: #1a1a2e;
    border: 3px solid #16213e;
    border-radius: 4px;
    padding: 10px 14px 14px;
    margin-bottom: 18px;
    box-shadow: inset 0 0 0 2px #4a4a6a;
  }
  .sysbox-title {
    color: #7ecbf2;
    font-family: "Courier New", monospace;
    font-size: 13px;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 1px;
  }
  .sysbox-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #9be89b;
  }
  .sysbox-table td {
    padding: 3px 6px;
    border-bottom: 1px dotted #3a3a5a;
  }
  .sysbox-table td:first-child {
    color: #ffe066;
    width: 90px;
  }

  .nowplaying {
    background: linear-gradient(135deg, #cdefff, #ffe0ee);
    border: 3px solid #ff9ec7;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .nowplaying .np-icon {
    font-size: 26px;
    flex-shrink: 0;
  }
  .nowplaying .np-icon.playing {
    animation: npbounce 0.6s infinite ease-in-out alternate;
  }
  @keyframes npbounce {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
  }
  .nowplaying .np-info {
    flex: 1;
    min-width: 0;
  }
  .nowplaying .np-title {
    font-weight: bold;
    color: #6b2d4d;
    font-size: 14px;
  }
  .nowplaying .np-credit {
    font-size: 10px;
    color: #7a5a6a;
  }
  .nowplaying .np-btn {
    background: #ff9ec7;
    border: 2px outset #ffc2dd;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 12px;
    cursor: url('https://u.pone.rs/mdlpxfry.png') 8 8, pointer;
    flex-shrink: 0;
  }
  .nowplaying .np-btn:active { border-style: inset; }

  .footer {
    text-align: center;
    font-size: 11px;
    color: #7a4a5a;
    background: #ffe0ee;
    padding: 12px;
    border-top: 4px dashed #ff9ec7;
  }

  .link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff9c4;
    border: 3px outset #ffe066;
    border-radius: 6px;
    padding: 10px 14px;
    text-decoration: none;
    color: #6b4a00;
    font-weight: bold;
    font-size: 15px;
  }
  .link-item:hover { background: #ffe066; }
  .link-item:active { border-style: inset; }
  .link-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .link-desc {
    font-size: 11px;
    font-weight: normal;
    color: #8a6a2a;
    display: block;
  }
  .link-item.mystery {
    background: #e0d4ff;
    border-color: #b39ddb;
    color: #4a2d7a;
  }
  .link-item.mystery:hover { background: #d3c0ff; }
  .link-item.mystery .link-desc { color: #7a5aa0; }

  .other-note {
    text-align: center;
    font-size: 11px;
    color: #9a7a8a;
    margin-top: 16px;
    font-style: italic;
  }

  .project-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .project-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #cdefff;
    border: 3px solid #7ecbf2;
    border-radius: 8px;
    padding: 16px;
  }
  .project-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    border: 2px solid #a9dcf2;
  }
  .project-info { flex: 1; min-width: 0; }
  .project-title {
    font-size: 17px;
    font-weight: bold;
    color: #205a7a;
    margin-bottom: 4px;
  }
  .project-desc {
    font-size: 13px;
    color: #3a5a6a;
    margin-bottom: 8px;
    line-height: 1.4;
  }
  .project-btn {
    display: inline-block;
    background: #7ecbf2;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 14px;
    border: 2px outset #a9dcf2;
    font-size: 13px;
  }
  .project-btn:hover { background: #5cb8ea; }
  .project-btn:active { border-style: inset; }