/* Shared responsive styles for login, registration, and admin pages. */
:root {
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --success: #34d399;
    --error: #f87171;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.22);
    --radius-xl: 28px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --surface-strong: rgba(31, 41, 55, 0.9);
    --surface-soft: rgba(17, 24, 39, 0.86);
    --surface-faint: rgba(55, 65, 81, 0.46);
    --accent-primary: #f59e0b;
    --accent-secondary: #d97706;
    --accent-green: #10b981;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
}

body.auth-page {
    display: block;
    padding: 24px;
}

body.login-page {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(107, 114, 128, 0.2), transparent 28%),
        linear-gradient(135deg, #111827, #1f2937 48%, #374151 100%);
}

body.register-page {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(107, 114, 128, 0.18), transparent 28%),
        linear-gradient(140deg, #111827, #1f2937 48%, #374151 100%);
}

body.admin-page {
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(107, 114, 128, 0.2), transparent 24%),
        linear-gradient(145deg, #111827, #1f2937 56%, #374151 100%);
}

body.home-page {
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(107, 114, 128, 0.16), transparent 28%),
        linear-gradient(145deg, #111827, #1f2937 55%, #374151 100%);
}

body.walkthrough-page {
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.1), transparent 26%),
        radial-gradient(circle at bottom right, rgba(107, 114, 128, 0.18), transparent 24%),
        linear-gradient(145deg, #111827, #1f2937 55%, #374151 100%);
}

.card {
    width: min(100%, 480px);
    background: var(--surface-strong);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.auth-shell {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px 18px;
    margin-bottom: 24px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(31, 41, 55, 0.82);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

.site-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-brand strong {
    font-size: 1.1rem;
}

.site-brand span {
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-header {
    align-items: flex-start;
}

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

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -6px 0 20px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(31, 41, 55, 0.76);
    border: 1px solid var(--border);
}

.subnav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    background: rgba(55, 65, 81, 0.68);
}

.subnav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.public-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.public-nav {
    justify-content: flex-end;
    flex: 1 1 auto;
}

.public-brandmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 auto;
}

.public-brandmark-ring {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.public-brandmark-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    filter: saturate(1.02) brightness(1.02);
}

.header-support-widget {
    display: grid;
    grid-template-columns: auto minmax(90px, 140px) auto;
    gap: 8px;
    align-items: center;
    margin-left: 26px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: var(--text);
    text-decoration: none;
    flex: 0 0 auto;
}

.header-support-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.header-support-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.54);
}

.header-support-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-green));
}

.header-support-widget strong {
    color: #ffcb73;
    font-size: 0.9rem;
}

.header-support-preview {
    display: grid;
    gap: 5px;
    width: min(34vw, 380px);
    min-width: 260px;
    margin-left: 26px;
    color: var(--text);
    text-decoration: none;
    flex: 0 0 auto;
}

.header-support-preview-title {
    color: #ffcb73;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.header-support-preview-body {
    display: block;
}

.header-support-preview .goal-widget {
    min-height: 0;
    padding: 8px 10px;
    border-radius: 16px;
    gap: 7px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.header-support-preview .goal-widget-copy {
    gap: 1px;
}

.header-support-preview .goal-widget-copy strong,
.header-support-preview .boss-header strong,
.header-support-preview .pixel-header strong,
.header-support-preview .goal-widget-quest h3 {
    font-size: 0.78rem;
}

.header-support-preview .goal-widget-copy span,
.header-support-preview .boss-footer,
.header-support-preview .goal-widget-quest p,
.header-support-preview .goal-widget-meta {
    display: none;
}

.header-support-preview .xp-track,
.header-support-preview .boss-track,
.header-support-preview .quest-track {
    height: 8px;
}

.header-support-preview .goal-widget-chest,
.header-support-preview .goal-widget-reactor,
.header-support-preview .goal-widget-cell,
.header-support-preview .goal-widget-radar,
.header-support-preview .goal-widget-dial,
.header-support-preview .goal-widget-crystal {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
}

.header-support-preview .chest-visual {
    width: 52px;
    height: 44px;
}

.header-support-preview .chest-lid {
    top: 4px;
    height: 16px;
    border-width: 2px;
}

.header-support-preview .chest-body {
    height: 26px;
    border-width: 2px;
}

.header-support-preview .chest-glow {
    left: 8px;
    bottom: 5px;
    width: calc(100% - 16px);
}

.header-support-preview .reactor-ring,
.header-support-preview .radar-screen,
.header-support-preview .dial-face {
    width: 50px;
    height: 50px;
}

.header-support-preview .reactor-core {
    width: 34px;
    height: 34px;
}

.header-support-preview .reactor-core strong,
.header-support-preview .radar-screen strong,
.header-support-preview .dial-face span,
.header-support-preview .crystal-shard strong {
    font-size: 0.78rem;
}

.header-support-preview .reactor-core span {
    display: none;
}

.header-support-preview .pixel-track {
    gap: 3px;
}

.header-support-preview .pixel-track span {
    height: 10px;
    border-radius: 3px;
}

.header-support-preview .cell-battery {
    height: 34px;
    border-width: 2px;
    border-radius: 10px;
    padding: 4px;
}

.header-support-preview .cell-battery::after {
    right: -8px;
    top: 9px;
    width: 6px;
    height: 14px;
}

.header-support-preview .ladder-steps {
    gap: 4px;
}

.header-support-preview .ladder-steps span {
    height: 18px;
    border-radius: 6px;
}

.header-support-preview .route-line {
    padding: 8px 2px;
}

.header-support-preview .route-line span {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.header-support-preview .route-line::before {
    left: 10px;
    right: 10px;
    height: 2px;
}

.header-support-preview .crystal-shard {
    width: 40px;
    height: 50px;
}

.public-goal-reactor {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 78px;
    min-width: 78px;
    height: 78px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
}

.public-reactor-ring {
    --ring-angle: calc(var(--goal-percent) * 3.6deg);
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(17, 24, 39, 1) 54%, transparent 55%),
        conic-gradient(#10b981 0deg, #f59e0b var(--ring-angle), rgba(71, 85, 105, 0.34) var(--ring-angle), rgba(71, 85, 105, 0.34) 360deg);
}

.public-reactor-core {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.2), rgba(15, 23, 42, 0.98) 72%);
}

