/* Generated by scripts/build-discovery-stories-styles.js; edit the source styles. */
/* /club/critical.css (Optimized) */
:root {
    --primary-bg: #FDF6F8;
    /* Match the character profile outside the white 450px content column. */
    --app-outer-background:
        linear-gradient(90deg, rgba(255, 47, 125, 0.08), rgba(246, 161, 26, 0.06) 45%, rgba(29, 155, 240, 0.06)),
        #f6f7f9;
    --app-page-background:
        linear-gradient(to right,
            transparent max(0px, calc((100% - 450px) / 2)),
            #fff max(0px, calc((100% - 450px) / 2)),
            #fff calc((100% + 450px) / 2),
            transparent calc((100% + 450px) / 2)),
        var(--app-outer-background);

    --secondary-bg: #FFFFFF;
    --primary-accent: #D8648E;
    --secondary-accent: #EFA4BE;
    --button-primary-bg: #F657B5;
    --button-primary-hover-bg: #EB45A9;
    --button-primary-text: #FFFFFF;
    --button-secondary-bg: rgba(247, 244, 247, 0.88);
    --button-secondary-hover-bg: rgba(240, 236, 240, 0.92);
    --button-secondary-text: #54515a;
    --modal-input-bg: rgba(247, 244, 247, 0.86);
    --modal-input-text: #2a2328;
    --modal-placeholder-text: #7d747b;
    --modal-label-text: #312a30;
    --modal-label-size: 13px;
    --modal-label-weight: 800;
    --modal-input-focus-ring: rgba(246, 87, 181, 0.12);
    --modal-close-color: #6b7280;
    --modal-close-hover-bg: rgba(31, 41, 55, 0.08);
    --modal-close-hover-color: #374151;
    --modal-surface-bg: #ffffff;
    --modal-surface-shadow: 0 18px 42px rgba(41, 25, 35, 0.14);
    --settings-modal-bg: #ffffff;
    --settings-modal-shadow: var(--modal-surface-shadow);
    --text-primary: #2A2328;
    --text-secondary: #6E626A;
    --text-light: #FFFFFF;
    --border-color: #E8D9E1;
    --modal-surface-radius: 12px;
    --modal-control-radius: 8px;
    --top-inline-panel-height: 56px;
    --ui-chevron-size: 8px;
    --ui-chevron-stroke: 2px;
    --ui-chevron-color: var(--text-secondary);
    --app-content-inline-padding: 16px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--app-page-background);
    color: var(--text-primary);
}

/* The home header is mounted by a module after the HTML has painted. Keep
   its first-row height in the document flow until the real header and its
   auto-hide spacer are ready. */
#appHeaderRoot[data-auto-hide="true"] {
    min-height: 44px;
}

/* Prevent the dynamically mounted bottom navigation from flashing unstyled
   while the non-critical stylesheet is loading. */
.app-bottom-nav {
    position: fixed;
    right: 50%;
    bottom: 0;
    visibility: hidden;
    transform: translateX(50%);
}

.top-chevron,
.category-title-link::after {
    content: '';
    display: inline-block;
    width: var(--ui-chevron-size);
    height: var(--ui-chevron-size);
    border-top: var(--ui-chevron-stroke) solid currentColor;
    border-right: var(--ui-chevron-stroke) solid currentColor;
    color: var(--ui-chevron-color);
    transform: rotate(45deg);
    flex: 0 0 auto;
    box-sizing: border-box;
}

body.home-page:not(.chat-active) {
    background: var(--app-page-background);
}

.container {
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    padding: 0 var(--app-content-inline-padding);
    box-sizing: border-box;
    background-color: var(--secondary-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.4s ease-in-out;
}

body.home-page:not(.chat-active) > .container {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 520px) {
    html {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.home-page:not(.chat-active) {
        background: var(--secondary-bg);
    }
}

/* --- Setup Screen (Critical Styles ONLY) --- */
header h1 {
    color: var(--primary-accent);
    text-align: center;
    margin: 0;
}
header p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}
h2, h3 {
    color: var(--text-primary);
    /*border-bottom: 1px solid var(--border-color);*/
    padding-bottom: 10px;
    font-weight: 500;
}
.error-message, .warning-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}
.error-message { background-color: #ffdddd; color: #d8000c; border: 1px solid #d8000c; }
.warning-message { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

.cast-type-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0 -2px 22px;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.cast-type-selector button {
    position: relative;
    flex: 1;
    min-height: 42px;
    padding: 8px 10px 12px;
    border: none;
    background-color: transparent;
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    border-radius: 0;
}

.cast-type-selector button.active {
    background-color: transparent;
    color: var(--button-primary-bg);
    border: none;
    box-shadow: none;
}

.cast-type-selector button.active::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 4px;
    border-radius: 0;
    background: var(--button-primary-bg);
}

.category-section {
    margin-bottom: 16px;
}

.category-title {
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 1.1em;
    border-color: var(--border-color);
    font-weight: 700;
}

.category-title-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.category-title-link::after {
    margin-left: 2px;
}

.updated-casts-title { display: inline-flex; align-items: center; gap: 6px; }
.updated-casts-info-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%; background: transparent; color: rgba(100, 116, 139, 0.88); box-shadow: none; line-height: 1; cursor: pointer; }
.updated-casts-info-button:focus-visible { outline: none; }
.updated-casts-info-icon { display: block; width: 15px; height: 15px; }
#topUpdatedCastsSection, #feUpdatedCastsSection { position: relative; }
.updated-casts-info-popover { position: absolute; top: 26px; left: 10px; z-index: 30; width: min(300px, calc(100vw - 32px)); }
.updated-casts-info-card { position: relative; padding: 14px 54px 14px 14px; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 10px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.updated-casts-info-text { margin: 0; color: var(--text-primary); font-size: 0.82rem; font-weight: 600; line-height: 1.55; }
.updated-casts-info-close { position: absolute; top: 6px; right: 7px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--text-secondary); font-size: 0; line-height: 1; cursor: pointer; box-sizing: border-box; flex-shrink: 0; }

.character-slider-container {
    overflow-x: auto;
    padding-bottom: 10px;
    margin-left: -5px;
    margin-right: -5px;
    -webkit-overflow-scrolling: touch;
}

.character-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari用の設定 */
}

.character-slider { display: flex; flex-wrap: nowrap; gap: 15px; padding: 8px 10px; }

.pickup-grid-container { overflow-x: visible; margin-left: 0; margin-right: 0; }
.pickup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 8px 0; }
.pickup-grid .character-card,
.pickup-grid .skeleton-card { width: 100%; height: auto; aspect-ratio: 16 / 25; min-width: 0; }
.pickup-grid .card-content { padding: 8px; }

.character-card {
    flex-shrink: 0;
    width: 160px;
    height: 250px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--text-light);
    box-shadow: none;
}

.card-special-context-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background-color: rgba(198, 40, 40, 0.85);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.card-top-right-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.character-card .card-top-right-badges .card-special-context-tag,
.character-card .card-top-right-badges .card-level-badge,
.character-card .card-top-right-badges .card-chat-count-badge,
.character-card .card-top-right-badges .card-group-dedicated-badge,
.character-card .card-top-right-badges .card-emotion-image-badge {
    position: static;
}

.card-group-dedicated-badge {
    letter-spacing: 0;
}

.card-dedicated-situation-badge {
    letter-spacing: 0;
    font-weight: 700;
}

.card-group-dedicated-badge .material-icons {
    font-size: 1.1em;
}

.card-level-badge--top-left {
    top: 8px;
    right: auto;
    left: 8px;
}

.character-card.has-top-left-level-badge .card-language-tag {
    top: 34px;
}

.custom-situation-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.custom-situation-action-button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 6px 14px rgba(31, 34, 48, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-situation-action-button:hover {
    background: rgba(255, 255, 255, 0.94);
    color: #384152;
}

.custom-situation-action-button--danger {
    color: #b42338;
}

.custom-situation-action-button--danger:hover {
    background: rgba(255, 245, 247, 0.96);
    color: #9f1d32;
}

.custom-situation-action-button .material-icons {
    font-size: 17px;
}

.card-chat-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.72em;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    white-space: nowrap;
}

.card-chat-count-badge .material-icons {
    font-size: 1.1em;
    line-height: 1;
}

.card-chat-count-badge-count {
    font-weight: 700;
}

.card-emotion-image-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    min-height: 16px;
    color: white;
    font-size: 13px;
    line-height: 1;
    text-align: center;
}

/* --- Language Tag (Emoji Version) --- */
.card-language-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: 24px; /* 絵文字を大きく表示 */
    line-height: 1;  /* 行の高さを調整 */
    background: transparent; /* 背景を透明に */
    border: none;
    text-shadow: 0 0 4px rgba(0,0,0,0.4); /* 絵文字に少し影をつけて立体感を出す */
}

.character-card img.cast-photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.character-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transition: all 0.3s ease;
}

