/* static/css/profile.css */

/* レイアウト */
.profile-wrapper {
    margin-top: 40px;
    margin-bottom: 60px;
}

.profile-layout {
    display: flex;
    gap: 30px;
}

.specs-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: var(--cover-color);
    padding: 10px 15px;
    border-radius: 5px;
}

.pc-spec-visibility-setting {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pc-spec-visibility-setting input {
    width: auto;
}

.pc-spec-privacy-setting {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: .8rem;
}

.pc-spec-privacy-setting .form-hint {
    margin-top: 4px;
    color: #aaa;
    font-size: .72rem;
    line-height: 1.45;
}

.public-pc-specs {
    margin-top: 20px;
}

.public-pc-specs-title {
    margin-bottom: 15px;
    font-weight: bold;
}
.spec-item label{
    display: block;
    font-size: 0.85rem;
    color: #aaa;
}
.spec-value{
    font-size: .95rem;
    color: var(--white);
}

@media (max-width: 900px) {
    .profile-layout {
        flex-direction: column;
    }
}

/* サイドバー */
.profile-sidebar {
    width: 30%;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .profile-sidebar {
        width: 100%;
    }
}

/* メインコンテンツ */
.profile-content {
    flex-grow: 1;
    min-width: 0;
    /* Flexboxの子要素でtruncateを効かせるため */
}

/* カード共通スタイル */
.profile-card {
    background: var(--frame-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 1px solid var(--frame-color);
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

.card-body {
    padding: 20px;
}

/* アバター */
.avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
}

.profile-badge-trigger {
    position: absolute;
    bottom: 0;
    left: calc(100% + 8px);
    z-index: 3;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: var(--rime);
    cursor: pointer;
    font-size: 1rem;
}

.profile-badge-trigger:hover {
    border-color: var(--rime);
    filter: brightness(1.08);
}

.profile-badge-trigger.has-featured-badge {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.profile-badge-trigger.is-public {
    cursor: default;
}

.profile-badge-trigger.is-public:hover {
    border-color: rgba(183, 214, 0, .45);
    filter: none;
}

.profile-badge-trigger:focus-visible {
    outline: 2px solid var(--rime);
    outline-offset: 3px;
}

.profile-badge-trigger img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.profile-badge-edit-icon {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    background: var(--rime);
    color: #111;
    font-size: .48rem;
}

html[data-theme="light"] .profile-badge-trigger {
    background: transparent;
    box-shadow: none;
}

html[data-theme="light"] .profile-badge-trigger.has-featured-badge {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.avatar-crop-field-status {
    min-height: 1.4em;
    margin-top: 6px;
    color: #aaa;
    font-size: .72rem;
    line-height: 1.4;
}

.avatar-crop-field-status.is-error,
.avatar-crop-status.is-error {
    color: #ff8b8b;
}

body.avatar-crop-open {
    overflow: hidden;
}

.avatar-crop-dialog {
    position: fixed;
    z-index: 11000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.avatar-crop-dialog[hidden] {
    display: none;
}

.avatar-crop-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(4, 8, 14, .82);
    cursor: default;
}

.avatar-crop-panel {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid #3a4553;
    border-radius: 12px;
    background: #171d26;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
    color: #fff;
    padding: 20px;
}

.avatar-crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.avatar-crop-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.avatar-crop-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #2b3440;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.avatar-crop-viewport {
    position: relative;
    width: min(300px, 72vw);
    aspect-ratio: 1;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid var(--rime);
    border-radius: 50%;
    background: #0c1016;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
    cursor: grab;
    touch-action: none;
}

.avatar-crop-viewport.is-dragging {
    cursor: grabbing;
}

.avatar-crop-source {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--avatar-crop-width, auto);
    height: var(--avatar-crop-height, auto);
    max-width: none;
    pointer-events: none;
    user-select: none;
    transform: translate(
        calc(-50% + var(--avatar-crop-x, 0px)),
        calc(-50% + var(--avatar-crop-y, 0px))
    ) scale(var(--avatar-crop-zoom, 1));
    transform-origin: center;
    will-change: transform;
}

.avatar-crop-help {
    margin: 14px 0 10px;
    color: #b8c0ca;
    font-size: .78rem;
    line-height: 1.5;
    text-align: center;
}

.avatar-crop-zoom {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    color: #d7dce2;
    font-size: .78rem;
}

.avatar-crop-zoom input {
    width: 100%;
    accent-color: var(--rime);
}

.avatar-crop-status {
    min-height: 1.4em;
    margin-top: 8px;
    font-size: .72rem;
    line-height: 1.4;
}

.avatar-crop-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.avatar-crop-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.avatar-crop-actions button:disabled {
    cursor: wait;
    opacity: .65;
}

.avatar-crop-cancel {
    background: #303946;
    color: #fff;
}

.avatar-crop-apply {
    background: var(--rime);
    color: #111;
}

html[data-theme="light"] .avatar-crop-panel {
    border-color: #d3d8df;
    background: #fff;
    color: #222;
}

html[data-theme="light"] .avatar-crop-close,
html[data-theme="light"] .avatar-crop-cancel {
    background: #e7eaee;
    color: #222;
}

html[data-theme="light"] .avatar-crop-help,
html[data-theme="light"] .avatar-crop-zoom {
    color: #4a515a;
}

html[data-theme="light"] .avatar-crop-viewport {
    background: #dfe3e8;
}

.user-profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.user-profile-header h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 15px;
}

/* フォーム */
.profile-form {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group .form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ccc;
}

.form-group input[type="text"] {
    width: 100%;
    background: #242c38;
    box-shadow: inset 0 0 6px 2px #171a2070;
    border: none;
    padding: 10px;
    resize: none;
    font-size: .9rem;
    border-radius: 2px;
    transition: ease all .4s;
}

.form-group input[type="text"]:focus {
    outline: none;
    box-shadow: inset 0 0 6px 2px #4eaaeb8f;
}

.form-group input[type="file"] {
    width: 100%;
    color: #ccc;
    font-size: .7rem;
}

.form-group input[type="file"]::file-selector-button {
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 5px 10px;
    margin-right: 10px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: #444;
}

.form-group .email-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group .email-group a {
    font-size: 0.7rem;
    color: var(--gray);
}

.form-group .email-group a:hover {
    text-decoration: underline;
}

.other-actions {
    text-align: center;
}

.two-factor-profile-action {
    margin-top: 14px;
}

.two-factor-profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    border: 1px solid #667180;
    border-radius: 5px;
    background: #303946;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 13px 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.two-factor-profile-button:hover {
    border-color: var(--rime);
    background: #303946;
    color: var(--rime);
}

