﻿.olu-diyari-page .od-hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.olu-diyari-page .od-hero__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.olu-diyari-page .od-back {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

.olu-diyari-page .od-alert {
    margin-bottom: 1rem;
}

.olu-diyari-page .od-alert--warn {
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.olu-diyari-page .od-page-wrap {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.olu-diyari-page .od-page-wrap--prep {
    max-width: 920px;
}

.olu-diyari-page .od-page-wrap--wide {
    max-width: 1280px;
}

.olu-diyari-page .od-layout {
    display: grid;
    gap: 1rem 1.15rem;
    align-items: start;
    width: 100%;
}

.olu-diyari-page .od-layout--prep {
    grid-template-columns: 1fr;
}

/* Varsayılan: üyelerde ön saha paneli yok — tek sütun tam genişlik */
.olu-diyari-page .od-layout--battle {
    grid-template-columns: 1fr;
}

.olu-diyari-page .od-layout--battle.od-layout--has-command {
    grid-template-columns: min(210px, 22%) minmax(0, 1fr);
}

.olu-diyari-page .od-layout--battle .od-body {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
}

.olu-diyari-page .od-layout--battle.od-layout--has-command .od-body {
    grid-column: auto;
}

.olu-diyari-page .od-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    width: 100%;
}

.olu-diyari-page .od-layout--battle .od-body {
    display: block;
}

.olu-diyari-page .od-fight {
    display: block;
}

.olu-diyari-page .od-layout--battle .od-fight {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (max-width: 960px) {
    .olu-diyari-page .od-layout--battle {
        grid-template-columns: 1fr;
    }
    .olu-diyari-page .od-layout--battle .od-body,
    .olu-diyari-page .od-layout--battle .od-fight {
        display: block;
    }
}

.olu-diyari-page .od-main-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    width: 100%;
}

.olu-diyari-page .od-prep-panel {
    display: grid;
    grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem 1.1rem;
    text-align: left;
    border: 1px solid rgba(167, 139, 250, 0.16);
    background: rgba(30, 15, 45, 0.45);
}

.olu-diyari-page .od-gate {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    object-fit: cover;
}

.olu-diyari-page .od-prep-panel__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.olu-diyari-page .od-rail-hint {
    margin: -0.35rem 0 0.75rem;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

.olu-diyari-page .od-section-label {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(196, 181, 253, 0.88);
    font-weight: 600;
}

.olu-diyari-page .od-status-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1.1rem;
    text-align: left;
}

.olu-diyari-page .od-slot-list--battle .od-enemy,
.olu-diyari-page .od-slot-list--prep .od-enemy {
    min-height: 0;
    height: 100%;
    justify-content: flex-start;
}

.olu-diyari-page .od-phase {
    margin: 0;
    font-size: 0.95rem;
}

.olu-diyari-page .od-target-hint {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
}

.olu-diyari-page .od-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.olu-diyari-page .od-command-panel {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(167, 139, 250, 0.22);
    background: linear-gradient(165deg, rgba(30, 15, 45, 0.92) 0%, rgba(8, 8, 14, 0.95) 100%);
    position: sticky;
    top: 5rem;
    border-radius: 14px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

.olu-diyari-page .od-command-panel__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(233, 213, 255, 0.92);
    text-align: center;
}

.olu-diyari-page .od-command-panel__hint {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

.olu-diyari-page .od-command-panel__label {
    display: block;
    width: 100%;
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
}

.olu-diyari-page .od-command-panel .od-front-select {
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
}

.olu-diyari-page .od-command-panel .od-front-assign {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
}

.olu-diyari-page .od-command-panel__btn {
    width: 100%;
    margin-top: 0.45rem;
}

.olu-diyari-page .od-arena {
    padding: 1.25rem 1.15rem 1.35rem;
    background: linear-gradient(180deg, rgba(20, 10, 30, 0.85) 0%, rgba(8, 8, 12, 0.95) 100%);
    border: 1px solid rgba(167, 139, 250, 0.15);
    overflow: visible;
}

.olu-diyari-page .od-arena__stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 0.25rem;
}

.olu-diyari-page .od-arena__front {
    text-align: center;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.olu-diyari-page .od-front-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.olu-diyari-page .od-front-vitals {
    width: 100%;
    max-width: 380px;
    margin: 0.2rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    box-sizing: border-box;
}

.olu-diyari-page .od-front-vitals .bm-combat-bar {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.olu-diyari-page .od-front-hasar {
    width: 100%;
}

.olu-diyari-page .od-front-hasar .bm-combat-bar__meta {
    justify-content: center;
    margin: 0;
    padding: 0.2rem 0 0;
    font-size: 0.8rem;
}

.olu-diyari-page .od-front-hp {
    width: 100%;
    margin: 0;
}

.olu-diyari-page .od-front-hp .bm-combat-bar__label span:first-child {
    font-size: 0.78rem;
}

.olu-diyari-page .od-hero-char--arena {
    position: relative;
    min-height: 220px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.olu-diyari-page .od-hero-char--arena .bm-arena-char {
    margin: 0 auto;
}

.olu-diyari-page .od-front-stats {
    width: 100%;
    max-width: 520px;
    margin: 0.65rem auto 0;
}

.olu-diyari-page .od-front-vitals-hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
}

.olu-diyari-page .od-front-stats .bm-user-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin: 0 0 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.olu-diyari-page .od-front-stats .bm-user-strip .bm-stat {
    min-width: 0;
    padding: 0.45rem 0.35rem;
}

.olu-diyari-page .od-front-stats .bm-user-strip .bm-stat__label {
    font-size: 0.62rem;
}

.olu-diyari-page .od-front-stats .bm-user-strip .bm-stat__value {
    font-size: 0.72rem;
}

@media (max-width: 420px) {
    .olu-diyari-page .od-front-stats .bm-user-strip {
        grid-template-columns: 1fr;
    }
}

.olu-diyari-page .od-hero-char__name {
    margin: 0.45rem 0 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.olu-diyari-page .od-back-section {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.olu-diyari-page .od-back-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    justify-items: center;
    align-items: end;
    width: 100%;
}

.olu-diyari-page .od-back-row:empty {
    display: none;
}

.olu-diyari-page .od-back-section:has(.od-back-row:empty) {
    display: none;
}

.olu-diyari-page .od-back-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.5rem 0.25rem;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

.olu-diyari-page .od-char-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.olu-diyari-page .od-char-wrap--front {
    min-height: 220px;
}

.olu-diyari-page .od-char-wrap--back {
    width: 100%;
    max-width: 8.5rem;
    min-height: 6.75rem;
    overflow: visible;
}

.olu-diyari-page .od-arena-char--back.bm-arena-char--lg .bm-arena-char__stack {
    width: min(100%, 8.25rem);
    min-height: 6.75rem;
}

.olu-diyari-page .od-arena-char--back.bm-arena-char--lg .dm-inv-hero__avatar--element {
    height: 6.5rem;
    min-height: 5.5rem;
}

.olu-diyari-page .od-dmg-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.olu-diyari-page .od-char-wrap--front .od-dmg-badge {
    top: 0.5rem;
    right: 0.5rem;
}

.olu-diyari-page .od-back-member {
    text-align: center;
    width: 100%;
    max-width: 9rem;
}

.olu-diyari-page .od-member-empty {
    min-height: 80px;
    font-size: 0.75rem;
}

.olu-diyari-page .od-back-member__name {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.olu-diyari-page .od-back-member--away {
    opacity: 0.72;
}

.olu-diyari-page .od-back-away {
    color: rgba(255, 255, 255, 0.35);
}

.olu-diyari-page .od-slot-rail {
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid rgba(167, 139, 250, 0.12);
}

.olu-diyari-page .od-layout--battle .od-slot-rail {
    position: static;
    max-height: none;
    overflow: visible;
    align-self: start;
}

.olu-diyari-page .od-rail-title {
    margin-bottom: 0.75rem;
}

.olu-diyari-page .od-slot-list {
    display: grid;
    gap: 0.65rem 0.75rem;
}

.olu-diyari-page .od-slot-list--prep,
.olu-diyari-page .od-slot-list--battle {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 0.75rem;
}

.olu-diyari-page .od-layout--prep .od-slot-rail {
    padding: 1.15rem 1.25rem 1.35rem;
}

.olu-diyari-page .od-enemy--prep {
    cursor: default;
    pointer-events: none;
    padding: 0.65rem 0.55rem 0.75rem;
}

.olu-diyari-page .od-slot-list--prep .od-enemy__img {
    width: 100%;
    height: 168px;
}

.olu-diyari-page .od-slot-empty {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .olu-diyari-page .od-slot-list--prep {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .olu-diyari-page .od-slot-list--prep,
    .olu-diyari-page .od-slot-list--battle,
    .olu-diyari-page .od-back-row {
        grid-template-columns: 1fr;
    }
}

.olu-diyari-page .od-enemy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.5rem 0.65rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
    min-width: 0;
}

.olu-diyari-page .od-enemy:hover {
    background: rgba(124, 58, 237, 0.12);
}

.olu-diyari-page .od-enemy--selected {
    border-color: rgba(167, 139, 250, 0.75);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35);
}

.olu-diyari-page .od-enemy--dead {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.olu-diyari-page .od-enemy__img {
    width: 100%;
    height: 156px;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
}

.olu-diyari-page .od-enemy__body {
    width: 100%;
    min-width: 0;
}

.olu-diyari-page .od-enemy__title {
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
    line-height: 1.25;
    white-space: normal;
}

.olu-diyari-page .od-enemy__el {
    margin: 0 0 0.15rem;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
}

.olu-diyari-page .od-hp-bar {
    position: relative;
    height: 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 0.25rem 0 0;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.olu-diyari-page .od-hp-bar__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    max-width: 100%;
    background: linear-gradient(90deg, #7f1d1d, #ef4444);
    border-radius: inherit;
    transition: width 0.25s ease;
    z-index: 0;
}

.olu-diyari-page .od-hp-bar__label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.02em;
    pointer-events: none;
    white-space: nowrap;
}

.olu-diyari-page .od-pool {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    text-align: center;
}

.olu-diyari-page .od-timer {
    color: #fcd34d;
    font-weight: 600;
}

.olu-diyari-page .od-log-panel {
    padding: 0.85rem 1rem 1rem;
    border: 1px solid rgba(167, 139, 250, 0.18);
    background: rgba(0, 0, 0, 0.28);
}

.olu-diyari-page .od-log-panel__title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(196, 181, 253, 0.85);
    text-align: center;
}

.olu-diyari-page .od-log {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 168px;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.35;
}

.olu-diyari-page .od-log__item {
    padding: 0.45rem 0.55rem 0.45rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(167, 139, 250, 0.55);
    color: rgba(255, 255, 255, 0.78);
}

.olu-diyari-page .od-log__item--kill {
    border-left-color: rgba(248, 113, 113, 0.75);
    background: rgba(127, 29, 29, 0.12);
}

.olu-diyari-page .od-battle-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    max-width: 100%;
}

.olu-diyari-page .od-character-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.olu-diyari-page .od-char-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.65rem 0.35rem 0.4rem;
    border-radius: 12px;
    border: 1px solid rgba(167, 139, 250, 0.45);
    background: linear-gradient(165deg, rgba(46, 16, 101, 0.85), rgba(20, 8, 40, 0.92));
    color: #f5f3ff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    max-width: 100%;
    text-align: left;
}

.olu-diyari-page .od-char-action-btn:hover {
    border-color: rgba(196, 181, 253, 0.75);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.olu-diyari-page .od-char-action-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.olu-diyari-page .od-char-action-btn:disabled,
.olu-diyari-page .od-char-action-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.olu-diyari-page .od-char-action-btn__portrait {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.olu-diyari-page .od-char-action-btn__portrait--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.olu-diyari-page .od-char-action-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    line-height: 1.25;
    white-space: nowrap;
}

.olu-diyari-page .od-char-action-btn__uses {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(196, 181, 253, 0.95);
    font-variant-numeric: tabular-nums;
}

.olu-diyari-page .od-front-pot-mount {
    margin-top: 0.65rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.olu-diyari-page .od-front-kit {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
}

.olu-diyari-page .od-front-kit .od-char-action-btn,
.olu-diyari-page .od-front-kit .od-canpot-weapons {
    margin: 0;
}

.olu-diyari-page .od-canpot-weapons {
    justify-content: center;
}

.olu-diyari-page .od-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
}

.hanedanlar-page .sm-olu-gate-link {
    display: block;
    margin: 0 auto 1rem;
    max-width: 420px;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
}

.hanedanlar-page .sm-olu-gate-link img {
    width: 100%;
    display: block;
}

.hanedanlar-page .sm-olu-gate-link:hover img {
    filter: brightness(1.08);
}

.olu-diyari-page .od-attack-btn {
    margin-top: 0.65rem;
    min-width: 9rem;
}

.olu-diyari-page .od-enemy,
.olu-diyari-page .od-hero-char--arena,
.olu-diyari-page .od-float-host {
    position: relative;
}

.olu-diyari-page .od-dmg-float {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 5;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fecaca;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
}

.olu-diyari-page .od-dmg-float--show {
    opacity: 1;
    transform: translateY(-10px);
    transition: opacity 0.15s, transform 0.45s;
}

.olu-diyari-page .od-dmg-float--self {
    color: #fde68a;
}

.olu-diyari-page .od-dmg-float.od-dmg-float--fixed {
    position: fixed;
    z-index: 80;
    top: auto;
    right: auto;
    margin: 0;
    transform: none;
    white-space: nowrap;
}

.olu-diyari-page .od-dmg-float.od-dmg-float--fixed.od-dmg-float--show {
    opacity: 1;
    transform: none;
}

.olu-diyari-page .od-dmg-float--heal {
    color: #4ade80;
}

.olu-diyari-page .od-hit-shake {
    animation: od-hit-shake 0.45s ease;
}

@keyframes od-hit-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
}
