/* Tochki AJAX UI v2: green layout + flying crate collect animation */
body .toch-board,
body .toch-control-panel,
body .toch-point-wrap,
body .toch-point-wrap * {
    box-sizing: border-box;
}

body h1.center {
    margin: 5px 4px 6px !important;
    padding: 8px 10px !important;
    border-radius: 12px 12px 0 0 !important;
    color: #f4fff6 !important;
    font: 900 15px/18px Arial, Tahoma, sans-serif !important;
    text-transform: none;
    text-shadow: 0 1px 0 #000, 0 0 10px rgba(71, 226, 116, .22) !important;
    background: linear-gradient(180deg, #173d28 0%, #07140d 100%) !important;
    border: 1px solid rgba(101, 190, 126, .45) !important;
    border-bottom-color: rgba(0,0,0,.85) !important;
}

body .toch-board {
    width: 100% !important;
    max-width: 430px;
    margin: 0 auto 9px !important;
    padding: 8px 7px 9px;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    background:
        radial-gradient(circle at 18% 0%, rgba(73, 204, 104, .16), transparent 32%),
        radial-gradient(circle at 88% 8%, rgba(224, 198, 103, .10), transparent 30%),
        linear-gradient(180deg, #0b2819 0%, #020806 100%) !important;
    border: 1px solid rgba(84, 169, 106, .46) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.36);
}

body .toch-grid {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 7px 8px !important;
    margin: 0 auto !important;
}
body .toch-grid tr,
body .toch-grid tbody { width: 100% !important; }
body .toch-grid td {
    width: 25% !important;
    max-width: 25% !important;
    padding: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: visible !important;
}

body .toch-point-wrap {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 68px;
    height: 68px;
    margin: 0 auto !important;
    border-radius: 13px;
    background:
        radial-gradient(circle at 50% 8%, rgba(97, 232, 130, .15), transparent 42%),
        linear-gradient(180deg, rgba(12, 48, 29, .90), rgba(2, 8, 5, .96)) !important;
    border: 1px solid rgba(94, 184, 118, .33);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -10px 14px rgba(0,0,0,.20), 0 6px 13px rgba(0,0,0,.36);
    vertical-align: middle;
}
body .toch-point-wrap.is-ready {
    border-color: rgba(230, 199, 91, .78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(26, 126, 55, .52), 0 0 16px rgba(58, 213, 100, .23), 0 6px 14px rgba(0,0,0,.38);
}
body .toch-point-wrap.is-waiting {
    filter: saturate(.82) brightness(.72);
}
body .toch-point-wrap.is-grabbed {
    filter: saturate(.72) brightness(.78);
}
body .toch-point-wrap.is-empty {
    opacity: .76;
}
body .toch-point-wrap.is-sale {
    opacity: .92;
}
body .toch-point-wrap.is-locked {
    opacity: .58;
}

body .toch-point-wrap .toch-point-img,
body .toch-point-wrap .inner_toch {
    display: block;
    max-width: 61px !important;
    max-height: 58px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(213, 190, 105, .46) !important;
    box-shadow: inset 0 0 12px rgba(0,0,0,.38), 0 2px 7px rgba(0,0,0,.46) !important;
    transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
body .toch-point-wrap.is-ready .inner_toch {
    animation: tochReadyPulse 1.55s ease-in-out infinite;
}
body .toch-collect-link,
body .toch-new-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
body .toch-collect-link.is-loading .inner_toch,
body .toch-point-wrap.is-collecting .inner_toch {
    transform: scale(.88) rotate(-3deg);
    filter: brightness(1.25) saturate(1.35);
}
body .toch-collect-link.is-done .inner_toch,
body .toch-point-wrap.is-collected .inner_toch {
    opacity: .55;
    filter: grayscale(.25) brightness(.82);
}
body .toch-collect-all.is-loading,
body .toch-collect-link.is-loading {
    pointer-events: none;
    opacity: .84;
}
body .toch-rep-icon {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 6 !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 2px !important;
    transform: none !important;
    border: 1px solid rgba(228, 199, 93, .66) !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 40% 20%, rgba(255,245,167,.30), rgba(5,16,10,.88) 64%) !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,.54), 0 2px 6px rgba(0,0,0,.72), 0 0 11px rgba(58,213,100,.25) !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.72));
}
body .timeToch {
    z-index: 5;
    left: 50% !important;
    transform: translateX(-50%);
    padding: 1px 5px;
    border-radius: 7px;
    color: #fff6bf !important;
    background: rgba(0,0,0,.58);
    border: 1px solid rgba(230, 197, 91, .38);
}

