.anon-page > #detail-page-content,
.anon-page > #detail-page-content > .content-card,
.anon-page > #detail-page-content > .content-card > .container {
    background: transparent !important; padding: 0 !important; margin: 0 !important;
    max-width: 100% !important; width: 100% !important; box-shadow: none !important; border-radius: 0 !important;
}
body.detail-page .content,
body:has(.anon-page) .content {
    padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; background: transparent !important;
}
body:has(.anon-page),
body.detail-page { background-color: var(--bg-primary); }

.anon-page {
    --level-red: #ff5353; --level-yellow: #ffbd3e; --level-green: #43af68; --card-bg: #2a2a2a;
    width: 100%; background: var(--bg-primary); color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 100px 0 0; margin: 0; position: relative; min-height: auto;
}
.anon-page::before,
.anon-page::after { content: none !important; }
.anon-page img {
    -webkit-user-select: none !important; -moz-user-select: none !important;
    -ms-user-select: none !important; user-select: none !important;
    -webkit-user-drag: none !important; -khtml-user-drag: none !important;
    -moz-user-drag: none !important; -o-user-drag: none !important;
    user-drag: none !important; -webkit-touch-callout: none !important;
}

.anon-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px 20px; display: block; }
.anon-article { padding-top: 0; }
.anon-article__head { background: var(--card-bg); border-radius: 12px; padding: 26px 28px; margin: 0 0 20px; }
.anon-article__head h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; line-height: 1.2;
    color: #ffffff; text-transform: uppercase; letter-spacing: 1.5px;
    margin: 0 0 10px; padding: 0; text-align: left;
    overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.anon-article__head .anon-article__subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px; font-weight: 500; line-height: 1.5;
    color: rgba(230, 230, 235, 0.85); letter-spacing: 0.2px;
    margin: 0 0 16px; text-align: left;
}
.anon-article__head p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--text-secondary); }
.anon-article__head p:last-child { margin: 0; }

.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 32px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.ts-btn-secondary {
    background: transparent;
    border: 1px solid #555555;
    color: #e0e0e0 !important;
}
.ts-btn-secondary:hover {
    background: #333333;
    border-color: #777777;
    color: #ffffff !important;
}
.ts-btn:active {
    transform: translateY(1px);
}

.heatmap-back-btn-wrap {
    margin-top: 30px;
    width: 100%;
}