.two-factor-profile-button:focus-visible {
    outline: 2px solid var(--rime);
    outline-offset: 2px;
}

.other-actions a {
    font-size: 0.7rem;
    color: var(--gray);
}

.other-actions a:hover {
    text-decoration: underline;
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-actions {
    margin-top: 20px;
}

.form-actions button {
    width: 100%;
    display: block;
    background: var(--rime);
    color: #111;
    font-weight: bold;
    font-size: .9rem;
    text-align: center;
    padding: 15px;
    line-height: 1;
    border-radius: 2px;
    transition: ease all .4s;
}

.form-actions button:hover {
    opacity: .7;
}

/* 統計情報 */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.stat-value.highlight {
    color: var(--green);
}

/* バッジ選択モーダル */
body.profile-badge-modal-open {
    overflow: hidden;
}

.profile-badge-dialog {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.profile-badge-dialog[hidden] {
    display: none;
}

.profile-badge-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
}

.profile-badge-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: min(82vh, 760px);
    border: 1px solid rgba(255, 255, 255, .1);
    background: #1c1f25;
    box-shadow: 0 0 20px rgba(0, 0, 0, .5);
    color: #fff;
    overflow: hidden;
}

.profile-badge-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    background: rgba(255, 255, 255, .03);
}

.profile-badge-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.profile-badge-modal-close {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all .3s;
}