.character-card.no-image { background: linear-gradient(145deg, var(--primary-accent), var(--secondary-accent)); align-items: center; justify-content: center; }
.character-card.no-image::before { background: none; }
.character-card.selected { outline: 4px solid var(--primary-accent); box-shadow: none; transform: none; z-index: 2; }
.card-content { position: relative; z-index: 1; padding: 10px; }
.character-card .avatar { width: 50px; height: 50px; font-size: 1.8em; border-radius: 50%; background-color: rgba(255,255,255,0.2); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 3px solid #fff; margin-bottom: 10px; }
.character-card.has-image .avatar { display: none; }
.character-card .character-card-title { margin: 0 0 2px 0; font-size: 0.9em; font-weight: 700; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
.profile-meta { font-size: 0.7em; margin-bottom: 5px; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
.card-situation-title { box-sizing: border-box; max-width: 100%; margin-top: 5px; padding: 5px 7px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 8px; background-color: rgba(255, 255, 255, 0.18); color: var(--text-light); font-size: 0.68em; font-weight: 700; line-height: 1.35; text-shadow: 1px 1px 3px rgba(0,0,0,0.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.card-situation-title-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden; }
.hobby-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.hobby-tags span { background-color: rgba(255, 255, 255, 0.2); color: var(--text-light); padding: 2px 6px; font-size: 0.6em; border-radius: 15px; backdrop-filter: blur(2px); }

.custom-cast-button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cfd4dc;
    background-color: #ffffff;
    color: #2f3440;
    white-space: nowrap;
    cursor: pointer;
}

.fe-custom-cast-card-shell {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    height: 250px;
}

.fe-custom-cast-card-shell .character-card {
    width: 100%;
    height: 100%;
}

.fe-custom-cast-edit-button {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #4b5563;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(31, 34, 48, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fe-custom-cast-edit-button:hover {
    background: rgba(255, 255, 255, 0.94);
    color: #384152;
}

.fe-custom-cast-edit-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.fe-custom-cast-edit-button .material-icons {
    font-size: 18px;
    line-height: 1;
}

/* --- Modals (Critical Styles for User Name Entry) --- */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background: var(--modal-surface-bg);
    padding: 5px 30px;
    border-radius: var(--modal-surface-radius);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--modal-surface-shadow);
    border: none;
}

.modal-content h3,
.modal-content .modal-title { text-align: center; color: var(--primary-accent); margin-top: 0; margin-bottom: 25px; padding-bottom: 10px; font-size: 1.4em; font-weight: 500; border-bottom: none; }
.modal-content label { display: block; margin-top: 15px; margin-bottom: 5px; font-size: var(--modal-label-size); font-weight: var(--modal-label-weight); line-height: 1.4; color: var(--modal-label-text); }
.modal-content .form-control { width: 100%; min-height: 44px; padding: 11px 12px; border-radius: var(--modal-control-radius); border: 1px solid transparent; background: var(--modal-input-bg); color: var(--modal-input-text); font-size: 14px; line-height: 1.5; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; }
.modal-content .form-control:focus { outline: none; box-shadow: none; }
.modal-content .form-control::placeholder { color: var(--modal-placeholder-text); opacity: 1; }
.modal-content textarea { min-height: 8px; resize: vertical; }
.modal-buttons { display: flex; justify-content: flex-end; gap: 15px; margin-top: 30px; }
.modal-button { box-sizing: border-box; flex-grow: 1; min-height: 44px; padding: 12px 20px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 14px; letter-spacing: 0; }
.modal-button.primary { background: var(--button-primary-bg); color: var(--button-primary-text); border: none; box-shadow: 0 8px 18px rgba(246, 87, 181, 0.2); }
.modal-button.primary:hover { background: var(--button-primary-hover-bg); box-shadow: 0 9px 20px rgba(246, 87, 181, 0.28); }
.modal-button.secondary { background: var(--button-secondary-bg); color: var(--button-secondary-text); border: none; }
.modal-button.secondary:hover { background: var(--button-secondary-hover-bg); }
.modal-close-button { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--modal-close-color); font-size: 0; line-height: 1; cursor: pointer; opacity: 0.7; transition: background 0.2s, color 0.2s, opacity 0.2s; flex-shrink: 0; }
.modal-close-button:hover { background: var(--modal-close-hover-bg); color: var(--modal-close-hover-color); opacity: 1; }
.modal-close-icon { flex-shrink: 0; pointer-events: none; display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.settings-modal-content, .custom-cast-modal-content, .chat-action-settings-modal-content { display: flex; flex-direction: column; border: none; border-radius: var(--modal-surface-radius); background: var(--modal-surface-bg); box-shadow: var(--modal-surface-shadow); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); }
.settings-modal-content { padding: 0; overflow: hidden; }
.modal-content .error-message { padding: 8px; font-size: 0.9em; margin-bottom: 0; }

/* --- Name Entry Modal UI Improvement (Critical) --- */
.name-entry-modal-content { padding: 0; overflow: hidden; border-top: none; }
.name-entry-body { padding: 30px 25px 20px 25px; }
.name-entry-body #userNameInput { text-align: center; font-size: 1.2em; padding: 15px; font-weight: bold; }
.name-entry-body .input-note { text-align: center; font-size: 0.8em; color: var(--text-secondary); margin-top: 10px; margin-bottom: 0; }
.name-entry-modal-content .modal-buttons { margin-top: 0; padding: 0 25px 25px 25px; gap: 10px; }
.modal-button.primary { position: relative; overflow: visible; }
.free-badge { position: absolute; top: -10px; right: -12px; background-color: white; color: var(--primary-accent); padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.15); transform: rotate(10deg); border: 1px solid var(--secondary-accent); }

#characterSelectionSection {
    padding-bottom: 20px;
}

#setupSection.top-notification-banner-hidden {
    padding-top: 10px;
}

.top-notification-banner {
    background-color: #F657B5;
    font-size: 14px;
    color: white;                         /* 白色の文字 */
    padding: 8px 15px;                   /* 内側の余白 */
    margin-top: 10px;
    text-align: center;                   /* 文字を中央揃えに */
    font-weight: bold;                    /* 文字を太字に */
    border-radius: 8px;                   /* 角を控えめに丸くする */
    margin-bottom: 20px;                  /* バナーとタイトルの間の余白 */
    box-shadow: 0 4px 10px rgba(246, 87, 181, 0.3); /* 少し影を付けて立体感を出す */
    visibility: visible;
}

.top-notification-banner.is-state-pending {
    display: block;
    visibility: hidden;
}

/* Returning visitors already know the top experience. Decide this before
   first paint so hiding the banner later does not move the page upward. */
html.lenoas-returning-visitor-at-load .top-notification-banner.is-state-pending {
    display: none;
}

.top-notification-banner-subtitle {
    margin-top: 4px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.55;
}

/* /public/critical.css に追加 */

/* スケルトンスクリーン用のスタイル */
.skeleton-card {
    flex-shrink: 0;
    width: 160px;
    height: 250px;
    border-radius: 12px;
    background-color: #e0e0e0; /* ベースのグレー */
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    /* 光が流れるようなアニメーション効果 */
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 150%;
    }
}
/* /public/critical.css に追記 */

