﻿:root {
    --ink: #251d24;
    --muted: #7d727b;
    --line: #f0e4eb;
    --rose: #ff5f93;
    --rose-strong: #ef3e78;
    --coral: #ff8b7b;
    --lavender: #a887ff;
    --paper: #ffffff;
    --soft: #fff6fa;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 222, 235, 0.9), transparent 28%),
        radial-gradient(circle at 82% 20%, rgba(235, 228, 255, 0.9), transparent 26%),
        linear-gradient(180deg, #fff, #fff9fc 62%, #fff);
    font-family: "Inter", "Noto Sans Thai", system-ui, sans-serif;
    letter-spacing: 0;
}

body.modal-open {
    overflow: hidden;
}

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

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    flex: 1 0 auto;
}

.site-shell > main {
    min-height: 100%;
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: auto auto 0;
    padding: 0 0 30px;
}

.site-footer-inner {
    display: grid;
    justify-items: center;
    border-top: 1px solid rgba(240, 228, 235, 0.78);
    padding-top: 22px;
    color: var(--muted);
}

.site-footer-meta {
    display: grid;
    justify-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    border-bottom: 1px solid rgba(240, 228, 235, 0.78);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.topbar-inner {
    display: flex;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

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

.brand {
    font-weight: 800;
}

.brand-text {
    display: grid;
    gap: 2px;
    line-height: 1;
}

.brand-name {
    position: relative;
    top: -2px;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand-motto {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.topbar-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 95, 147, 0.18);
    border-radius: 50%;
    color: white;
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.62), transparent 22%),
        linear-gradient(135deg, #ff6f99, #ff3f78 52%, #ff8b7b);
    box-shadow: 0 12px 30px rgba(255, 95, 147, 0.22);
}

.brand-logo-icon {
    width: 27px;
    height: 27px;
    filter: drop-shadow(0 2px 3px rgba(144, 24, 67, 0.22));
}

.brand-logo-heart {
    fill: rgba(255, 255, 255, 0.96);
}

.brand-logo-shine,
.brand-logo-bars {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-logo-shine {
    stroke: rgba(255, 95, 147, 0.34);
    stroke-width: 2.4;
}

.brand-logo-bars {
    stroke: #ff4c82;
    stroke-width: 2.6;
}

.nav-links a,
.icon-button,
.topbar-pill,
.topbar-soft-button,
.profile-avatar,
.menu-sound-button {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.menu-button {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.menu-button span {
    position: absolute;
    left: 12px;
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 180ms ease;
}

.menu-button span:first-child {
    top: 16px;
}

.menu-button span + span {
    top: 23px;
}

.menu-button.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-button.is-open span + span {
    transform: translateY(-3.5px) rotate(-45deg);
}

.icon-button {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.icon-button:hover,
.icon-button.is-done,
.topbar-pill:hover,
.topbar-soft-button:hover,
.profile-avatar:hover,
.menu-sound-button:hover {
    color: var(--rose-strong);
    border-color: rgba(255, 95, 147, 0.28);
    background: rgba(255, 246, 250, 0.92);
}

.topbar-pill,
.topbar-soft-button,
.profile-avatar,
.menu-sound-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.topbar-pill {
    gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
}

.field-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    min-width: 76px;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--rose-strong);
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.topbar-actions [data-tooltip]::after {
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    z-index: 60;
    width: max-content;
    max-width: 180px;
    padding: 7px 10px;
    border: 1px solid rgba(240, 228, 235, 0.94);
    border-radius: 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(86, 35, 60, 0.12);
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, -4px);
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: normal;
}

.topbar-actions [data-tooltip]::before {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    z-index: 61;
    width: 9px;
    height: 9px;
    border-top: 1px solid rgba(240, 228, 235, 0.94);
    border-left: 1px solid rgba(240, 228, 235, 0.94);
    background: rgba(255, 255, 255, 0.96);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px) rotate(45deg);
    transition: opacity 140ms ease, transform 140ms ease;
}

.topbar-actions [data-tooltip]:hover::after,
.topbar-actions [data-tooltip]:focus-visible::after,
.topbar-actions [data-tooltip]:hover::before,
.topbar-actions [data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

.topbar-actions [data-tooltip]:hover::before,
.topbar-actions [data-tooltip]:focus-visible::before {
    transform: translate(-50%, 0) rotate(45deg);
}

.field-toggle:hover {
    border-color: rgba(255, 95, 147, 0.28);
    background: rgba(255, 246, 250, 0.95);
    box-shadow: 0 8px 18px rgba(255, 95, 147, 0.12);
}

.field-toggle .score-heart-icon,
.field-toggle .premium-vote-icon {
    flex: 0 0 auto;
    transform: scale(0.82);
    transform-origin: center;
}

.field-toggle .premium-vote-icon--rose {
    top: 1px;
    width: 23px;
    height: 23px;
    transform: scale(0.78);
}

.field-toggle .premium-vote-icon--rose::after {
    top: 12px;
    height: 9px;
    box-shadow: -4px 3px 0 -1px #3dcc83, 4px 4px 0 -1px #279e63;
}

.topbar-soft-button,
.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.topbar-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.language-switcher {
    position: relative;
    display: grid;
}

.language-button {
    font-size: 12px;
}

.language-menu,
.nav-links {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(37, 29, 36, 0.12);
    backdrop-filter: blur(18px);
}

.language-menu {
    min-width: 136px;
    padding: 8px;
    border-radius: 16px;
}

.language-menu.is-open,
.nav-links.is-open {
    display: grid;
}

.language-menu button,
.nav-links a,
.menu-sound-button,
.menu-logout-form button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    border: 0;
    border-radius: 12px;
    padding: 0 12px;
    background: transparent;
    text-align: left;
}

.menu-logout-form {
    margin: 0;
}

.menu-logout-form button {
    cursor: pointer;
}

.language-menu button {
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.language-menu button:hover {
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.92);
}

.nav-links {
    z-index: 40;
    width: 236px;
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
}

.menu-sound-button {
    gap: 10px;
}

.profile-avatar {
    color: white;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.5), transparent 24%),
        linear-gradient(135deg, var(--rose), var(--coral));
}

.icon-svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.share-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 22px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

.share-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.share-modal-panel {
    display: grid;
    min-width: min(320px, 100%);
    gap: 4px;
    padding: 18px 22px;
    text-align: center;
    border: 1px solid rgba(255, 95, 147, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(37, 29, 36, 0.14);
    transform: translateY(8px) scale(0.96);
    transition: transform 180ms cubic-bezier(.2, 1.2, .36, 1);
}

.share-modal.is-open .share-modal-panel {
    transform: translateY(0) scale(1);
}

.share-modal-panel strong {
    color: var(--rose-strong);
    font-size: 16px;
}

.share-modal-panel span {
    color: var(--muted);
    font-size: 14px;
}

.share-modal-panel [data-share-status].is-success {
    color: #16824a;
    font-weight: 900;
}

.share-modal-panel [data-share-status].is-error {
    color: #c22f4d;
    font-weight: 900;
}

.share-panel {
    width: min(420px, 100%);
    gap: 16px;
    padding: 20px;
    text-align: left;
}

.share-panel-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.share-panel-head > div {
    display: grid;
    gap: 4px;
}

.share-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: #fff;
    cursor: pointer;
}

.share-link-field {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.share-link-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.share-qr-box {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.8), rgba(255, 255, 255, 0.96));
}

.share-qr-box img {
    width: min(220px, 100%);
    aspect-ratio: 1;
    border-radius: 12px;
    background: #fff;
}

.share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.share-actions button,
.share-actions a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    color: #fff;
    background: var(--rose);
    font-weight: 900;
    cursor: pointer;
}

.share-actions button.is-copied {
    background: linear-gradient(135deg, #20b26b, #52d49a);
}

.share-actions a {
    color: var(--rose-strong);
    border: 1px solid rgba(255, 95, 147, 0.22);
    background: #fff;
}

.report-modal {
    pointer-events: none;
}

.report-modal.is-open {
    pointer-events: auto;
}

.report-modal-panel {
    width: min(420px, 100%);
    text-align: left;
}

.report-modal-panel > strong,
.report-modal-panel > span {
    display: none;
}

.report-form {
    display: grid;
    gap: 12px;
}

.report-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.report-form select,
.report-form textarea,
.admin-table-row input[type="text"] {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.report-form.is-disabled label,
.report-form.is-disabled .report-actions {
    display: none;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.report-actions button[type="submit"] {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: var(--rose);
    font-weight: 900;
    cursor: pointer;
}

.home-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(900px, 100%);
    margin: 0 auto;
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: 18px 0 42px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--rose-strong);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-text,
.page-header p {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-link,
.secondary-link,
.simple-form button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
}

.primary-link,
.simple-form button {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    box-shadow: 0 14px 32px rgba(255, 95, 147, 0.22);
}

.secondary-link {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
}

.vote-stage {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 12px;
    min-height: 640px;
    border: 1px solid rgba(240, 228, 235, 0.9);
    border-radius: 30px;
    padding: clamp(18px, 4vw, 42px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 30px 80px rgba(86, 35, 60, 0.09);
    backdrop-filter: blur(16px);
}

.vote-heading {
    width: min(100%, 620px);
    text-align: center;
}

.vote-heading .eyebrow {
    margin-bottom: 8px;
}

.vote-heading h1 {
    margin: 0 auto;
}

.vote-heading p:not(.eyebrow) {
    max-width: 560px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.vote-click-zone {
    cursor: pointer;
}

.vote-click-zone,
.vote-click-zone * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.score-card,
.post-preview,
.country-summary,
.country-ranking-list {
    width: min(100%, 520px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.07);
}

.home-mode-carousel {
    position: relative;
    display: flex;
    width: min(100%, 520px);
    align-items: center;
}

.home-mode-tabs {
    display: flex;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 32px rgba(86, 35, 60, 0.06);
}

.home-mode-tabs::-webkit-scrollbar {
    display: none;
}

.home-mode-tabs a {
    flex: 1 0 132px;
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.home-mode-tabs a.is-active {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    box-shadow: 0 10px 24px rgba(255, 95, 147, 0.18);
}

.home-mode-page {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(248, 166, 196, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--rose);
    box-shadow: 0 10px 24px rgba(86, 35, 60, 0.12);
    transform: translateY(-50%);
    transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.home-mode-page span {
    display: block;
    margin-top: -2px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.home-mode-page--prev {
    left: -17px;
}

.home-mode-page--next {
    right: -17px;
}

.home-mode-carousel.is-overflowing .home-mode-page {
    display: flex;
}

.home-mode-page:hover {
    color: var(--coral);
    transform: translateY(-50%) scale(1.04);
}

.home-mode-page.is-disabled {
    opacity: 0;
    pointer-events: none;
}

.score-card {
    padding: 18px 22px;
    text-align: center;
}

.score-label,
.sync-state,
.hint {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.score-number {
    display: block;
    margin-top: 4px;
    font-size: clamp(48px, 8vw, 86px);
    font-weight: 800;
    line-height: 1;
}

.score-number.bump {
    animation: scoreBump 260ms ease-out;
}

.sync-state {
    display: none;
    margin-top: 10px;
    color: var(--rose-strong);
}

.post-preview {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    padding: 18px 18px 42px;
    text-align: left;
    transition: grid-template-columns 220ms ease;
}

.post-art {
    display: grid;
    min-height: 100%;
    place-items: center;
    border-radius: 12px;
    color: #bf315f;
    background:
        radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.85), transparent 20%),
        linear-gradient(135deg, #ffe6ef, #fff6fa 48%, #efe8ff);
    font-weight: 800;
    font-size: 13px;
}

.post-art-media {
    position: relative;
    overflow: hidden;
}

.post-art-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 82px;
    max-height: 92px;
    object-fit: cover;
    background: var(--soft);
}

.post-art-media iframe {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    border: 0;
    background: #050505;
}

.post-art-play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: inline-grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 95, 147, 0.94);
    box-shadow: 0 16px 34px rgba(86, 35, 60, 0.22);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.post-art-play span {
    margin-left: 4px;
    font-size: 24px;
    line-height: 1;
}

.post-art-media.is-playing iframe {
    display: block;
}

.post-art-media.is-playing .post-art-image,
.post-art-media.is-playing > span {
    opacity: 0;
}

.post-art-media.is-playing .post-art-play {
    display: none;
}

.post-preview-copy {
    display: grid;
    align-content: center;
    justify-items: stretch;
    min-width: 0;
}

.post-preview h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.post-preview p,
.hint {
    margin: 0;
    line-height: 1.7;
}

.post-description {
    position: relative;
    max-height: 30px;
    overflow: hidden;
    transition: max-height 260ms ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 95, 147, 0.36) transparent;
}

.post-description::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 82%);
    opacity: 1;
    transition: opacity 180ms ease;
}

.post-description.is-open {
    max-height: 190px;
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 8px;
}

.post-description-link {
    display: none;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin: 12px auto 4px;
    border: 1px solid rgba(255, 95, 147, 0.22);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.92);
    font-size: 13px;
    font-weight: 900;
}

.post-description.is-open .post-description-link {
    display: inline-flex;
}

.post-preview.is-open {
    grid-template-columns: 1fr;
    text-align: center;
}

.post-preview.is-open .post-preview-copy {
    justify-items: center;
}

.post-preview.is-open .post-art {
    min-height: 190px;
}

.post-preview.is-open .post-art-image {
    min-height: 190px;
    max-height: 240px;
}

.post-description.is-open::after {
    opacity: 0;
}

.post-description::-webkit-scrollbar {
    width: 6px;
}

.post-description::-webkit-scrollbar-track {
    background: transparent;
}

.post-description::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 95, 147, 0.32);
}

.description-toggle {
    position: absolute;
    bottom: 12px;
    left: 50%;
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-top: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--rose-strong);
    background: #fff;
    box-shadow: 0 8px 18px rgba(86, 35, 60, 0.06);
    cursor: pointer;
    transform: translateX(-50%);
    transition: transform 180ms ease, background 180ms ease;
}

.description-toggle:hover {
    background: var(--soft);
}

.description-toggle.is-open {
    transform: translateX(-50%) rotate(180deg);
}

.country-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: 16px 18px;
    text-align: center;
}

.country-total {
    display: grid;
    gap: 5px;
}

.country-total strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    line-height: 1.2;
}

.country-total p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.battle-summary .country-total strong {
    color: var(--ink);
}

.battle-summary .next-rank-copy strong {
    display: block;
}

.next-rank-challenge {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    border: 1px solid rgba(255, 95, 147, 0.14);
    border-radius: 18px;
    padding: 13px 14px;
    text-align: left;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.92), transparent 24%),
        linear-gradient(135deg, rgba(255, 246, 250, 0.92), rgba(247, 240, 255, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.next-rank-challenge.is-active {
    border-color: rgba(255, 95, 147, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 12px 30px rgba(255, 95, 147, 0.12);
    transform: translateY(-1px);
}

.next-rank-challenge.is-complete {
    border-color: rgba(255, 139, 123, 0.34);
}

.next-rank-copy {
    display: grid;
    gap: 4px;
}

.next-rank-copy > span {
    color: var(--rose-strong);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.next-rank-copy strong {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    line-height: 1.45;
}

.next-rank-copy b {
    color: var(--rose-strong);
    font-size: 17px;
}

.next-rank-meter {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(240, 228, 235, 0.86);
}

.next-rank-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rose), var(--coral));
    transition: width 240ms ease;
}

.next-rank-challenge p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.55;
}

