@charset "UTF-8";

/* =========================================================
   心动问答 · 前台视觉系统
   ========================================================= */
:root {
    --bg: #fbf8f3;
    --bg-deep: #f4ece6;
    --surface: #fffdfa;
    --surface-soft: #f8f0eb;
    --ink: #302129;
    --ink-soft: #705b64;
    --ink-faint: #99858d;
    --rose: #b8405b;
    --rose-bright: #cf5c72;
    --rose-deep: #84293f;
    --rose-soft: #f5dfe3;
    --rose-pale: #fdf3f4;
    --plum: #4b2b3b;
    --plum-deep: #2b1c28;
    --sage: #71866f;
    --gold: #b6854d;
    --line: rgba(82, 49, 61, 0.12);
    --line-strong: rgba(82, 49, 61, 0.2);
    --success: #4f7758;
    --danger: #a93b4e;
    --shadow-sm: 0 8px 24px rgba(69, 38, 49, 0.07);
    --shadow: 0 22px 60px rgba(69, 38, 49, 0.11);
    --shadow-lg: 0 36px 90px rgba(55, 26, 39, 0.18);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
    --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
    --font-latin: "Iowan Old Style", "Baskerville", "Times New Roman", Georgia, serif;
    --shell: 1180px;
    --header-h: 82px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
    overflow: hidden;
}

h1, h2, h3, h4, p, blockquote, figure {
    margin: 0;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

::selection {
    background: var(--rose-soft);
    color: var(--rose-deep);
}

:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(var(--shell), calc(100% - 64px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 9999;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.icon-xs {
    width: 15px;
    height: 15px;
}

.icon-sm {
    width: 17px;
    height: 17px;
}

/* Reveal */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s cubic-bezier(.2, .7, .2, 1), transform 0.75s cubic-bezier(.2, .7, .2, 1);
}

.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* =========================================================
   Buttons & common elements
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
    border-color: var(--rose-deep);
    color: #fffaf8;
    box-shadow: 0 10px 26px rgba(132, 41, 63, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--rose-bright) 0%, var(--rose) 100%);
    box-shadow: 0 14px 32px rgba(132, 41, 63, 0.26);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--rose);
    color: var(--rose);
    background: rgba(255, 255, 255, 0.55);
}

.btn-quiet {
    background: transparent;
    border-color: transparent;
    color: var(--ink-soft);
    padding-inline: 12px;
}

.btn-quiet:hover {
    color: var(--rose);
}

.btn-light {
    background: #fff9f4;
    border-color: #fff9f4;
    color: var(--plum-deep);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
    background: #fff;
}

.btn-soft {
    background: var(--rose-pale);
    border-color: var(--rose-soft);
    color: var(--rose-deep);
}

.btn-danger-ghost {
    background: transparent;
    border-color: rgba(169, 59, 78, 0.24);
    color: var(--danger);
}

.btn-danger-ghost:hover {
    background: rgba(169, 59, 78, 0.06);
    border-color: var(--danger);
}

.btn-lg {
    min-height: 54px;
    padding: 15px 28px;
    font-size: 15px;
}

.btn-sm {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-xs {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose-deep);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(132, 41, 63, 0.28);
    padding-bottom: 3px;
    transition: gap 0.25s ease, border-color 0.25s ease;
}

.text-link:hover {
    gap: 13px;
    border-color: var(--rose-deep);
}

.text-link--quiet {
    color: var(--ink-soft);
    border-bottom-color: transparent;
    font-weight: 400;
}

.text-link--quiet:hover {
    color: var(--rose);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rose);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow-line {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.eyebrow-spark {
    color: var(--gold);
    font-size: 12px;
}

.eyebrow--light {
    color: #e9bdc4;
}

.eyebrow--center {
    justify-content: center;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f2d9d5, #d9a7a7);
    color: var(--rose-deep);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    flex: 0 0 auto;
    overflow: hidden;
}

.avatar--sm {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.avatar--xs {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.avatar--admin {
    background: linear-gradient(145deg, #f0c2c6, #b95a6b);
    color: #3b1f2a;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.badge--success {
    background: #e9f0e8;
    color: #456b4c;
}

.badge--rose {
    background: var(--rose-pale);
    color: var(--rose-deep);
}

.badge--muted {
    background: #f0ebe7;
    color: var(--ink-faint);
}

.badge--gold {
    background: #f7edda;
    color: #8d662f;
}

.badge--on-dark {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.badge--on-dark.badge--success {
    background: rgba(224, 244, 228, 0.15);
    color: #d9efd9;
}

.badge--on-dark.badge--muted {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
}

.empty-state {
    padding: 64px 28px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 250, 0.7);
    text-align: center;
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--rose-pale);
    color: var(--rose);
}

.empty-icon .icon {
    width: 26px;
    height: 26px;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--ink-soft);
    margin-bottom: 22px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 12px;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.page-link.is-active {
    border-color: var(--rose-deep);
    background: var(--rose-deep);
    color: #fff;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    background: rgba(251, 248, 243, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header--minimal {
    background: rgba(251, 248, 243, 0.92);
}

.nav-shell {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--rose), var(--rose-deep));
    color: #f9dfe1;
    box-shadow: 0 7px 18px rgba(132, 41, 63, 0.2);
}

.brand-mark svg {
    width: 23px;
    height: 23px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 6px;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.brand-copy small {
    font-family: var(--font-sans);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
}

.nav-cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 32px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--rose);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
}

.nav-link.is-active::after,
.nav-link:hover::after {
    width: 14px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.52);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.user-chip:hover {
    border-color: rgba(184, 64, 91, 0.35);
    background: var(--surface);
}

.user-chip-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-chip-copy small {
    font-size: 8px;
    color: var(--ink-faint);
    letter-spacing: 0.05em;
}

.user-chip-copy strong {
    font-size: 12px;
    font-weight: 500;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-form,
.inline-form {
    display: inline-flex;
    margin: 0;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-faint);
    transition: all 0.2s ease;
}