/* --- Ranking Badge Styles --- */
.card-ranking-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
    line-height: 1;
    color: white;
    background: rgba(84, 112, 153, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.card-ranking-badge.rank-1 {
    background: rgba(232, 174, 26, 0.92);
}
.card-ranking-badge.rank-2 {
    background: rgba(139, 149, 167, 0.92);
}
.card-ranking-badge.rank-3 {
    background: rgba(183, 115, 51, 0.92);
}
.card-ranking-badge.rank-4 {
    background: rgba(87, 150, 205, 0.9);
}
.card-ranking-badge.rank-5 {
    background: rgba(102, 128, 173, 0.9);
}


/* One continuous shadow for the column, including separate headers and footers.
   The transparent layer leaves page and chat backgrounds untouched. */
@media (min-width: 521px) {
    /* Override the older background embedded in server-rendered list pages. */
    body.situation-seo-page:is(.situation-ranking-page, .situation-group-page) {
        background: var(--app-page-background);
    }

    /* Discovery headers omit --home; let the outer background and shadow show through. */
    body:is(.home-page, .discovery-page, .ranking-new-page, .feed-page,
        .game-list-page, .timeline-page, .lab-page, .life-page,
        .situation-remix-page, .search-page, .school-life-page,
        .situation-ranking-page, .situation-group-page):not(.chat-active):not(.nightclub-page) .app-header {
        background: transparent;
    }

    body:is(.home-page, .discovery-page, .ranking-new-page, .feed-page,
        .game-list-page, .timeline-page, .lab-page, .life-page,
        .situation-remix-page, .search-page, .school-life-page,
        .situation-ranking-page, .situation-group-page):not(.chat-active):not(.nightclub-page)::before {
        content: '';
        position: fixed;
        top: 0;
        bottom: 0;
        left: calc(50% - 225px);
        width: 450px;
        box-shadow: 0 18px 46px rgba(20, 20, 20, 0.06);
        pointer-events: none;
        z-index: 0;
    }
}

/* Shared silent loading surfaces. Labels remain available to screen readers. */
.loading-placeholder {
    display: block;
    width: 100%;
    min-width: 0;
    height: 76px;
    border-radius: 4px;
    background:
        linear-gradient(#e0e0e0, #e0e0e0) 0 8px / 58% 12px no-repeat,
        linear-gradient(#e0e0e0, #e0e0e0) 0 32px / 100% 12px no-repeat,
        linear-gradient(#e0e0e0, #e0e0e0) 0 56px / 82% 12px no-repeat;
}
.loading-placeholder.loading-placeholder--inline {
    display: inline-block;
    width: 64px;
    height: 12px;
    vertical-align: middle;
    background: #e0e0e0;
}

.audience-switch {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.audience-switch-summary {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background-color: transparent;
    color: var(--audience-switch-summary-text, var(--audience-switch-text, var(--text-primary, #2A2328)));
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.audience-switch-summary:hover {
    background-color: #F7F7F8;
}

.audience-switch-summary:focus-visible {
    outline: 2px solid rgba(216, 100, 142, 0.28);
    outline-offset: 1px;
}

.audience-switch-summary::-webkit-details-marker {
    display: none;
}

.audience-switch-summary::after {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
    transition: transform 0.2s ease;
}

.audience-switch[open] .audience-switch-summary::after {
    transform: translateY(2px) rotate(225deg);
}

.audience-switch[open] .audience-switch-summary {
    background-color: #F3F4F6;
    border-color: transparent;
    color: var(--audience-switch-text, var(--text-primary, #2A2328));
}

.audience-switch-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 110;
    min-width: 132px;
    padding: 6px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 10px 24px rgba(42, 35, 40, 0.12);
}

.audience-switch-item {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 7px;
    color: var(--audience-switch-text, var(--text-primary, #2A2328));
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.audience-switch-item:hover {
    background-color: #F3F4F6;
    color: var(--audience-switch-text, var(--text-primary, #2A2328));
}

.audience-switch-item.is-current {
    color: var(--audience-switch-text, var(--text-primary, #2A2328));
    background-color: transparent;
}

:root{
    --primary-bg: #FDF6F8;
    /* Match the character profile outside the white 450px content column. */
    --app-outer-background:
        linear-gradient(90deg, rgba(255, 47, 125, 0.08), rgba(246, 161, 26, 0.06) 45%, rgba(29, 155, 240, 0.06)),
        #f6f7f9;
    --app-page-background:
        linear-gradient(to right,
            transparent max(0px, calc((100% - 450px) / 2)),
            #fff max(0px, calc((100% - 450px) / 2)),
            #fff calc((100% + 450px) / 2),
            transparent calc((100% + 450px) / 2)),
        var(--app-outer-background);

    --secondary-bg: #FFFFFF;
    --primary-accent: #D8648E;
    --secondary-accent: #EFA4BE;
    --button-primary-bg: #F657B5;
    --button-primary-hover-bg: #EB45A9;
    --button-primary-text: #FFFFFF;
    --button-secondary-bg: rgba(247, 244, 247, 0.88);
    --button-secondary-hover-bg: rgba(240, 236, 240, 0.92);
    --button-secondary-text: #54515a;
    --modal-input-bg: rgba(247, 244, 247, 0.86);
    --modal-input-text: #2a2328;
    --modal-placeholder-text: #7d747b;
    --modal-label-text: #312a30;
    --modal-label-size: 13px;
    --modal-label-weight: 800;
    --modal-input-focus-ring: rgba(246, 87, 181, 0.12);
    --modal-close-color: #6b7280;
    --modal-close-hover-bg: rgba(31, 41, 55, 0.08);
    --modal-close-hover-color: #374151;
    --modal-surface-bg: #ffffff;
    --modal-surface-shadow: 0 18px 42px rgba(41, 25, 35, 0.14);
    --settings-modal-bg: #ffffff;
    --settings-modal-shadow: var(--modal-surface-shadow);
    --text-primary: #2A2328;
    --text-secondary: #6E626A;
    --text-light: #FFFFFF;
    --border-color: #E8D9E1;
    --modal-surface-radius: 12px;
    --modal-control-radius: 8px;
    --top-inline-panel-height: 56px;
    --ui-chevron-size: 8px;
    --ui-chevron-stroke: 2px;
    --ui-chevron-color: var(--text-secondary);
    --app-content-inline-padding: 16px;
}
.dress-up-feedback-button:hover,
.dress-up-feedback-button.is-active{
    border-color: rgba(194, 61, 123, 0.42);
    background: rgba(255, 239, 247, 0.96);
    color: #9f2f65;
}
[hidden]{
    display: none !important;
}
body{
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--app-page-background);
    color: var(--text-primary);
}
@media (max-width: 520px){
html{
        overflow-x: hidden;
    }
}
header h1{
    color: var(--primary-accent);
    text-align: center;
    margin: 0;
}
header p{
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}
h2,
h3{
    color: var(--text-primary);
    /*border-bottom: 1px solid var(--border-color);*/
    padding-bottom: 10px;
    margin-bottom: 0;
    font-weight: 500;
}
@keyframes search-tag-directory-loading{
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}
.header-usage-guide-action{
    flex: 0 0 auto;
}
.header-notification-button{
    position: relative;
    padding: 0;
    cursor: pointer;
}
.header-notification-icon{
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}
.header-usage-guide-action.has-unread-usage-guide-updates .header-notification-button::after{
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ef4444;
    box-sizing: border-box;
}
.usage-guide-entry-icon .material-icons{
    font-size: 22px;
}
.chatted-sort-buttons{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.chatted-sort-dropdown{
    position: relative;
}
.chatted-sort-dropdown .tag-filter-button.chatted-sort-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #111;
    font-weight: 700;
    text-align: center;
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
}
.chatted-sort-dropdown .tag-filter-button.chatted-sort-toggle:hover,
.chatted-sort-dropdown .tag-filter-button.chatted-sort-toggle.active{
    border: none;
    background: transparent;
    color: #111;
    box-shadow: none;
}
.chatted-sort-chevron{
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}
.chatted-sort-toggle[aria-expanded="true"] .chatted-sort-chevron{
    transform: rotate(-135deg) translateY(-1px);
}
.chatted-sort-menu{
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.chatted-sort-menu[hidden]{
    display: none;
}
.chatted-sort-option{
    box-sizing: border-box;
    min-height: 36px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.chatted-sort-option.active{
    color: var(--text-primary);
}
.character-slider-container{
    overflow-x: auto;
    padding-bottom: 10px;
    margin-left: -5px;
    margin-right: -5px;
    -webkit-overflow-scrolling: touch;
}
.character-slider-container::-webkit-scrollbar{
    display: none; /* Chrome, Safari用の設定 */
}
.character-slider{
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 8px 10px;
}
#castCategoriesContainer .character-slider{
    padding-left: 5px;
}
.top-date-feature-slider{
    gap: 12px;
}
.top-date-feature-card{
    flex: 0 0 160px;
    width: 160px;
    height: 250px;
    border-radius: 12px;
    clip-path: inset(0 round 12px);
}
.top-date-feature-card img.cast-photo,
.top-updated-cast-card img.cast-photo{
    border-radius: inherit;
    filter: blur(3px);
    transform: scale(1.04);
}
.top-date-feature-skeleton{
    flex: 0 0 160px;
    width: 160px;
    height: 250px;
    border-radius: 12px;
}
.top-date-feature-card .card-content{
    padding: 10px;
}
.top-date-feature-card .card-situation-title{
    margin-top: 6px;
    font-size: 0.68em;
}
.top-dedicated-situation-beta-card img.cast-photo{
    filter: blur(3px);
    transform: scale(1.04);
}
.top-dedicated-situation-beta-card .profile-meta{
    font-size: 0.68em;
    line-height: 1.25;
}
.top-dedicated-situation-beta-card .card-situation-title{
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}
.top-dedicated-situation-group-card .dedicated-group-member-faces{
    display: flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 4px;
    padding-left: 2px;
}
.top-dedicated-situation-group-card .dedicated-group-member-face,
.top-dedicated-situation-group-card .dedicated-group-member-more{
    box-sizing: border-box;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-left: -5px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}
.top-dedicated-situation-group-card .dedicated-group-member-face:first-child{
    margin-left: 0;
}
.top-dedicated-situation-group-card img.dedicated-group-member-face{
    display: block;
    object-fit: cover;
    object-position: center top;
}
.top-dedicated-situation-group-card .dedicated-group-member-face--initial,
.top-dedicated-situation-group-card .dedicated-group-member-more{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 42, 48, 0.82);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.top-dedicated-situation-group-card .dedicated-group-member-more,
.top-group-combination-face.top-group-combination-face--more{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #5f5b64;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}
.top-dedicated-situation-group-card .dedicated-group-series-tag{
    margin: -1px 0 2px;
    overflow: hidden;
    color: #fff;
    font-size: 0.64em;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.72);
    white-space: nowrap;
}
.top-group-combination-block:not([hidden]) + .top-group-combination-block:not([hidden]){
    margin-top: 16px;
}
.top-group-combination-slider{
    align-items: stretch;
    gap: 12px;
}
.top-group-combination-card{
    box-sizing: border-box;
    display: flex;
    position: relative;
    flex: 0 0 160px;
    width: 160px;
    height: 250px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px;
    overflow: hidden;
    border-radius: 12px;
    background: #f3e8ee;
    color: var(--text-light);
    text-align: left;
    text-decoration: none;
    isolation: isolate;
}
.top-group-combination-backdrop{
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    overflow: hidden;
}
.top-group-combination-backdrop-image{
    display: block;
    min-width: 0;
    height: 100%;
    flex: 1 1 0;
    object-fit: cover;
    object-position: center top;
}
img.top-group-combination-backdrop-image{
    filter: blur(3px);
    transform: scale(1.04);
}
.top-group-combination-backdrop-image--empty{
    background: linear-gradient(150deg, #f7edf2, #eadbe3);
}
.top-group-combination-faces{
    display: flex;
    position: relative;
    z-index: 1;
    min-height: 48px;
    align-items: center;
    justify-content: flex-start;
}
.top-group-combination-face{
    box-sizing: border-box;
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin-left: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f3e8ee;
    box-shadow: 0 3px 9px rgba(42, 35, 40, 0.2);
    object-fit: cover;
    object-position: center top;
}
.top-group-combination-face:first-child{
    margin-left: 0;
}
.top-group-combination-faces--3 .top-group-combination-face{
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    margin-left: -9px;
}
.top-group-combination-faces--4 .top-group-combination-face,
.top-group-combination-faces--5 .top-group-combination-face{
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    margin-left: -9px;
}
.top-group-combination-faces--3 .top-group-combination-face:first-child,
.top-group-combination-faces--4 .top-group-combination-face:first-child,
.top-group-combination-faces--5 .top-group-combination-face:first-child{
    margin-left: 0;
}
.top-group-combination-face--initial{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 800;
}
.top-group-combination-names{
    box-sizing: border-box;
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 5px 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.68em;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.72);
    white-space: nowrap;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.top-group-combination-skeleton{
    flex: 0 0 160px;
    width: 160px;
    height: 250px;
    border-radius: 12px;
}
.top-group-date-beta-card{
    flex-basis: 160px;
    width: 160px;
    height: 250px;
    clip-path: inset(0 round 12px);
}
.top-group-date-beta-card img.cast-photo{
    border-radius: inherit;
    filter: blur(3px);
    transform: scale(1.04);
}
.top-group-date-beta-card .profile-meta{
    font-size: 0.68em;
    line-height: 1.25;
}
.pickup-grid .character-card,
.pickup-grid .skeleton-card{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 25;
    min-width: 0;
}
.pickup-grid .card-content{
    padding: 8px;
}
.character-card{
    flex-shrink: 0;
    width: 160px;
    height: 250px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--text-light);
    box-shadow: none;
}
.card-special-context-tag{
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background-color: rgba(198, 40, 40, 0.85);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.card-top-right-badges{
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.character-card .card-top-right-badges .card-special-context-tag,
.character-card .card-top-right-badges .card-level-badge,
.character-card .card-top-right-badges .card-chat-count-badge,
.character-card .card-top-right-badges .card-group-dedicated-badge,
.character-card .card-top-right-badges .card-emotion-image-badge{
    position: static;
}
.card-dedicated-situation-badge,
.card-group-dedicated-badge{
    letter-spacing: 0;
    font-weight: 700;
}
.character-card.has-top-left-level-badge .card-language-tag{
    top: 34px;
}
.custom-situation-action-button .material-icons{
    font-size: 17px;
}
.card-chat-count-badge{
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.72em;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    white-space: nowrap;
}
.card-chat-count-badge .material-icons{
    font-size: 1.1em;
    line-height: 1;
}
.card-chat-count-badge-count{
    font-weight: 700;
}
.card-continuous-situation-badge{
  gap: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.card-continuous-situation-icon{
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.card-continuous-situation-icon::before,
.card-continuous-situation-icon::after{
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
}
.card-continuous-situation-icon::before{
  top: 1px;
  right: 1px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  border-radius: 3px 3px 0 0;
}
.card-continuous-situation-icon::after{
  left: 1px;
  bottom: 1px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.card-emotion-image-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    min-height: 16px;
    color: white;
    font-size: 13px;
    line-height: 1;
    text-align: center;
}
.character-card img.cast-photo{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.character-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 12px;
}
.character-card.no-image{
    background: linear-gradient(145deg, var(--primary-accent), var(--secondary-accent));
    align-items: center;
    justify-content: center;
}
.character-card.no-image::before{
    background: none;
}
.character-card[data-static-card="true"]{
    cursor: pointer;
}
.character-card.selected{
    outline: 4px solid var(--primary-accent);
    box-shadow: none;
    transform: none;
    z-index: 2;
}
.card-content{
    position: relative;
    z-index: 1;
    padding: 10px;
}
.character-card .avatar{
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    color: white;
    display: none; /* ← デフォルトで非表示に変更 */
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid #fff;
    margin-bottom: 10px;
}
.character-card.has-image .avatar{
    display: none;
}
.character-card .character-card-title{
    margin: 0 0 2px 0;
    font-size: 0.9em;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.profile-meta{
    font-size: 0.7em;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.card-situation-title{
    box-sizing: border-box;
    max-width: 100%;
    margin-top: 5px;
    padding: 5px 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--text-light);
    font-size: 0.68em;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.card-situation-title-text{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100%;
    overflow: hidden;
}
.group-pair-theme-overlay .card-situation-title-text{
    -webkit-line-clamp: 1;
}
.new-situation-pair-panel .character-card{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 25;
    border-radius: 0;
    box-shadow: none;
}
.new-situation-pair-panel .character-card::before{
    border-radius: 0;
}
.new-situation-pair-panel .character-card .cast-photo{
    border-radius: 0;
}
.new-situation-pair-panel--cast .character-card{
    border-radius: 12px 0 0 12px;
}
.new-situation-pair-panel--cast .character-card::before{
    border-radius: 12px 0 0 12px;
}
.new-situation-pair-panel--cast .character-card .cast-photo{
    border-radius: 12px 0 0 12px;
}
.new-situation-pair-panel--scene .character-card{
    border-radius: 0 12px 12px 0;
}
.new-situation-pair-panel--scene .character-card::before{
    border-radius: 0 12px 12px 0;
}
.new-situation-pair-panel--scene .character-card .cast-photo{
    border-radius: 0 12px 12px 0;
}
.new-situation-scene-card .card-content{
    width: 100%;
    box-sizing: border-box;
}
.new-situation-scene-card .card-situation-title{
    margin-top: 0;
}
.new-situation-scene-card .card-situation-description{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 5px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.6em;
    font-weight: 400;
    line-height: 1.35;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.72);
}
.top-new-situation-pair-slider .skeleton-card{
    width: 260px;
    height: auto;
    aspect-ratio: 32 / 25;
    border-radius: 12px;
}
.top-new-situation-pair-card .character-card{
    height: auto;
    aspect-ratio: 16 / 25;
}
.top-new-situation-pair-card .new-situation-pair-panel--scene .cast-photo{
    filter: blur(3px);
    transform: scale(1.04);
}
.top-new-situation-pair-card.bl-situation-pair-card .new-situation-pair-panel .cast-photo{
    filter: blur(3px);
    transform: scale(1.04);
}
#collaborationSection .top-new-situation-pair-card .new-situation-pair-panel--scene .cast-photo,
#feGroupChatSection .top-new-situation-pair-card .new-situation-pair-panel--scene .cast-photo{
    filter: none;
    transform: none;
}
.top-new-situation-pair-card .card-content{
    padding: 8px;
}
.top-new-situation-pair-card .character-card .character-card-title{
    font-size: 0.78em;
}
.top-new-situation-pair-card .profile-meta{
    font-size: 0.6em;
    line-height: 1.25;
}
.top-new-situation-pair-card .card-situation-title{
    padding: 4px 6px;
    border-radius: 7px;
    font-size: 0.62em;
    line-height: 1.3;
}
.top-situation-ranking-slider .skeleton-card{
    width: 160px;
    height: 250px;
    border-radius: 12px;
}
.top-situation-ranking-card-link{
    flex: 0 0 160px;
    width: 160px;
    color: inherit;
    text-decoration: none;
}
.top-situation-ranking-card{
    width: 160px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round 12px);
}
.top-situation-ranking-card::before{
    border-radius: inherit;
}
.top-situation-ranking-card.no-image{
    align-items: stretch;
    justify-content: flex-end;
}
.top-situation-ranking-card .cast-photo{
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    filter: blur(3px);
    transform: scale(1.04);
}
.top-situation-ranking-card .card-content{
    box-sizing: border-box;
    width: 100%;
    padding: 12px 10px 10px;
}
.top-situation-ranking-card h4{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    overflow: hidden;
    font-size: 0.86em;
    line-height: 1.28;
}
.top-situation-ranking-card .profile-meta{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 5px;
    overflow: hidden;
    font-size: 0.64em;
    line-height: 1.35;
}
.top-situation-ranking-card .top-situation-ranking-tags{
    max-height: 44px;
    overflow: hidden;
}
.top-situation-ranking-card .top-situation-ranking-tags span{
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}
.top-situation-ranking-chat-count-badge{
    padding: 3px 6px;
    font-size: 0.66em;
}
.hobby-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
}
.hobby-tags span{
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 2px 6px;
    font-size: 0.6em;
    border-radius: 15px;
    backdrop-filter: blur(2px);
}
.fe-custom-cast-card-shell .character-card{
    width: 100%;
    height: 100%;
}
.fe-custom-cast-edit-button .material-icons{
    font-size: 18px;
    line-height: 1;
}
.edit-my-cast-image-button.profile-photo-edit-button .material-icons{
    font-size: 17px;
}
.custom-cast-image-edit-button.profile-photo-edit-button .material-icons{
    font-size: 16px;
}
.user-icon-edit-button .material-icons{
    font-size: 16px;
    line-height: 1;
}
@keyframes fadeIn{
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-close-icon{
    flex-shrink: 0;
    pointer-events: none;
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}
.header-icon-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    color: white;
    cursor: pointer;
    line-height: 1; /* アイコンの上下の余分なスペースを削除 */
    box-sizing: border-box;
    transition: background-color 0.16s ease, transform 0.16s ease;
    -webkit-tap-highlight-color: transparent;
}
.header-icon-button .material-icons,
.thought-bubble-button .material-icons,
.chat-operation-icon{
    display: block;
    width: 24px;
    height: 24px;
    font-size: 24px; /* アイコンの大きさ */
    color: currentColor;
    /* 背景画像がある場合でも見やすいように影を付ける */
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.62);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
    transition: none;
}
.header-icon-button:hover{
    background-color: rgba(255, 255, 255, 0.14);
}
.header-icon-button:active{
    transform: scale(0.96);
}
.header-icon-button:focus-visible{
    outline: 2px solid rgba(255, 255, 255, 0.42);
    outline-offset: 2px;
}
.chat-header:is(.has-current-date, .has-current-situation-scene) .header-indicators{
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}
#editUserInfoButton .material-icons{
    color: currentColor;
    font-size: 24px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.62);
}
.chat-error-info-button .material-icons{
    font-size: 17px;
    line-height: 1;
}
.chat-reply-edit-button .material-icons,
.chat-reply-rewrite-button .material-icons,
.chat-message-more-button .material-icons{
    font-size: 15px;
}
.chat-message-menu .material-icons{
    font-size: 18px;
}
@keyframes spin{ 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
html,
body{
    height: 100%;
}
@keyframes fall{
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
body.chat-active #appHeaderRoot,
body.chat-active .home-user-profile{
    display: none;
}
.chat-guest-profile-avatar .material-icons{
    font-size: 30px;
}
.profile-modal-header-info .hobby-tags span{
    background-color: rgba(255, 255, 255, 0.2);
    border: 0;
    color: var(--text-light);
    font-size: 0.6em;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 15px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    text-shadow: none;
}
.profile-modal-posts-link .material-icons{
    font-size: 16px;
    line-height: 1;
}
.profile-photo-edit-button .material-icons{
    font-size: 16px;
    line-height: 1;
}
.profile-section-edit-icon-button .material-icons{
    font-size: 18px;
    line-height: 1;
}
.profile-delete-icon-button .material-icons{
    font-size: 17px;
}
#profileModal.is-custom-cast-preview .profile-modal-header-info .hobby-tags span{
    background: rgba(255, 243, 249, 0.34);
    border: 1px solid rgba(255, 245, 250, 0.58);
    color: #4a4350;
    font-size: 0.68em;
    padding: 2px 8px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@keyframes chatActionChipMotionSmall{
    0% { transform: scale(1); }
    45% { transform: scale(0.96); }
    100% { transform: scale(1); }
}
@keyframes chatActionChipMotionMedium{
    0% { transform: translateX(0) scale(1); }
    32% { transform: translateX(-1px) scale(0.95); }
    68% { transform: translateX(1px) scale(1.02); }
    100% { transform: translateX(0) scale(1); }
}
@keyframes chatActionChipMotionLarge{
    0% { transform: translateX(0) scale(1); }
    24% { transform: translateX(-2px) scale(0.94); }
    50% { transform: translateX(2px) scale(1.04); }
    74% { transform: translateX(-1px) scale(1.01); }
    100% { transform: translateX(0) scale(1); }
}
.chat-action-settings-modal-content .setting-toggle-button.is-active{
    background: rgba(247, 244, 247, 0.86);
    border-color: transparent;
    color: #443b43;
}
.chat-action-settings-modal-content .setting-toggle-button.is-active .setting-toggle-button-state{
    background: rgba(246, 87, 181, 0.14);
    color: #a42d63;
}
.chat-action-preset-option.is-active{
    border-color: rgba(246, 87, 181, 0.48);
    background: rgba(255, 239, 248, 0.96);
    color: #7a2a58;
}
@keyframes chat-suggestion-spin{
    to{ transform: rotate(360deg); }
}
.chat-suggestion-action-settings-button .material-icons{
    font-size: 16px;
    line-height: 1;
}
.bgm-settings-toggle.is-active{
    border-color: transparent;
    background: var(--modal-input-bg);
}
.bgm-settings-toggle.is-active .bgm-settings-toggle-state{
    background: rgba(246, 87, 181, 0.14);
    color: #a42d63;
}
.bgm-track-filter-button.is-active{
    background: #eef0f3;
    color: #1f2328;
    font-weight: 800;
}
.header-indicators{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 12px;
}
.indicator-text-container .material-icons{
    font-size: 12px;
    margin-right: 2px;
}
@keyframes fadeInTag{
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-glow{
    0% { box-shadow: 0 0 3px rgba(255,171,145,0.7); }
    50% { box-shadow: 0 0 10px rgba(255,171,145,1); }
    100% { box-shadow: 0 0 3px rgba(255,171,145,0.7); }
}
@keyframes narrationFadeIn{
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes bubbleFloatIn{
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.985);
    }
    62% {
        opacity: 1;
        transform: translateY(0) scale(1.002);
    }
    84% {
        opacity: 1;
        transform: translateY(0) scale(0.999);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes fadeOutAndScaleDown{
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.85);
    }
}
@keyframes bounce{
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
}
.setting-toggle-button.is-active{
    background: rgba(216, 100, 142, 0.08);
    border-color: rgba(216, 100, 142, 0.45);
    color: #9f3f6c;
}
.setting-toggle-button.is-active .setting-toggle-button-state{
    background: rgba(216, 100, 142, 0.18);
    color: #b04476;
}
.conversation-mode-option.is-active .conversation-mode-description{
    color: #8a858a;
}
.reply-beta-option.is-active,
.chat-style-option.is-active{
    background-color: #ffffff;
    border-color: #ead5df;
    color: #b04476;
    box-shadow: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
.stat-item,
.profile-modal-header-info .hobby-tags span{
        background: rgba(0, 0, 0, 0.34);
    }
}
.tag-filter-button{
    box-sizing: border-box;
    min-height: 36px;
    padding: 5px 12px;
    border: 1px solid var(--secondary-accent);
    color: var(--primary-accent);
    background-color: #fff;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tag-filter-button.active,
.tag-filter-button:hover{
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    border-color: transparent;
}
.welcome-description{
    text-align: center;
    padding: 20px 15px;
    margin-top: 30px;
    color: #5d6470;
    font-size: 12px;
    line-height: 1.7;
}
.welcome-description a{
    color: inherit;
}
.welcome-description .welcome-description-logo{
    font-size: 18px;
    font-weight: bold;
    margin: 0.83em 0 10px;
    padding-bottom: 10px;
}
.app-info-footer{
    box-sizing: border-box;
    width: min(100%, 450px);
    margin: 0 auto;
    padding: 20px 20px 30px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 30px);
    background-color: var(--secondary-bg);
    color: var(--text-secondary);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: none;
}
body:has(.app-info-footer) .container,
body:has(.app-info-footer) .ranking-new-container{
    margin-bottom: 0;
    border-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: none;
}
.app-info-footer .welcome-description{
    margin: 30px 0 0;
    padding: 0;
    color: #5d6470;
    font-size: 0.72rem;
    line-height: 1.7;
    text-align: center;
}
.app-info-footer .welcome-description:first-child,
.app-info-footer :is(.other-tags-section,
.related-tags-section,
.all-tags-section)[hidden] + .welcome-description,
.app-info-footer :is(.other-tags-section,
.related-tags-section,
.all-tags-section):has(.tags-container:empty) + .welcome-description{
    margin-top: 0;
}
.app-info-footer .welcome-description h2,
.app-info-footer .welcome-description-footer-logo{
    margin: 0 0 10px;
    padding: 0;
}
.app-info-footer .welcome-description p{
    margin: 0;
}
.app-info-footer .welcome-description a{
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
body:is(.situation-seo-page, .situation-tag-page):not(.situation-detail-page) .app-info-footer .welcome-description{
    color: #5d6470;
}
body:is(.situation-seo-page, .situation-tag-page, .situation-detail-page) .app-info-footer .welcome-description a{
    color: inherit;
}
.app-info-footer .footer-seo-faq{
    margin: 0 0 28px;
}
.app-info-footer .h1-logo-img{
    width: auto;
    height: 42px;
    max-width: 80%;
}
.app-info-footer :is(.other-tags-section,
.related-tags-section,
.all-tags-section){
    width: 100%;
}
.app-info-footer :is(.other-tags-section,
.related-tags-section,
.all-tags-section):has(.tags-container:empty){
    display: none;
}
.app-info-footer :is(.other-tags-section,
.related-tags-section,
.all-tags-section) + :is(.other-tags-section,
.related-tags-section,
.all-tags-section){
    margin-top: 30px;
}
.app-info-footer :is(.other-tags-section,
.related-tags-section,
.all-tags-section) h2{
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: left;
}
.app-info-footer .tags-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}
.app-info-footer .tag-link{
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background-color: #f7f7f8;
    color: var(--text-primary);
    font-size: 0.8em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.app-info-footer .tag-link:hover{
    background-color: #f7f7f8;
    border-color: #e5e7eb;
    color: var(--text-primary);
}
@media (max-width: 520px){
.app-info-footer{
        border-radius: 0;
    }
}
#pilotModeButton.active .material-icons{
    color: var(--primary-accent);
    animation: pulse-glow-pilot 2s infinite ease-in-out;
}
@keyframes pulse-glow-pilot{
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px var(--secondary-accent));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px var(--primary-accent));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px var(--secondary-accent));
    }
}
@keyframes chatEmotionBackgroundPulse{
    0% {
        filter: blur(4px) saturate(1.08) brightness(1.06);
    }
    100% {
        filter: none;
    }
}
@keyframes chatEmotionBackgroundShake{
    0% {
        filter: saturate(1.04) brightness(1.03);
        transform: translate3d(0, 0, 0) scale(1.01);
    }
    18% {
        transform: translate3d(-2px, 1px, 0) scale(1.012);
    }
    36% {
        transform: translate3d(2px, -1px, 0) scale(1.012);
    }
    54% {
        transform: translate3d(-1px, -1px, 0) scale(1.011);
    }
    72% {
        transform: translate3d(1px, 1px, 0) scale(1.01);
    }
    100% {
        filter: none;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes chatEmotionBackgroundSway{
    0% {
        filter: saturate(1.03) brightness(1.02);
        transform: translate3d(0, 0, 0) scale(1.006);
    }
    35% {
        transform: translate3d(-1px, -1px, 0) scale(1.009);
    }
    70% {
        transform: translate3d(1px, 1px, 0) scale(1.008);
    }
    100% {
        filter: none;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes chatActionBackgroundShakeSmall{
    0% {
        filter: saturate(1.02) brightness(1.01);
        transform: translate3d(0, 0, 0) scale(1.004);
    }
    32% {
        transform: translate3d(-1px, 1px, 0) scale(1.006);
    }
    68% {
        transform: translate3d(1px, -1px, 0) scale(1.005);
    }
    100% {
        filter: none;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes chatActionBackgroundShakeMedium{
    0% {
        filter: saturate(1.04) brightness(1.02);
        transform: translate3d(0, 0, 0) scale(1.008);
    }
    22% {
        transform: translate3d(-2px, 1px, 0) scale(1.01);
    }
    44% {
        transform: translate3d(2px, -1px, 0) scale(1.01);
    }
    68% {
        transform: translate3d(-1px, -1px, 0) scale(1.008);
    }
    100% {
        filter: none;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes chatActionBackgroundShakeLarge{
    0% {
        filter: saturate(1.06) brightness(1.03);
        transform: translate3d(0, 0, 0) scale(1.012);
    }
    18% {
        transform: translate3d(-3px, 2px, 0) scale(1.014);
    }
    36% {
        transform: translate3d(3px, -2px, 0) scale(1.014);
    }
    54% {
        transform: translate3d(-2px, -1px, 0) scale(1.012);
    }
    72% {
        transform: translate3d(2px, 1px, 0) scale(1.01);
    }
    100% {
        filter: none;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes castSceneTransitionTitle{
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes castSceneStarFall{
    0% {
        opacity: 0;
        transform: translate3d(0, -18px, 0) rotate(-8deg) scale(0.85);
    }
    14% {
        opacity: 0.95;
    }
    82% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--scene-star-drift, 0), 64vh, 0) rotate(18deg) scale(1.05);
    }
}
@keyframes chatEmotionBurstFloat{
    0% {
        opacity: 0;
        transform: translate(calc(-50% + var(--burst-x)), 18px) scale(0.8);
    }
    18% {
        opacity: 1;
    }
    70% {
        opacity: 0.95;
        transform: translate(calc(-50% + var(--burst-x)), -24px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--burst-x)), -42px) scale(1.08);
    }
}
@keyframes cast-social-thread-typing{
    0%, 60%, 100%{ transform: translateY(0); opacity: .45; }
    30%{ transform: translateY(-3px); opacity: 1; }
}
@keyframes chat-snapshot-sending-glow{
    0%, 100% {
        box-shadow: 0 0 10px rgba(139, 111, 255, 0.22);
        transform: scale(0.98);
    }
    50% {
        box-shadow: 0 0 18px rgba(239, 138, 209, 0.4);
        transform: scale(1);
    }
}
.chat-snapshot-feedback-button:hover,
.chat-snapshot-feedback-button.is-active{
    border-color: rgba(154, 90, 34, 0.42);
    background: rgba(255, 246, 232, 0.96);
    color: #5a3517;
}
#chatSection.has-background .chat-snapshot-feedback-button.is-active{
    border-color: rgba(255, 234, 194, 0.78);
    background: rgba(154, 90, 34, 0.72);
}
.chat-snapshot-feedback-reason-button.is-active{
    border-color: rgba(154, 90, 34, 0.42);
    background: rgba(255, 246, 232, 0.98);
    color: #5a3517;
}
.chat-guest-profile-button .material-icons{
    font-size: 20px;
}
#addCastToChatButton .material-icons{
    font-size: 24px;
    color: white;
}
#castSelectionModal .chat-guest-card .card-top-right-badges{
    top: 8px;
    right: 8px;
}
:is(#castSelectionModal, #petParticipantsModal) .character-slider-container{
    margin-left: -5px;
    margin-right: -5px;
}
#castSelectionModal .cast-selection-search-scope-button.is-active{
    background-color: #fff;
}
#castSelectionModal .tag-filter-button{
    padding: 7px 13px;
    border: 1px solid rgba(36, 39, 44, 0.12);
    border-radius: 999px;
    color: #303238;
    background-color: #f8f9fb;
    font-weight: 700;
}
#castSelectionModal .tag-filter-button.active,
#castSelectionModal .tag-filter-button:hover{
    background: #eef0f3;
    color: #1f2328;
    border-color: rgba(36, 39, 44, 0.18);
}
.app-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    background-color: var(--primary-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 100;
    border-bottom: 0;
}
.app-primary-nav{
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 450px;
    min-height: 31px;
    padding: 0 var(--app-content-inline-padding);
    border-bottom: 0;
    background: #ffffff;
    box-sizing: border-box;
    overflow-x: auto;
    scrollbar-width: none;
}
.app-primary-nav::-webkit-scrollbar{
    display: none;
}
.app-primary-nav[hidden]{
    display: none;
}
.app-primary-nav-link{
    display: flex;
    align-items: center;
    min-width: max-content;
    padding: 3px 0 5px;
    color: #aaa5aa;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.app-primary-nav-link.is-active{
    color: var(--text-primary);
    font-weight: 800;
}
.app-primary-nav-link:focus-visible{
    border-radius: 6px;
    outline: 2px solid rgba(216, 100, 142, 0.28);
    outline-offset: -2px;
}
body.chat-active .app-header{
    display: none;
}
.app-header .logo{
    display: inline-flex;
    align-items: center;
    /* ロゴのフォントを Noto Sans JP に変更 */
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-accent);
}
.app-header--home{
    justify-content: center;
    padding: 0;
    background:
        var(--app-page-background);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    box-shadow: none;
}
.app-header--auto-hide{
    transition: transform 180ms ease-out;
    will-change: transform;
}
.app-header--auto-hide[data-auto-hide-bound="true"]{
    position: fixed;
    right: 0;
    left: 0;
}
.app-header-auto-hide-spacer{
    display: block;
    width: 100%;
}
body.chat-active .app-header-auto-hide-spacer{
    display: none;
}
.app-header--auto-hide.app-header--hidden{
    transform: translateY(-100%);
}
.app-header--auto-hide[data-auto-hide-keep-nav="true"].app-header--hidden{
    transform: translateY(calc(-1 * var(--app-header-auto-hide-offset, 0px)));
}
body:not(.chat-active):has(.app-bottom-nav:not([hidden])){
    /* Keep navigation clearance after the content on long pages. */
    height: auto;
    min-height: 100%;
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
}
.app-bottom-nav{
    position: fixed;
    right: 50%;
    bottom: 0;
    z-index: 90;
    visibility: visible;
    width: min(100%, 450px);
    padding: 2px 8px calc(2px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    box-shadow: none;
    box-sizing: border-box;
    transform: translateX(50%);
}
@supports (-webkit-touch-callout: none) and (height: 100dvh){
.app-bottom-nav{
        top: 100dvh;
        bottom: auto;
        transform: translate(50%, -100%);
    }
}
body.chat-active .app-bottom-nav{
    display: none;
}
.app-bottom-nav-inner{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
}
.app-bottom-nav-item{
    appearance: none;
    display: flex;
    min-width: 0;
    min-height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 3px 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #9a9aa1;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.app-bottom-nav-item.is-active{
    color: #2f2f33;
}
.app-bottom-nav-item:active{
    transform: scale(0.96);
}
.app-bottom-nav-item:focus-visible{
    outline: 2px solid rgba(47, 47, 51, 0.42);
    outline-offset: -2px;
}
.app-bottom-nav-icon{
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.app-bottom-nav-item.is-active .app-bottom-nav-icon--home{
    fill: currentColor;
}
@media (prefers-reduced-motion: reduce){
.app-header--auto-hide{
        transition: none;
    }
}
.app-header-inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 450px;
    min-height: 44px;
    padding: 8px var(--app-content-inline-padding);
    background-color: #ffffff;
    box-shadow: none;
    box-sizing: border-box;
}
.app-header--home + .container,
.app-header--home + .app-bottom-nav + .container,
.app-header + .container,
.app-header + .app-bottom-nav + .container,
.app-header + .ranking-new-container,
.app-header + .feed-container{
    display: flow-root;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.app-header + .ranking-new-container,
.app-header + .feed-container{
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}
@media (max-width: 520px){
body.ranking-new-page,
body.feed-page,
.app-header,
.app-header--home{
        background: var(--secondary-bg);
    }
.app-header + .ranking-new-container,
.app-header + .feed-container{
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
}
.app-header-brand{
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.app-header-brand .logo{
    display: flex;
    align-items: center;
}
.app-header-actions{
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}
.header-button{
    display: flex;
    /* アイコンとテキストの縦方向を中央揃えにする */
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--primary-accent);
    border-radius: 20px;
    color: var(--primary-accent);
    background-color: transparent;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 12px;
}
.header-button:hover{
    background-color: rgba(216, 100, 142, 0.05);
}
.header-icon-link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 0;
    border-radius: 50%;
    background-color: transparent;
    color: #5F5560;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
    -webkit-tap-highlight-color: transparent;
}
.header-icon-link:active{
    transform: scale(0.96);
}
.header-icon-link:focus-visible{
    outline: 2px solid rgba(216, 100, 142, 0.28);
    outline-offset: 2px;
}
.header-search-icon{
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}
.header-settings-button{
    padding: 0;
    cursor: pointer;
}
.header-settings-icon{
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}
#linkAccountButton.header-button{
    min-height: 26px;
    border-radius: 7px;
    border: 1px solid #D1D5DB;
    background-color: rgba(255, 255, 255, 0.72);
    color: #111111;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 0 8px;
}
#linkAccountButton.header-button:hover{
    background-color: #ffffff;
    border-color: #9CA3AF;
    color: #111111;
}
@media (max-width: 340px){
.app-header-brand{
        gap: 4px;
    }
.app-header .header-logo-img{
        height: 22px;
    }
.app-header .audience-switch-summary{
        padding-right: 6px;
        padding-left: 6px;
        font-size: 9px;
    }
.app-header .header-icon-link{
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
#linkAccountButton.header-button{
        padding-right: 5px;
        padding-left: 5px;
        font-size: 9px;
    }
}
.header-button .material-icons{
    font-size: 20px;
}
:is(#userInfoModal,.chat-profile-settings-modal) .user-persona-option.is-active{
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    color: #a62f65;
    box-shadow: 0 4px 10px rgba(57, 37, 49, 0.06);
}
:is(#userInfoModal,.chat-profile-settings-modal) .setting-toggle-button.is-active{
    background: rgba(247, 244, 247, 0.86);
    border-color: transparent;
    color: #443b43;
}
:is(#userInfoModal,.chat-profile-settings-modal) .setting-toggle-button.is-active .setting-toggle-button-state{
    background: rgba(246, 87, 181, 0.14);
    color: #a42d63;
}
:is(#userInfoModal,.chat-profile-settings-modal) .reply-beta-option.is-active,
:is(#userInfoModal,.chat-profile-settings-modal) .chat-style-option.is-active{
    background: rgba(255, 255, 255, 0.92);
    border-color: transparent;
    color: #a62f65;
    box-shadow: 0 4px 10px rgba(57, 37, 49, 0.06);
}
#customSituationEditModal .custom-situation-advanced-toggle .material-icons{
    font-size: 18px;
}
#mySituationCreateModal .setting-toggle-button:hover,
#mySituationCreateModal .setting-toggle-button.is-active,
#mySituationEditModal .setting-toggle-button:hover,
#mySituationEditModal .setting-toggle-button.is-active,
#myDateEditModal .setting-toggle-button:hover,
#myDateEditModal .setting-toggle-button.is-active{
    background: rgba(247, 244, 247, 0.86);
    border-color: transparent;
    color: #443b43;
}
#mySituationCreateModal .setting-toggle-button.is-active .setting-toggle-button-state,
#mySituationEditModal .setting-toggle-button.is-active .setting-toggle-button-state,
#myDateEditModal .setting-toggle-button.is-active .setting-toggle-button-state{
    background: rgba(246, 87, 181, 0.14);
    color: #a42d63;
}
#mySituationCreateModal .custom-situation-image-clear-button .material-icons,
#mySituationEditModal .custom-situation-image-clear-button .material-icons{
    font-size: 15px;
}
#mySituationCreateModal .custom-situation-advanced-panel .setting-toggle-button:hover,
#mySituationCreateModal .custom-situation-advanced-panel .setting-toggle-button.is-active,
#mySituationEditModal .custom-situation-advanced-panel .setting-toggle-button:hover,
#mySituationEditModal .custom-situation-advanced-panel .setting-toggle-button.is-active{
    background: transparent;
}
.card-level-badge{
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: linear-gradient(
        145deg,
        rgba(255, 244, 210, 0.34) 0%,
        rgba(212, 166, 66, 0.56) 45%,
        rgba(173, 125, 34, 0.58) 100%
    );
    color: #fff9ec;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(123, 85, 20, 0.22);
    text-shadow: 0 1px 2px rgba(78, 50, 8, 0.35);
}
.card-level-badge.card-level-badge--top-left{
    right: auto;
    left: 8px;
}
.more-card .material-icons{
    font-size: 28px;
    margin-top: 8px;
    display: block;
}
@keyframes heart-pulse{
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.header-logo-img{
    height: 28px; /* Mobile-first header scale */
    width: auto;
    display: block;
    vertical-align: middle; /* Center align */
}
.search-discovery-slider .character-card,
.search-discovery-slider .skeleton-card{
    flex: 0 0 clamp(132px, 38vw, 160px);
    width: clamp(132px, 38vw, 160px);
    max-width: 160px;
    height: auto;
    aspect-ratio: 16 / 25;
    scroll-snap-align: start;
}
.search-page .search-results-grid .character-slider{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 6px 0 18px;
}
.search-page .search-results-grid .character-card{
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 25;
}
.search-page #situationSearchSuggestions .character-slider{
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 2px 4px 8px;
}
.search-page .search-results-grid .character-slider:has(> .situation-search-tag){
    row-gap: 0;
}
.search-page .search-results-grid .skeleton-card{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 25;
}
.my-casts-page .search-results-grid .fe-custom-cast-card-shell .character-card{
    width: 100%;
    max-width: none;
}
.my-situations-page .search-results-grid .character-slider{
    display: block;
    padding: 6px 0 18px;
}
.my-situation-tab.is-active{
    background: #eef0f3;
    color: #1f2328;
    font-weight: 800;
}
.my-situation-edit-button .material-icons{
    font-size: 15px;
    line-height: 1;
}
@keyframes skeleton-loading{
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}
.my-dates-page .search-results-grid .character-slider{
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 6px 0 18px;
}
.my-dates-page .search-results-grid .skeleton-card{
    min-height: 156px;
    aspect-ratio: auto;
    border-radius: 8px;
}
.my-date-card.is-hidden .my-date-card-location .material-icons{
    color: #8f8790;
}
.my-date-card-location .material-icons{
    flex: 0 0 auto;
    margin-top: 1px;
    color: #c64b85;
    font-size: 14px;
    line-height: 1.2;
}
.my-date-card-edit-button .material-icons{
    font-size: 16px;
}
.my-casts-create-button .material-icons{
    font-size: 16px;
}
.album-filter-button.is-active{
    background: #eef0f3;
    color: #1f2328;
    font-weight: 800;
}
.album-page .album-view-nav .album-filter-button.is-active{
    background: transparent;
    color: var(--text-primary);
    font-weight: 800;
}
.favorites-page .favorite-situation-card .card-content{
    min-width: 0;
}
.favorites-page .favorite-situation-card .avatar{
    display: flex;
    align-items: center;
    justify-content: center;
}
.character-slider .situation-card{
    flex-shrink: 0;
    position: relative;
    width: 200px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    box-sizing: border-box;
}
.character-slider .situation-card h4{
    font-size: 0.9em;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
    line-height: 1.3;
}
.character-slider .situation-card p{
    font-size: 0.7em;
    color: var(--text-secondary);
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
    line-height: 1.4;
    margin-top: 8px;
}
.card-ranking-badge{
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    color: white;
    background: rgba(84, 112, 153, 0.9);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.card-ranking-badge.rank-1{
    background: rgba(232, 174, 26, 0.92);
}
.card-ranking-badge.rank-2{
    background: rgba(139, 149, 167, 0.92);
}
.card-ranking-badge.rank-3{
    background: rgba(183, 115, 51, 0.92);
}
.card-ranking-badge.rank-4{
    background: rgba(87, 150, 205, 0.9);
}
.card-ranking-badge.rank-5{
    background: rgba(102, 128, 173, 0.9);
}
.character-slider .situation-card .situation-card-tags{
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.character-slider .situation-card .situation-card-tag{
    font-size: 10px;
    padding: 2px 6px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
}
#situationModal .character-slider .character-card{
    width: 160px;
    height: 250px;
    overflow: visible;
}
#situationModal .character-slider .character-card.has-situation-image{
    overflow: hidden;
}
#situationModal .character-slider .character-card.has-situation-image::before{
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 48%, rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2.8px) saturate(1.02);
    -webkit-backdrop-filter: blur(2.8px) saturate(1.02);
    pointer-events: none;
}
#situationModal .character-slider .character-card.has-situation-image img.cast-photo{
    filter: blur(2.8px) saturate(0.98) brightness(0.99);
    transform: scale(1.03);
}
#situationModal .character-slider .character-card.has-situation-image .card-content{
    z-index: 2;
}
#situationModal .character-slider .character-card.has-situation-image .card-ranking-badge,
#situationModal .character-slider .character-card.has-situation-image .card-top-right-badges,
#situationModal .character-slider .character-card.has-situation-image .custom-situation-actions{
    z-index: 3;
}
.character-card.no-image-fallback::before{
    display: none;
}
#situationModal .character-slider .character-card .character-card-title{
    font-size: 0.85em; /* ← 文字を少し小さく */
    line-height: 1.25;  /* ← 行間を詰める */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    -webkit-line-clamp: 3; /* 最大3行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}
#situationModal .character-slider .hobby-tags span{
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 2px 6px;
    font-size: 0.6em;
    border-radius: 15px;
    backdrop-filter: blur(2px);
}
#situationModal .character-slider .situation-card-description{
    margin-top: 6px; /* タグとの間に余白を設定 */
    font-size: 0.7em;
    color: white;  /* 少し柔らかい白色 */
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);

    /* シチュエーション説明はカード内で3行まで表示 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#situationModal .character-slider .character-card.no-image-fallback{
    background-color: var(--secondary-bg); /* 1. 背景を白に */
    border: 1px solid var(--border-color);   /* 5. カードの枠線を設定 */
    justify-content: flex-end;               /* ★変更: コンテンツを下揃えに */
}
#situationModal .character-slider .character-card.no-image-fallback .hobby-tags span{
    background-color: var(--primary-bg);     /* 4. タグの背景をクリーム色に */
    color: var(--text-secondary);            /* 4. タグの文字を灰色に */
    border: 1px solid var(--border-color);   /* 4. タグの枠線を設定 */
    backdrop-filter: none;                   /* 背景が単色なのでぼかし効果は不要 */
}
.character-card{
    overflow: visible; /* はみ出した要素（バッジ）を隠さないように変更 */
}
.character-card .cast-photo{
    border-radius: 12px;
    display: block; /* 念のため */
}
#situationModal .character-slider-container::-webkit-scrollbar{
    display: none; /* Chrome, Safari, Edgeなど */
}
#situationModal .character-slider-container{
    scrollbar-width: none; /* Firefox */
}
#situationModal .character-slider .card-content{
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}
#situationModal .character-slider .situation-card-chat-count-badge{
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 18px rgba(42, 35, 40, 0.16);
}
#contentsListModal .character-slider .character-card{
    width: 160px;
    height: 250px;
    position: relative;
    overflow: visible;
}
#contentsListModal .character-slider .card-play-count-badge{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    padding: 3px 6px;
    border-radius: 15px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.72em;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}