.public-reactor-core strong {
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1;
}

.public-reactor-core span {
    color: var(--muted);
    font-size: 0.5rem;
    line-height: 1;
}

.public-goal-reactor.is-inactive .public-reactor-ring {
    background:
        radial-gradient(circle at center, rgba(17, 24, 39, 1) 54%, transparent 55%),
        conic-gradient(rgba(75, 85, 99, 0.72) 0deg, rgba(75, 85, 99, 0.72) 360deg);
    filter: grayscale(1) saturate(0) brightness(0.76);
}

.public-goal-reactor.is-inactive {
    cursor: default;
    pointer-events: none;
}

.public-goal-reactor.is-inactive .public-reactor-core {
    background: radial-gradient(circle, rgba(75, 85, 99, 0.34), rgba(15, 23, 42, 0.98) 72%);
}

.public-goal-reactor.is-inactive .public-reactor-core strong,
.public-goal-reactor.is-inactive .public-reactor-core span {
    color: #9ca3af;
}

.affiliate-banner-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 760px) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
}

.instant-gaming-banner {
    display: flex;
    align-items: center;
    width: 100%;
    height: clamp(74px, 8vw, 118px);
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none;
    background: #111;
}

.instant-gaming-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goals-page-panel {
    text-align: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    background: rgba(55, 65, 81, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
}

.nav-link-disabled {
    color: rgba(229, 231, 235, 0.42);
    background: rgba(55, 65, 81, 0.3);
    border-color: rgba(255, 255, 255, 0.04);
    cursor: default;
    pointer-events: none;
}

.nav-link-strong {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-green), #059669);
    border-color: transparent;
}

.auth-main {
    display: grid;
    place-items: center;
    width: 100%;
}

.auth-main .card {
    width: min(100%, 820px);
}

.login-page .card {
    background: var(--surface-strong);
}

.register-page .card {
    background: var(--surface-strong);
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.5;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--text);
    background: rgba(55, 65, 81, 0.75);
}

textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--text);
    background: rgba(55, 65, 81, 0.75);
    resize: vertical;
    min-height: 130px;
    font-family: inherit;
}

select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--text);
    background: rgba(55, 65, 81, 0.75);
}

select[multiple] {
    min-height: 220px;
    padding: 10px 12px;
}