.icon-button:hover {
    color: var(--rose);
    background: var(--rose-pale);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Flash */
.flash-stack {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(390px, calc(100vw - 32px));
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid rgba(82, 49, 61, 0.1);
    border-radius: 14px;
    background: rgba(255, 253, 250, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    animation: flash-in 0.35s cubic-bezier(.2, .8, .2, 1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash.is-leaving {
    opacity: 0;
    transform: translateX(14px);
}

.flash-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.flash--success .flash-icon {
    background: #e9f1e8;
    color: var(--success);
}

.flash--error .flash-icon {
    background: #f7e4e6;
    color: var(--danger);
}

.flash--info .flash-icon {
    background: var(--rose-pale);
    color: var(--rose);
}

.flash p {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    padding-top: 2px;
}

.flash-close {
    display: inline-flex;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--ink-faint);
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
    color: var(--ink);
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-8px) translateX(8px); }
    to { opacity: 1; transform: none; }
}

/* =========================================================
   Home hero
   ========================================================= */
.hero {
    position: relative;
    padding: 72px 0 0;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.hero-blob--one {
    width: 680px;
    height: 680px;
    top: -260px;
    right: -180px;
    background: radial-gradient(circle, rgba(232, 190, 186, 0.52) 0%, rgba(251, 248, 243, 0) 68%);
}

.hero-blob--two {
    width: 500px;
    height: 500px;
    bottom: 80px;
    left: -260px;
    background: radial-gradient(circle, rgba(215, 203, 184, 0.34) 0%, rgba(251, 248, 243, 0) 68%);
}

.hero-float-word {
    position: absolute;
    top: 40px;
    left: -18px;
    font-family: var(--font-latin);
    font-size: clamp(100px, 15vw, 220px);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(132, 41, 63, 0.07);
    pointer-events: none;
    user-select: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 40px;
    align-items: center;
    min-height: 610px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 18px 0 54px;
}

.hero-copy h1 {
    margin-top: 25px;
    font-family: var(--font-display);
    font-size: clamp(58px, 7.1vw, 94px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.hero-copy h1 em {
    color: var(--rose);
    font-style: italic;
    font-family: var(--font-display);
    position: relative;
    white-space: nowrap;
}

.hero-copy h1 em::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 0;
    bottom: 1px;
    height: 9px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='12' viewBox='0 0 240 12'%3E%3Cpath d='M2 8c55-7 128-7 236-2' fill='none' stroke='%23c47b88' stroke-width='2' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-lead {
    max-width: 455px;
    margin-top: 27px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
}

.avatar-stack {
    display: flex;
}

.avatar--proof {
    width: 32px;
    height: 32px;
    border: 2px solid var(--bg);
    margin-left: -9px;
    font-size: 11px;
}

.avatar--proof:first-child {
    margin-left: 0;
}

.avatar--proof-2 {
    background: linear-gradient(145deg, #dbe4d9, #a7bea8);
    color: #3f5b43;
}

.avatar--proof-3 {
    background: linear-gradient(145deg, #e9dfd1, #c9ae8d);
    color: #614c35;
}

.hero-proof p {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    color: var(--ink-faint);
    font-size: 11px;
}

.hero-proof strong {
    color: var(--ink);
    font-weight: 600;
}

.hero-visual {
    position: relative;
    height: 560px;
    align-self: end;
}

.hero-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(132, 41, 63, 0.2);
    pointer-events: none;
}

.hero-orbit--outer {
    width: 510px;
    height: 510px;
    top: 30px;
    left: 54%;
    transform: translateX(-50%);
    animation: slow-spin 52s linear infinite;
}

.hero-orbit--inner {
    width: 420px;
    height: 420px;
    top: 76px;
    left: 54%;
    transform: translateX(-50%);
    border-color: rgba(182, 133, 77, 0.18);
}

.hero-orbit--outer::before,
.hero-orbit--inner::before {
    content: "♥";
    position: absolute;
    top: 12%;
    left: 5%;
    color: var(--rose);
    font-size: 12px;
    opacity: 0.5;
}

.hero-orbit--inner::before {
    top: auto;
    bottom: 10%;
    left: auto;
    right: 4%;
    color: var(--gold);
    font-size: 9px;
}

.hero-art-card {
    position: absolute;
    top: 42px;
    left: 50%;
    width: 348px;
    min-height: 434px;
    padding: 29px 28px 25px;
    border-radius: 5px 34px 5px 34px;
    background:
        radial-gradient(circle at 110% -8%, rgba(207, 142, 156, 0.36), transparent 43%),
        linear-gradient(145deg, #3d2330 0%, #542c3c 100%);
    color: #f9ece8;
    box-shadow: 0 40px 80px rgba(55, 26, 39, 0.25);
    transform: translateX(-50%) rotate(-2.4deg);
    z-index: 3;
    overflow: hidden;
}

.hero-art-card::before {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -68px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(239, 203, 200, 0.14);
    border-radius: 50%;
}

.hero-art-card::after {
    content: "❀";
    position: absolute;
    right: 19px;
    top: 55px;
    color: rgba(234, 195, 193, 0.23);
    font-size: 30px;
}

.art-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(249, 236, 232, 0.5);
    font-size: 8px;
    letter-spacing: 0.18em;
}

.art-heart {
    color: #dca3aa;
}

.art-heart .icon {
    width: 16px;
    height: 16px;
}

.art-index {
    margin-top: 30px;
    font-family: var(--font-latin);
    font-size: 23px;
    font-style: italic;
    color: #d8a5ac;
}

.hero-art-card h2 {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: 0.01em;
}

.hero-art-card h2 em {
    color: #e5a9b0;
    font-style: italic;
}

.art-lines {
    margin-top: 27px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.art-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    color: rgba(249, 236, 232, 0.55);
    font-size: 11px;
    line-height: 1.5;
}

.art-line.is-selected {
    border-color: rgba(229, 169, 176, 0.35);
    background: rgba(229, 169, 176, 0.1);
    color: #f7e7e4;
}

.art-line i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 8px;
    font-style: normal;
    flex: 0 0 auto;
}

.art-line b {
    font-weight: 400;
}

.art-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 27px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(249, 236, 232, 0.43);
    font-size: 9px;
}

.art-petals {
    color: #d8a5ac;
    font-size: 17px;
}

.floating-card {
    position: absolute;
    z-index: 5;
    background: rgba(255, 252, 248, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 17px;
    box-shadow: 0 20px 50px rgba(66, 32, 45, 0.14);
    backdrop-filter: blur(12px);
}

.floating-card--score {
    right: 3px;
    bottom: 78px;
    width: 155px;
    padding: 16px 17px 13px;
    transform: rotate(2deg);
    animation: gentle-float 6s ease-in-out infinite;
}

.floating-label {
    display: block;
    color: var(--ink-faint);
    font-size: 9px;
    letter-spacing: 0.05em;
}

.floating-card--score strong {
    display: block;
    margin-top: 1px;
    font-family: var(--font-latin);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--rose-deep);
}

.floating-card--score strong span {
    font-size: 15px;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 25px;
    margin-top: 6px;
}

.mini-chart i {
    flex: 1;
    min-height: 4px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(to top, var(--rose-soft), var(--rose));
    opacity: 0.78;
}

.floating-card--note {
    left: -6px;
    bottom: 142px;
    width: 152px;
    padding: 14px 15px;
    display: flex;
    gap: 8px;
    transform: rotate(-4deg);
    animation: gentle-float-alt 7s ease-in-out infinite;
}

.note-icon {
    color: var(--gold);
    font-family: var(--font-latin);
    font-size: 22px;
    line-height: 1;
}

.floating-card--note p {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 11px;
    line-height: 1.7;
}

.hero-sticker {
    position: absolute;
    left: 22px;
    top: 63px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #b58650;
    color: #fff8ea;
    font-family: var(--font-latin);
    font-size: 11px;
    font-style: italic;
    line-height: 1.15;
    text-align: center;
    transform: rotate(-13deg);
    box-shadow: 0 14px 30px rgba(137, 98, 53, 0.24);
}

.hero-sticker::before {
    content: "✦";
    position: absolute;
    top: 8px;
    right: 13px;
    font-size: 8px;
    opacity: 0.75;
}

.hero-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 8px;
    padding-bottom: 26px;
}

.hero-topics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.hero-topics i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.55;
}

.hero-winner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-faint);
    font-size: 10px;
    white-space: nowrap;
}

.hero-winner .icon {
    color: var(--gold);
}

.hero-winner strong {
    color: var(--rose-deep);
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 500;
}

@keyframes slow-spin {
    to { transform: translateX(-50%) rotate(360deg); }
}

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

@keyframes gentle-float-alt {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(7px); }
}

/* Stats band */
.stats-band {
    background: var(--plum-deep);
    color: #f7ede8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    position: relative;
    padding: 31px 30px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.stat-item + .stat-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30%;
    width: 1px;
    height: 40%;
    background: rgba(255, 255, 255, 0.1);
}

.stat-num {
    font-family: var(--font-latin);
    font-size: 39px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.stat-num sup,
.stat-num span {
    font-size: 16px;
    vertical-align: super;
    margin-left: 2px;
    color: #dcaab0;
}

.stat-label {
    color: rgba(247, 237, 232, 0.55);
    font-size: 10px;
    letter-spacing: 0.04em;
}

/* =========================================================
   Home sections
   ========================================================= */
.section {
    padding: 105px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 45px;
}

.section-heading h2 {
    margin-top: 17px;
    font-family: var(--font-display);
    font-size: clamp(35px, 4vw, 51px);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.section-heading h2 em {
    color: var(--rose);
    font-style: italic;
}

.section-heading > p {
    max-width: 310px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.9;
    padding-bottom: 5px;
}

.section-heading--center {
    justify-content: center;
    text-align: center;
}

.section-heading--center h2 {
    font-size: clamp(32px, 3.5vw, 45px);
}

.section-subtitle {
    margin-top: 10px;
    color: var(--ink-faint);
    font-size: 13px;
}

.papers-section {
    position: relative;
}

.paper-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px;
}

.theme-rose {
    --theme: #b8405b;
    --theme-deep: #7e2c40;
    --theme-soft: #f5dfe3;
    --theme-pale: #fff6f6;
    --theme-ink: #582834;
}

.theme-plum {
    --theme: #78556c;
    --theme-deep: #4a3043;
    --theme-soft: #eae0e8;
    --theme-pale: #fbf5f8;
    --theme-ink: #432f3d;
}

.theme-gold {
    --theme: #ad7d48;
    --theme-deep: #78532e;
    --theme-soft: #f2e6d5;
    --theme-pale: #fdf9f2;
    --theme-ink: #59432d;
}

.theme-sage {
    --theme: #728573;
    --theme-deep: #4d614f;
    --theme-soft: #e3ebe2;
    --theme-pale: #f7faf6;
    --theme-ink: #3e5140;
}

.theme-sky {
    --theme: #718795;
    --theme-deep: #4d6572;
    --theme-soft: #e3eaee;
    --theme-pale: #f7fafb;
    --theme-ink: #3c515d;
}

.paper-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 402px;
    padding: 27px 27px 23px;
    border: 1px solid rgba(82, 49, 61, 0.09);
    border-radius: 5px 28px 5px 28px;
    background:
        radial-gradient(circle at 101% 0%, var(--theme-soft) 0%, transparent 36%),
        linear-gradient(155deg, var(--theme-pale) 0%, var(--surface) 75%);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.paper-card::before {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -80px;
    width: 185px;
    height: 185px;
    border-radius: 50%;
    border: 1px solid var(--theme-soft);
    transition: transform 0.5s ease;
}

.paper-card:hover {
    transform: translateY(-7px);
    border-color: var(--theme-soft);
    box-shadow: 0 28px 60px rgba(69, 38, 49, 0.11);
}

.paper-card:hover::before {
    transform: scale(1.16);
}

.paper-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.paper-index {
    font-family: var(--font-latin);
    font-size: 12px;
    font-style: italic;
    color: var(--theme);
    opacity: 0.72;
}

.paper-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.63);
    border: 1px solid rgba(255, 255, 255, 0.72);
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 7px 22px rgba(74, 42, 55, 0.06);
}

.paper-body {
    flex: 1;
    padding-top: 30px;
    position: relative;
    z-index: 1;
}

.paper-kicker {
    color: var(--theme);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.13em;
    opacity: 0.75;
}

.paper-body h3 {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--theme-ink);
}

.paper-body p {
    margin-top: 11px;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.paper-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 9px;
}

.paper-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.paper-card-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    color: var(--theme-deep);
    font-size: 11px;
    font-weight: 500;
}

.circle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--theme-soft);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.54);
    color: var(--theme);
    transition: all 0.25s ease;
}

.paper-card:hover .circle-arrow {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
    transform: rotate(-35deg);
}

/* Topics */
.topics-section {
    position: relative;
    background: #f3ebe5;
}

.topics-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line), transparent);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 54px;
    border-top: 1px solid var(--line);
}

.topic-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 23px 4px;
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s ease, background 0.3s ease;
}

