/* Slot Kesme — dominara-bg arka plan (all.css sıfırlamasını ezer) */
html body.slot-farm-page {
    background-image: url('/files/images/dominara-bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Slot Kesme — modern farm UI */
.slot-farm-page {
    --sf-bg: transparent;
    --sf-surface: rgba(18, 20, 28, 0.82);
    --sf-surface-2: rgba(28, 32, 44, 0.65);
    --sf-border: rgba(255, 255, 255, 0.08);
    --sf-border-hover: rgba(251, 191, 36, 0.45);
    --sf-gold: #f59e0b;
    --sf-gold-dim: rgba(245, 158, 11, 0.15);
    --sf-text: #f1f5f9;
    --sf-muted: #94a3b8;
    --sf-radius: 16px;
    --sf-radius-sm: 10px;
    --sf-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --map-accent: #d97706;

    min-height: 100vh;
    font-family: 'Poppins', system-ui, sans-serif;
    background: transparent;
    color: var(--sf-text);
    padding-top: 5.5rem;
}

.slot-farm-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
    z-index: 0;
}

.slot-farm-page .sf-wrap {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}

/* Loading */
.slot-farm-page .sf-loading {
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 12, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.slot-farm-page .sf-loading--show {
    display: flex;
}

.slot-farm-page .sf-loading__ring {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--sf-gold);
    border-radius: 50%;
    animation: sf-spin 0.7s linear infinite;
}

@keyframes sf-spin {
    to { transform: rotate(360deg); }
}

/* Hero — başlık + karakter HUD tek panel */
.slot-farm-page .sf-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(145deg, rgba(22, 24, 34, 0.92) 0%, rgba(10, 12, 18, 0.88) 100%);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-shadow);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.slot-farm-page .sf-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.55), transparent);
    pointer-events: none;
}

.slot-farm-page .sf-hero__intro {
    flex: 1 1 200px;
    min-width: 0;
}

.slot-farm-page .sf-hero--has-hud .sf-hero__intro {
    flex: 1 1 240px;
    padding-right: 0.5rem;
}

.slot-farm-page .sf-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sf-gold);
}

.slot-farm-page .sf-title {
    margin: 0;
    font-size: clamp(1.45rem, 3.5vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.slot-farm-page .sf-subtitle {
    margin: 0.4rem 0 0;
    color: var(--sf-muted);
    font-size: 0.88rem;
    max-width: 28rem;
    line-height: 1.45;
}

.slot-farm-page .sf-hero__hud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 1 auto;
    align-items: stretch;
    justify-content: flex-end;
}

.slot-farm-page .sf-hud-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    min-width: 108px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.slot-farm-page .sf-hud-chip:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.48);
}

.slot-farm-page .sf-hud-chip__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.slot-farm-page .sf-hud-chip__text {
    min-width: 0;
}

.slot-farm-page .sf-hud-chip__val {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--sf-text);
}

.slot-farm-page .sf-hud-chip__val--item {
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.slot-farm-page .sf-hud-chip__val--item strong {
    color: var(--sf-gold);
    font-weight: 700;
}

.slot-farm-page .sf-hud-chip__lbl {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--sf-muted);
    margin-top: 0.12rem;
}

.slot-farm-page .sf-hud-chip--item .sf-hud-chip__icon {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.slot-farm-page .dc-emoji {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    vertical-align: middle;
    flex-shrink: 0;
    display: inline-block;
}

.slot-farm-page .dc-emoji--xs { width: 13px !important; height: 13px !important; }
.slot-farm-page .dc-emoji--sm { width: 18px !important; height: 18px !important; }
.slot-farm-page .dc-emoji--md { width: 22px !important; height: 22px !important; }
.slot-farm-page .dc-emoji--lg { width: 28px !important; height: 28px !important; }

/* Alert & login */
.slot-farm-page .sf-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--sf-radius-sm);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.slot-farm-page .sf-login .sf-card {
    max-width: 360px;
    margin: 2rem auto;
}

.slot-farm-page .sf-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 1.5rem;
    backdrop-filter: blur(14px);
}

.slot-farm-page .sf-card--center {
    text-align: center;
}

/* Buttons */
.slot-farm-page .sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--sf-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.slot-farm-page .sf-btn--primary {
    background: linear-gradient(135deg, #d97706, #fbbf24);
    color: #111;
}

.slot-farm-page .sf-btn--attack {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 50%, #fbbf24 100%);
    color: #0f0f0f;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
    margin-bottom: 1rem;
}

.slot-farm-page .sf-btn--attack:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45);
}