input:focus {
    outline: 2px solid rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

textarea:focus,
select:focus {
    outline: 2px solid rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

button,
.button-link,
.logout {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.login-page button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.register-page button {
    background: linear-gradient(135deg, var(--accent-green), #059669);
}

.logout {
    width: auto;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.message {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.message.success {
    background: rgba(22, 101, 52, 0.12);
    color: var(--success);
}

.message.error {
    background: rgba(153, 27, 27, 0.1);
    color: var(--error);
}

.links {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}

.links a {
    font-weight: 700;
    text-decoration: none;
}

.login-page .links a {
    color: var(--accent-primary);
}

.register-page .links a {
    color: var(--accent-green);
}

.wrap {
    max-width: 1520px;
    margin: 0 auto;
}

.home-hero {
    display: block;
    margin-bottom: 24px;
    width: 100%;
}

.home-panel {
    width: 100%;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(31, 41, 55, 0.12);
    backdrop-filter: blur(10px);
}

.home-panel-wide {
    width: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.12);
}

.lead {
    font-size: 1.05rem;
    max-width: 54ch;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
}

.cta-link.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.playlist-link .label-hover {
    display: none;
}

.cta-link.secondary {
    color: var(--text);
    background: rgba(55, 65, 81, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-link.secondary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 22px;
    border-radius: 22px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin-bottom: 10px;
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(55, 65, 81, 0.42);
}

.hero {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(31, 41, 55, 0.12);
}

.hero p {
    margin-bottom: 0;
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.panel {
    padding: 22px;
    border-radius: 22px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.admin-form {
    margin-top: 18px;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 0 14px;
    align-items: start;
}

.field-full {
    grid-column: 1 / -1;
}

.field-half {
    grid-column: span 1;
}

.field-third {
    grid-column: span 1;
}

.title-search-field {
    position: relative;
}

.upload-form-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 14px;
}

.upload-form-grid .field-half {
    grid-column: span 3;
}

.upload-form-grid .field-third {
    grid-column: span 2;
}

.submit-button {
    width: auto;
    min-width: 220px;
    background: linear-gradient(135deg, var(--accent-green), #059669);
}

.refresh-form {
    margin-top: 14px;
}

.refresh-button {
    width: auto;
    min-width: 240px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.16);
}

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

.field-note {
    margin: -8px 0 10px;
    font-size: 0.92rem;
    color: var(--muted);
}

.field-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -4px;
}

.suggest-row {
    align-items: center;
    margin-bottom: 10px;
}

.genre-suggest-button {
    width: auto;
    min-width: 160px;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.14);
}

.genre-suggest-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.suggest-message {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
}

.visually-hidden-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dropzone {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(245, 158, 11, 0.38);
    background: rgba(55, 65, 81, 0.42);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.dropzone.is-dragover {
    border-color: rgba(16, 185, 129, 0.9);
    background: rgba(16, 185, 129, 0.14);
    transform: translateY(-1px);
}

.dropzone-title {
    font-weight: 700;
    color: var(--text);
}

.dropzone-subtitle {
    color: var(--muted);
    line-height: 1.45;
}

.title-suggest-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    width: min(820px, max(100%, 560px));
    max-width: 100vw;
    z-index: 40;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(31, 41, 55, 0.96);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
}

.image-gallery-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.gallery-open-button,
.gallery-clear-button,
.gallery-modal-close {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #f3f5f7;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-open-button {
    padding: 11px 16px;
    font-weight: 700;
}

.gallery-clear-button,
.gallery-modal-close {
    min-width: 44px;
    padding: 11px 14px;
    font-weight: 800;
}

.gallery-open-button:hover,
.gallery-clear-button:hover,
.gallery-modal-close:hover {
    background: rgba(255, 178, 56, 0.16);
    border-color: rgba(255, 178, 56, 0.55);
    color: #ffcb73;
    transform: translateY(-1px);
}

.gallery-selection-text {
    margin-top: 8px;
    color: #b4bbc3;
    font-size: 0.95rem;
    word-break: break-word;
}

.gallery-modal-open {
    overflow: hidden;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 14, 0.76);
    backdrop-filter: blur(4px);
}

.gallery-modal-dialog {
    position: relative;
    width: min(980px, calc(100vw - 40px));
    margin: 38px auto;
    background: #262d35;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.gallery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.gallery-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.gallery-modal-header p {
    margin: 6px 0 0;
    color: #aeb6bf;
}

.gallery-modal-grid-wrap {
    max-height: 760px;
    overflow-y: auto;
    padding: 24px;
}

.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gallery-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(14, 18, 22, 0.54);
    color: #f4f6f8;
    cursor: pointer;
    min-height: 160px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover,
.gallery-card.is-selected {
    border-color: rgba(255, 178, 56, 0.6);
    background: rgba(255, 178, 56, 0.12);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
}

.gallery-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #15191e;
}

.gallery-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    color: #dfe4ea;
    font-size: 0.92rem;
    line-height: 1.35;
}

.title-suggest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--muted);
}

.title-suggest-header strong {
    color: var(--text);
    font-size: 1rem;
}

.title-suggest-list {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
}

.title-suggest-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.76);
    color: var(--text);
    text-align: left;
}

.title-suggest-thumb {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(55, 65, 81, 0.72);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.title-suggest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.title-suggest-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.title-suggest-body strong {
    font-size: 1.02rem;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

.title-suggest-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: var(--accent-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.title-modal-open {
    overflow: hidden;
}

.title-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.title-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 14, 0.76);
    backdrop-filter: blur(4px);
}

.title-modal-dialog {
    position: relative;
    width: min(920px, calc(100vw - 40px));
    margin: 42px auto;
    background: #262d35;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.title-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.title-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.title-modal-header p {
    margin: 6px 0 0;
    color: #aeb6bf;
}

.title-modal-close {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #f3f5f7;
    border-radius: 12px;
    min-width: 44px;
    padding: 11px 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.title-modal-close:hover {
    background: rgba(255, 178, 56, 0.16);
    border-color: rgba(255, 178, 56, 0.55);
    color: #ffcb73;
    transform: translateY(-1px);
}

.title-modal-list-wrap {
    max-height: 72vh;
    overflow-y: auto;
    padding: 18px 20px 22px;
}

.title-modal-list {
    display: grid;
    gap: 12px;
}

.admin-cancel {
    min-width: 200px;
}

.admin-empty-panel {
    min-height: 320px;
}

.support-admin-panel {
    display: grid;
    gap: 18px;
}

.support-status-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
}

.support-widget-admin-card {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    background: rgba(15, 23, 42, 0.64);
}

.support-widget-preview {
    display: grid;
    place-items: center;
    min-width: 96px;
}

.support-widget-copy {
    display: grid;
    gap: 6px;
}

.support-widget-copy strong {
    font-size: 1.14rem;
}

.support-widget-copy span {
    color: var(--muted);
}

.support-widget-hidden-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
    background: rgba(75, 85, 99, 0.24);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.support-status-card strong {
    font-size: 1.18rem;
}

.support-status-card span {
    color: var(--muted);
}

.support-status-card.is-active {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.24), rgba(15, 23, 42, 0.82));
}