.topic-card:hover {
    padding-left: 12px;
    background: rgba(255, 253, 250, 0.38);
}

.topic-number {
    width: 22px;
    color: var(--ink-faint);
    font-family: var(--font-latin);
    font-size: 10px;
    font-style: italic;
}

.topic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--topic-color) 12%, transparent);
    font-size: 21px;
    flex: 0 0 auto;
}

.topic-card > div {
    flex: 1;
    min-width: 0;
}

.topic-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.topic-card p {
    margin-top: 4px;
    color: var(--ink-faint);
    font-size: 10px;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-count {
    color: var(--ink-faint);
    font-size: 9px;
    white-space: nowrap;
}

/* How */
.how-section {
    background: var(--bg);
}

.how-grid {
    display: grid;
    grid-template-columns: 0.84fr 1.16fr;
    gap: 80px;
    align-items: start;
}

.how-intro {
    position: sticky;
    top: calc(var(--header-h) + 50px);
}

.how-intro h2 {
    margin-top: 19px;
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.how-intro h2 em {
    color: var(--rose);
    font-style: italic;
}

.how-intro p {
    max-width: 340px;
    margin-top: 20px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.95;
}

.how-intro .text-link {
    margin-top: 27px;
}

.steps {
    display: flex;
    flex-direction: column;
}

.step-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 22px;
    padding: 0 0 34px;
}

.step-card:last-child {
    padding-bottom: 0;
}

.step-card::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 58px;
    bottom: 8px;
    width: 1px;
    background: var(--line);
}

.step-card:last-child::before {
    display: none;
}

.step-num {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--rose-deep);
    font-family: var(--font-latin);
    font-size: 13px;
    font-style: italic;
}

.step-icon {
    position: absolute;
    left: 14px;
    top: 50px;
    display: none;
}

.step-card h3 {
    grid-column: 2;
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
}

.step-card p {
    grid-column: 2;
    max-width: 420px;
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.9;
}

/* Quote */
.quote-section {
    padding: 76px 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(219, 179, 167, 0.2), transparent 30%),
        #f7f0e9;
    text-align: center;
}

.quote-section blockquote {
    position: relative;
    display: inline-block;
    max-width: 750px;
    padding: 12px 30px;
}

.quote-mark {
    position: absolute;
    left: -10px;
    top: -35px;
    font-family: var(--font-latin);
    font-size: 110px;
    line-height: 1;
    color: var(--rose-soft);
    user-select: none;
}

.quote-section blockquote > p {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 33px);
    line-height: 1.65;
    letter-spacing: 0.02em;
    color: var(--plum);
}

.quote-section blockquote footer {
    margin-top: 18px;
    color: var(--ink-faint);
    font-size: 9px;
    letter-spacing: 0.15em;
}

/* CTA */
.cta-section {
    padding: 100px 0;
    background: var(--bg);
}

.cta-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    padding: 60px 64px;
    border-radius: 8px 36px 8px 36px;
    background:
        radial-gradient(circle at 88% 18%, rgba(201, 128, 142, 0.3), transparent 35%),
        linear-gradient(130deg, #2b1c28, #482737);
    color: #f8ece8;
    overflow: hidden;
}

.cta-card h2 {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 47px);
    line-height: 1.4;
    font-weight: 500;
}

.cta-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(238, 203, 198, 0.12);
    pointer-events: none;
}

.cta-orbit--one {
    width: 370px;
    height: 370px;
    right: 3%;
    top: -180px;
}

.cta-orbit--two {
    width: 250px;
    height: 250px;
    right: 8%;
    bottom: -160px;
}

.cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
}

.cta-login {
    color: rgba(248, 236, 232, 0.6);
    font-size: 10px;
    border-bottom: 1px solid rgba(248, 236, 232, 0.25);
}

.cta-login:hover {
    color: #fff;
}

.cta-heart {
    position: absolute;
    right: 40%;
    bottom: -55px;
    font-family: var(--font-latin);
    font-size: 150px;
    color: rgba(238, 203, 198, 0.035);
    pointer-events: none;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    padding: 62px 0 25px;
    background: #f3ece6;
    border-top: 1px solid rgba(82, 49, 61, 0.07);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr repeat(2, 0.7fr);
    gap: 50px;
    padding-bottom: 48px;
}

.brand--footer {
    margin-bottom: 15px;
}

.footer-brand p {
    max-width: 320px;
    color: var(--ink-faint);
    font-size: 11px;
    line-height: 1.9;
}

.footer-heading {
    display: block;
    margin-bottom: 15px;
    color: var(--ink);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-column a {
    color: var(--ink-faint);
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--rose);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 9px;
    letter-spacing: 0.02em;
}

.footer-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-heart {
    color: var(--rose);
    font-size: 10px;
}

/* =========================================================
   Auth
   ========================================================= */
.page-auth {
    background:
        radial-gradient(circle at 0% 20%, rgba(238, 207, 199, 0.35), transparent 30%),
        radial-gradient(circle at 100% 90%, rgba(221, 206, 185, 0.3), transparent 30%),
        var(--bg);
}