.slot-farm-page .sf-btn--attack:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* Hub — harita kartları (dikdörtgen grid) */
.slot-farm-page .sf-hub__lead {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    color: var(--sf-muted);
    max-width: 42rem;
    line-height: 1.55;
}

.slot-farm-page .sf-world {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 1080px) {
    .slot-farm-page .sf-world {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .slot-farm-page .sf-world {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1079px) and (min-width: 561px) {
    .slot-farm-page .sf-portal:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.5rem);
        justify-self: center;
    }
}

.slot-farm-page .sf-portal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    height: auto;
    border-radius: var(--sf-radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--sf-surface);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s var(--sf-ease, ease), box-shadow 0.22s ease, border-color 0.22s ease;
}

.slot-farm-page .sf-portal__media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #0c0e14;
    background-image: var(--portal-bg, none);
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.slot-farm-page .sf-portal--fallback .sf-portal__media {
    background-image: linear-gradient(145deg, var(--portal-accent, #334155) 0%, #07080c 72%);
}

.slot-farm-page .sf-portal__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 8, 12, 0.15) 0%,
        rgba(7, 8, 12, 0.35) 45%,
        rgba(7, 8, 12, 0.72) 100%
    );
    pointer-events: none;
}

.slot-farm-page .sf-portal__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    width: 100%;
    background: var(--portal-accent, var(--sf-gold));
    z-index: 2;
}

.slot-farm-page .sf-portal__emoji {
    position: absolute;
    right: 0.75rem;
    bottom: 0.65rem;
    z-index: 2;
    font-size: 1.65rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
    pointer-events: none;
}

.slot-farm-page .sf-portal:hover:not(.sf-portal--locked) {
    transform: translateY(-4px);
    border-color: var(--sf-border-hover);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(251, 191, 36, 0.22);
}

.slot-farm-page .sf-portal--locked {
    filter: grayscale(0.55) brightness(0.62);
    pointer-events: none;
}

.slot-farm-page .sf-portal--locked .sf-portal__veil {
    background: linear-gradient(
        180deg,
        rgba(7, 8, 12, 0.35) 0%,
        rgba(7, 8, 12, 0.72) 55%,
        rgba(7, 8, 12, 0.88) 100%
    );
}

.slot-farm-page .sf-portal__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    gap: 0.55rem;
    padding: 0.95rem 1rem 1.05rem;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(14, 16, 22, 0.96) 0%, rgba(10, 11, 16, 0.98) 100%);
}

.slot-farm-page .sf-portal__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-farm-page .sf-portal__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 0.76rem;
    color: var(--sf-muted);
}

.slot-farm-page .sf-portal__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    white-space: nowrap;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.slot-farm-page .sf-portal__action {
    display: flex;
    align-items: center;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.slot-farm-page .sf-portal__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sf-gold);
}

.slot-farm-page .sf-portal:hover:not(.sf-portal--locked) .sf-portal__cta {
    color: #fcd34d;
}

.slot-farm-page .sf-portal__lock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.65);
}

/* Map view */
.slot-farm-page .sf-breadcrumb {
    margin-bottom: 1rem;
}

.slot-farm-page .sf-breadcrumb__link {
    font-size: 0.85rem;
    color: var(--sf-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.slot-farm-page .sf-breadcrumb__link:hover {
    color: var(--sf-gold);
}

.slot-farm-page .sf-map-banner {
    position: relative;
    border-radius: var(--sf-radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid var(--sf-border);
    background: var(--sf-surface);
}

.slot-farm-page .sf-map-banner__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--map-accent);
}

.slot-farm-page .sf-map-banner__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem 1.1rem 1.35rem;
}

.slot-farm-page .sf-map-banner__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--sf-radius-sm);
    overflow: hidden;
    border: 1px solid var(--sf-border);
    background: rgba(0, 0, 0, 0.4);
}

.slot-farm-page .sf-map-banner__thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
}

.slot-farm-page .sf-map-banner__meta .dc-emoji {
    margin-right: 0.15rem;
}

.slot-farm-page .sf-map-banner__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.slot-farm-page .sf-map-banner__meta {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--sf-muted);
}

/* Layout: enemies | arena */
.slot-farm-page .sf-map-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .slot-farm-page .sf-map-layout {
        grid-template-columns: 1fr;
    }
}

.slot-farm-page .sf-panel {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.slot-farm-page .sf-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.1rem 0.65rem;
    border-bottom: 1px solid var(--sf-border);
}

.slot-farm-page .sf-panel__head--compact {
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

.slot-farm-page .sf-panel__title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sf-muted);
}

.slot-farm-page .sf-panel__hint {
    font-size: 0.72rem;
    color: var(--sf-muted);
}

