/* 경매 UI 프로토타입 — 캡처 구조 + 쇼핑몰형 고급 톤 */
body.r2go-auction-page .r2go-app-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: none;
}
body.r2go-auction-page .r2go-app-brand__trail {
    display: none;
}

.r2go-page--auction {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding-bottom: 20px;
    color: #3a3f47;
}

.r2go-auction__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 4px 0 18px;
    border-bottom: 1px solid #e8eaee;
}

.r2go-auction__tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.r2go-auction__tab.is-active {
    color: #0a0b0d;
    font-weight: 600;
}

.r2go-auction__tab.is-active::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -1px;
    height: 2px;
    background: #0a0b0d;
    border-radius: 2px;
}

.r2go-auction__sample {
    margin: 0 0 12px;
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.r2go-auction__list-area {
    min-height: min(52vh, 420px);
}

.r2go-auction__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(52vh, 420px);
    padding: 48px 24px;
    text-align: center;
    color: #0a0b0d;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.r2go-auction__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.r2go-auction__list-card {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(20, 24, 32, 0.06);
}

.r2go-auction__list-thumb--empty {
    display: block;
    background: #f3f4f6;
    border-radius: 10px;
}

.r2go-auction__list-thumb {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
}

.r2go-auction__list-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.r2go-auction__list-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r2go-auction__list-meta,
.r2go-auction__list-price {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.3;
}

.r2go-auction__list-price {
    color: #0a0b0d;
    font-weight: 600;
}

.r2go-auction__list-chevron {
    font-size: 22px;
    color: #9ca3af;
    line-height: 1;
    padding-right: 4px;
}

.r2go-auction__back {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.r2go-auction__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.r2go-auction__hero--clickable {
    cursor: pointer;
}

.r2go-auction__hero-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10, 11, 13, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    pointer-events: none;
}

.r2go-auction__detail-section {
    margin-top: 8px;
    scroll-margin-top: 16px;
}

.r2go-auction__detail-heading {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0a0b0d;
}

.r2go-auction__hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    background: #fff;
    box-shadow: 0 18px 40px rgba(20, 24, 32, 0.08);
}

.r2go-auction__hero-track {
    position: absolute;
    inset: 0;
}

.r2go-auction__hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.r2go-auction__hero-slide.is-active {
    display: flex;
}

.r2go-auction__hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    text-align: center;
}

.r2go-auction__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.r2go-auction__hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: auto;
}

.r2go-auction__hero-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(10, 11, 13, 0.25);
    cursor: pointer;
}

.r2go-auction__hero-dot.is-active {
    background: #cc785c;
}

.r2go-auction__ended-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 11, 13, 0.62);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
}

.r2go-auction__meta {
    display: grid;
    gap: 8px;
    padding: 0 2px;
}

.r2go-auction__title {
    margin: 0;
    color: #0a0b0d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.r2go-auction__meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
}

.r2go-auction__meta-row--remain strong {
    color: #cc785c;
    font-variant-numeric: tabular-nums;
}

.r2go-auction__meta-row strong {
    color: #0a0b0d;
    font-weight: 600;
}

.r2go-auction__detail {
    display: block;
    white-space: pre-wrap;
    color: #3a3f47;
    margin: 4px 0 10px;
    line-height: 1.55;
}

.r2go-auction__detail-images {
    display: grid;
    gap: 0;
    margin: 8px 0 14px;
    overflow: hidden;
    border-radius: 12px;
}

.r2go-auction__detail-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: top;
    background: #f3f4f6;
}

.r2go-auction__panel {
    container-type: inline-size;
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: #f7f8fa;
    border: 1px solid #eef0f3;
    min-width: 0;
    overflow: hidden;
}

.r2go-auction__scheduled-rules {
    margin: 0;
    padding: 22px 20px;
    border: 1px solid rgba(204, 120, 92, 0.42);
    border-radius: 16px;
    background: #f5f9ff;
    color: #313946;
}

.r2go-auction__scheduled-rules h2 {
    margin: 0;
    color: #cc785c;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.r2go-auction__scheduled-lead {
    margin: 12px 0 18px;
    color: #3a4658;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.r2go-auction__scheduled-rules ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.r2go-auction__scheduled-rules li {
    position: relative;
    display: grid;
    gap: 4px;
    padding-left: 18px;
}

.r2go-auction__scheduled-rules li::before {
    position: absolute;
    top: 11px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cc785c;
    content: '';
}

