/* ============================================
   DICE RIVALS - HOW TO PLAY
   ============================================ */

:root {
    --sky-top: #2A8EE8;
    --sky-bottom: #5DC2F5;
    --water: #6DE4D0;
    --coral: #E04545;
    --coral-dark: #C03030;
    --gold: #F5C518;
    --gold-dark: #DBA810;
    --green: #5AB842;
    --text: #2C3E50;
    --text-light: #4A6070;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 4px 20px rgba(0, 60, 120, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 50%, var(--water) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Decorative clouds */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 300px;
    height: 120px;
    top: 60px;
    right: -60px;
    filter: blur(30px);
}

body::after {
    width: 250px;
    height: 100px;
    top: 200px;
    left: -80px;
    filter: blur(25px);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo {
    display: block;
    width: min(220px, 50vw);
    height: auto;
    margin: 0 auto 0.5rem;
    position: relative;
}

/* Page title */
h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
    text-shadow:
        0 2px 0 var(--coral-dark),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Sections as cards */
section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(8px);
}

/* Section headings */
h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: var(--coral);
}

h3 {
    font-size: clamp(1rem, 3vw, 1.15rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    margin-top: 1rem;
    color: var(--gold-dark);
}

h3:first-of-type {
    margin-top: 0.75rem;
}

p {
    margin-bottom: 0.6rem;
    color: var(--text-light);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--text);
    font-weight: 600;
}

/* Lists */
ul, ol {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    color: var(--text-light);
}

ul:last-child, ol:last-child {
    margin-bottom: 0;
}

li {
    margin-bottom: 0.35rem;
}

li:last-child {
    margin-bottom: 0;
}

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

/* Table */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.5rem;
    border-radius: 12px;
    border: 1px solid #e8edf2;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 420px;
}

thead th {
    text-align: left;
    font-weight: 700;
    padding: 0.65rem 0.75rem;
    background: var(--coral);
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

thead th:first-child {
    border-radius: 11px 0 0 0;
}

thead th:last-child {
    border-radius: 0 11px 0 0;
}

tbody td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #eef1f5;
    color: var(--text-light);
}

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

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(93, 194, 245, 0.08);
}

/* Mobile refinements */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 0.75rem 3rem;
    }

    section {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }
}