.profile-badge-modal-close:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transform: rotate(90deg);
}

.profile-badge-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 25px;
    overflow-y: auto;
}

html[data-theme="light"] .profile-badge-panel {
    border-color: var(--theme-border);
    background: #fff;
    color: #202124;
}

html[data-theme="light"] .profile-badge-modal-header {
    border-color: #ccc;
    background: #ddd;
}

html[data-theme="light"] .profile-badge-modal-header h2 {
    color: #111;
}

html[data-theme="light"] .profile-badge-modal-close {
    color: #555;
}

html[data-theme="light"] .profile-badge-modal-close:hover {
    background: rgba(0, 0, 0, .06);
    color: #111;
}

/* バッジ一覧 */
.earned-badge-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.earned-badge-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 2px;
    background: var(--cover-color);
    color: inherit;
    text-align: left;
    overflow: hidden;
}

.earned-badge-item.is-earned[data-profile-badge-choice] {
    cursor: pointer;
}

.earned-badge-item.is-earned[data-profile-badge-choice]:hover {
    border-color: rgba(183, 214, 0, .55);
}

.earned-badge-item.is-selected {
    border-color: var(--rime);
    box-shadow: inset 0 0 0 1px var(--rime);
}

.earned-badge-item:focus-visible {
    outline: 2px solid var(--rime);
    outline-offset: 2px;
}

.earned-badge-item.is-locked {
    filter: grayscale(1);
    opacity: .46;
}

.earned-badge-visual {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
}

.earned-badge-image {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0;
    object-fit: contain;
}

.earned-badge-image-fallback {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    color: var(--rime);
    font-size: 1.8rem;
}

.earned-badge-name {
    display: block;
    color: var(--white);
    font-size: .88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.earned-badge-detail {
    display: block;
    min-width: 0;
}

.earned-badge-requirement {
    display: block;
    margin-top: 6px;
}

.earned-badge-requirement-label {
    display: block;
    color: #777;
    font-size: .6rem;
    font-weight: 600;
}

.earned-badge-description {
    display: block;
    margin: 3px 0 0;
    color: #aaa;
    font-size: .68rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.earned-badge-date,
.earned-badge-current,
.earned-badges-empty {
    display: block;
    margin: 7px 0 0;
    color: #888;
    font-size: .64rem;
    line-height: 1.4;
}

.earned-badges-empty {
    margin: 0;
    text-align: center;
}

.earned-badge-current {
    color: var(--rime);
    font-weight: 600;
}

.profile-badge-modal-footer {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    background: rgba(255, 255, 255, .03);
}

.featured-badge-form button,
.featured-badge-reset-form button {
    width: 100%;
    border: 1px solid var(--rime);
    border-radius: 2px;
    background: var(--rime);
    color: #071018;
    cursor: pointer;
    font-size: .68rem;
    font-weight: 700;
    padding: 8px;
}

.featured-badge-reset-form {
    margin: 0;
}

.featured-badge-reset-form button {
    border-color: #737d89;
    background: transparent;
    color: var(--white);
}

.featured-badge-form button:not(:disabled):hover,
.featured-badge-reset-form button:not(:disabled):hover {
    filter: brightness(1.1);
}

.featured-badge-form button:disabled,
.featured-badge-reset-form button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

html[data-theme="light"] .earned-badge-item {
    border-color: rgba(0, 0, 0, .1);
}

html[data-theme="light"] .earned-badge-item.is-selected {
    border-color: var(--rime);
}

html[data-theme="light"] .profile-badge-modal-footer {
    border-color: #ccc;
    background: #ddd;
}

html[data-theme="light"] .earned-badge-description {
    color: #555;
}

html[data-theme="light"] .earned-badge-date,
html[data-theme="light"] .earned-badge-current,
html[data-theme="light"] .earned-badges-empty {
    color: #666;
}

html[data-theme="light"] .earned-badge-current {
    color: var(--rime);
}

html[data-theme="light"] .featured-badge-reset-form button {
    color: #202124;
}

@media screen and (max-width: 520px) {
    .profile-badge-dialog {
        align-items: center;
        padding: 10px;
    }

    .profile-badge-panel {
        max-height: 88vh;
    }

    .profile-badge-modal-body {
        padding: 10px;
    }

    .earned-badge-item {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .earned-badge-visual,
    .earned-badge-image {
        width: 58px;
        height: 58px;
    }

    .profile-badge-modal-footer {
        padding: 10px;
    }
}

/* タブナビゲーション */
.user-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background: var(--frame-color-sub);
}

.user-tab-btn {
    display: block;
    background: none;
    border: none;
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s, border-bottom 0.3s;
    position: relative;
    text-decoration: none;
}

.user-tab-btn:hover {
    color: var(--white);
}

.user-tab-btn.active {
    background: var(--cover-color);
}

@media screen and (max-width:768px){
    .user-tab-btn{
        font-size: .7rem;
    }

}
/* コンテンツセクション */
.content-section {
    display: none; /* デフォルトは非表示。JSで制御 */
    margin-bottom: 40px;
}

.content-section.is-active {
    display: block;
}

.section-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--frame-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #fff;
}

.empty-msg {
    color: #888;
    font-style: italic;
}

.release-notification-status {
    min-height: 1.5em;
    margin-bottom: 8px;
    color: var(--green);
    font-size: .8rem;
}

.release-notification-status.is-error {
    color: var(--red);
}

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

.release-notification-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--frame-color-sub);
}