.auth-wrap {
    padding: 34px 0 66px;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    width: min(1240px, calc(100% - 64px));
    border-radius: 6px 38px 6px 38px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-shell--login {
    grid-template-columns: 0.98fr 1.02fr;
}

.auth-art {
    position: relative;
    padding: 56px 54px;
    min-height: 676px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #f9eee9;
    background:
        radial-gradient(circle at 85% 15%, rgba(206, 125, 140, 0.35), transparent 35%),
        radial-gradient(circle at 0% 100%, rgba(176, 131, 82, 0.16), transparent 35%),
        linear-gradient(145deg, #321f2b 0%, #512b3b 100%);
    overflow: hidden;
}

.auth-art--login {
    background:
        radial-gradient(circle at 15% 20%, rgba(206, 125, 140, 0.3), transparent 38%),
        radial-gradient(circle at 100% 90%, rgba(176, 131, 82, 0.17), transparent 30%),
        linear-gradient(145deg, #492636 0%, #2c1d28 100%);
}

.auth-art-content {
    position: relative;
    z-index: 2;
    max-width: 460px;
}

.auth-art-kicker {
    color: rgba(249, 238, 233, 0.44);
    font-size: 8px;
    letter-spacing: 0.2em;
}

.auth-art h1 {
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: clamp(39px, 4.5vw, 57px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.auth-art h1 em {
    color: #e3a7b0;
    font-style: italic;
}

.auth-art > .auth-art-content > p {
    max-width: 380px;
    margin-top: 20px;
    color: rgba(249, 238, 233, 0.55);
    font-size: 12px;
    line-height: 2;
}

.auth-quote-card {
    position: relative;
    margin-top: 40px;
    padding: 22px 24px 19px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 4px 20px 4px 20px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(8px);
}

.auth-quote-mark {
    position: absolute;
    top: 3px;
    left: 15px;
    font-family: var(--font-latin);
    font-size: 52px;
    line-height: 1;
    color: #d69ba6;
    opacity: 0.35;
}

.auth-quote-card > p {
    position: relative;
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 246, 242, 0.86);
}

.auth-quote-by {
    display: block;
    margin-top: 10px;
    color: rgba(249, 238, 233, 0.4);
    font-size: 8px;
    letter-spacing: 0.1em;
}

.auth-art-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    color: rgba(249, 238, 233, 0.36);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.auth-heart-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 1px solid rgba(227, 167, 176, 0.28);
    color: #e3a7b0;
    font-size: 10px;
}

.auth-ring {
    position: absolute;
    border: 1px solid rgba(238, 205, 201, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.auth-ring--one {
    width: 400px;
    height: 400px;
    right: -190px;
    bottom: -160px;
}

.auth-ring--two {
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -80px;
    border-color: rgba(216, 170, 124, 0.11);
}

.auth-floating-heart {
    position: absolute;
    font-family: var(--font-latin);
    pointer-events: none;
}

.auth-floating-heart--one {
    right: 38px;
    top: 42px;
    color: rgba(245, 217, 213, 0.18);
    font-size: 35px;
    transform: rotate(14deg);
}

.auth-floating-heart--two {
    left: 35px;
    bottom: 31px;
    color: rgba(227, 167, 176, 0.2);
    font-size: 15px;
}

.auth-panel {
    padding: 60px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-head h2 {
    margin-top: 17px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.4vw, 41px);
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.auth-panel-head > p {
    margin-top: 11px;
    color: var(--ink-faint);
    font-size: 11px;
}

.auth-panel-head > p a {
    color: var(--rose);
    border-bottom: 1px solid rgba(184, 64, 91, 0.3);
    padding-bottom: 1px;
}

.auth-form {
    margin-top: 31px;
}

.field-group {
    margin-bottom: 18px;
}

.field-label {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 500;
}

.field-label span {
    color: var(--ink-faint);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-faint);
    width: 17px;
    height: 17px;
    pointer-events: none;
}

.field {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fdfaf7;
    color: var(--ink);
    font-size: 13px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field-wrap .field {
    padding-left: 43px;
    padding-right: 45px;
}

.field::placeholder {
    color: #b2a29f;
}

.field:hover {
    border-color: var(--line-strong);
}

.field:focus {
    outline: none;
    border-color: rgba(184, 64, 91, 0.5);
    background: #fffdfa;
    box-shadow: 0 0 0 4px rgba(184, 64, 91, 0.065);
}

.field.has-error {
    border-color: rgba(169, 59, 78, 0.6);
    background: #fffbfb;
}

.password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-faint);
}

.password-toggle:hover {
    color: var(--rose);
    background: var(--rose-pale);
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 10px;
    line-height: 1.5;
}

.password-strength {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    color: var(--ink-faint);
}

.password-strength[data-level="weak"] { color: #b57a44; }
.password-strength[data-level="medium"] { color: #8d7438; }
.password-strength[data-level="strong"] { color: var(--success); }

.auth-submit {
    margin-top: 9px;
    min-height: 52px;
    border-radius: 11px;
}

.auth-fineprint {
    margin-top: 14px;
    color: var(--ink-faint);
    font-size: 8px;
    line-height: 1.7;
    text-align: center;
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 27px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 10px;
}

.auth-switch a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rose);
    font-weight: 500;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.6;
}

.form-alert > .icon {
    margin-top: 1px;
}

.form-alert--error {
    border: 1px solid rgba(169, 59, 78, 0.15);
    background: #fdf3f3;
    color: #873444;
}

.form-alert strong {
    font-weight: 600;
}

.form-alert span {
    display: block;
}

.login-score-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 44px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(8px);
}

.login-score-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 67px;
    height: 67px;
    border-radius: 50%;
    border: 1px solid rgba(227, 167, 176, 0.4);
    background: rgba(227, 167, 176, 0.08);
    flex: 0 0 auto;
}

.login-score-ring span {
    font-family: var(--font-latin);
    font-size: 24px;
    line-height: 1;
    color: #edb7bd;
}

.login-score-ring small {
    margin-top: 3px;
    color: rgba(249, 238, 233, 0.4);
    font-size: 7px;
}

.login-score-kicker {
    color: rgba(249, 238, 233, 0.35);
    font-size: 7px;
    letter-spacing: 0.14em;
}

.login-score-card h3 {
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
}

.login-score-card p {
    margin-top: 2px;
    color: rgba(249, 238, 233, 0.45);
    font-size: 9px;
}

.login-score-heart {
    margin-left: auto;
    align-self: flex-start;
    color: rgba(227, 167, 176, 0.4);
    font-size: 13px;
}

/* =========================================================
   Quiz
   ========================================================= */
.page-quiz {
    background:
        radial-gradient(circle at 20% 0%, rgba(238, 210, 203, 0.35), transparent 32%),
        var(--bg);
}

.page-quiz .site-footer {
    display: none;
}

.quiz-wrap {
    padding: 38px 0 80px;
}

.quiz-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.quiz-kicker {
    color: var(--rose);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.quiz-head-copy h1 {
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.quiz-head-right {
    display: flex;
    align-items: center;
    gap: 17px;
    padding-bottom: 2px;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quiz-timer small {
    color: var(--ink-faint);
    font-size: 8px;
    margin-left: 2px;
}

.quiz-timer .icon {
    color: var(--rose);
}

.quiz-timer.is-low {
    border-color: #d9b68a;
    background: #fdf7eb;
    color: #96692e;
}

.quiz-timer.is-danger {
    border-color: rgba(169, 59, 78, 0.35);
    background: #fdf1f2;
    color: var(--danger);
    animation: timer-pulse 1.3s ease infinite;
}

@keyframes timer-pulse {
    50% { box-shadow: 0 0 0 4px rgba(169, 59, 78, 0.08); }
}

.quiz-head-count {
    color: var(--ink-faint);
    font-size: 10px;
    white-space: nowrap;
}

.quiz-head-count strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.quiz-progress {
    height: 3px;
    margin-top: 22px;
    border-radius: 10px;
    background: rgba(82, 49, 61, 0.08);
    overflow: hidden;
}

.quiz-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(to right, var(--rose), #d88b95);
    transition: width 0.4s cubic-bezier(.2, .8, .2, 1);
}

.quiz-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
    margin-top: 38px;
    align-items: start;
}

.quiz-aside {
    position: sticky;
    top: calc(var(--header-h) + 28px);
}

.quiz-side-label {
    color: var(--rose);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.quiz-aside h2 {
    margin-top: 13px;
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.quiz-aside h2 em {
    color: var(--rose);
    font-style: italic;
    white-space: nowrap;
}

.quiz-aside > div > p {
    margin-top: 12px;
    color: var(--ink-faint);
    font-size: 10px;
    line-height: 1.9;
}

.quiz-map {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 26px;
}

.quiz-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.62);
    color: var(--ink-faint);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    transition: all 0.18s ease;
}

.quiz-dot:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.quiz-dot.is-answered {
    background: var(--rose-soft);
    border-color: transparent;
    color: var(--rose-deep);
}

.quiz-dot.is-current {
    background: var(--rose-deep);
    border-color: var(--rose-deep);
    color: #fff;
}

.quiz-aside-foot {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    color: var(--ink-faint);
    font-size: 8px;
}

.quiz-dot-legend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quiz-dot-legend i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    border: 1px solid var(--line-strong);
}

.quiz-dot-legend i.is-current { background: var(--rose-deep); border-color: var(--rose-deep); }
.quiz-dot-legend i.is-answered { background: var(--rose-soft); border-color: var(--rose-soft); }

.question-slide {
    display: none;
}

.question-slide.is-active {
    display: block;
    animation: question-in 0.38s cubic-bezier(.2, .8, .2, 1);
}

@keyframes question-in {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: none; }
}

.question-slide {
    position: relative;
    padding: 45px 48px 37px;
    border: 1px solid rgba(82, 49, 61, 0.08);
    border-radius: 5px 30px 5px 30px;
    background: rgba(255, 253, 250, 0.92);
    box-shadow: 0 24px 60px rgba(69, 38, 49, 0.07);
    overflow: hidden;
}

.question-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 48px;
    width: 60px;
    height: 2px;
    background: var(--rose);
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 11px;
}

.question-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--rose-pale);
    color: var(--rose-deep);
    font-size: 9px;
}

.question-number {
    color: var(--ink-faint);
    font-family: var(--font-latin);
    font-size: 11px;
    font-style: italic;
}

.question-points {
    margin-left: auto;
    color: var(--ink-faint);
    font-size: 9px;
}

.question-title {
    margin-top: 22px;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 29px);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: -0.015em;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 27px;
}

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fffdfa;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.option-card:hover {
    border-color: rgba(184, 64, 91, 0.35);
    background: #fffbf8;
    transform: translateX(2px);
}

.option-card:has(input:focus-visible) {
    outline: 2px solid var(--rose);
    outline-offset: 2px;
}

.option-card.is-selected {
    border-color: rgba(184, 64, 91, 0.56);
    background: #fff7f7;
    box-shadow: 0 4px 18px rgba(132, 41, 63, 0.06);
}

.option-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    font-family: var(--font-latin);
    font-size: 12px;
    flex: 0 0 auto;
    transition: all 0.2s ease;
}

.option-card.is-selected .option-letter {
    border-color: var(--rose);
    background: var(--rose);
    color: #fff;
}

.option-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.65;
}

.option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: transparent;
    flex: 0 0 auto;
    transition: all 0.2s ease;
}

.option-card.is-selected .option-check {
    border-color: var(--rose);
    background: var(--rose);
    color: #fff;
}

.question-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 19px;
    color: var(--ink-faint);
    font-size: 9px;
}

.question-hint .icon {
    color: var(--gold);
}

.quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 23px;
}

.quiz-nav .btn[disabled] {
    opacity: 0.35;
    transform: none;
}

.quiz-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quiz-answered-count {
    color: var(--ink-faint);
    font-size: 9px;
}

.quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.quiz-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 22, 30, 0.55);
    backdrop-filter: blur(5px);
}

.quiz-modal-card {
    position: relative;
    width: min(420px, 100%);
    padding: 34px 33px 27px;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: modal-in 0.28s cubic-bezier(.2, .8, .2, 1);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    border-radius: 50%;
    background: var(--rose-pale);
    color: var(--rose);
    font-size: 20px;
}

.quiz-modal-card h2 {
    margin-top: 17px;
    font-family: var(--font-display);
    font-size: 24px;
}

.quiz-modal-card > p {
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.8;
}

.modal-actions {
    display: flex;
    gap: 9px;
    margin-top: 24px;
}

.modal-actions .btn {
    flex: 1;
}

.quiz-noscript {
    margin-top: 24px;
    padding: 14px;
    border: 1px solid #e6d5b7;
    border-radius: 10px;
    background: #fdf8ef;
    color: #7e5d2e;
    font-size: 12px;
}

/* =========================================================
   Result
   ========================================================= */
.result-page {
    padding: 38px 0 94px;
    background:
        radial-gradient(circle at 100% 8%, rgba(238, 207, 199, 0.3), transparent 31%),
        var(--bg);
}

.admin-view-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    padding: 10px 14px;
    border: 1px solid #e7d7bf;
    border-radius: 9px;
    background: #fdf8ee;
    color: #765b37;
    font-size: 11px;
}

.admin-view-note a {
    margin-left: auto;
    color: #765b37;
    border-bottom: 1px solid rgba(118, 91, 55, 0.35);
}

.result-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
    padding: 54px 62px;
    border-radius: 6px 38px 6px 38px;
    background:
        radial-gradient(circle at 85% 20%, rgba(207, 126, 141, 0.35), transparent 36%),
        radial-gradient(circle at 10% 100%, rgba(189, 143, 88, 0.13), transparent 36%),
        linear-gradient(135deg, #2b1c28 0%, #4a2838 100%);
    color: #f8ede9;
    overflow: hidden;
}

