.exvs-mypage-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    color: #eee;
    font-family: sans-serif;
}
.exvs-mp-field {
    margin-bottom: 24px;
}
.exvs-mp-field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ccc;
}
.exvs-mp-basic-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.exvs-mp-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #333;
}
.exvs-mp-basic-row input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #eee;
    font-size: 14px;
}
.exvs-mp-rank-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.exvs-mp-sublabel {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 400;
}
.exvs-mp-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.exvs-mp-search-target {
    width: auto;
    flex-shrink: 0;
    font-size: 12px;
    padding: 8px 8px;
}
.exvs-mp-unit-search {
    flex: 1;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #eee;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 0;
}
.exvs-mp-unit-search-icon {
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 14px 14px;
}
.exvs-mp-units-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.exvs-mp-unit-box {
    border: 1px dashed #555;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}
.exvs-mp-unit-slot-label {
    font-size: 10px;
    color: #999;
    margin-bottom: -2px;
}
.exvs-mp-cost-filter {
    font-size: 11px;
    padding: 5px 8px;
}
select, textarea, input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #eee;
    font-size: 13px;
    box-sizing: border-box;
}
textarea {
    resize: vertical;
}
.exvs-mp-day-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.exvs-mp-day-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.exvs-mp-day-btn.active {
    background: #d4b23c;
    border-color: #d4b23c;
    color: #1a1a1a;
    font-weight: 700;
}
.exvs-mp-time-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.exvs-mp-time-select {
    width: 62px;
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #eee;
    font-size: 14px;
}
.exvs-mp-time-colon {
    color: #aaa;
    font-size: 14px;
}
.exvs-mp-time-sep,
.exvs-mp-time-unit {
    color: #aaa;
    font-size: 13px;
}
.exvs-mp-time-error {
    color: #e05a5a;
    font-size: 12px;
    margin-top: 6px;
}
.exvs-mp-series-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.exvs-mp-series-btn {
    padding: 8px 14px;
    border-radius: 6px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.exvs-mp-series-btn.active {
    background: #d4b23c;
    border-color: #d4b23c;
    color: #1a1a1a;
}
.exvs-card-sublabel {
    font-size: 11px;
    color: #999;
    margin: 8px 0 8px !important;
}
.exvs-card-playtime-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #bbb;
    margin-bottom: 8px;
}
.exvs-card-playdays {
    background: #2a2a2a;
    border-radius: 4px;
    padding: 3px 8px;
}
.exvs-badge-series {
    background: #2a2a2a;
    color: #777;
    border: 1px solid #444;
    opacity: 0.6;
}
.exvs-badge-series.is-active {
    background: #3a3020;
    color: #d4b23c;
    border: 1px solid #d4b23c;
    opacity: 1;
    font-weight: 700;
}
.exvs-mp-save-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(180deg, #378ADD, #2A6DB0);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.exvs-mp-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.exvs-mp-status {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
}
.exvs-mp-status.success { color: #7cf05e; }
.exvs-mp-status.error { color: #ff6b93; }

@media (max-width: 600px) {
    .exvs-mp-units-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .exvs-mp-rank-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   詳細画面（自分用・他人用共通）
   ========================================== */
.exvs-mypage-outer {
    max-width: 640px;
    margin: 0 auto;
}
.exvs-detail-wrap {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    color: #eee;
    font-family: sans-serif;
}
.exvs-detail-action-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
}
.exvs-like-btn {
    background: #E24B4A;
    color: #fff;
}
.exvs-like-btn.liked {
    background: #444;
}
.exvs-edit-btn {
    background: #378ADD;
    color: #fff;
}
.exvs-cancel-btn {
    background: #333;
    color: #ccc;
}
.exvs-detail-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.exvs-detail-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
    flex-shrink: 0;
    align-self: center;
}
.exvs-detail-pid {
    font-size: 10px;
    color: #999;
    margin: 0 0 2px;
}
.exvs-detail-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.exvs-detail-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.exvs-detail-rank-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.exvs-badge {
    display: inline-block !important;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #2a3a4a;
    color: #7ab8ff;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
}
.exvs-badge-rank {
    background: #4a3a1a;
    color: #f0c060;
}
.exvs-badge-win {
    background: #1a3a1a;
    color: #7cf05e;
}
.exvs-badge-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0;
}
.exvs-mini-label {
    font-size: 8px;
    color: #888;
    line-height: 1.2;
}
.exvs-mini-label-static {
    position: static;
    display: inline-block;
    font-size: 10px;
    color: #999;
    margin-right: 2px;
}
.exvs-likerow-playtime-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #bbb;
}
.exvs-detail-body {
    margin-top: 16px;
}
.exvs-detail-section {
    margin-bottom: 16px;
}
.exvs-detail-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px !important;
}
.exvs-favorite-block {
    position: relative;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #000;
    background-color: #0a0a0a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Ctext x='0' y='24' font-family='Arial, sans-serif' font-weight='700' font-size='15' letter-spacing='2' fill='rgba(90,255,140,0.42)'%3EEXVS%3C/text%3E%3Ctext x='70' y='60' font-family='Arial, sans-serif' font-weight='700' font-size='15' letter-spacing='2' fill='rgba(90,190,255,0.42)'%3EEXVS%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 140px 70px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
    animation: exvsFavoriteTextSlide 10s linear infinite;
}
@keyframes exvsFavoriteTextSlide {
    0% { background-position: 0 0; }
    100% { background-position: 140px -70px; }
}
.exvs-detail-units {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.exvs-detail-unit {
    background: #2a2a2a;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
}
.exvs-detail-unit-frame {
    position: relative;
    width: 100%;
    height: 68px;
    border-radius: 4px;
    margin-bottom: 4px;
    overflow: hidden;
    isolation: isolate;
    padding: 1.5px;
    background-image: linear-gradient(#111, #111), conic-gradient(from var(--exvs-unit-a, 0deg), #378ADD, transparent 40%, #378ADD);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: exvsUnitBorderRotate 2.4s linear infinite;
}
@keyframes exvsUnitBorderRotate {
    to { --exvs-unit-a: 360deg; }
}
@property --exvs-unit-a {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.exvs-detail-unit-frame img,
.exvs-detail-unit-frame .exvs-detail-unit-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 3px;
    background: #111;
    margin: 0;
}
.exvs-detail-unit-grid {
    display: none;
}

.exvs-detail-star {
    display: block;
    font-size: 10px;
    color: #f0c060;
    margin-top: 4px;
}
.exvs-detail-empty {
    font-size: 12px;
    color: #777;
}
.exvs-detail-comment {
    font-size: 13px;
    color: #ccc;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 8px;
    line-height: 1.5;
}

/* ==========================================
   一覧画面
   ========================================== */
.exvs-list-wrap {
    max-width: 960px;
    margin: 0 auto;
}
.exvs-search-form {
    position: relative;
    background: linear-gradient(160deg, #1b2431, #12161c);
    border: 1px solid #2f3f52;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.exvs-search-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #378ADD, transparent);
    border-radius: 2px;
}
.exvs-search-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.exvs-search-row:last-child {
    margin-bottom: 0;
}
.exvs-search-row-main {
    align-items: center;
}
.exvs-search-input,
.exvs-search-select {
    flex: 1;
    min-width: 140px;
    max-width: 260px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #12161c;
    border: 1px solid #3a4a5e;
    color: #eee;
    font-size: 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.exvs-search-input:focus,
.exvs-search-select:focus {
    outline: none;
    border-color: #378ADD;
    box-shadow: 0 0 0 3px rgba(55,138,221,0.25);
}
.exvs-search-input::placeholder {
    color: #6a7688;
}
.exvs-search-row-main .exvs-search-input {
    max-width: 320px;
    background: #12161c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a7688' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 12px center;
    padding-left: 34px;
}
.exvs-search-btn {
    padding: 10px 26px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4a9eef, #2a6db0);
    border: 1px solid #5ab0ff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex: 0 0 auto;
    box-shadow: 0 4px 10px rgba(55,138,221,0.35);
}
.exvs-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(55,138,221,0.5);
}
.exvs-search-btn:active {
    transform: translateY(0);
}
.exvs-search-toggle {
    padding: 10px 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #3a4a5e;
    color: #9fb0c4;
    font-size: 12px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.exvs-search-toggle:hover,
.exvs-search-toggle[aria-expanded="true"] {
    background: rgba(55,138,221,0.15);
    color: #fff;
    border-color: #378ADD;
}
.exvs-search-filters {
    display: none;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #2f3f52;
    animation: exvsFilterFadeIn 0.2s ease;
}
.exvs-search-filters.is-open {
    display: block;
}
@keyframes exvsFilterFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.exvs-search-rank-group {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #333;
}
.exvs-search-rank-label {
    font-size: 11px;
    color: #999;
    margin: 0 0 6px;
}
.exvs-search-clear {
    display: inline-block;
    color: #999;
    font-size: 12px;
    text-decoration: underline;
    margin-top: 8px;
}
@media (max-width: 640px) {
    .exvs-search-input,
    .exvs-search-select {
        min-width: 100%;
        max-width: 100%;
    }
    .exvs-search-row-main .exvs-search-input {
        max-width: 100%;
    }
    .exvs-search-btn,
    .exvs-search-toggle {
        flex: 1 1 auto;
    }
}
.exvs-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.exvs-pagination-link {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 6px;
    background: #1e1e1e;
    border: 1px solid #444;
    color: #ccc;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.exvs-pagination-link:hover {
    background: #2a2a2a;
}
.exvs-pagination-link.is-active {
    background: #378ADD;
    border-color: #378ADD;
    color: #fff;
    font-weight: 700;
}
@media (min-width: 900px) {
    .exvs-list-wrap {
        max-width: 1320px;
    }
}
.exvs-list-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}
.exvs-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
@media (min-width: 900px) {
    .exvs-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.exvs-card {
    display: block;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: #eee;
    font-family: sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}
.exvs-card:hover {
    border-color: #378ADD;
    box-shadow: 0 4px 12px rgba(55,138,221,0.35);
}
.exvs-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.exvs-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
    flex-shrink: 0;
}
.exvs-card-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    word-break: break-word;
    line-height: 1.3;
}
.exvs-card-units {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.exvs-card-unit {
    flex: 1;
    height: 44px;
    border-radius: 6px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.exvs-card-unit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.exvs-card-unit span {
    font-size: 10px;
    color: #777;
}
.exvs-card-rank-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.exvs-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.exvs-card-badges .exvs-rank-hex-outer {
    min-width: 82px;
    height: 20px;
}
.exvs-card-badges .exvs-rank-hex-text {
    padding: 0 12px;
}
@media (min-width: 900px) {
    .exvs-card-badges .exvs-rank-hex-outer,
    .exvs-card-rank-row .exvs-rank-hex-outer {
        min-width: 74px;
    }
}
.exvs-card-badges .exvs-rank-class {
    font-size: 10px;
}
.exvs-card-badges .exvs-rank-grade {
    font-size: 9px;
}
.exvs-card-comment {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
    word-break: break-word;
}

/* ==========================================
   いいね管理ページ
   ========================================== */
.exvs-likelist-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    color: #eee;
    font-family: sans-serif;
}
.exvs-likelist-tabs {
    display: flex;
    border-bottom: 1px solid #333;
}
.exvs-likelist-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
}
.exvs-likelist-tab.active {
    color: #378ADD;
    border-bottom: 2px solid #378ADD;
}
.exvs-likelist-panel {
    padding: 6px 0;
}
.exvs-likerow {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #2a2a2a;
    text-decoration: none;
    color: #eee;
}
.exvs-likerow:last-child {
    border-bottom: none;
}
.exvs-likerow-line1 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.exvs-likerow-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
    flex-shrink: 0;
    align-self: center;
}
.exvs-likerow-rank-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.exvs-likerow-line3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.exvs-likerow-badges {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0 !important;
    min-width: max-content !important;
}
.exvs-likerow-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    word-break: break-word;
}
.exvs-likerow-units3 {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}
.exvs-likerow-unit3 img,
.exvs-likerow-unit-ph {
    width: 40px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
    background: #2a2a2a;
    border: 1px solid #444;
    display: block;
}

