/* ==========================================================================
   Miniature Game Empire - Core Gothic CSS Design System
   ========================================================================== */

/* 1. 【共通ゴシック・トーン】 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Outfit:wght@300;400;700&family=Sawarabi+Mincho&display=swap');

.mge-dataslate-container {
    background: #110e11;
    background-image: radial-gradient(circle at 10% 10%, rgba(255, 82, 82, 0.05), transparent),
                      radial-gradient(circle at 90% 90%, rgba(0, 184, 148, 0.03), transparent);
    border: 2px solid #2f252c;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 30px;
    color: #dfdfdf;
    font-family: 'Outfit', 'Sawarabi Mincho', sans-serif;
    margin: 30px 0;
}

/* 2. 【市民データスレートヘッダー】 */
.mge-dataslate-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    border-bottom: 3px double #2c1b24;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.mge-header-avatar {
    flex-shrink: 0;
}

.mge-avatar-glow {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #ff5252, #2c1b24);
    box-shadow: 0 0 20px rgba(255, 82, 82, 0.3);
}

.mge-avatar-glow img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 2px solid #110e11;
}

.mge-header-info {
    flex-grow: 1;
}

.mge-citizen-class-tag {
    font-family: 'Cinzel', serif;
    color: #e1b12c;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(225, 177, 44, 0.3);
}

.mge-citizen-name {
    color: #fff;
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.mge-citizen-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    font-size: 0.9rem;
    color: #bbb;
}

.mge-code {
    background: #1c151b;
    border: 1px solid #ff525233;
    color: #ff5252;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95rem;
}

.mge-faction-label {
    color: #00b894;
    font-weight: bold;
}

/* 3. 【ダッシュボードレイアウトグリッド】 */
.mge-dataslate-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .mge-dataslate-grid {
        grid-template-columns: 1fr;
    }
}

/* 4. 【ゴシック・カード・デザイン】 */
.mge-card {
    background: #161216;
    border: 1px solid #231b21;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

.mge-card-header {
    background: #1c151b;
    border-bottom: 1px solid #2c1b24;
    padding: 15px 20px;
}

.mge-card-header h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #ff5252;
    letter-spacing: 1px;
}

.mge-card-body {
    padding: 20px;
}

/* EDM allocation rules shared by registration and citizen records. */
.mge-edm-rules {
    margin: 0 0 28px;
    padding: 20px;
    border: 1px solid #8f6b18;
    border-left: 4px solid #e1b12c;
    background: #15110f;
    box-shadow: inset 0 0 0 1px rgba(225, 177, 44, 0.08);
}

.mge-edm-rules-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(225, 177, 44, 0.28);
}

.mge-edm-rules-heading h3 {
    margin: 0;
    color: #f2d77f;
    font-family: 'Cinzel', 'Sawarabi Mincho', serif;
    font-size: 1.15rem;
}

.mge-edm-rules-kicker {
    color: #9d7b32;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 800;
}

.mge-edm-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 14px;
    background: rgba(225, 177, 44, 0.18);
    border: 1px solid rgba(225, 177, 44, 0.18);
}

.mge-edm-rule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 12px 14px;
    background: #1b1615;
}

.mge-edm-rule-row strong {
    color: #e8e1d2;
    font-size: 0.86rem;
}

.mge-edm-rule-row span {
    flex-shrink: 0;
    color: #e1b12c;
    font-weight: 700;
    font-size: 0.84rem;
}

.mge-edm-rules-note {
    margin: 14px 0 0;
    color: #aaa096;
    font-size: 0.78rem;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .mge-edm-rules-heading,
    .mge-edm-rule-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mge-edm-rules-grid {
        grid-template-columns: 1fr;
    }
}

/* EDMウォレット装飾 */
.mge-edm-balance-box {
    text-align: center;
    padding: 30px 20px;
    background-image: radial-gradient(circle, rgba(225, 177, 44, 0.05), transparent);
}

.mge-edm-amount {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #e1b12c;
    line-height: 1;
    display: inline-block;
    text-shadow: 0 0 25px rgba(225, 177, 44, 0.4);
}

.mge-edm-unit {
    font-size: 1.2rem;
    color: #e1b12c;
    font-weight: bold;
    margin-left: 5px;
}

.mge-edm-desc {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    line-height: 1.6;
    margin-top: 20px;
    border-top: 1px solid #2c1b24;
    padding-top: 15px;
}