.flag {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 22px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(37, 29, 36, 0.08);
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(86, 35, 60, 0.08);
    vertical-align: middle;
}

.flag--jp {
    background: radial-gradient(circle at 50% 50%, #d3002a 0 28%, transparent 29%), #fff;
}

.flag--th {
    background: linear-gradient(#d71f35 0 16%, #fff 16% 32%, #233a8b 32% 68%, #fff 68% 84%, #d71f35 84%);
}

.flag--us {
    background: repeating-linear-gradient(#bf1636 0 2px, #fff 2px 4px);
}

.flag--us::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 13px;
    height: 11px;
    background: #24468f;
}

.flag--kr {
    background:
        radial-gradient(circle at 50% 50%, #d9272e 0 21%, transparent 22%),
        radial-gradient(circle at 50% 58%, #24468f 0 18%, transparent 19%),
        #fff;
}

.flag--cn {
    background: radial-gradient(circle at 28% 32%, #ffd34d 0 9%, transparent 10%), #de2910;
}

.flag--gb {
    background:
        linear-gradient(32deg, transparent 42%, #fff 43% 47%, #c8102e 48% 52%, #fff 53% 57%, transparent 58%),
        linear-gradient(-32deg, transparent 42%, #fff 43% 47%, #c8102e 48% 52%, #fff 53% 57%, transparent 58%),
        linear-gradient(90deg, transparent 38%, #fff 39% 44%, #c8102e 45% 55%, #fff 56% 61%, transparent 62%),
        linear-gradient(0deg, transparent 34%, #fff 35% 42%, #c8102e 43% 57%, #fff 58% 65%, transparent 66%),
        #012169;
}

.flag--fr {
    background: linear-gradient(90deg, #002395 0 33.33%, #fff 33.33% 66.66%, #ed2939 66.66%);
}

.flag--de {
    background: linear-gradient(#000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}

.rank-icon,
.rank-tag {
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 800;
}

.rank-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
}

.rank-tag {
    position: relative;
    grid-template-columns: 16px auto;
    min-width: 48px;
    height: 28px;
    gap: 4px;
    padding: 0 9px 0 7px;
    border-radius: 999px 9px 9px 999px;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(86, 35, 60, 0.11);
}

.rank-tag::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%);
}

.rank-tag-medal {
    display: block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 -2px 4px rgba(37, 29, 36, 0.12);
}

.rank-tag--1 {
    background: linear-gradient(135deg, #f8c842, #f39b24);
}

.rank-icon--2 {
    background: linear-gradient(135deg, #9a9fb0, #d9dde8);
}

.rank-tag--2 {
    background: linear-gradient(135deg, #9ea4b3, #d9dde8);
}

.rank-icon--3 {
    background: linear-gradient(135deg, #c27648, #f0b487);
}

.rank-tag--3 {
    background: linear-gradient(135deg, #b86f42, #efb181);
}

.country-ranking-list {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.ranking-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.ranking-title-row h2 {
    margin: 0;
    font-size: 18px;
}

.ranking-title-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.country-rank-row {
    display: grid;
    grid-template-columns: 56px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    border: 1px solid #f5edf2;
    border-radius: 16px;
    padding: 8px 10px;
    background: #fff;
}

.country-rank-row.is-mine {
    border-color: rgba(255, 95, 147, 0.3);
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.96), rgba(255, 255, 255, 0.96));
}

.country-rank-number {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.country-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-rank-row strong {
    font-size: 15px;
}

.battle-ranking-list .ranking-title-row h2 {
    color: var(--ink);
}

.battle-rank-row {
    grid-template-columns: 56px 44px minmax(0, 1fr) auto;
}

.battle-rank-slot {
    display: inline-grid;
    min-height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 95, 147, 0.18);
    border-radius: 999px;
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.9);
    font-size: 12px;
    font-weight: 900;
}

.heart-button {
    position: relative;
    display: grid;
    width: 166px;
    height: 150px;
    margin: 18px 0 22px;
    place-items: center;
    border: 0;
    border-radius: 42px;
    color: white;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 120ms ease, filter 180ms ease, opacity 180ms ease;
}

.vote-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.vote-choice-card {
    display: grid;
    min-height: 138px;
    gap: 7px;
    align-content: start;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 28px rgba(86, 35, 60, 0.06);
    cursor: pointer;
}

.vote-choice-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    object-fit: cover;
}

.vote-choice-card strong,
.vote-choice-card span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-choice-card strong {
    font-size: 14px;
}

.vote-choice-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.choice-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(37, 29, 36, 0.22);
    backdrop-filter: blur(8px);
}

.choice-confirm-modal.is-open {
    display: grid;
}

.choice-confirm-panel {
    display: grid;
    width: min(420px, 100%);
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 26px 70px rgba(86, 35, 60, 0.18);
}

.choice-confirm-panel img {
    width: 100%;
    max-height: 240px;
    border-radius: 18px;
    object-fit: cover;
}

.choice-confirm-panel img[hidden] {
    display: none;
}

.choice-confirm-panel h2,
.choice-confirm-panel p {
    margin: 0;
}

.choice-confirm-panel p {
    color: var(--muted);
    line-height: 1.65;
}

.choice-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.choice-confirm-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 900;
}

.choice-confirm-actions .login-required-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(255, 95, 147, 0.18);
}

.member-rank-privacy-panel {
    gap: 14px;
}

.member-rank-privacy-actions {
    justify-content: stretch;
}

.member-rank-privacy-actions button {
    flex: 1 1 160px;
}

.choice-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(37, 29, 36, 0.24);
    backdrop-filter: blur(9px);
}

.choice-detail-modal.is-open {
    display: grid;
}

.choice-detail-panel {
    position: relative;
    display: grid;
    width: min(440px, 100%);
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 28px 80px rgba(86, 35, 60, 0.2);
}

.choice-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
}

.choice-detail-panel img {
    width: 100%;
    max-height: 230px;
    border-radius: 18px;
    object-fit: cover;
}

.choice-detail-panel img[hidden] {
    display: none;
}

.choice-detail-kicker {
    color: var(--pink);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.choice-detail-panel h2,
.choice-detail-panel p {
    margin: 0;
}

.choice-detail-panel p {
    color: var(--muted);
    line-height: 1.65;
}

.choice-detail-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    padding: 12px 14px;
    background: rgba(255, 246, 250, 0.82);
}

.choice-detail-score span {
    color: var(--muted);
    font-weight: 800;
}

.choice-detail-score strong {
    font-size: 1.3rem;
}

.choice-detail-icon {
    display: inline-grid;
    min-width: 34px;
    place-items: center;
    color: #f20d16;
    font-size: 1.25rem;
    line-height: 1;
}

.choice-detail-icon--heart,
.score-heart-icon,
.premium-vote-icon {
    display: inline-block;
    width: 23px;
    height: 21px;
}

.score-heart-icon[hidden],
.premium-vote-icon[hidden] {
    display: none;
}

.choice-detail-icon--heart,
.score-heart-icon {
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.82) 0 13%, transparent 15%),
        radial-gradient(circle at 30% 33%, #ff2a2f 0 35%, transparent 36%),
        radial-gradient(circle at 68% 33%, #ff1018 0 35%, transparent 36%),
        linear-gradient(135deg, #ff2c31 0%, #f30710 62%, #ca0008 100%);
    clip-path: path("M 11.5 20 C 5 14.8 1.5 11.4 1.5 6.7 C 1.5 3.6 3.7 1.5 6.5 1.5 C 8.4 1.5 10.2 2.5 11.5 4.3 C 12.8 2.5 14.6 1.5 16.5 1.5 C 19.3 1.5 21.5 3.6 21.5 6.7 C 21.5 11.4 18 14.8 11.5 20 Z");
    filter: drop-shadow(0 5px 7px rgba(240, 0, 15, 0.22));
}

.choice-detail-icon--heart {
    width: 38px;
    height: 35px;
}

.premium-vote-icon--rose {
    position: relative;
    width: 25px;
    height: 25px;
}

.premium-vote-icon--rose::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 15px;
    height: 15px;
    border-radius: 50% 50% 45% 45%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.78) 0 16%, transparent 18%),
        linear-gradient(135deg, #ff5f93, #e8124f 68%, #a90035);
    box-shadow: inset -3px -3px 4px rgba(128, 0, 41, 0.18), 0 5px 8px rgba(239, 62, 120, 0.22);
    transform: rotate(-12deg);
}

.premium-vote-icon--rose::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 13px;
    width: 3px;
    height: 12px;
    border-radius: 999px;
    background: #2fb673;
    box-shadow: -5px 4px 0 -1px #3dcc83, 5px 5px 0 -1px #279e63;
    transform: rotate(12deg);
}

.premium-vote-icon--gem,
.premium-vote-icon--star,
.premium-vote-icon--crown {
    display: inline-grid;
    place-items: center;
    color: var(--rose-strong);
    font-size: 1.1rem;
    line-height: 1;
}

.premium-vote-icon--gem::before {
    content: "\25C6";
}

.premium-vote-icon--star::before {
    content: "\2605";
}

.premium-vote-icon--crown::before {
    content: "\265B";
}

.choice-detail-score--rose .choice-detail-icon {
    width: 38px;
    height: 35px;
}

.choice-detail-score--rose {
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.9), rgba(246, 239, 255, 0.82));
}

.battle-choice-lock {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
    width: min(100%, 520px);
    align-items: center;
    margin-inline: auto;
    padding-top: 20px;
}

.battle-choice-dots {
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    gap: 6px;
    align-items: center;
    transform: translateX(-50%);
}

.battle-choice-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(37, 29, 36, 0.18);
    transition: width 180ms ease, background 180ms ease;
}

.battle-choice-dots span.is-active {
    width: 28px;
    background: rgba(255, 95, 147, 0.68);
}

.battle-arrow,
.battle-lock-button,
.battle-choice-focus {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 28px rgba(86, 35, 60, 0.06);
    cursor: pointer;
}

.battle-arrow {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: var(--rose-strong);
    font-size: 30px;
    font-weight: 900;
}

.battle-arrow:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.battle-choice-focus {
    position: relative;
    display: grid;
    min-height: 68px;
    gap: 3px;
    align-content: center;
    justify-items: center;
    border-radius: 16px;
    padding: 12px 48px 12px 18px;
    color: var(--ink);
    text-align: center;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.battle-choice-focus.is-locked {
    border-color: rgba(255, 95, 147, 0.5);
    box-shadow: 0 12px 28px rgba(255, 95, 147, 0.12);
}

.battle-choice-focus span {
    color: var(--rose-strong);
    font-size: 12px;
    font-weight: 900;
}

.battle-choice-focus small {
    display: -webkit-box;
    width: 100%;
    color: var(--muted);
    max-width: 34ch;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    line-height: 1.35;
}

.battle-lock-button {
    position: absolute;
    top: 4px;
    right: 6px;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 0;
    color: var(--rose-strong);
    font-size: 32px;
    font-weight: 900;
    background: transparent;
    box-shadow: none;
}

.battle-choice-focus .battle-lock-button {
    font-size: 28px;
}

.battle-lock-button.is-locked {
    color: var(--rose-strong);
    background: transparent;
}

.battle-choice-focus .battle-lock-button span,
.battle-lock-button span {
    font-size: inherit;
    line-height: 1;
}

.heart-button:not(.is-choice-locked)[data-post-mode="battle"],
.heart-button:not(.is-choice-locked)[data-post-mode="vote"] {
    filter: grayscale(0.35);
    opacity: 0.58;
    cursor: not-allowed;
}

.heart-button:not(.is-choice-locked)[data-post-mode="battle"]:active,
.heart-button:not(.is-choice-locked)[data-post-mode="battle"].is-pressing,
.heart-button:not(.is-choice-locked)[data-post-mode="vote"]:active,
.heart-button:not(.is-choice-locked)[data-post-mode="vote"].is-pressing {
    transform: none;
}

.heart-button[data-post-mode="vote"][data-vote-locked="1"],
.heart-button[data-post-mode="vote"].is-vote-locked {
    filter: grayscale(0.45) saturate(0.72);
    opacity: 0.58;
}

.heart-button[data-post-mode="vote"].is-login-required:not(.is-choice-locked) {
    cursor: not-allowed;
}

.side-panel {
    display: none;
    align-content: end;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 70px rgba(86, 35, 60, 0.07);
}

.side-panel > div:first-child {
    display: grid;
    gap: 8px;
}

.mini-label {
    color: var(--rose-strong);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.side-panel strong {
    font-size: 24px;
    line-height: 1.2;
}

.side-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.side-actions {
    display: grid;
    gap: 10px;
}

.heart-button:active,
.heart-button.is-pressing {
    transform: scale(0.88);
}

.heart-button.is-pop {
    animation: heartPop 360ms cubic-bezier(0.2, 1.8, 0.35, 1);
}

.heart-button.is-cooling {
    opacity: 0.64;
    filter: saturate(0.7);
    animation: tinyShake 260ms ease-in-out;
}

.heart-button.is-idle-nudge {
    animation: heartIdleNudge 400ms cubic-bezier(.2, 1.45, .42, 1);
    transform-origin: 50% 72%;
    will-change: transform;
}

.heart-shape {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    line-height: 1;
}

.heart-button[data-active-field="rose"] .heart-shape {
    opacity: 0;
    transform: scale(0.78);
}

.heart-button[data-active-field="rose"]::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 38%;
    width: 92px;
    height: 92px;
    border-radius: 50% 50% 45% 45%;
    background:
        radial-gradient(circle at 31% 28%, rgba(255, 255, 255, 0.92) 0 13%, transparent 15%),
        radial-gradient(circle at 58% 35%, rgba(255, 255, 255, 0.26), transparent 34%),
        linear-gradient(135deg, #ff6f9d, #ff1d60 58%, #b9003d);
    box-shadow:
        inset -12px -14px 18px rgba(134, 0, 45, 0.2),
        0 18px 34px rgba(239, 62, 120, 0.25);
    transform: translate(-50%, -50%) rotate(-12deg);
}

.heart-button[data-active-field="rose"]::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 61%;
    width: 12px;
    height: 70px;
    border-radius: 999px;
    background: linear-gradient(180deg, #4bd88e, #168d57);
    box-shadow:
        -24px 22px 0 -9px #52d990,
        24px 25px 0 -9px #2ebc76,
        0 16px 24px rgba(33, 151, 89, 0.2);
    transform: translate(-50%, -50%) rotate(13deg);
}

.heart-glow {
    position: absolute;
    inset: -18px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 26, 26, 0.26), transparent 68%);
    opacity: 0;
}

.heart-button.is-pop .heart-glow {
    animation: glowPulse 480ms ease-out;
}

.floating-heart {
    position: fixed;
    z-index: 20;
    pointer-events: none;
    color: #ff0909;
    font-size: 34px;
    line-height: 1;
    text-shadow: 0 10px 24px rgba(220, 0, 0, 0.28);
    transform: translate(-50%, -50%);
    animation: floatHeart 820ms ease-in forwards;
}

.floating-heart--premium {
    color: #ff5aa5;
    font-weight: 1000;
    text-shadow: 0 10px 24px rgba(255, 90, 165, 0.32);
}

.puffy-heart-main,
.puffy-heart-preview {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
    filter: drop-shadow(0 22px 28px rgba(220, 0, 0, 0.22));
}

.puffy-heart-preview {
    width: 132px;
    height: 122px;
}

.puffy-heart-shadow {
    fill: #b60000;
    opacity: 0.22;
    transform: translate(8px, 8px);
}

.puffy-heart-fill {
    fill: url(#puffyHeartMain), #ff1018;
}

.puffy-heart-preview .puffy-heart-fill {
    fill: #ff0707;
}

.puffy-heart-preview--drop .puffy-heart-fill {
    fill: #ff1515;
}

.puffy-heart-preview--gem .puffy-heart-fill {
    fill: #f90717;
}

.puffy-heart-preview--candy .puffy-heart-fill {
    fill: #ff1212;
}

.puffy-heart-preview--cloud .puffy-heart-fill {
    fill: #ff1d1d;
}

.puffy-heart-preview--drop .puffy-heart-highlight {
    transform: rotate(-28deg) translate(10px, -2px);
}

.puffy-heart-preview--gem .puffy-heart-highlight {
    opacity: 0.65;
    transform: rotate(-24deg) translate(16px, 3px);
}

.puffy-heart-preview--candy .puffy-heart-highlight {
    transform: rotate(-38deg) translate(4px, 2px);
}

.puffy-heart-preview--cloud .puffy-heart-highlight {
    opacity: 0.7;
    transform: rotate(-30deg) translate(13px, 3px);
}

.puffy-heart-highlight,
.puffy-heart-highlight-small {
    fill: white;
    opacity: 0.86;
}

.puffy-heart-highlight--jelly {
    opacity: 0.9;
}

.puffy-heart-curve {
    stroke: white;
    stroke-width: 8;
    stroke-linecap: round;
    opacity: 0.22;
}

.puffy-heart-curve--jelly {
    stroke-width: 10;
    opacity: 0.24;
}

.page-header {
    display: grid;
    justify-items: center;
    padding: 56px 0 24px;
    text-align: center;
}

.page-header .eyebrow {
    max-width: 720px;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: clamp(18px, 3.6vw, 22px);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.page-header h1 {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(24px, 5vw, 36px);
    text-align: center;
}

.page-header p:not(.eyebrow) {
    max-width: 760px;
    margin: 14px auto 0;
    text-align: center;
}

.ranking-list {
    display: grid;
    gap: 12px;
    padding-bottom: 56px;
}

.ranking-row,
.admin-grid > div,
.simple-form,
.placeholder-panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.placeholder-panel {
    display: grid;
    gap: 6px;
    max-width: 560px;
    padding: 20px;
}

.placeholder-panel span {
    color: var(--muted);
}

.profile-login-panel {
    width: min(100%, 560px);
    margin-right: auto;
    margin-left: auto;
}

.profile-login-panel .primary-link {
    justify-self: stretch;
}

.form-errors,
.form-message,
.profile-panel {
    max-width: 560px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 34px rgba(86, 35, 60, 0.06);
}

.form-errors,
.form-message {
    width: min(100%, 560px);
    margin-right: auto;
    margin-bottom: 14px;
    margin-left: auto;
    padding: 14px 16px;
}

.form-errors {
    color: #b42342;
    border-color: rgba(244, 63, 94, 0.22);
    background: rgba(255, 241, 244, 0.9);
}

.form-errors p,
.form-footnote {
    margin: 0;
}

.form-message {
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.92);
}

.form-footnote {
    color: var(--muted);
    font-size: 14px;
}

.form-footnote a {
    color: var(--rose-strong);
    font-weight: 800;
}

.profile-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    width: 100%;
    max-width: none;
    margin-bottom: 16px;
    padding: 18px;
}

.profile-panel h2,
.profile-panel p {
    margin: 0;
}

.profile-panel p {
    color: var(--muted);
}

.profile-avatar-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: max-content;
}