.result-orbit {
    position: absolute;
    border: 1px solid rgba(238, 205, 201, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.result-orbit--one {
    width: 450px;
    height: 450px;
    right: -190px;
    top: -260px;
}

.result-orbit--two {
    width: 260px;
    height: 260px;
    left: 36%;
    bottom: -210px;
}

.result-hero-copy {
    position: relative;
    z-index: 1;
}

.result-kicker {
    margin-top: 17px;
    color: rgba(248, 237, 233, 0.42);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.result-hero h1 {
    margin-top: 10px;
    max-width: 700px;
    font-family: var(--font-display);
    font-size: clamp(29px, 4vw, 43px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.result-summary {
    max-width: 520px;
    margin-top: 11px;
    color: rgba(248, 237, 233, 0.56);
    font-size: 11px;
    line-height: 1.9;
}

.result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: rgba(248, 237, 233, 0.65);
    font-size: 9px;
}

.result-badge > span {
    font-size: 11px;
}

.result-badge--tone-bloom {
    border-color: rgba(236, 175, 183, 0.4);
    background: rgba(236, 175, 183, 0.1);
    color: #f3c8cd;
}

.result-badge--tone-rose {
    border-color: rgba(219, 159, 170, 0.3);
    color: #eec2c8;
}

.result-badge--tone-gold {
    border-color: rgba(216, 176, 119, 0.3);
    color: #e5c998;
}

.result-badge--tone-sage {
    border-color: rgba(184, 202, 181, 0.25);
    color: #c5d3c2;
}

.score-orbit {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.score-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 196px;
    height: 196px;
    border-radius: 50%;
    background: conic-gradient(#e6aab2 calc(var(--score) * 1%), rgba(255, 255, 255, 0.12) 0);
    position: relative;
    padding: 6px;
}

.score-ring::before {
    content: "";
    position: absolute;
    inset: -12px;
    border: 1px dashed rgba(238, 205, 201, 0.15);
    border-radius: 50%;
}

.score-ring-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #35212e;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-ring-inner strong {
    font-family: var(--font-latin);
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #f5dede;
}

.score-ring-inner strong small {
    font-family: var(--font-sans);
    font-size: 12px;
    margin-left: 3px;
    color: rgba(248, 237, 233, 0.5);
}

.score-ring-inner span {
    margin-top: 7px;
    color: rgba(248, 237, 233, 0.38);
    font-size: 9px;
    letter-spacing: 0.03em;
}

.score-caption {
    color: rgba(248, 237, 233, 0.34);
    font-size: 7px;
    letter-spacing: 0.25em;
}

.result-stat-bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: -26px 34px 0;
    border: 1px solid rgba(82, 49, 61, 0.08);
    border-radius: 5px 20px 5px 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.result-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 21px 18px;
}

.result-stat + .result-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 27%;
    height: 46%;
    width: 1px;
    background: var(--line);
}

.result-stat-value {
    font-family: var(--font-latin);
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.result-stat-value small {
    font-size: 13px;
    color: var(--ink-faint);
    margin-left: 2px;
}

.result-stat-label {
    color: var(--ink-faint);
    font-size: 9px;
    letter-spacing: 0.03em;
}

.result-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 29px;
}

.review-section {
    margin-top: 67px;
}

.review-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.review-heading h2 {
    margin-top: 13px;
    font-family: var(--font-display);
    font-size: clamp(29px, 3vw, 38px);
    letter-spacing: -0.02em;
}

.review-heading h2 em {
    color: var(--rose);
    font-style: italic;
}

.review-toolbar {
    display: flex;
    gap: 6px;
    padding-bottom: 3px;
}

.filter-pill {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-faint);
    font-size: 9px;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.filter-pill.is-active {
    border-color: var(--rose-deep);
    background: var(--rose-deep);
    color: #fff;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.review-item {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 253, 250, 0.82);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.review-item.is-correct {
    border-left: 3px solid #a8bca7;
}

.review-item.is-wrong,
.review-item.is-missed {
    border-left: 3px solid #d8a6ac;
}

.review-item summary {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
}

.review-item summary::-webkit-details-marker {
    display: none;
}

.review-item[open] {
    background: var(--surface);
    border-color: var(--line-strong);
}

.review-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
}

.is-correct .review-state {
    background: #eaf1e9;
    color: var(--success);
}

.is-wrong .review-state,
.is-missed .review-state {
    background: #f8e9eb;
    color: var(--danger);
}

.review-summary-main {
    min-width: 0;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--ink-faint);
    font-size: 8px;
}

.review-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: var(--line-strong);
}

.review-meta .text-success {
    color: var(--success);
}

.review-meta .text-rose {
    color: var(--rose);
}

.review-title {
    display: block;
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-answer-brief {
    text-align: right;
    line-height: 1.25;
}

.review-answer-brief small {
    display: block;
    color: var(--ink-faint);
    font-size: 7px;
}

.review-answer-brief strong {
    font-family: var(--font-latin);
    font-size: 14px;
    font-style: italic;
    color: var(--ink-soft);
}

.review-chevron {
    color: var(--ink-faint);
    transition: transform 0.25s ease;
}

.review-item[open] .review-chevron {
    transform: rotate(180deg);
}

.review-body {
    padding: 2px 22px 23px 61px;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.review-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 39px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.6;
}

.review-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-family: var(--font-latin);
    font-size: 9px;
    flex: 0 0 auto;
}

.review-option.is-right {
    background: #eef4ed;
    color: #3e5c44;
}

.review-option.is-right .review-option-letter {
    border-color: #adc3a9;
    background: #dfeadd;
}

.review-option.is-picked-wrong {
    background: #fcf0f1;
    color: #852f3d;
}

.review-option.is-picked-wrong .review-option-letter {
    border-color: #e6bcc1;
    background: #f7e2e5;
}

.review-option em {
    margin-left: auto;
    color: inherit;
    font-size: 8px;
    font-style: normal;
    opacity: 0.7;
    white-space: nowrap;
}

.review-explanation {
    margin-top: 12px;
    padding: 13px 15px;
    border-radius: 9px;
    background: var(--surface-soft);
}

.explanation-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gold);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.review-explanation p {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.8;
}

.review-empty {
    padding: 30px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    color: var(--ink-soft);
    font-size: 12px;
    text-align: center;
}

.result-footer-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    text-align: center;
}

.result-note-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--rose-pale);
    color: var(--rose);
    font-size: 14px;
}

.result-footer-note p {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.8;
}

.result-footer-note .btn {
    margin-top: 19px;
}

/* =========================================================
   History
   ========================================================= */
.history-page {
    padding: 48px 0 100px;
    background:
        radial-gradient(circle at 100% 3%, rgba(235, 205, 197, 0.33), transparent 29%),
        var(--bg);
}

.page-intro-history {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 37px;
}

.page-intro-history h1 {
    margin-top: 15px;
    font-family: var(--font-display);
    font-size: clamp(37px, 4.6vw, 54px);
    letter-spacing: -0.035em;
}

.page-intro-history p {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 12px;
}

.resume-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(184, 64, 91, 0.15);
    border-radius: 5px 17px 5px 17px;
    background: linear-gradient(to right, var(--rose-pale), rgba(255, 253, 250, 0.9));
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.resume-banner:hover {
    border-color: rgba(184, 64, 91, 0.35);
    transform: translateY(-2px);
}

.resume-pulse {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rose);
    flex: 0 0 auto;
}

.resume-pulse::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(184, 64, 91, 0.35);
    border-radius: 50%;
    animation: resume-ring 1.8s ease infinite;
}

@keyframes resume-ring {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.resume-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.resume-copy small {
    color: var(--rose);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.resume-copy strong {
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
}

.resume-copy span {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 9px;
}

.resume-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rose-deep);
    font-size: 10px;
    white-space: nowrap;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.history-stat {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 5px 18px 5px 18px;
    background: rgba(255, 253, 250, 0.8);
}

.history-stat--accent {
    border-color: transparent;
    background: var(--plum-deep);
    color: #f8ece8;
}

.history-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--rose);
}

.history-stat--accent .history-stat-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #e3a7b0;
}

.history-stat-icon .icon {
    width: 16px;
    height: 16px;
}

.history-stat > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.history-stat strong {
    font-family: var(--font-latin);
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

.history-stat strong em {
    font-family: var(--font-sans);
    font-size: 11px;
    font-style: normal;
    color: var(--ink-faint);
    margin-left: 2px;
}

.history-stat--accent strong em {
    color: rgba(248, 236, 232, 0.45);
}

.history-stat span {
    color: var(--ink-faint);
    font-size: 9px;
}

.history-stat--accent span {
    color: rgba(248, 236, 232, 0.5);
}

.history-stat small {
    margin-top: 10px;
    color: var(--ink-faint);
    font-size: 8px;
}

.history-stat--accent small {
    color: rgba(248, 236, 232, 0.36);
}

.history-list-section {
    margin-top: 47px;
}

.list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.list-heading h2 {
    margin-top: 9px;
    font-family: var(--font-display);
    font-size: 30px;
}

.list-count {
    color: var(--ink-faint);
    font-size: 9px;
}

.history-list {
    border-top: 1px solid var(--line);
}

.history-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 92px 90px;
    align-items: center;
    gap: 17px;
    padding: 17px 5px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease, padding 0.2s ease;
}

.history-row:hover {
    padding-inline: 12px;
    background: rgba(255, 253, 250, 0.6);
}

.history-row-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--theme-soft, var(--rose-soft));
    font-size: 21px;
}

.history-row-main {
    min-width: 0;
}