/* 5. 【ゴシックボタン】 */
.mge-btn {
    display: inline-block;
    padding: 10px 24px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.mge-btn-gothic {
    background: #ff5252;
    color: #fff !important;
    border: 1px solid #d63031;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.2);
}

.mge-btn-gothic:hover {
    background: #ff7675;
    box-shadow: 0 0 20px rgba(255, 82, 82, 0.4);
    transform: translateY(-2px);
}

/* 6. 【聖遺物リスト（お便り作品一覧）】 */
.mge-relics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mge-relic-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #231b21;
}

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

.mge-relic-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #251b21;
    border: 1px solid #444;
    flex-shrink: 0;
}

.mge-relic-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mge-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.5rem;
}

.mge-relic-item-info {
    flex-grow: 1;
}

.mge-relic-item-title {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
}

.mge-relic-item-date {
    font-size: 0.8rem;
    color: #888;
    margin-right: 10px;
}

/* ステータスバッジ */
.mge-relic-status-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.mge-status-publish {
    background: rgba(0, 184, 148, 0.15);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.3);
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.1);
}

.mge-status-pending {
    background: rgba(225, 177, 44, 0.15);
    color: #e1b12c;
    border: 1px solid rgba(225, 177, 44, 0.3);
}

.mge-status-draft {
    background: rgba(223, 230, 233, 0.1);
    color: #b2bec3;
    border: 1px solid rgba(223, 230, 233, 0.2);
}

.mge-empty-state {
    text-align: center;
    padding: 40px 10px;
    color: #777;
    font-style: italic;
    font-size: 0.9rem;
}

/* ==========================================================================
   羊皮紙風「聖遺物奉納」デザイン枠 (シングルページテンプレート用)
   ========================================================================== */
.relic-parchment-container {
    background-color: #f6ebd4;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4), rgba(0,0,0,0.06)),
                      url('https://www.transparenttextures.com/patterns/dark-matter.png'); /* 羊皮紙テクスチャ代替 */
    border: 12px double #8a7355;
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
    border-radius: 2px;
    padding: 40px;
    font-family: 'Georgia', 'Sawarabi Mincho', serif;
    color: #2b1f1d;
    max-width: 800px;
    margin: 40px auto;
    position: relative;
}

/* 聖遺物ヘッダーシール */
.relic-header-seal {
    text-align: center;
    margin-bottom: 25px;
}

.relic-seal-icon {
    font-size: 2.2rem;
    color: #9c27b0; /* 帝国封蝋パープル */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    display: inline-block;
    border: 2px solid #9c27b0;
    width: 60px;
    height: 60px;
    line-height: 54px;
    border-radius: 50%;
    background: rgba(156, 39, 176, 0.05);
}

.relic-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a0f0d;
    margin: 0 0 10px 0;
    border-bottom: 1px solid rgba(138, 115, 85, 0.3);
    padding-bottom: 15px;
}

.relic-vower-name {
    text-align: center;
    font-style: italic;
    color: #5c4a45;
    font-size: 1.1rem;
    margin-bottom: 30px;
    display: block;
}

.relic-image-wrapper {
    border: 1px solid #c4b39b;
    padding: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 35px;
    text-align: center;
}

.relic-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.relic-commentary {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3d2b27;
    margin-bottom: 35px;
    padding: 0 10px;
}

.relic-meta-data {
    text-align: center;
    border-top: 1px dashed rgba(138, 115, 85, 0.4);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #6e5953;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
}

/* ==========================================================================
   【帝国市民登記 ＆ 精神同調】ログイン・登記フォーム専用プレミアムスタイル
   ========================================================================== */

