#random-tools > p.mt-5,
#random-tools ~ section > p.mt-4 {
    display: none;
}

#random-tools .mt-8.grid > .card {
    grid-column: 1 / -1;
}

.random-cover {
    background-color: #0f172a;
}

.random-cover-board {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.cover-number {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.cover-number-large {
    color: #a7f3d0;
    font-size: 1.7rem;
}

.cover-number-wide {
    grid-column: span 2;
    min-height: 78px;
    color: #fef08a;
    font-size: 2rem;
}

.lucky-number-card {
    min-height: 118px;
}

.lucky-number {
    white-space: nowrap;
    overflow-wrap: normal;
    letter-spacing: 0.06em;
    font-size: 1.45rem !important;
}

.slot-number {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    letter-spacing: 0;
}

.slot-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.45em;
    border: 1px solid #dbe3ee;
    border-radius: 0.38rem;
    background: #f8fafc;
    box-shadow: inset 0 -2px 0 rgba(148, 163, 184, 0.14), 0 1px 1px rgba(15, 23, 42, 0.05);
}

.slot-digit-rolling {
    color: #64748b;
    animation: slot-digit-roll 0.42s ease-in-out infinite;
    animation-delay: var(--slot-delay, 0ms);
}

@keyframes slot-digit-roll {
    0% { transform: rotateX(0deg); opacity: 0.55; }
    50% { transform: rotateX(90deg); opacity: 0.8; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

@media (max-width: 420px) {
    .slot-number { gap: 0.18rem; }
    .slot-digit { width: 1.15em; }
}

@media (prefers-reduced-motion: reduce) {
    .slot-digit-rolling,
    .rolling-number { animation: none; }
}

#result-panel .copy-one,
#result-panel .save-one,
#result-panel #copy-all-btn,
#result-panel #reroll-btn,
#result-panel #save-all-btn,
#result-panel #share-btn,
#result-panel #image-btn {
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.25rem;
}

#result-panel .icon-action {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#result-panel .icon-action svg {
    width: 1rem;
    height: 1rem;
}

#result-panel #image-btn {
    display: none !important;
}

.share-icon-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.share-social-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.share-social-btn:hover {
    background: #f8fafc;
    color: #2563eb;
}

.rolling-number {
    color: #94a3b8;
    animation: lucky-number-pulse 0.55s ease-in-out infinite alternate;
}

@keyframes lucky-number-pulse {
    from { opacity: 0.45; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(-2px); }
}
