:root {
    --bg: #070a12;
    --panel: rgba(13, 17, 29, 0.86);
    --panel-strong: rgba(18, 24, 40, 0.96);
    --line: rgba(255, 202, 43, 0.32);
    --text: #f6f7fb;
    --muted: #b9c2d4;
    --gold: #ffc62d;
    --gold-soft: #ffdc68;
    --blue: #3e91ff;
    --danger: #d31212;
    --purple: #9251d5;
    --shadow: 0 18px 60px rgba(0,0,0,0.45);
    --radius: 18px;
    --map-bg: #d7c68f;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 20%, rgba(255,198,45,.18), transparent 28%),
        radial-gradient(circle at 75% 12%, rgba(62,145,255,.16), transparent 30%),
        linear-gradient(135deg, #080a11 0%, #161014 45%, #070a12 100%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,198,45,.07), transparent 30%, rgba(62,145,255,.06));
    pointer-events: none;
}

.page-shell,
.map-app-shell {
    width: min(1800px, calc(100% - 28px));
    margin: 0 auto;
    padding: 20px 0 30px;
    position: relative;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.06);
    color: #bac5d9;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 12px;
}

.btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 17px;
    font-weight: 900;
    color: #0b0d13;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    box-shadow: 0 10px 28px rgba(255,198,45,.25);
    cursor: pointer;
}
.btn.secondary {
    color: var(--text);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: none;
}
.link-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

.input {
    width: 100%;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(160, 180, 220, .28);
    border-radius: 13px;
    padding: 14px 15px;
    color: var(--text);
    font-size: 15px;
    outline: none;
}
.input:focus { border-color: var(--gold); }

.map-public .map-app-shell {
    width: min(1880px, calc(100% - 18px));
}
.single-map-layout { margin-top: 16px; }
.map-panel { padding: 12px; min-width: 0; }
.map-panel-only { padding: 14px; }
.compact-panel { padding: 14px 16px; }
.floating-toolbar { display: grid; gap: 10px; }
.toolbar-row { display: flex; gap: 12px; align-items: center; }
.toolbar-top { justify-content: space-between; }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar-title { font-size: 20px; color: var(--gold-soft); }
.compact-input { margin: 0; }
.compact-filter { margin: 0; }
.compact-results { max-height: 160px; }
.details-dock { margin-top: 16px; padding: 16px; }
.dock-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 16px; }
.dock-details h2 { margin-top: 14px; }
.dock-legend { margin-top: 14px; }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.coords { color: #d3d9e8; font-size: 14px; }

.map-frame {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    cursor: grab;
    touch-action: none;
    position: relative;
}
.map-frame.dragging { cursor: grabbing; }
.map-frame-beige {
    min-height: 820px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06)),
        linear-gradient(180deg, #decf95, #d1bb79);
    box-shadow: inset 0 0 0 4px rgba(121, 91, 14, 0.28), inset 0 0 0 10px rgba(115, 87, 25, 0.18);
}
.map-board {
    --cell: 34px;
    --gap: 2px;
    display: grid;
    grid-template-columns: repeat(var(--cols), var(--cell));
    grid-template-rows: repeat(var(--rows), var(--cell));
    gap: var(--gap);
    padding: 22px;
    width: max-content;
    transform-origin: 0 0;
    user-select: none;
}
.styled-board {
    border-radius: 26px;
}
.cell {
    width: var(--cell);
    height: var(--cell);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.95);
    font-size: 5.6px;
    font-weight: 900;
    line-height: .94;
    border: 1px solid rgba(255,255,255,.2);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
    cursor: pointer;
    position: relative;
    padding-top: 1px;
}
.cell:hover, .cell.active {
    outline: 2px solid #fff;
    z-index: 3;
    transform: scale(1.11);
}
.cell.search-hit { outline: 2px solid var(--gold); z-index: 2; }
.cell small { font-size: 4.8px; opacity: .98; letter-spacing: .02em; }
.cell .icon { width: 15px; height: 15px; object-fit: contain; margin-bottom: 1px; }

.cell.plain-cell {
    color: transparent;
}
.cell.plain-cell span,
.cell.plain-cell small {
    display: none;
}