/* ログイン・登記共通コンテナ */
.mge-login-prompt-container,
.mge-register-container {
    background: #110c0e;
    background-image: radial-gradient(circle at 50% 0%, rgba(214, 48, 49, 0.15), transparent),
                      radial-gradient(circle at 50% 100%, rgba(225, 177, 44, 0.03), transparent);
    border: 2px solid #2f2127;
    border-top: 3px solid #d63031;
    border-bottom: 3px solid #e1b12c;
    padding: 50px 40px;
    border-radius: 8px;
    max-width: 650px;
    margin: 40px auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8),
                inset 0 0 30px rgba(214, 48, 49, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 装飾的な四角（ゴシック紋章風） */
.mge-login-prompt-container::before,
.mge-register-container::before {
    content: "✠";
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(214, 48, 49, 0.05);
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
}

/* フォームタイトル上ロゴ */
.mge-gothic-logo {
    font-size: 3.5rem;
    color: #d63031;
    text-shadow: 0 0 25px rgba(214, 48, 49, 0.6);
    margin-bottom: 15px;
    text-align: center;
    animation: mge-pulse-logo 3s infinite ease-in-out;
}

.mge-gothic-title {
    color: #ff5252;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 1.9rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 15px rgba(255, 82, 82, 0.2);
}

.mge-gothic-intro-text {
    color: #dfdfdf;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 35px;
    font-family: 'Sawarabi Mincho', serif;
    padding: 0 15px;
    border-left: 1px solid rgba(214, 48, 49, 0.3);
    border-right: 1px solid rgba(214, 48, 49, 0.3);
}

/* フォーム構造 */
.mge-gothic-form {
    text-align: left;
}

.mge-form-group {
    margin-bottom: 22px;
    position: relative;
}

.mge-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .mge-form-row-two {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.mge-gothic-form label {
    display: block;
    font-family: 'Cinzel', 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e1b12c;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* インプット・セレクト */
.mge-input,
.mge-select {
    width: 100%;
    background: #181216 !important;
    border: 1px solid #4a363f !important;
    border-bottom: 1px solid #8a7355 !important; /* 金のアクセント */
    color: #fff !important;
    padding: 12px 16px !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5) !important;
}

.mge-input::placeholder {
    color: #55444e !important;
}

.mge-input:focus,
.mge-select:focus {
    border-color: #ff5252 !important;
    border-bottom-color: #ff5252 !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5),
                0 0 12px rgba(255, 82, 82, 0.4) !important;
    background: #1d141a !important;
    transform: translateY(-1px);
}

.mge-input-desc {
    font-size: 0.75rem;
    color: #88717b;
    margin: 5px 0 0 0;
    font-style: italic;
}

/* チェックボックス */
.mge-form-options {
    margin-bottom: 25px;
}

.mge-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem !important;
    color: #bbb !important;
    font-weight: normal !important;
}

.mge-checkbox-label input[type="checkbox"] {
    accent-color: #d63031;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* フォームアクション */
.mge-form-actions {
    text-align: center;
    margin-bottom: 25px;
}

.mge-form-actions .mge-btn-gothic {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    cursor: pointer;
}

/* 登録フッター */
.mge-registration-prompt-footer {
    border-top: 1px double #2c1b24;
    padding-top: 25px;
    margin-top: 25px;
    text-align: center;
}

.mge-registration-prompt-footer p {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin: 0 0 15px 0;
}

.mge-btn-gothic-secondary {
    display: inline-block;
    border: 1px solid #8a7355;
    background: transparent;
    color: #dfdfdf !important;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.mge-btn-gothic-secondary:hover {
    border-color: #e1b12c;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(225, 177, 44, 0.25);
    background: rgba(225, 177, 44, 0.02);
    transform: translateY(-1px);
}

/* メッセージ表示ボックス（AJAXフィードバック用） */
.mge-ajax-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    animation: mge-fade-in 0.4s ease-out;
}

.mge-error-msg {
    background: rgba(214, 48, 49, 0.1) !important;
    border: 1px solid #d63031 !important;
    color: #ff7675 !important;
    box-shadow: 0 0 15px rgba(214, 48, 49, 0.2) !important;
    animation: mge-shake 0.4s ease-in-out;
}

.mge-success-msg {
    background: rgba(0, 184, 148, 0.08) !important;
    border: 1px solid #00b894 !important;
    color: #55efc4 !important;
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.25) !important;
}

/* すでにログインしている場合の追加調整 */
.mge-register-already-logged {
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ローディングオーバーレイ演出 */
.mge-loading-active {
    position: relative;
}

.mge-loading-active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 12, 14, 0.75);
    backdrop-filter: blur(2px);
    z-index: 10;
    border-radius: 8px;
    animation: mge-fade-in 0.3s ease-out;
}

/* ローディングスピナー（ゴシック風） */
.mge-loading-active::before {
    content: "✠";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff5252;
    font-size: 4rem;
    z-index: 11;
    animation: mge-spin-pulsate 1.5s infinite linear;
    text-shadow: 0 0 20px rgba(255, 82, 82, 0.8);
}

/* ==========================================================================
   アニメーション定義
   ========================================================================== */

@keyframes mge-pulse-logo {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(214, 48, 49, 0.4));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(214, 48, 49, 0.8));
    }
}

@keyframes mge-spin-pulsate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.15);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(0.9);
        opacity: 0.6;
    }
}

@keyframes mge-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mge-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ==========================================================================
   【帝国市民籍抹消（退会機能）】プレミアム危険系デザイン
   ========================================================================== */

.mge-citizen-purge-section {
    margin-top: 50px;
    border-top: 1px dashed rgba(214, 48, 49, 0.3);
    padding-top: 40px;
    text-align: center;
}

