/* archetype.moe — ethereal watercolor / shrine pilgrimage */

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

:root {
    --void: #0d0a1a;        /* Yozora */
    --rose: #e8b4c8;        /* Sakura Breath */
    --lavender: #c5b3d9;    /* Fuji Dream */
    --sky: #b8d4e3;         /* Kumo Blue */
    --washi: #f5ede0;       /* Warm Cream */
    --peach: #f0c9a6;       /* Akebono */
    --gold: #d4b896;        /* Kinkaku */
    --tsubaki: #a8556e;     /* Deep Rose */

    --ink: #2a2230;
    --ink-soft: #5a4f60;

    --font-display: 'Cormorant Garamond', 'Inter', serif;
    --font-body: 'Zen Kaku Gothic New', 'Inter', sans-serif;
    --font-mincho: 'Shippori Mincho', 'Cormorant Garamond', serif;
}

html, body {
    background: var(--washi);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.9;
    overflow-x: hidden;
}

body {
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ---- Washi paper texture ---- */
.washi-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.55;
    mix-blend-mode: multiply;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.13  0 0 0 0 0.18  0 0 0 0.025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
}

/* ---- Scroll progress indicator ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 14px;
    width: 2px;
    height: 100vh;
    background: rgba(13, 10, 26, 0.06);
    z-index: 90;
    pointer-events: none;
}
.scroll-progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg,
        var(--rose) 0%,
        var(--tsubaki) 18%,
        var(--sky) 36%,
        var(--lavender) 54%,
        var(--peach) 72%,
        var(--gold) 100%);
    transition: height 0.18s linear;
    box-shadow: 0 0 8px rgba(168, 85, 110, 0.25);
}

/* =========================================================
   HERO — Torii Gate
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: -10%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 30% 35%, rgba(232, 180, 200, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(197, 179, 217, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 90%, rgba(184, 212, 227, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 15%, rgba(240, 201, 166, 0.32) 0%, transparent 55%),
        var(--washi);
    animation: heroDawnShift 60s ease-in-out infinite;
    filter: blur(0.4px);
}

@keyframes heroDawnShift {
    0%   { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0 0; filter: hue-rotate(0deg) blur(0.4px); }
    25%  { filter: hue-rotate(8deg) blur(0.4px); }
    50%  { filter: hue-rotate(-6deg) blur(0.4px); }
    75%  { filter: hue-rotate(4deg) blur(0.4px); }
    100% { filter: hue-rotate(0deg) blur(0.4px); }
}

.hero-content {
    position: relative;
    width: min(900px, 88vw);
    text-align: center;
    padding: 6vh 0;
}

.torii-gate {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(720px, 92vw);
    height: auto;
    transform: translate(-50%, -52%);
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    animation: toriiFadeIn 2.4s 0.2s ease-out forwards;
    pointer-events: none;
}

@keyframes toriiFadeIn {
    0%   { opacity: 0; filter: blur(8px); transform: translate(-50%, -50%) scale(1.04); }
    100% { opacity: 1; filter: blur(0); transform: translate(-50%, -52%) scale(1); }
}

.hero-domain {
    position: relative;
    z-index: 2;
    padding-top: 4vh;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 7vw, 6rem);
    letter-spacing: 0.08em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
    animation: heroCharIn 1.4s ease-out forwards;
    animation-delay: calc(0.7s + var(--i) * 150ms);
}
.hero-char.hero-dot { color: var(--tsubaki); }

@keyframes heroCharIn {
    0%   { opacity: 0; filter: blur(8px); transform: translateY(10px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.hero-kanji {
    font-family: var(--font-mincho);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--tsubaki);
    margin: 1.5rem 0 1rem;
    opacity: 0;
    animation: kanjiBreath 4s ease-in-out infinite, kanjiFadeIn 1.6s 2.2s ease-out forwards;
    text-shadow: 0 0 24px rgba(168, 85, 110, 0.35);
}
@keyframes kanjiFadeIn { to { opacity: 1; } }
@keyframes kanjiBreath {
    0%, 100% { text-shadow: 0 0 18px rgba(168, 85, 110, 0.3); transform: scale(1); }
    50%      { text-shadow: 0 0 36px rgba(168, 85, 110, 0.55); transform: scale(1.03); }
}

.hero-sub {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--ink-soft);
    letter-spacing: 0.06em;
    opacity: 0;
    animation: kanjiFadeIn 1.6s 2.6s ease-out forwards;
}

.hero-jp {
    font-family: var(--font-mincho);
    font-size: 0.95rem;
    color: var(--ink-soft);
    letter-spacing: 0.4em;
    margin-top: 1.2rem;
    opacity: 0;
    animation: kanjiFadeIn 1.6s 3.0s ease-out forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: kanjiFadeIn 1.4s 4s ease-out forwards;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--tsubaki));
    animation: scrollLineDrop 2.4s ease-in-out infinite;
}
.scroll-text {
    font-family: var(--font-mincho);
    font-size: 0.72rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
@keyframes scrollLineDrop {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* =========================================================
   PROLOGUE
   ========================================================= */
