/* ==========================================================================
   MASKED HANMA · cut.css — Cut (減量): the summer/beach arc.
   Sky, sea foam, sand, navy ink, coral (his shorts) as the one loud colour.
   ========================================================================== */
:root.theme-cut {
  /* Layout: a manga beach chapter — navy ink on foam and sand, sky panels, coral accents. */
  --sky: #8fd6f2;
  --sky-2: #d6f1fb;
  --sea: #1b82ab;
  --sea-deep: #115f86;
  --sand: #f5e4c2;
  --sun: #ffd23f;
  --navy: #102c4e;
  --coral: #ff6b4a;
  --foam: #fffaf0;

  --bg: var(--foam);
  --fg: var(--navy);
  --muted: #45607f;
  --line: var(--navy);
  --panel: #ffffff;
  --panel-fg: var(--navy);
  --accent: var(--coral);
  --accent-fg: #ffffff;
  --paper: var(--foam);
  --paper-2: var(--sand);
  --white: #ffffff;
  --ink: var(--navy);
  --ink-soft: #45607f;
  --red: var(--coral);
  --tone: rgba(16, 44, 78, 0.8);
  --header-bg: var(--foam);
  --footer-bg: var(--navy);
  --footer-fg: var(--foam);
  --footer-line: #2b4a70;
  --facts-bg: var(--navy);
  --facts-fg: var(--foam);
  --facts-line: #2b4a70;
  --facts-muted: #a9c3dc;
  --kanji: var(--coral);
  --big-shadow: var(--navy);
  --duo: #7cc8ea;
  --alt-bg: var(--sand);
  --grain: 0.07;
  color-scheme: light;
}

/* ---------- hero: sky, sun, sea ---------- */
.theme-cut .phero {
  --hero-bg: linear-gradient(180deg, #6cc3ea 0%, #a9e0f5 42%, #e3f6fc 78%, #e3f6fc 100%);
}
.theme-cut .phero__inner { padding-bottom: clamp(110px, 16vh, 170px); }
.theme-cut .phero__eyebrow { background: var(--navy); color: var(--foam); }
.theme-cut .phero__big { color: var(--coral); }
.theme-cut .phero__lead { color: var(--navy); }
.theme-cut .phero .btn--ghost { --b-bg: var(--foam); }

.sky-sun {
  position: absolute;
  top: 8%;
  left: 56%;
  z-index: 0;
  width: clamp(180px, 22vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 18px rgba(255, 210, 63, 0.3), 0 0 0 40px rgba(255, 210, 63, 0.14);
}
.sky-sun::before {
  content: "";
  position: absolute;
  inset: -120%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.6) 0deg 3deg, transparent 3deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent 21%, #000 22%, transparent 70%);
  mask: radial-gradient(circle, transparent 21%, #000 22%, transparent 70%);
  animation: sun-spin 120s linear infinite;
}
@keyframes sun-spin { to { transform: rotate(1turn); } }
.sky-sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 17%;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0 2px, transparent 2px 20px),
    linear-gradient(180deg, #2a9bc6, var(--sea-deep));
  -webkit-mask: radial-gradient(24px 13px at 24px 0, transparent 98%, #000) -24px 0 / 48px 100% repeat-x;
  mask: radial-gradient(24px 13px at 24px 0, transparent 98%, #000) -24px 0 / 48px 100% repeat-x;
}
.theme-cut .phero__fig { z-index: 3; height: min(80%, 48vw); }
.theme-cut .phero__kanji { color: var(--coral); -webkit-text-stroke: 3px var(--navy); paint-order: stroke fill; }
.theme-cut .phero .bubble { top: 3%; right: calc(max(2vw, (100vw - var(--max)) / 2 + 20px) + min(34vh, 20vw)); --tail-x: 62%; --tail-skew: 14deg; border-color: var(--navy); color: var(--navy); }
.theme-cut .phero .bubble::before { border-top-color: var(--navy); }
.sfx--kira { top: 40%; right: calc(max(2vw, (100vw - var(--max)) / 2 + 20px) + min(10vh, 6vw)); z-index: 4; --sfx-fill: var(--sun); --sfx-stroke: var(--navy); --sfx-stroke-w: 8px; --sfx-rot: -8deg; font-size: clamp(2.4rem, 1.2rem + 3.4vw, 4.6rem); }
.sfx--splash { bottom: 3%; right: calc(max(2vw, (100vw - var(--max)) / 2 + 20px) + min(44vh, 26vw)); z-index: 4; --sfx-fill: #ffffff; --sfx-stroke: var(--navy); --sfx-rot: 8deg; }
.sfx--kira small, .sfx--splash small { color: var(--navy); }

/* ---------- components on the beach ---------- */
.theme-cut .plan { --tone: rgba(16, 44, 78, 0.22); }
.theme-cut .plan--featured { --plan-bg: var(--navy); --plan-fg: var(--foam); --plan-muted: #b7cbe0; --plan-line: var(--navy); --tone: rgba(255, 250, 240, 0.18); }
.theme-cut .plan--featured .btn { --b-line: var(--foam); }
.theme-cut .calc { --calc-out-bg: var(--navy); --calc-out-fg: var(--foam); }
.theme-cut .rule { background: var(--panel); }
.theme-cut .sec--alt .panel { background: #fffdf7; }
.theme-cut .gallery__sfx { --sfx-fill: var(--sun); --sfx-stroke: var(--navy); }
.theme-cut .cross { --cross-bg: var(--navy); --cross-fg: var(--foam); --cross-em: var(--coral); }
.theme-cut .cross .btn--ghost { --b-fg: var(--foam); --b-line: var(--foam); }
.theme-cut .cross__kanji { color: var(--sky); opacity: 0.18; }
.theme-cut .day__k { color: var(--sea); }
.theme-cut .sec-head__ep { color: var(--sea); }
.theme-cut .rule__k { color: var(--sea); }
.theme-cut .rule__fig { color: var(--coral); }
.theme-cut .plan__list li::before { background: var(--coral); }

@media (max-width: 900px) {
  .theme-cut .phero__inner { padding-bottom: 0; }
  .theme-cut .phero__art { background: linear-gradient(180deg, #6cc3ea, #d6f1fb); }
  .sky-sun { left: 8%; top: 8%; }
  .theme-cut .phero .bubble { top: 5%; right: 16px; --tail-x: 72%; --tail-skew: -20deg; }
  .theme-cut .phero__fig { height: 80%; }
  .sfx--kira { left: 6%; right: auto; top: 36%; }
  .sfx--splash { right: auto; left: 16px; bottom: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  .sky-sun::before { animation: none; }
}

/* mobile: real photos, no blue ink/duotone */
@media (max-width: 900px) {
  .theme-cut .phero__fig { inset: 0; right: auto; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; transform: none; }
  .theme-cut .sky-sun, .theme-cut .sky-sea, .theme-cut .phero__kanji { display: none; }
  /* bubble sits in the sky left of the face */
  .theme-cut .phero .bubble { top: 4%; left: 12px; right: auto; max-width: min(42%, 15rem); font-size: 0.72rem; padding: 0.8em 1em; --tail-x: 74%; --tail-skew: -24deg; }
  .theme-cut .sfx--kira { top: 44%; }
}
/* gallery: real colours right away, no blue duotone */
.theme-cut .g img { filter: none; }
.theme-cut .g::after { display: none; }
