@charset "utf-8";

#view-otomo.tab-content {
    background: linear-gradient(180deg, #0b1a30 0%, #1a2a47 100%) !important;
    color: #ffffff;
    overflow-y: hidden;
}

#view-otomo.tab-content.active {
    display: flex;
    flex-direction: column;
}

.otomo-page-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 20px 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, #0b1a30 0%, transparent 100%);
}

.otomo-back {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.otomo-page-title {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

.otomo-page-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px 30px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    min-height: 0;
}

.otomo-page-body .dressup-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 5px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: min(360px, 100%);
    box-sizing: border-box;
}

.otomo-page-body .dressup-preview .orbit-otomo-icon {
    width: 310px;
    height: 310px;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none;
    pointer-events: none;
    animation: floating 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.otomo-page-body .dressup-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
    width: 100%;
}

.otomo-page-body .dressup-tab {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.otomo-page-body .dressup-tab.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.otomo-page-body .dressup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin-top: 5px;
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    align-content: start;
    grid-auto-rows: max-content;
}

.otomo-page-body .dressup-grid::-webkit-scrollbar {
    width: 5px;
}

.otomo-page-body .dressup-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.otomo-page-body .dressup-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.otomo-page-body .dressup-item {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.otomo-page-body .dressup-item img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.otomo-page-body .dressup-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.otomo-page-body .dressup-item.selected {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.otomo-page-body .dressup-item-none {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.otomo-save-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.otomo-save-icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s;
}

.otomo-save-icon-btn:hover {
    transform: translateY(-2px);
}

.otomo-save-icon-btn:hover img {
    opacity: 1;
}

.otomo-save-icon-btn:active {
    transform: scale(0.9);
}