.support-status-card.is-inactive {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.18), rgba(15, 23, 42, 0.82));
}

.support-toggle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.support-toggle-button {
    width: auto;
    min-width: 150px;
    border-radius: 999px;
    opacity: 0.74;
}

.support-toggle-button.is-selected {
    opacity: 1;
    outline: 2px solid rgba(255, 255, 255, 0.22);
}

.support-toggle-active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.support-toggle-inactive {
    background: linear-gradient(135deg, #64748b, #334155);
}

.report-public-panel,
.report-admin-panel {
    display: grid;
    gap: 18px;
}

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

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

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--accent-primary);
    font-weight: 900;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.bug-report-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.bug-report-title {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.bug-report-title:hover {
    color: var(--accent-primary);
}

.bug-report-done {
    width: 30px;
    min-width: 30px;
    height: 30px;
    font-size: 1rem;
}

.bug-report-detail {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.bug-report-detail h2 {
    margin: 4px 0 0;
}

.bug-report-detail p {
    white-space: normal;
    color: var(--text);
}

.bug-report-meta {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.bug-report-back {
    width: fit-content;
}

.stats-admin-panel {
    display: grid;
    gap: 18px;
}

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

.stats-summary-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(245, 158, 11, 0.16);
}

.stats-summary-card span {
    color: var(--muted);
    font-weight: 700;
}

.stats-summary-card strong {
    color: var(--text);
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.stats-table {
    min-width: 760px;
}

.admin-split {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 18px;
}

.lookup-split {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
}

.inner-panel {
    padding: 20px;
}

.admin-subtitle {
    margin: 26px 0 10px;
}

.admin-table {
    min-width: 860px;
}

.admin-table th,
.admin-table td {
    padding: 10px 8px;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    line-height: 1;
}

.table-action-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
}

.inline-delete-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.table-icon-delete {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.35);
    color: #fca5a5;
    font-size: 1.5rem;
    line-height: 1;
}

.table-icon-delete-small {
    width: 30px;
    min-width: 30px;
    height: 30px;
    font-size: 1rem;
}

.delete-confirm-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    min-width: 140px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 20;
}

.js-confirm-delete.is-open .delete-confirm-pop {
    display: grid;
    gap: 10px;
}

.delete-confirm-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

.delete-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.confirm-icon {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.confirm-yes {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.confirm-no {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
}

.image-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 24px;
}

.image-search-form input {
    flex: 1 1 320px;
    margin-bottom: 0;
}

.image-search-button,
.image-action-button {
    width: auto;
    min-width: 170px;
}

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

.inline-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.inline-search-form input {
    width: min(360px, 100%);
    margin-bottom: 0;
}

.inline-search-form-minimal {
    flex-wrap: nowrap;
    gap: 8px;
}

.inline-search-form-minimal input {
    width: min(280px, 100%);
    padding: 10px 14px;
}

.inline-search-form-minimal .compact-button {
    min-width: 108px;
    padding: 10px 14px;
}

.compact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 140px;
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.action-orange-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.14);
}

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

.image-admin-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.image-admin-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: rgba(17, 24, 39, 0.8);
}

.image-admin-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.image-admin-body h2 {
    margin-bottom: 0;
    font-size: 1rem;
    word-break: break-word;
}

.image-inline-form {
    display: grid;
    gap: 10px;
}

.image-inline-form input {
    margin-bottom: 0;
}

.delete-form {
    margin-top: 4px;
}

.delete-button {
    width: 100%;
    min-width: 0;
}

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

.lookup-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: rgba(55, 65, 81, 0.42);
}

.lookup-form {
    display: flex;
    flex: 1 1 420px;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lookup-form input {
    flex: 1 1 220px;
    margin-bottom: 0;
}

.compact-delete-button {
    width: auto;
    min-width: 120px;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card {
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.planned-panel {
    margin-top: 0;
}

body.walkthrough-page .section-title-panel,
body.walkthrough-page .planned-panel,
body.walkthrough-page .finished-panel,
body.walkthrough-page .search-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.section-title-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 96px;
    text-align: center;
}

.search-title-panel {
    justify-content: space-between;
    gap: 18px;
    text-align: left;
}

.search-panel {
    margin-top: 26px;
    margin-bottom: 18px;
}

body.walkthrough-page .planned-title-panel,
body.walkthrough-page .finished-title-panel,
body.walkthrough-page .planned-panel,
body.walkthrough-page .search-panel,
body.walkthrough-page .finished-panel {
    margin-top: 0;
    margin-bottom: 0;
}

body.walkthrough-page .planned-title-panel {
    margin-bottom: 18px;
}

body.walkthrough-page .planned-panel {
    margin-bottom: 36px;
}

body.walkthrough-page .finished-title-panel {
    margin-bottom: 18px;
}

body.walkthrough-page .search-panel {
    margin-bottom: 18px;
}

.section-title-panel h2 {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.planned-title-panel {
    margin-top: 26px;
    margin-bottom: 18px;
}

.finished-title-panel {
    margin-top: 26px;
    margin-bottom: 18px;
}

.finished-search-form {
    position: relative;
    width: min(460px, 100%);
    margin-left: auto;
}

.finished-search-form-centered {
    width: min(50%, 460px);
    margin: 0 auto;
}

.finished-search-input {
    margin-bottom: 0;
    border-radius: 999px;
    padding: 14px 54px 14px 18px;
    background: rgba(55, 65, 81, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.finished-search-button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    font-size: 1.05rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.16);
}

.planned-card .game-thumb {
    filter: grayscale(1) brightness(0.75);
}

.planned-card .game-card-link::before {
    background: rgba(15, 23, 42, 0.18);
}

.planned-card-static {
    cursor: default;
}

.game-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    position: relative;
}

.game-card-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background 0.18s ease;
    z-index: 1;
    pointer-events: none;
}

.game-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.18s ease;
}