.stat-heatmap { background: var(--card-bg); border-radius: 12px; padding: 24px 24px 22px; margin: 0 0 20px; }
.stat-heatmap__head { margin: 0 0 18px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.stat-heatmap__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px; font-weight: 800; color: #ffffff; letter-spacing: 0.2px;
    margin: 0 0 6px; line-height: 1.2; text-align: center; max-width: 100%;
}
.stat-heatmap__subtitle {
    margin: 0 auto; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary);
    max-width: 640px; width: 100%; text-align: center; box-sizing: border-box;
}
.stat-heatmap__hint {
    margin: 10px auto 0; font-size: 12.5px; line-height: 1.5; color: #7a7a7a;
    max-width: 640px; width: 100%; text-align: center; box-sizing: border-box;
}
.stat-heatmap__scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 4px 6px 4px 4px; text-align: center; }
.stat-heatmap__grid { display: inline-block; box-sizing: border-box; text-align: left; }
.stat-heatmap__row { display: flex; gap: 3px; margin-bottom: 3px; }
.stat-heatmap__row:last-child { margin-bottom: 0; }
.stat-heatmap__row--head { margin-bottom: 6px; }
.stat-heatmap__cell {
    flex: 0 0 auto; width: 24px; height: 24px; border-radius: 3px;
    background: rgba(255, 255, 255, 0.04); cursor: pointer;
    transition: outline-color 0.15s ease; -webkit-tap-highlight-color: transparent;
    outline: 2px solid transparent; outline-offset: -1px;
}
.stat-heatmap__cell:hover, .stat-heatmap__cell:active {
    outline-color: rgba(255, 83, 83, 0.85); z-index: 3; position: relative;
}
.stat-heatmap__cell--l0 { background: rgba(255, 255, 255, 0.05); }
.stat-heatmap__cell--l1 { background: rgba(74, 159, 212, 0.22); }
.stat-heatmap__cell--l2 { background: rgba(74, 159, 212, 0.42); }
.stat-heatmap__cell--l3 { background: rgba(74, 159, 212, 0.62); }
.stat-heatmap__cell--l4 { background: rgba(74, 159, 212, 0.82); }
.stat-heatmap__cell--l5 { background: rgba(74, 159, 212, 1); }
.stat-heatmap__cell--date {
    flex: 0 0 auto; width: 78px; height: 24px; background: transparent; color: #888;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px; font-weight: 500; display: flex; align-items: center;
    justify-content: flex-end; padding-right: 8px; cursor: default; border-radius: 0; outline: none;
}
.stat-heatmap__cell--date:hover, .stat-heatmap__cell--date:active { outline-color: transparent; }
.stat-heatmap__cell--hour {
    flex: 0 0 auto; width: 24px; height: 18px; background: transparent; color: #888;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px; font-weight: 600; display: flex; align-items: center;
    justify-content: center; cursor: default; border-radius: 0; outline: none;
}
.stat-heatmap__cell--hour:hover, .stat-heatmap__cell--hour:active { outline-color: transparent; }
.stat-heatmap__cell--corner { flex: 0 0 auto; width: 78px; height: 18px; background: transparent; cursor: default; border-radius: 0; outline: none; }
.stat-heatmap__cell--corner:hover, .stat-heatmap__cell--corner:active { outline-color: transparent; }
.stat-heatmap__legend { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12px; color: #888; }
.stat-heatmap__legend-text { color: #888; }
.stat-heatmap__legend-cells { display: flex; gap: 3px; }
.stat-heatmap__legend-cell { width: 16px; height: 16px; border-radius: 3px; }
.stat-heatmap__empty { text-align: center; color: #888; padding: 30px 10px 10px; font-size: 14px; }

.anon-page .random-blocks-grid .button-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
}
.anon-page .random-blocks-grid .button-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
.anon-page .random-blocks-grid .button-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}
.anon-page .random-blocks-grid .button-link {
    margin-top: auto;
}

.stat-bar-tooltip {
    position: fixed; z-index: 99999; background: #2a2a2a; border: none; border-radius: 8px;
    padding: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); color: #ffffff;
    font-size: 13px; line-height: 1.45; pointer-events: none; opacity: 0;
    transition: opacity 0.12s ease-out; white-space: nowrap;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden; -webkit-user-select: none; user-select: none;
    top: 0; left: 0; max-width: calc(100vw - 16px);
}
.stat-bar-tooltip.is-visible { opacity: 1; }
.stat-bar-tooltip__title { color: #ffffff; font-weight: 700; letter-spacing: 0.2px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.stat-bar-tooltip__value { color: #7bb8e0; font-weight: 600; padding: 10px 14px; }

.stat-locked { position: relative; display: block; width: 100%; padding: 0; margin: 0 0 20px; background: transparent; pointer-events: auto; opacity: 1; }
.stat-locked__inner {
    position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 40px; align-items: center; padding: 32px 36px;
    background: var(--card-bg); border-radius: 12px; box-sizing: border-box;
}
.stat-locked__gif { display: flex; justify-content: center; align-items: center; width: 100%; pointer-events: none; user-select: none; }
.stat-locked__gif img { display: block; width: auto; max-width: 100%; max-height: 220px; height: auto; object-fit: contain; }
.stat-locked__content { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.stat-locked__title { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 28px; font-weight: 800; color: #ffffff; line-height: 1.15; letter-spacing: 0.2px; }
.stat-locked__text { margin: 0; color: #b8b8b8; font-size: 0.98rem; line-height: 1.6; font-weight: 400; letter-spacing: 0.1px; }
.stat-locked__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 52px; padding: 0 32px; margin-top: 6px;
    background: #0073aa; border: 1px solid #0073aa; border-radius: 6px;
    color: #ffffff; font-weight: 600; font-size: 0.98rem; letter-spacing: 0.3px;
    text-decoration: none; box-sizing: border-box; cursor: pointer; user-select: none;
    transition: background 0.2s, border-color 0.2s, transform 0.1s; align-self: stretch;
}
.stat-locked__btn:hover { background: #005177; border-color: #005177; color: #ffffff; }
.stat-locked__btn:active { transform: translateY(1px); }
.stat-locked__btn svg { width: 22px; height: 22px; flex-shrink: 0; fill: currentColor; color: inherit; display: block; }

@media (max-width: 900px) {
    .anon-content { padding: 0 20px 16px; }
    .anon-article__head { padding: 22px 22px; }
    .anon-article__head h1 { text-align: center; font-size: clamp(26px, 5.2vw, 34px); letter-spacing: 1px; }
    .anon-article__head .anon-article__subtitle { text-align: center; font-size: 16px; margin-bottom: 24px; }
    .anon-article__head p { text-align: center; }
    .stat-locked__inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
    .stat-locked__gif img { max-height: 180px; }
    .stat-locked__content { align-items: stretch; text-align: center; }
    .stat-locked__title { font-size: 24px; }
    .stat-heatmap { padding: 20px 18px 18px; }
    .stat-heatmap__title { font-size: 18px; }
    .stat-heatmap__cell { width: 20px; height: 20px; }
    .stat-heatmap__cell--date { width: 68px; height: 20px; font-size: 10.5px; padding-right: 6px; }
    .stat-heatmap__cell--hour { width: 20px; height: 16px; font-size: 9.5px; }
    .stat-heatmap__cell--corner { width: 68px; height: 16px; }

    .anon-page .random-blocks-grid .button-card { min-height: 310px; }
}

@media (max-width: 600px) {
    .anon-page { padding: 90px 0 0; }
    .anon-content { padding: 0 14px 14px; }
    .anon-article__head { padding: 20px 20px; border-radius: 10px; margin: 0 0 16px; }
    .anon-article__head h1 { font-size: clamp(24px, 6.5vw, 30px); letter-spacing: 0.8px; margin-bottom: 10px; }
    .anon-article__head .anon-article__subtitle { font-size: 15px; margin-bottom: 22px; line-height: 1.5; }
    .anon-article__head p { font-size: 15px; line-height: 1.7; }
    .stat-heatmap { padding: 18px 14px 16px; border-radius: 10px; margin: 0 0 16px; }
    .stat-heatmap__title { font-size: 17px; }
    .stat-heatmap__subtitle { font-size: 12.5px; }
    .stat-heatmap__hint { font-size: 12px; }
    .stat-heatmap__cell { width: 16px; height: 16px; border-radius: 2.5px; }
    .stat-heatmap__cell--date { width: 56px; height: 16px; font-size: 9.5px; padding-right: 5px; }
    .stat-heatmap__cell--hour { width: 16px; height: 14px; font-size: 8.5px; }
    .stat-heatmap__cell--corner { width: 56px; height: 14px; }
    .stat-heatmap__row { gap: 2px; margin-bottom: 2px; }
    .stat-heatmap__row--head { margin-bottom: 4px; }
    .stat-heatmap__legend-cell { width: 13px; height: 13px; }
    .stat-locked { margin: 0 0 16px; }
    .stat-locked__inner { padding: 24px 18px; gap: 20px; }
    .stat-locked__gif img { max-height: 160px; }
    .stat-locked__title { font-size: 20px; }
    .stat-locked__text { font-size: 0.92rem; }
    .stat-locked__btn { min-height: 48px; padding: 0 24px; font-size: 0.92rem; }
    .stat-locked__btn svg { width: 20px; height: 20px; }

    .anon-page .random-blocks-grid .button-card { min-height: auto; }
    .anon-page .random-blocks-grid .button-description { -webkit-line-clamp: 4; }
}

@media (max-width: 480px) {
    .anon-article__head h1 { font-size: 22px; letter-spacing: 0.6px; }
    .anon-article__head .anon-article__subtitle { font-size: 14.5px; margin-bottom: 20px; }
}