/* =========================================================================
   auction.css — аукционный дом «Стрекозы»
   =========================================================================
   Виджеты лотов в ленте новостей, редактор аукциона для админа, торговая
   площадка и коллекция эксклюзивов в магазине. Разметку рисует
   js/ui_auction.js. Стиль — Windows XP: Tahoma, фаски outset/inset,
   никаких скруглений. Подключается в index.html после frames.css.
   ========================================================================= */

#auction-widgets,
#auction-widgets *,
.xp-auc-modal,
.xp-auc-modal * {
    border-radius: 0 !important;
}

#auction-widgets {
    margin: 10px 0 0 0;
}
#auction-widgets.is-empty {
    display: none !important;
}

/* -------------------------------------------------------------------------
   Панель администратора над виджетами
   ------------------------------------------------------------------------- */
.xp-auction-adminbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 5px 8px;
    margin: 0 0 10px 0;
    background: linear-gradient(to bottom, #fffdf3 0%, #fff0c2 100%);
    border: 1px solid;
    border-color: #ffe7a0 #b37400 #b37400 #ffe7a0;
    font: 11px Tahoma, "Segoe UI", sans-serif;
    color: #4a2e00;
}
.xp-auction-adminbar-info {
    color: #7a5a1a;
    flex: 1;
    min-width: 0;
}

/* -------------------------------------------------------------------------
   Окно лота
   ------------------------------------------------------------------------- */
.xp-auction-widget {
    position: relative;
    background: #ece9d8 !important;
    border: 2px outset #ffffff !important;
    margin: 0 0 14px 0;
    padding: 0 !important;
    font-family: Tahoma, "Segoe UI", sans-serif;
    font-size: 11px;
    color: #000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    width: 100%;
}
.xp-auction-widget.collapsed {
    margin-bottom: 8px;
}
.xp-auction-widget.collapsed .xp-auction-body {
    display: none !important;
}

.xp-auction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 6px;
    font: bold 11px Tahoma, "Segoe UI", sans-serif;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}
.xp-auction-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.xp-auction-caption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xp-auction-collapsed-badge {
    display: none;
    flex-shrink: 0;
    font-weight: normal;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0.95;
}
.xp-auction-widget.collapsed .xp-auction-collapsed-badge {
    display: inline;
}
.xp-auc-gavel {
    display: inline-block;
    transform-origin: 70% 70%;
}

