/* 화면 전환 시스템 */
.screen {
    height: calc(var(--app-viewport-height) - var(--player-bar-height));
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.screen.hidden {
    display: none !important;
}

/* 홈 버튼 (플레이어 바) */
.btn-home {
    background: none;
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.btn-home:hover,
.btn-home:active {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
}

/* ===================== */
/* 홈 화면               */
/* ===================== */
.home-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    min-height: 100%;
    justify-content: center;
}

.home-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    text-align: center;
}

.home-stats {
    display: flex;
    gap: 32px;
}

.home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.home-stat-label {
    font-size: 12px;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
}

.home-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}


.btn-home-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-home-nav:active {
    transform: scale(0.97);
}

.btn-home-nav .btn-label {
    font-size: 17px;
    font-weight: bold;
}

.btn-home-nav .btn-desc {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.btn-forge-nav {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.btn-duel-nav {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}

.btn-shop-nav {
    background: linear-gradient(135deg, #2196F3, #1565C0);
}

.btn-stock-nav {
    background: linear-gradient(135deg, #00897B, #004D40);
}

/* ===================== */
/* 상점 화면             */
/* ===================== */
.shop-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.shop-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    text-align: center;
}

.shop-currencies {
    display: flex;
    gap: 32px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: center;
}

.shop-currency {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.shop-currency-label {
    font-size: 12px;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-currency-value {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
}

.shop-exchange {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.exchange-info {
    font-size: 16px;
    color: var(--text-secondary, #ccc);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.shop-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-exchange,
.btn-exchange-max {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    transition: transform 0.15s, opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-exchange {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.btn-exchange-max {
    background: linear-gradient(135deg, #FF9800, #EF6C00);
    flex: 0;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: bold;
}

.btn-exchange .btn-label,
.btn-exchange-max .btn-label {
    font-size: 14px;
    font-weight: bold;
}

.btn-exchange:disabled,
.btn-exchange-max:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-exchange:active:not(:disabled),
.btn-exchange-max:active:not(:disabled) {
    transform: scale(0.97);
}

.shop-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.shop-qty-input {
    width: 50px;
    padding: 8px 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    font-family: inherit;
    flex-shrink: 0;
}

.shop-qty-input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

/* ===================== */
/* 상점 아이템 섹션      */
/* ===================== */
.shop-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #FFD700;
    margin: 0;
}

.shop-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    gap: 12px;
}

.shop-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.shop-item-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.shop-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.shop-item-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.shop-item-desc {
    font-size: 11px;
    color: var(--text-secondary, #aaa);
    line-height: 1.3;
}

.shop-item-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.shop-item-count {
    font-size: 12px;
    color: var(--text-secondary, #ccc);
}

.btn-buy-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    background: linear-gradient(135deg, #00BCD4, #00838F);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s, opacity 0.2s;
}

.btn-buy-scroll .btn-label {
    font-size: 13px;
    font-weight: bold;
}

.btn-buy-scroll .btn-cost {
    font-size: 10px;
    opacity: 0.85;
}

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

.btn-buy-scroll:active:not(:disabled) {
    transform: scale(0.97);
}

/* ===================== */
/* 포지 인벤토리 바       */
/* ===================== */
.inventory-bar {
    display: flex;
    gap: 8px;
    padding: 4px 8px;
    justify-content: center;
}

.btn-use-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    background: linear-gradient(135deg, #00BCD4, #00838F);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s, opacity 0.2s;
}

.btn-use-scroll .btn-label {
    font-size: 13px;
    font-weight: bold;
}

.btn-use-scroll .btn-cost {
    font-size: 12px;
    opacity: 0.85;
}

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

.btn-use-scroll:active:not(:disabled) {
    transform: scale(0.97);
}

/* ===================== */
/* 로봇 패널              */
/* ===================== */
.robot-panel {
    width: 100%;
    background: rgba(0, 188, 212, 0.08);
    border: 1px solid rgba(0, 188, 212, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-robot-panel {
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.25);
}

.stock-robot-token-fill {
    background: linear-gradient(90deg, #FF9800, #FFB74D) !important;
}

.robot-panel.hidden {
    display: none;
}

.robot-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #ccc;
}

.robot-token-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.robot-token-fill {
    height: 100%;
    background: linear-gradient(90deg, #00BCD4, #00E5FF);
    border-radius: 4px;
    transition: width 0.3s;
}

.robot-buttons {
    display: flex;
    gap: 8px;
}

.btn-robot-toggle {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    transition: transform 0.15s, opacity 0.2s;
}

.btn-robot-toggle.active {
    background: linear-gradient(135deg, #F44336, #C62828);
}

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

.btn-robot-upgrade {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    background: linear-gradient(135deg, #FF9800, #EF6C00);
    transition: transform 0.15s, opacity 0.2s;
}

.btn-robot-upgrade .btn-label {
    font-size: 12px;
    font-weight: bold;
}

.btn-robot-upgrade .btn-cost {
    font-size: 10px;
    opacity: 0.85;
}

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

.btn-robot-repair {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    background: linear-gradient(135deg, #E91E63, #AD1457);
    transition: transform 0.15s, opacity 0.2s;
}

.btn-robot-repair .btn-label {
    font-size: 12px;
    font-weight: bold;
}

.btn-robot-repair .btn-cost {
    font-size: 10px;
    opacity: 0.85;
}

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

.btn-robot-repair.hidden {
    display: none;
}

/* ===================== */
/* 미니게임 홈 버튼       */
/* ===================== */
.btn-minigame-nav {
    background: linear-gradient(135deg, #FF9800, #EF6C00);
}

/* ===================== */
/* 미니게임 선택 화면      */
/* ===================== */
.minigame-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.minigame-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.minigame-list {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.minigame-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.minigame-card:active:not(:disabled) {
    transform: scale(0.97);
}

.minigame-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.minigame-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.minigame-name {
    font-size: 14px;
    font-weight: bold;
}

.minigame-desc {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

.minigame-parkour {
    background: linear-gradient(135deg, #FF5722, #D84315);
}

.minigame-coming-soon {
    background: linear-gradient(135deg, #607D8B, #455A64);
}

.minigame-coinrush {
    background: linear-gradient(135deg, #FFC107, #FF8F00);
}

.minigame-memory {
    background: linear-gradient(135deg, #9C27B0, #6A1B9A);
}

.minigame-reaction {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
}

.minigame-flappy {
    background: linear-gradient(135deg, #00BCD4, #00695C);
}

.minigame-stacker {
    background: linear-gradient(135deg, #F44336, #B71C1C);
}


/* ===================== */
/* 미니게임 공통 스크린    */
/* ===================== */
.mini-screen-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0a0a1a;
}

.mini-canvas {
    flex: 1;
    display: block;
    width: 100%;
}

.mini-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: rgba(0,0,0,0.7);
    color: #FFD700;
    font-size: 14px;
    font-weight: bold;
    gap: 12px;
    z-index: 10;
}

.mini-result {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.88);
    z-index: 20;
}

.mini-result.hidden {
    display: none !important;
}

.mini-result h2 {
    font-size: 24px;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.mini-result p {
    font-size: 15px;
    color: #ccc;
}

/* 기억력 게임 보드 */
.memory-board {
    flex: 1;
    overflow-y: auto;
}

.memory-card {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.memory-card:active {
    transform: scale(0.95);
}

.memory-card-back {
    font-size: 16px;
    color: #888;
}

.memory-card-front {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.memory-card.memory-flipped {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.memory-card.memory-matched {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
    opacity: 0.7;
    pointer-events: none;
}

/* 미니게임 공통 다시하기/나가기 버튼 */
.btn-mini-action {
    width: 50%;
    height: 50px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-mini-action:active {
    transform: scale(0.97);
}

.btn-mini-retry {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    border-color: #4CAF50;
}

.btn-mini-return {
    background: linear-gradient(135deg, #607D8B, #455A64);
    border-color: #607D8B;
}

/* 반응속도 게임 */
.reaction-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #2196F3;
    transition: background 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.reaction-msg {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    text-align: center;
    padding: 20px;
}

/* ===================== */
/* 3D 파쿠르 화면         */
/* ===================== */
#screen-parkour {
    position: relative;
    background: #000;
}

.parkour-sword-select {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.parkour-select-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
}

.parkour-select-desc {
    font-size: 14px;
    color: #ccc;
}

.parkour-sword-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px;
}

.parkour-sword-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    color: #fff;
    font-family: inherit;
}

.parkour-sword-option:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.parkour-sword-option .sword-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 4px;
}

.parkour-sword-option .sword-name {
    font-size: 11px;
    font-weight: bold;
    text-align: center;
}

.parkour-sword-option .sword-level {
    font-size: 10px;
    color: #aaa;
}

.btn-parkour-back {
    padding: 10px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-parkour-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.parkour-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.parkour-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
    z-index: 10;
    pointer-events: none;
}

.parkour-hud > * {
    pointer-events: auto;
}

.parkour-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parkour-hp-bar {
    position: relative;
    height: 18px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.parkour-hp-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #F44336, #4CAF50);
    border-radius: 9px;
    transition: width 0.3s;
}

.parkour-hp-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.parkour-ability-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #ccc;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.parkour-ability-name {
    color: #FFD700;
    font-weight: bold;
}

.parkour-ability-cooldown {
    color: #aaa;
}

.parkour-score {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.parkour-sword-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.parkour-sword-display img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.btn-parkour-exit {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: rgba(244, 67, 54, 0.8);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.parkour-gameover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.85);
    z-index: 20;
}

.parkour-gameover h2 {
    font-size: 24px;
    color: #F44336;
    text-shadow: 0 2px 8px rgba(244, 67, 54, 0.5);
}

.parkour-gameover p {
    font-size: 15px;
    color: #FFD700;
}

.parkour-reward-text {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
}


.parkour-gameover.hidden,
.parkour-hud.hidden,
.parkour-canvas.hidden,
.parkour-sword-select.hidden {
    display: none !important;
}

/* 반응형 - 작은 화면 */
@media (max-height: 600px) {
    .home-container {
        gap: 16px;
        padding: 12px 16px;
    }

    .home-title {
        font-size: 18px;
    }

    .home-stat-value {
        font-size: 16px;
    }

    .btn-home-nav {
        padding: 14px 12px;
    }

    .btn-home-nav .btn-label {
        font-size: 17px;
    }

    .shop-container {
        padding: 16px;
        gap: 16px;
    }
}

/* ===== 검 주문 제작 ===== */
.btn-sword-order {
    background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%);
    color: #fff;
    border: 2px solid #FF8F00;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
.btn-sword-order:hover {
    background: linear-gradient(135deg, #FF8F00 0%, #FF6F00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

/* 주문 모달 폼 */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.order-row label {
    font-size: 14px;
    font-weight: bold;
    color: #ccc;
    min-width: 70px;
}
.order-select {
    flex: 1;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0d0d1e;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.order-select option {
    background: #0d0d1e;
    color: #fff;
}

.order-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
}
.order-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: #aaa;
}
.order-price-value {
    font-weight: bold;
    color: #FFD700;
    font-size: 16px;
}
.order-time-value {
    font-weight: bold;
    color: #4FC3F7;
    font-size: 16px;
}

/* 주문 목록 */
.sword-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.sword-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    gap: 10px;
}
.sword-order-card.ready {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.08);
}
.order-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.order-card-name {
    font-size: 14px;
    font-weight: bold;
}
.order-card-enchant {
    font-size: 12px;
    margin-left: 6px;
    opacity: 0.8;
}
.order-card-time {
    font-size: 12px;
    color: #aaa;
}
.sword-order-card.ready .order-card-time {
    color: #4CAF50;
}
.btn-order-claim {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-order-claim:not(:disabled) {
    background: #4CAF50;
    border-color: #66BB6A;
    color: #fff;
}
.btn-order-claim:not(:disabled):hover {
    background: #66BB6A;
    transform: translateY(-1px);
}