.game-content {
    padding: 16px 14px 18px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.game-content h2 {
    font-size: 1.12rem;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .game-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 44px rgba(31, 41, 55, 0.14);
    }

    .game-card:hover .game-card-link::before {
        background: rgba(15, 23, 42, 0.16);
    }

    .game-card:hover .game-thumb {
        transform: scale(1.02);
    }

    .planned-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    .planned-card:hover .game-thumb {
        transform: none;
    }

    .detail-image-frame:hover .detail-image {
        transform: scale(0.82);
    }

    .playlist-link:hover .label-default {
        display: none;
    }

    .playlist-link:hover .label-hover {
        display: inline;
    }
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

.collector-view {
    width: 100%;
    margin-bottom: 24px;
}

.collector-header {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 24px;
}

.collector-image-wrap {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.collector-image {
    display: block;
    width: auto;
    max-width: min(100%, 590px);
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-xl);
}

.collector-title-plain {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 18px;
    text-align: center;
    width: max-content;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.collector-title-plain h1 {
    margin-bottom: 0;
    white-space: nowrap;
    max-width: none;
    line-height: 1.08;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.collector-franchise-sup {
    font-size: 0.42em;
    vertical-align: super;
    margin-left: 6px;
    font-weight: 700;
    color: var(--accent-primary);
}

.collector-preview-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.collector-list-panel {
    margin-top: 0;
}

body.walkthrough-page .collector-view {
    margin-bottom: 0;
}

body.walkthrough-page .collector-list-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 0;
}

.collector-grid {
    align-items: stretch;
}

.detail-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.detail-media-card {
    display: flex;
    align-items: center;
}

.detail-content-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.detail-card-top {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}

.detail-content-card h1 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.detail-content-card-collector .detail-card-top {
    align-items: flex-start;
}

.detail-card-body {
    width: 100%;
}

.franchise-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.14);
}

.detail-image-frame {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
    transition: transform 0.22s ease;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.meta-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(55, 65, 81, 0.42);
}

.detail-description {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(55, 65, 81, 0.42);
    color: var(--text);
    line-height: 1.7;
}

.detail-facts {
    display: grid;
    gap: 10px;
}

.detail-facts div {
    color: var(--text);
}

.platform-tag-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 8px;
    vertical-align: middle;
}