.history-row-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.history-row-title h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
}

.history-row-main p {
    margin-top: 4px;
    color: var(--ink-faint);
    font-size: 9px;
}

.history-row-main p span {
    margin-inline: 4px;
    opacity: 0.55;
}

.history-row-score {
    text-align: right;
    line-height: 1.3;
}

.history-row-score strong {
    display: block;
    font-family: var(--font-latin);
    font-size: 24px;
    font-weight: 400;
    color: var(--rose-deep);
}

.history-row-score strong small {
    font-size: 10px;
    color: var(--ink-faint);
}

.history-row-score span {
    color: var(--ink-faint);
    font-size: 8px;
}

.history-row-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: var(--ink-soft);
    font-size: 9px;
    white-space: nowrap;
}

.history-row-link:hover {
    color: var(--rose);
}

.history-list-section > .pagination,
.history-list-section .history-list + .pagination {
    margin-top: 26px;
}

/* =========================================================
   Leaderboard
   ========================================================= */
.leaderboard-page {
    background: var(--bg);
}

.leaderboard-hero {
    position: relative;
    padding: 72px 0 56px;
    color: #f8ece8;
    background:
        radial-gradient(circle at 75% 0%, rgba(205, 124, 139, 0.35), transparent 35%),
        linear-gradient(125deg, #2b1c28, #472635);
    overflow: hidden;
}

.leaderboard-word {
    position: absolute;
    right: -20px;
    top: -44px;
    font-family: var(--font-latin);
    font-size: clamp(180px, 27vw, 350px);
    font-style: italic;
    line-height: 1;
    color: rgba(248, 236, 232, 0.035);
    letter-spacing: -0.09em;
    pointer-events: none;
}

.leaderboard-hero .shell {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.leaderboard-intro {
    max-width: 550px;
}

.leaderboard-intro h1 {
    margin-top: 19px;
    font-family: var(--font-display);
    font-size: clamp(41px, 5vw, 60px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.leaderboard-intro h1 em {
    color: #e1a4ae;
    font-style: italic;
}

.leaderboard-intro > p {
    max-width: 430px;
    margin-top: 15px;
    color: rgba(248, 236, 232, 0.52);
    font-size: 11px;
    line-height: 1.9;
}

.leaderboard-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 21px;
    color: rgba(248, 236, 232, 0.38);
    font-size: 9px;
}

.leaderboard-note .icon {
    color: #d6a893;
}

.leaderboard-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 11px;
    padding-bottom: 6px;
    flex: 0 0 auto;
}

.leaderboard-count {
    font-family: var(--font-latin);
    font-size: 50px;
    line-height: 1;
    font-weight: 400;
    color: #f4d8d9;
}

.leaderboard-count small {
    display: block;
    margin-top: 7px;
    color: rgba(248, 236, 232, 0.4);
    font-family: var(--font-sans);
    font-size: 8px;
    text-align: right;
    letter-spacing: 0.05em;
}

.leaderboard-rule {
    width: 35px;
    height: 1px;
    background: rgba(248, 236, 232, 0.2);
}

.leaderboard-meta > span:last-child {
    color: rgba(248, 236, 232, 0.35);
    font-size: 8px;
    letter-spacing: 0.15em;
}

.leaderboard-body {
    padding-top: 43px;
    padding-bottom: 90px;
}

.podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    align-items: end;
    max-width: 850px;
    margin: 0 auto 44px;
}

.podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 19px 0;
    border: 1px solid var(--line);
    border-radius: 5px 24px 5px 24px;
    background: var(--surface);
    text-align: center;
    overflow: hidden;
}

.podium-card--first {
    order: 2;
    padding-top: 35px;
    min-height: 300px;
    border-color: rgba(184, 64, 91, 0.18);
    background:
        radial-gradient(circle at 50% 0%, var(--rose-pale), transparent 55%),
        var(--surface);
    box-shadow: 0 23px 55px rgba(69, 38, 49, 0.09);
}

.podium-card--second {
    order: 1;
    min-height: 260px;
}

.podium-card--third {
    order: 3;
    min-height: 238px;
}

.podium-rank {
    position: absolute;
    top: 17px;
    left: 19px;
    color: var(--ink-faint);
    font-family: var(--font-latin);
    font-size: 11px;
    font-style: italic;
}

.podium-card--first .podium-rank {
    top: 28px;
    color: var(--rose);
}

.podium-crown {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 21px;
}

.podium-avatar {
    width: 58px;
    height: 58px;
    margin-bottom: 11px;
    font-size: 21px;
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}