/* Enemy list */
.slot-farm-page .sf-panel--enemies .slot-list {
    padding: 0.65rem;
    max-height: min(70vh, 640px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.slot-farm-page .sf-enemy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--sf-radius-sm);
    background: var(--sf-surface-2);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.slot-farm-page .sf-enemy:hover {
    background: rgba(255, 255, 255, 0.06);
}

.slot-farm-page .sf-enemy.is-selected {
    border-color: var(--sf-border-hover);
    background: var(--sf-gold-dim);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.slot-farm-page .sf-enemy__icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    max-width: 44px !important;
    max-height: 44px !important;
}

.slot-farm-page .sf-enemy__icon--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    font-size: 1.25rem;
}

.slot-farm-page .sf-enemy__body {
    flex: 1;
    min-width: 0;
}

.slot-farm-page .sf-enemy__name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-farm-page .sf-enemy__stats {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.28rem;
    margin-top: 0.28rem;
    font-size: 0.65rem;
    color: var(--sf-muted);
    width: 100%;
    min-width: 0;
}

.slot-farm-page .sf-enemy__stats .sf-tag {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0.18rem 0.32rem;
    font-size: 0.62rem;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 0.18rem;
}

.slot-farm-page .sf-enemy__stats .dc-emoji,
.slot-farm-page .sf-enemy__stats .dc-emoji--sm {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0;
}

/* Arena */
.slot-farm-page .sf-panel--arena {
    padding: 1.15rem;
    min-height: 420px;
}

.slot-farm-page .sf-arena-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    text-align: center;
    padding: 2rem;
    color: var(--sf-muted);
}

.slot-farm-page .sf-arena-empty__icon {
    opacity: 0.55;
    margin-bottom: 0.75rem;
    line-height: 0;
}

.slot-farm-page .sf-arena-empty__icon .dc-emoji--lg {
    width: 48px !important;
    height: 48px !important;
}

.slot-farm-page .sf-arena-empty__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sf-text);
}

.slot-farm-page .sf-arena-empty__text {
    margin: 0;
    font-size: 0.9rem;
    max-width: 260px;
}

.slot-farm-page .sf-arena-active {
    display: none;
}

.slot-farm-page .sf-arena-active.sf-arena-active--show {
    display: block;
}

/* Combat head: slot left, map right */
.slot-farm-page .sf-combat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    margin-bottom: 1rem;
}

.slot-farm-page .sf-combat-enemy {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.slot-farm-page .sf-combat-enemy__frame {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--sf-radius-sm);
    border: 1px solid var(--sf-border);
}

.slot-farm-page .arena-slot-img {
    max-width: 128px !important;
    max-height: 128px !important;
    width: auto !important;
    height: auto !important;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    object-fit: contain;
}

.slot-farm-page .arena-slot-img.is-placeholder {
    opacity: 0.25;
    max-width: 48px !important;
    max-height: 48px !important;
}

.slot-farm-page .sf-combat-enemy__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.slot-farm-page .sf-combat-enemy__name {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.slot-farm-page .arena-stat-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin: 0 0 0.55rem;
    padding: 0;
    background: none;
    border: none;
}

.slot-farm-page .arena-stat-row .sf-tag {
    margin: 0;
    flex: 0 1 auto;
}

.slot-farm-page .sf-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--sf-border);
    border-radius: 999px;
    color: var(--sf-muted);
}

.slot-farm-page .sf-hp {
    margin-top: 0;
    width: 100%;
}

.slot-farm-page .sf-hp__labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--sf-muted);
    margin-bottom: 0.35rem;
}

.slot-farm-page .sf-hp__labels > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.slot-farm-page .sf-hp__track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.slot-farm-page .sf-hp__fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #f87171);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Map preview — sağda, net piksel */
.slot-farm-page .sf-combat-map {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.slot-farm-page .sf-combat-map__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sf-muted);
}

.slot-farm-page .sf-combat-map__frame {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    line-height: 0;
}

.slot-farm-page .map-art-img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 128px !important;
    max-height: 128px !important;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    object-fit: contain;
}

/* Result */
.slot-farm-page .result-banner {
    display: none;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--sf-radius-sm);
    font-size: 0.88rem;
    line-height: 1.55;
    border: 1px solid var(--sf-border);
}

.slot-farm-page .result-banner.win {
    display: block !important;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.35);
}

.slot-farm-page .result-banner.lose {
    display: block !important;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.slot-farm-page .sonuc-embed .sonuc-title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
}

.slot-farm-page .sonuc-embed .sonuc-intro {
    margin: 0 0 0.65rem;
    color: var(--sf-muted);
}

.slot-farm-page .sonuc-embed .sonuc-alt-baslik {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.85rem;
}