.release-notification-game-image {
    display: block;
    width: 76px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.release-notification-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.release-notification-game-info {
    min-width: 0;
}

.release-notification-game-info h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.release-notification-game-info h3 a {
    color: var(--white);
}

.release-notification-game-info h3 a:hover {
    text-decoration: underline;
}

.release-notification-game-info p {
    margin: 0;
    color: var(--subtle-font-color);
    font-size: .75rem;
}

.release-notification-cancel-form button {
    border: 1px solid var(--red);
    padding: 8px 12px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-size: .75rem;
    cursor: pointer;
}

.release-notification-cancel-form button:hover,
.release-notification-cancel-form button:focus-visible {
    background: var(--red);
    color: #fff;
}

.release-notification-cancel-form button:disabled {
    cursor: wait;
    opacity: .55;
}

.release-notification-empty[hidden] {
    display: none;
}

@media screen and (max-width: 640px) {
    .release-notification-item {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 12px;
    }

    .release-notification-game-image {
        width: 62px;
    }

    .release-notification-cancel-form {
        grid-column: 1 / -1;
    }

    .release-notification-cancel-form button {
        width: 100%;
    }
}

/* レビューリスト */

.review-item {
    background: var(--frame-color-sub);
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.review-item.playlist-item {
    cursor: pointer;
}

.review-item.playlist-item:hover {
    background: var(--frame-color);
}

.review-item.playlist-item:active {
    transform: scale(0.98);
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-item-image {
    width: 80px;
}

.review-item-image a {
    transition: ease all .4s;
}

.review-item-image a:hover {
    opacity: .7;
}

.review-item-inner {
    width: calc(100% - 100px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-game-title {
    margin: 0;
    font-size: 1.1rem;
    width: calc(100% - 180px);
    color: #fff;
    transition: color 0.3s;
}

.playlist-item:hover .playlist-title {
    color: var(--rime);
}

.review-game-title a {
    color: #fff;
}
.playlist-date{
    font-size: .7rem;
    color: #999;
    width: 160px;
}
.review-date {
    font-size: .7rem;
    color: #999;
    text-align: right;
    width: 160px;
}

.review-date span {
    display: block;
}

.review-body {
    display: none;
}

.review-body .review-inner {
    border-bottom: 1px solid #ffffff0a;
    padding: 10px 0;
}

.review-body .review-inner.active {
    border-bottom: none;
}

.review-body .review-inner:last-child {
    border-bottom: none;
}

.review-body .review-inner .title {
    font-weight: bold;
    font-size: .9rem;
}

.review-body .review-inner .score {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.review-body .review-inner .score img {
    width: 14px;
    height: 14px;
}

.review-body .review-inner .contents {
    font-size: .8rem;
    opacity: .85;
}

.review-body .review-inner .contents a.recommended-game {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--cover-color);
    color: #fff;
    margin-top: 10px;
}

.review-body .review-inner .contents a.recommended-game .image {
    width: 60px;
}

.review-body .review-inner .contents a.recommended-game .game-title {
    font-size: .8rem;
}
.review-body .review-inner .contents .translation-toggle-btn{
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s;
    user-select: none;
    display: inline-block;
    font-weight: normal;
    margin-top: 10px;
}

.review-body .review-inner .custom-title {
    font-size: .8rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.review-body-btn {
    text-align: center;
    padding: 10px;
    position: relative;
}

.review-body-btn::after {
    content: "";
    border: 5px solid transparent;
    border-top: 5px solid #fff;
    z-index: -1;
    position: relative;
    margin-left: 10px;
    top: 11px;
}

.review-body-btn:hover {
    cursor: pointer;
}

.personalized-game-review {
    margin-top: 40px;
}

.profile-review-prompts-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    color: var(--muted-font-color);
    font-size: .85rem;
}

.profile-review-prompts-status::before {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid var(--theme-border);
    border-top-color: var(--rime);
    border-radius: 50%;
    content: "";
    animation: profile-review-prompts-spin .75s linear infinite;
}

.profile-review-prompts-status.is-error {
    color: var(--red);
}

.profile-review-prompts-status.is-error::before {
    display: none;
}

.profile-review-prompts-retry {
    margin-top: 10px;
    padding: 7px 14px;
    border: 1px solid var(--rime);
    border-radius: 2px;
    background: transparent;
    color: var(--main-font-color);
    cursor: pointer;
}

.profile-review-prompts-retry:hover,
.profile-review-prompts-retry:focus-visible {
    background: var(--rime);
    color: #111;
}

.personalized-game-review .game-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.personalized-game-review .game-list .game-item {
    min-width: 0;
}

.personalized-game-review .game-image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.personalized-game-review .game-list .game-item .game-title {
    font-size: .8rem;
    color: #fff;
    margin-top: 8px;
    min-height: 2.8em;
}

.personalized-game-review .review-prompt-action {
    display: block;
    margin-top: 8px;
    padding: 7px 8px;
    border-radius: 2px;
    background: var(--rime);
    color: #111;
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
}

@keyframes profile-review-prompts-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-review-prompts-status::before {
        animation: none;
    }
}

@media screen and (max-width: 768px) {
    .personalized-game-review .game-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}


/* レビューのフッター */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 5px;
}

.helpful-count {
    font-size: 0.7rem;
    color: var(--gray);
}

.review-actions {
    display: flex;
    gap: 10px;
}

.review-actions a {
    font-size: 0.7rem;
    color: var(--gray);
}

.review-actions a:hover {
    text-decoration: underline;
}

.pwc-wrapper {
    max-width: 560px;
    width: calc(100% - 20px);
    padding: 10px;
    margin: 40px auto;
    background: var(--frame-color);
}

.pwc-wrapper .change-text {
    font-size: .9rem;
    margin: 20px auto;
}

.pwc-wrapper .change-text span {
    display: block;
    color: #888;
    font-size: .8rem;
}

.pwc-wrapper ul,
.pwc-wrapper .helptext{
    margin: 0 auto;
    margin-bottom: 20px;
    font-size: .75rem;
    color: #888;
}

.pwc-wrapper form p {
    width: 100%;
}

.pwc-wrapper form input {
    background: #242c38;
    box-shadow: inset 0 0 6px 2px #171a2070;
    border: none;
    padding: 10px;
    resize: none;
    font-size: .9rem;
    width: 100%;
    transition: ease all .4s;
}

.pwc-wrapper form button {
    background: var(--rime);
    color: #111;
    text-align: center;
    padding: 10px 20px;
    font-size: .9rem;
    font-weight: bold;
    line-height: 1;
    margin-top: 20px;
    border-radius: 2px;
    margin-left: 10px;
}

/* 認証コード入力用スタイル */
.verification-code-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    background: var(--cover-color);
}

.verification-code-container:hover{
    cursor: text;
}

.pwc-wrapper form input.verification-input {
    flex: 1;
    width: calc( 100% / 6 );
    font-size: 2rem;
    text-align: center;
    border: none;
    border-bottom: 1px solid #ffffff5e;
    border-radius: 0;
    background-color: transparent !important;
    color: #c9d1d9;
    padding: 0;
    box-shadow: none;
    transition: border-color 0.3s;
}

.pwc-wrapper form input.verification-input:focus{
    border-bottom-color: #54baec;
}

/* Tutorial Trigger Icon */
.tutorial-trigger-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #666;
    color: #fff;
    font-size: 12px;
    margin-left: 10px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: -2px;
    padding-top: 2px;
    transition: all 0.3s;
}

.tutorial-trigger-icon:hover {
    background-color: var(--rime);
}

.tutorial-trigger-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    margin-bottom: 5px;
}

