/* KAMUYO site: classes & talents page, home scenery, mockups, quote bands. Loaded after site.css. */

/* ── classes & talents page ── */
.cls-pick { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
@media (max-width: 900px) { .cls-pick { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 520px) { .cls-pick { grid-template-columns: repeat(2, 1fr); } }
.cls-pick button { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); padding: 0; cursor: pointer; background: var(--panel); isolation: isolate; }
.cls-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: -2; filter: saturate(.75) brightness(.7); transition: filter .3s, transform .4s; }
.cls-pick button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, rgba(8,10,20,.9)); }
.cls-pick span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 700 .92rem/1.1 var(--display); color: var(--washi); }
.cls-pick button:hover img { filter: none; transform: scale(1.04); }
.cls-pick button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 30px rgba(226,178,90,.25); }
.cls-pick button[aria-pressed="true"] img { filter: none; }
.classhead { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; margin: 36px 0 24px; }
.classhead img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); }
.classhead h2 { margin-bottom: .2em; }
.small { font-size: .9rem; }
@media (max-width: 760px) { .classhead { grid-template-columns: 1fr; } .classhead img { max-width: 220px; } }
.calc-bar { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgba(23,28,56,.96); border: 1px solid rgba(255,255,255,.08); position: sticky; top: 72px; z-index: 20; backdrop-filter: blur(8px); }
.calc-bar label { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted); }
.calc-bar select { background: var(--night); color: var(--washi); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; max-width: 230px; }
.calc-bar input[type=range] { accent-color: var(--gold); width: 130px; }
.calc-bar .pts { font: 800 1.5rem/1 var(--display); color: var(--gold-2); }
.calc-bar .btn { padding: 9px 16px; font-size: .88rem; }
#msg { color: #ffb3a6; font-size: .9rem; }
.trees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 1000px) { .trees { grid-template-columns: 1fr; } }
.tree { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(226,178,90,.3); min-height: 560px; background: var(--ink); }
.tree .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.34) saturate(.95); }
.tree .head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: rgba(10,12,24,.8); border-bottom: 1px solid rgba(226,178,90,.3); font-size: .85rem; }
.tree .head b { font: 700 1.15rem var(--display); color: var(--gold-2); }
.tree .head .kj { font-size: .85rem; }
.tree .grid { position: relative; margin: 16px auto; width: 272px; height: 476px; display: block; }
.tree svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tal { position: absolute; width: 50px; height: 50px; border-radius: 8px; border: 2px solid #555; background: #0a0818; cursor: pointer; transform: translate(-50%, -50%); padding: 0; }
.tal img, .tal .g, .sp img, .sp .g { width: 100%; height: 100%; border-radius: 6px; display: flex; object-fit: cover; align-items: center; justify-content: center; font: 700 1.2rem var(--display); color: var(--gold); background: radial-gradient(circle, #3a2e72, #120c2a); }
.tal.lock img, .tal.lock .g { filter: grayscale(1) brightness(.45); }
.tal.lock { border-color: #444; }
.tal.avail { border-color: #5be07a; box-shadow: 0 0 10px rgba(91,224,122,.45); }
.tal.part { border-color: #5be07a; }
.tal.max { border-color: var(--gold); box-shadow: 0 0 12px rgba(226,178,90,.6); }
.tal .r { position: absolute; right: -9px; bottom: -9px; background: #000; border: 1px solid #777; border-radius: 5px; font: 700 .68rem/1.4 var(--body); padding: 0 4px; color: #ccc; }
.tal.avail .r, .tal.part .r { color: #5be07a; border-color: #5be07a; }
.tal.max .r { color: var(--gold); border-color: var(--gold); }
.tal.grant::after { content: ""; position: absolute; inset: -6px; border: 1px solid #58dcff; border-radius: 11px; opacity: .65; }
#tip { position: fixed; z-index: 120; max-width: 330px; background: rgba(8,8,18,.97); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; pointer-events: none; display: none; box-shadow: 0 10px 40px #000; font-size: .9rem; line-height: 1.5; }
#tip h4 { margin: 0; font: 700 1.05rem var(--display); color: #fff; }
#tip .k { color: var(--muted); font-size: .8rem; }
#tip .cy { color: #58dcff; }
#tip .y { color: #ffd85a; margin: 6px 0 0; }
#tip .gr { color: #5be07a; margin: 6px 0 0; }
#tip .rd { color: #ff8a7a; margin: 6px 0 0; }
#tip p { margin: 6px 0 0; }
.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sp { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(23,28,56,.8); border: 1px solid rgba(255,255,255,.07); cursor: default; }
.sp img, .sp .g { width: 44px; height: 44px; flex: none; border: 1px solid rgba(226,178,90,.4); font-size: 1rem; }
.sp.no { opacity: .4; }
.sp.tl { border-color: rgba(88,220,255,.5); }
.sp .n { font: 700 .98rem var(--display); color: var(--washi); }
.sp .l { font-size: .78rem; color: var(--muted); }
.matrix { overflow-x: auto; }
.matrix table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 720px; }
.matrix td, .matrix th { border: 1px solid rgba(255,255,255,.08); padding: 8px; text-align: center; }
.matrix th { color: var(--gold); font-weight: 700; }
.matrix td:first-child { text-align: left; }
.matrix .yes { color: #5be07a; }
.matrix .no { color: #4a4470; }
.matrix .am { color: var(--gold-2); }
.matrix .ku { color: #9fe0cf; }
.toggle { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

/* ── home: scenery mosaic, picture pillars, quote bands, mockups, people ── */
.scenic { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; margin-top: 40px; }
.scenic figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.scenic figure:first-child { grid-row: span 2; }
.scenic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.scenic figure:hover img { transform: scale(1.05); }
.scenic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font: 700 1rem var(--display); color: var(--washi); background: linear-gradient(180deg, transparent, rgba(8,10,20,.88)); }
.scenic figcaption span { display: block; font: 500 .82rem var(--body); color: var(--muted); }
@media (max-width: 760px) { .scenic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px 160px; } .scenic figure:first-child { grid-column: span 2; grid-row: auto; } }
.pillar-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pillar-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pillar-img .pad { padding: 18px 22px 24px; }
.pillar-img .num { margin: -44px 0 10px; position: relative; font: 800 2.4rem/1 var(--display); color: var(--gold-2); -webkit-text-stroke: 0; text-shadow: 0 2px 14px #000; }
.quote-band { position: relative; isolation: isolate; overflow: hidden; padding: 170px 0; text-align: center; }
.quote-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10,12,24,.3), rgba(10,12,24,.8)), linear-gradient(180deg, var(--ink), transparent 20%, transparent 80%, var(--ink)); }
.quote-band blockquote { border: 0; padding: 0 16px; margin: 0 auto; max-width: 26ch; font: 700 clamp(1.8rem, 4vw, 3rem)/1.25 var(--display); color: var(--washi); text-shadow: 0 4px 30px rgba(0,0,0,.8); }
.quote-band cite { display: block; margin-top: 18px; font: 700 .8rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.mock-main { display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(226,178,90,.3); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.mock-main img { width: 100%; }
.mock-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.mock-row figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); position: relative; }
.mock-row img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.mock-row figcaption { position: absolute; left: 8px; bottom: 8px; font: 700 .78rem var(--body); background: rgba(8,10,20,.85); padding: 3px 8px; border-radius: 6px; color: var(--washi); }
@media (max-width: 760px) { .mock-row { grid-template-columns: 1fr 1fr; } }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.people figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.people img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.people figcaption { position: absolute; left: 18px; bottom: 16px; right: 18px; }
.people figcaption b { display: block; font: 800 1.6rem/1.1 var(--display); color: var(--washi); text-shadow: 0 2px 16px #000; }
.people figcaption span { color: #e6dfd2; text-shadow: 0 2px 10px #000; font-size: .95rem; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* support */
.support-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; padding: clamp(28px, 5vw, 48px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(214,69,47,.16), rgba(17,21,43,.9) 55%); }
.support-band img { width: 100%; border-radius: 16px; aspect-ratio: 3/2; object-fit: cover; border: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .support-band { grid-template-columns: 1fr; } }
.nav .nav-support { margin-left: 8px; padding: 9px 16px; }
.post figure { margin: 22px 0; }

/* ── the unrevealed tenth class ── */
.redact { display: inline-block; color: #000; background: #000; letter-spacing: -.08em; border-radius: 2px; padding: 0 2px; line-height: 1.15; user-select: none; box-shadow: 0 0 0 1px rgba(214,69,47,.25); }
.mystery-band { background: radial-gradient(ellipse at 25% 50%, rgba(140,20,30,.25), transparent 60%), linear-gradient(180deg, var(--ink), #07070d 50%, var(--ink)); }
.mystery-art { display: block; border-radius: 18px; overflow: hidden; border: 1px solid rgba(214,69,47,.35); box-shadow: 0 0 60px rgba(200,30,40,.18), 0 30px 80px rgba(0,0,0,.6); position: relative; }
.mystery-art img { width: 100%; aspect-ratio: 2/3; object-fit: cover; animation: breathe 6s ease-in-out infinite; }
.mystery-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); pointer-events: none; }
@keyframes breathe { 0%, 100% { filter: brightness(.95); } 50% { filter: brightness(1.25) saturate(1.2); } }
.mystery-hero::after { background: linear-gradient(180deg, rgba(6,4,10,.4), rgba(6,4,10,.75) 55%, var(--ink)); }
.glitch { position: relative; letter-spacing: .3em; color: #ffd9d9; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; }
.glitch::before { color: #ff3b4e; transform: translate(2px, 0); clip-path: inset(0 0 55% 0); animation: glitch 3.2s infinite steps(1); opacity: .8; }
.glitch::after { color: #6fd8ff; transform: translate(-2px, 0); clip-path: inset(55% 0 0 0); animation: glitch 2.7s infinite steps(1) reverse; opacity: .7; }
@keyframes glitch { 0%, 92%, 100% { transform: translate(0, 0); } 93% { transform: translate(-4px, 1px); } 95% { transform: translate(4px, -1px); } 97% { transform: translate(-2px, 0); } }
.dossier { background: rgba(10,8,16,.85); border: 1px solid rgba(214,69,47,.35); border-radius: 14px; padding: 8px 20px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.dossier-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.08); color: var(--washi); }
.dossier-row:last-child { border-bottom: 0; }
.dossier-row b { color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.pulse { color: #ff5b66; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.fragments { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.fragments li { position: relative; padding: 22px 24px 20px 70px; border-radius: 14px; background: rgba(12,10,20,.85); border: 1px solid rgba(255,255,255,.07); }
.fragments .frag-no { position: absolute; left: 20px; top: 20px; font: 800 1.4rem/1 ui-monospace, Consolas, monospace; color: #ff4d5e; }
.fragments p { margin: 0; font-family: var(--display); font-size: 1.12rem; color: #e8dede; font-style: italic; }
.cls-locked { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 10px 18px 10px 10px; border-radius: 14px; text-decoration: none; color: var(--muted); background: linear-gradient(90deg, rgba(120,16,26,.35), rgba(17,21,43,.8)); border: 1px dashed rgba(214,69,47,.5); }
.cls-locked img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; }
.cls-locked b { color: #ffd9d9; letter-spacing: .2em; margin-right: 8px; font-family: var(--display); }
.cls-locked em { margin-left: auto; font-style: normal; color: #ff7a85; font-weight: 700; white-space: nowrap; }
.cls-locked:hover { border-style: solid; color: var(--washi); }
@media (prefers-reduced-motion: reduce) { .mystery-art img, .glitch::before, .glitch::after, .pulse { animation: none; } }
.mystery-art[style*='aspect-ratio:auto'] img { aspect-ratio: 3/2; }

.cls-mystery { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; border: 1px dashed rgba(214,69,47,.7); isolation: isolate; text-decoration: none; box-shadow: 0 0 24px rgba(200,30,40,.25); }
.cls-mystery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; z-index: -2; animation: breathe 5s ease-in-out infinite; }
.cls-mystery::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(8,4,8,.92)); }
.cls-mystery span { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font: 700 .92rem/1.1 var(--display); color: #ffd9d9; letter-spacing: .18em; }
.cls-mystery em { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font: 700 .62rem/1 var(--body); color: #ff6b76; letter-spacing: .2em; text-transform: uppercase; font-style: normal; }
.cls-mystery:hover { border-style: solid; }
@media (min-width: 900px) { .portraits.r5 { grid-template-columns: repeat(5, 1fr); } }
.portrait-mystery { border: 1px dashed rgba(214,69,47,.7); box-shadow: 0 0 30px rgba(200,30,40,.25); }
.portrait-mystery img { object-position: 40% 20%; animation: breathe 5s ease-in-out infinite; }
.portrait-mystery .cap strong { color: #ffd9d9; letter-spacing: .18em; }
.portrait-mystery .cap span { color: #ff7a85; }