.slot-farm-page .sonuc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.slot-farm-page .sonuc-satir {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.2rem 0.3rem;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.slot-farm-page .dc-emoji {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0;
    vertical-align: middle;
}

.slot-farm-page .dc-sep {
    color: #64748b;
    margin: 0 0.12rem;
}

/* Log */
.slot-farm-page .sf-log-card {
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-sm);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.slot-farm-page .sf-log-body {
    padding: 0.75rem 1rem 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.slot-farm-page .battle-log-placeholder {
    margin: 0;
    font-size: 0.85rem;
    color: var(--sf-muted);
}

.slot-farm-page .round-line {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sf-border);
    font-size: 0.82rem;
}

.slot-farm-page .round-line:last-child {
    border-bottom: none;
}

.slot-farm-page .round-baslik {
    margin-bottom: 0.15rem;
    color: var(--sf-text);
}

.slot-farm-page .round-detay {
    color: var(--sf-muted);
    line-height: 1.45;
}

/* Mobil — masaüstü ile aynı düzen, yalnızca ölçek (gizleme / grid / sütun değişimi yok) */
@media (max-width: 768px) {
    .slot-farm-page {
        padding-top: 4.5rem;
    }

    .slot-farm-page .sf-wrap {
        padding: 1rem max(0.75rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
        overflow-x: hidden;
    }

    .slot-farm-page .sf-hero {
        padding: 1rem 1.1rem;
        gap: 1rem 0.75rem;
        margin-bottom: 1.25rem;
    }

    .slot-farm-page .sf-hero--has-hud .sf-hero__hud {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .slot-farm-page .sf-hud-chip {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        padding: 0.5rem 0.65rem;
        gap: 0.5rem;
    }

    .slot-farm-page .sf-hud-chip__icon {
        width: 34px;
        height: 34px;
    }

    .slot-farm-page .sf-hud-chip__val {
        font-size: 1rem;
    }

    .slot-farm-page .sf-hud-chip__lbl {
        font-size: 0.58rem;
    }

    .slot-farm-page .sf-hub__lead {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .slot-farm-page .sf-world {
        gap: 0.85rem;
    }

    .slot-farm-page .sf-portal__name {
        font-size: 1rem;
    }

    .slot-farm-page .sf-map-banner__content {
        padding: 1rem 1.1rem 1rem 1.2rem;
    }

    .slot-farm-page .sf-map-banner__title {
        font-size: 1.2rem;
    }

    .slot-farm-page .sf-panel--enemies .slot-list {
        max-height: min(45vh, 360px);
        -webkit-overflow-scrolling: touch;
    }

    .slot-farm-page .sf-panel--arena {
        padding: 1rem;
        min-height: 0;
    }

    .slot-farm-page .sf-arena-empty {
        min-height: 240px;
    }

    .slot-farm-page .sf-combat-head {
        flex-wrap: wrap;
        gap: 0.85rem;
    }

    .slot-farm-page .sf-combat-enemy {
        flex: 1 1 auto;
        min-width: 0;
    }

    .slot-farm-page .sf-combat-map {
        display: none !important;
    }

    .slot-farm-page .sf-combat-enemy__frame {
        width: 120px;
        height: 120px;
    }

    .slot-farm-page .arena-slot-img {
        max-width: 108px !important;
        max-height: 108px !important;
    }

    .slot-farm-page .map-art-img {
        max-width: 108px !important;
        max-height: 108px !important;
    }

    .slot-farm-page .sf-log-body {
        max-height: min(40vh, 200px);
        -webkit-overflow-scrolling: touch;
    }

    .slot-farm-page .sf-portal:hover:not(.sf-portal--locked) {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .slot-farm-page .sf-title {
        font-size: 1.35rem;
    }

    .slot-farm-page .sf-subtitle,
    .slot-farm-page .sf-hub__lead {
        font-size: 0.82rem;
    }

    .slot-farm-page .sf-hud-chip {
        flex: 1 1 calc(50% - 0.2rem);
    }

    .slot-farm-page .sf-portal__media {
        aspect-ratio: 16 / 9;
    }

    .slot-farm-page .sf-breadcrumb__link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .slot-farm-page .sf-btn--attack {
        min-height: 48px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .slot-farm-page .sf-enemy,
    .slot-farm-page .sf-btn,
    .slot-farm-page .sf-portal:not(.sf-portal--locked) {
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.15);
    }

    .slot-farm-page .sf-enemy:active {
        background: var(--sf-gold-dim);
    }

    .slot-farm-page .sf-btn--attack:active:not(:disabled) {
        transform: scale(0.98);
    }
}