.profile-name-row,
.member-rank-name-row {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.verified-account-badge {
    display: inline-flex;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(68, 162, 255, 0.34);
    border-radius: 999px;
    padding: 3px 8px 3px 5px;
    color: #1766b1;
    background: linear-gradient(135deg, rgba(235, 247, 255, 0.98), rgba(255, 246, 251, 0.98));
    box-shadow: 0 8px 20px rgba(68, 162, 255, 0.14);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.verified-account-badge > span {
    position: relative;
    display: inline-grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #4aa3ff, #ff5f93);
}

.verified-account-badge > span::after {
    content: "";
    width: 7px;
    height: 4px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.verified-account-badge small {
    font: inherit;
}

.verified-account-badge--avatar {
    position: absolute;
    right: -7px;
    bottom: -5px;
    width: 24px;
    min-height: 24px;
    justify-content: center;
    padding: 3px;
    z-index: 2;
}

.verified-account-badge--avatar small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.profile-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.profile-panel-actions form {
    margin: 0;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 56px;
}

.profile-summary-card {
    display: grid;
    width: 100%;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.profile-summary-card--wide {
    grid-column: 1 / -1;
}

.profile-summary-card h2,
.profile-summary-card p {
    margin: 0;
}

.profile-summary-card p {
    color: var(--muted);
    line-height: 1.7;
}

.profile-world-card {
    border-color: rgba(255, 79, 141, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 250, 0.9));
}

.profile-world-message {
    max-width: 760px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    white-space: pre-wrap;
}

.profile-summary-card dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 0;
}

.profile-summary-card dl div {
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 246, 250, 0.68);
}

.profile-summary-card dt,
.profile-summary-card dd {
    margin: 0;
}

.profile-summary-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-summary-card dd {
    margin-top: 4px;
    font-weight: 800;
}

.profile-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-social-links a,
.profile-social-links span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 13px;
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.82);
    font-weight: 800;
}

.profile-social-links span {
    color: var(--muted);
}

.profile-played-section {
    display: grid;
    gap: 14px;
    margin: -34px 0 56px;
}

.profile-played-section.profile-played-section--page {
    margin-top: 14px;
}

.profile-played-link-card .primary-link {
    justify-self: start;
}

.profile-played-filter {
    margin-bottom: 0;
}

.profile-section-head {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    justify-content: space-between;
}

.profile-section-head h2,
.profile-section-head p {
    margin: 0;
}

.profile-section-head p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.65;
}

.profile-played-list {
    display: grid;
    gap: 10px;
}

.profile-empty-card,
.profile-played-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.profile-empty-card {
    display: grid;
    gap: 4px;
    padding: 18px;
}

.profile-empty-card span {
    color: var(--muted);
}

.profile-played-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) minmax(230px, 0.34fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.profile-played-image {
    width: 82px;
    aspect-ratio: 1;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(255, 232, 241, 0.96), rgba(241, 232, 255, 0.9));
}

.profile-played-image--placeholder {
    display: grid;
    place-items: center;
    color: var(--rose-strong);
    font-size: 24px;
    font-weight: 900;
}

.profile-played-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.profile-played-main h3,
.profile-played-main p {
    margin: 0;
}

.profile-played-main h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-played-main p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-played-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-played-meta span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid rgba(244, 221, 231, 0.92);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--muted);
    background: rgba(255, 246, 250, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.profile-played-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.profile-played-actions label {
    grid-column: 1 / -1;
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.profile-played-actions select {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font-weight: 800;
}

.profile-played-actions button,
.profile-played-actions a {
    min-height: 38px;
    justify-content: center;
}

.profile-played-actions .primary-link {
    grid-column: 1 / -1;
}

.profile-feed-status {
    justify-self: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 900;
}

.profile-feed-sentinel {
    min-height: 1px;
}

.profile-display-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 900;
}

.profile-display-panel select {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font-weight: 900;
}

.profile-avatar--large {
    width: 58px;
    height: 58px;
    font-size: 22px;
}

.profile-avatar-image {
    object-fit: cover;
}

.ranking-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

.ranking-row--soft {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.ranking-row--soft.is-ranking-enter {
    animation: rankingSoftEnter 420ms ease both;
    animation-delay: var(--rank-delay, 0ms);
}

.ranking-row--soft.is-rank-changed {
    border-color: rgba(255, 95, 147, 0.28);
    box-shadow: 0 18px 42px rgba(255, 95, 147, 0.1);
}

.ranking-row--soft.is-rank-changed::after {
    content: attr(data-rank-movement);
    position: absolute;
    top: 12px;
    right: 14px;
    border-radius: 999px;
    padding: 3px 8px;
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.94);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0;
    animation: rankingMovementHint 1400ms ease both;
}

.rank-badge {
    display: grid;
    min-width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--lavender));
    font-weight: 800;
}

.rank-badge--1 {
    background: linear-gradient(135deg, #f8c842, #f39b24);
}

.rank-badge--2 {
    background: linear-gradient(135deg, #9ea4b3, #d9dde8);
}

.rank-badge--3 {
    background: linear-gradient(135deg, #b86f42, #efb181);
}

.ranking-main {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.ranking-main h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.ranking-score {
    display: grid;
    justify-items: end;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.ranking-score strong {
    color: var(--ink);
    font-size: 22px;
}

.ranking-row h2,
.ranking-row p {
    margin: 0;
}

.ranking-row p {
    color: var(--muted);
}

.ranking-pagination {
    margin-top: 4px;
}

.leaderboard-shell {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 28px 0 64px;
}

.leaderboard-center {
    display: grid;
    gap: 16px;
    width: min(900px, 100%);
}

.leaderboard-hero {
    display: grid;
    gap: 14px;
    padding: 18px 0 2px;
}

.leaderboard-hero-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    border: 1px solid rgba(240, 228, 235, 0.9);
    border-radius: 28px;
    padding: clamp(16px, 3vw, 24px);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 225, 236, 0.78), transparent 34%),
        radial-gradient(circle at 90% 8%, rgba(235, 228, 255, 0.82), transparent 30%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 70px rgba(86, 35, 60, 0.08);
}

.leaderboard-hero-copy {
    display: grid;
    gap: 8px;
}

.leaderboard-hero-copy h1 {
    max-width: none;
    font-size: clamp(26px, 4vw, 44px);
}

.leaderboard-hero-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.leaderboard-control-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 44px rgba(86, 35, 60, 0.06);
}

.leaderboard-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid rgba(244, 221, 231, 0.86);
    border-radius: 20px;
    padding: 6px;
    background: rgba(255, 246, 250, 0.66);
}

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

.leaderboard-segment a,
.leaderboard-segment span,
.leaderboard-chip-group a,
.leaderboard-chip-group span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
}

.leaderboard-segment a,
.leaderboard-segment span {
    min-height: 52px;
    flex-direction: column;
    gap: 2px;
}

.leaderboard-segment small {
    font-size: 11px;
    font-weight: 800;
}

.leaderboard-segment .is-active,
.leaderboard-chip-group .is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    box-shadow: 0 12px 26px rgba(255, 95, 147, 0.18);
}

.leaderboard-segment .is-disabled,
.leaderboard-chip-group .is-disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.leaderboard-filter-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.leaderboard-filter-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.leaderboard-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leaderboard-chip-group--single {
    align-items: center;
}

.leaderboard-chip-group--single small {
    flex: 1 1 220px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.leaderboard-chip-group a,
.leaderboard-chip-group span {
    min-height: 38px;
    gap: 6px;
    border: 1px solid rgba(244, 221, 231, 0.92);
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.leaderboard-card--center {
    border-radius: 26px;
}

.leaderboard-row--member {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
}

.member-avatar--small {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    overflow: visible;
    border: 1px solid rgba(255, 196, 216, 0.95);
    border-radius: 999px;
    background: linear-gradient(135deg, #fff4f8, #f3edff);
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
}

.member-avatar--small img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.member-profile-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.member-profile-link:hover,
.member-profile-link:focus-visible {
    border-color: rgba(255, 95, 147, 0.72);
    box-shadow: 0 10px 22px rgba(255, 95, 147, 0.18);
    transform: translateY(-1px);
}

.member-rank-profile {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.member-rank-profile strong,
.member-rank-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-rank-name {
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
}

.member-rank-name-row {
    width: 100%;
}

.member-rank-name-row .verified-account-badge {
    min-height: 20px;
    padding: 2px 7px 2px 4px;
    font-size: 10px;
}

.member-rank-name-row .verified-account-badge > span {
    width: 14px;
    height: 14px;
}

.member-rank-name:hover,
.member-rank-name:focus-visible {
    color: var(--rose);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.member-rank-profile small {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-profile-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 22px clamp(16px, 3vw, 28px) 42px;
}

.member-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 26px;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 219, 232, 0.76), transparent 34%),
        linear-gradient(135deg, #ffffff, #fff6f9 58%, #f7f3ff);
    box-shadow: 0 22px 48px rgba(102, 64, 86, 0.1);
}

.member-profile-avatar {
    position: relative;
    width: clamp(82px, 12vw, 118px);
    height: clamp(82px, 12vw, 118px);
    display: grid;
    place-items: center;
    overflow: visible;
    border: 2px solid rgba(255, 196, 216, 0.95);
    border-radius: 999px;
    background: linear-gradient(135deg, #fff4f8, #f3edff);
    color: var(--rose);
    font-size: 34px;
    font-weight: 1000;
}

.member-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.member-profile-title {
    min-width: 0;
}

.member-profile-title h1 {
    margin: 4px 0 8px;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1;
}

.member-profile-title p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
}

.member-follow-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.member-follow-panel > span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 900;
}

.member-follow-panel form {
    margin: 0;
}

.member-follow-panel button {
    min-height: 34px;
    border: 0;
}

.member-profile-story {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(244, 221, 231, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.member-profile-story img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
}

.member-profile-story h2 {
    margin: 6px 0 4px;
    font-size: 18px;
}

.member-profile-story p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.member-profile-stats {
    display: grid;
    justify-items: end;
    gap: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.member-profile-stats strong {
    color: var(--ink);
    font-size: 22px;
}

.member-profile-note {
    max-width: none;
}

.member-profile-grid {
    margin-top: 16px;
}

.leaderboard-drill-link {
    justify-self: end;
    border: 1px solid rgba(244, 221, 231, 0.92);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--rose);
    background: rgba(255, 246, 250, 0.82);
    font-size: 12px;
    font-weight: 900;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px 0;
}

.leaderboard-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leaderboard-links .secondary-link {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
}

.leaderboard-links .secondary-link.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    box-shadow: 0 12px 26px rgba(255, 95, 147, 0.18);
}

.leaderboard-header h1 {
    max-width: none;
    font-size: clamp(24px, 4vw, 38px);
}

.leaderboard-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.leaderboard-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(86, 35, 60, 0.08);
}

.leaderboard-world-row,
.leaderboard-row {
    display: grid;
    grid-template-columns: 46px 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(240, 228, 235, 0.82);
}

.leaderboard-world-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 64px;
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.76), rgba(255, 255, 255, 0.96));
}

