/* Navy rank plaques — visual tier display */

.rank-plaque {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid rgba(255, 211, 107, 0.45);
    background: linear-gradient(135deg, rgba(12, 32, 52, 0.95) 0%, rgba(8, 20, 36, 0.98) 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin: 8px 0 12px;
    min-height: 52px;
}

.rank-plaque--compact {
    padding: 4px 10px;
    min-height: auto;
    margin: 0;
    gap: 8px;
    font-size: 0.82rem;
}

.rank-plaque__anchor {
    flex: 0 0 auto;
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.rank-plaque--compact .rank-plaque__anchor {
    font-size: 1.1rem;
}

.rank-plaque__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rank-plaque__title {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: #ffd36b;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.rank-plaque--compact .rank-plaque__title {
    font-size: 0.75rem;
}

.rank-plaque__progress {
    font-size: 0.72rem;
    color: #a8c8e0;
    line-height: 1.3;
}

.rank-plaque__stripes {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
}

.rank-plaque__stripe {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 211, 107, 0.35);
}

.rank-tier-enlisted {
    border-color: rgba(140, 160, 180, 0.55);
    background: linear-gradient(135deg, rgba(40, 55, 70, 0.95), rgba(22, 32, 44, 0.98));
}

.rank-tier-enlisted .rank-plaque__title { color: #c8d8e8; }
.rank-tier-enlisted .rank-plaque__stripe { background: #8aa0b8; }

.rank-tier-nco {
    border-color: rgba(180, 140, 80, 0.6);
    background: linear-gradient(135deg, rgba(55, 42, 22, 0.95), rgba(32, 24, 12, 0.98));
}

.rank-tier-nco .rank-plaque__title { color: #e8c878; }
.rank-tier-nco .rank-plaque__stripe { background: #c9942a; }

.rank-tier-warrant {
    border-color: rgba(200, 160, 90, 0.7);
    background: linear-gradient(135deg, rgba(62, 48, 24, 0.96), rgba(38, 28, 14, 0.98));
}

.rank-tier-warrant .rank-plaque__title { color: #ffd36b; }

.rank-tier-commissioned {
    border-color: rgba(100, 160, 220, 0.55);
    background: linear-gradient(135deg, rgba(18, 42, 68, 0.96), rgba(10, 24, 40, 0.98));
}

.rank-tier-commissioned .rank-plaque__title { color: #8ec8ff; }
.rank-tier-commissioned .rank-plaque__stripe { background: #4a9fd4; }

.rank-tier-captain {
    border-color: rgba(255, 211, 107, 0.65);
    background: linear-gradient(135deg, rgba(48, 36, 12, 0.96), rgba(28, 20, 8, 0.98));
}

.rank-tier-captain .rank-plaque__title { color: #ffd36b; }
.rank-tier-captain .rank-plaque__stripe { background: linear-gradient(90deg, #ffd36b, #c9942a); }

.rank-tier-flag {
    border-color: rgba(255, 180, 100, 0.75);
    background: linear-gradient(135deg, rgba(58, 28, 8, 0.97), rgba(32, 14, 4, 0.99));
    box-shadow: 0 4px 22px rgba(255, 180, 60, 0.2), inset 0 1px 0 rgba(255, 220, 140, 0.15);
}

.rank-tier-flag .rank-plaque__title {
    color: #ffe8a0;
    background: linear-gradient(90deg, #ffd36b, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-tier-flag .rank-plaque__stripe { background: linear-gradient(90deg, #ffd36b, #ff9040); }

.rank-tier-admiral {
    border-color: rgba(255, 220, 120, 0.9);
    animation: rankPulse 3s ease-in-out infinite;
}

@keyframes rankPulse {
    0%, 100% { box-shadow: 0 4px 22px rgba(255, 180, 60, 0.2); }
    50% { box-shadow: 0 4px 28px rgba(255, 200, 80, 0.45); }
}

.rank-plaque.rank-promoted {
    animation: rankPromote 0.9s ease;
}

@keyframes rankPromote {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); filter: brightness(1.3); }
    100% { transform: scale(1); }
}

.header-rank-wrap {
    display: inline-flex;
    align-items: center;
}

.game-header .rank-plaque--compact {
    display: inline-flex;
    vertical-align: middle;
}