/* ==========================================
   未読バッジ
   ========================================== */
.exvs-unread-badge {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #E24B4A;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    margin-left: 4px;
}

/* ==========================================
   ランク帯バッジ（六角形・対角線分割・淡金文字）
   ========================================== */
.exvs-rank-badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}
.exvs-rank-hex-outer {
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
    display: inline-flex;
    min-width: 96px;
    height: 24px;
    position: relative;
    overflow: visible;
    box-shadow: 0 3px 6px rgba(0,0,0,0.7);
}
.exvs-rank-hex-top {
    position: absolute;
    inset: 0;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 100%);
    z-index: 1;
}
.exvs-rank-hex-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%);
    pointer-events: none;
}
.exvs-rank-hex-bottom {
    position: absolute;
    inset: 0;
    clip-path: polygon(100% 35%, 100% 100%, 0 100%, 0 100%);
    z-index: 1;
}
.exvs-rank-hex-line {
    position: absolute;
    inset: 0;
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
    border: 2px solid rgba(255,255,255,0.5);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 3;
}
.exvs-rank-hex-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 16px;
    min-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}
.exvs-rank-hex-text.exvs-rank-center {
    justify-content: center;
}
.exvs-rank-hex-text.exvs-rank-center {
    align-items: center;
    justify-content: center;
}
.exvs-rank-class {
    font-size: 12px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.5px;
    color: #ffe8b0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    white-space: nowrap;
}
.exvs-rank-grade {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffe8b0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    white-space: nowrap;
}
.exvs-rank-pilot .exvs-rank-hex-top { background: #2f6fd6; }
.exvs-rank-pilot .exvs-rank-hex-bottom { background: #0d2e63; }
.exvs-rank-valiant .exvs-rank-hex-top { background: #e0a820; }
.exvs-rank-valiant .exvs-rank-hex-bottom { background: #7a4f04; }
.exvs-rank-ace .exvs-rank-hex-top { background: #d63030; }
.exvs-rank-ace .exvs-rank-hex-bottom { background: #5c0808; }
.exvs-rank-extreme .exvs-rank-hex-top { background: #8a30e0; }
.exvs-rank-extreme .exvs-rank-hex-bottom { background: #340863; }

/* ==========================================
   熟練度バッジ（長方形・二重枠線）
   ========================================== */
.exvs-prof-box-outer {
    width: 100%;
    height: 20px;
    margin: 0 auto;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.6);
    box-sizing: border-box;
}
.exvs-prof-box-mid {
    position: absolute;
    inset: 2px;
    border-radius: 3px;
}
.exvs-prof-box-inner {
    position: absolute;
    inset: 4px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.exvs-prof-stars {
    font-size: 9px;
    white-space: nowrap;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}
.exvs-prof-stars .on { color: #fff; }
.exvs-prof-stars .off { color: rgba(255,255,255,0.25); }

.exvs-prof-blue { background: #0d2438; }
.exvs-prof-blue .exvs-prof-box-mid { background: #8fc4ff; }
.exvs-prof-blue .exvs-prof-box-inner { background: linear-gradient(135deg,#4a8fe0,#173a63); }

.exvs-prof-orange { background: #4a2e02; }
.exvs-prof-orange .exvs-prof-box-mid { background: #ffcf8a; }
.exvs-prof-orange .exvs-prof-box-inner { background: linear-gradient(135deg,#e69a3a,#7a4a06); }

.exvs-prof-silver { background: #3a4146; }
.exvs-prof-silver .exvs-prof-box-mid { background: #ffffff; }
.exvs-prof-silver .exvs-prof-box-inner { background: linear-gradient(135deg,#c8d0d4,#5f6a70); }

.exvs-prof-gold { background: #5a3e08; }
.exvs-prof-gold .exvs-prof-box-mid { background: #fff3c4; }
.exvs-prof-gold .exvs-prof-box-inner { background: linear-gradient(135deg,#e6c458,#8f6812); }

.exvs-prof-master { background: #1a0538; }
.exvs-prof-master .exvs-prof-box-mid { background: #c060ff; }
.exvs-prof-master .exvs-prof-box-inner { background: linear-gradient(135deg,#3a0c8a,#0d0224); }

.exvs-prof-legend { background: #1a1030; }
.exvs-prof-legend .exvs-prof-box-mid { background: #ffb703; }
.exvs-prof-legend .exvs-prof-box-inner { background: linear-gradient(135deg,#1a1a2e,#000); }

.exvs-prof-special-text {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
    font-style: italic;
}
.exvs-prof-master-text {
    background: linear-gradient(180deg,#f0d9ff 0%,#c060ff 40%,#7b2ff7 60%,#e0c4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 3px rgba(192,96,255,0.9)) drop-shadow(0 1px 1px rgba(0,0,0,0.8));
}
.exvs-prof-legend-text {
    background: linear-gradient(90deg,#ffd700 0%,#fff8dc 25%,#ffd700 50%,#fff8dc 75%,#ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 4px rgba(255,215,0,0.8)) drop-shadow(0 1px 1px rgba(0,0,0,0.9));
}

/* ==========================================
   ホーム画面（マッチング機能TOP）
   ========================================== */
.exvs-home-wrap {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: transparent;
    padding: 0 24px 20px;
    overflow: hidden;
}
@media (max-width: 640px) {
    .exvs-home-wrap {
        padding: 0 10px 20px;
    }
}
.exvs-home-inner {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 12px;
}
.exvs-home-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.exvs-logo-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1080px;
    aspect-ratio: 640 / 220;
    margin: 0 auto 0;
    border-radius: 12px;
    overflow: hidden;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.exvs-logo-wrap:hover {
    transform: scale(1.01);
    filter: brightness(1.08);
}
.exvs-logo-bg-svg,
.exvs-logo-fg-svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.exvs-logo-fg-svg {
    pointer-events: none;
}
.exvs-logo-canvas-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}
.exvs-logo-blink {
    animation: exvsLogoBlink 0.9s steps(1) infinite;
}
@keyframes exvsLogoBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.exvs-logo-menu {
    position: relative;
    max-width: 640px;
    margin: 0 auto 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.35s ease;
}
.exvs-logo-menu.is-open {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
}
.exvs-logo-menu-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.exvs-logo-menu-panel-sub {
    display: none;
}
.exvs-logo-menu.is-rank .exvs-logo-menu-panel-sub {
    display: block;
}
.exvs-logo-menu.is-rank #exvsMenuMain {
    display: none;
}
.exvs-logo-menu-rank-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.exvs-logo-menu-item {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    background: linear-gradient(180deg, #1b2431, #141a24);
    border: 1px solid #2f3f52;
    color: #cfe0f5;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.exvs-logo-menu-item:hover {
    transform: translateY(-8px);
    border-color: #378ADD;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 14px rgba(55,138,221,0.5);
}
.exvs-logo-menu-logout {
    color: #ff9d9d;
    border-color: #5a2f2f;
}
.exvs-logo-menu-logout:hover {
    border-color: #e05a5a;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 14px rgba(224,90,90,0.5);
}
.exvs-logo-menu-back {
    background: none;
    border: none;
    color: #8ea0b5;
    font-size: 12px;
    padding: 4px 0;
    cursor: pointer;
}
.exvs-logo-menu-back:hover {
    color: #cfe0f5;
}
@media (max-width: 640px) {
    .exvs-logo-menu-panel,
    .exvs-logo-menu-rank-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.exvs-home-desc {
    max-width: 620px;
    margin: 24px auto 32px;
    font-size: 13px;
    line-height: 1.9;
    color: #cfd8e3;
    text-align: left;
    animation: exvsFadeDown 0.6s ease 0.15s both;
}
.exvs-home-desc-note {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #8a97a8;
}
.exvs-home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 640px) {
    .exvs-home-grid {
        grid-template-columns: 1fr;
    }
}
.exvs-home-card {
    position: relative;
    display: block;
    background: linear-gradient(160deg, #1b2431 0%, #141a24 100%);
    border: 1px solid #2f3f52;
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none;
    color: #eee;
    animation: exvsCardIn 0.5s cubic-bezier(.2,.8,.3,1.3) both;
    transition: transform 0.25s cubic-bezier(.2,.8,.3,1.3), border-color 0.25s ease, box-shadow 0.25s ease;
}
.exvs-home-grid .exvs-home-card:nth-child(1) { animation-delay: 0.3s; }
.exvs-home-grid .exvs-home-card:nth-child(2) { animation-delay: 0.42s; }
.exvs-home-grid .exvs-home-card:nth-child(3) { animation-delay: 0.54s; }
.exvs-home-grid .exvs-home-card:nth-child(4) { animation-delay: 0.66s; }
.exvs-home-card:hover,
.exvs-home-card:focus-visible {
    border-color: #378ADD;
    box-shadow: 0 0 24px rgba(55,138,221,0.45);
    transform: translateY(-4px) scale(1.02);
}
.exvs-home-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.exvs-home-card-icon {
    font-size: 22px;
    filter: drop-shadow(0 0 6px rgba(55,138,221,0.8));
}
.exvs-home-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.exvs-home-card-sub {
    font-size: 12px;
    color: #9aa7b8;
    margin: 0;
}
.exvs-home-rank-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.exvs-home-rank-btn {
    display: block;
    text-align: center;
    padding: 9px 6px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2a3646, #1a222d);
    border: 1px solid #3a4a5e;
    color: #cfe0f5;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    animation: exvsCardIn 0.35s cubic-bezier(.34,1.56,.64,1) both;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.exvs-home-rank-buttons .exvs-home-rank-btn:nth-child(1) { animation-delay: 0.75s; }
.exvs-home-rank-buttons .exvs-home-rank-btn:nth-child(2) { animation-delay: 0.83s; }
.exvs-home-rank-buttons .exvs-home-rank-btn:nth-child(3) { animation-delay: 0.91s; }
.exvs-home-rank-buttons .exvs-home-rank-btn:nth-child(4) { animation-delay: 0.99s; }
.exvs-home-rank-btn:hover,
.exvs-home-rank-btn:focus-visible {
    transform: translateY(-2px) scale(1.04);
    border-color: #378ADD;
    background: linear-gradient(180deg, #378ADD, #2A6DB0);
    color: #fff;
    box-shadow: 0 0 16px rgba(55,138,221,0.6);
}
.exvs-home-rank-btn:active {
    transform: translateY(0) scale(0.97);
}

@keyframes exvsFadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes exvsCardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes exvsTitlePulse {
    0%, 100% { text-shadow: 0 0 26px rgba(255,150,210,0.85), 0 0 12px rgba(120,190,255,0.6), 0 0 4px rgba(255,255,255,0.7); }
    50% { text-shadow: 0 0 40px rgba(255,150,210,1), 0 0 18px rgba(120,190,255,0.8), 0 0 6px rgba(255,255,255,0.9); }
}

/* ==========================================
   COSTボタン（独自実装・ネオン発光カプセル型）
   ========================================== */
.exvs-cost-buttons {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    max-width: 1000px;
    margin: 0 auto 20px;
}
.exvs-cost-btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 20px 8px;
    border-radius: 24px;
    background: #1a1d24;
    border: 1px solid #333;
    color: #ccc;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.exvs-cost-btn:hover {
    border-color: #378ADD;
    box-shadow: 0 0 12px rgba(55,138,221,0.4);
    color: #fff;
}
.exvs-cost-btn.is-current {
    background: linear-gradient(180deg,#ffb23d,#d4850a);
    border-color: #ffb23d;
    color: #fff;
    box-shadow: 0 0 16px rgba(255,178,61,0.6);
}
@media (max-width: 640px) {
    .exvs-cost-buttons {
        flex-wrap: wrap;
    }
    .exvs-cost-btn {
        flex: 1 1 calc(50% - 10px);
        font-size: 18px;
        padding: 16px 8px;
    }
}
