/* ============================================================
   Manga page: a touch of Frutiger Aero
   glossy glass, aqua gel buttons, soap bubbles, sparkles, a bright airy sky.
   Layered on top of /home.css; only used by /manga/.
   ============================================================ */

:root {
  --cream: #eaf6f9;
  --aqua: #2aa7e6;
  --aqua-deep: #0f84c9;
  --aqua-soft: #9ddff7;
}

body.home {
  background:
    radial-gradient(ellipse 90% 60% at 50% 105%, rgba(150, 224, 160, .34), transparent 62%),
    radial-gradient(ellipse 60% 40% at 8% 100%, rgba(120, 214, 238, .35), transparent 70%),
    linear-gradient(180deg, #eaf6f9 0%, #e4f3f7 60%, #e7f6ef 100%);
  background-attachment: fixed;
}

/* --- the sea: a bright glossy rim along the wave --- */
.sea-wave path { fill: #eaf6f9; }
.sea-wave .wave-edge { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: round; filter: drop-shadow(0 -3px 8px rgba(110, 215, 250, .85)); }
.sea::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 38%), radial-gradient(ellipse 50% 70% at 78% 8%, rgba(255, 255, 255, .35), transparent 70%); mix-blend-mode: soft-light; }

/* --- sparkles --- */
.spark { position: absolute; z-index: 1; width: 30px; height: 30px; pointer-events: none; opacity: .0; animation: twinkle 4.6s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .95)); }
.spark::before, .spark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff 50%, transparent); transform: translate(-50%, -50%); }
.spark::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 45%, 55% { opacity: 1; transform: scale(1) rotate(25deg); } }

/* --- soap bubbles --- */
.aero-bubbles { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.aero-bubbles i { position: absolute; bottom: -90px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .95) 0 7%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .5) 0 8%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 50% 50%, rgba(170, 230, 250, .08) 55%, rgba(120, 210, 245, .38) 100%);
  border: 1px solid rgba(255, 255, 255, .65); box-shadow: inset 0 0 12px rgba(255, 255, 255, .55), 0 6px 16px rgba(30, 140, 200, .18);
  opacity: 0; animation: bubble-rise var(--d) linear var(--delay) infinite; will-change: transform; }
@keyframes bubble-rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 8% { opacity: .9; } 50% { transform: translate3d(calc(var(--sway) * 1px), -55vh, 0); } 92% { opacity: .85; } 100% { transform: translate3d(0, -118vh, 0); opacity: 0; } }

/* --- glossy glass --- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(190, 232, 250, .2));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 14px 40px rgba(25, 125, 185, .24), 0 0 0 1px rgba(110, 205, 240, .3), inset 0 1px 0 #fff, inset 0 -12px 26px rgba(120, 214, 245, .22);
}
.site-header.glass::before, .todo.glass::before { content: ''; position: absolute; left: 1px; right: 1px; top: 1px; height: 52%; border-radius: inherit; border-bottom-left-radius: 50% 30%; border-bottom-right-radius: 50% 30%; background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .05)); pointer-events: none; }
.site-header .lang-btn.active { background: linear-gradient(180deg, #fff, #d4f1fd); box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(30, 130, 190, .3), 0 0 0 1px rgba(110, 200, 240, .5); }
.site-header .brand-name { text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 0 14px rgba(255, 255, 255, .6); }
.nav a { color: #4d7a97; }
.nav a:hover, .nav a.active { color: #0c3a5d; }
.nav a.active::after { background: var(--aqua); box-shadow: 0 0 8px rgba(42, 167, 230, .9); }

/* keep the real content above the gloss layers */
.site-header.glass > *, .todo.glass > * { position: relative; z-index: 1; }