.podium-avatar--1 {
    width: 70px;
    height: 70px;
    font-size: 25px;
    background: linear-gradient(145deg, #ecc4c3, #c77a87);
    color: #fff9f5;
}

.podium-avatar--2 {
    background: linear-gradient(145deg, #eadfd2, #c7ab8e);
    color: #654e37;
}

.podium-avatar--3 {
    background: linear-gradient(145deg, #d9e3d7, #a8baa5);
    color: #435b44;
}

.podium-card h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.podium-card h2 em {
    display: inline-block;
    margin-left: 3px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--rose-soft);
    color: var(--rose-deep);
    font-family: var(--font-sans);
    font-size: 7px;
    font-style: normal;
    vertical-align: middle;
}

.podium-score {
    margin-top: 5px;
    color: var(--rose-deep);
    font-family: var(--font-latin);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
}

.podium-score small {
    font-size: 13px;
    color: var(--ink-faint);
}

.podium-attempts {
    margin-top: 5px;
    color: var(--ink-faint);
    font-size: 8px;
}

.podium-bar {
    display: block;
    width: calc(100% + 38px);
    height: 5px;
    margin-top: 22px;
    background: var(--theme-soft, var(--rose-soft));
}

.podium-card--first .podium-bar {
    background: linear-gradient(to right, var(--rose-soft), var(--rose));
}

.rank-section {
    max-width: 1020px;
    margin: 0 auto;
}

.rank-table-wrap {
    border: 1px solid var(--line);
    border-radius: 5px 24px 5px 24px;
    background: var(--surface);
    overflow: hidden;
}

.rank-table-head {
    display: grid;
    grid-template-columns: 70px minmax(0, 1.5fr) 150px 110px 120px;
    gap: 15px;
    padding: 12px 24px;
    background: #f4ece7;
    color: var(--ink-faint);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.rank-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1.5fr) 150px 110px 120px;
    gap: 15px;
    align-items: center;
    padding: 13px 24px;
    border-top: 1px solid var(--line);
    transition: background 0.2s ease;
}

.rank-row:hover {
    background: #fffaf6;
}

.rank-row.is-me {
    background: var(--rose-pale);
    box-shadow: inset 2px 0 var(--rose);
}

.rank-number {
    color: var(--ink-faint);
    font-family: var(--font-latin);
    font-size: 11px;
}

.rank-number--top {
    color: var(--rose);
}

.rank-player {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.avatar--rank {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.rank-player > span:last-child {
    min-width: 0;
}

.rank-player strong {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-player small {
    display: block;
    margin-top: 1px;
    color: var(--ink-faint);
    font-size: 8px;
}

.you-tag {
    display: inline-block;
    padding: 0 4px;
    border-radius: 3px;
    background: var(--rose-soft);
    color: var(--rose-deep);
    font-size: 7px;
    font-style: normal;
}

.rank-score {
    color: var(--rose-deep);
    font-family: var(--font-latin);
    font-size: 21px;
}

.rank-score small {
    font-size: 9px;
    color: var(--ink-faint);
}

.rank-attempts,
.rank-date {
    color: var(--ink-faint);
    font-size: 9px;
}

.rank-footnote {
    margin-top: 12px;
    color: var(--ink-faint);
    font-size: 8px;
    text-align: center;
}

.leaderboard-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1020px;
    margin: 56px auto 0;
    padding: 38px 42px;
    border-radius: 5px 26px 5px 26px;
    background: linear-gradient(135deg, #33212d, #4c2939);
    color: #f8ece8;
}

.leaderboard-cta h2 {
    margin-top: 11px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
}

.leaderboard-cta p {
    margin-top: 5px;
    color: rgba(248, 236, 232, 0.45);
    font-size: 10px;
}

/* =========================================================
   Error page
   ========================================================= */
.error-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px;
    background:
        radial-gradient(circle at 20% 20%, rgba(231, 196, 188, 0.45), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(221, 204, 181, 0.4), transparent 35%),
        var(--bg);
}

.error-card {
    position: relative;
    width: min(535px, 100%);
    padding: 49px 46px;
    border: 1px solid var(--line);
    border-radius: 5px 32px 5px 32px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.error-brand {
    margin-bottom: 40px;
}

.error-code {
    position: absolute;
    right: 30px;
    top: 20px;
    font-family: var(--font-latin);
    font-size: 100px;
    font-style: italic;
    line-height: 1;
    color: var(--rose-soft);
    opacity: 0.55;
}

.error-card h1 {
    position: relative;
    font-family: var(--font-display);
    font-size: 35px;
    letter-spacing: -0.02em;
}

.error-message {
    position: relative;
    max-width: 350px;
    margin-top: 11px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.9;
}

.error-actions {
    position: relative;
    display: flex;
    gap: 9px;
    margin-top: 26px;
}

.error-decoration {
    position: absolute;
    right: 41px;
    bottom: 33px;
    color: var(--rose);
    font-size: 18px;
    opacity: 0.35;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
    .shell {
        width: min(var(--shell), calc(100% - 48px));
    }

    .hero-grid {
        gap: 22px;
    }

    .hero-art-card {
        width: 315px;
        min-height: 410px;
    }

    .hero-visual {
        height: 525px;
    }

    .hero-orbit--outer {
        width: 450px;
        height: 450px;
    }

    .hero-orbit--inner {
        width: 370px;
        height: 370px;
    }

    .floating-card--score {
        right: -3px;
    }

    .floating-card--note {
        left: -12px;
    }

    .hero-sticker {
        left: 5px;
    }

    .paper-card {
        padding: 23px;
    }

    .auth-panel {
        padding: 50px 45px;
    }

    .auth-art {
        padding: 48px 40px;
    }

    .quiz-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 28px;
    }

    .quiz-map {
        grid-template-columns: repeat(4, 1fr);
    }

    .review-title {
        white-space: normal;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 72px;
    }

    .hero {
        padding-top: 50px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
    }

    .hero-copy {
        padding-bottom: 24px;
        max-width: 650px;
    }

    .hero-copy h1 {
        font-size: clamp(54px, 11vw, 78px);
    }

    .hero-visual {
        width: min(520px, 100%);
        height: 480px;
        margin: 0 auto;
        align-self: center;
    }

    .hero-art-card {
        top: 25px;
    }

    .hero-orbit--outer {
        top: 18px;
    }

    .hero-orbit--inner {
        top: 61px;
    }

    .floating-card--score {
        right: 0;
        bottom: 54px;
    }

    .floating-card--note {
        left: 0;
        bottom: 115px;
    }

    .hero-sticker {
        top: 39px;
    }

    .hero-footer {
        margin-top: 12px;
    }

    .stat-item {
        padding: 25px 20px;
    }

    .stat-num {
        font-size: 32px;
    }

    .section {
        padding: 78px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 32px;
    }

    .section-heading > p {
        max-width: 470px;
    }

    .paper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-grid {
        column-gap: 28px;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .how-intro {
        position: static;
    }

    .how-intro p {
        max-width: 480px;
    }

    .cta-card {
        padding: 45px 40px;
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-actions {
        align-items: flex-start;
    }

    .auth-wrap {
        padding: 20px 0 45px;
    }

    .auth-shell {
        width: min(600px, calc(100% - 32px));
        grid-template-columns: 1fr;
        border-radius: 5px 28px 5px 28px;
    }

    .auth-art {
        display: none;
    }

    .auth-panel {
        padding: 42px 35px;
        min-height: auto;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .quiz-layout {
        grid-template-columns: 1fr;
    }

    .quiz-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 15px;
    }

    .quiz-aside > div:first-child > p {
        display: none;
    }

    .quiz-aside h2 {
        font-size: 22px;
    }

    .quiz-map {
        grid-template-columns: repeat(8, 1fr);
        max-width: 300px;
        margin: 0;
    }

    .quiz-aside-foot {
        display: none;
    }

    .quiz-dot {
        width: 27px;
        height: 27px;
    }

    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-intro-history {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .history-row {
        grid-template-columns: 48px minmax(0, 1fr) 82px;
    }

    .history-row-link {
        grid-column: 2 / -1;
        justify-content: flex-start;
        margin-top: -7px;
    }

    .leaderboard-hero .shell {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .leaderboard-meta {
        align-items: flex-start;
        flex-direction: row;
        align-items: center;
        gap: 13px;
    }

    .leaderboard-count {
        font-size: 35px;
    }

    .leaderboard-count small {
        display: inline;
        margin-left: 5px;
    }

    .leaderboard-rule {
        width: 20px;
    }

    .rank-table-head {
        display: none;
    }

    .rank-row {
        grid-template-columns: 35px minmax(0, 1fr) 70px 70px;
        gap: 10px;
        padding: 13px 16px;
    }

    .rank-date {
        display: none;
    }

    .leaderboard-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px;
    }

    .result-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 33px;
    }

    .score-orbit {
        align-items: flex-start;
    }

    .score-ring {
        width: 165px;
        height: 165px;
    }

    .score-ring-inner strong {
        font-size: 53px;
    }

    .result-stat-bar {
        margin-inline: 15px;
    }

    .review-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .review-body {
        padding-left: 22px;
    }
}

@media (max-width: 760px) {
    .shell {
        width: calc(100% - 32px);
    }

    .nav-shell {
        gap: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cluster {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 17px;
        border: 1px solid var(--line);
        border-radius: 17px;
        background: rgba(255, 252, 248, 0.98);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .site-header.nav-open .nav-cluster {
        display: flex;
        animation: nav-in 0.22s ease;
    }

    @keyframes nav-in {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: none; }
    }

    .main-nav {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 11px 5px;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.is-active {
        color: var(--rose);
    }

    .nav-actions {
        justify-content: flex-end;
    }

    .user-chip {
        margin-right: auto;
    }

    .hero {
        padding-top: 35px;
    }

    .hero-copy {
        padding-bottom: 10px;
    }

    .hero-copy h1 {
        margin-top: 20px;
        font-size: clamp(48px, 13.5vw, 68px);
    }

    .hero-lead {
        font-size: 13px;
        line-height: 1.9;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 145px;
    }

    .hero-visual {
        width: 100%;
        height: 440px;
        margin-bottom: -10px;
    }

    .hero-art-card {
        width: 300px;
        min-height: 390px;
        padding: 25px 24px;
    }

    .hero-art-card h2 {
        font-size: 30px;
    }

    .hero-orbit--outer {
        width: 400px;
        height: 400px;
    }

    .hero-orbit--inner {
        width: 330px;
        height: 330px;
    }

    .floating-card--note {
        bottom: 95px;
        left: -5px;
    }

    .floating-card--score {
        right: -4px;
        bottom: 42px;
    }

    .hero-sticker {
        left: -2px;
        top: 16px;
        width: 66px;
        height: 66px;
        font-size: 9px;
    }

    .hero-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        padding-bottom: 22px;
    }

    .hero-topics {
        gap: 7px;
        font-size: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 21px 18px;
    }

    .stat-item + .stat-item::before {
        top: 20%;
        height: 60%;
    }

    .stat-item:nth-child(3)::before {
        display: none;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-item {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .stat-num {
        font-size: 32px;
    }

    .section {
        padding: 62px 0;
    }

    .section-heading h2 {
        font-size: 33px;
    }

    .paper-grid {
        grid-template-columns: 1fr;
    }

    .paper-card {
        min-height: 360px;
    }

    .topic-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .topic-card {
        padding: 17px 2px;
    }

    .topic-card:hover {
        padding-left: 5px;
    }

    .topic-card p {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .quote-section {
        padding: 58px 0;
    }

    .quote-section blockquote {
        padding-inline: 6px;
    }

    .quote-mark {
        left: -4px;
        top: -25px;
        font-size: 75px;
    }

    .cta-section {
        padding: 62px 0;
    }

    .cta-card {
        padding: 35px 26px;
        border-radius: 5px 25px 5px 25px;
    }

    .cta-card h2 {
        font-size: 29px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding-bottom: 30px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        line-height: 1.7;
    }

    .auth-panel {
        padding: 34px 23px;
    }

    .auth-shell {
        width: calc(100% - 24px);
    }

    .auth-panel-head h2 {
        font-size: 29px;
    }

    .auth-form {
        margin-top: 25px;
    }

    .quiz-wrap {
        padding-top: 26px;
    }

    .quiz-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .quiz-head-copy h1 {
        font-size: 26px;
    }

    .quiz-head-right {
        width: 100%;
        justify-content: space-between;
    }

    .quiz-timer {
        padding: 7px 10px;
    }

    .quiz-layout {
        margin-top: 25px;
        gap: 22px;
    }

    .quiz-aside {
        display: block;
    }

    .quiz-aside h2 {
        font-size: 21px;
    }

    .quiz-map {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 14px;
        max-width: none;
    }

    .quiz-dot {
        width: 28px;
        height: 28px;
    }

    .question-slide {
        padding: 27px 19px 23px;
        border-radius: 4px 22px 4px 22px;
    }

    .question-slide::before {
        left: 19px;
        width: 45px;
    }

    .question-title {
        margin-top: 17px;
        font-size: 22px;
        line-height: 1.6;
    }

    .option-list {
        margin-top: 21px;
        gap: 7px;
    }

    .option-card {
        min-height: 54px;
        padding: 10px 12px;
        gap: 10px;
    }

    .option-letter {
        width: 28px;
        height: 28px;
    }

    .option-text {
        font-size: 12px;
    }

    .quiz-nav {
        gap: 10px;
    }

    .quiz-nav .btn {
        padding-inline: 16px;
        font-size: 12px;
    }

    .quiz-answered-count {
        display: none;
    }

    .quiz-head-count {
        font-size: 9px;
    }

    .result-page {
        padding-top: 20px;
    }

    .result-hero {
        padding: 30px 22px;
        gap: 22px;
        border-radius: 5px 24px 5px 24px;
    }

    .result-hero h1 {
        font-size: 28px;
    }

    .result-badges {
        gap: 5px;
    }

    .result-badge {
        padding-inline: 8px;
    }

    .score-ring {
        width: 145px;
        height: 145px;
    }

    .score-ring-inner strong {
        font-size: 46px;
    }

    .result-stat-bar {
        grid-template-columns: repeat(2, 1fr);
        margin: -17px 9px 0;
    }

    .result-stat:nth-child(3)::before {
        display: none;
    }

    .result-stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .result-actions {
        gap: 7px;
    }

    .result-actions .btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 130px;
        font-size: 12px;
        padding-inline: 12px;
    }

    .review-section {
        margin-top: 45px;
    }

    .review-heading h2 {
        font-size: 30px;
    }

    .review-toolbar {
        padding: 0;
    }

    .review-item summary {
        grid-template-columns: 25px minmax(0, 1fr) 18px;
        gap: 9px;
        padding: 13px;
    }

    .review-state {
        width: 24px;
        height: 24px;
    }

    .review-answer-brief {
        display: none;
    }

    .review-title {
        font-size: 14px;
        white-space: normal;
    }

    .review-body {
        padding: 0 13px 17px 47px;
    }

    .review-option {
        align-items: flex-start;
        font-size: 10px;
    }

    .review-option em {
        display: none;
    }

    .result-footer-note p {
        font-size: 16px;
    }

    .history-page {
        padding-top: 28px;
    }

    .page-intro-history h1 {
        font-size: 35px;
    }

    .history-stats {
        gap: 8px;
    }

    .history-stat {
        padding: 15px;
    }

    .history-stat strong {
        font-size: 26px;
    }

    .history-stat-icon {
        width: 29px;
        height: 29px;
        margin-bottom: 11px;
    }

    .history-row {
        grid-template-columns: 40px minmax(0, 1fr) 62px;
        gap: 11px;
        padding: 13px 2px;
    }

    .history-row-emoji {
        width: 39px;
        height: 39px;
        font-size: 18px;
    }

    .history-row-title h3 {
        font-size: 15px;
    }

    .history-row-main p {
        font-size: 8px;
        line-height: 1.6;
    }

    .history-row-score strong {
        font-size: 20px;
    }

    .resume-banner {
        align-items: flex-start;
        padding: 14px;
    }

    .resume-action {
        display: none;
    }

    .leaderboard-hero {
        padding: 47px 0 38px;
    }

    .leaderboard-intro h1 {
        font-size: 39px;
    }

    .podium {
        gap: 7px;
        margin-bottom: 27px;
    }

    .podium-card {
        padding: 18px 7px 0;
        border-radius: 4px 16px 4px 16px;
    }

    .podium-card--first {
        min-height: 248px;
        padding-top: 28px;
    }

    .podium-card--second,
    .podium-card--third {
        min-height: 215px;
    }

    .podium-avatar {
        width: 42px;
        height: 42px;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .podium-avatar--1 {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .podium-card h2 {
        max-width: 100%;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .podium-score {
        font-size: 29px;
    }

    .podium-attempts {
        font-size: 7px;
    }

    .podium-rank {
        top: 9px;
        left: 9px;
        font-size: 8px;
    }

    .podium-crown {
        top: 3px;
        font-size: 17px;
    }

    .podium-bar {
        width: calc(100% + 14px);
        margin-top: 13px;
    }

    .rank-row {
        grid-template-columns: 21px minmax(0, 1fr) 54px;
        gap: 7px;
        padding: 12px;
    }

    .rank-attempts {
        display: none;
    }

    .rank-score {
        font-size: 18px;
    }

    .rank-player strong {
        font-size: 11px;
    }

    .leaderboard-body {
        padding-top: 28px;
        padding-bottom: 60px;
    }

    .leaderboard-cta {
        margin-top: 37px;
        padding: 26px 20px;
    }

    .leaderboard-cta h2 {
        font-size: 23px;
    }

    .error-card {
        padding: 32px 25px;
    }

    .error-code {
        font-size: 70px;
        right: 20px;
    }

    .error-card h1 {
        font-size: 29px;
    }

    .error-actions {
        flex-direction: column;
    }

    .flash-stack {
        top: calc(var(--header-h) + 9px);
        right: 16px;
    }
}

@media (max-width: 420px) {
    .hero-copy h1 {
        font-size: 46px;
    }

    .hero-visual {
        height: 430px;
        margin-bottom: -45px;
    }

    .hero-actions .btn {
        flex-basis: 100%;
    }

    .paper-card {
        min-height: 340px;
    }

    .result-badges .result-badge:last-child {
        display: none;
    }

    .history-stats {
        grid-template-columns: 1fr 1fr;
    }

    .history-stat small {
        display: none;
    }

    .podium-card h2 {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   Shared paper page
   ========================================================= */
.page-share {
    background:
        radial-gradient(circle at 8% 0%, rgba(238, 210, 203, 0.45), transparent 34%),
        radial-gradient(circle at 95% 36%, rgba(228, 216, 194, 0.42), transparent 32%),
        var(--bg);
}

.share-page {
    padding: 56px 0 96px;
}

.share-shell {
    width: min(1000px, calc(100% - 64px));
    margin-inline: auto;
}

.share-preview-note {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 12px 18px;
    border: 1px dashed rgba(173, 125, 72, 0.4);
    border-radius: 12px;
    background: rgba(253, 249, 242, 0.82);
    color: #78532e;
    font-size: 12px;
}

.share-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    border: 1px solid rgba(82, 49, 61, 0.09);
    border-radius: 8px 44px 8px 44px;
    background: linear-gradient(155deg, var(--theme-pale) 0%, var(--surface) 72%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.share-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 430px;
    padding: 52px 44px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.5), transparent 48%),
        linear-gradient(155deg, var(--theme-soft) 0%, var(--theme) 100%);
    color: #fff8f5;
    overflow: hidden;
}

.share-art-kicker {
    position: relative;
    z-index: 1;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.22em;
    opacity: 0.78;
}

.share-art-emoji {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 14px 0 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 48px;
    line-height: 1;
    box-shadow: 0 16px 40px rgba(58, 28, 40, 0.14);
}

.share-art-quote {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.share-art-label {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 8px;
    letter-spacing: 0.28em;
    opacity: 0.6;
}

.share-art-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.share-art-orbit--one {
    width: 300px;
    height: 300px;
    right: -150px;
    top: -100px;
}

.share-art-orbit--two {
    width: 190px;
    height: 190px;
    left: -90px;
    bottom: -70px;
    border-color: rgba(255, 255, 255, 0.16);
}

.share-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 54px;
}

.share-body h1 {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: clamp(29px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--theme-ink);
}

.share-desc {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.9;
}

.share-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 26px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 11px;
}

.share-metrics span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.share-metrics strong {
    color: var(--theme-deep);
    font-size: 17px;
    font-weight: 600;
}

.share-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.share-disabled {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(169, 59, 78, 0.06);
    color: var(--danger);
    font-size: 12px;
}

.share-copy {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed var(--line-strong);
}

.share-copy-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-faint);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.share-copy-row {
    display: flex;
    gap: 8px;
}

.share-copy-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fffdfa;
    color: var(--ink-soft);
    font-size: 11px;
}

.share-native {
    margin-top: 9px;
}

.share-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--ink-faint);
    font-size: 11px;
    text-align: center;
}

.share-foot-heart {
    color: var(--rose);
}

@media (max-width: 900px) {
    .share-card {
        grid-template-columns: 1fr;
    }

    .share-art {
        min-height: 0;
        padding: 38px 34px;
    }

    .share-art-emoji {
        width: 78px;
        height: 78px;
        font-size: 38px;
    }

    .share-body {
        padding: 36px 34px 42px;
    }
}

@media (max-width: 640px) {
    .share-page {
        padding: 34px 0 68px;
    }

    .share-shell {
        width: calc(100% - 36px);
    }

    .share-card {
        border-radius: 6px 26px 6px 26px;
    }

    .share-art {
        padding: 30px 26px;
    }

    .share-art-quote {
        font-size: 21px;
    }

    .share-body {
        padding: 30px 24px 34px;
    }

    .share-copy-row {
        flex-wrap: wrap;
    }

    .share-copy-input {
        flex-basis: 100%;
    }
}

/* =========================================================
   Profile & mistake notebook
   ========================================================= */
.profile-intro-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 18px;
    margin-top: 22px;
}

.profile-card {
    padding: 26px 30px 28px;
    border: 1px solid var(--line);
    border-radius: 5px 22px 5px 22px;
    background: rgba(255, 253, 250, 0.86);
    box-shadow: 0 10px 30px rgba(69, 38, 49, 0.035);
}

.profile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-card-head h2 {
    margin-top: 9px;
    font-family: var(--font-display);
    font-size: 25px;
    letter-spacing: -0.02em;
}

.profile-card-note {
    color: var(--ink-faint);
    font-size: 8px;
    letter-spacing: 0.14em;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(184, 64, 91, 0.1);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-pale), rgba(255, 253, 250, 0.8));
}

.profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
}

.profile-identity > div {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.profile-identity strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

.profile-identity span {
    color: var(--ink-faint);
    font-size: 10px;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 4px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.profile-meta span {
    display: block;
    color: var(--ink-faint);
    font-size: 8px;
}

.profile-meta strong {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 500;
}

.profile-form {
    margin-top: 18px;
}

.profile-form .btn {
    margin-top: 2px;
}

.profile-note {
    margin-top: 16px;
    color: var(--ink-faint);
    font-size: 9px;
    line-height: 1.8;
}

.mistakes-section {
    margin-top: 42px;
}

.notebook-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.notebook-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notebook-select {
    width: auto;
    min-width: 200px;
    height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 11px;
}

.mistake-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed var(--line-strong);
}

.mistakes-pagination {
    margin-top: 24px;
}

.history-stat--date strong {
    padding-top: 5px;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: 0;
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-meta {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .profile-intro-actions {
        width: 100%;
    }

    .profile-card {
        padding: 22px 20px 24px;
    }

    .notebook-select {
        flex: 1;
        min-width: 0;
    }
}