.leaderboard-total-dual {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-items: end;
    color: var(--rose-strong);
    font-weight: 900;
}

.leaderboard-total-dual > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    white-space: nowrap;
}

.leaderboard-world-icon {
    font-size: 22px;
}

.leaderboard-list {
    display: grid;
}

.leaderboard-row {
    border-radius: 0;
    border-right: 0;
    border-left: 0;
    border-top: 0;
    box-shadow: none;
    background: #fff;
}

.leaderboard-row--choice {
    cursor: pointer;
}

.leaderboard-row--choice:focus-visible {
    outline: 3px solid rgba(255, 91, 139, 0.28);
    outline-offset: -3px;
}

.leaderboard-row.is-top {
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.9), rgba(255, 255, 255, 0.98));
}

.leaderboard-rank {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-weight: 900;
}

.leaderboard-rank-medal {
    display: inline-block;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.88), transparent 22%),
        radial-gradient(circle at 58% 68%, rgba(126, 71, 0, 0.22), transparent 34%),
        linear-gradient(135deg, #ffe48a, #f5b92f 48%, #b87410);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -2px 3px rgba(95, 49, 0, 0.2), 0 6px 12px rgba(255, 184, 47, 0.22);
    clip-path: polygon(50% 0%, 59% 17%, 78% 10%, 78% 31%, 98% 39%, 82% 51%, 94% 69%, 72% 70%, 67% 91%, 50% 80%, 33% 91%, 28% 70%, 6% 69%, 18% 51%, 2% 39%, 22% 31%, 22% 10%, 41% 17%);
    position: relative;
}

.leaderboard-rank-medal::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.72), transparent 28%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.leaderboard-rank--2 .leaderboard-rank-medal {
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 22%),
        radial-gradient(circle at 58% 68%, rgba(60, 67, 83, 0.18), transparent 34%),
        linear-gradient(135deg, #f7f9ff, #c8cedd 48%, #7f8799);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -2px 3px rgba(56, 62, 77, 0.18), 0 6px 12px rgba(126, 135, 153, 0.18);
}

.leaderboard-rank--3 .leaderboard-rank-medal {
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.8), transparent 22%),
        radial-gradient(circle at 58% 68%, rgba(99, 49, 20, 0.2), transparent 34%),
        linear-gradient(135deg, #ffd0a5, #c77b3e 48%, #82441f);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.72), inset 0 -2px 3px rgba(83, 38, 15, 0.18), 0 6px 12px rgba(199, 123, 62, 0.18);
}

.leaderboard-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-row--choice {
    grid-template-columns: 46px auto minmax(0, 1fr) auto;
}

.leaderboard-choice-slot {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 800;
    justify-self: start;
    min-width: 46px;
    padding: 0.35rem 0.65rem;
    text-align: center;
}

.leaderboard-score {
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.leaderboard-score--field {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.leaderboard-score--field .premium-vote-icon + span {
    color: var(--rose-strong);
}

.leaderboard-score--dual {
    display: grid;
    gap: 3px;
    justify-items: end;
    font-size: 15px;
    line-height: 1.15;
}

.leaderboard-score--dual span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.leaderboard-score--dual span:last-child {
    color: var(--rose-strong);
}

.leaderboard-score--dual b {
    font-size: 0.92em;
}

.leaderboard-score--dual span:first-child b {
    color: #f20d16;
}

.leaderboard-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
}

.leaderboard-pagination strong,
.leaderboard-pagination span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 14px;
    color: var(--muted);
    background: rgba(255, 246, 250, 0.72);
    font-size: 13px;
    font-weight: 900;
}

.leaderboard-pagination span {
    opacity: 0.48;
}

.leaderboard-empty {
    display: grid;
    gap: 6px;
    padding: 22px;
}

.leaderboard-empty span {
    color: var(--muted);
}

.simple-form {
    display: grid;
    gap: 14px;
    max-width: 420px;
    padding: 20px;
}

.auth-header {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.auth-form {
    width: min(100%, 420px);
    margin-right: auto;
    margin-left: auto;
}

.auth-social-panel {
    display: grid;
    gap: 10px;
    width: min(100%, 420px);
    margin: 0 auto 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(93, 62, 76, 0.08);
}

.auth-social-panel > span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.auth-social-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.auth-social-button {
    display: grid;
    gap: 2px;
    min-height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-social-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 82, 132, 0.38);
    box-shadow: 0 12px 24px rgba(255, 89, 133, 0.14);
}

.auth-social-button small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.auth-social-button.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-social-button--google strong::before {
    content: "G";
    margin-right: 7px;
    color: #4285f4;
}

.auth-social-button--facebook strong::before {
    content: "f";
    margin-right: 7px;
    color: #1877f2;
}

.auth-header + .form-message,
.auth-header + .form-errors,
.auth-header + .form-message + .form-errors {
    width: min(100%, 420px);
    margin-right: auto;
    margin-left: auto;
}

.simple-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

.simple-form input,
.simple-form select,
.simple-form textarea,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--ink);
    background: #fff;
    font-family: "Noto Sans Thai", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.simple-form input:-webkit-autofill,
.simple-form input:-webkit-autofill:hover,
.simple-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    caret-color: var(--ink);
    box-shadow: 0 0 0 1000px #eef5ff inset;
    font-family: "Noto Sans Thai", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 16px;
    font-weight: 800;
    transition: background-color 9999s ease-out;
}

.simple-form option {
    font-family: "Noto Sans Thai", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.simple-form select:disabled {
    opacity: 1;
    color: var(--ink);
    background: #fff7fb;
    cursor: not-allowed;
}

.simple-form textarea {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

.datetime-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.datetime-control {
    position: relative;
    min-width: 0;
}

.datetime-input-row input,
.datetime-control input {
    height: 44px;
    min-height: 44px;
    min-width: 0;
    box-sizing: border-box;
    line-height: 1.2;
}

.datetime-control.is-empty:not(.is-focused) input {
    color: transparent;
}

.datetime-control.is-empty:not(.is-focused) .datetime-immediate-placeholder {
    opacity: 1;
}

.datetime-immediate-placeholder {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    max-width: calc(100% - 52px);
    overflow: hidden;
    color: rgba(123, 105, 116, 0.46);
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    text-overflow: ellipsis;
    transform: translateY(-50%);
    transition: opacity 120ms ease;
    white-space: nowrap;
}

.simple-form .datetime-clear-button {
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
}

.simple-form button {
    border: 0;
}

.story-form {
    width: min(100%, 560px);
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

.label-with-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-tooltip-trigger {
    position: relative;
    display: inline-flex;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 95, 147, 0.24);
    border-radius: 999px;
    padding: 0;
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.92);
    box-shadow: none;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    cursor: help;
}

.simple-form .form-tooltip-trigger {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    border: 1px solid rgba(255, 95, 147, 0.24);
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.92);
    box-shadow: none;
    font-size: 11px;
}

.form-tooltip-trigger::after {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 9px);
    z-index: 30;
    width: min(260px, 72vw);
    padding: 9px 11px;
    border: 1px solid rgba(240, 228, 235, 0.96);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 32px rgba(86, 35, 60, 0.14);
    content: attr(data-form-tooltip);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    text-transform: none;
    transform: translate(50%, 4px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.form-tooltip-trigger:hover::after,
.form-tooltip-trigger:focus-visible::after {
    opacity: 1;
    transform: translate(50%, 0);
}

.story-rank-settings {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.82), rgba(255, 255, 255, 0.92));
}

.story-rank-settings > div {
    display: grid;
    gap: 4px;
}

.story-rank-settings strong {
    color: var(--ink);
    font-weight: 900;
}

.story-rank-settings > div span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.link-preview-intake {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(244, 221, 231, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.story-rank-settings > .link-preview-intake {
    gap: 10px;
}

.link-preview-intake > label {
    min-width: 0;
}

.link-preview-intake > .form-footnote,
.link-preview-card {
    grid-column: 1 / -1;
}

.link-preview-intake .form-footnote.is-error {
    color: #b42342;
}

.link-preview-card {
    display: grid;
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 14px;
    background: #fff;
}

.link-preview-card[hidden] {
    display: none;
}

.link-preview-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 72px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 246, 250, 0.95);
}

.link-preview-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.link-preview-card strong,
.link-preview-card span,
.link-preview-card small {
    overflow-wrap: break-word;
    word-break: normal;
}

.link-preview-card strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.link-preview-card small {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.link-preview-card a {
    justify-self: start;
    color: var(--rose-strong);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.link-preview-image-choice {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 95, 147, 0.18);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 246, 250, 0.9);
    font-size: 12px;
    font-weight: 900;
}

.link-preview-image-choice[hidden] {
    display: none;
}

.link-preview-image-choice input {
    width: 15px;
    min-width: 15px;
    height: 15px;
    min-height: 15px;
    accent-color: var(--rose);
}

.link-preview-card .link-preview-image-choice span {
    color: inherit;
    font-size: inherit;
    line-height: 1.25;
}

.link-preview-card a:hover,
.link-preview-card a:focus-visible {
    text-decoration: underline;
}

.rank-scope-help {
    border: 1px solid rgba(255, 95, 147, 0.16);
    border-radius: 14px;
    padding: 10px 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}

.rank-scope-help[hidden],
[data-player-target-field][hidden] {
    display: none;
}

.target-age-builder {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255, 95, 147, 0.16);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.target-age-head {
    display: block;
}

.target-age-head strong,
.target-age-head span {
    display: block;
}

.target-age-head span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.target-age-list {
    display: grid;
}

.target-age-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: end;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255, 95, 147, 0.18);
}

.target-age-row + .target-age-row {
    padding-top: 14px;
}

.target-age-row:not(:first-child) label span {
    display: none;
}

.target-age-remove {
    width: 42px;
    height: 42px;
    color: var(--hot);
    background: linear-gradient(135deg, var(--pink), var(--coral));
    border-color: transparent;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.target-age-add {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--coral));
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(255, 95, 147, 0.18);
}

.target-age-add:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    box-shadow: none;
}

@media (max-width: 560px) {
    .target-age-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
        gap: 8px;
    }

    .target-age-remove {
        width: 38px;
        height: 38px;
    }
}

.story-basic-settings {
    order: -5;
}

.story-rule-settings {
    order: -4;
}

.story-custom-rank-settings {
    order: -3;
}

.story-form-actions {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 12px;
    align-items: center;
}

.story-form-actions .secondary-link,
.story-form-actions button {
    width: 100%;
}

.story-create-policy {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.choice-builder {
    display: grid;
    gap: 12px;
    border: 1px dashed rgba(255, 95, 147, 0.28);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 246, 250, 0.54);
}

.choice-builder[hidden] {
    display: none;
}

.choice-builder-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.choice-builder-head span {
    display: grid;
    gap: 4px;
}

.choice-builder-head small {
    color: var(--muted);
    font-weight: 700;
}

.choice-list {
    display: grid;
    gap: 10px;
}

.choice-edit-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid rgba(244, 221, 231, 0.84);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.choice-edit-row label {
    grid-column: 2;
}

.choice-slot {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 900;
}

.story-create-policy .check-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    color: var(--ink);
}

.story-create-policy .check-row input {
    width: 20px;
    min-height: 20px;
    margin-top: 3px;
}

.story-create-policy .check-row span,
.human-verify-box span {
    display: grid;
    gap: 4px;
}

.story-create-policy small {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.55;
}

.human-verify-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 96px;
    gap: 12px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(244, 221, 231, 0.9);
}

.human-verify-question {
    color: var(--accent);
    font-weight: 900;
    white-space: nowrap;
}

.profile-form {
    max-width: 640px;
    margin-top: 16px;
}

.avatar-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    border: 0;
    padding: 0;
    margin: 0;
}

.avatar-picker legend {
    grid-column: 1 / -1;
    color: var(--muted);
    font-weight: 800;
}

.avatar-choice {
    display: grid;
    gap: 6px;
    justify-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.avatar-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-choice img {
    width: 64px;
    height: 64px;
    border-radius: 20px;
}

.avatar-choice span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.avatar-choice:has(input:checked) {
    border-color: rgba(255, 105, 142, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 105, 142, 0.14);
}

.upload-disabled-panel {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px dashed rgba(255, 105, 142, 0.35);
    border-radius: 16px;
    background: rgba(255, 247, 250, 0.86);
}

.upload-disabled-panel span,
.setting-toggle small {
    color: var(--muted);
}

.setting-toggle {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    align-items: flex-start;
}

.setting-toggle input {
    width: 20px;
    min-width: 20px;
    height: 20px;
    accent-color: var(--rose);
    margin-top: 3px;
}

.setting-toggle span {
    display: grid;
    gap: 3px;
}

.admin-settings-form {
    display: grid;
    gap: 18px;
}

.settings-category-nav {
    display: flex;
    gap: 10px;
    margin: 0 0 16px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(86, 35, 60, 0.05);
}

.settings-category-button {
    display: grid;
    gap: 3px;
    min-width: 168px;
    padding: 12px 14px;
    border: 1px solid rgba(244, 221, 231, 0.95);
    border-radius: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.settings-category-button:hover,
.settings-category-button.is-active {
    border-color: rgba(255, 105, 142, 0.52);
    box-shadow: 0 12px 24px rgba(255, 105, 142, 0.13);
    transform: translateY(-1px);
}

.settings-category-button.is-active {
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.98), rgba(255, 255, 255, 0.96));
}

.settings-category-button span,
.settings-current-panel-summary > span {
    width: fit-content;
    border-radius: 999px;
    padding: 3px 8px;
    color: var(--rose-strong);
    background: rgba(255, 105, 142, 0.12);
    font-size: 11px;
    font-weight: 900;
}

.settings-category-button strong {
    font-size: 14px;
    line-height: 1.25;
}

.settings-category-button small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.settings-current-panel-summary {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
}

.settings-current-panel-summary h2,
.settings-current-panel-summary p {
    margin: 0;
}

.settings-current-panel-summary h2 {
    font-size: 22px;
}

.settings-current-panel-summary p {
    margin-top: 4px;
    color: var(--muted);
}

.settings-panel-grid {
    column-count: 1;
    column-gap: 16px;
}

.settings-panel {
    display: grid;
    gap: 16px;
    break-inside: avoid;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 34px rgba(86, 35, 60, 0.06);
}

.settings-panel header {
    display: grid;
    gap: 5px;
}

.settings-panel header span {
    width: fit-content;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--rose-strong);
    background: rgba(255, 105, 142, 0.12);
    font-size: 12px;
    font-weight: 900;
}

.settings-panel h2,
.settings-panel p {
    margin: 0;
}

.settings-panel p {
    color: var(--muted);
}

.settings-list {
    display: grid;
    gap: 10px;
}

.setting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(244, 221, 231, 0.8);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.setting-row span {
    display: grid;
    gap: 3px;
}