.r2go-auction__scheduled-rules strong {
    color: #172033;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.r2go-auction__scheduled-rules span {
    color: #5b6574;
    font-size: 15px;
    line-height: 1.5;
}

.r2go-auction__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 15px;
}

.r2go-auction__stat--high {
    border-color: rgba(197, 0, 24, 0.35);
    background: rgba(197, 0, 24, 0.04);
    color: #c64545;
}

.r2go-auction__stat--mine {
    border-color: rgba(204, 120, 92, 0.4);
    background: rgba(204, 120, 92, 0.05);
    color: #cc785c;
}

.r2go-auction__apply {
    padding: 12px 14px 14px;
    border-radius: 10px;
    border: 1px solid rgba(204, 120, 92, 0.4);
    background: rgba(204, 120, 92, 0.05);
    color: #cc785c;
}

.r2go-auction__apply-label {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.r2go-auction__panel-note {
    width: 100%;
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.r2go-auction__panel-note--muted {
    color: #6b7280;
    font-weight: 600;
}

.r2go-auction__stat-label {
    color: inherit;
    opacity: 0.9;
}

.r2go-auction__stat-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.r2go-auction__balance-flow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    font-size: 14px;
}

.r2go-auction__balance-current {
    color: #7c828a;
    font-weight: 500;
}

.r2go-auction__balance-arrow {
    color: #7c828a;
    font-size: 12px;
    line-height: 1;
}

.r2go-auction__balance-after {
    font-weight: 700;
    color: var(--r2go-ink, #0a0b0d);
}

.r2go-auction__balance-after.is-short {
    color: #c64545;
}

.r2go-auction__bid-row {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
    align-items: center;
}

.r2go-auction__bid-label {
    margin: 0 0 6px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.r2go-auction__bid-delta {
    margin: 7px 0 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.r2go-auction__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #0a0b0d;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.r2go-auction__bid-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #0a0b0d;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.r2go-auction__bid-input:focus {
    outline: none;
    border-color: #cc785c;
}

/* Figma 2379:2 — 입찰 버튼 (576 기준, cqi). 이 블록 값은 임의 변경 금지. */
.r2go-auction__action {
    container-type: inline-size;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto auto;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.r2go-auction__action:active:not(:disabled) {
    transform: scale(0.985);
}

.r2go-auction__action--bid {
    background: #cc785c;
    color: #fff;
}

.r2go-auction__action--status {
    margin-top: 10px;
    background: #c64545;
    color: #fff;
}

.r2go-auction__action--status:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.r2go-auction__action-head {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    height: auto;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
}

.r2go-auction__action-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 6px;
}

.r2go-auction__action-title-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.r2go-auction__action-title {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    font-size: clamp(16px, 5cqi, 28px);
}

.r2go-auction__action--bid .r2go-auction__action-title {
    color: #cc785c;
}

.r2go-auction__action--status .r2go-auction__action-title {
    color: #c64545;
}

.r2go-auction__action-chip {
    box-sizing: border-box;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: #c64545;
    color: #fff;
    font-size: clamp(13px, 3.8cqi, 18px);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.r2go-auction__action-foot {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 0;
}

.r2go-auction__action-foot-text {
    display: block;
    color: #fff;
    font-size: clamp(14px, 4.17cqi, 24px);
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    text-align: center;
}

.r2go-auction__action-foot-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.r2go-auction__action-foot-block .r2go-auction__action-foot-text {
    width: 100%;
    text-align: center;
}

.r2go-auction__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    cursor: pointer;
}

.r2go-auction__btn--primary {
    min-height: 84px;
    padding: 16px;
    background: #cc785c;
    color: #fff;
}

.r2go-auction__btn--primary .r2go-auction__btn-label {
    font-size: 20px;
    font-weight: 800;
}

.r2go-auction__btn--primary .r2go-auction__btn-sub {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.r2go-auction__btn--status {
    margin-top: 6px;
    min-height: 132px;
    padding: 18px 16px;
    background: #c64545;
    color: #fff;
}

.r2go-auction__btn--status .r2go-auction__btn-label {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.r2go-auction__btn--status .r2go-auction__btn-sub {
    font-size: 14px;
    font-weight: 700;
}

.r2go-auction__btn--status:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.r2go-auction__btn-label {
    width: 100%;
    line-height: 1.3;
    text-align: center;
}

.r2go-auction__btn-sub {
    width: 100%;
    line-height: 1.4;
    text-align: center;
    opacity: 0.95;
}

.r2go-auction__panel-note--single {
    width: 100%;
    max-width: none;
    margin: 2px 0 0;
    padding: 0;
    color: #6b7280;
    font-size: clamp(11px, 3.9cqi, 14px);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
}

.r2go-auction__fee-chip {
    margin: 0 0 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #e8f1ff;
    color: #cc785c;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.r2go-auction__fee-note {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.r2go-auction__fee-note--status {
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff0f1;
    color: #c64545;
    font-size: 13px;
    font-weight: 600;
}

.r2go-auction__fee-footnote {
    margin: 10px 0 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.r2go-auction__rank {
    margin: 0 0 16px;
    padding: 0 8px;
    list-style: none;
    text-align: left;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.r2go-auction-modal__submsg { margin: -10px 0 18px; color: #6b7280; font-size: 13px; line-height: 1.5; }
.r2go-auction-modal__submsg span { display: block; }
.r2go-auction-modal__msg[data-r2go-status-confirm-msg] span { display: block; }
.r2go-auction-modal__history { margin: 0 0 18px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; text-align: left; }
.r2go-auction-modal__history > strong { display: block; margin-bottom: 8px; font-size: 14px; }
.r2go-auction-modal__history ul { max-height: 170px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.r2go-auction-modal__history li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #f1f5f9; color: #6b7280; font-size: 13px; }
.r2go-auction-modal__history li:first-child { border-top: 0; }
.r2go-auction-modal__history li b { color: #0a0b0d; }
.r2go-auction-modal__history li.is-empty { display: block; color: #9ca3af; }
.r2go-auction-status-page { padding: 18px 16px 28px; }
.r2go-auction-status-page h1 { margin: 0; color: #0a0b0d; font-size: 22px; }
.r2go-auction-status-page > p { margin: 8px 0 18px; color: #6b7280; font-size: 13px; }
.r2go-auction-status-page__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}
.r2go-auction-status-page__summary-item {
    padding: 14px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}
.r2go-auction-status-page__summary-item span {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
}
.r2go-auction-status-page__summary-item strong {
    color: #0a0b0d;
    font-size: 18px;
}
.r2go-auction-status-page__head, .r2go-auction-status-page__rows li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 62px; gap: 8px; align-items: center; }
.r2go-auction-status-page__head { padding: 10px 0; border-top: 1px solid #dbe3ee; border-bottom: 1px solid #dbe3ee; color: #6b7280; font-size: 12px; }
.r2go-auction-status-page__head span:nth-child(n+2), .r2go-auction-status-page__rows li b, .r2go-auction-status-page__rows li em { text-align: right; }
.r2go-auction-status-page__rows { margin: 0; padding: 0; list-style: none; }
.r2go-auction-status-page__rows li { min-height: 58px; border-bottom: 1px solid #eef0f3; color: #0a0b0d; font-size: 14px; }
.r2go-auction-status-page__rows li.is-me {
    background: rgba(204, 120, 92, 0.06);
    font-weight: 700;
}
.r2go-auction-status-page__rows li small { display: none; }
.r2go-auction-status-page__rows li b { font-size: 15px; }
.r2go-auction-status-page__rows li em { color: #5b616e; font-style: normal; }
.r2go-auction-status-page__rows li.is-empty { display: block; padding: 22px 0; text-align: center; color: #7c828a; }

.r2go-auction__result {
    display: grid;
    gap: 10px;
    padding: 18px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef0f3;
}

.r2go-auction__result-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

.r2go-auction__result-row strong {
    color: #0a0b0d;
    font-weight: 700;
}

/* 모달 */
.r2go-auction-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.r2go-auction-modal[hidden] {
    display: none !important;
}

.r2go-auction-modal__dim {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(17, 17, 17, 0.45);
    cursor: pointer;
}

.r2go-auction-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    padding: 28px 22px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.r2go-auction-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.r2go-auction-modal__msg {
    margin: 8px 0 20px;
    color: #0a0b0d;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.r2go-auction-modal__msg--danger {
    color: #c64545;
}

.r2go-auction-modal__msg--ok {
    color: #374151;
    font-weight: 400;
    text-align: left;
}

.r2go-auction-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.r2go-auction-modal__actions--single {
    grid-template-columns: 1fr;
}

.r2go-auction-modal__btn {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #cc785c;
    background: #fff;
    color: #cc785c;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.r2go-auction-modal__btn--solid {
    background: #cc785c;
    color: #fff;
}