.platform-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.platform-tag.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.platform-tag.is-inactive {
    color: var(--muted);
    background: rgba(55, 65, 81, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-tag-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 8px;
    vertical-align: middle;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    background: rgba(55, 65, 81, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-content-card .detail-description,
.detail-content-card .meta-list {
    width: 100%;
}

.detail-action-row {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-end;
    margin-top: 28px;
}

.back-link {
    align-self: flex-end;
}

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

.child-link {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: rgba(55, 65, 81, 0.42);
}

.empty-state {
    text-align: center;
    padding: 34px 22px;
}

.site-footer {
    margin-top: 28px;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(17, 24, 39, 0.82);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.home-under-construction-panel {
    display: grid;
    place-items: center;
    min-height: 260px;
}

.home-under-construction {
    margin: 0;
    text-align: center;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    color: var(--text);
}

.metric {
    font-size: clamp(1.5rem, 3.8vw, 2rem);
    font-weight: 800;
    margin: 10px 0 6px;
    word-break: break-word;
}

.metric-panel {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 128px;
    margin: 0 0 18px;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.metric-panel strong {
    font-size: 1.8rem;
    line-height: 1;
}

.metric-panel span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.muted {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    margin-top: 14px;
}

th,
td {
    padding: 14px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

th {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

@media (max-width: 768px) {
    body.auth-page,
    body.admin-page,
    body.home-page,
    body.walkthrough-page,
    body.register-page,
    body.login-page {
        padding: 16px;
    }

    .site-header,
    .card,
    .hero,
    .panel {
        padding: 20px;
    }

    .auth-main .card {
        width: min(100%, 560px);
    }

    .site-nav {
        width: 100%;
    }

    .nav-link {
        flex: 1 1 140px;
    }

    .public-nav .nav-link {
        flex: 1 1 150px;
    }

    .public-header {
        justify-content: center;
    }

    .public-brandmark {
        width: 100%;
        justify-content: center;
    }

    .header-support-widget {
        margin-left: 0;
        width: min(100%, 360px);
        justify-content: center;
    }

    .header-support-preview {
        width: min(100%, 380px);
        min-width: 0;
        margin-left: 0;
    }

    .public-goal-reactor {
        margin: 0;
    }

    .affiliate-banner-row {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 100%) minmax(0, 1fr);
        margin-bottom: 16px;
    }

    .instant-gaming-banner {
        height: clamp(72px, 20vw, 110px);
    }

    .public-brandmark-ring {
        width: 72px;
        height: 72px;
    }

    .public-nav {
        justify-content: center;
        width: 100%;
    }

    .search-title-panel {
        justify-content: center;
        text-align: center;
    }

    .finished-search-form {
        width: 100%;
        margin-left: 0;
    }

    .finished-search-form-centered {
        width: min(100%, 460px);
        margin: 0 auto;
    }

    .hero {
        align-items: stretch;
    }

    .hero-actions {
        width: 100%;
    }

    .form-grid,
    .detail-layout,
    .card-grid.four-up {
        grid-template-columns: 1fr 1fr;
    }

    .upload-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .upload-form-grid .field-half,
    .upload-form-grid .field-third {
        grid-column: span 1;
    }

    .admin-split {
        grid-template-columns: 1fr;
    }

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

    .gallery-modal-dialog {
        width: min(760px, calc(100vw - 28px));
    }

    .title-modal-dialog {
        width: min(760px, calc(100vw - 28px));
    }

    .gallery-modal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .logout {
        width: 100%;
    }

    table {
        min-width: 560px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .form-grid,
    .detail-layout,
    .card-grid.four-up {
        grid-template-columns: 1fr;
    }

    .upload-form-grid {
        grid-template-columns: 1fr;
    }

    .upload-form-grid .field-half,
    .upload-form-grid .field-third {
        grid-column: span 1;
    }

    .image-admin-grid {
        grid-template-columns: 1fr;
    }

    .gallery-modal-dialog {
        width: min(100vw - 20px, 520px);
        margin: 16px auto;
    }

    .title-modal-dialog {
        width: min(100vw - 20px, 560px);
        margin: 16px auto;
    }

    .title-modal-header,
    .title-modal-list-wrap,
    .gallery-modal-header,
    .gallery-modal-grid-wrap {
        padding: 16px;
    }

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

    .subnav {
        padding: 12px;
    }

    .subnav-link {
        flex: 1 1 140px;
    }

    .section-head,
    .inline-search-form,
    .lookup-item,
    .lookup-form {
        display: grid;
    }

    .card,
    .hero,
    .panel,
    .home-panel,
    .feature-card {
        border-radius: 20px;
        padding: 18px;
    }

    .auth-main .card {
        width: 100%;
    }

    .site-header {
        border-radius: 20px;
        padding: 16px;
    }

    .public-nav {
        gap: 8px;
        justify-content: center;
    }

    .public-brandmark-ring {
        width: 64px;
        height: 64px;
        padding: 6px;
    }

    input,
    button {
        padding: 13px 14px;
    }
}

.goal-preview-intro {
    margin: 12px 0 28px;
    text-align: center;
}

.goal-preview-intro h1 {
    margin-bottom: 10px;
}

.goal-preview-intro p {
    margin: 0 auto;
    max-width: 62ch;
}

.goal-preview-stack {
    display: grid;
    gap: 22px;
    margin-bottom: 28px;
}

.goal-preview-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(17, 24, 39, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.goal-preview-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 16px;
    align-items: baseline;
}

.goal-preview-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.goal-preview-head span {
    color: var(--muted);
    font-size: 0.96rem;
}

.goal-widget {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.92));
}

.goal-widget-copy {
    display: grid;
    gap: 4px;
}

.goal-widget-copy strong,
.goal-widget-copy span,
.goal-widget-meta,
.goal-widget p,
.boss-header,
.boss-footer,
.pixel-header {
    margin: 0;
}

.goal-widget-copy span,
.boss-footer,
.goal-widget-meta,
.pixel-header span,
.reactor-core span {
    color: var(--muted);
}

.goal-widget-meta,
.boss-footer,
.boss-header,
.pixel-header,
.quest-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.xp-track,
.boss-track,
.quest-track {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    height: 18px;
    background: rgba(71, 85, 105, 0.42);
}

.xp-fill,
.boss-fill,
.quest-fill {
    height: 100%;
    border-radius: inherit;
}

.xp-fill {
    background: linear-gradient(90deg, #22c55e, #f59e0b 74%, #fde68a);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.32);
}

.goal-widget-boss {
    background: linear-gradient(145deg, rgba(39, 14, 18, 0.96), rgba(15, 23, 42, 0.92));
}

.boss-track {
    height: 22px;
    border: 1px solid rgba(248, 113, 113, 0.22);
}

.boss-fill {
    background: linear-gradient(90deg, #ef4444, #f97316);
    box-shadow: 0 0 26px rgba(239, 68, 68, 0.28);
}

.goal-widget-chest {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.chest-visual {
    position: relative;
    width: 140px;
    height: 120px;
    margin: 0 auto;
}

.chest-lid,
.chest-body {
    position: absolute;
    left: 0;
    width: 100%;
    border: 3px solid rgba(245, 158, 11, 0.78);
    background: linear-gradient(145deg, #5b3a16, #2c1808);
}

.chest-lid {
    top: 8px;
    height: 42px;
    border-radius: 18px 18px 8px 8px;
    transform: perspective(120px) rotateX(-28deg);
    transform-origin: bottom center;
}

.chest-body {
    bottom: 0;
    height: 70px;
    border-radius: 12px 12px 18px 18px;
}

.chest-glow {
    position: absolute;
    left: 16px;
    bottom: 12px;
    width: calc(100% - 32px);
    border-radius: 12px 12px 14px 14px;
    background: linear-gradient(180deg, rgba(253, 224, 71, 0.92), rgba(245, 158, 11, 0.26));
    box-shadow: 0 0 34px rgba(245, 158, 11, 0.38);
}

.goal-widget-quest {
    background:
        linear-gradient(145deg, rgba(18, 32, 51, 0.96), rgba(10, 18, 31, 0.98));
    border-left: 6px solid var(--accent-primary);
}

.quest-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.9rem;
}

.goal-widget-quest h3 {
    margin: 0;
    font-size: 1.3rem;
}

.goal-widget-quest p {
    margin: 0;
}

.quest-fill {
    background: linear-gradient(90deg, #f59e0b, #22c55e);
}

.goal-widget-reactor {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.reactor-ring {
    --ring-angle: calc(var(--goal-percent) * 3.6deg);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(10, 14, 22, 1) 54%, transparent 55%),
        conic-gradient(#10b981 0deg, #f59e0b var(--ring-angle), rgba(71, 85, 105, 0.34) var(--ring-angle), rgba(71, 85, 105, 0.34) 360deg);
    display: grid;
    place-items: center;
    box-shadow: 0 0 32px rgba(16, 185, 129, 0.16);
}

.reactor-core {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.24), rgba(15, 23, 42, 0.98) 72%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reactor-core strong {
    font-size: 1.9rem;
    line-height: 1;
}

.goal-widget-pixel {
    gap: 16px;
}

.pixel-track {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
}

.pixel-track span {
    display: block;
    height: 28px;
    border-radius: 6px;
    background: rgba(71, 85, 105, 0.34);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.pixel-track span.is-on {
    background: linear-gradient(180deg, #fbbf24, #f97316);
    box-shadow:
        inset 0 -2px 0 rgba(0, 0, 0, 0.18),
        0 0 20px rgba(249, 115, 22, 0.24);
}

.goal-single-preview {
    display: grid;
    gap: 18px;
    width: min(100%, 920px);
    margin: 24px auto;
}

.goal-widget-cell,
.goal-widget-radar,
.goal-widget-dial,
.goal-widget-crystal {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
}

.cell-battery {
    position: relative;
    height: 76px;
    border: 3px solid rgba(16, 185, 129, 0.72);
    border-radius: 20px;
    padding: 8px;
    background: rgba(6, 78, 59, 0.18);
}

.cell-battery::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 22px;
    width: 10px;
    height: 28px;
    border-radius: 0 8px 8px 0;
    background: rgba(16, 185, 129, 0.72);
}

.cell-charge {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #10b981, #fbbf24);
}

.goal-widget-radar {
    background: linear-gradient(145deg, rgba(4, 47, 46, 0.96), rgba(15, 23, 42, 0.94));
}

.radar-screen {
    position: relative;
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(45, 212, 191, 0.38);
    background:
        repeating-radial-gradient(circle, rgba(45, 212, 191, 0.14) 0 1px, transparent 1px 22px),
        linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(15, 23, 42, 0.9));
}

.radar-sweep {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 30deg, rgba(45, 212, 191, 0.42), transparent 72deg);
}

.radar-screen strong,
.dial-face span,
.crystal-shard strong {
    z-index: 1;
    font-size: 1.7rem;
    font-weight: 900;
}

.goal-widget-dial {
    background: linear-gradient(145deg, rgba(41, 37, 36, 0.96), rgba(15, 23, 42, 0.94));
}

.dial-face {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.24), rgba(15, 23, 42, 0.98) 58%),
        conic-gradient(#f59e0b 0 230deg, rgba(120, 113, 108, 0.32) 230deg 360deg);
    box-shadow: inset 0 0 0 12px rgba(15, 23, 42, 0.82);
}

.goal-widget-ladder {
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.96), rgba(15, 23, 42, 0.94));
}

.ladder-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.ladder-steps span {
    height: 46px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(165, 180, 252, 0.16);
}

.ladder-steps span.is-on {
    background: linear-gradient(180deg, #818cf8, #f59e0b);
}

.goal-widget-route {
    background: linear-gradient(145deg, rgba(28, 25, 23, 0.96), rgba(15, 23, 42, 0.94));
}

.route-line {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 6px;
}

.route-line::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: rgba(120, 113, 108, 0.32);
}

.route-line span {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1f2937;
    border: 3px solid rgba(120, 113, 108, 0.55);
}

.route-line span.is-done {
    background: #f59e0b;
    border-color: #fbbf24;
}

.goal-widget-crystal {
    background: linear-gradient(145deg, rgba(49, 46, 129, 0.96), rgba(15, 23, 42, 0.94));
}

.crystal-shard {
    display: grid;
    place-items: center;
    width: 118px;
    height: 150px;
    margin: 0 auto;
    clip-path: polygon(50% 0, 92% 30%, 78% 100%, 22% 100%, 8% 30%);
    background: linear-gradient(145deg, #a78bfa, #22d3ee 54%, #f59e0b);
}

.crystal-shard strong {
    color: #111827;
}

@media (max-width: 768px) {
    .goal-widget-chest,
    .goal-widget-reactor,
    .goal-widget-cell,
    .goal-widget-radar,
    .goal-widget-dial,
    .goal-widget-crystal {
        grid-template-columns: 1fr;
    }

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

    .reactor-ring,
    .chest-visual,
    .radar-screen,
    .dial-face {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .goal-preview-card,
    .goal-widget {
        padding: 18px;
    }

    .pixel-track {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.go-top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    width: 86px;
    height: 86px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.94);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.go-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.go-top-button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px) scale(1.02);
}

.go-top-button img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.blog-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.blog-public-card {
    display: grid;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.blog-public-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.44);
    background: rgba(31, 41, 55, 0.96);
}

.blog-public-card.is-featured {
    border-color: rgba(245, 158, 11, 0.52);
}

.blog-public-thumb {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.blog-public-body {
    min-width: 0;
    padding: 18px;
}

.blog-public-body h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.blog-public-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    margin: 0;
}

.blog-detail {
    max-width: 980px;
    margin: 28px auto;
}

.blog-detail h1 {
    text-align: center;
    margin-bottom: 22px;
}

.blog-detail-content {
    color: var(--text);
    line-height: 1.7;
    white-space: normal;
}

.blog-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.blog-detail-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
}

.blog-detail-image-button {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.blog-lightbox-open {
    overflow: hidden;
}

.blog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1400;
}

.blog-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 14, 0.82);
    backdrop-filter: blur(4px);
}

.blog-lightbox-dialog {
    position: relative;
    display: grid;
    place-items: center;
    width: min(1100px, calc(100vw - 36px));
    height: min(82vh, 780px);
    margin: 46px auto;
}

.blog-lightbox-dialog img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.blog-lightbox-close,
.blog-lightbox-nav {
    position: absolute;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.88);
    color: #fff;
    font-size: 1.8rem;
}

.blog-lightbox-close {
    top: 0;
    right: 0;
}

.blog-lightbox-prev {
    left: 0;
}

.blog-lightbox-next {
    right: 0;
}

.blog-back-link {
    width: fit-content;
    margin-top: 28px;
}

.contact-panel {
    display: grid;
    place-items: center;
    min-height: 320px;
    text-align: center;
}

.contact-panel a {
    color: var(--accent-primary);
    font-weight: 800;
    text-decoration: none;
}

.tight-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
}

.icon-action-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    background: rgba(55, 65, 81, 0.76);
}