/* ---- Темы шапки ---- */
.xp-auction-widget.theme-luna .xp-auction-header {
    background: linear-gradient(to right, #0053e2 0%, #3a87ff 100%);
}
.xp-auction-widget.theme-olive .xp-auction-header {
    background: linear-gradient(to bottom, #d2e4a6 0%, #9cb974 12%, #6f8f45 100%);
}
.xp-auction-widget.theme-silver .xp-auction-header {
    background: linear-gradient(to bottom, #fbfbfd 0%, #c8cbe0 14%, #8c8fb5 100%);
    color: #1c1f3a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* Royale — чёрное золото: главная тема аукционного дома */
.xp-auction-widget.theme-royale {
    border: 2px solid !important;
    border-color: #ffe7a0 #7a4b00 #7a4b00 #ffe7a0 !important;
    box-shadow: 0 0 0 1px #3a2400, 2px 3px 8px rgba(58, 36, 0, 0.45);
    background: linear-gradient(to bottom, #fffdf3 0%, #f3ecd6 100%) !important;
}
.xp-auction-widget.theme-royale .xp-auction-header {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(to right, #1a1204 0%, #3d2a06 35%, #5c3f08 50%, #3d2a06 65%, #1a1204 100%);
    color: #ffd54a;
    border-bottom: 1px solid #b37400;
    text-shadow: 0 1px 0 #000, 0 0 6px rgba(255, 196, 0, 0.45);
}

/* Кнопка свернуть/развернуть — та же, что у виджета Android */
.xp-auction-header .xp-widget-toggle-btn {
    flex-shrink: 0;
}

/* ---- Удар молотка после ставки ---- */
@keyframes xp-auc-hit-gavel {
    0% { transform: rotate(0deg); }
    30% { transform: rotate(-45deg); }
    55% { transform: rotate(18deg); }
    100% { transform: rotate(0deg); }
}
@keyframes xp-auc-hit-flash {
    0% { box-shadow: 0 0 0 0 rgba(255, 213, 74, 0.9); }
    100% { box-shadow: 0 0 0 10px rgba(255, 213, 74, 0); }
}
.xp-auction-widget.xp-auc-hit .xp-auc-gavel {
    animation: xp-auc-hit-gavel 0.55s ease-out 1;
}
.xp-auction-widget.xp-auc-hit {
    animation: xp-auc-hit-flash 0.7s ease-out 1;
}
@keyframes xp-auc-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}
.xp-auction-widget.xp-auc-outbid {
    animation: xp-auc-shake 0.45s ease-in-out 1;
}
@keyframes xp-auc-flash-bg {
    0% { background-color: #fff3b0; }
    100% { background-color: #ffffff; }
}
.xp-auc-flash .xp-auction-stat {
    animation: xp-auc-flash-bg 1.2s ease-out 1;
}
.xp-auction-widget.xp-auc-spotlight {
    outline: 3px solid #ffcf3a;
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Тело: приз слева, панель торгов справа
   ------------------------------------------------------------------------- */
.xp-auction-body {
    padding: 10px;
}
.xp-auction-main {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 10px;
}
@media (max-width: 640px) {
    .xp-auction-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

.xp-auction-prize {
    position: relative;
    background: #ffffff;
    border: 2px inset #ffffff;
    padding: 8px;
    text-align: center;
    min-width: 0;
}
.xp-auction-stage {
    position: relative;
    height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, #3a6fd8 0%, #0a246a 70%, #06164a 100%);
    border: 1px solid;
    border-color: #06164a #7fa7f0 #7fa7f0 #06164a;
}
.theme-royale .xp-auction-stage {
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 213, 74, 0.35) 0%, rgba(255, 213, 74, 0) 45%),
        radial-gradient(ellipse at 50% 40%, #5a3d07 0%, #241703 65%, #0f0a01 100%);
    border-color: #0f0a01 #d9a93a #d9a93a #0f0a01;
}
.theme-olive .xp-auction-stage {
    background: radial-gradient(ellipse at 50% 40%, #8fae5b 0%, #3f5a1f 70%, #243510 100%);
    border-color: #243510 #c3dc8f #c3dc8f #243510;
}
.theme-silver .xp-auction-stage {
    background: radial-gradient(ellipse at 50% 40%, #9aa0c6 0%, #4b4f78 70%, #2c2f4d 100%);
    border-color: #2c2f4d #d9dcef #d9dcef #2c2f4d;
}
/* Лучи прожектора за призом */
.xp-auction-stage::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.07) 0deg 8deg, rgba(255, 255, 255, 0) 8deg 22deg);
    animation: xp-auc-rays 24s linear infinite;
    pointer-events: none;
}
@keyframes xp-auc-rays {
    to { transform: rotate(360deg); }
}
.xp-auction-stage > * {
    position: relative;
    z-index: 1;
}

.xp-auc-bg-tile {
    position: relative;
    width: 92%;
    height: 86%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: #000;
}

.xp-auction-stamp {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 3;
    transform: rotate(9deg);
    padding: 1px 5px;
    font: bold 10px Tahoma, sans-serif;
    letter-spacing: 1px;
    color: #b3001b;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #b3001b;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.xp-auction-prize-name {
    margin-top: 7px;
    font-weight: bold;
    font-size: 12px;
    color: #0e44b8;
    word-break: break-word;
}
.theme-royale .xp-auction-prize-name {
    color: #7a4b00;
}
.xp-auction-prize-kind {
    margin-top: 2px;
    font-size: 10px;
    font-weight: bold;
    color: #9c6500;
}
.xp-auction-prize-try {
    margin-top: 3px;
    font-size: 9.5px;
    color: #777;
}

/* ---- Панель торгов ---- */
.xp-auction-panel {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.xp-auction-lcd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 9px;
    background: linear-gradient(to bottom, #0d1a0d 0%, #061006 100%);
    border: 2px inset #ffffff;
}
.xp-auction-lcd-label {
    font: 10px Tahoma, sans-serif;
    color: #7fbf7f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.xp-auction-lcd-digits {
    font: bold 22px "Lucida Console", "Courier New", monospace;
    letter-spacing: 2px;
    color: #7cfc00;
    text-shadow: 0 0 6px rgba(124, 252, 0, 0.7);
    white-space: nowrap;
}
.xp-auction-lcd.is-scheduled .xp-auction-lcd-digits {
    color: #ffcf3a;
    text-shadow: 0 0 6px rgba(255, 207, 58, 0.7);
}
@keyframes xp-auc-blink {
    50% { opacity: 0.35; }
}
.xp-auction-lcd.is-urgent .xp-auction-lcd-digits {
    color: #ff5a36;
    text-shadow: 0 0 8px rgba(255, 90, 54, 0.85);
    animation: xp-auc-blink 1s steps(2, start) infinite;
}
.xp-auction-lcd.is-closing .xp-auction-lcd-digits {
    color: #ffcf3a;
    animation: xp-auc-blink 0.8s steps(2, start) infinite;
}

.xp-auction-progress {
    height: 12px;
    padding: 1px;
    background: #ffffff;
    border: 1px solid #7f9db9;
}
.xp-auction-progress-fill {
    height: 100%;
    width: 0;
    background: repeating-linear-gradient(to right, #2fb12f 0 8px, #ffffff 8px 10px);
    transition: width 1s linear;
}
.theme-royale .xp-auction-progress-fill {
    background: repeating-linear-gradient(to right, #e0a410 0 8px, #ffffff 8px 10px);
}

.xp-auction-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}
.xp-auction-stat {
    min-width: 0;
    padding: 4px 6px;
    background: #ffffff;
    border: 1px solid #a0a0a0;
}
.xp-auction-stat > span {
    display: block;
    font-size: 9.5px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.xp-auction-stat .big {
    font-size: 15px;
    color: #0e44b8;
}
.theme-royale .xp-auction-stat .big {
    color: #7a4b00;
}
.xp-auction-leader {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.xp-auction-leader a,
.xp-auc-user {
    font-weight: bold;
    color: #0e44b8;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xp-auction-leader a:hover,
.xp-auc-user:hover {
    text-decoration: underline;
}

.xp-auction-mine {
    padding: 4px 7px;
    font-size: 11px;
    background: #fffbe6;
    border: 1px solid #e0c870;
}
.xp-auction-mine.is-leader {
    background: linear-gradient(to right, #fff3b0 0%, #fffbe6 100%);
    border-color: #d9a93a;
    font-weight: bold;
    color: #5c3f08;
}

.xp-auction-bidrow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 4px;
}
.xp-auction-bid-input {
    width: 112px;
    padding: 3px 5px;
    font: bold 13px Tahoma, sans-serif;
    border: 2px inset #ffffff;
    background: #ffffff;
    color: #000;
}
.xp-auction-quick {
    padding: 2px 7px;
    font: 10px Tahoma, sans-serif;
    color: #000;
    background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
    border: 1px solid #7a7a7a;
    box-shadow: inset 1px 1px 0 #fff;
    cursor: pointer;
}
.xp-auction-quick:active {
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.35);
}
.xp-auction-bid-btn {
    flex: 1 1 130px;
    padding: 4px 12px;
    font: bold 12px Tahoma, sans-serif;
    color: #3a2400;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    background: linear-gradient(to bottom, #fff3b0 0%, #ffd54a 45%, #e0a410 55%, #ffcf3a 100%);
    border: 1px solid #7a4b00;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 1px 1px 2px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.xp-auction-bid-btn:hover:not(:disabled) {
    background: linear-gradient(to bottom, #fff8cc 0%, #ffe07a 45%, #eab222 55%, #ffd955 100%);
}
.xp-auction-bid-btn:active:not(:disabled) {
    background: linear-gradient(to bottom, #e0a410 0%, #ffd54a 100%);
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35);
}
.xp-auction-bid-btn:disabled {
    color: #8a7a5a;
    background: #e6dfc8;
    border-color: #b0a07a;
    cursor: default;
}
.xp-auction-bid-hint {
    min-height: 14px;
    font-size: 10.5px;
    color: #444;
}
.xp-auction-bid-hint.is-bad {
    color: #c00000;
    font-weight: bold;
}
.xp-auction-note {
    padding: 5px 7px;
    font-size: 11px;
    background: #ffffff;
    border: 1px solid #a0a0a0;
    color: #333;
}
.xp-auction-warning {
    padding: 4px 7px;
    font-size: 10px;
    line-height: 1.4;
    color: #7a1a00;
    background: #fff0ea;
    border: 1px solid #e8b4a0;
}

.xp-auction-desc {
    margin-top: 8px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.45;
    background: #ffffff;
    border: 1px solid #a0a0a0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---- Итоги ---- */
.xp-auction-result {
    padding: 8px 10px;
    background: #ffffff;
    border: 2px inset #ffffff;
}
.xp-auction-result-title {
    font-weight: bold;
    font-size: 12px;
    color: #0e44b8;
    margin-bottom: 8px;
}
.xp-auction-result-title small {
    font-weight: normal;
    color: #777;
    margin-left: 6px;
}
.xp-auction-winner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    background: linear-gradient(to right, #fff3b0 0%, #fffdf3 70%);
    border: 1px solid #d9a93a;
}
.xp-auction-winner-meta {
    min-width: 0;
    line-height: 1.5;
}
.xp-auction-winner-meta .big {
    font-size: 15px;
    color: #7a4b00;
}
.xp-auction-you-won {
    margin-top: 8px;
    padding: 7px 9px;
    font-weight: bold;
    color: #3a2400;
    background: linear-gradient(to bottom, #fff3b0 0%, #ffd54a 100%);
    border: 1px solid #7a4b00;
    box-shadow: 0 0 10px rgba(255, 196, 0, 0.55);
}
.xp-auction-you-won .xp-auc-actions {
    margin-top: 6px;
}
.xp-auction-result.is-cancelled {
    color: #555;
}
.xp-auction-result-stats {
    margin-top: 8px;
    font-size: 10.5px;
    color: #555;
}

/* ---- Лента ставок (XP ListView) ---- */
.xp-auction-log {
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #7f9db9;
}
.xp-auction-log-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 7px;
    font-weight: bold;
    font-size: 10.5px;
    background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
    border-bottom: 1px solid #aca899;
}
.xp-auction-log-title a {
    font-weight: normal;
    color: #0e44b8;
}
.xp-auction-log-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 3px 7px;
    border-bottom: 1px dotted #d4d0c8;
    font-size: 11px;
}
.xp-auction-log-row:last-child {
    border-bottom: none;
}
.xp-auction-log-row:first-child {
    background: #fffbe6;
}
.xp-auction-log-time {
    color: #777;
    font-size: 10px;
}
.xp-auction-log-user {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.xp-auction-log-total {
    font-weight: bold;
    white-space: nowrap;
}
.xp-auction-log-paid {
    color: #b34700;
    font-size: 10px;
    white-space: nowrap;
}
.xp-auction-log-empty {
    padding: 8px;
    color: #777;
    text-align: center;
}

.xp-auction-admin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #b0a890;
}
.xp-auction-admin-label {
    font-weight: bold;
    color: #9c6500;
    margin-right: 4px;
}

/* ---- Общие кнопки ---- */
.xp-auc-btn {
    padding: 3px 9px;
    font: 11px Tahoma, sans-serif;
    color: #000;
    background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
    border: 1px solid #003c74;
    box-shadow: inset 1px 1px 0 #fff;
    cursor: pointer;
}
.xp-auc-btn:hover:not(:disabled) {
    box-shadow: inset 0 0 0 1px #ffd06b;
}
.xp-auc-btn:active:not(:disabled) {
    background: linear-gradient(to bottom, #e5e2d5 0%, #ffffff 100%);
}
.xp-auc-btn:disabled {
    color: #999;
    cursor: default;
}
.xp-auc-btn.is-gold {
    color: #3a2400;
    font-weight: bold;
    background: linear-gradient(to bottom, #fff3b0 0%, #ffd54a 45%, #e0a410 55%, #ffcf3a 100%);
    border-color: #7a4b00;
}
.xp-auc-btn.is-danger {
    color: #ffffff;
    font-weight: bold;
    background: linear-gradient(to bottom, #e46a5a 0%, #c0392b 100%);
    border-color: #7a1a10;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.35);
}
.xp-auc-btn.is-blue {
    color: #ffffff;
    font-weight: bold;
    background: linear-gradient(to bottom, #538ef2 0%, #245edb 50%, #0e44b8 100%);
    border-color: #00307a;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.35);
}
.xp-auc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ---- Аватар с рамкой ---- */
.xp-auc-ava {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    vertical-align: middle;
}
.xp-auc-ava img {
    display: block;
    object-fit: cover;
    border: 1px solid #7d7d7d;
    border-radius: 0 !important;
}

/* -------------------------------------------------------------------------
   Модальные окна (подтверждение ставки, редактор, подарок, продажа…)
   ------------------------------------------------------------------------- */
.xp-auc-modal-overlay {
    z-index: 10020 !important;
}
.xp-auc-modal {
    max-width: 420px;
    font-family: Tahoma, "Segoe UI", sans-serif;
    font-size: 11px;
}
.xp-auc-modal.is-wide {
    max-width: 640px;
}
.xp-auc-modal .modal-body {
    font-size: 11px;
    line-height: 1.45;
}
.xp-auc-modal .modal-footer .xp-auc-btn {
    min-width: 88px;
    padding: 4px 12px;
}
.xp-auc-confirm-sum {
    font-size: 16px;
    font-weight: bold;
    color: #7a4b00;
}
.xp-auc-check {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: #444;
}

/* ---- Редактор аукциона ---- */
.xp-auc-fieldset {
    margin: 0 0 8px 0;
    padding: 6px 8px 8px;
    border: 1px solid #d0d0bf;
    background: #fbfbf9;
}
.xp-auc-fieldset legend {
    padding: 0 4px;
    font-weight: bold;
    color: #003399;
}
.xp-auc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}
.xp-auc-row > label {
    min-width: 92px;
    color: #333;
}
.xp-auc-input {
    padding: 2px 4px;
    font: 11px Tahoma, sans-serif;
    border: 2px inset #ffffff;
    background: #ffffff;
    color: #000;
    box-sizing: border-box;
}
.xp-auc-input.is-wide {
    flex: 1;
    min-width: 160px;
}
textarea.xp-auc-input {
    width: 100%;
    min-height: 54px;
    resize: vertical;
}
.xp-auc-hint {
    font-size: 10px;
    color: #666;
}
.xp-auc-prize-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.xp-auc-seg {
    display: inline-flex;
}
.xp-auc-seg button {
    padding: 2px 9px;
    font: 11px Tahoma, sans-serif;
    background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
    border: 1px solid #919b9c;
    margin-right: -1px;
    cursor: pointer;
    color: #000;
}
.xp-auc-seg button.is-on {
    background: #ffffff;
    border-bottom-color: #ffffff;
    font-weight: bold;
    box-shadow: inset 0 2px 0 #ffc73c;
}
.xp-auc-prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
    gap: 6px;
    max-height: 236px;
    overflow-y: auto;
    padding: 4px;
    background: #ffffff;
    border: 2px inset #ffffff;
}
.xp-auc-prize-card {
    position: relative;
    padding: 4px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #c0c0c0;
    cursor: pointer;
    font-size: 10px;
}
.xp-auc-prize-card:hover {
    border-color: #316ac5;
}
.xp-auc-prize-card.is-selected {
    background: #e8f0ff;
    border-color: #316ac5;
    box-shadow: inset 0 0 0 1px #316ac5;
}
.xp-auc-prize-card .xp-store-stage {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #e0dbcb;
    border: 1px inset #fff;
}
.xp-auc-prize-card .xp-auc-bg-tile {
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
}
.xp-auc-prize-title {
    margin-top: 3px;
    font-weight: bold;
    color: #0e44b8;
    height: 24px;
    overflow: hidden;
    word-break: break-word;
}
.xp-auc-tag {
    display: inline-block;
    margin: 1px;
    padding: 0 3px;
    font-size: 9px;
    border: 1px solid #b0b0b0;
    background: #f3f3f3;
    color: #444;
}
.xp-auc-tag.is-gold {
    border-color: #b37400;
    background: #fff3b0;
    color: #5c3f08;
}
.xp-auc-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.xp-auc-theme {
    display: flex;
    flex-direction: column;
    width: 118px;
    border: 1px solid #a0a0a0;
    background: #ffffff;
    cursor: pointer;
    font-size: 10px;
}
.xp-auc-theme.is-on {
    outline: 2px solid #316ac5;
}
.xp-auc-theme .xp-auction-header {
    font-size: 10px;
    padding: 2px 5px;
}
.xp-auc-theme-name {
    padding: 3px 5px;
}
.xp-auc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.xp-auc-presets .xp-auc-btn {
    padding: 1px 7px;
    font-size: 10px;
}
.xp-auc-duration {
    font-weight: bold;
    color: #0e44b8;
}
.xp-auc-empty {
    padding: 14px;
    text-align: center;
    color: #666;
}

/* ---- Журнал ставок и история владения ---- */
.xp-auc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.xp-auc-table th {
    text-align: left;
    padding: 3px 6px;
    background: linear-gradient(to bottom, #ffffff 0%, #ece9d8 100%);
    border-bottom: 1px solid #aca899;
    font-weight: normal;
    color: #333;
    white-space: nowrap;
}
.xp-auc-table td {
    padding: 3px 6px;
    border-bottom: 1px dotted #d4d0c8;
    vertical-align: middle;
}
.xp-auc-table .xp-auc-refunded {
    color: #0a7a0a;
    font-size: 10px;
}
.xp-auc-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
    border-left: 2px solid #d9a93a;
}
.xp-auc-timeline li {
    position: relative;
    margin: 0 0 8px 0;
    padding-left: 6px;
}
.xp-auc-timeline li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 3px;
    width: 8px;
    height: 8px;
    background: #ffd54a;
    border: 1px solid #7a4b00;
}
.xp-auc-timeline small {
    display: block;
    color: #777;
}
.xp-auc-owner-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 6px 8px;
    background: linear-gradient(to right, #fff3b0 0%, #fffdf3 80%);
    border: 1px solid #d9a93a;
}

/* ---- Подарок: список друзей ---- */
.xp-auc-friends {
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 2px inset #ffffff;
}
.xp-auc-friend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-bottom: 1px dotted #e0e0e0;
    cursor: pointer;
}
.xp-auc-friend:hover {
    background: #eef3ff;
}
.xp-auc-friend.is-selected {
    background: #316ac5;
    color: #ffffff;
}

/* -------------------------------------------------------------------------
   Магазин: площадка и коллекция (в #store-items-grid)
   ------------------------------------------------------------------------- */
.xp-store-ribbon.is-exclusive {
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
    background: linear-gradient(to bottom, #5c3f08 0%, #1a1204 100%);
    border-color: #ffd54a;
}
.xp-market-toolbar {
    grid-column: 1 / -1;
    padding: 8px 10px;
    font: 11px Tahoma, sans-serif;
    background: #ffffff;
    border: 1px solid #a0a0a0;
}
.xp-market-intro {
    line-height: 1.45;
    color: #333;
}
.xp-market-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}
.xp-market-filters select {
    font: 11px Tahoma, sans-serif;
}
.xp-market-card .xp-market-owner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
    color: #555;
    margin-top: 3px;
    min-width: 0;
}
.xp-market-price {
    margin: 5px 0 4px;
    font: bold 16px Tahoma, sans-serif;
    color: #7a4b00;
    text-align: center;
}
.xp-market-price small {
    display: block;
    font-size: 9.5px;
    font-weight: normal;
    color: #777;
}
.xp-collection-origin {
    font-size: 10px;
    color: #555;
    text-align: center;
    margin-top: 3px;
    line-height: 1.35;
}
.xp-collection-status {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    margin-top: 3px;
}
.xp-collection-status.is-on {
    color: #0a7a0a;
}
.xp-collection-status.is-sale {
    color: #b34700;
}
.xp-store-card .xp-auc-actions {
    justify-content: center;
    margin-top: 6px;
}
.xp-store-card .xp-auc-actions .xp-auc-btn {
    flex: 1 1 auto;
    padding: 3px 5px;
    font-size: 10.5px;
}
.xp-card-link {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    text-align: center;
    color: #0e44b8;
}

@media (prefers-reduced-motion: reduce) {
    .xp-auction-stage::before,
    .xp-auction-lcd-digits,
    .xp-auction-widget,
    .xp-auc-gavel,
    .xp-auction-progress-fill {
        animation: none !important;
        transition: none !important;
    }
}
