:root {
    --bg: #0b0b10;
    --card: #15151d;
    --text: #f7f7fb;
    --muted: #b9b9c6;
    --border: rgba(255, 255, 255, 0.12);
    --button: #ffffff;
    --button-text: #111118;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #202033 0%, var(--bg) 55%);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 3rem);
}

.container {
    width: min(100%, 900px);
    min-height: min(92vh, 1100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    text-align: center;
}

h1,
h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    font-size: clamp(2.8rem, 8vw, 8rem);
}

.emoji {
    font-size: clamp(8rem, 28vw, 28rem);
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: transform 160ms ease, filter 160ms ease;
}

.emoji:hover {
    transform: scale(1.04);
}

.emoji.rolling {
    transform: scale(1.08) rotate(-4deg);
    filter: blur(0.5px);
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

button {
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    min-height: 52px;
    font: inherit;
    font-weight: 800;
    color: var(--button-text);
    background: var(--button);
    cursor: pointer;
    transition: transform 140ms ease, opacity 140ms ease;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0) scale(0.98);
}

.rules,
.tips {
    width: min(100%, 640px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.25rem;
    text-align: left;
    backdrop-filter: blur(10px);
}

.rules h3,
.tips h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

ol {
    margin: 0;
    padding-left: 1.4rem;
    color: var(--muted);
}

li {
    margin: 0.4rem 0;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

strong {
    color: var(--text);
}

@media (min-width: 900px) {
    .rules,
    .tips {
        font-size: 1.15rem;
    }

    button {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
    }

    .container {
        min-height: auto;
        padding-top: 2rem;
    }

    .buttons {
        width: 100%;
    }

    button {
        width: 100%;
    }
}