/* Fonts served locally; no third-party CDN required. */
.tf-meter { max-width: 420px; margin: 20px auto; padding: 18px 20px; background: #ffffffd9; border: 1px solid #dce5f2; border-radius: 18px; }
.tf-meter-values { display: flex; justify-content: space-between; gap: 16px; font-size: clamp(23px, 5vw, 30px); font-weight: 800; }
.tf-meter-values strong:first-child { color: #3d69b6; }
.tf-meter-values strong:last-child { color: #c54d83; }
.tf-meter-track { display: flex; width: 100%; height: 14px; border-radius: 10px; overflow: hidden; background: #eee; margin-top: 12px; }
.tf-meter-track .tf-t { background: #5485d0; }
.tf-meter-track .tf-f { background: #eb81af; }
.share-box.share-studio {
    padding: clamp(24px, 5vw, 38px) clamp(18px, 4vw, 32px);
    margin: 32px 0;
    border: 2px solid #f0cf65;
    border-radius: 24px;
    background: radial-gradient(ellipse at top, #fff4bb 0, transparent 70%), linear-gradient(135deg, #fffdf6, #fff7e7);
    box-shadow: 0 12px 32px #b88a2020;
}
.share-box.share-studio > .eyebrow { font-size: 11px; color: #977016; letter-spacing: .1em; }
.share-box.share-studio > h2 { font-size: clamp(22px, 4vw, 28px); margin: 10px 0 12px; line-height: 1.4; }
.share-box.share-studio > p { font-size: 14px; line-height: 1.7; }
.share-studio > .share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.share-studio > .share-actions > .share-main-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 68px;
    padding: 20px 24px;
    font-size: clamp(19px, 4vw, 23px);
    font-weight: 800;
    border-radius: 18px;
    color: #302516;
    background: linear-gradient(110deg, #ffe04d, #ffc72c);
    border: 1px solid #edba29;
    box-shadow: 0 8px 18px #d99e2838;
    gap: 14px;
}
.share-studio > .share-actions > .share-main-button:hover { background: linear-gradient(110deg, #ffd62f, #ffbb19); box-shadow: 0 10px 24px #d99e2848; }
.share-studio > .share-actions > .share-main-button .icon { width: 24px; height: 24px; }
.share-studio > .share-actions > .result-card-download,
.share-studio > .share-actions > .copy-link { min-height: 46px; padding: 12px; font-size: 13px; border-radius: 12px; }
.share-box.share-studio > .fine-print { font-size: 12px; margin-top: 18px; }
.result-character-art { display: block; width: min(100%, 340px); height: auto; margin: 18px auto 24px; border-radius: 20px; object-fit: contain; }
.snack-difficulty { border: 0; padding: 0; margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.snack-difficulty legend { font-weight: 700; margin-bottom: 12px; }
.snack-difficulty label { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px solid #ddd5eb; border-radius: 16px; cursor: pointer; }
.snack-difficulty label:has(input:checked) { background: #f0eafa; border-color: #9672c7; }
.snack-difficulty input { accent-color: #8760b9; cursor: pointer; }
.snack-difficulty small { display: block; font-size: 12px; color: #756c81; }
.snack-photo { width: min(100%, 380px); aspect-ratio: 1; overflow: hidden; border-radius: 20px; margin: 20px auto; background: #f5f1eb; }
.snack-photo[hidden] { display: none; }
.snack-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snack-photo.is-hard img { transform: scale(2.8); }
.snack-answer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.snack-answer-form label, .snack-answer-form input { grid-column: 1 / -1; }
.snack-answer-form input { width: 100%; padding: 14px 16px; border: 1px solid #cfc3df; border-radius: 12px; font-size: 16px; }
.snack-answer-form input:focus { outline: 2px solid #a98bcf; outline-offset: 2px; }
.snack-review-image { width: 180px; max-width: 100%; height: auto; border-radius: 12px; margin-top: 14px; }
.snack-result-message { padding: 20px; background: #fff3df; border-radius: 16px; font-size: 18px; font-weight: 700; line-height: 1.7; margin: 16px 0 28px; }
@media (max-width: 480px) { .snack-difficulty { grid-template-columns: 1fr; } .snack-photo { max-width: 280px; } }
@font-face {
    font-family: Pretendard;
    src: url("../fonts/PretendardVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: SUITE;
    src: url("../fonts/SUITE-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
    word-break: keep-all;
    cursor: default;
}
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
input,
textarea,
[contenteditable="true"] {
    cursor: text;
}
input[type="checkbox"],
label:has(input[type="checkbox"]),
label:has(input[type="checkbox"]) :is(span, strong, small),
input[type="checkbox"] + label {
    cursor: pointer;
}
input[type="checkbox"]:disabled,
label:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}
button,
a {
    touch-action: manipulation;
}
img {
    max-width: 100%;
    display: block;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2,
h3 {
    line-height: 1.35;
    letter-spacing: -0.04em;
}
h1 {
    font-size: 34px;
}
h2 {
    font-size: 25px;
}
h3 {
    font-size: 16px;
}
p {
    margin-bottom: 16px;
}
ul {
    padding-left: 22px;
}
.icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    vertical-align: middle;
}
button .icon {
    pointer-events: none;
}
button {
    border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #9885ed;
    outline-offset: 4px;
}
.skip-link {
    position: fixed;
    left: 12px;
    top: -90px;
    z-index: 100;
    background: white;
    padding: 14px;
    border: 1px solid var(--line);
}
.skip-link:focus {
    top: 12px;
}
.site-header {
    height: 80px;
    background: #ffffffed;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 10;
}
.header-inner {
    height: 100%;
    max-width: var(--max);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 30px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.25;
    flex-shrink: 0;
}
.brand small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-top: 4px;
}
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8a71ed, #679afc);
    color: white;
    width: 38px;
    height: 33px;
    border-radius: 12px;
}
.brand-icon .icon {
    width: 25px;
    height: 25px;
}
.desktop-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}
.desktop-nav a {
    padding: 9px 17px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.desktop-nav a.active {
    background: var(--violet-light);
    color: #765cc6;
}
.desktop-nav a:hover {
    background: #f6f4ff;
}
.header-actions {
    display: flex;
    gap: 8px;
}
.icon-button {
    width: 42px;
    height: 42px;
    background: transparent;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-button:hover {
    background: #f3f1fa;
}
.mobile-menu-button {
    display: none;
}
.menu-overlay {
    position: fixed;
    inset: 0;
    background: #22263655;
    z-index: 50;
    padding: 16px;
}
.menu-panel {
    max-width: 440px;
    margin-left: auto;
    border-radius: 24px;
    background: white;
    padding: 24px;
    box-shadow: 0 20px 80px #10122a30;
}
.menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.menu-panel > a {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: 1px solid var(--line);
}
.menu-open {
    overflow: hidden;
}
[hidden] {
    display: none !important;
}
.home-wrap {
    max-width: 1280px;
    margin: auto;
    padding: 24px 30px 0;
}
.hero {
    height: 370px;
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #efe8fa;
}
.hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #f8e8f3cc 0%,
        #f7edf566 42%,
        transparent 64%
    );
}
.hero-copy {
    position: absolute;
    left: 58px;
    top: 48px;
    width: 50%;
}
.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #8f7da9;
    display: block;
    margin-bottom: 12px;
}
.hero h1 {
    font-size: 37px;
    font-weight: 900;
    line-height: 1.36;
    margin-bottom: 14px;
    color: #252538;
}
.hero p {
    font-size: 14px;
    color: #62566e;
    line-height: 1.8;
    margin-bottom: 23px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    
    white-space: normal;
}
.primary {
    background: #262935;
    color: #fff;
    box-shadow: 0 4px 12px #22263614;
}
.primary:hover {
    background: #3f3e52;
}
.ghost {
    background: white;
    border: 1px solid #dcddea;
    color: #414455;
}
.danger {
    background: #ffe9ef;
    color: #b33258;
}
.hero-note {
    position: absolute;
    bottom: 21px;
    right: 24px;
    padding: 9px 14px;
    border: 1px solid #ffffff66;
    background: #ffffffac;
    backdrop-filter: blur(12px);
    border-radius: 30px;
    color: #68546c;
    font-size: 11px;
}
.hero-note span {
    color: #9d79c2;
    margin-right: 6px;
}
.mobile-only {
    display: none;
}
.format-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 22px 24px 38px;
}
.format-card {
    border-radius: 17px;
    padding: 21px 19px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #fff;
    
}
.format-card > span {
    display: flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #ffffff90;
}
.format-card > span .icon {
    width: 25px;
    height: 25px;
}
.format-card strong {
    display: block;
    font-size: 14px;
}
.format-card small {
    font-size: 10px;
    opacity: 0.72;
}
.format-arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    opacity: 0.5;
}
.tone-violet {
    background: linear-gradient(130deg, #e7ddff, #f6f1ff);
    color: #7961c2;
}
.tone-rose {
    background: linear-gradient(130deg, #ffe0ee, #fff2f8);
    color: #bf668d;
}
.tone-mint {
    background: linear-gradient(130deg, #d8f0e8, #f1fbf7);
    color: #438c79;
}
.tone-sky {
    background: linear-gradient(130deg, #daebff, #f1f7ff);
    color: #5484c3;
}
.tone-peach {
    background: linear-gradient(130deg, #ffe8ce, #fff8ee);
    color: #b3824b;
}
.tone-night {
    background: linear-gradient(135deg, #2d3658, #76689d);
    color: #f4e9ff;
}
.content-wrap {
    max-width: var(--max);
    margin: auto;
    padding: 0 24px;
}
.home-wrap > .content-wrap {
    padding: 0 24px;
}
.content-section {
    margin: 42px 0;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}
.section-heading h2 {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 24px;
}
.heading-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #baa3ea;
    margin-top: 4px;
}
.section-heading .eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
}
.section-heading p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}
.more-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}
.more-link .icon {
    width: 16px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.content-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    overflow: hidden;
    
}
.card-link {
    display: block;
}
.card-art {
    height: 165px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-emoji {
    font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 66px;
    line-height: 1.2;
    z-index: 1;
    filter: drop-shadow(0 8px 6px #22263610);
    
    
}
.art-orbit {
    position: absolute;
    border: 1px solid #ffffff90;
    border-radius: 50%;
    width: 150px;
    height: 150px;
}
.orbit-one {
    left: -35px;
    bottom: -75px;
}
.orbit-two {
    right: -55px;
    top: -95px;
    width: 220px;
    height: 220px;
}
.art-spark {
    position: absolute;
    right: 20%;
    top: 16%;
    font-size: 23px;
    opacity: 0.55;
}
.art-caption {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 9px;
    letter-spacing: 0.12em;
    opacity: 0.7;
}
.rank-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    width: 28px;
    height: 28px;
    background: #ffffffd9;
    color: #31334a;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 2px 6px #2424240c;
}
.card-copy {
    padding: 15px 16px 14px;
}
.type-pill {
    display: inline-flex;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    color: #8a7caf;
    background: #f5f2fc;
    padding: 3px 8px;
    margin-bottom: 8px;
}
.card-copy h3 {
    font-size: 14px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.card-copy p {
    font-size: 12px;
    color: #756780;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 13px;
    word-break: normal;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #756780;
    font-size: 12px;
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.card-meta .icon {
    width: 12px;
    height: 12px;
}
.save-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 29px;
    height: 29px;
    background: #ffffffb5;
    border: 1px solid #ffffffba;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #77738d;
    z-index: 2;
}
.save-button .icon {
    width: 16px;
    height: 16px;
}
.save-button[aria-pressed="true"] {
    color: #7957c3;
    background: white;
}
.save-button[aria-pressed="true"] .icon {
    fill: #d4c6f5;
}
.random-banner {
    position: relative;
    border: 1px solid #e5def8;
    border-radius: 22px;
    margin: 55px 0;
    padding: 35px 40px;
    background: #f3effd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    gap: 20px;
}
.random-banner h2 {
    font-size: 23px;
    margin-bottom: 8px;
}
.random-banner p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}
.random-banner .button {
    position: relative;
    z-index: 1;
}
.random-dice {
    position: absolute;
    right: 200px;
    opacity: 0.12;
    font-size: 110px;
    transform: rotate(22deg);
}
.site-footer {
    background: #f4f4f9;
    border-top: 1px solid var(--line);
    margin-top: 70px;
    color: #858798;
}
.footer-inner {
    max-width: var(--max);
    padding: 38px 24px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}
.footer-inner .brand {
    font-size: 18px;
    color: #5a5e71;
}
.brand-dot {
    height: 6px;
    width: 6px;
    background: #aa94e3;
    border-radius: 50%;
}
.footer-inner p {
    font-size: 11px;
    margin: 10px 0 0;
}
.footer-links {
    display: flex;
    gap: 20px;
    font-size: 11px;
}
.footer-inner > small {
    grid-column: 1/-1;
    font-size: 10px;
}
.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    background: #292b3e;
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 12px;
    box-shadow: 0 10px 35px #20223833;
    z-index: 99;
    text-align: center;
}
.list-wrap {
    padding-top: 44px;
    padding-bottom: 24px;
}
.page-title {
    text-align: center;
    margin: 8px 0 32px;
}
.page-title h1 {
    margin-bottom: 10px;
    font-size: 31px;
}
.page-title p {
    color: var(--muted);
    font-size: 13px;
}
.search-form {
    display: flex;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto 24px;
    align-items: center;
}
.search-field {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 17px;
    min-width: 0;
}
.search-field input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px 0;
    outline: none;
}
.search-field .icon {
    width: 18px;
    color: #999;
}
.search-form select {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    font-size: 12px;
    color: #696c81;
}
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0 32px;
}
.category-tabs a {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    color: #858797;
    font-size: 11px;
    padding: 7px 16px;
}
.category-tabs a.active {
    background: #2a2d3c;
    border-color: #2a2d3c;
    color: white;
}
.result-count {
    font-size: 11px;
    color: var(--muted);
    margin: 25px 0 18px;
}
.empty-state {
    max-width: 650px;
    text-align: center;
    padding: 70px 24px;
    margin: 30px auto;
}
.empty-state > span {
    font-size: 70px;
    display: block;
    margin: 0 0 25px;
}
.empty-state h1,
.empty-state h2 {
    font-size: 25px;
}
.empty-state p {
    color: var(--muted);
}
.pagination {
    display: flex;
    gap: 9px;
    justify-content: center;
    margin: 36px 0;
}
.pagination a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.pagination a.active {
    background: var(--violet);
    color: white;
}
.breadcrumbs {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
    margin: 25px 0;
}
.detail-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}
.detail-art {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.detail-emoji {
    font-size: 160px;
    z-index: 1;
    filter: drop-shadow(0 15px 10px #22263610);
    font-family: system-ui;
}
.detail-art p {
    position: absolute;
    bottom: 28px;
    font-size: 11px;
    letter-spacing: 0.1em;
}
.detail-spark {
    position: absolute;
    top: 20%;
    right: 20%;
    font-size: 40px;
    opacity: 0.55;
}
.detail-copy {
    padding: 45px 38px;
}
.detail-copy h1 {
    font-size: 32px;
    margin: 10px 0 15px;
}
.detail-description {
    font-size: 14px;
    color: #73778e;
}
.detail-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
    margin: 27px 0;
}
.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.detail-meta .icon {
    width: 16px;
    height: 16px;
}
.detail-copy .button {
    width: 100%;
    margin-bottom: 10px;
}
.fine-print {
    font-size: 12px;
    color: #756780;
    line-height: 1.7;
}
.detail-copy .fine-print {
    margin-top: 15px;
}
.text-button {
    background: transparent;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 8px 0;
    font-size: 11px;
}
.play-body {
    background: linear-gradient(135deg, #f5f3ff, #f4f8fd);
}
.play-main {
    min-height: calc(100vh - 190px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 38px 20px;
}
.play-panel {
    background: white;
    max-width: 560px;
    width: 100%;
    padding: 34px 38px;
    border-radius: 24px;
    border: 1px solid #ebeaf6;
    box-shadow: 0 14px 55px #7c72950b;
}
.play-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #8e86a3;
    margin-bottom: 12px;
}
.play-top .type-pill {
    margin: 0;
}
progress {
    width: 100%;
    height: 5px;
    border-radius: 8px;
    border: 0;
    background: #eeedf6;
    appearance: none;
}
progress::-webkit-progress-bar {
    background: #eeedf6;
    border-radius: 8px;
}
progress::-webkit-progress-value {
    background: linear-gradient(90deg, #9d83ed, #6fa4f9);
    border-radius: 8px;
}
progress::-moz-progress-bar {
    background: #8f79dd;
    border-radius: 8px;
}
.question-area {
    padding: 33px 0 18px;
    min-height: 360px;
}
.question-number {
    text-align: center;
    color: #a693c8;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 13px;
    letter-spacing: 0.1em;
}
#question-title {
    font-size: 23px;
    line-height: 1.5;
    text-align: center;
    min-height: 68px;
    margin: 0 0 30px;
    white-space: pre-line;
}
.question-emoji {
    text-align: center;
    font-size: 65px;
    line-height: 1.5;
    background: #f4f3fa;
    border-radius: 20px;
    padding: 20px;
    margin: 0 0 20px;
    font-family: system-ui;
}
.choice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.choice-button {
    width: 100%;
    text-align: left;
    min-height: 59px;
    padding: 14px 17px;
    border: 1px solid #eeedf5;
    background: #f7f7fb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 12px;
    color: #5c6074;
}
.choice-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    border-radius: 50%;
    background: white;
    color: #8f93a3;
    font-size: 11px;
    border: 1px solid #eeedf5;
}
@media(any-hover:hover) and (any-pointer:fine){
    .choice-list:not(.is-fresh-question) .choice-button:not(:disabled):not(.selected):hover {
        background: #f0edfc;
    }
}
.choice-button.selected {
    border-color: #9f8aeb;
    background: #f1edff;
    color: #69519b;
}
.choice-button.selected .choice-letter {
    background: #9278df;
    color: white;
    border-color: #9278df;
}
.play-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}
.play-controls .primary {
    flex: 1;
}
.play-panel > .fine-print {
    text-align: center;
    margin: 20px 0 0;
}
.feedback {
    padding: 14px;
    border-radius: 12px;
    font-size: 12px;
    background: #f6f4fb;
    margin: 18px 0;
}
.feedback.correct {
    background: #eaf7f0;
    color: #387e64;
}
.feedback.incorrect {
    background: #fff0f2;
    color: #a6576c;
}
.feedback strong {
    display: block;
    margin-bottom: 5px;
}
.vote-summary {
    padding: 15px;
    border-radius: 12px;
    background: #f8f7fb;
    font-size: 12px;
    margin-top: 18px;
    text-align: center;
}
.poll-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
}
.balance-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.balance-choices .choice-button {
    flex-direction: column;
    text-align: center;
    min-height: 190px;
    background: #f8edf3;
    justify-content: center;
    border-radius: 18px;
    padding: 18px 12px;
}
.balance-choices .choice-button:nth-child(2) {
    background: #ecf3ff;
}
.choice-emoji {
    font-size: 53px;
    font-family: system-ui;
    margin-bottom: 8px;
}
.balance-choices .choice-letter {
    display: none;
}
.error-message {
    font-size: 12px;
    color: #ba4265;
    background: #fff3f6;
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
}
.compact-footer {
    margin-top: 0;
    background: transparent;
    border: 0;
}
.compact-footer .footer-inner {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.compact-footer .brand,
.compact-footer .footer-inner > small {
    display: none;
}
.compact-footer .footer-links {
    font-size: 9px;
    gap: 14px;
}
.result-wrap {
    max-width: 920px;
    margin: auto;
    padding: 32px 24px;
}
.result-panel {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.result-cover {
    position: relative;
    text-align: center;
    padding: 34px 30px 30px;
}
.result-cover .eyebrow {
    color: inherit;
    opacity: 0.7;
    font-size: 9px;
}
.result-cover > p {
    font-size: 12px;
    margin-bottom: 10px;
}
.result-cover h1 {
    font-size: 33px;
    margin: 10px 0 12px;
}
.result-emoji {
    font-size: 88px;
    line-height: 1.4;
    display: block;
    font-family: system-ui;
    filter: drop-shadow(0 10px 8px #22263610);
}
.score-unit {
    font-size: 18px;
    margin-left: 6px;
}
.result-details {
    padding: 28px 30px;
}
.result-details h2 {
    font-size: 16px;
}
.result-description {
    font-size: 13px;
    color: #73718b;
    line-height: 1.9;
}
.traits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.traits-grid h2 {
    font-size: 12px;
    padding: 5px 9px;
    background: #eff7f3;
    color: #5b907a;
    display: inline-block;
    border-radius: 8px;
    margin-bottom: 9px;
}
.traits-grid > div:nth-child(2) h2 {
    background: #fff0f4;
    color: #bb708a;
}
.traits-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
    color: #7b7a90;
}
.traits-grid li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 8px 0;
}
.traits-grid .icon {
    width: 14px;
    height: 14px;
    color: #70a28a;
    margin-top: 4px;
}
.traits-grid > div:nth-child(2) .icon {
    color: #c08095;
}
.compatibility {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}
.compatibility small {
    display: block;
    color: #756780;
    font-size: 12px;
}
.compatibility strong {
    font-size: 12px;
    color: #6d617c;
}
.stat-line {
    padding: 17px;
    background: #f8f7fc;
    border-radius: 13px;
    font-size: 12px;
    color: #756780;
    display: flex;
    gap: 12px;
    align-items: center;
}
.stat-line p {
    margin: 0;
}
.stat-line strong {
    color: #756780;
}
.stat-line small {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}
.share-box {
    background: #f7f6fc;
    border-radius: 16px;
    padding: 20px 16px;
    margin: 22px 0;
    text-align: center;
}
.share-box h2 {
    font-size: 13px;
    margin-bottom: 16px;
}
.share-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
}
.share-actions .button {
    font-size: 10px;
    padding: 10px 12px;
    min-height: 40px;
    gap: 6px;
}
.share-actions .icon {
    width: 14px;
    height: 14px;
}
.share-box .fine-print {
    margin: 12px 0 0;
}
.result-actions {
    display: flex;
    gap: 10px;
}
.result-actions > * {
    flex: 1;
    padding: 13px 12px;
}
.result-details > .text-button {
    display: block;
    margin: 15px auto 0;
}
.result-wrap > .ad-slot {
    margin: 25px auto;
    max-width: 600px;
}
.quiz-review details {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-size: 11px;
    color: #7b7e92;
}
.quiz-review summary {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    list-style: none;
}
.quiz-review summary strong {
    font-size: 12px;
    font-weight: 500;
}
.review-mark {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}
.review-mark.correct {
    color: #589d7f;
}
.review-mark.incorrect {
    color: #c57491;
}
.quiz-review details p {
    margin: 12px 0 0 22px;
}
.balance-results article {
    margin-bottom: 25px;
}
.balance-results h2 {
    font-size: 14px;
}
.balance-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.balance-pair > div {
    border: 1px solid var(--line);
    padding: 16px 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 15px;
    background: #fff7fa;
    gap: 8px;
}
.balance-pair > div:nth-child(2) {
    background: #f2f7ff;
}
.balance-pair > div.chosen {
    border-color: #9d87dc;
    box-shadow: 0 0 0 1px #9d87dc;
}
.balance-pair span {
    font-size: 36px;
    line-height: 1.5;
    font-family: system-ui;
}
.balance-pair strong {
    font-size: 11px;
    text-align: center;
}
.balance-pair b {
    font-size: 17px;
    color: #9e75c0;
}
.balance-pair small {
    font-size: 9px;
}
.balance-results .fine-print {
    text-align: center;
    margin-top: 7px;
}
.ad-slot {
    border: 1px solid var(--line);
    background: white;
    border-radius: 16px;
    min-height: 110px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.ad-slot > span {
    font-size: 9px;
    color: #a6a8b4;
    align-self: flex-start;
}
.ad-slot a {
    font-size: 14px;
}
.info-wrap {
    max-width: 800px;
    padding-top: 50px;
    padding-bottom: 50px;
    min-height: 55vh;
}
.info-wrap h1 {
    margin-bottom: 24px;
    font-size: 30px;
}
.info-wrap > p,
.policy-text {
    line-height: 1.9;
    color: #6f7388;
}
.intro-text {
    font-size: 21px;
    color: #75609e !important;
}
.policy-text {
    white-space: normal;
    font-size: 13px;
}
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 17px;
}
.form-stack label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
}
.form-stack input,
.form-stack textarea,
.form-stack select,
.admin-main input,
.admin-main textarea,
.admin-main select {
    border: 1px solid #dcdde8;
    border-radius: 10px;
    padding: 12px;
    background: white;
    color: var(--ink);
    width: 100%;
}
.form-stack .button {
    align-self: flex-start;
}
.muted {
    color: var(--muted);
    font-size: 11px;
}
#saved-controls {
    text-align: center;
    margin: 28px 0 36px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    border: 1px solid #e9e2f2;
    border-radius: 20px;
    background: #ffffffb3;
}
#saved-controls .muted {
    margin: 0;
    line-height: 1.8;
    font-size: 12px;
}
.saved-empty {
    max-width: 800px;
    padding: 48px 24px;
    border: 1px dashed #d6c8ec;
    border-radius: 28px;
    background: radial-gradient(ellipse at top, #eee5fc85, transparent 65%), #fffdfb;
}
.saved-empty h2 { margin-bottom: 14px; }
.saved-empty p { line-height: 1.9; margin-bottom: 26px; }
.saved-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) {
    #saved-controls { padding: 20px 16px; gap: 16px; }
    .saved-empty { padding: 36px 20px; }
    .saved-empty-actions .button { width: 100%; }
}
.notice {
    padding: 15px 18px;
    border-radius: 12px;
    font-size: 12px;
}
.notice.success {
    background: #edf8f2;
    color: #44795f;
}
.notice.error {
    background: #fff0f3;
    color: #ad5570;
}
.table-scroll {
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: left;
}
th {
    background: #f8f8fc;
    color: #9194a7;
    font-weight: 500;
}
th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
}
td a {
    color: #795db8;
}
td form {
    display: inline;
}
.status-pill {
    font-size: 10px;
    background: #f0edf9;
    border-radius: 20px;
    color: #8564b1;
    padding: 5px 10px;
    white-space: nowrap;
}
.edit-question,
.edit-result {
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 14px;
    margin: 13px 0;
    background: #fbfbfe;
}
.edit-question label,
.edit-result label {
    font-size: 11px;
    display: block;
    margin: 10px 0;
}
.edit-question textarea {
    min-height: 65px;
}
.edit-choice {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
}
.edit-choice input {
    font-size: 11px;
    padding: 9px;
}
.edit-choice label {
    margin: 0;
}
.login-panel {
    max-width: 430px;
    margin: auto;
}
.login-panel h1 {
    text-align: center;
    font-size: 25px;
    margin: 10px 0;
}
.login-panel > p {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 30px;
}
.login-panel .form-stack .button {
    width: 100%;
    margin-top: 6px;
}
.preview-question {
    padding: 18px;
    background: #f7f6fb;
    border-radius: 12px;
    margin: 12px 0;
}
.preview-question h3 {
    font-size: 14px;
}
.preview-question p {
    font-size: 11px;
    margin: 5px 0;
}
.edit-tabs {
    display: flex;
    gap: 9px;
    margin: 16px 0;
}
.edit-tabs button {
    background: #f5f2fc;
    color: #8264bd;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 11px;
}
.state-text {
    font-size: 11px;
    color: #9e87bf;
}
@media (min-width: 1400px) {
    .home-wrap {
        padding-top: 30px;
    }
    .hero {
        height: 405px;
    }
    .hero-copy {
        top: 55px;
    }
}
@media (max-width: 1000px) {
    .desktop-nav {
        gap: 0;
    }
    .desktop-nav a {
        padding: 9px 11px;
        font-size: 11px;
    }
    .header-inner {
        gap: 15px;
    }
    .brand {
        font-size: 21px;
    }
    .hero-copy {
        left: 40px;
    }
    .hero h1 {
        font-size: 33px;
    }
    .format-nav {
        margin-left: 0;
        margin-right: 0;
    }
    .format-card {
        padding: 17px 14px;
        gap: 9px;
    }
    .format-card small {
        display: none;
    }
    .format-arrow {
        display: none;
    }
    .card-grid {
        gap: 15px;
    }
    .card-art {
        height: 145px;
    }
    .card-emoji {
        font-size: 58px;
    }
    .card-copy {
        padding: 13px;
    }
    .detail-copy {
        padding: 30px;
    }
    .detail-copy h1 {
        font-size: 27px;
    }
}
@media (max-width: 760px) {
    body {
        font-size: 13px;
    }
    .site-header {
        height: 67px;
    }
    .header-inner {
        padding: 0 18px;
    }
    .brand {
        font-size: 21px;
        gap: 8px;
    }
    .brand small {
        font-size: 8px;
    }
    .brand-icon {
        width: 32px;
        height: 29px;
        border-radius: 10px;
    }
    .brand-icon .icon {
        width: 22px;
        height: 22px;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-menu-button {
        display: inline-flex;
    }
    .header-actions {
        gap: 2px;
    }
    .icon-button {
        width: 36px;
        height: 36px;
    }
    .saved-link {
        display: none;
    }
    .home-wrap {
        padding: 14px 14px 0;
    }
    .hero {
        height: 330px;
        border-radius: 20px;
    }
    .hero > img {
        object-position: 57% center;
    }
    .hero-shade {
        background: linear-gradient(
            90deg,
            #f9eaf1e5 0%,
            #f9eaf199 45%,
            #f9eaf111 78%
        );
    }
    .hero-copy {
        left: 25px;
        top: 33px;
        width: 68%;
    }
    .hero h1 {
        font-size: 29px;
        line-height: 1.4;
    }
    .hero .eyebrow {
        font-size: 8px;
        letter-spacing: 0.1em;
    }
    .hero p {
        font-size: 11px;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    .hero .button {
        font-size: 11px;
        padding: 11px 17px;
        min-height: 41px;
        border-radius: 12px;
    }
    .hero-note {
        font-size: 9px;
        right: 13px;
        bottom: 13px;
        padding: 6px 10px;
    }
    .mobile-only {
        display: block;
    }
    .format-nav {
        gap: 8px;
        margin: 13px 0 28px;
    }
    .format-card {
        padding: 14px 4px;
        flex-direction: column;
        gap: 7px;
        border-radius: 13px;
        text-align: center;
    }
    .format-card > span {
        width: 33px;
        height: 33px;
        background: #ffffff60;
    }
    .format-card > span .icon {
        width: 22px;
        height: 22px;
    }
    .format-card strong {
        font-size: 10px;
    }
    .content-wrap {
        padding: 0 18px;
    }
    .home-wrap > .content-wrap {
        padding: 0 4px;
    }
    .content-section {
        margin: 30px 0;
    }
    .section-heading {
        margin-bottom: 16px;
        gap: 12px;
    }
    .section-heading h2 {
        font-size: 20px;
        gap: 7px;
    }
    .section-heading .eyebrow {
        font-size: 8px;
        margin-bottom: 5px;
    }
    .section-heading p {
        font-size: 10px;
    }
    .heading-dot {
        width: 5px;
        height: 5px;
    }
    .more-link {
        font-size: 10px;
        gap: 5px;
    }
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }
    .card-art {
        height: 150px;
    }
    .card-copy h3 {
        font-size: 12px;
        min-height: 33px;
    }
    .card-copy p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .card-copy {
        padding: 12px 12px 10px;
    }
    .card-copy .type-pill {
        font-size: 8px;
        padding: 2px 6px;
    }
    .card-meta {
        font-size: 8px;
    }
    .content-card {
        border-radius: 14px;
    }
    .random-banner {
        padding: 25px 24px;
        margin: 35px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }
    .random-banner h2 {
        font-size: 20px;
    }
    .random-banner p {
        font-size: 11px;
    }
    .random-dice {
        right: 18px;
        font-size: 95px;
        top: 28px;
    }
    .random-banner .button {
        font-size: 11px;
        min-height: 40px;
    }
    .site-footer {
        margin-top: 40px;
    }
    .footer-inner {
        padding: 30px 20px;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 23px;
    }
    .footer-inner > div:first-child {
        width: 100%;
    }
    .footer-links {
        gap: 16px;
        font-size: 10px;
        flex-wrap: wrap;
    }
    .footer-inner > small {
        width: 100%;
        font-size: 9px;
    }
    .page-title {
        margin-top: 30px;
        margin-bottom: 26px;
    }
    .page-title h1 {
        font-size: 26px;
    }
    .page-title p {
        font-size: 11px;
    }
    .list-wrap {
        padding-top: 0;
    }
    .search-form {
        flex-wrap: wrap;
        gap: 8px;
    }
    .search-field {
        flex-basis: 100%;
        padding: 0 13px;
    }
    .search-field input {
        font-size: 12px;
    }
    .search-form select {
        flex: 1;
    }
    .search-form .button {
        min-height: 42px;
        padding: 10px 22px;
        font-size: 12px;
    }
    .category-tabs {
        justify-content: flex-start;
        margin: 22px 0;
        gap: 7px;
    }
    .category-tabs a {
        font-size: 10px;
        padding: 6px 13px;
    }
    .detail-panel {
        grid-template-columns: 1fr;
        border-radius: 19px;
    }
    .detail-art {
        min-height: 250px;
    }
    .detail-emoji {
        font-size: 110px;
    }
    .detail-art p {
        bottom: 16px;
        font-size: 9px;
        margin: 0;
    }
    .detail-copy {
        padding: 26px 23px;
    }
    .detail-copy h1 {
        font-size: 26px;
    }
    .detail-description {
        font-size: 12px;
    }
    .detail-meta {
        gap: 16px;
        margin: 21px 0;
        font-size: 10px;
    }
    .play-main {
        padding: 20px 14px;
        min-height: calc(100vh - 140px);
    }
    .play-panel {
        padding: 25px 22px;
        border-radius: 20px;
    }
    .question-area {
        padding-top: 29px;
        min-height: 340px;
    }
    #question-title {
        font-size: 21px;
        margin-bottom: 25px;
    }
    .choice-button {
        min-height: 59px;
        padding: 14px;
        font-size: 12px;
        gap: 10px;
    }
    .play-panel > .fine-print {
        font-size: 12px;
    }
    .play-controls {
        gap: 8px;
    }
    .play-controls .button {
        font-size: 12px;
        padding: 12px 17px;
    }
    .result-wrap {
        padding: 19px 14px;
    }
    .result-panel {
        border-radius: 19px;
    }
    .result-cover {
        padding: 30px 20px 26px;
    }
    .result-cover h1 {
        font-size: 28px;
    }
    .result-emoji {
        font-size: 78px;
    }
    .result-details {
        padding: 23px 21px;
    }
    .traits-grid {
        gap: 16px;
    }
    .traits-grid li {
        font-size: 10px;
        gap: 6px;
    }
    .result-description {
        font-size: 12px;
    }
    .result-actions .button {
        font-size: 11px;
        gap: 7px;
    }
    .share-box h2 {
        font-size: 12px;
    }
    .share-actions .button {
        font-size: 10px;
    }
    .info-wrap {
        padding: 35px 23px;
    }
    .info-wrap h1 {
        font-size: 26px;
    }
    .policy-text {
        font-size: 12px;
    }
    .edit-choice {
        grid-template-columns: 1fr 85px;
    }
    .empty-state {
        padding: 45px 16px;
    }
    .empty-state h1,
    .empty-state h2 {
        font-size: 21px;
    }
}
@media (max-width: 390px) {
    .card-art {
        height: 135px;
    }
    .card-emoji {
        font-size: 54px;
    }
    .hero-copy {
        width: 75%;
        left: 22px;
    }
    .hero h1 {
        font-size: 27px;
    }
    .format-card strong {
        font-size: 9px;
    }
    .card-meta {
        gap: 4px;
    }
    .share-actions .button {
        padding: 9px;
    }
    .traits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .balance-choices .choice-button {
        min-height: 175px;
    }
    .choice-emoji {
        font-size: 45px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

.setup-wrap {
    max-width: 680px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.recent-section {
    margin: 24px 0;
}
.recent-section h2 {
    font-size: 18px;
}
#recent-history {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Interaction feedback and illustrated content covers */
.content-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}
.card-art .content-cover ~ .card-emoji,
.detail-art .content-cover ~ .detail-emoji {
    visibility: hidden;
}
.card-art .rank-badge {
    z-index: 4;
}
.card-art .art-caption {
    z-index: 3;
    background: #ffffffde;
    padding: 3px 9px;
    border-radius: 8px;
}
.choice-button.selected {
    box-shadow: 0 0 0 2px #8a71ed40;
}
#play-progress {
    accent-color: var(--violet);
}
.is-busy #next-question::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff70;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.live-poll-track {
    height: 14px;
    border-radius: 99px;
    background: #9ebef5;
    overflow: hidden;
    margin-bottom: 12px;
}
.live-poll-fill {
    width: 0;
    height: 100%;
    background: #f18daf;
    transition: width 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.saved-pop {
    animation: saved-pop 0.3s ease;
}
.result-cover {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.result-illustration {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: -1;
}
.result-panel {
    animation: result-appear 0.45s ease both;
}
@keyframes saved-pop {
    50% {
        transform: scale(1.22);
    }
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes result-appear {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

h1,
h2,
h3,
.brand {
    font-family: SUITE, var(--font);
}

/* Short memory game: large readable chips and a shrinking preview clock. */
.memory-preview {
    margin: 20px 0;
    padding: 22px;
    border-radius: 18px;
    background: var(--violet-light);
}
.memory-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.memory-item {
    padding: 9px 14px;
    border-radius: 12px;
    background: white;
    font-size: 17px;
    font-weight: 600;
}
.memory-preview .fine-print {
    margin: 15px 0 10px;
    text-align: center;
}
.memory-clock {
    height: 5px;
    width: 100%;
    background: var(--violet);
    border-radius: 99px;
    animation: memory-countdown linear forwards;
    transform-origin: left;
}
.quiz-help {
    margin-top: 12px;
    font-size: 12px;
}
@keyframes memory-countdown {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}
@media (max-width: 760px) {
    .memory-preview {
        padding: 17px 12px;
    }
    .memory-item {
        font-size: 14px;
        padding: 7px 9px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .memory-clock {
        animation: none;
    }
}

/* Favicon mark + original NORITER wordmark. */
.brand-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.brand-word {
    display: block;
}
.hero {
    background: #f2eef9;
}
.hero > .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: hero-crossfade 26s ease-in-out infinite;
    will-change: opacity;
}
.hero > .hero-slide:nth-of-type(1) {
    animation-delay: 0s;
}
.hero > .hero-slide:nth-of-type(2) {
    animation-delay: -19.5s;
}
.hero > .hero-slide:nth-of-type(3) {
    animation-delay: -13s;
}
.hero > .hero-slide:nth-of-type(4) {
    animation-delay: -6.5s;
}
@keyframes hero-crossfade {
    0%,
    17.3% {
        opacity: 1;
    }
    25%,
    92.3% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.hero-shade {
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #f9eff8f2 0%,
        #f9eff8c9 36%,
        #f9eff81a 70%
    );
}
/* Wide composition retains the full illustrated objects, never crops a face. */
.page-title.list-banner {
    position: relative;
    height: 230px;
    overflow: hidden;
    border-radius: 24px;
    background: #f2ecfa;
    padding: 28px 42px;
    margin: 8px 0 28px;
    display: flex;
    align-items: center;
    text-align: left;
    isolation: isolate;
}
.list-banner-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    max-width: 65%;
    mask-image: linear-gradient(90deg, transparent, #000 26%);
    object-fit: contain;
    object-position: right center;
    z-index: -2;
}
.list-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        #f2ecfa 0%,
        #f2ecfae0 42%,
        #f2ecfa00 70%
    );
}
.list-banner-copy {
    position: relative;
    max-width: 60%;
}
.list-banner-copy h1 {
    line-height: 1.3;
}
.list-banner-copy p {
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 600px) {
    .brand-mark {
        width: 32px;
        height: 32px;
    }
    .page-title.list-banner {
        height: 200px;
        padding: 24px;
        border-radius: 20px;
    }
    .list-banner-image {
        width: auto;
        max-width: 72%;
        opacity: 0.65;
    }
    .list-banner-copy {
        max-width: 100%;
    }
    .list-banner-copy h1 {
        font-size: 25px;
    }
    .list-banner::after {
        background: linear-gradient(90deg, #f2ecfaf5, #f2ecfac9 65%, #f2ecfa33);
    }
    .hero-note {
        bottom: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero > .hero-slide {
        animation: hero-crossfade 26s ease-in-out infinite !important;
    }
    .hero > .hero-slide:nth-of-type(1) {
        animation-delay: 0s !important;
    }
    .hero > .hero-slide:nth-of-type(2) {
        animation-delay: -19.5s !important;
    }
    .hero > .hero-slide:nth-of-type(3) {
        animation-delay: -13s !important;
    }
    .hero > .hero-slide:nth-of-type(4) {
        animation-delay: -6.5s !important;
    }
}

/* Export the actual result card at a stable 600px layout, including local fonts. */
.result-export {
    position: fixed;
    left: -100000px;
    top: 0;
    width: 664px;
    padding: 32px 32px 20px;
    background: linear-gradient(145deg, #f5edff, #fceef5 50%, #eaf4fc);
    color: var(--ink);
    box-sizing: border-box;
}
.result-export .result-panel {
    width: 600px;
    max-width: none;
    margin: 0;
    animation: none !important;
    transform: none !important;
    border-radius: 24px;
    box-shadow: 0 12px 32px #53416e12;
}
.result-export .result-cover {
    padding: 34px 30px 30px;
}
.result-export .result-cover h1 {
    font-size: 33px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.result-export .result-details {
    padding: 28px 30px;
}
.result-export .traits-grid,
.result-export .compatibility {
    grid-template-columns: 1fr 1fr;
}
.result-export .balance-pair {
    grid-template-columns: 1fr 1fr;
}
.result-export-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
    font-size: 14px;
    color: #68578e;
}
.result-export-footer img {
    width: 28px;
    height: 28px;
}
.result-export-footer span {
    margin-left: 8px;
    font-size: 11px;
    color: #8c819e;
}
.result-card-download[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}

.result-emoji img {
    display: block;
    width: 88px;
    height: 88px;
    margin: 12px auto;
}

/* Social sharing: a compact result preview and distinct service buttons. */
.share-studio {
    text-align: center;
    padding: 28px 20px;
    border: 1px solid #e7dff3;
    border-radius: 20px;
    background: linear-gradient(135deg, #f7f2ff, #fff5f7);
}
.share-studio > p {
    font-size: 12px;
    color: #7b708e;
}
.share-studio > .share-actions {
    justify-content: center;
    flex-wrap: wrap;
}
.social-dialog {
    width: min(540px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    border: 1px solid #eee7f7;
    border-radius: 26px;
    padding: 28px;
    color: #312a43;
    background: #fff;
    box-shadow: 0 24px 100px #21133755;
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: left;
}
.social-dialog::backdrop {
    background: #261e3e88;
    backdrop-filter: blur(5px);
}
body:has(.social-dialog[open]) {
    overflow: hidden;
}
.social-dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.social-dialog-heading h2 {
    font-size: 24px;
    margin: 0 0 20px;
}
.social-dialog-heading .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
}
.social-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(120deg, #f0eaff, #fff0f4);
    margin-bottom: 22px;
}
.social-preview img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}
.social-preview small,
.social-preview span {
    display: block;
    font-size: 11px;
    color: #7a6b90;
    line-height: 1.6;
}
.social-preview strong {
    display: block;
    font-size: 19px;
    line-height: 1.4;
    margin: 4px 0;
    overflow-wrap: anywhere;
}
.social-platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.social-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #645a75;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}
.social-platform-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    transition: transform 0.18s ease;
}
.social-platform:hover .social-platform-icon {
    transform: translateY(-3px);
}
.social-platform-icon svg {
    width: 25px;
    height: 25px;
}
.social-kakao .social-platform-icon {
    background: #fee500;
    color: #38201f;
}
.social-x .social-platform-icon {
    background: #222;
    color: #fff;
}
.social-instagram .social-platform-icon {
    background: linear-gradient(145deg, #794bd6, #e44f89 60%, #efad59);
    color: #fff;
}
.social-facebook .social-platform-icon {
    background: #1877f2;
    color: #fff;
}
.social-band .social-platform-icon {
    background: #1fbd60;
    color: #fff;
}
.share-caption-label {
    display: block;
    font-size: 12px;
    color: #70647e;
    margin-top: 22px;
}
.share-caption-label textarea {
    width: 100%;
    display: block;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid #e9e2f1;
    border-radius: 12px;
    resize: vertical;
    font: inherit;
    line-height: 1.7;
    color: #63576e;
    background: #faf8fd;
}
.social-utilities {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.social-utilities .button {
    flex: 1;
    padding: 10px 12px;
    font-size: 11px;
    white-space: nowrap;
}
.social-help {
    padding: 12px;
    border-radius: 12px;
    background: #f3eefb;
    color: #695083;
    font-size: 12px;
    line-height: 1.7;
    margin-top: 18px;
}
.instagram-guide {
    padding: 16px;
    border-radius: 14px;
    background: #fff2f6;
    margin-top: 20px;
}
.instagram-guide h3 {
    font-size: 14px;
    margin-bottom: 7px;
}
.instagram-guide p {
    font-size: 12px;
    line-height: 1.7;
}
.instagram-guide .share-actions {
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 0;
}
.instagram-guide .button {
    font-size: 10px;
    padding: 9px 11px;
}
/* Keep ad units separate from play, download, and social controls. */
.network-ad {
    display: block;
    grid-column: 1 / -1;
    margin: 56px auto;
    padding: 16px 0 0;
    width: 100%;
    max-width: 970px;
    min-height: 280px;
    border-top: 1px solid #e9e6ef;
    text-align: center;
    background: #fff;
}
.network-ad-label {
    display: block;
    font-size: 10px;
    color: #96909f;
    margin-bottom: 12px;
}
.network-ad .adsbygoogle {
    min-height: 250px;
    width: 100%;
}
@media (max-width: 600px) {
    .social-dialog {
        padding: 22px 18px;
        border-radius: 22px;
        max-height: calc(100dvh - 24px);
    }
    .social-dialog-heading h2 {
        font-size: 21px;
    }
    .social-platform-grid {
        gap: 5px;
    }
    .social-platform-icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }
    .social-preview {
        gap: 12px;
    }
    .social-preview img {
        width: 72px;
        height: 72px;
    }
    .social-preview strong {
        font-size: 17px;
    }
    .network-ad {
        margin: 48px auto;
    }
}

/* An SVG empty-state icon renders consistently without an emoji font. */
.empty-state > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 26px;
    color: #9b86cf;
    background: #f0ebfb;
}
.empty-state > span .icon {
    width: 48px;
    height: 48px;
}

/* New hero scenes: keep complete faces and activities in the wide banner. */
.hero > .hero-slide {
    left: auto;
    right: 0;
    width: 72%;
    object-position: center 15%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
    mask-image: linear-gradient(90deg, transparent, #000 18%);
}
.hero > .hero-scene-1 {
    object-position: center top;
}
.hero > .hero-scene-3 {
    object-position: center 25%;
}
.hero > .hero-scene-4 {
    object-position: center 40%;
}
@media (max-width: 760px) {
    .hero > .hero-slide {
        width: 100%;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .hero > .hero-scene-1 {
        object-position: 75% center;
    }
    .hero > .hero-scene-2 {
        object-position: 90% center;
    }
    .hero > .hero-scene-3 {
        object-position: 80% center;
    }
    .hero > .hero-scene-4 {
        object-position: 95% center;
    }
}

/* Discovery filters and individually removable browser history. */
.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hub-card .card-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px}.hub-card h2{font-size:19px;margin:0;line-height:1.5}.hub-card .card-copy>.icon{flex-shrink:0}.hub-card .card-art{width:100%;height:auto;aspect-ratio:3/2}.hub-empty{min-height:55vh}.content-hub .page-title{margin-bottom:32px}@media(max-width:900px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-card .card-copy{padding:16px}.hub-card h2{font-size:16px}}@media(max-width:420px){.hub-card .card-copy{padding:13px;gap:6px}.hub-card h2{font-size:14px}}
.tag-chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.tag-chips a,.series-label{padding:7px 12px;border-radius:20px;background:var(--surface,#f3f0ff);color:inherit;text-decoration:none;font-size:13px}.tag-chips a.active{background:#7050c7;color:#fff}.tag-chips a:hover{background:#e6def8}.tag-chips a.active:hover{background:#6041b7}.recent-item{display:flex;align-items:center;gap:8px;max-width:100%}.recent-item>a{overflow:hidden;text-overflow:ellipsis}.search-form{flex-wrap:wrap}.search-form select{max-width:100%}

/* Flash game library: text-only entries until thumbnails are requested. */
.flash-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px}.flash-list-item{display:flex;align-items:center;gap:16px;padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff;color:inherit;text-decoration:none}.flash-list-item:hover{border-color:#a38be1;background:#faf8ff}.flash-list-symbol{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:14px;background:#f0ebff;color:#8063d5}.flash-list-item>div{flex:1;min-width:0}.flash-list-item h2{font-size:17px;margin:0 0 6px}.flash-list-item p{font-size:13px;color:#74788c;line-height:1.7;margin:0 0 8px}.flash-list-item small{font-size:11px;color:#89869a}.flash-list-item>.icon{flex-shrink:0}.flash-screen{width:100%;max-width:960px;margin:auto;aspect-ratio:var(--game-ratio);max-height:75vh;background:#151522;border-radius:16px;overflow:hidden}.flash-screen iframe{display:block;border:0;width:100%;height:100%}.flash-screen:fullscreen{max-width:none;max-height:none;height:100vh;width:100vw;border-radius:0}.flash-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px auto 32px;max-width:960px}.flash-toolbar .muted{font-size:12px}.flash-guide{padding:28px;border:1px solid var(--line);background:#fff;border-radius:18px}.flash-guide h2{font-size:18px;margin:24px 0 12px}.flash-guide h2:first-child{margin-top:0}.flash-guide p,.flash-guide li{line-height:1.85;color:#656a80}.flash-guide details{margin-top:20px}.flash-guide a{color:#7858c7}@media(max-width:700px){.flash-list{grid-template-columns:1fr}.flash-list-item{padding:18px}.flash-guide{padding:20px}.flash-detail .page-title h1{font-size:26px}.flash-screen{border-radius:10px}}

.flash-screen{position:relative}.flash-exit-fullscreen{display:none;position:absolute;right:16px;top:16px;z-index:5;background:#fff}.flash-screen:fullscreen .flash-exit-fullscreen{display:inline-flex}

/* Flash library uses small gameplay captures with reserved image dimensions. */
.flash-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.flash-list-item{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;}
.flash-list-thumbnail{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:contain;background:#171826}
.flash-list-item>div{padding:20px}.flash-list-item>.icon{display:none}.flash-list-item p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1000px){.flash-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.flash-list{grid-template-columns:1fr;gap:18px}.flash-list-item{padding:0}.flash-list-item>div{padding:18px}}


/* Shared interaction motion. One definition for cards, images and controls. */
:root{--motion-ease:cubic-bezier(.25,.1,.25,1);--motion-control:240ms;--motion-card:300ms;--motion-image:420ms}
.content-card,.format-card,.flash-list-item{transform:none;transition:transform var(--motion-card) var(--motion-ease),box-shadow var(--motion-card) ease,border-color 220ms ease,background-color 220ms ease}
.content-card .content-cover,.flash-list-thumbnail{transform:scale(1);transform-origin:center;transition:transform var(--motion-image) var(--motion-ease)}
.card-emoji{transition:transform var(--motion-image) var(--motion-ease)}
.button,.choice-button,.save-button,.icon-button,.social-platform,.tag-chips a,.pagination a,.desktop-nav a,.fortune-period-tabs a{transition:transform var(--motion-control) var(--motion-ease),background-color var(--motion-control) ease,border-color var(--motion-control) ease,box-shadow 300ms ease,color var(--motion-control) ease}
input,select,textarea{transition:border-color 220ms ease,box-shadow 220ms ease,background-color 220ms ease}
input:focus-visible,select:focus-visible,textarea:focus-visible{box-shadow:0 0 0 4px #9175d51a}
.card-link:focus-visible,.flash-list-item:focus-visible,.format-card:focus-visible,.tag-chips a:focus-visible,.pagination a:focus-visible,.button:focus-visible,.save-button:focus-visible,.fortune-period-tabs a:focus-visible{outline:3px solid #a58bdd;outline-offset:4px}
#main{transition:opacity 180ms ease}
#main[aria-busy="true"]{opacity:.78}
@media(any-hover:hover) and (any-pointer:fine){
 .content-card:hover,.content-card:focus-within,.flash-list-item:hover,.flash-list-item:focus-visible{transform:translateY(-7px) scale(1.02);box-shadow:0 16px 34px #51407417;border-color:#d9ccee}
 .content-card:hover .content-cover,.content-card:focus-within .content-cover,.flash-list-item:hover .flash-list-thumbnail{transform:scale(1.055)}
 .content-card:hover .card-emoji{transform:rotate(0deg) scale(1.07)}
 .format-card:hover{transform:translateY(-5px) scale(1.015);box-shadow:0 12px 26px #51407410}
 .button:not(:disabled):hover,.tag-chips a:hover,.pagination a:hover,.save-button:hover,.icon-button:hover{transform:translateY(-2px)}
}
.button:not(:disabled):active,.choice-button:not(:disabled):active,.save-button:not(:disabled):active,.icon-button:not(:disabled):active,.tag-chips a:active,.pagination a:active{transform:scale(.97);transition-duration:100ms}
@media(prefers-reduced-motion:reduce){
 /* Automatic animations stay disabled. Preserve the hover feedback explicitly requested by the owner. */
 @media(any-hover:hover) and (any-pointer:fine){
  .content-card,.format-card,.flash-list-item{transition:transform var(--motion-card) var(--motion-ease),box-shadow var(--motion-card) ease,border-color 220ms ease!important}
  .content-card .content-cover,.flash-list-thumbnail,.card-emoji{transition:transform var(--motion-image) var(--motion-ease)!important}
 }
}

/* Temporary supplied Pongdang symbol + wordmark lockup. */
.brand .brand-mark{object-fit:contain;border-radius:9px}
.brand .brand-wordmark{display:block;width:140px;height:auto;object-fit:contain;flex-shrink:0}
.brand:has(.brand-wordmark){gap:7px}
@media(max-width:600px){.brand .brand-wordmark{width:104px}.brand:has(.brand-wordmark){gap:4px}.brand .brand-mark{width:30px;height:30px}}
.admin-header .brand .brand-wordmark{width:112px}
@media(max-width:760px){.admin-header .brand .brand-wordmark{width:88px}.admin-header .brand:has(.brand-wordmark){gap:4px}}