.setting-row small {
    color: var(--muted);
}

.setting-row--summary {
    align-items: start;
}

.setting-row--list {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    border-radius: 8px;
}

.setting-summary-value {
    min-width: 86px;
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.86);
    font-size: 13px;
    text-align: center;
}

.setting-edit-button {
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), #ff8374);
    font-weight: 900;
    cursor: pointer;
}

.setting-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
}

.setting-row input[type="number"] {
    width: 86px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 56px;
}

.settings-actions button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: var(--rose);
    font-weight: 900;
    cursor: pointer;
}

.admin-setting-modal-panel {
    width: min(100%, 560px);
}

.admin-setting-modal-body {
    display: grid;
    gap: 12px;
}

.admin-setting-modal-field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-setting-modal-field input,
.admin-setting-modal-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.setting-toggle--modal {
    border-radius: 14px;
    background: rgba(255, 246, 250, 0.76);
}

.setting-toggle--modal input {
    width: 24px;
    min-width: 24px;
    height: 24px;
}

.report-reason-panel {
    max-width: min(1180px, calc(100vw - 32px));
    margin: 18px auto 0;
}

.premium-topup-panel {
    max-width: min(1180px, calc(100vw - 32px));
    margin: 18px auto 0;
}

.premium-topup-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(244, 221, 231, 0.95);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.premium-topup-mode strong {
    color: var(--ink);
}

.premium-topup-mode span {
    color: var(--muted);
    font-size: 13px;
}

.premium-topup-mode.is-payment {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(255, 251, 235, 0.82);
}

.premium-topup-form {
    display: grid;
    gap: 12px;
}

.premium-topup-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.premium-topup-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.premium-topup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.premium-topup-actions button {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    color: #fff;
    font-weight: 1000;
    cursor: pointer;
}

.premium-topup-actions button:disabled,
.premium-topup-form input:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.premium-topup-actions span {
    color: var(--muted);
    font-size: 13px;
}

.premium-topup-history {
    display: grid;
    gap: 8px;
}

.premium-topup-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) 96px minmax(140px, 0.9fr) 104px minmax(140px, 0.8fr);
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(244, 221, 231, 0.86);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.72);
}

.premium-topup-row--head {
    min-height: 36px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.premium-topup-row span {
    display: grid;
    min-width: 0;
}

.premium-topup-row small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-reason-panel header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.report-reason-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 12px;
}

.report-reason-panel > .report-reason-list {
    display: none;
}

.report-reason-summary-list {
    display: grid;
    gap: 8px;
}

.point-package-summary-list {
    display: grid;
    gap: 8px;
}

.payment-row-list {
    display: grid;
    gap: 8px;
}

.report-reason-summary-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.45fr) 86px 106px 148px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.point-package-summary-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(120px, 0.8fr) minmax(110px, 0.7fr) 74px 106px 156px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.payment-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(130px, 0.9fr) 110px 104px 180px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.report-reason-summary-row--head {
    min-height: 38px;
    padding-block: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.point-package-summary-row--head {
    min-height: 38px;
    padding-block: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.payment-row--head {
    min-height: 38px;
    padding-block: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.report-reason-main,
.report-reason-translation,
.point-package-main {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.report-reason-main strong,
.report-reason-translation strong,
.point-package-main strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-reason-main small,
.report-reason-translation small,
.point-package-main small,
.point-package-summary-row small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-reason-order-value {
    font-size: 14px;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255, 246, 250, 0.92);
    color: var(--rose);
    font-size: 12px;
    font-weight: 900;
}

.status-pill--inactive {
    background: rgba(229, 231, 235, 0.72);
    color: var(--muted);
}

.status-pill--archived {
    background: rgba(229, 231, 235, 0.72);
    color: var(--muted);
}

.status-pill--pending {
    background: rgba(255, 246, 250, 0.92);
    color: var(--rose);
}

.status-pill--paid {
    background: rgba(220, 252, 231, 0.92);
    color: #15803d;
}

.status-pill--failed,
.status-pill--cancelled,
.status-pill--expired,
.status-pill--refunded,
.status-pill--disputed {
    background: rgba(229, 231, 235, 0.72);
    color: var(--muted);
}

.payment-action-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.payment-filter-form,
.payment-support-form {
    display: grid;
    gap: 12px;
}

.payment-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.payment-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.payment-detail-card,
.payment-support-panel,
.payment-log-panel {
    min-width: 0;
}

.payment-inline-action {
    display: flex;
    margin-top: 14px;
}

.payment-inline-action button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.admin-detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.admin-detail-list div {
    display: grid;
    grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid rgba(244, 221, 231, 0.78);
}

.admin-detail-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-detail-list dd {
    display: grid;
    min-width: 0;
    gap: 2px;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.admin-detail-list dd small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-mini-table,
.payment-log-list {
    display: grid;
    gap: 8px;
}

.admin-mini-table-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 90px minmax(130px, 1fr) minmax(140px, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(244, 221, 231, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.admin-mini-table-row--head {
    color: var(--muted);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.payment-log-row {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(244, 221, 231, 0.86);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.payment-log-row span,
.payment-log-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.payment-log-row strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 1000;
}

.payment-log-row p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.payment-log-note {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 246, 250, 0.92);
    color: var(--ink) !important;
}

.report-reason-summary-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.report-reason-summary-actions form {
    margin: 0;
}

.report-reason-summary-actions button,
.report-reason-add-button {
    min-height: 36px;
    border: 0;
    border-radius: 12px;
    padding: 0 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 900;
    cursor: pointer;
}

.report-reason-summary-actions .report-reason-delete-button {
    border: 1px solid rgba(244, 221, 231, 0.95);
    background: #fff;
    color: var(--muted);
}

.report-reason-summary-actions button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.report-reason-modal-panel {
    width: min(100%, 620px);
}

.point-package-modal-panel {
    width: min(100%, 700px);
}

.report-reason-list {
    display: grid;
    gap: 8px;
}

.report-reason-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(170px, 1.1fr) minmax(120px, 1fr) minmax(120px, 1fr) 86px 120px 158px;
    gap: 8px;
    align-items: end;
    padding: 10px;
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.report-reason-row--head {
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.report-reason-row--new {
    border-color: rgba(255, 95, 147, 0.32);
    background: linear-gradient(135deg, rgba(255, 246, 249, 0.95), rgba(255, 255, 255, 0.9));
}

.report-reason-row label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.report-reason-row small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.report-reason-row input,
.report-reason-row select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    border: 1px solid rgba(238, 210, 224, 0.95);
    border-radius: 12px;
    padding: 0 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
}

.report-reason-actions {
    display: flex;
    gap: 8px;
}

.report-reason-actions button {
    flex: 1 1 0;
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    padding: 0 12px;
    font-weight: 900;
    cursor: pointer;
}

.report-reason-actions button {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
}

.report-reason-actions .report-reason-delete-button {
    border: 1px solid rgba(244, 221, 231, 0.95);
    background: #fff;
    color: var(--muted);
}

.report-reason-actions button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-grid-two > label {
    min-width: 0;
}

.story-category-fields {
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(244, 221, 231, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.story-category-fields > label {
    align-content: start;
    min-height: 100%;
    padding: 0;
}

.story-category-fields select {
    width: 100%;
}

.story-category-fields .form-footnote {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.45;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 34px rgba(86, 35, 60, 0.05);
}

.filter-bar input,
.filter-bar select {
    flex: 1 1 150px;
}

.filter-bar button,
.filter-bar a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    font-weight: 800;
    cursor: pointer;
}

.filter-bar button {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--coral));
}

.filter-bar a {
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.92);
}

.story-card-list {
    display: grid;
    gap: 12px;
}

.story-card-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.story-card-row:not(:has(.story-card-thumb)) {
    grid-template-columns: minmax(0, 1fr) auto;
}

.story-card-thumb {
    width: 84px;
    height: 84px;
    border: 1px solid var(--line);
    border-radius: 18px;
    object-fit: cover;
    background: var(--soft);
}

.story-card-row h2,
.story-card-row p {
    margin: 0;
}

.story-card-body {
    min-width: 0;
}

.story-card-row h2 {
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.35;
}

.story-card-row p,
.story-card-meta {
    color: var(--muted);
}

.story-card-row p {
    line-height: 1.55;
}

.story-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    justify-content: flex-end;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

.story-card-meta > span,
.story-card-meta > a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid rgba(240, 228, 235, 0.8);
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.76);
    white-space: nowrap;
}

.story-card-meta > a {
    color: var(--rose-strong);
}

.story-creator {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.story-creator--compact {
    gap: 6px;
}

.story-creator-avatar {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 196, 216, 0.95);
    border-radius: 999px;
    color: var(--rose);
    background: linear-gradient(135deg, #fff4f8, #f3edff);
    font-size: 12px;
    font-weight: 1000;
}

.story-creator-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.story-creator-avatar .verified-account-badge--avatar {
    right: -7px;
    bottom: -6px;
    width: 18px;
    min-height: 18px;
    padding: 2px;
}

.story-creator-avatar .verified-account-badge--avatar > span {
    width: 12px;
    height: 12px;
}

.story-creator-name {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.story-creator-name > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-creator-name .verified-account-badge {
    min-height: 20px;
    padding: 2px 7px 2px 4px;
    font-size: 10px;
}

.story-creator-name .verified-account-badge > span {
    width: 14px;
    height: 14px;
}

.menu-sound-button {
    gap: 9px;
}

.menu-sound-button .icon-svg {
    width: 17px;
    height: 17px;
}

.story-feed-page {
    display: grid;
    gap: 16px;
    max-width: 760px;
    margin: -6px auto 0;
}

.story-feed-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(240, 228, 235, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(86, 35, 60, 0.08);
    backdrop-filter: blur(16px);
}

.story-feed-search--floating {
    position: fixed;
    top: 78px;
    left: 50%;
    z-index: 42;
    width: min(760px, calc(100vw - 28px));
    transform: translate(-50%, -8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.story-feed-search--floating.is-open {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.story-feed-search label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.story-feed-search input {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    padding-left: 20px;
    padding-right: 44px;
    font-size: 16px;
    font-weight: 800;
}

.story-feed-search button {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    cursor: pointer;
}

.story-feed-list {
    display: grid;
    gap: 16px;
    padding-top: 12px;
}

.story-feed-card {
    overflow: hidden;
    border: 1px solid rgba(240, 228, 235, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 48px rgba(86, 35, 60, 0.08);
}

.story-feed-card-media {
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    color: var(--rose-strong);
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.96), rgba(243, 249, 255, 0.96));
    font-weight: 900;
}

.story-feed-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-feed-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.story-feed-card-kicker,
.story-feed-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.story-feed-card-kicker span,
.story-feed-card-meta span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid rgba(240, 228, 235, 0.8);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 900;
}

.story-feed-card-meta .story-creator {
    min-height: 28px;
    border: 1px solid rgba(240, 228, 235, 0.8);
    border-radius: 999px;
    padding: 0 10px 0 4px;
    background: rgba(255, 255, 255, 0.75);
}

.story-feed-card-meta .story-creator span {
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
}

.story-feed-card-meta .story-creator-avatar {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 196, 216, 0.95);
    border-radius: 999px;
    color: var(--rose);
    background: linear-gradient(135deg, #fff4f8, #f3edff);
}

.story-feed-card-meta .verified-account-badge {
    display: inline-flex;
}

.story-feed-card-meta .verified-account-badge > span {
    display: inline-grid;
}

.story-feed-card h2,
.story-feed-card p {
    margin: 0;
}

.story-feed-card h2 {
    font-size: 24px;
    line-height: 1.28;
}

.story-feed-card p {
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
}

.story-feed-play {
    display: inline-flex;
    min-height: 42px;
    width: max-content;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 16px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 900;
}

.story-feed-status {
    min-height: 34px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.story-attachment-fields {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(240, 228, 235, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.story-attachment-fields > div:first-child {
    display: grid;
    gap: 4px;
}

.story-attachment-fields > div:first-child span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.story-attachment-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    max-width: 920px;
    margin: 18px auto 0;
    padding: 18px;
    border: 1px solid rgba(240, 228, 235, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 48px rgba(86, 35, 60, 0.08);
}

.story-attachment-card--text_image {
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    align-items: stretch;
}

.story-attachment-image {
    overflow: hidden;
    min-height: 190px;
    border: 1px solid rgba(240, 228, 235, 0.92);
    border-radius: 18px;
    background: var(--soft);
    cursor: pointer;
}

.story-attachment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-attachment-body {
    display: grid;
    gap: 9px;
    align-content: center;
}

.story-attachment-body > span {
    color: var(--rose-strong);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.story-attachment-body h2,
.story-attachment-body p {
    margin: 0;
}

.story-attachment-body h2 {
    font-size: 22px;
    line-height: 1.3;
}

.story-attachment-body p {
    color: var(--muted);
    font-weight: 650;
    line-height: 1.6;
}

.story-attachment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.story-attachment-actions button {
    border: 0;
    cursor: pointer;
}

.story-attachment-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(37, 29, 36, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.story-attachment-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.story-attachment-modal-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1120px, 96vw);
    height: min(760px, 88vh);
    overflow: hidden;
    border: 1px solid rgba(240, 228, 235, 0.94);
    border-radius: 20px;
    background: white;
    box-shadow: 0 30px 80px rgba(37, 29, 36, 0.22);
}

.story-attachment-modal-head {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.story-attachment-modal-head strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-attachment-modal-head div {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}

.story-attachment-modal-head a,
.story-attachment-modal-head button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.92);
    font-size: 13px;
    font-weight: 900;
}

.story-attachment-modal-head button {
    width: 34px;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.story-attachment-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: white;
}

.static-page-header {
    max-width: 880px;
    margin-inline: auto;
}

.static-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.static-page-grid--contact {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
}

.static-page-panel {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 220px;
    padding: 20px;
    border: 1px solid rgba(240, 228, 235, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 48px rgba(86, 35, 60, 0.07);
}

.static-page-panel--lead {
    grid-row: span 2;
    min-height: 454px;
}

.static-page-panel h2,
.static-page-panel p {
    margin: 0;
}

.static-page-panel h2 {
    font-size: 24px;
    line-height: 1.25;
}

.static-page-panel p {
    color: var(--muted);
    font-weight: 650;
    line-height: 1.75;
}

.contact-card-list {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.contact-card-list a {
    display: flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid rgba(240, 228, 235, 0.86);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.86);
    font-weight: 900;
}

.contact-card-list a,
.contact-card-static {
    display: grid;
    gap: 3px;
    min-height: 58px;
    align-content: center;
}

.contact-card-list span,
.contact-card-static span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.contact-card-list strong,
.contact-card-static strong {
    color: var(--rose-strong);
    font-size: 15px;
    line-height: 1.45;
}

.contact-card-static {
    border: 1px solid rgba(240, 228, 235, 0.86);
    border-radius: 18px;
    padding: 10px 14px;
    background: rgba(255, 246, 250, 0.86);
}

.static-page-contact-fields {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(240, 228, 235, 0.9);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 246, 250, 0.72);
}

.static-page-contact-fields[hidden] {
    display: none;
}

.static-page-contact-fields > div:first-child {
    display: grid;
    gap: 2px;
}

.static-page-contact-fields strong {
    color: var(--ink);
}

.static-page-contact-fields span {
    color: var(--muted);
    font-weight: 750;
}

.admin-page-list {
    display: grid;
    gap: 10px;
}

.admin-page-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(240, 228, 235, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.admin-page-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.admin-page-main strong,
.admin-page-main small,
.admin-page-row p {
    min-width: 0;
}

.admin-page-main small,
.admin-page-row p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-page-row p {
    margin: 0;
    line-height: 1.5;
}

.admin-page-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.admin-page-actions button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 900;
    cursor: pointer;
}

.static-page-modal-panel {
    max-width: 840px;
}

.static-page-modal-body textarea {
    min-height: 96px;
}

.story-mode,
.story-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.story-mode {
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.94);
}

.story-mode--battle {
    color: #6d54d9;
    background: rgba(238, 234, 255, 0.9);
}

.story-mode--vote {
    color: #19786a;
    background: rgba(230, 250, 245, 0.92);
}

.story-status {
    color: var(--muted);
    background: #f7f2f6;
}

.story-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
    gap: 16px;
    align-items: start;
}

.story-detail-grid--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.story-detail-actions {
    width: 100%;
    max-width: none;
}

.story-detail-card {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.story-detail-card--wide {
    width: 100%;
}

.story-detail-image {
    width: 100%;
    max-height: 420px;
    border: 1px solid var(--line);
    border-radius: 18px;
    object-fit: cover;
    background: var(--soft);
}

.story-youtube-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #050505;
}

.story-youtube-cover {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.story-youtube-cover .story-detail-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    object-fit: cover;
}

.story-youtube-cover span {
    position: absolute;
    inset: 50% auto auto 50%;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: rgba(255, 95, 147, 0.92);
    font-weight: 900;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 36px rgba(86, 35, 60, 0.18);
}

.story-youtube-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #050505;
}

.story-youtube-media.is-playing .story-youtube-cover {
    display: none;
}

.story-edit-image {
    width: 100%;
    max-height: 220px;
    border: 1px solid var(--line);
    border-radius: 14px;
    object-fit: cover;
}

.danger-form {
    margin-top: 16px;
    border-color: rgba(244, 63, 94, 0.22);
    background: rgba(255, 241, 244, 0.74);
}

.danger-form button {
    background: #e5486d;
}

.story-detail-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.story-detail-card--wide dl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-detail-card dl > div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 246, 250, 0.62);
}

.story-detail-card dt,
.story-detail-card dd {
    margin: 0;
}

.story-detail-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.story-detail-card dd {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 800;
}

.story-detail-card dd .story-creator {
    max-width: 100%;
}

.story-detail-card dd .story-creator-name {
    flex-wrap: wrap;
}

.battle-settings {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px dashed rgba(255, 95, 147, 0.28);
    border-radius: 18px;
    background: rgba(255, 246, 250, 0.58);
}

.battle-settings span {
    color: var(--muted);
    font-size: 13px;
}

.battle-board {
    display: grid;
    gap: 12px;
}

.battle-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.battle-row.is-leading {
    border-color: rgba(255, 95, 147, 0.26);
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.96), rgba(255, 255, 255, 0.9));
}

