@charset "UTF-8";

:root {
  --red: #e60012;
  --ink: #20201f;
  --muted: #777168;
  --paper: #f8f6f2;
  --line: rgba(39, 35, 30, .09);
  --gutter: 16px;
  --content-width: 1440px;
  --panel-radius: 28px;
  --cover-radius: 18px;
  --motion: 180ms;
  --font-ui: "Gugu Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Gugu Display", "Songti SC", "Source Han Serif SC", "SimSun", serif;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: #eeeae3;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100svh; isolation: isolate; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .4; cursor: wait; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: #e6001224; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
button:focus:not(:focus-visible) { outline: none; }
.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; }
.skip-link { position: fixed; left: 24px; top: -100px; z-index: 1000; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus-visible { top: 20px; }

/* The canvas is independent from the floating content surface. */
.background-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #eeeae3 url("/assets/background-sculpture-v1.webp?v=20261023T183216Z") no-repeat center top / cover; }
.site-header { height: 254px; padding: 55px max(calc((100vw - var(--content-width)) / 2), calc(17px + clamp(24px, 3.5vw, 56px))) 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.brand-block h1 { margin: 0; line-height: 1; }
.brand-block h1 a { display: block; width: fit-content; border-radius: 4px; }
.brand-wordmark { display: block; width: clamp(230px, 19.5vw, 286px); height: auto; }
.brand-block p { margin: 16px 0 0 3px; color: #6f685f; font-size: 13.5px; font-weight: 450; line-height: 1.6; letter-spacing: .08em; }
.header-actions { display: flex; gap: 0; margin-top: 5px; padding: 3px; border: 1px solid #ffffff80; background: #f8f5efc9; border-radius: 100px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 2px 12px #29201a06; }
.header-button { border: 0; background: none; padding: 10px 18px; border-radius: 100px; min-height: 44px; min-width: 44px; font-size: 14px; font-weight: 450; line-height: 1.5; display: flex; align-items: center; justify-content: center; gap: 9px; transition: background var(--motion); }
.header-button:hover { background: #fff9; }
.share-button { position: relative; }
.share-button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: #75685821; }
.header-button svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* A constant 16 px gutter separates the panel and the viewport edges. */
.collection { margin: 0 var(--gutter) var(--gutter); padding: 38px clamp(24px, 3.5vw, 56px) 58px; min-height: calc(100svh - 254px - var(--gutter)); border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--panel-radius); background: rgba(253, 252, 249, .94); box-shadow: 0 18px 64px -32px rgba(57, 39, 24, .24), 0 1px 2px rgba(255, 255, 255, .6) inset; backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.collection-inner { max-width: var(--content-width); margin: 0 auto; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.panel-heading h2 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.45; letter-spacing: .02em; }
.panel-tools { display: flex; align-items: center; gap: 26px; }
.random-button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 9px 0; min-height: 44px; font-size: 13px; font-weight: 450; line-height: 1.5; color: var(--muted); white-space: nowrap; transition: color var(--motion); }
.random-button:hover { color: var(--ink); }
.random-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.search-box { width: 238px; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid transparent; border-radius: 12px; background: #eeebe5; color: var(--muted); transition: background var(--motion), border-color var(--motion), box-shadow var(--motion); }
.search-box:focus-within { border-color: #e6001240; box-shadow: 0 0 0 3px #e6001208; background: #f9f7f2; }
.search-box>svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.65; fill: none; flex-shrink: 0; }
.search-box input { min-width: 0; width: 100%; padding: 0; border: 0; background: none; font-size: 14px; line-height: 1.5; color: var(--ink); outline: none; }
.search-box input::placeholder { color: #777067; opacity: 1; }
.categories { display: flex; gap: 27px; flex-wrap: wrap; margin-top: 20px; border-bottom: 1px solid var(--line); }
.category { position: relative; background: none; border: 0; padding: 13px 0 15px; min-height: 44px; font-size: 14px; line-height: 1.6; letter-spacing: .01em; color: #716a61; font-weight: 450; white-space: nowrap; transition: color var(--motion); }
.category.active { color: var(--ink); font-weight: 550; }
.category.active::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 18px; height: 2px; background: var(--red); border-radius: 2px; }
.category:hover { color: var(--ink); }
.quiz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-top: 32px; }
.quiz-card { min-width: 0; }
.card-launch { appearance: none; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; background: none; text-align: left; }
.card-art { position: relative; width: 100%; aspect-ratio: 1.6; border-radius: var(--cover-radius); overflow: hidden; isolation: isolate; background: #e9e4db; box-shadow: 0 0 0 1px #24201904 inset; transition: box-shadow 240ms, transform 240ms cubic-bezier(.2,.6,.2,1); }
.card-art>img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 360ms cubic-bezier(.2,.6,.2,1); }
.card-launch:hover .card-art { transform: translateY(-2px); box-shadow: 0 12px 25px -17px rgba(30, 19, 13, .32); }
.card-launch:hover .card-art>img { transform: scale(1.015); }
.card-art[data-visual=otome] { background: #180d15; }
.card-art[data-visual=otome]::before { content: ""; position: absolute; width: 70%; height: 150%; left: 15%; top: 12%; border: 1px solid #ce65874f; border-radius: 50% 50% 0 0; z-index: -1; }
.card-art[data-visual=otome]>img { position: absolute; width: 69%; height: 124%; bottom: -22%; left: 15.5%; object-fit: contain; }
.card-art[data-visual=subject] { background: #e6e0d4; }
.card-art[data-visual=subject]>img { position: absolute; width: 77%; height: 128%; top: 2%; left: 11.5%; object-fit: contain; object-position: center top; mix-blend-mode: multiply; filter: grayscale(1); }
.card-body { padding: 20px 1px 0; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.card-title { margin: 0; font-family: var(--font-display); font-size: clamp(21px, 1.65vw, 25px); font-weight: 600; line-height: 1.6; letter-spacing: .015em; text-wrap: pretty; }
.card-arrow { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; background: transparent; color: #797168; border-radius: 50%; transition: background var(--motion), color var(--motion); }
.card-arrow svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-launch:hover .card-arrow, .card-launch:focus-visible .card-arrow { background: var(--red); color: #fff; }
.card-details { display: flex; align-items: center; gap: 12px; margin-top: 8px; min-height: 22px; font-size: 13px; line-height: 1.6; font-weight: 450; letter-spacing: .01em; color: #6f685f; font-variant-numeric: tabular-nums; }
.completed-label { color: #606c59; font-size: 12px; }
.loading-state { grid-column: 1 / -1; min-height: 250px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: var(--muted); }
.loading-dot { width: 15px; height: 15px; display: inline-block; border: 1.5px solid #e1dbd2; border-top-color: var(--red); border-radius: 50%; animation: turn .8s infinite linear; }
@keyframes turn { to { transform: rotate(360deg); } }
.empty-state, .error-state { text-align: center; padding: 100px 16px; }
.empty-state h3, .error-state h3 { margin: 0 0 24px; font-size: 17px; font-weight: 450; color: var(--muted); }
.small-button { padding: 12px 21px; border: 0; border-radius: 100px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; transition: background .2s; }
.small-button:hover { background: #44413e; }

/* Assessment pages retain their own original visual styles. */
.player-dialog { padding: 0; border: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; background: var(--paper); overflow: hidden; }
.player-dialog[open] { display: flex; flex-direction: column; }
.player-dialog::backdrop { background: var(--ink); }
.player-header { height: 64px; flex: 0 0 64px; display: flex; align-items: center; gap: 22px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.back-library { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 100px; padding: 9px 14px; background: #ebe7e0; font-size: 13px; line-height: 1.5; white-space: nowrap; }
.player-header h2 { flex: 1; margin: 0; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-share { border: 0; padding: 8px 0 8px 12px; background: none; font-size: 13px; line-height: 1.5; color: #716a61; white-space: nowrap; }
.player-share span { margin-left: 6px; }
.frame-host { flex: 1; min-height: 0; position: relative; }
.quiz-frame { width: 100%; height: 100%; border: 0; display: block; background: var(--paper); }
.frame-loading { position: absolute; inset: 64px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--paper); font-size: 13px; color: var(--muted); }
.complete-banner { padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); text-align: center; }
.complete-banner button { padding: 7px 14px; border: 0; background: none; font-size: 12px; }
.complete-banner button span { margin-left: 8px; }
.info-dialog { border: 1px solid #fff; border-radius: 24px; background: #fbf9f5; max-width: calc(100vw - 32px); width: 440px; padding: 40px; box-shadow: 0 24px 100px #0002; }
.info-dialog::backdrop { background: #26221f4d; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.info-dialog h2 { margin: 0 0 26px; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.5; letter-spacing: .02em; }
.dialog-wordmark { display: block; width: 190px; height: auto; }
.info-dialog>p { font-size: 14px; line-height: 1.9; color: #71695e; margin: 16px 0; }
.dialog-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #787064; }
.dialog-close::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #ebe7e1; transition: background var(--motion); }
.dialog-close:hover::before { background: #e1dbd2; }
.dialog-close svg { position: relative; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.info-dialog h2 { padding-right: 18px; }
.text-button { margin-top: 15px; padding: 10px 0; border: 0; background: none; font-size: 13px; line-height: 1.6; }
.text-button>span { margin-left: 12px; }
.share-url-label { display: block; margin-bottom: 22px; }
.share-url-label input { display: block; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f0ede7; font: 12px ui-monospace, monospace; color: #6e655b; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px); background: #292622ed; color: #fff; padding: 14px 22px; border-radius: 100px; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 1000; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.noscript-note { position: fixed; bottom: 16px; left: 16px; right: 16px; border-radius: 14px; background: var(--ink); color: #fff; padding: 20px; text-align: center; }

@media (min-width: 1800px) {
  .collection { padding-top: 44px; }
}
@media (max-width: 1000px) {
  .site-header { height: 230px; padding: 47px 45px 40px; }
  .brand-wordmark { width: 240px; }
  .collection { min-height: calc(100svh - 230px - var(--gutter)); padding: 30px 28px 48px; }
  .quiz-grid { gap: 22px; }
  .card-title { font-size: 21px; }
  .panel-tools { gap: 20px; }
  .search-box { width: 210px; }
}
@media (max-width: 760px) {
  .background-canvas { background-position: 58% top; }
  .site-header { height: 214px; padding: 40px 42px; }
  .brand-wordmark { width: 211px; }
  .brand-block p { font-size: 13px; margin-top: 13px; }
  .header-actions { margin-top: 0; }
  .header-button { padding: 8px 13px; font-size: 13px; min-height: 44px; }
  .collection { min-height: calc(100svh - 214px - var(--gutter)); padding: 29px 25px 44px; border-radius: 24px; }
  .panel-heading h2 { font-size: 28px; }
  .panel-tools { gap: 14px; }
  .random-button span { display: none; }
  .random-button { padding: 10px; margin-left: auto; }
  .search-box { width: 200px; }
  .categories { gap: 25px; margin-top: 17px; }
  .quiz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; padding-top: 26px; }
  .card-art { aspect-ratio: 1.4; border-radius: 16px; }
  .card-title { font-size: 21px; }
  .card-body { padding-top: 15px; }
  .card-details { font-size: 13px; }
  .player-header { height: 56px; flex-basis: 56px; padding: 0 14px; gap: 14px; }
  .frame-loading { top: 56px; }
}
@media (max-width: 480px) {
  .background-canvas { background-position: 50% top; background-size: auto 100svh; }
  .site-header { height: 204px; padding: 35px 37px 30px; gap: 12px; }
  .brand-wordmark { width: 168px; }
  .brand-block p { margin-top: 12px; font-size: 13px; }
  .header-actions { margin-top: 2px; padding: 3px; gap: 0; }
  .header-button { padding: 8px 10px; font-size: 13px; min-height: 44px; gap: 6px; }
  .header-button svg { width: 11px; height: 11px; }
  .collection { min-height: calc(100svh - 204px - var(--gutter)); padding: 27px 20px 32px; border-radius: 22px; }
  .panel-heading { gap: 15px; flex-wrap: wrap; }
  .panel-heading h2 { font-size: 28px; flex: 1; }
  .panel-tools { display: contents; }
  .random-button { order: 1; padding: 7px 0 7px 8px; margin: 0; }
  .random-button span { display: inline; font-size: 13px; }
  .random-button svg { width: 13px; height: 13px; }
  .search-box { order: 2; flex-basis: 100%; width: 100%; padding: 12px; margin-top: 2px; }
  .search-box input { font-size: 16px; }
  .categories { gap: 24px; margin-top: 10px; }
  .category { font-size: 13.5px; padding-top: 14px; padding-bottom: 14px; }
  .quiz-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 25px; }
  .card-art { aspect-ratio: 1.58; }
  .card-title { font-size: 22px; }
  .card-body { padding: 17px 1px 0; }
  .card-details { margin-top: 6px; font-size: 13px; }
  .card-arrow { width: 28px; height: 28px; }
  .card-art[data-visual=subject]>img { width: 72%; left: 14%; }
  .player-header { padding: 0 10px; gap: 10px; }
  .back-library { padding: 8px 11px; font-size: 12px; }
  .player-header h2 { font-size: 13px; }
  .player-share { font-size: 12px; padding-left: 0; }
  .info-dialog { padding: 36px 25px 28px; }
  .info-dialog h2 { font-size: 27px; }
}
@media (max-width: 360px) {
  .site-header { position: relative; padding-left: 34px; padding-right: 34px; gap: 8px; }
  .brand-wordmark { width: 168px; }
  .header-actions { position: absolute; right: 34px; top: 111px; margin-top: 0; }
  .header-button { padding: 7px 10px; font-size: 13px; }
  .collection { padding-left: 17px; padding-right: 17px; }
  .categories { gap: 20px; }
  .card-title { font-size: 21px; }
}
.player-header { height: 64px; flex-basis: 64px; padding: 0 24px; gap: 24px; }
.back-library { display: inline-flex; align-items: center; gap: 14px; border-radius: 0; background: none; padding: 10px 0; min-height: 44px; }
.back-library:hover { background: none; opacity: .72; }
.player-wordmark { display: block; width: 94px; height: auto; }
.player-header h2 { font-size: 13px; font-weight: 450; letter-spacing: .01em; color: #706a61; }
.player-share { font-size: 13px; min-height: 44px; }
@media (max-width: 600px) {
  .player-header { height: 56px; flex-basis: 56px; padding: 0 16px; gap: 16px; }
  .back-library { gap: 10px; }
  .player-wordmark { width: 80px; }
  .player-header h2 { font-size: 12px; }
  .player-share { font-size: 12px; }
}
@media (max-width: 380px) {
  .player-header { gap: 12px; }
  .player-header h2 { display: none; }
  .player-share { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