.mge-btn-gothic-danger-toggle {
    background: transparent;
    color: #ff7675 !important;
    border: 1px dashed rgba(214, 48, 49, 0.5);
    font-family: 'Cinzel', 'Sawarabi Mincho', serif;
    font-size: 0.9rem;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 1px;
}

.mge-btn-gothic-danger-toggle:hover {
    background: rgba(214, 48, 49, 0.05);
    border-color: #d63031;
    color: #ff5252 !important;
    box-shadow: 0 0 15px rgba(214, 48, 49, 0.2);
}

.mge-purge-confirm-box {
    text-align: left;
}

.mge-btn-gothic-danger-confirm {
    background: #2d1316;
    color: #ff7675 !important;
    border: 1px solid #d63031;
    box-shadow: 0 0 10px rgba(214, 48, 49, 0.2);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    padding: 12px 28px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mge-btn-gothic-danger-confirm:hover:not(:disabled) {
    background: #d63031 !important;
    color: #fff !important;
    box-shadow: 0 0 25px rgba(214, 48, 49, 0.6) !important;
    transform: translateY(-2px);
}

.mge-btn-gothic-danger-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #181214 !important;
    border-color: #382527 !important;
    color: #634b4d !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 危険な脈動（インサイド警告） */
.mge-purge-active-pulsate {
    animation: mge-danger-pulse 2s infinite ease-in-out;
}

@keyframes mge-danger-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(214, 48, 49, 0.15), inset 0 0 20px rgba(214, 48, 49, 0.05);
        border-color: rgba(214, 48, 49, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(214, 48, 49, 0.35), inset 0 0 30px rgba(214, 48, 49, 0.15);
        border-color: rgba(214, 48, 49, 0.9);
    }
}

/* ==========================================================================
   【今週の聖遺物】プレミアムゴシック奉納フォーム専用スタイル
   ========================================================================== */

.mge-relic-vow-section {
    margin-top: 50px;
    border-top: 1px dashed rgba(225, 177, 44, 0.2);
    padding-top: 40px;
}

.mge-relic-vow-box {
    background: #110d12;
    background-image: radial-gradient(circle at 50% 0%, rgba(156, 39, 176, 0.12), transparent),
                      radial-gradient(circle at 50% 100%, rgba(225, 177, 44, 0.04), transparent);
    border: 2px solid #231b24;
    border-top: 3px solid #9c27b0; /* 高貴な紫 */
    border-bottom: 3px solid #e1b12c; /* 神聖な金 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7),
                inset 0 0 25px rgba(156, 39, 176, 0.03);
    position: relative;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mge-relic-vow-box .mge-card-header {
    border-bottom: 1px solid rgba(156, 39, 176, 0.15) !important;
}

/* ドラッグ＆ドロップ対応ドロップゾーン */
.mge-image-uploader-dropzone {
    border: 2px dashed #4e3c4e;
    background: #0a060b;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.mge-image-uploader-dropzone:hover {
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.03);
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.15);
}

/* ドラッグ中のエフェクト（高貴な紫色発光） */
.mge-image-uploader-dropzone.mge-drag-over {
    border-color: #ff5252;
    background: rgba(156, 39, 176, 0.08);
    box-shadow: 0 0 30px rgba(156, 39, 176, 0.3),
                inset 0 0 15px rgba(156, 39, 176, 0.2);
    transform: scale(1.01);
}

.mge-dropzone-icon {
    font-size: 3rem;
    color: #4e3c4e;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.mge-image-uploader-dropzone:hover .mge-dropzone-icon,
.mge-image-uploader-dropzone.mge-drag-over .mge-dropzone-icon {
    color: #9c27b0;
    text-shadow: 0 0 15px rgba(156, 39, 176, 0.5);
}

.mge-dropzone-text {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

.mge-dropzone-text strong {
    color: #e1b12c;
}

.mge-dropzone-limits {
    font-size: 0.75rem;
    color: #634f63;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* リアルタイム写真プレビュー */
.mge-relic-preview-container {
    margin-top: 15px;
    display: none; /* 初期非表示 */
    position: relative;
    max-width: 320px;
}

.mge-relic-preview-wrapper {
    border: 3px double #e1b12c; /* 神聖な金枠 */
    padding: 8px;
    background: #050406;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.mge-relic-preview-image {
    max-width: 100%;
    max-height: 240px;
    display: block;
    object-fit: contain;
}

.mge-relic-preview-remove-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #d63031;
    color: #fff !important;
    border: 1px solid #ff7675;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.mge-relic-preview-remove-btn:hover {
    background: #ff5252;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(214, 48, 49, 0.6);
}