.battle-rank {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 800;
}

.battle-main {
    display: grid;
    gap: 8px;
}

.battle-main h2 {
    margin: 0;
    font-size: 18px;
}

.battle-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #f7edf3;
}

.battle-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rose), var(--coral));
}

.battle-actions {
    margin-top: 16px;
}

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

.admin-grid > div {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.admin-grid span {
    color: var(--muted);
}

.admin-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.page-header .admin-dashboard-actions {
    justify-content: center;
}

.admin-analytics-panel {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 64px;
}

.health-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.health-status-card,
.health-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 34px rgba(86, 35, 60, 0.06);
}

.health-status-card {
    display: grid;
    gap: 4px;
    padding: 16px;
}

.health-status-card span,
.health-status-card small,
.health-kv dt,
.health-row span,
.health-row small {
    color: var(--muted);
}

.health-status-card strong {
    color: var(--ink);
    font-size: 22px;
}

.health-status-card.is-ok {
    border-color: rgba(34, 197, 94, 0.22);
}

.health-status-card.is-warning {
    border-color: rgba(244, 63, 94, 0.24);
    background: rgba(255, 247, 248, 0.9);
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.health-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.health-panel--wide {
    margin-bottom: 14px;
}

.health-panel-head h2,
.health-panel-head p {
    margin: 0;
}

.health-panel-head--actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.health-panel-head--actions form {
    margin: 0;
}

.health-panel-head--actions button.primary-link {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.language-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 14px;
    margin-bottom: 14px;
}

.language-import-form,
.language-locale-list,
.language-version-list {
    display: grid;
    gap: 10px;
}

.language-import-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.language-import-form input,
.language-import-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.language-import-form input {
    min-height: 44px;
    padding: 0 12px;
}

.language-import-form textarea {
    min-height: 260px;
    padding: 12px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.55;
    resize: vertical;
}

.language-locale-row,
.language-version-row {
    display: grid;
    gap: 10px;
    align-items: center;
    min-width: 0;
    border: 1px solid rgba(244, 221, 231, 0.86);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.language-locale-row {
    grid-template-columns: 70px 1fr auto auto;
    padding: 10px 12px;
}

.language-locale-row small,
.language-version-row small {
    color: var(--muted);
}

.language-locale-row a {
    border-radius: 8px;
    padding: 7px 10px;
    background: rgba(255, 246, 250, 0.9);
    color: var(--rose-strong);
    font-size: 12px;
    font-weight: 1000;
    text-decoration: none;
}

.language-diff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.language-diff-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    border: 1px solid rgba(244, 221, 231, 0.86);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.74);
}

.language-diff-card.is-warning {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(255, 251, 235, 0.82);
}

.language-diff-card h3 {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    font-size: 14px;
}

.language-key-list {
    display: grid;
    gap: 5px;
    max-height: 260px;
    overflow: auto;
}

.language-key-list code {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
    padding: 5px 7px;
    background: rgba(255, 246, 250, 0.9);
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-key-list small {
    color: var(--muted);
}

.language-version-row {
    grid-template-columns: minmax(220px, 1fr) 80px 80px minmax(140px, 0.75fr) 110px;
    min-height: 46px;
    padding: 8px 10px;
}

.language-version-row--head {
    min-height: 34px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
}

.language-version-row form {
    margin: 0;
}

.language-version-row button {
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    color: #fff;
    font-weight: 1000;
    cursor: pointer;
}

.language-preview-panel button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.health-kv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.health-kv div {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(244, 221, 231, 0.75);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.health-kv dt,
.health-kv dd {
    margin: 0;
}

.health-kv dd,
.health-row strong {
    color: var(--ink);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.health-warning {
    margin: 0;
    color: #b42342;
    font-weight: 800;
}

.health-row-list {
    display: grid;
    gap: 8px;
}

.health-row {
    display: grid;
    grid-template-columns: 72px minmax(130px, 0.8fr) minmax(180px, 1.3fr) minmax(120px, 0.7fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(244, 221, 231, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
}

.health-row.log-row {
    color: inherit;
    text-decoration: none;
}

.health-row.log-row:hover,
.health-row.log-row:focus-visible {
    border-color: rgba(255, 95, 147, 0.28);
    background: rgba(255, 246, 250, 0.86);
}

.log-tail {
    overflow: auto;
    max-height: 420px;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(244, 221, 231, 0.86);
    border-radius: 14px;
    color: #312331;
    background: rgba(255, 255, 255, 0.88);
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.health-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 1000;
}

.health-pill.is-ok {
    color: #15803d;
    background: rgba(220, 252, 231, 0.95);
}

.health-pill.is-warning {
    color: #b42342;
    background: rgba(255, 228, 233, 0.95);
}

.health-pill.is-muted {
    color: var(--muted);
    background: rgba(244, 221, 231, 0.45);
}

.admin-analytics-head {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 225, 236, 0.78), transparent 34%),
        rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.admin-analytics-head h2,
.admin-analytics-head p {
    margin: 0;
}

.admin-analytics-head p {
    color: var(--muted);
    line-height: 1.65;
}

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

.admin-analytics-card {
    display: grid;
    align-content: start;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.admin-analytics-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.admin-analytics-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    border: 1px solid rgba(244, 221, 231, 0.82);
    border-radius: 16px;
    padding: 9px 10px;
    background: rgba(255, 246, 250, 0.46);
}

a.admin-analytics-row:hover {
    border-color: rgba(255, 95, 147, 0.32);
    background: rgba(255, 246, 250, 0.82);
}

.admin-analytics-row span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-analytics-row strong {
    display: flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-analytics-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-analytics-row b {
    color: var(--rose-strong);
    font-size: 18px;
}

.admin-analytics-empty {
    margin: 0;
    color: var(--muted);
}

.admin-table-card {
    display: grid;
    gap: 14px;
    margin-bottom: 64px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.admin-collapsible-card:not(.is-expanded) {
    gap: 0;
}

.admin-collapsible-body[hidden] {
    display: none;
}

.admin-collapse-toggle {
    border: 1px solid var(--line);
    cursor: pointer;
}

.admin-table-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.admin-table-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-create-form {
    display: grid;
    grid-template-columns: minmax(160px, 1.1fr) minmax(200px, 1.3fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) auto;
    gap: 10px;
    align-items: end;
}

.admin-autofill-decoy {
    position: fixed;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-create-form--category {
    grid-template-columns: minmax(160px, 1fr) minmax(140px, 0.8fr) minmax(220px, 1.5fr) minmax(120px, 0.7fr) auto;
}

.admin-block-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.admin-block-grid .admin-create-form {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-bottom: 0;
}

.admin-inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-create-form label {
    display: grid;
    min-width: 0;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.admin-create-form input,
.admin-create-form input[type="number"],
.admin-create-form select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.admin-create-form input:-webkit-autofill,
.admin-create-form input:-webkit-autofill:hover,
.admin-create-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-out;
}

.admin-create-form button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: var(--rose);
    font-weight: 900;
    cursor: pointer;
}

.admin-table {
    display: grid;
    gap: 8px;
}

.admin-table-row {
    display: grid;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 12px;
    border: 1px solid rgba(244, 221, 231, 0.82);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
}

.admin-table-row--head {
    min-height: 42px;
    color: var(--muted);
    background: rgba(255, 246, 250, 0.7);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-table-row--members {
    grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(96px, 0.6fr) auto;
}

.admin-member-list {
    display: grid;
    gap: 10px;
}

.admin-member-row {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(126, 116, 124, 0.34);
    border-radius: 22px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.78);
}

.admin-member-row.is-editing {
    border-color: rgba(255, 95, 147, 0.75);
    box-shadow: 0 14px 34px rgba(255, 95, 147, 0.12);
}

.admin-member-row-main {
    display: grid;
    grid-template-columns: 50px minmax(190px, 1.2fr) minmax(140px, 0.9fr) minmax(120px, 0.8fr);
    grid-template-areas:
        "avatar name role status"
        "avatar email . date"
        "avatar actions actions actions";
    gap: 5px 22px;
    align-items: center;
}

.admin-member-cell {
    min-width: 0;
}

.admin-member-avatar {
    grid-area: avatar;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    align-self: start;
    border: 1px solid rgba(255, 95, 147, 0.22);
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    box-shadow: 0 12px 24px rgba(255, 95, 147, 0.16);
    font-size: 19px;
    font-weight: 900;
}

.admin-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-member-avatar--placeholder {
    color: var(--muted);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 250, 0.86));
    box-shadow: 0 10px 20px rgba(86, 35, 60, 0.06);
}

.admin-member-avatar--modal {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    font-size: 28px;
}

.admin-member-name {
    grid-area: name;
    align-self: end;
}

.admin-member-name strong {
    font-size: 15px;
}

.admin-member-role {
    grid-area: role;
    align-self: start;
    font-size: 14px;
}

.admin-role-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 95, 147, 0.2);
    border-radius: 999px;
    padding: 2px 7px;
    color: var(--rose-strong);
    background: rgba(255, 95, 147, 0.08);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.admin-member-status {
    grid-area: status;
    align-self: end;
    font-size: 14px;
    text-align: right;
}

.admin-member-email {
    grid-area: email;
}

.admin-member-email a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-member-email a:hover {
    color: #0b66d8;
}

.admin-member-date {
    grid-area: date;
    align-self: start;
    font-size: 14px;
    text-align: right;
}

.admin-member-actions {
    grid-area: actions;
    display: flex;
    gap: clamp(42px, 10vw, 180px);
    align-items: center;
    margin-top: 2px;
}

.admin-member-actions form {
    margin: 0;
}

.admin-member-icon-action {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
}

.admin-member-icon-action:hover {
    color: var(--rose-strong);
    background: rgba(255, 95, 147, 0.09);
}

.admin-member-delete:hover {
    color: #b42342;
    background: rgba(244, 63, 94, 0.1);
}

.admin-member-icon-action .icon-svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.admin-member-icon-action.is-locked {
    color: var(--muted);
    cursor: default;
}

.admin-member-modal[hidden] {
    display: none;
}

.admin-member-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.admin-member-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(37, 27, 35, 0.28);
    backdrop-filter: blur(8px);
}

.admin-member-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 440px);
    max-height: min(720px, calc(100vh - 40px));
    overflow-y: auto;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 32px 80px rgba(86, 35, 60, 0.18);
}

.admin-member-modal-head {
    display: flex;
    gap: 14px;
    align-items: start;
    justify-content: space-between;
}

.admin-member-modal-head div {
    display: grid;
    gap: 4px;
}

.admin-member-modal-head strong {
    font-size: 20px;
}

.admin-member-modal-head span,
.admin-member-modal-copy {
    color: var(--muted);
}

.admin-member-modal-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.admin-member-modal-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-member-modal-panel input,
.admin-member-modal-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.admin-role-checkbox-set {
    grid-column: 1 / -1;
    border: 1px solid rgba(255, 95, 147, 0.16);
    border-radius: 18px;
    padding: 14px;
}

