* { margin: 0; padding: 0; box-sizing: border-box; }

    html {
      height: 100%;
      scroll-behavior: smooth;
    }

    body {
      min-height: 100%;
      background: #050810;
      background-image:
        radial-gradient(ellipse at 15% 18%, rgba(0, 47, 167, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 35%, rgba(0, 30, 80, 0.22) 0%, transparent 70%),
        linear-gradient(180deg, #050810 0%, #0a1220 50%, #060a14 100%);
      background-attachment: fixed;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      color: #e6e6e6;
      overflow-x: hidden;
      position: relative;
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      box-shadow: inset 0 0 140px rgba(0, 10, 30, 0.7);
      pointer-events: none;
      z-index: 1;
    }


    /* Top-right music control — same design language as My Contacts */
    .music-ctrl {
      position: fixed;
      top: 24px;
      right: 24px;
      z-index: 40;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }
    .music-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      background: transparent;
      border: 1.5px solid rgba(255, 255, 255, 0.55);
      border-radius: 6px;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.9px;
      text-transform: uppercase;
      cursor: pointer;
      backdrop-filter: blur(6px);
      transition: border-color 0.3s ease, background 0.3s ease,
                  box-shadow 0.3s ease, color 0.3s ease;
      user-select: none;
    }
    .music-btn:hover {
      border-color: #00d4ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.08);
      box-shadow: 0 0 18px rgba(0, 200, 255, 0.25);
    }
    .music-btn .music-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: currentColor;
      opacity: 0.45;
      flex-shrink: 0;
    }
    .music-btn.playing .music-dot {
      opacity: 1;
      box-shadow: 0 0 8px #00e5ff;
      animation: autoPulse 1.2s ease-in-out infinite;
    }
    .music-btn.playing {
      border-color: rgba(0, 212, 255, 0.65);
      color: #00e5ff;
    }
    body.avatar-hover .music-ctrl {
      filter: blur(8px);
      opacity: 0.35;
    }
    /* Music panel (dropdown like contacts) */
    .music-wrap {
      position: relative;
      display: inline-block;
    }
    .music-btn .chev {
      display: inline-block;
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid currentColor;
      opacity: 0.7;
      margin-left: 2px;
      transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .music-wrap:hover .music-btn .chev,
    .music-wrap.open .music-btn .chev,
    .music-wrap:focus-within .music-btn .chev {
      transform: rotate(180deg);
    }
    .music-wrap:hover .music-btn,
    .music-wrap.open .music-btn,
    .music-wrap:focus-within .music-btn {
      border-color: #00d4ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.08);
      box-shadow: 0 0 18px rgba(0, 200, 255, 0.25);
    }
    .music-panel {
      position: absolute;
      top: 100%;
      right: 0;
      margin-top: 8px;
      width: 280px;
      padding: 16px 18px 14px;
      background: rgba(5, 12, 28, 0.94);
      border: 1px solid rgba(0, 200, 255, 0.22);
      border-radius: 10px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 180, 255, 0.12);
      backdrop-filter: blur(12px);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px) scale(0.96);
      transform-origin: top right;
      pointer-events: none;
      overflow: visible;
      transition:
        opacity 0.32s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.32s cubic-bezier(0.165, 0.84, 0.44, 1),
        visibility 0.32s;
      z-index: 50;
    }
    .music-wrap:hover .music-panel,
    .music-wrap.open .music-panel,
    .music-wrap:focus-within .music-panel,
    .music-panel:hover {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }
    .music-track {
      margin-bottom: 12px;
    }
    .music-title {
      display: block;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.4px;
      color: #e8eef4;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .music-sub {
      display: block;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.3px;
      color: rgba(180, 210, 230, 0.65);
      margin-top: 2px;
    }
    .music-progress {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 14px;
    }
    .music-time {
      font-size: 11px;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      color: #7a9bb0;
      min-width: 32px;
    }
    .music-time:last-child { text-align: right; }
    .progress-bar {
      flex: 1;
      height: 6px;
      background: rgba(0, 180, 255, 0.12);
      border-radius: 3px;
      position: relative;
      cursor: pointer;
      overflow: visible;
    }
    .progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #00c8ff, #00e5ff);
      border-radius: 3px;
      box-shadow: 0 0 10px rgba(0, 212, 255, 0.45);
      transition: width 0.08s linear;
      pointer-events: none;
    }
    .progress-thumb {
      position: absolute;
      top: 50%;
      left: 0%;
      width: 12px;
      height: 12px;
      margin-left: -6px;
      margin-top: -6px;
      background: #00e5ff;
      border-radius: 50%;
      box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
      opacity: 0;
      transition: opacity 0.2s ease, left 0.08s linear;
      pointer-events: none;
    }
    .progress-bar:hover .progress-thumb,
    .progress-bar.dragging .progress-thumb {
      opacity: 1;
    }
    .music-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      position: relative;
    }
    /* Playlist expands under the control row (max 7 rows via .playlist-list) */
    .playlist-dropdown {
      margin-top: 12px;
      border-top: 1px solid rgba(0, 200, 255, 0.12);
      padding-top: 10px;
      display: flex;
      flex-direction: column;
      max-height: none;
      animation: playlistIn 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .playlist-dropdown[hidden] {
      display: none;
    }
    @keyframes playlistIn {
      from { opacity: 0; transform: translateY(-6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    #playlistBtn[aria-expanded="true"] {
      border-color: #00e5ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.15);
      box-shadow: 0 0 14px rgba(0, 200, 255, 0.3);
    }
    .mode-icon {
      width: 16px;
      height: 16px;
    }
    .mctl .mode-icon {
      width: 16px;
      height: 16px;
    }

    .mctl {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid rgba(0, 200, 255, 0.28);
      background: transparent;
      color: #c8e6f5;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    }
    .mctl:hover {
      border-color: #00d4ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.1);
      box-shadow: 0 0 14px rgba(0, 200, 255, 0.25);
      transform: scale(1.08);
    }
    .mctl.play {
      width: 44px;
      height: 44px;
      border-color: rgba(0, 212, 255, 0.5);
      background: rgba(0, 180, 255, 0.12);
    }
    .mctl.play:hover {
      background: rgba(0, 180, 255, 0.22);
      box-shadow: 0 0 18px rgba(0, 212, 255, 0.4);
    }
    .mctl svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }
    .mctl.play svg { width: 18px; height: 18px; }
    .mctl:disabled {
      opacity: 0.35;
      pointer-events: none;
    }

    /* Light theme for music panel */
    html[data-theme="light"] .music-panel {
      background: rgba(255, 255, 255, 0.97);
      border-color: rgba(0, 90, 140, 0.25);
      box-shadow: 0 16px 40px rgba(20, 50, 90, 0.2);
    }
    html[data-theme="light"] .music-title { color: #14212e; }
    html[data-theme="light"] .music-sub { color: #5a7a8c; }
    html[data-theme="light"] .music-time { color: #5a7a8c; }
    html[data-theme="light"] .progress-bar { background: rgba(0, 120, 180, 0.12); }
    html[data-theme="light"] .progress-fill {
      background: linear-gradient(90deg, #0088c0, #00a8e0);
      box-shadow: 0 0 8px rgba(0, 148, 200, 0.35);
    }
    html[data-theme="light"] .progress-thumb { background: #0094c8; box-shadow: 0 0 8px rgba(0, 148, 200, 0.5); }
    html[data-theme="light"] .mctl {
      border-color: rgba(0, 90, 140, 0.28);
      color: #1b2a38;
    }
    html[data-theme="light"] .mctl:hover {
      border-color: #006a94;
      color: #006a94;
      background: rgba(0, 148, 200, 0.1);
      box-shadow: 0 0 12px rgba(0, 148, 200, 0.2);
    }
    html[data-theme="light"] .mctl.play {
      border-color: rgba(0, 120, 180, 0.45);
      background: rgba(0, 148, 200, 0.1);
    }
    html[data-theme="light"] .music-wrap:hover .music-btn,
    html[data-theme="light"] .music-wrap.open .music-btn,
    html[data-theme="light"] .music-wrap:focus-within .music-btn {
      border-color: #0094c8;
      color: #006a94;
      background: rgba(0, 148, 200, 0.08);
    }

    /* Side icon buttons (playlist + mode) */
    .playlist-header {
      padding: 4px 18px 10px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      color: #00c8ff;
    }
    .playlist-list {
      list-style: none;
      margin: 0;
      padding: 0;
      overflow-y: auto;
      flex: 1 1 auto;
      max-height: calc(7 * 42px); /* enough for seven tracks, then scroll */
      scrollbar-width: thin;
      scrollbar-color: rgba(0, 200, 255, 0.35) transparent;
    }
    .playlist-list button {
      min-height: 42px;
      box-sizing: border-box;
    }
    .playlist-list li {
      border-bottom: 1px solid rgba(0, 200, 255, 0.06);
    }
    .playlist-list li:last-child { border-bottom: none; }
    .playlist-list button {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      width: 100%;
      text-align: left;
      padding: 10px 18px;
      background: transparent;
      border: none;
      color: #e8eef4;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.3px;
      cursor: pointer;
      transition: background 0.22s ease, color 0.22s ease, padding-left 0.25s ease;
    }
    .playlist-list .pl-name {
      flex: 1;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .playlist-list .pl-dur {
      flex-shrink: 0;
      font-size: 11px;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      color: #7a9bb0;
      letter-spacing: 0.2px;
    }
    .playlist-list button:hover {
      background: rgba(0, 180, 255, 0.12);
      color: #00e5ff;
      padding-left: 24px;
    }
    .playlist-list button.active {
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.1);
      text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    }
    .playlist-empty {
      padding: 18px 18px 12px;
      font-size: 13px;
      color: #7a9bb0;
      line-height: 1.5;
      text-align: center;
    }
    .playlist-empty code {
      font-size: 11px;
      color: #00c8ff;
    }
    .playlist-empty[hidden],
    .playlist-list:empty + .playlist-empty { display: block; }
    .playlist-list:not(:empty) + .playlist-empty { display: none; }

    /* Marquee / rolling title when too long */
    .music-title-wrap {
      overflow: hidden;
      position: relative;
      max-width: 100%;
    }
    .music-title {
      display: inline-block;
      white-space: nowrap;
      will-change: transform;
    }
    .music-title-wrap.is-rolling .music-title {
      animation: titleRoll var(--roll-dur, 10s) linear infinite;
    }
    @keyframes titleRoll {
      0%, 12% { transform: translateX(0); }
      88%, 100% { transform: translateX(var(--roll-dist, -50%)); }
    }

    /* Mode button icons */
    #modeBtn .mode-icon { width: 18px; height: 18px; }

    /* Light theme extras */
    html[data-theme="light"] .playlist-header { color: #006a94; }
    html[data-theme="light"] .playlist-list button { color: #14212e; }
    html[data-theme="light"] .playlist-list button:hover {
      background: rgba(0, 148, 200, 0.1);
      color: #006a94;
    }
    html[data-theme="light"] .playlist-list button.active {
      color: #006a94;
      background: rgba(0, 148, 200, 0.12);
      text-shadow: none;
    }
    html[data-theme="light"] .playlist-empty { color: #5a7a8c; }
    html[data-theme="light"] .playlist-empty code { color: #006a94; }
    html[data-theme="light"] .playlist-list .pl-dur { color: #5a7a8c; }

    html[data-theme="light"] #playlistBtn[aria-expanded="true"] {
      border-color: #006a94;
      color: #006a94;
      background: rgba(0, 148, 200, 0.12);
      box-shadow: 0 0 12px rgba(0, 148, 200, 0.2);
    }
    html[data-theme="light"] .playlist-dropdown {
      border-top-color: rgba(0, 90, 140, 0.15);
    }

    @media (max-width: 720px) {
        }

    @media (max-width: 720px) {
      .music-ctrl { top: 14px; right: 14px; }
      .music-btn { padding: 8px 14px; font-size: 12px; }
    }

    /* Top-left Contacts dropdown */
    .contacts {
      position: fixed;
      top: 24px;
      left: 24px;
      z-index: 40;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }
    .contacts-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      background: transparent;
      border: 1.5px solid rgba(255, 255, 255, 0.55);
      border-radius: 6px;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.9px;
      text-transform: uppercase;
      cursor: default;
      backdrop-filter: blur(6px);
      transition: border-color 0.3s ease, background 0.3s ease,
                  box-shadow 0.3s ease, color 0.3s ease;
      user-select: none;
    }
    .contacts-toggle .chev {
      display: inline-block;
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid currentColor;
      opacity: 0.7;
      transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .contacts:hover .contacts-toggle {
      border-color: #00d4ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.08);
      box-shadow: 0 0 18px rgba(0, 200, 255, 0.25);
    }
    .contacts:hover .contacts-toggle .chev {
      transform: rotate(180deg);
    }
    .contacts-menu {
      list-style: none;
      margin: 0;
      padding: 8px 0 0; /* invisible bridge so hover stays when moving to menu */
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 100%;
      width: max-content;
      background: transparent;
      border: none;
      box-shadow: none;
      overflow: visible;
      /* closed state */
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transform-origin: top center;
      pointer-events: none;
      transition:
        opacity 0.32s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.32s cubic-bezier(0.165, 0.84, 0.44, 1),
        visibility 0.32s;
    }
    /* inner panel for the visible card look */
    .contacts-menu::before {
      content: "";
      position: absolute;
      top: 8px;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(5, 12, 28, 0.94);
      border: 1px solid rgba(0, 200, 255, 0.22);
      border-radius: 6px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 180, 255, 0.12);
      backdrop-filter: blur(12px);
      z-index: -1;
    }
    .contacts:hover .contacts-menu,
    .contacts-menu:hover {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }
    .contacts-menu li {
      position: relative;
      border-bottom: 1px solid rgba(0, 200, 255, 0.08);
    }
    .contacts-menu li:last-child {
      border-bottom: none;
    }
    .contacts-menu a {
      display: block;
      padding: 12px 22px;
      color: #e8eef4;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.4px;
      text-decoration: none;
      text-transform: none;
      white-space: nowrap;
      transition:
        background 0.22s ease,
        color 0.22s ease,
        text-shadow 0.22s ease,
        padding-left 0.25s ease,
        transform 0.22s ease;
    }
    .contacts-menu a:hover {
      background: rgba(0, 180, 255, 0.12);
      color: #00e5ff;
      padding-left: 28px;
      text-shadow:
        0 0 8px rgba(0, 229, 255, 0.9),
        0 0 18px rgba(0, 180, 255, 0.65),
        0 0 32px rgba(0, 140, 255, 0.4);
    }

    /* Avatar hover: blur everything EXCEPT the avatar itself */
    body.avatar-hover .text-block,
    body.avatar-hover .bio-section,
    body.avatar-hover .game-section,
    body.avatar-hover .contacts,
    body.avatar-hover .glow {
      filter: blur(8px);
      opacity: 0.35;
    }
    /* Avatar stays sharp — no filter on .avatar-wrap */
    body.avatar-hover .avatar-wrap,
    body.avatar-hover .avatar-wrap img {
      filter: none !important;
      opacity: 1 !important;
    }

    /* ========== Hero: first full viewport ========== */
    .hero {
      position: relative;
      z-index: 2;
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 2rem 1.5rem 3rem;
      background: transparent;
    }

    .avatar-wrap {
      position: relative;
      width: 210px;
      height: 210px;
      margin-bottom: 28px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.75),
        0 0 24px rgba(0, 180, 255, 0.22);
      transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
                  box-shadow 0.5s ease;
      will-change: transform;
      z-index: 5;
      border: 1px solid rgba(0, 200, 255, 0.25);
      cursor: pointer;
    }
    .avatar-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
      transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .avatar-wrap:hover {
      transform: scale(1.16);
      box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.85),
        0 0 36px rgba(0, 200, 255, 0.4);
    }
    .avatar-wrap:hover img {
      transform: scale(1.06);
    }

    .text-block {
      position: relative;
      display: inline-block;
      text-align: left;
      background: transparent !important;
      box-shadow: none !important;
      filter: none; /* never paint a plate behind the text */
      transition: opacity 0.45s ease;
    }
    body.avatar-hover .text-block {
      filter: blur(8px);
      opacity: 0.35;
    }

    /* PROFILE: appear centered, then slide fluently to the left */
    .label {
      display: inline-block;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-size: 14px;
      letter-spacing: 5px;
      color: #00c8ff;
      font-weight: 700;
      margin-bottom: 10px;
      text-transform: uppercase;
      background: transparent !important;
      opacity: 0;
      /* start roughly centered over the title area, then move left */
      transform: translateX(3.2ch);
      animation: profileSlide 0.85s cubic-bezier(0.165, 0.84, 0.44, 1) 0.12s forwards;
    }

    .title {
      font-size: 0;
      line-height: 1;
    }

    .title::after {
      content: "BLONIC.";
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-weight: 900;
      font-size: clamp(52px, 13vw, 96px);
      color: #fff;
      letter-spacing: -1.5px;
      display: inline-block;
      text-shadow: 2px 4px 14px rgba(0, 0, 0, 0.85);
      overflow: hidden;
      white-space: nowrap;
      max-width: 0;
      padding: 0 3px 0 6px; /* balanced around the text so BLONIC. sits truly centered */
      border-right: 3px solid #00d4ff;
      animation:
        typingTitle 0.85s steps(7, end) forwards,
        blinkTitle 1.6s step-end infinite;
    }

    @keyframes typingTitle {
      from { max-width: 0; }
      to   { max-width: var(--tw, 7.5ch); }
    }
    @keyframes blinkTitle {
      50% { border-color: transparent; }
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes profileSlide {
      0% {
        opacity: 0;
        transform: translateX(3.2ch);
      }
      35% {
        opacity: 1;
        transform: translateX(3.2ch);
      }
      100% {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .glow {
      /* soft accent behind avatar only — does not form a plate under the title */
      position: absolute;
      left: 50%;
      top: 38%;
      transform: translate(-50%, -50%);
      width: 280px;
      height: 280px;
      background: radial-gradient(circle at center, rgba(0, 180, 255, 0.09) 0%, transparent 68%);
      filter: blur(40px);
      pointer-events: none;
      z-index: 0;
      opacity: 0;
      animation: fadeIn 1.4s ease 0.9s forwards;
    }

    /* ========== Bio: well below first view ========== */
    .bio-section {
      position: relative;
      z-index: 2;
      display: flex;
      justify-content: center;
      padding: 8vh 1.5rem 3rem;
      transition: filter 0.45s ease, opacity 0.45s ease;
    }


    .bio {
      width: 100%;
      max-width: 960px;
      text-align: left;
      padding: 48px 56px;
      box-sizing: border-box;
      background:
        linear-gradient(to right, rgba(5, 12, 28, 0.97), rgba(8, 18, 40, 0.94)),
        radial-gradient(circle at top right, rgba(0, 47, 167, 0.3), transparent 42%);
      border: 1px solid rgba(0, 200, 255, 0.14);
      border-left: 5px solid #00c8ff;
      box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.65),
        inset 0 0 50px rgba(0, 180, 255, 0.03);
      font-family: "Univers Condensed", "Univers", "Barlow Condensed", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
    }


    .bio-header {
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 14px 28px;
      margin-bottom: 22px;
    }
    .bio-header .bio-title {
      color: #00c8ff;
      font-weight: 800;
      font-size: 18px;
      letter-spacing: 2.2px;
      text-transform: uppercase;
      margin: 0;
    }
    .bio p {
      color: #e8eef4;
      font-size: 20px;
      line-height: 1.72;
      font-weight: 500;
      letter-spacing: 0.15px;
      margin: 0 0 1.2em;
    }
    .bio p:last-of-type { margin-bottom: 0; }

    .bio strong, .bio b {
      color: #00e5ff;
      font-weight: 700;
      text-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
    }
    .bio em, .bio i {
      color: #b8d4e8;
      font-style: italic;
    }

    .bio h2 {
      color: #00d4ff;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 2.2px;
      text-transform: uppercase;
      margin: 1.7em 0 0.9em;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(0, 200, 255, 0.22);
    }

    .bio ul { list-style: none; padding: 0; margin: 0 0 0.3em; }
    .bio li {
      position: relative;
      padding-left: 1.3em;
      margin-bottom: 1em;
      color: #e0e6ec;
      font-size: 19px;
      line-height: 1.65;
      font-weight: 500;
    }
    .bio li::before {
      content: "▸";
      position: absolute;
      left: 0;
      color: #00c8ff;
      font-weight: 700;
    }

    .auto-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      background: transparent;
      border: 1.5px solid rgba(255, 255, 255, 0.55);
      border-radius: 6px;
      color: #fff;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.9px;
      text-transform: uppercase;
      cursor: pointer;
      backdrop-filter: blur(6px);
      transition: border-color 0.25s ease, background 0.25s ease,
                  box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
    }
    .auto-btn:hover {
      border-color: #00d4ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.08);
      box-shadow: 0 0 18px rgba(0, 200, 255, 0.25);
      transform: translateY(-2px);
    }
    .auto-btn.active {
      border-color: #00e5ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.15);
      box-shadow: 0 0 16px rgba(0, 200, 255, 0.3);
    }
    .auto-btn .auto-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: currentColor;
      opacity: 0.5;
    }
    .auto-btn.active .auto-dot {
      opacity: 1;
      box-shadow: 0 0 8px #00e5ff;
      animation: autoPulse 1.2s ease-in-out infinite;
    }
    @keyframes autoPulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.45; transform: scale(0.85); }
    }

    /* ========== Dino game section ========== */
    .game-section {
      position: relative;
      z-index: 2;
      display: flex;
      justify-content: center;
      padding: 0 1.5rem 2rem; /* same top gap as the other boxes; island sits below */
      transition: filter 0.45s ease, opacity 0.45s ease;
    }


    .game-panel {
      width: 100%;
      max-width: 960px;
      background:
        linear-gradient(to right, rgba(5, 12, 28, 0.97), rgba(8, 18, 40, 0.94)),
        radial-gradient(circle at top left, rgba(0, 47, 167, 0.22), transparent 45%);
      border: 1px solid rgba(0, 200, 255, 0.14);
      border-left: 5px solid #00c8ff;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
      padding: 48px 56px;
      font-family: "Univers Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
    }

    .game-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 22px;
      flex-wrap: wrap;
      gap: 14px 28px;
    }
    .game-header h2 {
      color: #00c8ff;
      font-weight: 800;
      font-size: 18px;
      letter-spacing: 2.2px;
      text-transform: uppercase;
      margin: 0;
    }
    .game-stats {
      display: flex;
      gap: 20px;
      font-size: 15px;
      color: #a8c4d8;
      letter-spacing: 1px;
    }
    .game-stats span strong {
      color: #00e5ff;
      font-weight: 700;
    }

    .game-canvas-wrap {
      position: relative;
      width: 100%;
      background: #070d18;
      border: 1px solid rgba(0, 200, 255, 0.18);
      border-radius: 4px;
      overflow: hidden;
      box-shadow: inset 0 0 40px rgba(0, 100, 180, 0.08);
    }

    #dinoCanvas {
      display: block;
      width: 100%;
      height: auto;
      cursor: pointer;
      touch-action: none;
    }

    .game-hint {
      margin-top: 12px;
      font-size: 14px;
      color: #7a9bb0;
      letter-spacing: 0.5px;
      text-align: center;
    }
    .game-hint kbd {
      display: inline-block;
      padding: 2px 8px;
      border: 1px solid rgba(0, 200, 255, 0.35);
      border-radius: 3px;
      color: #00d4ff;
      font-family: inherit;
      font-size: 12px;
      margin: 0 2px;
    }

    @media (max-width: 720px) {
      .contacts { top: 14px; left: 14px; }
      .contacts-toggle { padding: 8px 14px; font-size: 12px; }
      .avatar-wrap { width: 160px; height: 160px; margin-bottom: 22px; }
      .label { font-size: 12px; letter-spacing: 3px; }
      .title::after { letter-spacing: -1px; }
      .bio-section { padding: 6vh 1rem 2rem; }
      .bio { padding: 32px 22px; }
      .bio p { font-size: 17px; }
      .bio li { font-size: 16.5px; }
      .game-section { padding: 0 1rem 1.5rem; }
      .game-panel { padding: 32px 22px; }
      /* phone: title on its own line, score / best / auto play always on the line below (no more jumping) */
      .game-header { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
      .game-stats { flex-wrap: wrap; align-items: center; gap: 10px 20px; }
    }

    /* Footer credit — plain white text, no box */
    .site-footer {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 2.5rem 1rem 3rem;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.8px;
      color: rgba(255, 255, 255, 0.72);
      transition: filter 0.45s ease, opacity 0.45s ease;
    }
    body.avatar-hover .site-footer {
      filter: blur(8px);
      opacity: 0.35;
    }


    /* ===== Info island ===== */
    .island-section {
      position: relative; z-index: 2; display: flex; justify-content: center;
      padding: 0 1.5rem 1rem; transition: filter 0.45s ease, opacity 0.45s ease;
    }
    .island {
      display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0;
      max-width: min(1400px, 100%); padding: 12px 14px; border-radius: 999px; background: #000;
      box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
      font-family: "Univers Condensed", "Barlow Condensed", "Helvetica Neue", "Arial Narrow", sans-serif;
      font-size: 17px; letter-spacing: 0.3px; color: rgba(255, 255, 255, 0.72);
    }
    .island-item { display: flex; gap: 7px; padding: 2px 14px; white-space: nowrap; }
    .island-item[hidden] { display: none; }
    .island-item + .island-item { border-left: 1px solid rgba(255, 255, 255, 0.14); }
    .island b { color: #00e5ff; font-weight: 700; }
    .island #isTime { font-variant-numeric: tabular-nums; display: inline-block; min-width: 24ch; }
    body.avatar-hover .island-section { filter: blur(8px); opacity: 0.35; }
    /* light theme: white island, same look as the boxes above */
    html[data-theme="light"] .island {
      background: #ffffff; color: #3d5668;
      box-shadow: 0 18px 46px rgba(20, 50, 90, 0.14), inset 0 0 0 1px rgba(0, 90, 140, 0.18);
    }
    html[data-theme="light"] .island b { color: #006a94; }
    html[data-theme="light"] .island-item + .island-item { border-left-color: rgba(0, 90, 140, 0.18); }
    @media (max-width: 720px) {
      html[data-theme="light"] .island-item:nth-child(even) { border-left-color: rgba(0, 90, 140, 0.18); }
      html[data-theme="light"] .island-item:last-child:nth-child(odd) { border-top-color: rgba(0, 90, 140, 0.18); }
    }
    @media (max-width: 720px) {
      .island-section { padding: 0 1rem 0.5rem; }
      .island { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 28px; padding: 14px 8px; gap: 10px 0; }
      .island-item { flex-direction: column; gap: 2px; padding: 0 14px; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
      .island-item + .island-item { border-left: none; }
      .island #isTime { min-width: 0; }
      .island-item:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.14); }
      .island-item:last-child:nth-child(odd) { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 10px; }
    }

    /* ===== Additions ===== */
    /* Declare the page's real scheme so mobile browsers' "force dark / night mode" leaves the light theme alone */
    :root { color-scheme: dark; }
    html[data-theme="light"] { color-scheme: light; }
    html[data-theme="light"] body { forced-color-adjust: none; }
    /* Some WebView-based browsers (e.g. Via) only skip auto-darkening when the page has a dark-scheme rule of its own */
    @media (prefers-color-scheme: dark) {
      :root { color-scheme: dark; }
      html[data-theme="light"] { color-scheme: light; }
    }
    /* glow: fade only (the old fadeIn overwrote its centering transform and pushed it off to the right) */
    @keyframes glowIn { from { opacity: 0; } to { opacity: 1; } }
    .glow { animation: glowIn 1.4s ease 0.9s forwards; }
    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
    a:focus-visible, button:focus-visible, canvas:focus-visible, .contacts-toggle:focus-visible {
      outline: 2px solid #00e5ff; outline-offset: 3px;
    }

    /* top-right controls: theme + music */
    .music-ctrl { display: flex; gap: 10px; align-items: center; }
    .theme-btn { padding: 10px 14px; }
    .theme-btn svg { width: 16px; height: 16px; display: block; }
    /* icon shows the CURRENT theme: moon = dark, sun = light */
    .theme-btn .icon-sun { display: none; }
    html[data-theme="light"] .theme-btn .icon-moon { display: none; }
    html[data-theme="light"] .theme-btn .icon-sun { display: block; }
    @media (max-width: 720px) { .theme-btn { padding: 8px 11px; } }

    /* contacts: button toggle, opens on hover, focus or tap */
    .contacts-toggle { cursor: pointer; font-family: inherit; }
    .contacts.open .contacts-toggle,
    .contacts:focus-within .contacts-toggle {
      border-color: #00d4ff; color: #00e5ff; background: rgba(0, 180, 255, 0.08);
      box-shadow: 0 0 18px rgba(0, 200, 255, 0.25);
    }
    .contacts.open .contacts-toggle .chev,
    .contacts:focus-within .contacts-toggle .chev { transform: rotate(180deg); }
    .contacts.open .contacts-menu,
    .contacts:focus-within .contacts-menu {
      opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
    }
    .contacts-menu a { display: flex; align-items: center; gap: 10px; }
    .contacts-menu a svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; opacity: 0.85; }

    /* scroll cue */
    .scroll-cue {
      position: absolute; left: 0; right: 0; bottom: 26px; margin: 0 auto; width: max-content;
      display: flex; flex-direction: column; align-items: center; gap: 6px;
      color: rgba(200, 225, 240, 0.7); text-decoration: none;
      font: 600 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
      letter-spacing: 3px; text-transform: uppercase;
      opacity: 0; animation: fadeIn 1s ease 2s forwards;
      transition: color 0.25s ease;
    }
    .scroll-cue:hover { color: #00e5ff; }
    .scroll-cue > span:first-child { padding-left: 3px; /* cancels trailing letter-spacing so the word is centered */ }
    .scroll-cue .arrow {
      width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
      transform: rotate(45deg); animation: cueBob 1.8s ease-in-out infinite;
    }
    @keyframes cueBob { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(6px) rotate(45deg); } }
    body.scrolled .scroll-cue { opacity: 0 !important; pointer-events: none; transition: opacity 0.4s ease; }

    /* games grid */
    .games-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px;
      margin: 0 0 1.4em;
    }
    .game-card {
      padding: 18px 20px; border: 1px solid rgba(0, 200, 255, 0.18); border-radius: 6px;
      background: rgba(0, 20, 50, 0.45);
      transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    }
    .game-card:hover { border-color: rgba(0, 229, 255, 0.55); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); }
    .game-card h3 { color: #00e5ff; font-size: 20px; font-weight: 800; letter-spacing: 0.8px; margin: 0 0 6px; }
    .bio .game-card p { font-size: 16.5px; line-height: 1.55; margin: 0 0 12px; }
    .id-row { display: flex; flex-wrap: wrap; gap: 8px; }
    .id-chip {
      display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px;
      border: 1px solid rgba(0, 200, 255, 0.3); border-radius: 999px; background: rgba(0, 180, 255, 0.07);
      color: #e8eef4; font-size: 15px; font-weight: 600;
    }
    .id-chip small { color: #7fb0c8; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
    .copy-btn {
      font: 700 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.8px; text-transform: uppercase;
      padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(0, 229, 255, 0.5);
      background: transparent; color: #00e5ff; cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
    }
    .copy-btn:hover { background: rgba(0, 229, 255, 0.15); }
    .copy-btn.done { background: #00e5ff; color: #04101c; }

    /* bots */
    .bots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 1.6em; }
    .bot-card {
      display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 6px; text-decoration: none;
      border: 1px solid rgba(0, 200, 255, 0.18); background: rgba(0, 20, 50, 0.45); color: #e8eef4;
      transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    }
    .bot-card:hover { border-color: rgba(0, 229, 255, 0.6); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
    .bot-card h3 { color: #00e5ff; font-size: 20px; font-weight: 800; margin: 0; }
    .bot-card p { font-size: 16px; line-height: 1.5; margin: 0; color: #cfdbe6; }
    .bot-card .go { margin-top: auto; color: #00d4ff; font: 700 12px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; }

    @media (max-width: 720px) {
      .games-grid { grid-template-columns: 1fr; }
      .game-card h3 { font-size: 18px; }
    }

    /* ===== Light theme (toggle top-right) ===== */
    html[data-theme="light"] body {
      background-color: #e9f0f7;
      background-image:
        radial-gradient(ellipse at 15% 18%, rgba(0, 120, 255, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #f2f6fb 0%, #e3edf7 50%, #eaf1f8 100%);
      background-repeat: no-repeat;
      background-size: 100% 100%;
      background-attachment: fixed;
      color: #14212e;
    }
    html[data-theme="light"] body::after { box-shadow: none; }
    html[data-theme="light"] .label { color: #0079a8; }
    html[data-theme="light"] .title::after { color: #0b1a2e; text-shadow: 2px 4px 14px rgba(0, 40, 80, 0.18); border-right-color: #0079a8; }
    html[data-theme="light"] .bio,
    html[data-theme="light"] .game-panel {
      background: #ffffff; border-color: rgba(0, 90, 140, 0.18); border-left-color: #0094c8;
      box-shadow: 0 18px 46px rgba(20, 50, 90, 0.14);
    }
    html[data-theme="light"] .bio p, html[data-theme="light"] .bio li { color: #1b2a38; }
    html[data-theme="light"] .bio strong, html[data-theme="light"] .bio b { color: #006a94; text-shadow: none; }
    html[data-theme="light"] .bio em { color: #3d5668; }
    html[data-theme="light"] .bio h2, html[data-theme="light"] .bio-header .bio-title, html[data-theme="light"] .game-header h2 { color: #0079a8; border-bottom-color: rgba(0, 90, 140, 0.25); }
    html[data-theme="light"] .bio li::before { color: #0094c8; }
    html[data-theme="light"] .game-card, html[data-theme="light"] .bot-card { background: #f3f8fc; border-color: rgba(0, 90, 140, 0.2); color: #1b2a38; }
    html[data-theme="light"] .game-card h3, html[data-theme="light"] .bot-card h3 { color: #006a94; }
    html[data-theme="light"] .bot-card p { color: #3d5668; }
    html[data-theme="light"] .bot-card .go { color: #0079a8; }
    html[data-theme="light"] .id-chip { color: #14212e; background: rgba(0, 120, 180, 0.07); border-color: rgba(0, 90, 140, 0.3); }
    html[data-theme="light"] .id-chip small { color: #4d7a92; }
    html[data-theme="light"] .copy-btn { color: #006a94; border-color: rgba(0, 106, 148, 0.5); }
    html[data-theme="light"] .copy-btn.done { background: #006a94; color: #fff; }
    html[data-theme="light"] .music-btn, html[data-theme="light"] .contacts-toggle, html[data-theme="light"] .auto-btn {
      color: #14212e; border-color: rgba(20, 33, 46, 0.55); background: rgba(255, 255, 255, 0.6);
    }
    html[data-theme="light"] .music-btn:hover, html[data-theme="light"] .contacts:hover .contacts-toggle,
    html[data-theme="light"] .contacts.open .contacts-toggle, html[data-theme="light"] .auto-btn:hover,
    html[data-theme="light"] .music-btn.playing, html[data-theme="light"] .auto-btn.active { color: #006a94; border-color: #0094c8; }
    html[data-theme="light"] .contacts-menu::before { background: rgba(255, 255, 255, 0.97); border-color: rgba(0, 90, 140, 0.25); box-shadow: 0 16px 40px rgba(20, 50, 90, 0.2); }
    html[data-theme="light"] .contacts-menu a { color: #14212e; }
    html[data-theme="light"] .contacts-menu a:hover { color: #006a94; text-shadow: none; background: rgba(0, 148, 200, 0.1); }
    html[data-theme="light"] .game-stats { color: #3d5668; }
    html[data-theme="light"] .game-stats span strong { color: #006a94; }
    html[data-theme="light"] .game-hint { color: #4d6678; }
    html[data-theme="light"] .game-hint kbd { color: #006a94; border-color: rgba(0, 90, 140, 0.4); }
    html[data-theme="light"] .site-footer { color: rgba(20, 33, 46, 0.75); }
    html[data-theme="light"] .scroll-cue { color: rgba(20, 33, 46, 0.65); }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
        animation-delay: 0s !important; transition-duration: 0.001ms !important;
      }
      .label, .glow, .scroll-cue { opacity: 1; }
      .scroll-cue { opacity: 0.8; }
      .title::after { max-width: var(--tw, 7.5ch); }
    }

  

    /* Changelog entry (below hero, above bio — not in first viewport center) */
    .log-link-wrap {
      position: relative;
      z-index: 2;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px 28px;
      padding: 0.5rem 1.5rem 0.25rem;
    }
    .log-link-wrap .log-sep {
      width: 1px;
      height: 18px;
      background: rgba(0, 200, 255, 0.28);
      flex-shrink: 0;
    }
    html[data-theme="light"] .log-link-wrap .log-sep {
      background: rgba(0, 90, 140, 0.25);
    }
    @media (max-width: 520px) {
      .log-link-wrap .log-sep { display: none; }
      .log-link-wrap { gap: 12px; }
    }
    .log-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: transparent;
      border: 1.5px solid rgba(255, 255, 255, 0.4);
      border-radius: 6px;
      color: rgba(230, 240, 250, 0.85);
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      text-decoration: none;
      backdrop-filter: blur(6px);
      transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    }
    .log-link:hover {
      border-color: #00d4ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.08);
      box-shadow: 0 0 18px rgba(0, 200, 255, 0.22);
    }
    .log-link .log-arrow {
      font-size: 14px;
      line-height: 1;
      transition: transform 0.25s ease;
    }
    .log-link:hover .log-arrow {
      transform: translateX(3px);
    }
    html[data-theme="light"] .log-link {
      border-color: rgba(0, 90, 140, 0.35);
      color: #1b2a38;
    }
    html[data-theme="light"] .log-link:hover {
      border-color: #0094c8;
      color: #006a94;
      background: rgba(0, 148, 200, 0.08);
    }
    body.avatar-hover .log-link-wrap {
      filter: blur(8px);
      opacity: 0.35;
    }
    @media (max-width: 720px) {
      .log-link { padding: 7px 14px; font-size: 11px; }
    }

  
    /* ===== Changelog timeline page ===== */
    .log-page {
      position: relative;
      z-index: 2;
      max-width: 720px;
      margin: 0 auto;
      padding: 5.5rem 1.5rem 3rem;
    }
    .log-top {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px 20px;
      margin-bottom: 2rem;
    }
    .log-back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: transparent;
      border: 1.5px solid rgba(255, 255, 255, 0.45);
      border-radius: 6px;
      color: #fff;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 1.1px;
      text-transform: uppercase;
      text-decoration: none;
      backdrop-filter: blur(6px);
      transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    }
    .log-back:hover {
      border-color: #00d4ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.08);
      box-shadow: 0 0 18px rgba(0, 200, 255, 0.22);
    }
    .log-page-title {
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-weight: 900;
      font-size: clamp(28px, 6vw, 40px);
      color: #fff;
      letter-spacing: -0.5px;
      margin: 0 0 0.35rem;
      text-shadow: 2px 4px 14px rgba(0, 0, 0, 0.85);
    }
    .log-page-sub {
      color: rgba(180, 210, 230, 0.75);
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.4px;
      margin: 0 0 2rem;
    }

    /* Timeline */
    .timeline {
      position: relative;
      list-style: none;
      margin: 0;
      padding: 0 0 0 0;
    }
    .timeline::before {
      content: "";
      position: absolute;
      left: 7px;
      top: 6px;
      bottom: 6px;
      width: 2px;
      background: linear-gradient(
        180deg,
        rgba(0, 229, 255, 0.85) 0%,
        rgba(0, 180, 255, 0.35) 55%,
        rgba(0, 120, 200, 0.12) 100%
      );
      border-radius: 2px;
      transform: scaleY(0);
      transform-origin: top center;
      animation: axisGrow 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s forwards;
    }
    @keyframes axisGrow {
      to { transform: scaleY(1); }
    }

    .timeline-item {
      position: relative;
      padding: 0 0 1.75rem 2.15rem;
      opacity: 0;
      transform: translateY(16px);
      animation: itemIn 0.55s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }
    .timeline-item:nth-child(1) { animation-delay: 0.2s; }
    .timeline-item:nth-child(2) { animation-delay: 0.32s; }
    .timeline-item:nth-child(3) { animation-delay: 0.44s; }
    .timeline-item:nth-child(4) { animation-delay: 0.56s; }
    .timeline-item:nth-child(5) { animation-delay: 0.68s; }
    .timeline-item:nth-child(6) { animation-delay: 0.8s; }
    .timeline-item:nth-child(n+7) { animation-delay: 0.9s; }
    .timeline-item:last-child { padding-bottom: 0.25rem; }

    @keyframes itemIn {
      to { opacity: 1; transform: translateY(0); }
    }

    .timeline-dot {
      position: absolute;
      left: 0;
      top: 0.35rem;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #050810;
      border: 2px solid #00e5ff;
      box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.45);
      z-index: 1;
      transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    }
    .timeline-item:first-child .timeline-dot {
      background: #00e5ff;
      box-shadow: 0 0 12px rgba(0, 229, 255, 0.75);
      animation: dotPulse 2.2s ease-in-out infinite;
    }
    @keyframes dotPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.55); }
      50% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
    }
    .timeline-item:hover .timeline-dot {
      transform: scale(1.15);
      background: #00e5ff;
      box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
    }

    .timeline-time {
      display: block;
      color: #00e5ff;
      font-family: "Univers Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.8px;
      font-variant-numeric: tabular-nums;
      margin-bottom: 0.45rem;
    }
    .timeline-card {
      padding: 16px 18px;
      background:
        linear-gradient(to right, rgba(5, 12, 28, 0.97), rgba(8, 18, 40, 0.94));
      border: 1px solid rgba(0, 200, 255, 0.14);
      border-radius: 10px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
      transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .timeline-item:hover .timeline-card {
      border-color: rgba(0, 220, 255, 0.35);
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 180, 255, 0.1);
      transform: translateX(4px);
    }
    .timeline-card p {
      margin: 0;
      color: #e0e6ec;
      font-family: "Univers Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
      font-size: 16px;
      font-weight: 500;
      line-height: 1.55;
    }
    .timeline-card strong { color: #00e5ff; font-weight: 700; }

    /* Status strip above timeline */
    .status-card {
      padding: 20px 24px;
      margin-bottom: 1.75rem;
      box-sizing: border-box;
      background:
        linear-gradient(to right, rgba(5, 12, 28, 0.97), rgba(8, 18, 40, 0.94)),
        radial-gradient(circle at left center, rgba(0, 180, 255, 0.12), transparent 55%);
      border: 1px solid rgba(0, 200, 255, 0.14);
      border-left: 5px solid #00e5ff;
      box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
      font-family: "Univers Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
      opacity: 0;
      transform: translateY(12px);
      animation: itemIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.05s forwards;
    }
    .status-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #00c8ff;
      font-weight: 800;
      font-size: 13px;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 10px;
    }
    .status-label .pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #00e5ff;
      box-shadow: 0 0 10px #00e5ff;
      animation: autoPulse 1.4s ease-in-out infinite;
    }
    .status-text {
      color: #e8eef4;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.45;
      margin: 0 0 8px;
    }
    .status-meta {
      color: rgba(180, 210, 230, 0.7);
      font-size: 14px;
      font-weight: 500;
      margin: 0;
    }
    .status-meta strong { color: #00e5ff; font-weight: 700; }

    .ping-box {
      margin-top: 1.75rem;
      padding: 24px 28px;
      background: linear-gradient(to right, rgba(5, 12, 28, 0.97), rgba(8, 18, 40, 0.94));
      border: 1px solid rgba(0, 200, 255, 0.14);
      border-left: 5px solid rgba(0, 200, 255, 0.45);
      box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
      font-family: "Univers Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
      opacity: 0;
      animation: itemIn 0.55s cubic-bezier(0.165, 0.84, 0.44, 1) 0.95s forwards;
    }
    .ping-box .sec-title {
      color: #00c8ff;
      font-weight: 800;
      font-size: 16px;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin: 0 0 12px;
    }
    .ping-box p {
      color: #e8eef4;
      font-size: 16px;
      font-weight: 500;
      line-height: 1.6;
      margin: 0 0 0.65em;
    }
    .ping-box p:last-child { margin-bottom: 0; }
    .ping-box strong { color: #00e5ff; font-weight: 700; }

    html[data-theme="light"] .log-back {
      border-color: rgba(0, 90, 140, 0.35);
      color: #1b2a38;
    }
    html[data-theme="light"] .log-back:hover {
      border-color: #0094c8;
      color: #006a94;
      background: rgba(0, 148, 200, 0.08);
    }
    html[data-theme="light"] .log-page-title { color: #0a1628; text-shadow: none; }
    html[data-theme="light"] .log-page-sub { color: #5a7a8c; }
    html[data-theme="light"] .timeline::before {
      background: linear-gradient(180deg, #0094c8 0%, rgba(0, 120, 180, 0.35) 100%);
    }
    html[data-theme="light"] .timeline-dot {
      background: #f4f8fb;
      border-color: #0094c8;
    }
    html[data-theme="light"] .timeline-item:first-child .timeline-dot,
    html[data-theme="light"] .timeline-item:hover .timeline-dot {
      background: #0094c8;
    }
    html[data-theme="light"] .timeline-time { color: #0079a8; }
    html[data-theme="light"] .timeline-card {
      background: linear-gradient(to right, #f7fafc, #eef5fa);
      border-color: rgba(0, 90, 140, 0.15);
      box-shadow: 0 10px 28px rgba(20, 50, 90, 0.1);
    }
    html[data-theme="light"] .timeline-card p { color: #243443; }
    html[data-theme="light"] .timeline-card strong { color: #0079a8; }
    html[data-theme="light"] .status-card,
    html[data-theme="light"] .ping-box {
      background: linear-gradient(to right, #f7fafc, #eef5fa);
      border-color: rgba(0, 90, 140, 0.18);
      box-shadow: 0 18px 46px rgba(20, 50, 90, 0.12);
    }
    html[data-theme="light"] .status-label,
    html[data-theme="light"] .ping-box .sec-title { color: #006a94; }
    html[data-theme="light"] .status-text,
    html[data-theme="light"] .ping-box p { color: #1b2a38; }
    html[data-theme="light"] .status-meta { color: #5a7a8c; }
    html[data-theme="light"] .status-meta strong,
    html[data-theme="light"] .ping-box strong { color: #0079a8; }

    @media (max-width: 720px) {
      .log-page { padding: 4.5rem 1rem 2.5rem; }
      .timeline-item { padding-left: 1.85rem; }
      .timeline-card { padding: 14px 14px; }
      .timeline-card p { font-size: 15px; }
      .status-card { padding: 16px 16px; }
      .status-text { font-size: 16px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .timeline::before,
      .timeline-item,
      .status-card,
      .ping-box,
      .timeline-item:first-child .timeline-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
      }
      .timeline::before { transform: scaleY(1); }
    }

/* ===== Sakura theme (shared secondary pages) ===== */
html[data-theme="sakura"] {
  color-scheme: light;
  --accent: #d46a8c;
  --accent-bright: #c4456e;
  --accent-mid: #e891ad;
  --accent-dim: rgba(212, 106, 140, 0.22);
  --text: #3d2a32;
  --text-strong: #2a1a22;
  --muted: #9a7a85;
  --panel-edge: rgba(212, 106, 140, 0.28);
  --panel-bar: #d46a8c;
  --focus-ring: #c4456e;
}
html[data-theme="sakura"] body {
  background: #fdf6f8;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(255, 200, 220, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 230, 240, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #fff8fa 0%, #fdf2f5 50%, #faf0f3 100%);
  color: #3d2a32;
}
html[data-theme="sakura"] body::after {
  box-shadow: inset 0 0 100px rgba(255, 220, 230, 0.35);
}
html[data-theme="sakura"] .music-btn,
html[data-theme="sakura"] .log-back {
  border-color: rgba(212, 106, 140, 0.4);
  color: #3d2a32;
  background: rgba(255, 255, 255, 0.55);
}
html[data-theme="sakura"] .music-btn:hover,
html[data-theme="sakura"] .log-back:hover {
  border-color: #d46a8c;
  color: #c4456e;
  background: rgba(212, 106, 140, 0.1);
  box-shadow: 0 0 18px rgba(212, 106, 140, 0.22);
}
html[data-theme="sakura"] .theme-btn .icon-moon { display: none; }
html[data-theme="sakura"] .theme-btn .icon-sun { display: none; }
html[data-theme="sakura"] .theme-btn .icon-sakura { display: block; }
html[data-theme="sakura"] .log-page-title {
  color: #2a1a22;
  text-shadow: none;
}
html[data-theme="sakura"] .log-page-sub {
  color: #9a7a85;
}
html[data-theme="sakura"] .site-footer {
  color: rgba(61, 42, 50, 0.55);
}

html[data-theme="sakura"] .timeline::before {
  background: linear-gradient(180deg, #d46a8c 0%, rgba(212, 106, 140, 0.35) 55%, rgba(212, 106, 140, 0.12) 100%);
}
html[data-theme="sakura"] .timeline-dot {
  background: #fdf6f8;
  border-color: #d46a8c;
}
html[data-theme="sakura"] .timeline-item:first-child .timeline-dot,
html[data-theme="sakura"] .timeline-item:hover .timeline-dot {
  background: #d46a8c;
  box-shadow: 0 0 12px rgba(212, 106, 140, 0.55);
}
html[data-theme="sakura"] .timeline-time { color: #c4456e; }
html[data-theme="sakura"] .timeline-card {
  background: linear-gradient(to right, #fffafb, #fdf2f5);
  border-color: rgba(212, 106, 140, 0.2);
  box-shadow: 0 10px 28px rgba(180, 100, 130, 0.1);
}
html[data-theme="sakura"] .timeline-item:hover .timeline-card {
  border-color: rgba(212, 106, 140, 0.4);
  box-shadow: 0 14px 36px rgba(180, 100, 130, 0.14), 0 0 20px rgba(255, 180, 200, 0.15);
}
html[data-theme="sakura"] .timeline-card p { color: #3d2a32; }
html[data-theme="sakura"] .timeline-card strong { color: #c4456e; }
html[data-theme="sakura"] .status-card,
html[data-theme="sakura"] .ping-box {
  background: linear-gradient(to right, #fffafb, #fdf2f5);
  border-color: rgba(212, 106, 140, 0.22);
  box-shadow: 0 18px 46px rgba(180, 100, 130, 0.12);
}
html[data-theme="sakura"] .status-card { border-left-color: #d46a8c; }
html[data-theme="sakura"] .ping-box { border-left-color: rgba(212, 106, 140, 0.45); }
html[data-theme="sakura"] .status-label,
html[data-theme="sakura"] .ping-box .sec-title { color: #c4456e; }
html[data-theme="sakura"] .status-label .pulse {
  background: #d46a8c;
  box-shadow: 0 0 10px #d46a8c;
}
html[data-theme="sakura"] .status-text,
html[data-theme="sakura"] .ping-box p { color: #3d2a32; }
html[data-theme="sakura"] .status-meta { color: #9a7a85; }
html[data-theme="sakura"] .status-meta strong,
html[data-theme="sakura"] .ping-box strong { color: #c4456e; }
html[data-theme="sakura"] .log-link-wrap .log-sep {
  background: rgba(212, 106, 140, 0.3);
}
html[data-theme="sakura"] .log-link {
  border-color: rgba(212, 106, 140, 0.4);
  color: #3d2a32;
}
html[data-theme="sakura"] .log-link:hover {
  border-color: #d46a8c;
  color: #c4456e;
  background: rgba(212, 106, 140, 0.1);
}

/* Sakura content polish — match index typography & glow */
html[data-theme="sakura"] .timeline-card,
html[data-theme="sakura"] .timeline-time,
html[data-theme="sakura"] .status-card,
html[data-theme="sakura"] .ping-box {
  font-family: "Nunito", "M PLUS Rounded 1c", sans-serif;
}
html[data-theme="sakura"] .timeline-card p {
  font-size: 16.5px;
  line-height: 1.65;
}
html[data-theme="sakura"] .timeline-item:hover .timeline-card {
  box-shadow:
    0 14px 36px rgba(180, 100, 130, 0.14),
    0 0 22px rgba(255, 180, 200, 0.28);
}
html[data-theme="sakura"] .timeline-item:first-child .timeline-dot {
  animation: sakuraDotPulse 2.2s ease-in-out infinite;
}
@keyframes sakuraDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 106, 140, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(212, 106, 140, 0); }
}


/* ===== Unified fluent backgrounds (match index — no seams) ===== */
html {
  height: 100%;
  background-color: #050810; /* fallback while CSS paints */
}
html[data-theme="light"] { background-color: #e9f0f7; }
html[data-theme="sakura"] { background-color: #fdf6f8; }

body {
  min-height: 100vh;
  background-color: #050810;
  background-image:
    radial-gradient(ellipse at 15% 18%, rgba(0, 47, 167, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 35%, rgba(0, 30, 80, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, #050810 0%, #0a1220 50%, #060a14 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  background-attachment: fixed;
  color: #e6e6e6;
}
html[data-theme="light"] body {
  background-color: #e9f0f7;
  background-image:
    radial-gradient(ellipse at 15% 18%, rgba(0, 120, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f2f6fb 0%, #e3edf7 50%, #eaf1f8 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  background-attachment: fixed;
  color: #1b2a38;
}
html[data-theme="sakura"] body {
  background-color: #fdf6f8;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(255, 200, 220, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 230, 240, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #fff8fa 0%, #fdf2f5 50%, #faf0f3 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  background-attachment: fixed;
  color: #3d2a32;
  font-family: "Nunito", "M PLUS Rounded 1c", "Helvetica Neue", sans-serif;
}

/* Single soft vignette — no double stacking cracks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  box-shadow: inset 0 0 140px rgba(0, 10, 30, 0.7);
  pointer-events: none;
  z-index: 1;
}
html[data-theme="light"] body::after {
  box-shadow: inset 0 0 100px rgba(20, 50, 90, 0.06);
}
html[data-theme="sakura"] body::after {
  box-shadow: inset 0 0 100px rgba(255, 220, 230, 0.35);
}

/* Content above vignette — keep music-ctrl fixed at top-right */
.log-page,
.site-footer {
  position: relative;
  z-index: 2;
}
.music-ctrl {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 40;
}

@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
}


/* ---- Light / Sakura: no text glow; theme-menu entries stay flat ---- */
html[data-theme="light"] .theme-menu button,
html[data-theme="light"] .theme-menu button:hover,
html[data-theme="light"] .theme-menu button.active,
html[data-theme="light"] .music-btn:hover,
html[data-theme="light"] .theme-btn:hover,
html[data-theme="light"] .log-back:hover {
  text-shadow: none !important;
  filter: none !important;
}
html[data-theme="sakura"] .theme-menu button,
html[data-theme="sakura"] .theme-menu button:hover,
html[data-theme="sakura"] .theme-menu button.active,
html[data-theme="sakura"] .music-btn:hover,
html[data-theme="sakura"] .theme-btn:hover,
html[data-theme="sakura"] .log-back:hover {
  text-shadow: none !important;
  filter: none !important;
}
html[data-theme="sakura"] .theme-menu button {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
html[data-theme="sakura"] .theme-menu button:hover,
html[data-theme="sakura"] .theme-menu button:focus-visible,
html[data-theme="sakura"] .theme-menu button.active {
  background: rgba(212, 106, 140, 0.1) !important;
  color: #c4456e !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html[data-theme="sakura"] .theme-btn:hover,
html[data-theme="sakura"] .theme-wrap.open .theme-btn,
html[data-theme="sakura"] .theme-wrap:hover .theme-btn,
html[data-theme="sakura"] .music-btn:hover,
html[data-theme="sakura"] .log-back:hover {
  box-shadow: 0 4px 14px rgba(196, 69, 110, 0.14) !important;
  text-shadow: none !important;
}
html[data-theme="light"] .theme-btn:hover,
html[data-theme="light"] .theme-wrap.open .theme-btn,
html[data-theme="light"] .theme-wrap:hover .theme-btn,
html[data-theme="light"] .music-btn:hover,
html[data-theme="light"] .log-back:hover {
  box-shadow: 0 4px 14px rgba(30, 105, 145, 0.12) !important;
  text-shadow: none !important;
}