#contentsListModal .character-slider .card-play-count-badge-count{
    font-weight: 700;
}
#contentsListModal .character-slider .character-card.no-image-fallback{
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, #2A2328 0%, #533046 48%, #D8648E 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 24px rgba(42, 35, 40, 0.28);
    justify-content: flex-end;
}
#contentsListModal .character-slider .card-content{
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px; /* 3. 上下の余白を均等に */
}
#contentsListModal .character-slider .character-card.no-image-fallback .character-card-title{
    color: rgba(255, 255, 255, 0.97);
    text-shadow: 0 1px 2px rgba(42, 35, 40, 0.4);
    font-size: 0.85em;
    line-height: 1.25;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}
#contentsListModal .character-slider .situation-card-description{
    margin-top: 6px;
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.84);
    text-shadow: 0 1px 1px rgba(42, 35, 40, 0.35);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 説明文の表示量を半分に調整 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 5px;
}
#contentsListModal .character-card.no-image-fallback .hobby-tags span{
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.92);
    padding: 2px 6px;
    font-size: 0.6em;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
}
#contentsListModal .character-slider .card-play-count-badge{
    background-color: rgba(42, 35, 40, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.9);
}
#contentsListModal .tag-filter-button{
    border: 1px solid rgba(216, 100, 142, 0.45);
    color: #a24673;
    background-color: rgba(255, 255, 255, 0.58);
}
#contentsListModal .tag-filter-button.active,
#contentsListModal .tag-filter-button:hover{
    background: linear-gradient(135deg, #f657b5 0%, #d8648e 100%);
    color: #fff;
    border-color: transparent;
}
#situationModal .character-slider-container,
#contentsListModal .character-slider-container{
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#situationModal .character-slider-container::-webkit-scrollbar,
#contentsListModal .character-slider-container::-webkit-scrollbar{
    display: none;
    width: 0;
    height: 0;
}
#situationModal .situation-modal-section .character-slider{
    padding-top: 4px;
}
#situationModal .character-slider .character-card.no-image-fallback{
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, #2A2328 0%, #533046 48%, #D8648E 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: none;
}
#situationModal .character-slider .character-card.no-image-fallback .card-content{
    padding-top: 20px;
    padding-bottom: 14px;
}
#situationModal .character-slider .character-card.no-image-fallback .character-card-title{
    color: rgba(255, 255, 255, 0.97);
    text-shadow: 0 1px 2px rgba(42, 35, 40, 0.4);
}
#situationModal .character-slider .character-card.no-image-fallback .situation-card-description{
    color: rgba(255, 255, 255, 0.84);
    text-shadow: 0 1px 1px rgba(42, 35, 40, 0.35);
}
#situationModal .character-slider .character-card.no-image-fallback .hobby-tags span{
    background: rgba(255, 255, 255, 0.18) !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    box-shadow:
        0 8px 18px rgba(42, 35, 40, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
#situationModal .character-slider .character-card.no-image-fallback .situation-card-chat-count-badge{
    background-color: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
}
#situationModal .tag-filter-button{
    padding: 7px 13px;
    border: 1px solid rgba(36, 39, 44, 0.12);
    border-radius: 999px;
    color: #303238;
    background-color: #f8f9fb;
    font-weight: 700;
}
#situationModal .tag-filter-button.active,
#situationModal .tag-filter-button:hover{
    background: #eef0f3;
    color: #1f2328;
    border-color: rgba(36, 39, 44, 0.18);
}
#situationModal .situation-lounge-return-button .material-icons{
    font-size: 15px;
    line-height: 1;
}
body.school-life-chat #appHeaderRoot,body.school-life-chat #showThoughtsButton,body.school-life-chat #favoriteChatButton,body.school-life-chat #castSocialThreadButton,body.school-life-chat #addCastToChatButton,body.school-life-chat #randomSituationButton,body.school-life-chat #changeCastButton,body.school-life-chat #situationButton,body.school-life-chat #ghostModeButton,body.school-life-chat #editUserInfoButton,body.school-life-chat .header-indicators,body.school-life-chat #itemToolbar,body.school-life-chat #chatSuggestionContainer,body.school-life-chat #chatSuggestionTriggerButton{display:none!important}
button[data-member-selection-card]{padding:0;border:0;text-align:left;font:inherit;cursor:pointer}
button[data-member-selection-card]:disabled{opacity:.42;cursor:default}
@media (min-width: 521px){
body:is(.home-page, .discovery-page, .ranking-new-page, .feed-page,
        .game-list-page, .timeline-page, .lab-page, .life-page,
        .situation-remix-page, .search-page, .school-life-page,
        .situation-ranking-page, .situation-group-page):not(.chat-active):not(.nightclub-page) .app-header{
        background: transparent;
    }
body:is(.home-page, .discovery-page, .ranking-new-page, .feed-page,
        .game-list-page, .timeline-page, .lab-page, .life-page,
        .situation-remix-page, .search-page, .school-life-page,
        .situation-ranking-page, .situation-group-page):not(.chat-active):not(.nightclub-page)::before{
        content: '';
        position: fixed;
        top: 0;
        bottom: 0;
        left: calc(50% - 225px);
        width: 450px;
        box-shadow: 0 18px 46px rgba(20, 20, 20, 0.06);
        pointer-events: none;
        z-index: 0;
    }
}