.admin-role-checkbox-set legend {
    padding: 0 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.admin-role-checkbox-set p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-role-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.admin-role-checkbox {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    border: 1px solid rgba(136, 122, 132, 0.16);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-role-checkbox input {
    width: auto;
    min-height: 0;
    margin-top: 3px;
}

.admin-role-checkbox strong,
.admin-role-checkbox small {
    display: block;
}

.admin-role-checkbox strong {
    color: var(--ink);
    font-size: 13px;
}

.admin-role-checkbox small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.admin-member-avatar-editor {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    border: 1px solid rgba(244, 221, 231, 0.82);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 246, 250, 0.72);
}

.admin-member-avatar-editor .admin-member-avatar {
    grid-row: span 2;
}

.admin-member-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-member-modal-actions button {
    min-height: 44px;
}

.admin-member-modal-actions button[type="submit"] {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 900;
    cursor: pointer;
}

.admin-member-danger-button {
    background: linear-gradient(135deg, #e11d48, #fb7185) !important;
}

.admin-member-details {
    display: grid;
    gap: 8px;
}

.admin-member-summary {
    list-style: none;
}

.admin-member-summary::-webkit-details-marker {
    display: none;
}

details .admin-member-summary {
    cursor: pointer;
}

details .admin-member-summary:hover {
    border-color: rgba(255, 95, 147, 0.35);
    background: rgba(255, 255, 255, 0.92);
}

.member-action-close,
.admin-member-details[open] .member-action-edit {
    display: none;
}

.admin-member-details[open] .member-action-close {
    display: inline-flex;
}

.admin-member-edit-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin: 0 12px 8px;
    padding: 14px;
    border: 1px solid rgba(244, 221, 231, 0.82);
    border-radius: 16px;
    background: rgba(255, 246, 250, 0.76);
}

.admin-member-edit-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-member-edit-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.admin-member-edit-form button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: var(--rose);
    font-weight: 900;
    cursor: pointer;
}

.admin-member-edit-form--flat {
    margin: 0;
    background: rgba(255, 246, 250, 0.68);
}

.admin-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 42px;
}

.admin-follower-list {
    display: grid;
    gap: 8px;
}

.admin-follower-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.74);
}

.admin-follower-row--recent {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
}

.admin-follower-row strong,
.admin-follower-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-follower-row small,
.admin-follower-arrow,
.admin-follower-empty {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-follower-empty {
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.admin-table-row--stories {
    grid-template-columns: minmax(260px, 1.6fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(130px, 0.8fr) auto;
}

.admin-story-list {
    display: grid;
    gap: 12px;
}

.admin-story-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(260px, 1fr) minmax(160px, 0.7fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(126, 116, 124, 0.22);
    border-radius: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 34px rgba(86, 35, 60, 0.05);
    transition:
        max-height 260ms ease,
        opacity 200ms ease,
        transform 220ms ease,
        margin 260ms ease,
        padding 260ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.admin-story-row:hover {
    border-color: rgba(255, 95, 147, 0.28);
    background: rgba(255, 255, 255, 0.96);
}

.admin-story-row.is-saving {
    border-color: rgba(255, 95, 147, 0.36);
    box-shadow: 0 18px 38px rgba(255, 95, 147, 0.08);
}

.admin-story-row.is-removing {
    margin: 0;
    border-color: transparent;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.admin-story-main,
.admin-story-status,
.admin-story-actions {
    display: grid;
    gap: 8px;
}

.admin-story-main {
    min-width: 0;
}

.admin-story-main strong {
    min-width: 0;
    font-size: 17px;
    line-height: 1.25;
}

.admin-story-main a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.admin-story-main a:hover {
    color: var(--rose-strong);
}

.admin-story-main small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-story-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-story-metrics span {
    display: grid;
    gap: 4px;
    min-height: 58px;
    align-content: center;
    border: 1px solid rgba(244, 221, 231, 0.72);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255, 246, 250, 0.62);
}

.admin-story-metrics small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-story-metrics strong {
    font-size: 18px;
    line-height: 1;
}

.admin-story-status {
    justify-items: stretch;
}

.admin-story-status select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-weight: 800;
}

.admin-status-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--muted);
    background: rgba(126, 116, 124, 0.1);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-status-chip--approved {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.admin-status-chip--pending {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
}

.admin-status-chip--rejected,
.admin-status-chip--deleted {
    color: #be123c;
    background: rgba(244, 63, 94, 0.12);
}

.admin-status-chip--hidden {
    color: #5b5f72;
    background: rgba(91, 95, 114, 0.12);
}

.admin-story-actions {
    justify-items: end;
}

.admin-story-save-state {
    min-height: 16px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-story-save-state[data-tone="ok"] {
    color: #047857;
}

.admin-story-save-state[data-tone="error"] {
    color: #be123c;
}

.admin-story-save-state[data-tone="saving"] {
    color: var(--rose-strong);
}

.admin-story-actions .secondary-link {
    min-height: 38px;
    padding: 0 16px;
}

.admin-story-actions button {
    min-width: 86px;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    font-weight: 900;
    cursor: pointer;
}

.admin-story-actions button:hover {
    filter: brightness(1.02);
    box-shadow: 0 10px 20px rgba(255, 95, 147, 0.15);
}

.admin-story-actions button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.admin-table-row--votes {
    grid-template-columns: minmax(110px, 0.7fr) minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(76px, 0.5fr) minmax(130px, 0.8fr) auto;
}

.admin-table-row--reports {
    grid-template-columns: minmax(150px, 0.9fr) minmax(210px, 1.3fr) minmax(130px, 0.8fr) minmax(120px, 0.7fr) minmax(160px, 1fr) auto;
}

.admin-table-row--fraud {
    grid-template-columns: minmax(120px, 0.7fr) minmax(210px, 1.3fr) minmax(120px, 0.7fr) minmax(160px, 1fr) minmax(180px, 1.1fr);
}

.admin-table-row--blocks {
    grid-template-columns: minmax(180px, 1.1fr) minmax(110px, 0.6fr) minmax(220px, 1.4fr) minmax(180px, 1.1fr) auto;
}

.admin-table-row--accounts {
    grid-template-columns: minmax(240px, 1.4fr) minmax(110px, 0.6fr) minmax(220px, 1.2fr) minmax(180px, 1fr) auto;
}

.admin-table-row.is-muted {
    opacity: 0.58;
}

.admin-category-shell {
    display: grid;
    gap: 14px;
}

.admin-category-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.admin-category-toolbar > div {
    display: grid;
    gap: 4px;
}

.admin-category-toolbar strong {
    font-size: 20px;
}

.admin-category-toolbar span {
    color: var(--muted);
    font-weight: 700;
}

.admin-category-add,
.admin-category-edit {
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--rose);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255, 95, 147, 0.2);
}

.admin-category-add {
    min-height: 44px;
    padding: 0 18px;
}

.admin-category-list {
    display: grid;
    gap: 8px;
}

.admin-category-row {
    display: grid;
    grid-template-columns: minmax(210px, 1.25fr) minmax(300px, 1.7fr) minmax(130px, 0.75fr) minmax(136px, auto);
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(222, 210, 219, 0.9);
    border-radius: 8px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(87, 42, 64, 0.05);
}

.admin-category-row[hidden] {
    display: none;
}

.admin-category-row.is-child {
    width: calc(100% - 28px);
    margin-left: 28px;
    border-left: 4px solid rgba(255, 95, 147, 0.24);
    background: rgba(255, 255, 255, 0.72);
}

.admin-category-row.is-muted {
    opacity: 0.68;
}

.admin-category-row.is-reordering {
    opacity: 0.78;
}

.admin-category-title,
.admin-category-state {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-category-title-line {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.admin-category-title strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-category-title small,
.admin-category-state span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-category-collapse,
.admin-category-collapse-spacer,
.admin-category-branch {
    flex: 0 0 auto;
    width: 26px;
    height: 24px;
}

.admin-category-collapse {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 95, 147, 0.24);
    border-radius: 8px;
    color: var(--rose-strong);
    background: rgba(255, 246, 250, 0.92);
    font-weight: 900;
    cursor: pointer;
    transition: background 140ms ease;
}

.admin-category-branch {
    display: inline-grid;
    place-items: center;
    color: var(--rose-strong);
    font-size: 15px;
    font-weight: 900;
}

.admin-category-type,
.admin-category-status,
.admin-category-pill {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    align-items: center;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 900;
}

.admin-category-type {
    color: var(--rose-strong);
    background: rgba(255, 95, 147, 0.11);
}

.admin-category-meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-category-pill {
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    background: rgba(255, 246, 250, 0.84);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-category-status--active {
    color: #0f8f5b;
    background: rgba(16, 185, 129, 0.12);
}

.admin-category-status--inactive {
    color: #9f5570;
    background: rgba(159, 85, 112, 0.12);
}

.admin-category-state strong {
    font-size: 13px;
}

.admin-category-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 8px;
}

.admin-category-order-form {
    display: inline-flex;
    gap: 4px;
}

.admin-category-order-form button {
    display: inline-grid;
    width: 34px;
    min-height: 34px;
    place-items: center;
    border: 1px solid rgba(222, 210, 219, 0.9);
    border-radius: 8px;
    color: var(--rose-strong);
    background: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.admin-category-order-form button:disabled {
    color: rgba(159, 85, 112, 0.34);
    background: rgba(255, 255, 255, 0.52);
    cursor: not-allowed;
}

.admin-category-edit {
    min-height: 34px;
    padding: 0 12px;
    background: linear-gradient(135deg, var(--rose), #ff8374);
}

.admin-category-modal-panel {
    width: min(100%, 720px);
}

.admin-category-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-category-modal-grid .is-wide {
    grid-column: 1 / -1;
}

.admin-member-modal-panel textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.setting-toggle--compact {
    min-height: auto;
    padding: 6px 8px;
}

.admin-table-row span {
    min-width: 0;
}

.admin-table-row strong,
.admin-table-row small {
    display: block;
}

.admin-table-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table-row small {
    color: var(--muted);
    font-size: 12px;
}

.admin-table-row select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.admin-table-row button {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: #fff;
    background: var(--rose);
    font-weight: 900;
    cursor: pointer;
}

.admin-geo-list {
    margin-top: 18px;
}

.admin-geo-row {
    display: block;
}

.admin-geo-row form {
    display: grid;
    grid-template-columns: minmax(80px, 0.7fr) minmax(150px, 1.3fr) minmax(150px, 1.3fr) minmax(110px, 0.8fr) auto;
    gap: 10px;
    align-items: end;
    width: 100%;
}

.admin-geo-row label {
    display: grid;
    min-width: 0;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

.admin-geo-row input,
.admin-geo-row select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-family: "Noto Sans Thai", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.admin-geo-row button,
.admin-pagination a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    font-weight: 800;
}

.admin-geo-row button {
    color: #fff;
    background: var(--rose);
    cursor: pointer;
}

.admin-pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 16px 0 56px;
    color: var(--muted);
    font-weight: 800;
}

.styles-header {
    text-align: center;
}

.styles-header h1,
.styles-header p {
    margin-left: auto;
    margin-right: auto;
}

.heart-style-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 10px 0 64px;
}

.heart-style-card {
    display: grid;
    min-height: 230px;
    place-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 40px rgba(86, 35, 60, 0.06);
}

.heart-style-card h2 {
    margin: 0;
    font-size: 17px;
}

.heart-concept {
    position: relative;
    display: inline-grid;
    min-width: 112px;
    height: 112px;
    place-items: center;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.heart-concept--puffy,
.heart-concept--drop,
.heart-concept--gem,
.heart-concept--candy,
.heart-concept--cloud,
.heart-concept--jellypuffy,
.heart-concept--jelly3d,
.heart-concept--balloon3d,
.heart-concept--cherry3d,
.heart-concept--bubble3d {
    width: 142px;
    height: 130px;
    background: transparent;
    filter: drop-shadow(0 22px 28px rgba(220, 0, 0, 0.16));
}

.heart-concept--jelly3d,
.heart-concept--jellypuffy,
.heart-concept--balloon3d,
.heart-concept--cherry3d,
.heart-concept--bubble3d {
    width: 158px;
    height: 146px;
}

.heart3d {
    display: block;
    width: 158px;
    height: 146px;
    overflow: visible;
}

.heart3d-floor {
    fill: rgba(214, 0, 0, 0.13);
    filter: blur(4px);
}

.heart3d-shine-dot {
    fill: #fff;
    opacity: 0.88;
}

.heart3d-gloss-arc {
    fill: none;
    stroke: #fff;
    stroke-width: 8;
    stroke-linecap: round;
    opacity: 0.2;
}

.heart3d-bottom-glow {
    fill: rgba(255, 255, 255, 0.13);
}

.heart3d--balloon3d {
    transform: scale(1.02) rotate(2deg);
}

.heart3d--jellypuffy {
    transform: scale(1.04);
}

.heart3d--jellypuffy .heart3d-body {
    transform: scale(1.02, 1.03) translate(-2px, -3px);
    transform-origin: 130px 120px;
}

.heart3d--jellypuffy .heart3d-shine-main {
    opacity: 0.95;
}

.heart3d--jellypuffy .heart3d-gloss-arc {
    stroke-width: 10;
    opacity: 0.24;
}

.heart3d--balloon3d .heart3d-body {
    transform: translate(-2px, -4px) scale(1.02);
    transform-origin: 130px 120px;
}

.heart3d--cherry3d {
    transform: rotate(-3deg);
}

.heart3d--cherry3d .heart3d-shine-main {
    transform: rotate(-24deg) translate(14px, -2px);
}

.heart3d--bubble3d {
    transform: scale(0.96);
}

.heart3d--bubble3d .heart3d-body {
    transform: scale(0.96, 1.04) translate(5px, -2px);
    transform-origin: 130px 120px;
}

.heart-concept--gem {
    filter: drop-shadow(0 22px 28px rgba(220, 0, 0, 0.13));
}

.heart-concept--candy {
    transform: rotate(-4deg);
}

.heart-concept--cloud {
    transform: scale(1.03);
}

.concept-heart {
    position: relative;
    z-index: 1;
    line-height: 1;
}

.heart-concept--soft-bubble {
    border-radius: 50%;
    color: white;
    background: linear-gradient(145deg, var(--rose), var(--coral));
    box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.24), 0 24px 50px rgba(255, 95, 147, 0.28);
    font-size: 58px;
}

.heart-concept--glass {
    border: 1px solid rgba(255, 148, 184, 0.42);
    border-radius: 50%;
    color: var(--rose-strong);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 237, 245, 0.54));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 22px 48px rgba(86, 35, 60, 0.12);
    backdrop-filter: blur(16px);
    font-size: 58px;
}

.heart-concept--pillow {
    border-radius: 34px;
    color: white;
    background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.5), transparent 22%), linear-gradient(145deg, #ff6d9c, #ff7d73);
    box-shadow: inset -8px -10px 20px rgba(186, 27, 88, 0.18), inset 8px 10px 18px rgba(255, 255, 255, 0.18), 0 24px 48px rgba(255, 95, 147, 0.26);
    font-size: 58px;
}

.heart-concept--outline {
    border: 2px solid #ffd3e2;
    border-radius: 50%;
    color: var(--rose-strong);
    background: white;
    box-shadow: 0 18px 34px rgba(86, 35, 60, 0.08);
    font-size: 62px;
}

.heart-concept--orb {
    border-radius: 50%;
    color: var(--rose-strong);
    background: radial-gradient(circle at 34% 28%, #fff, #fff3f8 46%, #ffe1ee);
    box-shadow: inset 0 -14px 24px rgba(255, 95, 147, 0.1), 0 24px 50px rgba(86, 35, 60, 0.12);
    font-size: 58px;
}

.heart-concept--sticker {
    color: #ff4f88;
    background: transparent;
    filter: drop-shadow(0 18px 22px rgba(239, 62, 120, 0.22));
    font-size: 96px;
    -webkit-text-stroke: 8px #fff;
    paint-order: stroke fill;
}

.heart-concept--capsule {
    display: inline-flex;
    width: 178px;
    height: 74px;
    gap: 10px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--coral));
    box-shadow: 0 24px 48px rgba(255, 95, 147, 0.24);
    font-weight: 800;
}

