.random-tool-page-top .hero-content {
    max-width: 880px;
}
.random-tool-app {
    display: grid;
    gap: 1.1rem;
}
.random-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 1rem;
    align-items: start;
}
.random-card {
    border: 1px solid #dbe6f3;
    border-radius: 12px;
    background: #ffffff;
    padding: 1rem;
}
.random-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.random-field {
    display: grid;
    gap: 0.38rem;
    margin-bottom: 0.8rem;
}
.random-field span,
.random-check span {
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
}
.random-field input,
.random-field select,
.random-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.68rem 0.75rem;
    color: #0f172a;
    background: #ffffff;
    font-size: 0.94rem;
    box-sizing: border-box;
}
.random-field textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.65;
}
.random-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.random-check {
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    min-height: 38px;
}
.random-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.8rem;
}
.random-status {
    min-height: 24px;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
}
.random-result-box {
    min-height: 210px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #f8fbff;
    padding: 1rem;
}
.random-result-main {
    display: grid;
    gap: 0.62rem;
}
.result-chip,
.group-card,
.roll-card {
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.78rem 0.85rem;
}
.result-chip strong,
.group-card strong,
.roll-card strong {
    display: block;
    color: #0f172a;
    font-size: 0.96rem;
    margin-bottom: 0.25rem;
}
.result-chip span,
.group-card span,
.roll-card span {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.65;
}
.random-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.8rem;
}
.random-stat {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.72rem;
}
.random-stat span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-bottom: 0.22rem;
}
.random-stat strong {
    display: block;
    color: #0f172a;
    font-size: 1.05rem;
}
.random-history {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
    line-height: 1.75;
    font-size: 0.9rem;
}
.random-notice {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 0.65rem 0 0;
}
.dice-face,
.coin-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0.18rem;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
}
.coin-face {
    background: #0f766e;
}
.content-list {
    display: grid;
    gap: 1rem;
}
.content-list h3 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1rem;
}
.content-list p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .random-tool-grid,
    .random-inline,
    .random-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .random-card,
    .random-result-box {
        padding: 0.85rem;
    }
    .random-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
