/* =========================================
   BOSS RYAN - MIGHTY DASHBOARD STYLES
   Minimal 2-Split Giruda/Bid & Prominent Cards
   Pure dvh/vw Responsive Units
   ========================================= */

body.mighty-body {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100dvh;
}

.mighty-container {
    padding: 1.5dvh 4.5vw 3.5dvh;
    display: flex;
    flex-direction: column;
    gap: 1.8dvh;
    box-sizing: border-box;
}

/* Header */
.mighty-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1dvh 0.5vw 1.2dvh;
    border-bottom: 0.12dvh solid rgba(255, 255, 255, 0.08);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.2dvh;
}

.mighty-title {
    font-size: 2.5dvh;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    line-height: 1;
    margin: 0;
}

.mighty-subtitle {
    font-size: 1.1dvh;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 1vw;
    background: rgba(255, 255, 255, 0.07);
    border: 0.12dvh solid rgba(255, 255, 255, 0.12);
    color: rgba(235, 235, 245, 0.85);
    padding: 0.7dvh 2.8vw;
    border-radius: 3vw;
    font-size: 1.3dvh;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.reset-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.14);
}

.reset-btn svg {
    width: 1.7dvh;
    height: 1.7dvh;
}

/* Grids & Layout */
.mighty-main {
    display: flex;
    flex-direction: column;
    gap: 1.6dvh;
    flex: 1;
}

.widget-grid,
.wallet-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
    width: 100%;
}

.ios-widget {
    background-color: var(--color-surface);
    border: 0.12dvh solid rgba(255, 255, 255, 0.12);
    border-radius: 4.5vw;
    padding: 1.6dvh 3vw 1.4dvh;
    height: 27dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0.8dvh 2.5vw rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.widget-label {
    font-size: 1.2dvh;
    font-weight: 800;
    color: rgba(235, 235, 245, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cycle-hint,
.bid-target-tag {
    font-size: 0.95dvh;
    font-weight: 700;
    padding: 0.25dvh 1.6vw;
    border-radius: 1.5vw;
}

.cycle-hint {
    color: var(--color-accent);
    background: rgba(10, 132, 255, 0.14);
}

.bid-target-tag {
    color: rgba(235, 235, 245, 0.65);
    background: rgba(255, 255, 255, 0.08);
}

/* Giruda Widget Center & Flip motion */
.giruda-widget {
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.giruda-widget:active {
    transform: scale(0.95);
    border-color: rgba(255, 255, 255, 0.25);
}

.giruda-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.giruda-symbol {
    font-size: 8.5dvh;
    line-height: 1;
    font-weight: 900;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 0.4dvh 1.5vw rgba(0, 0, 0, 0.5);
}

.giruda-widget:active .giruda-symbol {
    transform: scale(1.1);
}

.giruda-name {
    font-size: 1.6dvh;
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 0.4dvh;
    letter-spacing: -0.02em;
}

/* Suit Colors */
.suit-spade { color: #0A84FF; }
.suit-diamond { color: #FF453A; }
.suit-heart { color: #FF2D55; }
.suit-club { color: #30D158; }
.suit-notrump { color: #FFD60A; }

/* Giruda Cycle Dots */
.cycle-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2vw;
    width: 100%;
}

.cycle-dots .dot {
    width: 1.2vw;
    height: 1.2vw;
    min-width: 0.5dvh;
    min-height: 0.5dvh;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.25s ease, transform 0.25s ease;
}

.cycle-dots .dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

/* Bid Widget Center & Horizontal Stepper */
.bid-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.bid-number-display {
    display: flex;
    align-items: baseline;
    gap: 0.8vw;
}

.bid-value {
    font-size: 6.8dvh;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.04em;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.bid-unit {
    font-size: 1.8dvh;
    font-weight: 800;
    color: rgba(235, 235, 245, 0.6);
}

/* Horizontal Inline Stepper */
.bid-inline-stepper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 0.12dvh solid rgba(255, 255, 255, 0.1);
    border-radius: 2.8vw;
    width: 100%;
    height: 4.8dvh;
    overflow: hidden;
}

.stepper-btn {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.stepper-btn:active {
    background-color: rgba(255, 255, 255, 0.16);
}

.stepper-btn.inc {
    color: var(--color-accent);
}

.stepper-btn svg {
    width: 2.2dvh;
    height: 2.2dvh;
}

.stepper-divider {
    width: 0.12dvh;
    height: 50%;
    background: rgba(255, 255, 255, 0.14);
}

/* 2. Lower Section: Apple Wallet Style Premium Cards */
.wallet-card {
    position: relative;
    border-radius: 4.5vw;
    padding: 1.6dvh 3vw 1.5dvh;
    height: 31dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.wallet-card:active {
    transform: scale(0.97);
}

/* Gloss & Lighting Effect */
.wallet-card-gloss {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Mighty Wallet Card Styling */
.mighty-wallet {
    background: linear-gradient(155deg, #1f1b14 0%, #151410 100%);
    border: 0.14dvh solid rgba(255, 214, 10, 0.35);
    box-shadow: 0 1dvh 3vw rgba(0, 0, 0, 0.5), inset 0 0.1dvh 0 rgba(255, 214, 10, 0.25);
}

.mighty-tag {
    background: rgba(255, 214, 10, 0.16);
    color: #FFD60A;
    border: 0.12dvh solid rgba(255, 214, 10, 0.4);
}

/* Joker Call Wallet Card Styling */
.jokercall-wallet {
    background: linear-gradient(155deg, #121820 0%, #0e1218 100%);
    border: 0.14dvh solid rgba(10, 132, 255, 0.35);
    box-shadow: 0 1dvh 3vw rgba(0, 0, 0, 0.5), inset 0 0.1dvh 0 rgba(10, 132, 255, 0.25);
}

.jokercall-tag {
    background: rgba(10, 132, 255, 0.16);
    color: #0A84FF;
    border: 0.12dvh solid rgba(10, 132, 255, 0.4);
}

/* Wallet Card Content Layout */
.wallet-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.wallet-tag {
    font-size: 1.1dvh;
    font-weight: 800;
    padding: 0.3dvh 2.2vw;
    border-radius: 1.8vw;
    letter-spacing: -0.01em;
}

.corner-index {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    line-height: 1;
}

.corner-rank {
    font-size: 2.2dvh;
    font-weight: 900;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.corner-suit {
    font-size: 1.8dvh;
    line-height: 1;
}

.wallet-card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.wallet-center-symbol {
    font-size: 7.2dvh;
    line-height: 1;
    filter: drop-shadow(0 0.6dvh 1.5vw rgba(0, 0, 0, 0.6));
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wallet-card:active .wallet-center-symbol {
    transform: scale(1.12);
}

.wallet-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2dvh;
}

.card-korean-name {
    font-size: 1.7dvh;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.card-role-desc {
    font-size: 1.1dvh;
    font-weight: 600;
    color: rgba(235, 235, 245, 0.5);
}

/* Home Button Container */
.home-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.6dvh;
    margin-bottom: 1.5dvh;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5vw;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-accent);
    border: 0.12dvh solid rgba(255, 255, 255, 0.08);
    border-radius: 3.5vw;
    padding: 1.2dvh 5vw;
    font-size: 1.35dvh;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0.4dvh 1.5vw rgba(0, 0, 0, 0.3);
    transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.home-button:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.12);
}

.home-button svg {
    width: 1.8dvh;
    height: 1.8dvh;
}