body .toch-control-panel {
    margin: 9px 4px 10px !important;
    padding: 11px 11px 12px !important;
    border-radius: 14px !important;
    color: #eaffef !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(226, 198, 111, .12), transparent 35%),
        linear-gradient(180deg, #0f3221 0%, #04100a 100%) !important;
    border: 1px solid rgba(86, 184, 112, .55) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 19px rgba(0,0,0,.38);
    text-align: left;
}
body .toch-storage-line {
    position: relative;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(10, 38, 24, .96), rgba(2, 8, 5, .96));
    border: 1px solid rgba(109, 190, 130, .32);
    color: #d7f3df;
}
body .toch-storage-label {
    color: #d5bd75;
    font-weight: 800;
}
body .toch-storage-value {
    color: #fff7c8;
    text-shadow: 0 1px 0 #000, 0 0 10px rgba(226, 198, 111, .18);
}
body .toch-storage-value.is-bump {
    animation: tochStorageBump .45s ease;
}
body .toch-settings-link {
    margin-left: auto;
    float: none !important;
}
body .toch-settings-link img { max-width: 22px; max-height: 22px; }
body .toch-control-panel a.bttn,
body .toch-control-panel a.bttn_green,
body .toch-control-panel a.bttn_sea,
body .toch-control-panel a.bttn_red,
body .toch-control-panel a.bttn_gray {
    width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 8px 0 0 !important;
    padding: 8px 12px !important;
    border-radius: 11px !important;
    color: #f7fff8 !important;
    font: 900 13px/16px Arial, Tahoma, sans-serif !important;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #000;
    background: linear-gradient(180deg, #24b86d 0%, #11683b 52%, #052416 100%) !important;
    border: 1px solid rgba(111, 224, 145, .80) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px rgba(0,0,0,.35) !important;
}
body .toch-control-panel a.bttn_gray {
    color: #bdd0c4 !important;
    background: linear-gradient(180deg, #33453c 0%, #16221c 55%, #080d0a 100%) !important;
    border-color: rgba(107, 130, 115, .62) !important;
}
body .toch-control-panel a.bttn_red {
    color: #fff4cf !important;
    background: linear-gradient(180deg, #f0cf67 0%, #9a6a1f 55%, #36210a 100%) !important;
    border-color: rgba(235, 203, 103, .82) !important;
}
body .toch-control-panel a:hover {
    filter: brightness(1.08);
}

.toch-fly-box {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(233, 203, 111, .42), 0 0 18px rgba(75, 235, 114, .38), 0 8px 19px rgba(0,0,0,.50);
    animation: tochFlyUp 1.05s cubic-bezier(.18,.76,.2,1) forwards;
}
.toch-float-gain {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    transform: translateX(-50%);
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff1b7;
    font: 900 12px/15px Arial, Tahoma, sans-serif;
    text-shadow: 0 1px 0 #000, 0 0 9px rgba(255, 225, 126, .40);
    background: linear-gradient(180deg, rgba(17, 59, 32, .92), rgba(4, 14, 8, .88));
    border: 1px solid rgba(229, 197, 95, .46);
    box-shadow: 0 8px 18px rgba(0,0,0,.40);
    animation: tochGainUp 1.05s ease-out forwards;
}
.toch-spark-burst {
    position: fixed;
    z-index: 9998;
    width: 9px;
    height: 9px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    pointer-events: none;
    background: #f4d872;
    box-shadow: 0 -18px 0 rgba(93,255,136,.82), 17px -8px 0 rgba(244,216,114,.75), -17px -7px 0 rgba(93,255,136,.72), 10px 13px 0 rgba(244,216,114,.64), -10px 13px 0 rgba(93,255,136,.58);
    animation: tochSpark .62s ease-out forwards;
}
.toch-toast-error {
    position: fixed;
    left: 50%;
    top: 42%;
    z-index: 10001;
    max-width: min(92vw, 350px);
    transform: translate(-50%, -50%);
    padding: 10px 12px;
    border-radius: 12px;
    color: #ffe9e9;
    text-align: center;
    background: linear-gradient(180deg, #3a1419, #100609);
    border: 1px solid rgba(226, 82, 94, .55);
    box-shadow: 0 10px 25px rgba(0,0,0,.55);
}

@keyframes tochReadyPulse {
    0%,100% { transform: translateY(0); filter: brightness(1); }
    50% { transform: translateY(-2px); filter: brightness(1.17); }
}
@keyframes tochFlyUp {
    0% { opacity: 1; transform: translate3d(0,0,0) scale(1) rotate(0deg); filter: brightness(1.15); }
    28% { opacity: 1; transform: translate3d(8px,-36px,0) scale(1.05) rotate(5deg); }
    100% { opacity: 0; transform: translate3d(-18px,-138px,0) scale(.42) rotate(-12deg); filter: brightness(1.55); }
}
@keyframes tochGainUp {
    0% { opacity: 0; transform: translate(-50%, 14px) scale(.82); }
    16% { opacity: 1; transform: translate(-50%, 0) scale(1.04); }
    75% { opacity: 1; transform: translate(-50%, -52px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -76px) scale(.86); }
}
@keyframes tochSpark {
    0% { opacity: 0; transform: scale(.3); }
    18% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(2.1); }
}
@keyframes tochStorageBump {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.14); color: #fff; }
}

@media (max-width: 480px) {
    body .toch-board {
        width: calc(100vw - 4px) !important;
        max-width: none !important;
        margin-left: 2px !important;
        margin-right: 2px !important;
        padding-left: 5px;
        padding-right: 5px;
    }
    body .toch-grid { border-spacing: 6px 8px !important; }
    body .toch-point-wrap { max-width: 67px; height: 66px; }
    body .toch-point-wrap .toch-point-img,
    body .toch-point-wrap .inner_toch { max-width: 60px !important; }
    body .toch-control-panel {
        width: calc(100vw - 4px) !important;
        margin-left: 2px !important;
        margin-right: 2px !important;
    }
}


/* Tochki AJAX UI v3: top-right reputation badge + reward icon float + separate manage button */
body .toch-control-panel a.toch-manage-btn {
    color: #fff2bd !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 236, 141, .22), transparent 42%),
        linear-gradient(180deg, #d9b94f 0%, #8a621a 54%, #2f1d07 100%) !important;
    border-color: rgba(243, 211, 109, .90) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.26),
        inset 0 -10px 18px rgba(0,0,0,.18),
        0 6px 14px rgba(0,0,0,.35),
        0 0 16px rgba(226,198,111,.12) !important;
}
body .toch-control-panel a.toch-manage-btn:hover {
    filter: brightness(1.10) saturate(1.05);
}

.toch-float-gain {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.toch-float-gain .toch-gain-part {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.toch-float-gain img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.75));
}
.toch-float-gain .toch-gain-plus {
    color: #fff3b0;
    font-weight: 900;
}

@media (max-width: 480px) {
    body .toch-rep-icon {
        top: 3px !important;
        right: 3px !important;
        width: 21px !important;
        height: 21px !important;
    }
}

/* Tochki AJAX UI v4: softer green tiles + balanced management buttons */
body .toch-point-wrap {
    background:
        radial-gradient(circle at 50% 10%, rgba(176, 246, 171, .32), transparent 43%),
        linear-gradient(180deg, #173c29 0%, #0a2116 52%, #03100a 100%) !important;
    border-color: rgba(122, 224, 146, .44) !important;
}
body .toch-point-wrap.is-ready {
    background:
        radial-gradient(circle at 50% 8%, rgba(215, 255, 183, .44), transparent 42%),
        linear-gradient(180deg, #2f6844 0%, #17472c 51%, #081b11 100%) !important;
    border-color: rgba(184, 244, 157, .72) !important;
}
body .toch-point-wrap .toch-point-img,
body .toch-point-wrap .inner_toch {
    border-color: rgba(176, 236, 162, .58) !important;
    background-color: #c9eeb7 !important;
    filter: hue-rotate(72deg) saturate(.82) brightness(1.05);
}
body .toch-point-wrap.is-ready .inner_toch {
    filter: hue-rotate(72deg) saturate(.92) brightness(1.13);
}
body .toch-point-wrap.is-waiting .inner_toch,
body .toch-point-wrap.is-grabbed .inner_toch,
body .toch-point-wrap.is-empty .inner_toch,
body .toch-point-wrap.is-locked .inner_toch {
    filter: hue-rotate(72deg) saturate(.55) brightness(.78);
}
body .toch-fly-box {
    filter: hue-rotate(72deg) saturate(.92) brightness(1.12) drop-shadow(0 0 10px rgba(89, 231, 125, .4));
}

body .toch-control-panel a[href*='mod=exchange'] {
    color: #f4fff6 !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(89, 223, 122, .24), transparent 45%),
        linear-gradient(180deg, #35b76d 0%, #166d41 53%, #062817 100%) !important;
    border-color: rgba(130, 230, 154, .86) !important;
}
body .toch-control-panel a[href*='mod=boost_all'] {
    color: #fff8cf !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 224, 112, .22), transparent 44%),
        linear-gradient(180deg, #cda247 0%, #825b1c 53%, #281906 100%) !important;
    border-color: rgba(239, 204, 97, .86) !important;
}
body .toch-control-panel a[href*='mod=new_toch'] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 8px 10px !important;
    margin: 8px 0 0 !important;
    border-radius: 11px !important;
    line-height: 16px !important;
    box-sizing: border-box !important;
    color: #fff2bd !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 236, 141, .22), transparent 42%),
        linear-gradient(180deg, #d9b94f 0%, #8a621a 54%, #2f1d07 100%) !important;
    border-color: rgba(243, 211, 109, .90) !important;
}
body .toch-control-panel a[href*='mod=boost_all'],
body .toch-control-panel a[href*='mod=exchange'],
body .toch-control-panel a[href*='mod=new_toch'] {
    overflow: hidden !important;
}

@media (max-width: 480px) {
    body .toch-control-panel a[href*='mod=new_toch'],
    body .toch-control-panel a[href*='mod=exchange'],
    body .toch-control-panel a[href*='mod=boost_all'] {
        min-height: 41px !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }
}

/* Tochki AJAX UI v5: final button colors, green point tiles and choice-card titles */
body .toch-control-panel,
body .toch-control-panel * {
    box-sizing: border-box !important;
}

/* Stronger green tile tint: overrides old inline pale/pink backgrounds. */
body .toch-point-wrap {
    background:
        radial-gradient(circle at 50% 8%, rgba(198, 255, 191, .46), transparent 42%),
        linear-gradient(180deg, #2d6842 0%, #16482d 54%, #061c10 100%) !important;
    border-color: rgba(167, 244, 158, .68) !important;
}
body .toch-point-wrap.is-ready {
    background:
        radial-gradient(circle at 50% 7%, rgba(231, 255, 199, .58), transparent 43%),
        linear-gradient(180deg, #4d8758 0%, #27603a 54%, #0b2515 100%) !important;
    border-color: rgba(216, 246, 165, .88) !important;
}
body .toch-point-wrap .toch-point-img,
body .toch-point-wrap .inner_toch,
body .toch-point-wrap img.inner_toch[style] {
    background: linear-gradient(180deg, #cfeebd 0%, #87c88d 100%) !important;
    border-color: rgba(221, 246, 176, .74) !important;
    filter: hue-rotate(92deg) saturate(.74) brightness(1.08) !important;
}
body .toch-point-wrap.is-ready .inner_toch,
body .toch-point-wrap.is-ready img.inner_toch[style] {
    filter: hue-rotate(92deg) saturate(.86) brightness(1.17) !important;
}
body .toch-point-wrap.is-waiting .inner_toch,
body .toch-point-wrap.is-grabbed .inner_toch,
body .toch-point-wrap.is-empty .inner_toch,
body .toch-point-wrap.is-locked .inner_toch {
    filter: hue-rotate(92deg) saturate(.48) brightness(.84) !important;
}

/* Management buttons: unique colors + no overflow. */
body .toch-control-panel a.bttn,
body .toch-control-panel a.bttn_green,
body .toch-control-panel a.bttn_sea,
body .toch-control-panel a.bttn_red,
body .toch-control-panel a.bttn_gray,
body .toch-control-panel a.toch-sell-btn,
body .toch-control-panel a.toch-boost-btn,
body .toch-control-panel a.toch-net-btn,
body .toch-control-panel a.toch-buy-point-btn,
body .toch-control-panel a.toch-manage-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 41px !important;
    height: auto !important;
    margin: 8px 0 0 !important;
    padding: 8px 10px !important;
    border-radius: 11px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
body .toch-control-panel a.toch-sell-btn,
body .toch-control-panel a[href*='mod=exchange'] {
    color: #eaffef !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(115, 242, 160, .23), transparent 43%),
        linear-gradient(180deg, #239d61 0%, #0d5a37 54%, #052115 100%) !important;
    border-color: rgba(94, 218, 139, .84) !important;
}
body .toch-control-panel a.toch-boost-btn,
body .toch-control-panel a[href*='mod=boost_all'] {
    color: #fff8cf !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 228, 117, .28), transparent 43%),
        linear-gradient(180deg, #d2a446 0%, #8a5b1b 54%, #301b06 100%) !important;
    border-color: rgba(238, 203, 96, .88) !important;
}
body .toch-control-panel a.toch-buy-point-btn,
body .toch-control-panel a[href*='mod=new_toch'] {
    color: #fff4c8 !important;
    min-height: 41px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 236, 144, .30), transparent 42%),
        linear-gradient(180deg, #ddb948 0%, #9a681d 54%, #3a2208 100%) !important;
    border-color: rgba(244, 211, 104, .90) !important;
}
body .toch-control-panel a.toch-net-btn,
body .toch-control-panel a[href*='mod=toch_all_buy'] {
    color: #f3fff5 !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(78, 224, 121, .25), transparent 43%),
        linear-gradient(180deg, #1aae6a 0%, #0d613c 54%, #052316 100%) !important;
    border-color: rgba(105, 224, 142, .86) !important;
}

/* Choice cards: used when buying one point or replacing all points. */
body .toch-choice-title,
body .boss_title.toch-choice-title {
    margin: 8px 6px 0 !important;
    padding: 9px 12px !important;
    border-radius: 12px 12px 0 0 !important;
    color: #fff7c8 !important;
    font: 900 15px/18px Arial, Tahoma, sans-serif !important;
    text-shadow: 0 1px 0 #000, 0 0 11px rgba(230, 198, 92, .22) !important;
    background:
        radial-gradient(circle at 14% 0%, rgba(240, 207, 101, .18), transparent 34%),
        linear-gradient(180deg, #21402b 0%, #0b1e14 100%) !important;
    border: 1px solid rgba(211, 181, 85, .48) !important;
    border-bottom: 0 !important;
}
body .toch-choice-card,
body .boss_info_default.toch-choice-card {
    margin: 0 6px 8px !important;
    padding: 8px !important;
    border-radius: 0 0 12px 12px !important;
    background:
        radial-gradient(circle at 88% 0%, rgba(230, 198, 92, .12), transparent 32%),
        linear-gradient(180deg, #0f2d1d 0%, #04100a 100%) !important;
    border: 1px solid rgba(90, 185, 116, .42) !important;
    border-top: 0 !important;
    color: #eaffef !important;
}
body .toch-choice-card img.inner_toch,
body .toch-choice-card img[src*='/theme/i/icons/toch/'],
body .toch-choice-card img[src*='theme/i/icons/toch/'] {
    background: linear-gradient(180deg, #d7f0bd 0%, #8ecb8e 100%) !important;
    border: 2px solid rgba(221, 246, 176, .78) !important;
    border-radius: 10px !important;
    filter: hue-rotate(92deg) saturate(.74) brightness(1.08) !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 0 12px rgba(77, 209, 113, .20) !important;
}
body .toch-choice-card a[data-toch-choice-action='1'],
body .toch-choice-card a[href*='mod=crop_go'],
body .toch-choice-card a[href*='mod=toch_all_buy'][href*='id='],
body .toch-choice-card a[href*='go=fast'],
body .toch-choice-card a[href*='go=slow'] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 11px !important;
    color: #fff3bd !important;
    font: 900 13px/16px Arial, Tahoma, sans-serif !important;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #000;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 236, 144, .30), transparent 42%),
        linear-gradient(180deg, #e0bd4f 0%, #9b6a20 54%, #3b2309 100%) !important;
    border: 1px solid rgba(246, 214, 109, .9) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 13px rgba(0,0,0,.34) !important;
}
body .toch-choice-card a[data-toch-choice-action='1']:hover,
body .toch-choice-card a[href*='mod=crop_go']:hover,
body .toch-choice-card a[href*='mod=toch_all_buy'][href*='id=']:hover {
    filter: brightness(1.08) saturate(1.05);
}

/* === Toch/Grab AJAX v6: robbery point state + guard cooldown === */
.toch-point-wrap .toch-grab-link{
    display:block;
    position:relative;
}
.toch-point-wrap .toch-grab-link.is-loading .toch-point-img,
.toch-point-wrap.is-grab-wait .toch-point-img{
    filter: brightness(.82) saturate(.85);
}
.toch-point-wrap.is-grabbed .toch-point-img{
    background:#b9877d!important;
    filter:saturate(.8) brightness(.92);
}
.toch-grab-cooldown{
    position:absolute;
    left:50%;
    top:50%;
    z-index:8;
    transform:translate(-50%,-50%);
    min-width:42px;
    padding:3px 6px;
    border-radius:999px;
    color:#fff6ca;
    font:900 12px/15px Arial,Tahoma,sans-serif;
    text-shadow:0 1px 0 #000;
    text-align:center;
    background:linear-gradient(180deg,#4b1d19,#170706);
    border:1px solid rgba(255,205,112,.74);
    box-shadow:0 0 14px rgba(255,80,46,.28), inset 0 1px 0 rgba(255,255,255,.12);
    pointer-events:none;
}
.toch-grab-gain{
    position:fixed;
    z-index:99999;
    pointer-events:none;
    display:flex;
    align-items:center;
    gap:4px;
    padding:4px 9px;
    border-radius:999px;
    color:#ffe58b;
    font:900 14px/18px Arial,Tahoma,sans-serif;
    text-transform:uppercase;
    text-shadow:0 1px 0 #000,0 0 10px rgba(255,205,77,.52);
    background:linear-gradient(180deg,rgba(18,67,39,.98),rgba(4,14,9,.98));
    border:1px solid rgba(227,196,100,.72);
    box-shadow:0 8px 22px rgba(0,0,0,.45),0 0 18px rgba(41,190,91,.18);
    transform:translate(-50%,0);
    animation:tochGrabGainFly 1.22s ease-out forwards;
}
.toch-grab-gain img{width:20px;height:20px;object-fit:contain;}
.toch-grab-word{color:#ffffff;margin-right:2px;}
.toch-grab-spark{box-shadow:0 0 0 999px transparent;}
@keyframes tochGrabGainFly{
    0%{opacity:0;transform:translate(-50%,18px) scale(.82)}
    14%{opacity:1;transform:translate(-50%,0) scale(1.06)}
    78%{opacity:1;transform:translate(-50%,-70px) scale(1)}
    100%{opacity:0;transform:translate(-50%,-105px) scale(.88)}
}


/* === Toch/Grab AJAX v8: enemy messages + random bottom button cooldown === */
body .toch-random-grab-ajax{
    display:block!important;
    margin:8px 6px 0!important;
    padding:10px 12px!important;
    min-height:36px!important;
    border-radius:9px!important;
    text-align:center!important;
    box-sizing:border-box!important;
    color:#fff!important;
    font:900 13px/16px Arial,Tahoma,sans-serif!important;
    text-transform:uppercase!important;
    text-decoration:none!important;
    text-shadow:0 1px 0 #000!important;
    border:1px solid rgba(116,229,150,.78)!important;
    background:linear-gradient(180deg,#20bc70 0%,#0d6a3d 55%,#062215 100%)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 5px 13px rgba(0,0,0,.36)!important;
}
body .toch-random-grab-ajax.is-loading{
    pointer-events:none!important;
    opacity:.82!important;
    filter:saturate(.88) brightness(.94)!important;
}
body .toch-point-wrap.is-empty .toch-grab-link,
body .toch-point-wrap.is-waiting .toch-grab-link,
body .toch-point-wrap.is-grabbed .toch-grab-link{
    display:block!important;
    position:relative!important;
    cursor:pointer!important;
}
body .toch-point-wrap.is-empty .toch-point-img,
body .toch-point-wrap.is-waiting .toch-point-img{
    filter:brightness(.92) saturate(.82)!important;
}
body .toch-point-wrap.is-grabbed .toch-point-img{
    background:#8fae9d!important;
    filter:saturate(.62) brightness(.88)!important;
}


/* Tochki/Grab v6: live energy bump, green guard toast and centered guard countdown */
.toch-toast-error.is-guard,
.toch-toast-error.is-info {
    color: #f2fff4 !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(122, 245, 151, .22), transparent 48%),
        linear-gradient(180deg, #145232 0%, #082315 58%, #031009 100%) !important;
    border: 1px solid rgba(114, 231, 144, .78) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.13),
        0 10px 25px rgba(0,0,0,.55),
        0 0 18px rgba(64, 219, 104, .23) !important;
    text-shadow: 0 1px 0 #000, 0 0 10px rgba(102, 245, 141, .24) !important;
    font-weight: 900 !important;
}

body .toch-point-wrap.is-grab-wait {
    overflow: hidden !important;
    filter: none !important;
    border-color: rgba(238, 208, 100, .86) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 0 0 1px rgba(22, 112, 54, .62),
        0 0 18px rgba(227, 195, 91, .24),
        0 6px 14px rgba(0,0,0,.42) !important;
}
body .toch-point-wrap.is-grab-wait::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 15;
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 50%, rgba(19, 91, 50, .66), rgba(1, 10, 6, .80) 68%),
        linear-gradient(180deg, rgba(20, 75, 43, .72), rgba(3, 15, 9, .82));
    pointer-events: none;
}
body .toch-point-wrap.is-grab-wait .inner_toch,
body .toch-point-wrap.is-grab-wait .toch-point-img {
    opacity: .48 !important;
    transform: scale(.94) !important;
    filter: saturate(.75) brightness(.85) !important;
}
body .toch-grab-cooldown {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    z-index: 25 !important;
    transform: translate(-50%, -50%) !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    color: #fff6bd !important;
    font: 900 25px/34px Arial, Tahoma, sans-serif !important;
    text-align: center !important;
    text-shadow: 0 2px 0 #000, 0 0 12px rgba(255, 232, 130, .55) !important;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 235, 138, .22), transparent 48%),
        linear-gradient(180deg, rgba(18, 83, 45, .92), rgba(2, 19, 10, .96)) !important;
    border: 1px solid rgba(235, 205, 102, .76) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 4px 12px rgba(0,0,0,.56) !important;
    animation: tochGuardCountPulse .72s ease-in-out infinite alternate;
    pointer-events: none !important;
}

.mafia-vital-energy .mafia-vital-text.is-bump,
[data-header-energy-text].is-bump,
.header-energy-text.is-bump,
.energy-header-text.is-bump {
    animation: mafiaEnergyBump .42s ease;
}

@keyframes tochGuardCountPulse {
    0% { transform: translate(-50%, -50%) scale(.96); }
    100% { transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes mafiaEnergyBump {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.16); color: #fff0a6; }
}

/* === Toch v10: paid energy restore modal === */
body .toch-energy-modal{
    position:fixed!important;
    inset:0!important;
    z-index:100000!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:14px!important;
    background:rgba(0,7,4,.68)!important;
    backdrop-filter:blur(2px);
}
body .toch-energy-dialog{
    width:min(310px,calc(100vw - 28px))!important;
    box-sizing:border-box!important;
    border-radius:14px!important;
    padding:14px 12px 12px!important;
    text-align:center!important;
    color:#effff1!important;
    background:
        radial-gradient(circle at 50% 0%,rgba(58,210,107,.22),transparent 44%),
        linear-gradient(180deg,#104d31 0%,#082516 55%,#020b06 100%)!important;
    border:1px solid rgba(125,230,148,.78)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 16px 35px rgba(0,0,0,.65),0 0 22px rgba(31,194,89,.18)!important;
    animation:tochEnergyPop .18s ease-out;
}
body .toch-energy-title{
    color:#fff7b6!important;
    font:900 17px/22px Arial,Tahoma,sans-serif!important;
    text-transform:uppercase!important;
    text-shadow:0 1px 0 #000,0 0 12px rgba(255,222,111,.32)!important;
    margin-bottom:5px!important;
}
body .toch-energy-text{
    color:#dff6e4!important;
    font:700 13px/18px Arial,Tahoma,sans-serif!important;
    margin-bottom:9px!important;
}
body .toch-energy-price{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    margin:7px 0 12px!important;
    padding:9px 8px!important;
    border-radius:10px!important;
    background:linear-gradient(180deg,rgba(2,20,11,.78),rgba(0,8,4,.82))!important;
    border:1px solid rgba(235,200,92,.45)!important;
}
body .toch-energy-price span{
    display:inline-flex!important;
    align-items:center!important;
    gap:4px!important;
    color:#fff!important;
    font:800 13px/18px Arial,Tahoma,sans-serif!important;
}
body .toch-energy-price em{
    color:#e5cf80!important;
    font:900 12px/18px Arial,Tahoma,sans-serif!important;
    font-style:normal!important;
    text-transform:uppercase!important;
}
body .toch-energy-modal-icon,
body img.toch-energy-modal-icon{
    display:inline-block!important;
    width:22px!important;
    height:22px!important;
    max-width:22px!important;
    max-height:22px!important;
    object-fit:contain!important;
    filter:drop-shadow(0 1px 2px rgba(0,0,0,.75))!important;
}
body .toch-energy-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
}
body .toch-energy-actions button{
    width:100%!important;
    min-height:38px!important;
    border-radius:10px!important;
    border:1px solid rgba(255,255,255,.15)!important;
    color:#fff!important;
    font:900 13px/16px Arial,Tahoma,sans-serif!important;
    text-transform:uppercase!important;
    text-shadow:0 1px 0 #000!important;
    cursor:pointer!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 5px 13px rgba(0,0,0,.34)!important;
}
body .toch-energy-yes{
    background:linear-gradient(180deg,#21c477 0%,#0f7b45 56%,#062113 100%)!important;
    border-color:rgba(111,236,150,.76)!important;
}
body .toch-energy-no{
    background:linear-gradient(180deg,#b52a35 0%,#65121a 56%,#130304 100%)!important;
    border-color:rgba(255,109,109,.72)!important;
}
body .toch-energy-yes.is-loading{
    pointer-events:none!important;
    opacity:.78!important;
}
@keyframes tochEnergyPop{
    from{opacity:0;transform:translateY(10px) scale(.95)}
    to{opacity:1;transform:translateY(0) scale(1)}
}


/* === settings patch v37: visible point timers === */
body .toch-point-wrap{position:relative!important;overflow:visible!important;}
body .timeToch,
body .js-toch-countdown{
    position:absolute!important;
    left:50%!important;
    top:auto!important;
    bottom:-13px!important;
    transform:translateX(-50%)!important;
    z-index:20!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:46px!important;
    width:auto!important;
    height:16px!important;
    padding:0 6px!important;
    margin:0!important;
    border-radius:9px!important;
    color:#fff3aa!important;
    font:900 10px/16px Arial,Helvetica,sans-serif!important;
    background:linear-gradient(180deg,rgba(26,84,45,.96),rgba(2,18,9,.98))!important;
    border:1px solid rgba(255,218,88,.62)!important;
    box-shadow:0 2px 5px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.10)!important;
    text-shadow:0 1px 2px #000!important;
    opacity:1!important;
    pointer-events:none!important;
}


/* === settings patch v37: point tax timer badge on the point === */
body .toch-point-wrap{
    position:relative!important;
    overflow:visible!important;
}
body .toch-point-wrap .timeToch,
body .toch-point-wrap .js-toch-countdown{
    position:absolute!important;
    left:auto!important;
    right:3px!important;
    top:auto!important;
    bottom:4px!important;
    transform:none!important;
    z-index:35!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:38px!important;
    max-width:64px!important;
    height:15px!important;
    padding:0 4px!important;
    margin:0!important;
    border-radius:8px!important;
    color:#fff0b0!important;
    font:900 10px/15px Arial,Helvetica,sans-serif!important;
    letter-spacing:-.2px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    background:linear-gradient(180deg,rgba(45,33,8,.96),rgba(11,24,10,.98))!important;
    border:1px solid rgba(255,224,87,.72)!important;
    box-shadow:0 1px 3px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.14)!important;
    text-shadow:0 1px 2px #000!important;
    opacity:.98!important;
    pointer-events:none!important;
}
body .toch-point-wrap.is-ready .timeToch,
body .toch-point-wrap.is-ready .js-toch-countdown,
body .toch-point-wrap.is-empty .timeToch,
body .toch-point-wrap.is-empty .js-toch-countdown{
    display:none!important;
}


/* === toch patch v38: force visible tribute timer on points === */
body .toch-grid,
body .toch-grid td,
body .toch-point-wrap,
body .toch-point-wrap a{
    overflow:visible!important;
}
body .toch-point-wrap .timeToch,
body .toch-point-wrap .js-toch-countdown{
    position:absolute!important;
    left:auto!important;
    right:2px!important;
    bottom:3px!important;
    top:auto!important;
    transform:none!important;
    z-index:999!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:39px!important;
    max-width:63px!important;
    height:15px!important;
    padding:0 4px!important;
    margin:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    border-radius:8px!important;
    color:#fff1b4!important;
    font:900 10px/15px Arial,Helvetica,sans-serif!important;
    letter-spacing:-.35px!important;
    background:linear-gradient(180deg,rgba(76,52,10,.98),rgba(9,28,11,.98))!important;
    border:1px solid rgba(255,219,70,.78)!important;
    box-shadow:0 1px 4px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.18)!important;
    text-shadow:0 1px 2px #000!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:none!important;
}
body .toch-point-wrap.is-ready .timeToch,
body .toch-point-wrap.is-ready .js-toch-countdown,
body .toch-point-wrap.is-empty .timeToch,
body .toch-point-wrap.is-empty .js-toch-countdown{
    display:none!important;
}


/* === Toch mobile grid fix v39 ===
 * Блок точек должен учитывать ширину игрового body, а не всю ширину viewport.
 */
body .toch-page-title {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 5px 0 0 !important;
    padding: 6px 8px !important;
    border-radius: 10px 10px 0 0 !important;
    font-size: 14px !important;
    line-height: 17px !important;
}

body .toch-board {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 9px !important;
}

body .toch-grid {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media screen and (max-width: 699px) {
    body .toch-page-title {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body .toch-board,
    body .toch-control-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body .toch-board {
        padding-left: 5px !important;
        padding-right: 5px !important;
        overflow: visible !important;
    }

    body .toch-grid {
        table-layout: fixed !important;
        border-spacing: 4px 8px !important;
    }

    body .toch-grid td {
        box-sizing: border-box !important;
        width: 25% !important;
        max-width: 25% !important;
        min-width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body .toch-point-wrap {
        width: 100% !important;
        max-width: 67px !important;
        height: 66px !important;
        margin: 0 auto !important;
    }

    body .toch-point-wrap .toch-point-img,
    body .toch-point-wrap .inner_toch {
        width: auto !important;
        max-width: calc(100% - 6px) !important;
        height: auto !important;
        max-height: 58px !important;
    }
}

@media screen and (max-width: 340px) {
    body .toch-grid {
        border-spacing: 3px 7px !important;
    }

    body .toch-board {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    body .toch-point-wrap {
        height: 63px !important;
    }
}

/* === Toch tutorial purchase fix v40 ===
 * Стрелка привязана к кнопке покупки, а цена всегда видима отдельным блоком.
 */
body .toch-buy-title {
    margin-bottom: 7px !important;
}

body .toch-choice-item {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}
body .toch-choice-item.is-tutorial-target .toch-choice-title {
    border-color: rgba(255, 219, 93, .88) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 14px rgba(240, 196, 66, .14) !important;
}
body .toch-choice-item.is-tutorial-target .toch-choice-card {
    border-color: rgba(234, 199, 75, .64) !important;
}

body .toch-choice-image-cell {
    box-sizing: border-box;
    padding: 4px !important;
    vertical-align: middle !important;
}
body .toch-choice-image {
    display: block !important;
    box-sizing: border-box !important;
    width: 58px !important;
    height: auto !important;
    max-height: 58px !important;
    margin: 0 auto !important;
    object-fit: contain;
}
body .toch-choice-stats {
    padding: 5px 4px !important;
    vertical-align: middle !important;
    color: #e9fff0 !important;
    font-size: 12px;
    line-height: 1.45;
}
body .toch-choice-stats > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    min-height: 20px;
}
body .toch-choice-stats img {
    width: 19px !important;
    height: 19px !important;
    vertical-align: middle !important;
}
body .toch-choice-stats strong {
    color: #fff0a8;
}

body .toch-choice-action-wrap {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 7px;
}
body .toch-choice-action-wrap.is-tutorial-target {
    padding-top: 47px;
}
body .toch-tutorial-hint {
    position: absolute;
    top: 4px;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    box-sizing: border-box;
    min-width: 142px;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    color: #221603;
    font: 900 11px/14px Arial, Tahoma, sans-serif;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff2a2 0%, #d49a2f 100%);
    border: 1px solid rgba(255, 240, 156, .96);
    box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.55);
    text-shadow: 0 1px 0 rgba(255,255,255,.38);
    pointer-events: none;
}
body .toch-tutorial-arrow {
    position: absolute;
    top: 30px;
    left: 50%;
    z-index: 6;
    width: 3px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: #ffd65d;
    box-shadow: 0 1px 3px rgba(0,0,0,.75), 0 0 8px rgba(255, 212, 86, .42);
    animation: tochTutorialArrowV40 .78s ease-in-out infinite;
    pointer-events: none;
}
body .toch-tutorial-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 9px solid #ffd65d;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.65));
}

body .toch-choice-card a.toch-choice-buy-btn,
body .toch-choice-card a[data-toch-choice-action='1'].toch-choice-buy-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 44px !important;
    overflow: visible !important;
    white-space: normal !important;
}
body .toch-choice-buy-label {
    display: inline-block;
    color: #fff8d1;
}
body .toch-choice-price {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 52px;
    padding: 3px 7px;
    color: #261703 !important;
    font: 900 13px/18px Arial, Tahoma, sans-serif !important;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff1a2, #d39a31) !important;
    border: 1px solid rgba(255, 242, 170, .92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 1px 3px rgba(0,0,0,.42);
    text-shadow: 0 1px 0 rgba(255,255,255,.38) !important;
}
body .toch-choice-price img {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
body .toch-choice-price strong {
    display: inline-block !important;
    color: #261703 !important;
    font: 900 13px/18px Arial, Tahoma, sans-serif !important;
}

@keyframes tochTutorialArrowV40 {
    0%, 100% { transform: translate(-50%, -2px); }
    50% { transform: translate(-50%, 4px); }
}

@media screen and (max-width: 350px) {
    body .toch-choice-action-wrap.is-tutorial-target {
        padding-top: 45px;
    }
    body .toch-choice-card a.toch-choice-buy-btn,
    body .toch-choice-card a[data-toch-choice-action='1'].toch-choice-buy-btn {
        gap: 5px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 12px !important;
    }
    body .toch-choice-price {
        min-width: 46px;
        padding-left: 5px;
        padding-right: 5px;
    }
}


/* === AJAX purchase + persistent green quest notifications v44 === */
.mafia-live-toast-stack {
    position: fixed;
    z-index: 100500;
    left: 50%;
    bottom: max(76px, calc(env(safe-area-inset-bottom, 0px) + 68px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    width: min(354px, calc(100vw - 18px));
    transform: translateX(-50%);
    pointer-events: none;
}
.mafia-live-toast {
    --toast-accent: #39d97b;
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 9px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 70px;
    padding: 10px 8px 10px 10px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--toast-accent) 68%, #dec46b 32%);
    border-radius: 14px;
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--toast-accent) 23%, transparent), transparent 38%),
        linear-gradient(180deg, rgba(10, 50, 29, .98), rgba(2, 14, 8, .99));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        inset 0 -18px 30px rgba(0,0,0,.16),
        0 10px 24px rgba(0,0,0,.58),
        0 0 18px color-mix(in srgb, var(--toast-accent) 18%, transparent);
    opacity: 0;
    transform: translateY(18px) scale(.97);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: auto;
}
.mafia-live-toast::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #fff3a6, var(--toast-accent));
    box-shadow: 0 0 10px var(--toast-accent);
}
.mafia-live-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.mafia-live-toast.is-leaving {
    opacity: 0;
    transform: translateY(10px) scale(.98);
}
.mafia-live-toast.is-quest { --toast-accent: #52ee91; }
.mafia-live-toast.is-buy { --toast-accent: #e8b947; }
.mafia-live-toast.is-collect,
.mafia-live-toast.is-success { --toast-accent: #43e784; }
.mafia-live-toast.is-error,
.mafia-live-toast.is-guard { --toast-accent: #ef5b4e; }


.mafia-live-toast.is-quest {
    border-color: rgba(91, 235, 143, .88);
    background:
        radial-gradient(circle at 8% 0%, rgba(77, 238, 139, .27), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(20, 123, 69, .23), transparent 48%),
        linear-gradient(180deg, rgba(11, 69, 38, .99), rgba(2, 20, 11, .995));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.13),
        inset 0 -22px 34px rgba(0,0,0,.18),
        0 10px 28px rgba(0,0,0,.62),
        0 0 20px rgba(61, 230, 125, .26);
}
.mafia-live-toast.is-quest.is-persistent {
    min-height: 82px;
}
.mafia-live-toast.is-quest .mafia-live-toast__icon {
    color: #062313;
    background: linear-gradient(180deg, #d8ffe5, #4fe88b 58%, #159653);
    border-color: rgba(218,255,229,.88);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.72),
        0 0 15px rgba(70, 238, 134, .42);
}
.mafia-live-toast.is-quest .mafia-live-toast__title {
    color: #e8ffef;
    text-shadow: 0 1px 0 #000, 0 0 9px rgba(73, 238, 136, .26);
}
.mafia-live-toast.is-quest .mafia-live-toast__text {
    color: #d1f7dd;
}
.mafia-live-toast.is-quest .mafia-live-toast__action {
    color: #effff4 !important;
    background: linear-gradient(180deg, #31d979, #08763e 58%, #034522);
    border-color: rgba(119, 247, 164, .88);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.23),
        0 0 10px rgba(46, 218, 113, .18);
}
.mafia-live-toast.is-quest .mafia-live-toast__close {
    color: #e2ffeb;
    background: rgba(1, 32, 16, .72);
    border: 1px solid rgba(85, 224, 137, .42);
}

.mafia-live-toast__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #102015;
    font: 900 21px/1 Arial, sans-serif;
    background: linear-gradient(180deg, #fff4ae, var(--toast-accent));
    border: 1px solid rgba(255,255,255,.66);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.56), 0 0 13px color-mix(in srgb, var(--toast-accent) 36%, transparent);
    text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.mafia-live-toast__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mafia-live-toast__title {
    color: #fff2ad;
    font: 900 14px/17px Arial, Tahoma, sans-serif;
    text-shadow: 0 1px 0 #000, 0 0 8px rgba(255, 223, 102, .16);
}
.mafia-live-toast__text {
    color: #e0f6e5;
    font: 600 11px/15px Arial, Tahoma, sans-serif;
}
.mafia-live-toast__action {
    align-self: flex-start;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #201603 !important;
    font: 900 10px/13px Arial, Tahoma, sans-serif;
    text-decoration: none !important;
    background: linear-gradient(180deg, #fff0a0, #c98a28);
    border: 1px solid rgba(255,242,169,.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.mafia-live-toast__close {
    align-self: start;
    width: 23px;
    height: 23px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: #cfe5d4;
    font: 900 18px/21px Arial, sans-serif;
    background: rgba(0,0,0,.26);
    cursor: pointer;
}

body .toch-choice-item.is-buying {
    pointer-events: none;
    filter: saturate(.84);
}
body .toch-choice-item.is-buying .toch-choice-card {
    animation: tochBuyingPulseV43 .72s ease-in-out infinite;
}
body .toch-choice-item.is-bought .toch-choice-title,
body .toch-choice-item.is-bought .toch-choice-card {
    border-color: rgba(76, 229, 125, .84) !important;
    box-shadow: 0 0 18px rgba(49, 222, 111, .22), inset 0 1px 0 rgba(255,255,255,.1) !important;
}
body a.toch-choice-buy-btn.is-loading {
    pointer-events: none;
    filter: saturate(.72) brightness(.9);
}
body a.toch-choice-buy-btn.is-loading::after {
    content: '';
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,.32);
    border-top-color: #fff2a0;
    border-radius: 50%;
    animation: tochBuySpinV43 .7s linear infinite;
}
body a.toch-choice-buy-btn.is-bought {
    pointer-events: none;
    background: linear-gradient(180deg, #32df83, #087b40 56%, #034923) !important;
    border-color: #7ff2ac !important;
}
body .toch-buy-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #083317;
    font-weight: 900;
    background: #baffc9;
    box-shadow: 0 0 10px rgba(123, 255, 167, .42);
}
@keyframes tochBuySpinV43 { to { transform: rotate(360deg); } }
@keyframes tochBuyingPulseV43 {
    0%,100% { box-shadow: 0 0 0 rgba(55,230,117,0); }
    50% { box-shadow: 0 0 18px rgba(55,230,117,.28); }
}
@media screen and (max-width: 360px) {
    .mafia-live-toast-stack {
        width: calc(100vw - 12px);
        bottom: max(68px, calc(env(safe-area-inset-bottom, 0px) + 62px));
    }
    .mafia-live-toast {
        grid-template-columns: 38px minmax(0,1fr) 22px;
        gap: 7px;
        min-height: 64px;
        padding: 8px 6px 8px 8px;
    }
    .mafia-live-toast__icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

/* === Quest-directed empty point arrow v45 === */
body .toch-board.has-quest-point-guide {
    padding-top: 42px !important;
    overflow: visible !important;
}

body .toch-point-wrap.is-empty.is-quest-place-target {
    z-index: 45;
    opacity: 1 !important;
    border-color: rgba(91, 244, 146, .94) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.13),
        0 0 0 2px rgba(32, 179, 89, .38),
        0 0 20px rgba(64, 236, 126, .55),
        0 7px 14px rgba(0,0,0,.42) !important;
    animation: tochQuestEmptyGlowV45 1.15s ease-in-out infinite;
}

body .toch-empty-quest-guide {
    position: absolute;
    z-index: 120;
    left: 50%;
    top: -38px;
    width: 88px;
    height: 40px;
    transform: translateX(-50%);
    pointer-events: none;
}

body .toch-empty-quest-label {
    position: absolute;
    left: 50%;
    top: -1px;
    min-width: 82px;
    padding: 3px 7px;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #effff4;
    font: 900 9px/12px Arial, Tahoma, sans-serif;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid rgba(117, 248, 165, .86);
    border-radius: 999px;
    background: linear-gradient(180deg, #24c96d, #075b31);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 10px rgba(0,0,0,.52), 0 0 10px rgba(57, 232, 120, .3);
    text-shadow: 0 1px 0 #000;
}

body .toch-empty-quest-arrow {
    position: absolute;
    left: 50%;
    top: 19px;
    width: 8px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(90deg, #0e9e4e, #64ff9c 46%, #13a859);
    box-shadow: 0 2px 4px rgba(0,0,0,.72), 0 0 10px rgba(80, 255, 147, .62);
    animation: tochQuestArrowV45 .7s ease-in-out infinite;
}

body .toch-empty-quest-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 13px solid #43ed86;
    filter: drop-shadow(0 3px 2px rgba(0,0,0,.66));
}

/* Подсказка на карточке покупки тоже в общей зелёной стилистике. */
body .toch-choice-item.is-tutorial-target .toch-choice-title,
body .toch-choice-item.is-tutorial-target .toch-choice-card {
    border-color: rgba(84, 235, 137, .78) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(62, 224, 121, .24) !important;
}

body .toch-tutorial-hint {
    color: #effff4 !important;
    background: linear-gradient(180deg, #2edb79 0%, #08703c 100%) !important;
    border-color: rgba(124, 249, 170, .94) !important;
    box-shadow: 0 4px 11px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.28), 0 0 10px rgba(56, 230, 120, .25) !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.88) !important;
}

body .toch-tutorial-arrow {
    background: #4cf18b !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.75), 0 0 10px rgba(76, 241, 139, .56) !important;
}

body .toch-tutorial-arrow::after {
    border-top-color: #4cf18b !important;
}

@keyframes tochQuestArrowV45 {
    0%, 100% { transform: translate(-50%, -2px); }
    50% { transform: translate(-50%, 5px); }
}

@keyframes tochQuestEmptyGlowV45 {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.16); }
}

@media screen and (max-width: 350px) {
    body .toch-board.has-quest-point-guide {
        padding-top: 38px !important;
    }
    body .toch-empty-quest-guide {
        top: -35px;
        transform: translateX(-50%) scale(.92);
        transform-origin: center bottom;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .toch-point-wrap.is-empty.is-quest-place-target,
    body .toch-empty-quest-arrow {
        animation: none !important;
    }
}

/* === Toch v47: AJAX purchase confirmations === */
body .toch-purchase-modal{
    position:fixed!important;
    inset:0!important;
    z-index:100050!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    padding:14px!important;
    background:rgba(0,8,4,.76)!important;
    -webkit-backdrop-filter:blur(3px);
    backdrop-filter:blur(3px);
    animation:tochPurchaseFade .16s ease-out both;
}
body .toch-purchase-modal.is-closing{
    animation:tochPurchaseFadeOut .12s ease-in both;
}
body .toch-purchase-dialog{
    position:relative!important;
    width:min(326px,calc(100vw - 28px))!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    border-radius:16px!important;
    padding:15px 13px 13px!important;
    text-align:center!important;
    color:#effff2!important;
    background:
        radial-gradient(circle at 50% -12%,rgba(73,237,126,.28),transparent 43%),
        linear-gradient(180deg,#124d31 0%,#082817 53%,#020b06 100%)!important;
    border:1px solid rgba(116,231,150,.82)!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.17),
        inset 0 -1px 0 rgba(0,0,0,.7),
        0 18px 42px rgba(0,0,0,.72),
        0 0 24px rgba(33,202,92,.2)!important;
    animation:tochPurchasePop .18s cubic-bezier(.2,.8,.25,1.12) both;
}
body .toch-purchase-dialog:before{
    content:"";
    position:absolute;
    left:12px;
    right:12px;
    top:0;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(244,222,128,.82),transparent);
}
body .toch-purchase-close{
    position:absolute!important;
    right:8px!important;
    top:7px!important;
    width:28px!important;
    height:28px!important;
    min-height:0!important;
    padding:0!important;
    border-radius:50%!important;
    border:1px solid rgba(152,230,169,.28)!important;
    color:#d9f5df!important;
    background:rgba(1,15,8,.52)!important;
    font:900 21px/25px Arial,Tahoma,sans-serif!important;
    cursor:pointer!important;
    box-shadow:none!important;
}
body .toch-purchase-kicker{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:72px!important;
    height:21px!important;
    margin:0 auto 5px!important;
    padding:0 9px!important;
    border-radius:999px!important;
    color:#c9fbd6!important;
    background:rgba(7,64,34,.75)!important;
    border:1px solid rgba(89,221,126,.36)!important;
    font:900 10px/20px Arial,Tahoma,sans-serif!important;
    letter-spacing:1.2px!important;
    text-shadow:0 1px 0 #000!important;
}
body .toch-purchase-title{
    margin:0 28px 5px!important;
    color:#fff2ad!important;
    font:900 18px/23px Arial,Tahoma,sans-serif!important;
    text-transform:uppercase!important;
    text-shadow:0 2px 0 #000,0 0 13px rgba(255,221,104,.3)!important;
}
body .toch-purchase-text{
    margin:0 5px 5px!important;
    color:#edf9ef!important;
    font:700 13px/18px Arial,Tahoma,sans-serif!important;
}
body .toch-purchase-details{
    margin:0 5px 9px!important;
    color:#a9d9b7!important;
    font:700 12px/17px Arial,Tahoma,sans-serif!important;
}
body .toch-purchase-price{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:5px!important;
    min-height:44px!important;
    margin:9px 0 12px!important;
    padding:8px 9px!important;
    border-radius:11px!important;
    color:#fff!important;
    background:
        radial-gradient(circle at 50% 0%,rgba(236,205,91,.12),transparent 58%),
        linear-gradient(180deg,rgba(1,20,10,.88),rgba(0,8,4,.94))!important;
    border:1px solid rgba(226,195,88,.48)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
    font:800 13px/19px Arial,Tahoma,sans-serif!important;
}
body .toch-purchase-price b{
    color:#fff2a6!important;
    font:900 16px/20px Arial,Tahoma,sans-serif!important;
    text-shadow:0 1px 0 #000!important;
}
body .toch-purchase-price span{
    color:#e9f7ec!important;
    font-weight:800!important;
}
body .toch-purchase-price .toch-purchase-price-label{
    color:#b9d9c1!important;
    font-size:12px!important;
    text-transform:uppercase!important;
}
body .toch-purchase-icon,
body img.toch-purchase-icon{
    display:inline-block!important;
    width:23px!important;
    height:23px!important;
    max-width:23px!important;
    max-height:23px!important;
    object-fit:contain!important;
    margin-right:1px!important;
    filter:drop-shadow(0 2px 2px rgba(0,0,0,.7))!important;
}
body .toch-purchase-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
}
body .toch-purchase-actions button{
    width:100%!important;
    min-height:40px!important;
    box-sizing:border-box!important;
    padding:8px 10px!important;
    border-radius:11px!important;
    color:#fff!important;
    font:900 13px/17px Arial,Tahoma,sans-serif!important;
    text-transform:uppercase!important;
    text-shadow:0 1px 0 #000!important;
    cursor:pointer!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 5px 13px rgba(0,0,0,.34)!important;
}
body .toch-purchase-yes{
    background:linear-gradient(180deg,#28cb7d 0%,#108348 57%,#062416 100%)!important;
    border:1px solid rgba(116,241,157,.82)!important;
}
body .toch-purchase-yes:hover,
body .toch-purchase-yes:focus{
    filter:brightness(1.1)!important;
    outline:1px solid rgba(255,239,158,.6)!important;
    outline-offset:1px!important;
}
body .toch-purchase-no{
    background:linear-gradient(180deg,#344c40 0%,#17271f 58%,#08100c 100%)!important;
    border:1px solid rgba(148,187,160,.5)!important;
    color:#d7e7dc!important;
}
body a[href*="mod=new_toch"][href*="go="].is-loading,
body a.toch-choice-buy-btn.is-loading,
body a[data-toch-choice-action="1"].is-loading{
    pointer-events:none!important;
    opacity:.78!important;
}
@keyframes tochPurchaseFade{
    from{opacity:0}
    to{opacity:1}
}
@keyframes tochPurchaseFadeOut{
    from{opacity:1}
    to{opacity:0}
}
@keyframes tochPurchasePop{
    from{opacity:0;transform:translateY(12px) scale(.94)}
    to{opacity:1;transform:translateY(0) scale(1)}
}

/* === Toch v48: centered purchase/quest notices === */
body .mafia-live-toast-stack.is-center {
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    justify-content: center !important;
}

body .mafia-live-toast-stack.is-center .mafia-live-toast {
    transform: translateY(14px) scale(.96);
}

body .mafia-live-toast-stack.is-center .mafia-live-toast.is-visible {
    transform: translateY(0) scale(1);
}

body .mafia-live-toast-stack.is-center .mafia-live-toast.is-leaving {
    transform: translateY(-10px) scale(.97);
}

body a[href*="crop_go"].is-confirming,
body a.toch-choice-buy-btn.is-confirming,
body a[data-toch-choice-action="1"].is-confirming {
    pointer-events: none !important;
}

@media screen and (max-width: 360px) {
    body .mafia-live-toast-stack.is-center {
        top: 50% !important;
        bottom: auto !important;
        width: calc(100vw - 12px) !important;
    }
}


.toch-float-gain--all {
    padding: 8px 12px;
    min-width: 190px;
    text-align: center;
    border-color: rgba(241, 208, 116, .64);
    box-shadow: 0 12px 24px rgba(0,0,0,.46), 0 0 24px rgba(76, 226, 139, .28);
}
.toch-float-gain--all .toch-gain-label {
    display: block;
    margin-bottom: 6px;
    color: #fff5c7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2px;
}
.toch-spark-burst--all {
    transform: scale(1.45);
}


/* === Toch v50: два визуальных состояния ограбления без надписей === */
body .toch-point-wrap.is-grab-partial {
    background:
        radial-gradient(circle at 50% 7%, rgba(227, 225, 151, .28), transparent 43%),
        linear-gradient(180deg, #466b43 0%, #29482d 54%, #0c1f12 100%) !important;
    border-color: rgba(205, 215, 139, .72) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.09),
        0 0 0 1px rgba(124, 151, 80, .28),
        0 6px 13px rgba(0,0,0,.38) !important;
}
body .toch-point-wrap.is-grab-partial .toch-point-img,
body .toch-point-wrap.is-grab-partial .inner_toch,
body .toch-point-wrap.is-grab-partial img.inner_toch[style] {
    background: linear-gradient(180deg, #c5d6a8 0%, #7e9f70 100%) !important;
    filter: hue-rotate(80deg) saturate(.58) brightness(.98) !important;
}
body .toch-point-wrap.is-grabbed {
    background:
        radial-gradient(circle at 50% 7%, rgba(151, 177, 145, .16), transparent 43%),
        linear-gradient(180deg, #2d4534 0%, #182b20 54%, #07110c 100%) !important;
    border-color: rgba(116, 145, 121, .52) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 5px 11px rgba(0,0,0,.42) !important;
    filter: none !important;
}
body .toch-point-wrap.is-grabbed .toch-point-img,
body .toch-point-wrap.is-grabbed .inner_toch,
body .toch-point-wrap.is-grabbed img.inner_toch[style] {
    background: linear-gradient(180deg, #9bad9e 0%, #61756a 100%) !important;
    filter: hue-rotate(82deg) saturate(.34) brightness(.76) !important;
    opacity: .88;
}