.heart-concept--capsule .concept-heart {
    font-size: 34px;
}

.concept-label {
    position: relative;
    z-index: 1;
    font-size: 20px;
}

@keyframes heartPop {
    0% { transform: scale(0.88); }
    48% { transform: scale(1.13); }
    100% { transform: scale(1); }
}

@keyframes glowPulse {
    0% { opacity: 0.9; transform: scale(0.72); }
    100% { opacity: 0; transform: scale(1.18); }
}

@keyframes scoreBump {
    0% { transform: scale(1); color: var(--ink); }
    45% { transform: scale(1.06); color: var(--rose-strong); }
    100% { transform: scale(1); color: var(--ink); }
}

@keyframes floatHeart {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
    14% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
    45% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.28); }
}

@keyframes tinyShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes heartIdleNudge {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    9% { transform: translate3d(-8px, 2px, 0) rotate(-4deg) scale(1.09, 0.93); }
    20% { transform: translate3d(-20px, 3px, 0) rotate(-10deg) scale(1.16, 0.88); }
    34% { transform: translate3d(-7px, -1px, 0) rotate(-4deg) scale(0.91, 1.14); }
    50% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.09, 0.94); }
    66% { transform: translate3d(7px, -1px, 0) rotate(4deg) scale(0.91, 1.14); }
    80% { transform: translate3d(20px, 3px, 0) rotate(10deg) scale(1.16, 0.88); }
    91% { transform: translate3d(8px, 2px, 0) rotate(4deg) scale(1.05, 0.96); }
}

@keyframes rankingSoftEnter {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rankingMovementHint {
    0% {
        opacity: 0;
        transform: translateY(-4px);
    }
    18%, 70% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

@media (max-width: 840px) {
    .site-shell {
        width: min(100% - 22px, 640px);
    }

    .home-screen,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-analytics-grid {
        grid-template-columns: 1fr;
    }

    .home-screen {
        min-height: auto;
        padding-top: 18px;
    }

    .home-mode-carousel {
        width: auto;
        min-width: 92px;
        max-width: 100%;
        justify-content: center;
    }

    .home-mode-tabs {
        display: flex;
        width: auto;
        min-width: 92px;
        max-width: 100%;
        gap: 8px;
        justify-content: center;
        overflow: hidden;
        padding: 7px 10px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-mode-carousel.is-overflowing .home-mode-page,
    .home-mode-page {
        display: none;
    }

    .home-mode-tabs a {
        flex: 0 0 12px;
        width: 12px;
        min-width: 12px;
        max-width: 12px;
        height: 8px;
        min-height: 8px;
        overflow: hidden;
        padding: 0;
        border-radius: 999px;
        color: transparent;
        background: #ded8de;
        box-shadow: none;
        text-indent: -999px;
        transition: width 180ms ease, background 180ms ease, opacity 180ms ease;
    }

    .home-mode-tabs a.is-active {
        flex-basis: 34px;
        width: 34px;
        min-width: 34px;
        max-width: 34px;
        color: transparent;
        background: #b7b0b8;
        box-shadow: none;
    }

    .nav-links {
        width: min(240px, calc(100vw - 32px));
    }

    .nav-links.is-open {
        display: grid;
    }

    .nav-links a,
    .menu-sound-button {
        min-height: 42px;
    }

    .vote-stage {
        min-height: auto;
        padding: 18px;
    }

    .profile-panel,
    .story-detail-grid,
    .story-detail-grid--no-image,
    .battle-row,
    .leaderboard-header,
    .leaderboard-hero-card,
    .ranking-row--soft {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .story-detail-grid,
    .story-detail-grid--no-image {
        justify-items: stretch;
        width: 100%;
    }

    .story-detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
        width: 100%;
        max-width: none;
    }

    .story-detail-actions .primary-link,
    .story-detail-actions .secondary-link {
        width: 100%;
        min-width: 0;
        padding-inline: 10px;
    }

    .leaderboard-filter-row {
        grid-template-columns: 1fr;
    }

    .leaderboard-segment {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 5px;
    }

    .leaderboard-segment a,
    .leaderboard-segment span {
        min-height: 42px;
        padding-inline: 8px;
        font-size: 13px;
    }

    .leaderboard-segment small {
        display: none;
    }

    .leaderboard-control-panel {
        padding: 12px;
    }

    .leaderboard-chip-group {
        width: 100%;
    }

    .leaderboard-chip-group a,
    .leaderboard-chip-group span {
        flex: 1 1 auto;
    }

    .profile-summary-grid {
        grid-template-columns: 1fr;
        justify-items: stretch;
        width: 100%;
    }

    .member-profile-hero,
    .member-profile-story {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .member-profile-stats {
        justify-items: start;
        text-align: left;
    }

    .profile-section-head {
        display: grid;
        align-items: start;
    }

    .profile-played-section {
        margin-top: -32px;
    }

    .profile-played-section.profile-played-section--page {
        margin-top: 14px;
    }

    .profile-played-card {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
    }

    .profile-played-image {
        width: 72px;
        border-radius: 16px;
    }

    .profile-played-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .profile-played-actions label {
        grid-column: 1 / -1;
    }

    .profile-played-actions .primary-link {
        grid-column: auto;
    }

    .leaderboard-world-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .leaderboard-world-row span:last-child {
        grid-column: 1 / -1;
        font-size: 20px;
        font-weight: 800;
    }

    .leaderboard-world-row .leaderboard-total-dual {
        grid-column: 1 / -1;
        justify-content: flex-start;
        font-size: 20px;
    }

    .leaderboard-row {
        grid-template-columns: 36px 30px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 50px;
        padding: 9px 12px;
    }

    .leaderboard-row--member {
        grid-template-columns: 34px 34px minmax(0, 1fr) auto;
    }

    .member-rank-profile small {
        max-width: 100%;
    }

    .leaderboard-row--choice {
        grid-template-columns: 44px 48px minmax(0, 1fr) auto;
        column-gap: 10px;
    }

    .leaderboard-row--choice strong {
        padding-left: 2px;
    }

    .leaderboard-choice-slot {
        min-width: 44px;
        padding-inline: 0.55rem;
    }

    .leaderboard-score {
        font-size: 16px;
    }

    .ranking-score {
        justify-items: start;
    }

    .story-card-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 16px;
    }

    .story-card-row:not(:has(.story-card-thumb)) {
        grid-template-columns: 1fr;
    }

    .story-card-thumb {
        width: 76px;
        height: 76px;
        border-radius: 16px;
    }

    .story-card-row h2 {
        margin-top: 7px;
        font-size: 18px;
    }

    .story-card-row p {
        margin-top: 5px;
        font-size: 14px;
    }

    .story-card-meta {
        grid-column: 1 / -1;
        min-width: 0;
        justify-content: flex-start;
    }

    .story-feed-page {
        gap: 14px;
    }

    .story-feed-search {
        grid-template-columns: minmax(0, 1fr) 44px;
        padding: 10px;
        border-radius: 18px;
    }

    .story-feed-search--floating {
        top: 74px;
        width: calc(100vw - 20px);
    }

    .story-feed-search input,
    .story-feed-search button {
        min-height: 44px;
        height: 44px;
    }

    .story-feed-card {
        border-radius: 18px;
    }

    .story-feed-card-body {
        padding: 14px;
    }

    .story-feed-card h2 {
        font-size: 21px;
    }

    .story-feed-play {
        width: 100%;
    }

    .story-attachment-card,
    .story-attachment-card--text_image {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 18px;
    }

    .story-attachment-image {
        min-height: 170px;
    }

    .story-attachment-body h2 {
        font-size: 19px;
    }

    .story-attachment-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .story-attachment-modal {
        padding: 8px;
    }

    .story-attachment-modal-panel {
        width: 100%;
        height: 92vh;
        border-radius: 16px;
    }

    .story-attachment-modal-head {
        align-items: start;
    }

    .story-attachment-modal-head div {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .static-page-grid,
    .static-page-panel--lead,
    .admin-page-row {
        grid-template-columns: 1fr;
    }

    .static-page-panel,
    .static-page-panel--lead {
        min-height: 0;
        padding: 16px;
        border-radius: 18px;
    }

    .static-page-panel h2 {
        font-size: 20px;
    }

    .admin-page-actions {
        justify-content: flex-start;
    }

    .story-detail-card dl,
    .story-detail-card--wide dl {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
        width: 100%;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .link-preview-intake {
        grid-template-columns: 1fr;
    }

    .health-summary,
    .health-grid,
    .language-layout,
    .language-diff-grid,
    .health-kv,
    .health-row {
        grid-template-columns: 1fr;
    }

    .language-version-row {
        grid-template-columns: 1fr;
    }

    .language-version-row--head {
        display: none;
    }

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

    .settings-panel-grid {
        column-count: 1;
    }

    .setting-row {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .setting-row--list {
        width: 100%;
    }

    .setting-summary-value,
    .setting-edit-button {
        width: 100%;
    }

    .human-verify-box {
        grid-template-columns: 1fr;
    }

    .admin-geo-row form {
        grid-template-columns: 1fr;
    }

    .admin-table-head,
    .admin-create-form,
    .admin-create-form--category,
    .admin-block-grid,
    .admin-inline-fields,
    .admin-table-row,
    .admin-table-row--members,
    .admin-table-row--stories,
    .admin-table-row--votes,
    .admin-table-row--reports,
    .admin-table-row--fraud,
    .admin-table-row--blocks,
    .admin-table-row--accounts {
        grid-template-columns: 1fr;
    }

    .admin-category-toolbar,
    .admin-category-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-category-toolbar {
        display: grid;
    }

    .admin-category-add,
    .admin-category-edit {
        width: 100%;
    }

    .admin-category-row.is-child {
        width: calc(100% - 14px);
        margin-left: 14px;
    }

    .admin-category-actions {
        display: grid;
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
        justify-content: stretch;
    }

    .admin-category-order-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .admin-category-order-form button {
        width: 100%;
    }

    .admin-category-modal-grid {
        grid-template-columns: 1fr;
    }

    .admin-story-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .admin-story-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-story-metrics span {
        min-height: 54px;
        padding: 9px 10px;
    }

    .admin-story-actions {
        grid-template-columns: 1fr 1fr;
        justify-items: stretch;
    }

    .admin-story-actions .secondary-link,
    .admin-story-actions button {
        width: 100%;
    }

    .admin-member-edit-form {
        grid-template-columns: 1fr;
        margin-inline: 0;
    }

    .admin-member-row {
        padding: 10px 12px;
        border-radius: 18px;
    }

    .admin-member-row-main {
        grid-template-columns: 42px 1fr auto;
        grid-template-areas:
            "avatar name status"
            "avatar email email"
            "avatar role date"
            "actions actions actions";
        gap: 4px 12px;
    }

    .admin-member-avatar {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 16px;
    }

    .admin-member-avatar-editor {
        grid-template-columns: 1fr;
    }

    .admin-member-avatar-editor .admin-member-avatar {
        grid-row: auto;
    }

    .admin-member-role,
    .admin-member-status,
    .admin-member-date {
        font-size: 14px;
    }

    .admin-member-email a {
        font-size: 12px;
    }

    .admin-member-actions {
        justify-content: space-between;
        gap: 12px;
        margin-top: -2px;
    }

    .admin-pagination {
        flex-wrap: wrap;
    }

    h1 {
        font-size: clamp(32px, 11vw, 48px);
    }

    .post-preview {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        text-align: left;
        align-items: stretch;
    }

    .post-preview-copy {
        justify-items: stretch;
    }

    .post-description {
        max-height: 52px;
    }

    .post-description::after {
        height: 38px;
    }

    .post-description.is-open {
        max-height: 190px;
    }

    .post-art {
        min-height: 82px;
    }

    .post-art-image {
        min-height: 82px;
        max-height: 92px;
    }

    .post-preview.is-open {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
    }

    .post-preview.is-open .post-preview-copy {
        justify-items: center;
    }

    .post-preview.is-open .post-art {
        min-height: 170px;
    }

    .post-preview.is-open .post-art-image {
        min-height: 170px;
        max-height: 220px;
    }

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

    .battle-choice-lock {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
    }

    .battle-arrow {
        width: 52px;
        height: 52px;
    }

    .heart-button {
        width: 144px;
        height: 130px;
        margin: 16px 0 20px;
    }

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

@media (max-width: 620px) {
    .topbar-inner {
        width: min(100% - 20px, 640px);
        gap: 8px;
    }

    .site-footer {
        width: min(100% - 20px, 640px);
        margin-top: 30px;
        padding-bottom: 24px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .brand {
        min-width: 0;
        gap: 7px;
    }

    .brand-text {
        min-width: 0;
        max-width: clamp(78px, 22vw, 132px);
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .brand-name {
        top: -1px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 17px;
    }

    .brand-motto {
        display: block;
        max-width: 100%;
        overflow: hidden;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        gap: 5px;
    }

    .topbar-pill {
        width: 36px;
        padding: 0;
    }

    .topbar-pill span {
        display: none;
    }

    .topbar-soft-button,
    .profile-avatar,
    .icon-button {
        width: 34px;
        height: 34px;
        min-height: 34px;
    }

    .menu-button {
        width: 38px;
        height: 38px;
    }

    .language-menu,
    .nav-links {
        top: calc(100% + 10px);
    }

    .report-reason-row {
        grid-template-columns: 1fr;
    }

    .report-reason-row--head {
        display: none;
    }

    .report-reason-panel header,
    .report-reason-summary-row,
    .point-package-summary-row,
    .payment-filter-form,
    .payment-detail-grid,
    .admin-mini-table-row,
    .payment-row,
    .premium-topup-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-detail-list div {
        grid-template-columns: 1fr;
    }

    .report-reason-summary-row--head,
    .point-package-summary-row--head,
    .payment-row--head,
    .premium-topup-row--head {
        display: none;
    }

    .report-reason-summary-actions {
        justify-content: flex-start;
    }

}

@media (max-width: 520px) {
    .topbar-inner {
        width: min(100% - 14px, 640px);
        gap: 6px;
    }

    .brand-text {
        max-width: clamp(58px, 18vw, 92px);
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-motto {
        font-size: 9px;
    }

    .topbar-actions {
        gap: 4px;
    }

    .field-toggle {
        min-width: 64px;
        padding: 0 8px;
        gap: 4px;
        font-size: 12px;
    }

    .battle-choice-focus {
        min-height: 88px;
        padding: 12px 42px 12px 14px;
    }

    .battle-choice-focus small {
        max-width: 100%;
        font-size: 12px;
    }

    .battle-lock-button {
        top: 2px;
        right: 2px;
    }

    .story-detail-card dl,
    .story-detail-card--wide dl {
        grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    }

    .heart-style-grid {
        grid-template-columns: 1fr;
    }
}