.city-olive { background: #7a9369; }
.city-teal { background: #4abca8; }
.city-lime { background: #9bce5d; }
.city-lime-soft { background: #a8cf8f; }
.city-grey4 { background: #8f9097; }
.city-grey5 { background: #6e7076; }
.city-dark { background: #585a61; }
.city-l6 { background: #d8d14e; }
.city-l7 { background: #e6cb32; }
.city-l8 { background: #e2aa32; }
.city-l9 { background: #c97d28; }
.city-l10 { background: #c65e13; }
.trade { background: #2f9ce2; }
.warzone { background: #9a56d8; }
.gold { background: #7f0608; box-shadow: 0 0 18px rgba(255,198,45,.35); }
.capitol { background: #c40a0c; box-shadow: 0 0 16px rgba(196,10,12,.25); }

.field-details h2 { margin: 12px 0 8px; font-size: 25px; color: #9fc4ff; }
.field-details p { color: #c6cede; line-height: 1.45; }
.detail-grid { display: grid; gap: 8px; }
.detail-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    color: #dce6f8;
}
.legend { display: grid; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 10px; color: #dce6f8; font-weight: 800; }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: #dbe4f5;
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}
.filter-btn.active { background: var(--gold); color: #080a12; }
.result-box {
    color: #c8d1e2;
    font-size: 14px;
    overflow: auto;
    padding-right: 6px;
}
.result-item {
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    margin-bottom: 8px;
    cursor: pointer;
}
.result-item:hover { background: rgba(255,198,45,.15); }

.cell.state-ally { outline: 2px solid rgba(75, 210, 102, .95); }
.cell.state-enemy { outline: 2px solid rgba(255, 83, 83, .95); }
.cell.state-target { outline: 2px solid rgba(255, 198, 45, .95); box-shadow: 0 0 22px rgba(255,198,45,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.cell.state-blocked { outline: 2px solid rgba(150, 90, 255, .95); }
.cell .owner-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,.9);
}
.map-marker {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    align-self: center;
    justify-self: center;
    z-index: 8;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0,0,0,.7);
    color: #080a12;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marker-ally { background: #42d66f; }
.marker-enemy { background: #ff5454; }
.marker-target { background: #ffc62d; }
.marker-note { background: #9fc4ff; }
.marker-timer { background: #b267ff; }
.marker-warning { background: #ff8b2c; }

@media (max-width: 1100px) {
    .dock-grid { grid-template-columns: 1fr; }
    .map-frame-beige { min-height: 620px; }
}

@media (max-width: 780px) {
    .map-app-shell,
    .page-shell { width: min(100% - 14px, 1880px); padding-top: 14px; }
    .toolbar-top,
    .toolbar-row { flex-direction: column; align-items: stretch; }
    .toolbar-actions { justify-content: center; }
    .map-board { --cell: 28px; --gap: 2px; padding: 14px; }
    .map-frame-beige { min-height: 520px; }
}

/* Exact-map override: cell colours are generated from the reference map in data/season5_map_data.php. */
.map-board {
    --cell: 34px;
    --gap: 2px;
}
.cell {
    border-color: rgba(255, 255, 255, .42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
.swatch.city { background: #8a9f7a; }
.swatch.trade { background: #45ace8; }
.swatch.warzone { background: #9259d1; }
.swatch.gold { background: #8a0000; }
.swatch.capitol { background: #d21212; }

/* Nachkorrektur: programmierte Map ohne PNG, mit klareren Feldern und ohne leere anklickbare Rastermarker */
.map-frame-beige {
    background:
        linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.04)),
        #d7c68f;
}
.map-board {
    --cell: 34px;
    --gap: 3px;
    background: #d8c789;
    border: 6px solid rgba(107, 84, 28, .55);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.32);
}
.cell {
    border-radius: 1px;
    border: 1px solid rgba(255,255,255,.33);
    text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.cell span,
.cell small {
    pointer-events: none;
}
.cell.plain-cell {
    cursor: default;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.18);
}
.cell.plain-cell:hover,
.cell.plain-cell.active {
    outline: none;
    transform: none;
}
.cell.capitol,
.cell.gold {
    font-size: 5.2px;
    line-height: .95;
}
.cell.trade,
.cell.warzone {
    font-size: 5px;
}

/* Exact reference image mode: visual map is the original PNG. The code overlay is invisible and only used for clicks/status markers. */
.exact-image-frame {
    min-height: 820px;
    overflow: hidden;
    background: rgba(0,0,0,.18) !important;
}
.map-stage {
    transform-origin: 0 0;
    width: max-content;
}
.exact-map-canvas {
    position: relative;
    width: min(1250px, calc(100vw - 460px));
    min-width: 900px;
    aspect-ratio: 1 / 1;
}
.exact-map-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.exact-overlay-board {
    position: absolute !important;
    left: 2.44% !important;
    top: 16.11% !important;
    width: 76.66% !important;
    height: 76.66% !important;
    display: grid !important;
    grid-template-columns: repeat(var(--cols), 1fr) !important;
    grid-template-rows: repeat(var(--rows), 1fr) !important;
    gap: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    transform: none !important;
    z-index: 5;
}
.exact-overlay-board .cell {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: transparent !important;
    padding: 0 !important;
    transform: none !important;
}
.exact-overlay-board .cell span,
.exact-overlay-board .cell small,
.exact-overlay-board .cell .icon {
    display: none !important;
}
.exact-overlay-board .cell:hover,
.exact-overlay-board .cell.active,
.exact-overlay-board .cell.search-hit {
    outline: none !important;
    transform: none !important;
}
.exact-overlay-board .cell::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 0;
    pointer-events: none;
}
.exact-overlay-board .cell:hover::after,
.exact-overlay-board .cell.active::after {
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), 0 0 10px rgba(255,255,255,.45);
}
.exact-overlay-board .cell.search-hit::after {
    border: 2px solid rgba(255,198,45,.95);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), 0 0 10px rgba(255,198,45,.45);
}
.exact-overlay-board .cell.state-ally::after { border: 2px solid rgba(75,210,102,.95); background: rgba(75,210,102,.16); }
.exact-overlay-board .cell.state-enemy::after { border: 2px solid rgba(255,83,83,.95); background: rgba(255,83,83,.16); }
.exact-overlay-board .cell.state-target::after { border: 2px solid rgba(255,198,45,.95); background: rgba(255,198,45,.16); }
.exact-overlay-board .cell.state-blocked::after { border: 2px solid rgba(150,90,255,.95); background: rgba(150,90,255,.16); }
.exact-overlay-board .map-marker {
    width: 16px;
    height: 16px;
}
@media (max-width: 1150px) {
    .exact-map-canvas { width: min(100%, 1100px); min-width: 760px; }
}

/* Präzisionsfix: Overlay auf die mittelgrossen beschrifteten Felder im Originalbild ausrichten. */
.exact-overlay-board {
    left: 2.857% !important;
    top: 15.606% !important;
    width: 77.930% !important;
    height: 77.866% !important;
    z-index: 5 !important;
}

.exact-overlay-board .cell {
    cursor: default !important;
}

.exact-overlay-board .cell::after {
    inset: 18% !important;
    border: 0 !important;
    pointer-events: none !important;
}

.exact-overlay-board .cell:hover::after {
    border: 0 !important;
    box-shadow: none !important;
}

.exact-overlay-board .cell.hit-hover::after,
.exact-overlay-board .cell.active::after {
    border: 2px solid rgba(255,255,255,.95) !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), 0 0 10px rgba(255,255,255,.45) !important;
}

.exact-overlay-board .cell.search-hit::after {
    border: 2px solid rgba(255,198,45,.95) !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), 0 0 10px rgba(255,198,45,.45) !important;
}

.exact-overlay-board .cell.state-ally::after {
    border: 2px solid rgba(75,210,102,.95) !important;
    background: rgba(75,210,102,.16) !important;
}

.exact-overlay-board .cell.state-enemy::after {
    border: 2px solid rgba(255,83,83,.95) !important;
    background: rgba(255,83,83,.16) !important;
}

.exact-overlay-board .cell.state-target::after {
    border: 2px solid rgba(255,198,45,.95) !important;
    background: rgba(255,198,45,.16) !important;
}

.exact-overlay-board .cell.state-blocked::after {
    border: 2px solid rgba(150,90,255,.95) !important;
    background: rgba(150,90,255,.16) !important;
}

/* REAL programmed 30x30 board: no PNG overlay. */
.programmed-map-frame {
    min-height: 860px;
    background: linear-gradient(180deg, #dccb8d, #cdb678) !important;
    box-shadow: inset 0 0 0 5px rgba(120,88,26,.35), inset 0 0 0 10px rgba(79,58,18,.22);
}

.programmed-board {
    --cell: 44px;
    --gap: 0px;
    display: grid !important;
    grid-template-columns: repeat(var(--cols), var(--cell)) !important;
    grid-template-rows: repeat(var(--rows), var(--cell)) !important;
    gap: 0 !important;
    padding: 16px !important;
    width: max-content !important;
    background: #eadb9b !important;
    border: 10px solid rgba(111,83,30,.72) !important;
    border-radius: 28px !important;
    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,.35),
        inset 0 0 0 7px rgba(125,93,29,.33),
        0 14px 32px rgba(0,0,0,.36) !important;
    transform-origin: 0 0;
    overflow: hidden;
}

.programmed-board .cell {
    width: var(--cell) !important;
    height: var(--cell) !important;
    position: relative !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: color-mix(in srgb, var(--field-color, #d9c885) 26%, #eadb9b) !important;
    background-image:
        linear-gradient(to right, rgba(255,255,255,.55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.55) 1px, transparent 1px) !important;
    background-size: 11px 11px !important;
    box-shadow: none !important;
    outline: 0 !important;
    color: #fff !important;
    font-size: 6.2px !important;
    line-height: .92 !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.42) !important;
    padding: 0 !important;
    transform: none !important;
    overflow: visible !important;
    cursor: pointer !important;
}

.programmed-board .cell::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 1px;
    background: var(--field-color, #777);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 2px 4px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.18);
    z-index: 1;
}

.programmed-board .cell.capitol::before,
.programmed-board .cell.gold::before {
    inset: 4px;
    z-index: 1;
    box-shadow: 0 3px 7px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
}

.programmed-board .cell.trade::before,
.programmed-board .cell.warzone::before {
    inset: 7px;
}

.programmed-board .cell span,
.programmed-board .cell small {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    color: #fff !important;
    pointer-events: none !important;
    max-width: 30px;
    text-align: center;
}

.programmed-board .cell small {
    font-size: 5.4px !important;
    letter-spacing: 0 !important;
}

.programmed-board .cell.capitol,
.programmed-board .cell.gold {
    font-size: 7.2px !important;
    line-height: .95 !important;
}

.programmed-board .cell.trade,
.programmed-board .cell.warzone {
    font-size: 5.2px !important;
    line-height: .9 !important;
}

.programmed-board .cell:hover::after,
.programmed-board .cell.active::after,
.programmed-board .cell.search-hit::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 0 10px rgba(255,255,255,.65);
    z-index: 6;
    pointer-events: none;
}

.programmed-board .cell.search-hit::after {
    border-color: rgba(255,198,45,.98);
    box-shadow: 0 0 12px rgba(255,198,45,.75);
}

.programmed-board .cell.state-ally::after,
.programmed-board .cell.state-enemy::after,
.programmed-board .cell.state-target::after,
.programmed-board .cell.state-blocked::after {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: 5;
    pointer-events: none;
}
.programmed-board .cell.state-ally::after { border: 2px solid rgba(75,210,102,.95); background: rgba(75,210,102,.16); }
.programmed-board .cell.state-enemy::after { border: 2px solid rgba(255,83,83,.95); background: rgba(255,83,83,.16); }
.programmed-board .cell.state-target::after { border: 2px solid rgba(255,198,45,.95); background: rgba(255,198,45,.16); }
.programmed-board .cell.state-blocked::after { border: 2px solid rgba(150,90,255,.95); background: rgba(150,90,255,.16); }

.programmed-board .owner-dot {
    z-index: 7 !important;
}

.programmed-board .map-marker {
    z-index: 9 !important;
    width: 18px !important;
    height: 18px !important;
}

@media (max-width: 1200px) {
    .programmed-board { --cell: 38px; padding: 12px !important; }
    .programmed-board .cell::before { inset: 7px; }
    .programmed-board .cell span,
    .programmed-board .cell small { max-width: 26px; }
}


/* Allianz-Kürzel auf gesetzten Gebäuden */
.cell .owner-tag {
    position: absolute;
    left: 50%;
    bottom: 3px;
    transform: translateX(-50%);
    min-width: 22px;
    max-width: 34px;
    height: 13px;
    padding: 0 3px;
    border-radius: 5px;
    background: rgba(8, 10, 18, .88);
    border: 1px solid rgba(255, 255, 255, .72);
    color: #ffffff;
    font-size: 7px;
    font-weight: 900;
    line-height: 12px;
    text-align: center;
    letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0,0,0,.85);
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
}

.programmed-board .owner-tag {
    z-index: 10 !important;
}

.programmed-board .map-marker {
    z-index: 11 !important;
}


/* Google Translate Sprachwahl */
.translate-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
}
.translate-label {
    color: #dbe4f5;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.translate-select {
    min-width: 150px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(160,180,220,.35);
    background: #141a2a;
    color: #f6f7fb;
    font-weight: 800;
    outline: none;
    padding: 0 8px;
    cursor: pointer;
}
.google-translate-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.google-translate-hidden .goog-te-gadget,
.google-translate-hidden .goog-te-combo,
.google-translate-hidden .goog-logo-link,
.google-translate-hidden span {
    font-size: 0 !important;
}
body > .skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame {
    display: none !important;
}
body {
    top: 0 !important;
}
.notranslate,
.notranslate * {
    translate: no;
}

/* Strongholds: zusätzliche SH-Felder zwischen den 900 Gebäuden */
.programmed-board {
    position: relative !important;
}

.programmed-board .stronghold-field {
    position: absolute !important;
    width: 18px !important;
    height: 18px !important;
    transform: translate(-50%, -50%) !important;
    border: 2px solid rgba(255,255,255,.9) !important;
    border-radius: 3px !important;
    background: #9f4a3f !important;
    color: #fff !important;
    font-size: 7px !important;
    font-weight: 900 !important;
    line-height: 14px !important;
    text-align: center !important;
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25) !important;
    z-index: 8 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.75) !important;
}

.programmed-board .stronghold-field:hover,
.programmed-board .stronghold-field.active,
.programmed-board .stronghold-field.search-hit {
    outline: 2px solid rgba(255,255,255,.98) !important;
    box-shadow: 0 0 12px rgba(255,255,255,.7), 0 2px 6px rgba(0,0,0,.45) !important;
    z-index: 14 !important;
}

.programmed-board .stronghold-field.state-ally,
.programmed-board .stronghold-field.state-enemy,
.programmed-board .stronghold-field.state-target,
.programmed-board .stronghold-field.state-blocked {
    box-shadow: 0 0 0 3px rgba(255,198,45,.8), 0 2px 6px rgba(0,0,0,.45) !important;
}

.programmed-board .stronghold-field .owner-tag {
    position: absolute !important;
    left: 50% !important;
    top: 62% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    min-width: 18px !important;
    max-width: 28px !important;
    height: 11px !important;
    padding: 0 2px !important;
    line-height: 10px !important;
    border-radius: 4px !important;
    background: rgba(78, 84, 92, .96) !important;
    border: 1px solid rgba(228, 232, 238, .78) !important;
    color: #ffffff !important;
    font-size: 6px !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.72) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.35) !important;
    z-index: 15 !important;
}

.programmed-board .map-marker.marker-stronghold-position {
    position: absolute !important;
    transform: translate(-50%, -50%) !important;
    z-index: 20 !important;
}


/* Spezielle Strongholds: CP und RC bleiben auffällig, normale SH sind weniger aggressiv rot. */
.programmed-board .stronghold-field.stronghold-cp,
.programmed-board .stronghold-field.stronghold-rc {
    background: #c01822 !important;
    border-color: rgba(255,255,255,.98) !important;
    box-shadow: 0 2px 7px rgba(0,0,0,.48), 0 0 10px rgba(192,24,34,.35), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.programmed-board .stronghold-field.stronghold-rc {
    background: #8b000b !important;
    font-size: 7.4px !important;
}