.tutorial-trigger-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Tutorial Overlay & Highlight */
.tutorial-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background: transparent;
    pointer-events: auto;
}

.tutorial-highlight-box {
    position: absolute;
    z-index: 9999;
    border-radius: 4px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 2px solid var(--rime);
}

.tutorial-modal {
    position: absolute;
    z-index: 10000;
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: auto;
}

.tutorial-modal.visible {
    opacity: 1;
    transform: translateY(0);
}

.tutorial-modal::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Arrow positioning */
.tutorial-modal.arrow-top::before {
    top: -10px;
    left: 20px;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #fff transparent;
}
.tutorial-modal.arrow-bottom::before {
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0 10px;
    border-color: #fff transparent transparent transparent;
}
.tutorial-modal.arrow-left::before {
    left: -10px;
    top: 20px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}
.tutorial-modal.arrow-right::before {
    right: -10px;
    top: 20px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tutorial-title-area {
    display: flex;
    flex-direction: column;
}

.tutorial-step-major {
    font-size: 0.75rem;
    color: var(--rime);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.tutorial-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.tutorial-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: #999;
    line-height: 1;
    padding: 5px;
}

.tutorial-close:hover {
    color: #333;
}

.tutorial-body {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
    min-height: 60px;
}

.tutorial-steps-indicator {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.tutorial-steps-dot {
    height: 4px;
    flex: 1;
    background: #eee;
    border-radius: 2px;
    transition: background 0.3s;
}

.tutorial-steps-dot.active {
    background: var(--rime);
}

.tutorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-progress-container {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    width: 60px;
    overflow: hidden;
}

.tutorial-progress-bar {
    height: 100%;
    background: var(--rime);
    width: 0%;
    transition: width linear;
}

.tutorial-controls {
    display: flex;
    gap: 10px;
}

.tutorial-btn {
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
}

.tutorial-btn:hover {
    background: #f9f9f9;
    color: #333;
}

.tutorial-btn.primary {
    background: var(--rime);
    color: #111;
    border-color: var(--rime);
}

.tutorial-btn.primary:hover {
    background: #a5c200;
}

.tutorial-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media screen and (max-width: 768px) {
    .tutorial-modal {
        width: 90vw !important;
        max-width: 90vw;
    }
    
    .tutorial-modal.arrow-left::before,
    .tutorial-modal.arrow-right::before,
    .tutorial-modal.arrow-top::before,
    .tutorial-modal.arrow-bottom::before {
        display: none;
    }
}

/* バグレポート一覧 (マイページ・公開プロフィール共通) */

.bug-list-item {
    background: var(--frame-color-sub);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.bug-item-image {
    width: 80px;
    flex-shrink: 0;
}

.bug-item-image a {
    display: block;
    transition: ease all .4s;
}

.bug-item-image a:hover {
    opacity: .7;
}

.bug-item-image img {
    width: 80px;
    height: auto;
    display: block;
    border-radius: 2px;
    object-fit: cover;
}

.bug-item-inner {
    flex-grow: 1;
    min-width: 0;
}

.bug-list-item:last-child {
    margin-bottom: 0;
}

.bug-list-item .bug-item-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.bug-list-item .bug-item-header .bug-header-title {
    margin: 0;
    font-size: 1.1rem;
    width: calc(100% - 220px);
}

.bug-list-item .bug-item-header .bug-header-title {
    color: #fff;
}

.bug-list-item .bug-item-header .bug-meta {
    font-size: .7rem;
    color: #999;
    text-align: right;
    width: 200px;
}
.bug-list-item .bug-item-header .bug-meta span{
    display: block;
}
.bug-list-item .bug-game-title {
    font-size: .8rem;
    opacity: .85;
    margin-bottom: 3px;
}
.bug-list-item .bug-thread-title{
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
}
.bug-list-item .bug-thread-title .translation-toggle-btn{
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s;
    user-select: none;
    display: inline-block;
    font-weight: normal;
}


.bug-read-btn {
    cursor: pointer;
    font-size: 0.9rem;
}

.bug-body-contents {
    font-size: .8rem;
    opacity: .85;
    padding: 10px 0;
}
.bug-body-contents .translation-toggle-btn{
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s;
    user-select: none;
    margin-top: 10px;
    display: inline-block;
    font-weight: normal;
}

.bug-detail-link-wrap {
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}
.bug-detail-link-wrap a{
    font-size: 0.7rem;
    color: var(--gray);
}
.bug-detail-link-wrap a:hover{
    text-decoration: underline;
}

/* バグレポート 頻度・重要度タグ */
.bug-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.bug-tag-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #aaa;
}

.bug-tag-item span {
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-left: 5px;
    background-color: #0b8b25;
    color: #fff;
    border-radius: 2px;
}

.bug-tag-item span.middle {
    background-color: #ed9227;
}

.bug-tag-item span.caution {
    background-color: #af0e0e;
}

/* バグレポート 投稿画像 */
.bug-report-image {
    margin-top: 12px;
}

.bug-report-image a {
    display: inline-block;
}

.bug-report-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border: 1px solid #444;
    border-radius: 4px;
}

.bug-report-video {
    display: block;
    width: min(100%, 720px);
    max-height: 720px;
    margin-top: 12px;
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
}

a.bug-detail-link {
    color: var(--rime);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.bug-comment .bug-list-item .bug-detail{
    font-size: .8rem;
    opacity: .85;
    padding: 10px 0;
}
.bug-comment .bug-list-item .bug-detail .translation-toggle-btn{
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s;
    user-select: none;
    margin-top: 10px;
    display: inline-block;
    font-weight: normal;
}

/* ページネーション */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}
.pagination .step-links {
    display: inline-flex;
    align-items: center;
}
.pagination .step-links a {
    margin: 0 10px;
    font-size: 1.1rem;
    line-height: 1;
    color: #fff;
    letter-spacing: 1px;
    transition: ease all .3s;
}
.pagination .step-links a:hover {
    opacity: .7;
}
.pagination .step-links .current {
    width: 30px;
    height: 30px;
    background: var(--rime);
    color: #111;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    font-size: 1.1rem;
    line-height: 1;
}
@media screen and (max-width:768px){
    .card-body{
        padding: 10px;
    }
    .review-item{
        display: block;
        padding: 10px;
    }
    .review-item-inner{
        width: 100%;
    }
    .review-header{
        display: block;
    }
    .review-item-image{
        margin: 0 auto;
    }
    .review-game-title{
        width: 100%;
        margin: 10px auto;
    }
    .review-date{
        width: 100%;
        text-align: left;
    }
    .helpful-count,
    .review-actions a,
    .bug-detail-link-wrap a,
    .activity-detail-link-wrap a{
        font-size: .8rem;
    }
    .bug-list-item,
    .activity-list-item{
        padding: 10px;
        display: block;
    }
    .bug-item-image,
    .activity-item-image{
        margin: 0 auto 10px;
    }
    .bug-list-item .bug-item-header,
    .activity-list-item .activity-item-header{
        display: block;
    }
    .bug-list-item .bug-item-header .bug-header-title,
    .activity-list-item .activity-item-header .activity-header-title{
        width: 100%;
        margin: 10px auto;
    }
    .bug-list-item .bug-item-header .bug-meta,
    .activity-list-item .activity-item-header .activity-meta{
        width: 100%;
        text-align: left;
    }
}


/* アクティビティリスト (リクエスト・提案共通) */
.activity-list-item {
    background: var(--frame-color-sub);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.activity-list-item:last-child {
    margin-bottom: 0;
}

.activity-item-image {
    width: 80px;
    flex-shrink: 0;
}

.activity-item-image a {
    display: block;
    transition: ease all .4s;
}

.activity-item-image a:hover {
    opacity: .7;
}

.activity-item-image img {
    width: 80px;
    height: auto;
    display: block;
    border-radius: 2px;
    object-fit: cover;
}

.activity-item-inner {
    flex-grow: 1;
    min-width: 0;
}

.activity-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.activity-header-title {
    margin: 0;
    font-size: 1.1rem;
    width: calc(100% - 220px);
    color: #fff;
}

.activity-main-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

.activity-main-title a {
    color: #fff;
}

.activity-sub-title {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3px;
}

.activity-meta {
    font-size: .7rem;
    color: #999;
    text-align: right;
    width: 200px;
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.activity-tag-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #aaa;
}

.activity-tag-item span {
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-left: 5px;
    background-color: var(--rime);
    color: #111;
    border-radius: 2px;
}

.activity-detail-link-wrap {
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    margin-top: 10px;
}

.activity-detail-link-wrap a {
    font-size: 0.7rem;
    color: var(--gray);
}

.activity-detail-link-wrap a:hover {
    text-decoration: underline;
}
.request-detail-list{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px auto 0;
}
.request-detail-list .title{
    font-size: .8rem;
    font-weight: bold;
}
.request-detail-list ol {
    display: flex;
    flex-wrap: wrap;
}
.request-detail-list ol li {
    display: inline-block;
    border-radius: 2px;
    font-size: 0.75rem;
    position: relative;
    padding: 3px 8px;
    background: #1c1f25;
    margin-right: 10px;
}
.request-detail-genre-tag:last-child{
    margin-right: 0;
}

/* ステータスバッジ */
.status-badge {
    display: block;
    padding: 2px 10px;
    font-size: 0.7rem;
    border-radius: 2px;
    font-weight: bold;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 70px;
    text-align: center;
    position: relative;
    left: 100%;
    transform: translateX(-100%);
    margin-bottom: 5px;
}

.status-badge.open {
    background: rgba(34, 173, 91, 0.15);
    color: #22ad5b;
    border: 1px solid rgba(34, 173, 91, 0.3);
}

.status-badge.closed {
    background: rgba(219, 0, 77, 0.15);
    color: #ff6b8a;
    border: 1px solid rgba(219, 0, 77, 0.3);
}
.status-badge.prop{
    background: rgba(183, 214, 0, 0.2);
    color: var(--rime);
    border-color: var(--rime);
    width: 120px;
}

/* Eメール通知設定 */
.notification-settings-list {
    background: var(--cover-color);
    padding: 10px 15px;
    border-radius: 5px;
}

.notification-setting-item {
    margin-bottom: 10px;
}

.notification-setting-item:last-child {
    margin-bottom: 0;
}

.checkbox-label-custom {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: #ccc;
    gap: 10px;
}

.checkbox-label-custom input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label-custom span {
    line-height: 1.4;
    width: calc(100% - 26px);
}
.supporter-status-badge {
    display: inline-flex;
    width: fit-content;
    padding: 3px 7px;
    align-items: center;
    color: #111;
    background: var(--rime);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
    vertical-align: middle;
}

.avatar-section > .supporter-status-badge {
    margin-top: 8px;
}

.user-profile-header .supporter-status-badge {
    margin-left: 6px;
}