.prologue {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12vh 8vw;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(245, 237, 224, 1) 0%, rgba(232, 180, 200, 0.18) 70%, transparent 100%);
}
.prologue-inner {
    max-width: 640px;
    text-align: center;
}
.prologue-mark {
    font-family: var(--font-mincho);
    font-size: 3rem;
    color: var(--tsubaki);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
.prologue-text {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    line-height: 1.85;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}

/* =========================================================
   ARCHETYPE SECTIONS — shared
   ========================================================= */
.archetype {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8vh 8vw;
    overflow: hidden;
    isolation: isolate;
}

.archetype .bg-wash {
    position: absolute;
    inset: -10%;
    z-index: -2;
    pointer-events: none;
}

.archetype .bg-torii {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70vh;
    height: 70vh;
    transform: translate(-50%, -50%) rotate(-3deg);
    opacity: 0.04;
    z-index: -1;
    color: var(--ink);
    pointer-events: none;
}

/* Section-specific watercolor washes */
.tsundere .bg-wash {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(232, 180, 200, 0.42) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(197, 179, 217, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(240, 201, 166, 0.22) 0%, transparent 70%),
        var(--washi);
}
.yandere .bg-wash {
    background:
        radial-gradient(ellipse at 65% 30%, rgba(168, 85, 110, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse at 25% 75%, rgba(13, 10, 26, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(232, 180, 200, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 25%, rgba(197, 179, 217, 0.22) 0%, transparent 60%),
        var(--washi);
}
.kuudere .bg-wash {
    background:
        radial-gradient(ellipse at 35% 30%, rgba(184, 212, 227, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 65%, rgba(197, 179, 217, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 95%, rgba(245, 237, 224, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(232, 180, 200, 0.18) 0%, transparent 65%),
        var(--washi);
}
.dandere .bg-wash {
    background:
        radial-gradient(ellipse at 60% 40%, rgba(197, 179, 217, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 25% 70%, rgba(184, 212, 227, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 85%, rgba(232, 180, 200, 0.22) 0%, transparent 60%),
        var(--washi);
}
.deredere .bg-wash {
    background:
        radial-gradient(ellipse at 35% 35%, rgba(240, 201, 166, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 60%, rgba(232, 180, 200, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 90%, rgba(212, 184, 150, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(197, 179, 217, 0.2) 0%, transparent 60%),
        var(--washi);
}
.himedere .bg-wash {
    background:
        radial-gradient(ellipse at 60% 30%, rgba(212, 184, 150, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 25% 65%, rgba(240, 201, 166, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 110, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 15%, rgba(197, 179, 217, 0.18) 0%, transparent 60%),
        var(--washi);
}

/* Floating kanji */
.floating-kanji {
    position: absolute;
    font-family: var(--font-mincho);
    font-weight: 600;
    font-size: clamp(8rem, 18vw, 16rem);
    pointer-events: none;
    user-select: none;
    z-index: -1;
    line-height: 1;
}
.floating-kanji.k1 { top: 12%; left: 8%; opacity: 0.08; animation: floatY 22s ease-in-out infinite; }
.floating-kanji.k2 { bottom: 10%; right: 10%; opacity: 0.07; animation: floatY 26s -6s ease-in-out infinite reverse; }
.tsundere .floating-kanji { color: var(--tsubaki); }
.yandere  .floating-kanji { color: var(--tsubaki); }
.kuudere  .floating-kanji { color: var(--sky); }
.dandere  .floating-kanji { color: var(--lavender); }
.deredere .floating-kanji { color: var(--peach); }
.himedere .floating-kanji { color: var(--gold); }

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-26px) rotate(2deg); }
}

/* Grid layout */
.archetype-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4vw;
    align-items: center;
    --mx: 0;
    --my: 0;
}
.archetype-grid.reverse {
    grid-template-columns: 60% 40%;
}

/* Vertical name column */
.name-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.vertical-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 2vw;
}
.archetype-grid.reverse .vertical-name { align-items: flex-end; }

.vname-jp {
    font-family: var(--font-mincho);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
    color: var(--ink-soft);
    letter-spacing: 0.4em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 1rem;
    opacity: 0.85;
}
.vname-en {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.06em;
    line-height: 0.95;
    color: var(--ink);
    text-transform: lowercase;

    /* Watercolor-spread effect; resolved when in view */
    filter: blur(6px);
    opacity: 0.3;
    transition: filter 1.4s ease-out, opacity 1.4s ease-out, color 0.6s ease-out;
}
.archetype.in-view .vname-en {
    filter: blur(0);
    opacity: 1;
}
.tsundere.in-view .vname-en { color: var(--tsubaki); }
.yandere.in-view  .vname-en { color: var(--tsubaki); }
.kuudere.in-view  .vname-en { color: #4a6e80; }
.dandere.in-view  .vname-en { color: #6b5e84; }
.deredere.in-view .vname-en { color: var(--tsubaki); }
.himedere.in-view .vname-en { color: #8a6e4a; }

.vname-meta {
    font-family: var(--font-mincho);
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Silhouette + text column */
.silhouette-col {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5vw;
    align-items: center;
}
.archetype-grid.reverse .silhouette-col {
    grid-template-columns: 1fr auto;
}
.archetype-grid.reverse .silhouette-col .silhouette { order: 2; }
.archetype-grid.reverse .silhouette-col .archetype-text { order: 1; }

.silhouette {
    width: clamp(160px, 22vw, 280px);
    height: auto;
    filter: blur(0.8px);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px));
    opacity: 0;
    transform-origin: center;
}
.archetype.in-view .silhouette {
    opacity: 1;
    animation: silEnter 1.6s ease-out forwards;
}
@keyframes silEnter {
    0%   { opacity: 0; transform: translate(0, 30px) scale(0.96); filter: blur(8px); }
    100% { opacity: 1; transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px)) scale(1); filter: blur(0.8px); }
}

.archetype-text {
    max-width: 520px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.archetype.in-view .archetype-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.phrase-jp {
    font-family: var(--font-mincho);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 500;
    color: var(--tsubaki);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    border-left: 1px solid currentColor;
    padding-left: 1rem;
    opacity: 0.9;
}
.kuudere .phrase-jp  { color: #4a6e80; }
.dandere .phrase-jp  { color: #6b5e84; }
.himedere .phrase-jp { color: #8a6e4a; }

.archetype-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.archetype-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
}
.archetype-tags span {
    padding: 4px 12px;
    border: 1px solid currentColor;
    border-radius: 16px;
    opacity: 0.7;
}

/* =========================================================
   CONSTELLATION
   ========================================================= */
.constellation {
    position: relative;
    min-height: 100vh;
    padding: 12vh 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(13, 10, 26, 0.85) 0%, rgba(13, 10, 26, 0.95) 60%, var(--void) 100%);
    color: var(--washi);
    overflow: hidden;
}
.constellation::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 184, 150, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(232, 180, 200, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.constellation-inner {
    width: 100%;
    max-width: 1000px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.const-mark {
    font-family: var(--font-mincho);
    font-size: 2.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0.85;
}
.const-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.08em;
    color: var(--washi);
    margin-bottom: 0.6rem;
}
.const-sub {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: rgba(245, 237, 224, 0.6);
    letter-spacing: 0.04em;
    margin-bottom: 4vh;
}

.const-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 500;
    max-height: 60vh;
}
.const-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cline {
    stroke-dasharray: var(--len, 600);
    stroke-dashoffset: var(--len, 600);
    transition: stroke-dashoffset 2.6s ease-out;
}
.constellation.in-view .cline {
    stroke-dashoffset: 0;
}
.cline:nth-child(1) { transition-delay: 0.0s; }
.cline:nth-child(2) { transition-delay: 0.25s; }
.cline:nth-child(3) { transition-delay: 0.5s; }
.cline:nth-child(4) { transition-delay: 0.75s; }
.cline:nth-child(5) { transition-delay: 1.0s; }
.cline:nth-child(6) { transition-delay: 1.25s; }
.cline:nth-child(7) { transition-delay: 1.5s; }
.cline:nth-child(8) { transition-delay: 1.75s; }

.star {
    cursor: pointer;
    transition: transform 0.4s ease-out;
    opacity: 0;
}
.constellation.in-view .star {
    animation: starFadeIn 1.2s ease-out forwards;
}
.star:nth-child(1) { animation-delay: 1.6s; }
.star:nth-child(2) { animation-delay: 1.8s; }
.star:nth-child(3) { animation-delay: 2.0s; }
.star:nth-child(4) { animation-delay: 2.2s; }
.star:nth-child(5) { animation-delay: 2.4s; }
.star:nth-child(6) { animation-delay: 2.6s; }
@keyframes starFadeIn {
    0%   { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

.star circle:first-child {
    transition: r 0.4s ease-out, opacity 0.4s ease-out;
}
.star:hover circle:first-child {
    r: 22;
    opacity: 0.5;
}
.star.active circle:first-child {
    animation: starPulse 1.4s ease-in-out infinite;
}
@keyframes starPulse {
    0%, 100% { r: 14; opacity: 0.25; }
    50%      { r: 24; opacity: 0.55; }
}

.star-label {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    fill: rgba(245, 237, 224, 0.78);
    letter-spacing: 0.08em;
}
.star-jp {
    font-family: var(--font-mincho);
    font-size: 11px;
    fill: rgba(212, 184, 150, 0.7);
    letter-spacing: 0.25em;
}

/* Speech bubble */
.speech-bubble {
    position: absolute;
    pointer-events: none;
    background: rgba(245, 237, 224, 0.95);
    color: var(--ink);
    padding: 14px 20px 16px;
    border-radius: 14px;
    box-shadow:
        0 8px 30px rgba(168, 85, 110, 0.25),
        0 0 0 1px rgba(212, 184, 150, 0.4);
    font-family: var(--font-mincho);
    max-width: 280px;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-22px) scale(0.9);
    transition: opacity 0.35s ease-out, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 5;
}
.speech-bubble.show {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-30px) scale(1);
}
.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: rgba(245, 237, 224, 0.95);
    box-shadow: 1px 1px 0 rgba(212, 184, 150, 0.4);
}
.bubble-name {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--tsubaki);
    margin-bottom: 0.35rem;
    letter-spacing: 0.06em;
}
.bubble-phrase {
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--void);
    color: var(--washi);
    padding: 8vh 8vw 6vh;
    text-align: center;
    border-top: 1px solid rgba(212, 184, 150, 0.15);
}
.footer-mark {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.4rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}
.footer-line {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(245, 237, 224, 0.55);
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
}
.footer-meta {
    font-family: var(--font-mincho);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(245, 237, 224, 0.35);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px) {
    .archetype-grid,
    .archetype-grid.reverse {
        grid-template-columns: 1fr;
        gap: 4vh;
    }
    .silhouette-col,
    .archetype-grid.reverse .silhouette-col {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3vh;
        justify-items: center;
    }
    .archetype-grid.reverse .silhouette-col .silhouette { order: 1; }
    .archetype-grid.reverse .silhouette-col .archetype-text { order: 2; }
    .vertical-name,
    .archetype-grid.reverse .vertical-name {
        align-items: center;
    }
    .vname-jp { writing-mode: horizontal-tb; }
    .phrase-jp {
        border-left: none;
        border-top: 1px solid currentColor;
        padding-left: 0;
        padding-top: 0.8rem;
        text-align: center;
    }
    .archetype-tags { justify-content: center; }
    .archetype { padding: 10vh 6vw; }
}

@media (max-width: 560px) {
    .const-stage { aspect-ratio: 4 / 5; }
    .star-label { font-size: 11px; }
    .star-jp { font-size: 9px; }
}