.blog-form {
    max-width: 1040px;
}

.index-content-grid {
    display: grid;
    gap: 18px;
}

.latest-videos-panel h1 {
    margin: 0 0 14px;
    text-align: center;
}

.latest-video-list {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.latest-video-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    text-align: center;
    font-weight: 800;
    transition: color 0.18s ease, transform 0.18s ease;
}

.latest-video-link:hover {
    color: #ffcb73;
    transform: translateY(-1px);
}

.index-content-block h1 {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.index-content-block p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: #dbe4ef;
    line-height: 1.7;
}

.index-content-block {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.index-content-image {
    position: absolute;
    z-index: 0;
    transform: translate(-50%, -50%);
    max-width: none;
    border-radius: 18px;
    opacity: 0.92;
    pointer-events: none;
}

.add-content-button {
    width: 52px;
    min-width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #111827;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.index-content-editor {
    display: none;
}

.index-content-editor.is-open {
    display: block;
}

.index-builder-canvas {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    margin: 10px 0 16px;
    border: 1px dashed rgba(255, 178, 56, 0.36);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 41, 55, 0.72)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 38%);
}

.index-builder-text {
    position: absolute;
    inset: 20px auto auto 20px;
    display: grid;
    gap: 4px;
    z-index: 1;
    color: var(--muted);
}

.index-builder-text strong {
    color: var(--text);
}

.index-builder-image {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    max-width: none;
    border-radius: 16px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.index-builder-image:active {
    cursor: grabbing;
}

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

.index-admin-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.55);
}

.index-admin-thumb {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.index-admin-item.is-dragging {
    opacity: 0.65;
}

.index-admin-item p {
    margin: 4px 0 0;
    color: var(--muted);
}

.drag-handle {
    cursor: grab;
    color: #ffcb73;
    font-size: 1.25rem;
}

.error-page-panel {
    text-align: center;
}

.error-page-panel .cta-link {
    margin-top: 16px;
}

.blog-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin: -6px 0 18px;
}

.blog-image-preview img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.blog-existing-image-item {
    position: relative;
    display: grid;
    gap: 8px;
}

.blog-existing-image-item .inline-delete-wrap {
    justify-content: center;
}

@media (max-width: 480px) {
    .go-top-button {
        right: 16px;
        bottom: 16px;
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .blog-public-grid {
        grid-template-columns: 1fr;
    }

    .blog-public-card {
        max-height: 240px;
        min-height: 220px;
    }

}
