.block-header {
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.page-title {
    font-family: 'Palatino Linotype', Palatino, Georgia, serif;
    font-size: 38px;
    font-weight: 900;
    color: #d4a84b;
    text-shadow:
        0 0 20px rgba(201,162,39,0.5),
        0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

.block-top {
    flex: 1.4;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 8px;
    isolation: isolate;
}

.card-slot {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 2px solid #c9a227;
    border-radius: 8px;
    background: rgba(10, 15, 25, 0.6);
    box-shadow:
        0 0 0 1px rgba(201,162,39,0.15),
        inset 0 0 12px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.card-slot::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 5px;
}

.card-slot::after {
    content: '◈';
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    color: #c9a227;
    font-size: 16px;
    text-shadow: 0 0 8px rgba(201,162,39,0.7);
}

.slot-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
}

.slot-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 2;
    pointer-events: none;
}

.card-slot--bronze,
.card-slot--silver,
.card-slot--gold {
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    overflow: hidden;
}

.card-slot--bronze::before,
.card-slot--silver::before,
.card-slot--gold::before,
.card-slot--bronze::after,
.card-slot--silver::after,
.card-slot--gold::after { display: none; }

.slot-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.slot-wrap--gold {
    flex: 1;
}

.slot-wrap:not(.slot-wrap--gold) {
    margin-top: 8px;
}

.slot-num {
    font-family: 'Palatino Linotype', Georgia, serif;
    font-size: 13px;
    font-weight: bold;
    color: #d4a84b;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.slot-num--x2 {
    font-size: 16px;
    color: #f5c518;
    text-shadow: 0 0 10px rgba(245,197,24,0.7), 0 1px 4px rgba(0,0,0,0.8);
}

.slot-num--spacer {
    visibility: hidden;
    font-size: 16px;
}

.slot-btn-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    margin-bottom: -8px;
    isolation: isolate;
}

.hammer-count {
    font-family: 'Palatino Linotype', Georgia, serif;
    font-size: 20px;
    font-weight: bold;
    color: #d4a84b;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.hammer-count.empty { color: #666; text-shadow: none; }

@keyframes hammer-swing {
    0%   { transform: scale(1.1) rotate(0deg); }
    25%  { transform: scale(1.1) rotate(-30deg); }
    55%  { transform: scale(1.1) rotate(15deg); }
    75%  { transform: scale(1.1) rotate(-8deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

.round-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: var(--hummer-image) center / cover no-repeat;
    cursor: pointer;
    transition: filter 0.15s;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    transform: translateZ(0);
}

.round-btn:disabled { cursor: default; pointer-events: none; }

.round-btn.swinging {
    animation: hammer-swing 0.45s ease-out forwards;
    filter: drop-shadow(0 0 14px rgba(201,162,39,0.8)) drop-shadow(0 0 4px rgba(255,200,60,0.5));
}

@keyframes hammer-no {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX( 6px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX( 3px); }
}

.slot-btn-wrap.hammer-reject { animation: hammer-no 0.35s ease-out forwards; }

.block-divider {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 40px;
    background: var(--divider-image) center / contain no-repeat;
    margin-bottom: -12px;
    pointer-events: none;
}

.collection-count {
    flex-shrink: 0;
    text-align: center;
    font-family: 'Palatino Linotype', Georgia, serif;
    font-size: 20px;
    font-weight: bold;
    color: rgba(201,162,39,0.8);
    margin: -4px 0 4px;
}

.block-cards {
    flex: 4;
    min-height: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 8px;
    position: relative;
    z-index: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.block-cards::-webkit-scrollbar { display: none; }

.inv-empty {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
    height: 100%;
    font-family: 'Palatino Linotype', Georgia, serif;
    font-size: 22px;
    color: rgba(201,162,39,0.4);
    text-align: center;
}

.inv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 8px 22px 12px;
}

.inv-card {
    position: relative;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    transition: transform 0.18s;
    touch-action: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12%;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

@media (hover: hover) {
    .inv-card:hover { transform: translateY(-4px); }
}

.inv-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    clip-path: inset(2% round 8%);
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.inv-card.dragging {
    opacity: 0.3;
    transform: scale(0.95);
    transition: none;
}

.drag-ghost {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    opacity: 0.9;
    transform: scale(1.08);
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.7);
    transition: none !important;
}

.slot-drop-hover .card-slot {
    outline: 2px solid #44dd44 !important;
    outline-offset: 2px;
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(60,220,60,0.5));
}

.app.no-hammers .slot-drop-hover .card-slot {
    outline: 2px solid #cc2200 !important;
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(220,40,40,0.5));
}

@keyframes slot-reject {
    0%   { transform: translateX(0);    filter: brightness(1.5) drop-shadow(0 0 10px rgba(220,40,40,0.9)); }
    20%  { transform: translateX(-7px); filter: brightness(1.5) drop-shadow(0 0 10px rgba(220,40,40,0.9)); }
    40%  { transform: translateX( 7px); }
    60%  { transform: translateX(-4px); filter: brightness(1.2) drop-shadow(0 0 6px rgba(220,40,40,0.5)); }
    80%  { transform: translateX( 4px); }
    100% { transform: translateX(0);    filter: brightness(1); }
}

.slot-wrap.rejecting .card-slot { animation: slot-reject 0.4s ease-out forwards; }

@keyframes press-charge {
    0%   { transform: scale(1);    filter: brightness(1); }
    60%  { transform: scale(0.94); filter: brightness(1.1); }
    100% { transform: scale(0.91); filter: brightness(1.4) drop-shadow(0 0 10px rgba(201,162,39,0.9)); }
}

.inv-card.press-charging {
    animation: press-charge 0.4s ease-in forwards;
}

/* ── Enlarged card zoom overlay ── */
.card-zoom-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(201,162,39,0.6);
    background: rgba(10,10,20,0.85);
    color: #d4a84b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s;
    z-index: 1000000;
}

.card-zoom-close:active {
    background: rgba(201,162,39,0.25);
    border-color: #d4a84b;
}

.card-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.card-zoom-overlay.active {
    background: rgba(0,0,0,0.85);
}

.card-zoom-img {
    width: 72%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0,0,0,0.9), 0 0 20px rgba(201,162,39,0.2);
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.card-zoom-overlay.active .card-zoom-img {
    transform: scale(1);
    opacity: 1;
}

/* ── Hammer info overlay ── */
.hammer-info-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
}

.hammer-info-overlay.active {
    display: flex;
}

.hammer-info-box {
    background: linear-gradient(160deg, #1a1408 0%, #0e0c05 100%);
    border: 1px solid rgba(201,162,39,0.6);
    border-radius: 12px;
    padding: 24px 20px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 0 40px rgba(201,162,39,0.2);
}

.hammer-info-title {
    font-family: 'Palatino Linotype', Georgia, serif;
    font-size: 20px;
    font-weight: 900;
    color: #d4a84b;
    text-shadow: 0 0 16px rgba(201,162,39,0.6);
    text-align: center;
}

.hammer-info-text {
    font-family: 'Palatino Linotype', Georgia, serif;
    font-size: 14px;
    color: #c8b88a;
    line-height: 1.8;
    text-align: center;
}

.hammer-info-close {
    padding: 8px 32px;
    background: rgba(201,162,39,0.15);
    border: 1px solid rgba(201,162,39,0.5);
    border-radius: 20px;
    color: #d4a84b;
    font-family: 'Palatino Linotype', Georgia, serif;
    font-size: 15px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.hammer-info-close:active {
    background: rgba(201,162,39,0.3);
}