/* --- avatar as a glass bubble --- */
.avatar { position: relative; border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 6px rgba(255, 255, 255, .38), 0 0 0 7px rgba(110, 205, 240, .35), 0 14px 34px rgba(25, 125, 185, .45); }
.avatar::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 50%; box-shadow: inset 0 -16px 28px rgba(70, 190, 245, .55), inset 0 0 0 1px rgba(255, 255, 255, .55); pointer-events: none; }
.avatar::after { content: ''; position: absolute; z-index: 2; left: 10%; top: 5%; width: 58%; height: 34%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0)); transform: rotate(-20deg); pointer-events: none; }
.profile-name { text-shadow: 0 1px 0 #fff, 0 8px 22px rgba(60, 185, 240, .38); }
.profile-rule { background: linear-gradient(90deg, transparent, var(--aqua), transparent); width: calc(var(--u) * 60); height: 2px; border-radius: 2px; }
.profile-bio { color: #5f7f93; }

/* --- to-do --- */
.todo h2 { color: #1d5d86; text-shadow: 0 1px 0 rgba(255, 255, 255, .85); }
.todo-add { border: 1px solid rgba(255, 255, 255, .9); background: linear-gradient(180deg, #8de3ff, #1ea3e6); color: #fff; text-shadow: 0 1px 2px rgba(0, 80, 130, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 8px rgba(20, 130, 190, .45); }
.todo-add:hover { background: linear-gradient(180deg, #a6ecff, #34b4f2); }
.todo-box { border: 1px solid rgba(25, 135, 195, .75); background: linear-gradient(180deg, #fff, #cdeefb); box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(25, 120, 175, .3); }
.todo-item:hover .todo-box { background: linear-gradient(180deg, #fff, #b8e8fa); }
.todo-item.checked .todo-box { background: linear-gradient(180deg, #86e0ff, #1b9fe0 55%, #36b8f0); border-color: rgba(10, 120, 185, .85); }
.todo-item.checked .todo-box::after { border-color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 80, 130, .55)); }
.todo-text { color: #2a5f80; }
.todo-list { border-bottom-color: rgba(60, 160, 210, .3); }

/* --- the project card --- */
.project {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(228, 245, 250, .84));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 34px 74px -26px rgba(20, 120, 180, .42), 0 0 0 1px rgba(110, 205, 240, .3), inset 0 1px 0 #fff, inset 0 -22px 46px rgba(130, 218, 244, .2);
}
.project::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(112deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .14) 26%, rgba(255, 255, 255, 0) 40%); pointer-events: none; }
.project-cover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 0 0 5px rgba(110, 205, 240, .45), 0 18px 38px -12px rgba(20, 110, 170, .55); }
.project-cover::after { content: ''; position: absolute; z-index: 5; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 30%), linear-gradient(0deg, rgba(120, 215, 245, .18), transparent 25%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.pi-top { color: #4f87a6; }
.pi-rule { background: linear-gradient(90deg, rgba(42, 167, 230, .65), rgba(42, 167, 230, 0)); height: 2px; border-radius: 2px; }
.pi-title { color: #0c3a5d; text-shadow: 0 1px 0 #fff, 0 8px 22px rgba(70, 190, 245, .3); }
.pi-desc { color: #4f6f84; }
.pi-tags span { border-radius: 999px; padding-left: calc(var(--u) * 18); padding-right: calc(var(--u) * 18); color: #1f6b94; border: 1px solid rgba(70, 175, 225, .6); background: linear-gradient(180deg, #fff, #c9ecfa 55%, #dff5fd); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(30, 130, 190, .2); }

/* --- aqua gel button --- */
.pi-read { position: relative; overflow: hidden; color: #fff; border: 1px solid rgba(255, 255, 255, .9); background: linear-gradient(180deg, #86e3ff 0%, #35b7ee 46%, #0e8bd3 54%, #38c3f0 100%); text-shadow: 0 1px 3px rgba(0, 75, 125, .6); box-shadow: 0 18px 30px -12px rgba(10, 115, 180, .7), 0 0 0 1px rgba(20, 130, 200, .55), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -9px 16px rgba(0, 120, 195, .38); }
.pi-read::before { content: ''; position: absolute; left: 4%; right: 4%; top: 3px; height: 46%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .12)); pointer-events: none; }
.pi-read > * { position: relative; z-index: 1; }
.pi-read:hover { background: linear-gradient(180deg, #a2ecff 0%, #4cc3f4 46%, #1796dc 54%, #4fcff5 100%); box-shadow: 0 22px 34px -12px rgba(10, 115, 180, .75), 0 0 0 1px rgba(20, 130, 200, .6), 0 0 22px rgba(90, 210, 255, .6), inset 0 1px 0 #fff, inset 0 -9px 16px rgba(0, 120, 195, .38); }

.pi-sketch { background: #7fc3e2; opacity: .4; }
.pi-jp { color: #6fa3bd; border-left-color: rgba(70, 160, 210, .45); }
.pi-dots, .pi-dots b { color: #5d9dbd; }
.home-footer { color: #6f93a8; }

/* --- narrow screens: fewer, calmer bubbles --- */
@media (max-width: 900px) {
  .aero-bubbles i:nth-child(n+6) { display: none; }
  .spark:nth-of-type(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aero-bubbles i { animation: none; opacity: .5; bottom: 20%; }
  .spark { animation: none; opacity: .8; }
}
