:root {
    color-scheme: light;
    --sky-top: #a7d9ff;
    --sky-bottom: #6ec0ff;
    --cloud: rgba(255, 255, 255, 0.45);
    --cloud-soft: rgba(255, 255, 255, 0.3);
    --fg: #102036;
    --teal-dark: #1f6b79;
    --teal-medium: #2a9a9c;
    --teal-light: #4bc7c0;
    --orange: #f89a3d;
    --orange-dark: #e37f1c;
    --yellow: #f6c75c;
    --grass: #5f9a3d;
    --card: #fdfdfc;
    --shadow-strong: rgba(25, 42, 71, 0.25);
    --shadow-hover: rgba(36, 153, 164, 0.35);
    --shadow-cta: rgba(248, 154, 61, 0.32);
}

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

body {
    font-family: "Fredoka", "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 60%, #8dd36b 60%, var(--grass) 100%);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(120px 90px at 15% 18%, var(--cloud), transparent 60%),
        radial-gradient(150px 110px at 75% 20%, var(--cloud-soft), transparent 70%),
        radial-gradient(110px 80px at 50% 8%, var(--cloud), transparent 55%);
    opacity: 0.65;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: -2rem;
    height: 8rem;
    background: repeating-linear-gradient(
        90deg,
        rgba(83, 146, 53, 0.7) 0,
        rgba(83, 146, 53, 0.7) 40px,
        rgba(69, 123, 41, 0.7) 40px,
        rgba(69, 123, 41, 0.7) 80px
    );
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

header {
    padding: 1.5rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--teal-dark), var(--teal-medium));
    color: #f5fbff;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 12px 25px rgba(26, 76, 102, 0.35);
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

nav a {
    color: #f5fbff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    background: #ffffff;
    color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 88, 120, 0.25);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5vw;
    position: relative;
    z-index: 1;
}

.card,
.content {
    max-width: 760px;
    width: 100%;
    background: var(--card);
    border-radius: 26px;
    padding: 3rem;
    box-shadow: 0 25px 50px var(--shadow-strong);
    border: 6px solid rgba(16, 32, 54, 0.08);
    position: relative;
    overflow: hidden;
}

.card {
    text-align: center;
    background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.85), rgba(255, 249, 235, 0.95));
}

.content {
    background-image: linear-gradient(140deg, rgba(255, 252, 242, 0.94), rgba(255, 255, 255, 0.98));
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    color: var(--teal-dark);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    color: var(--teal-dark);
    margin-bottom: 0.75rem;
}

.content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--orange-dark);
}

p {
    margin-top: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.meta {
    margin-top: 1rem;
    color: rgba(16, 32, 54, 0.75);
}

.ip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--orange) 0%, var(--yellow) 100%);
    border: 3px solid rgba(249, 174, 80, 0.7);
    color: #623710;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    color: #5b3311;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.35), inset 0 -3px 6px rgba(121, 67, 16, 0.18);
}

.ip-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.ip-label {
    display: inline-flex;
    align-items: center;
}

.ip-button:hover,
.ip-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px var(--shadow-cta);
}

.cta {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--teal-light), var(--teal-medium));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px var(--shadow-hover);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(36, 153, 164, 0.45);
    filter: brightness(1.05);
}

.cta-secondary {
    margin-top: 1rem;
    background: linear-gradient(120deg, var(--orange), var(--orange-dark));
    box-shadow: 0 12px 22px rgba(248, 154, 61, 0.35);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
    box-shadow: 0 16px 30px rgba(227, 127, 28, 0.45);
}

.status {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: rgba(16, 32, 54, 0.68);
}

footer {
    padding: 1.5rem 5vw;
    text-align: center;
    font-size: 0.95rem;
    background: var(--teal-dark);
    color: #f5fbff;
    position: relative;
    z-index: 1;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 25px rgba(31, 107, 121, 0.25);
}

footer a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
}

ol {
    margin: 2rem 0;
    padding-left: 1.5rem;
    line-height: 1.8;
    counter-reset: rule;
}

li {
    margin-bottom: 1rem;
    position: relative;
    list-style: none;
}

li::before {
    counter-increment: rule;
    content: counter(rule) ".";
    position: absolute;
    left: -2.75rem;
    top: 0.15rem;
    font-weight: 700;
    color: var(--teal-medium);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand strong {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.brand-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
}

.brand strong::before,
.brand strong::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.event-list {
    display: grid;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.event-card {
    position: relative;
    isolation: isolate;
    padding: 2.5rem;
    border-radius: 24px;
    border: transparent;
    box-shadow: 0 22px 38px rgba(18, 40, 62, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    color: #fdfdfc;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 260px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.event-card:hover,
.event-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 28px 46px rgba(16, 34, 52, 0.35);
    border-color: rgba(255, 255, 255, 0.28);
}

.event-date {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: rgba(255, 246, 214, 0.92);
}

.event-card p {
    margin-top: 0.35rem;
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(12, 24, 35, 0.85), rgba(44, 98, 125, 0.5));
    z-index: -1;
    border-radius: inherit;
}

.event-card--nether {
    background-image: url("img/nether.jpg");
}

.event-card--end {
    background-image: url("img/end.jpg");
}

.event-card h2 {
    color: #ffffff;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.event-card p {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

@media (min-width: 720px) {
    .event-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    header {
        padding: 1.25rem 4vw;
    }

    .card,
    .content {
        padding: 2.5rem 2.25rem;
    }

    h1 {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }

    .ip-button {
        font-size: clamp(1.75rem, 7vw, 2.6rem);
        padding: 0.65rem 1.25rem;
    }
}

@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.15rem 4vw 1.75rem;
    }

    nav {
        justify-content: center;
        gap: 0.6rem;
    }

    nav a {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    main {
        padding: 3.25rem 6vw;
    }

    .card,
    .content {
        padding: 2rem 1.75rem;
        border-width: 5px;
    }

    .ip-button {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        width: 100%;
    }

    .cta {
        width: 100%;
        justify-content: center;
    }

    .brand strong::before,
    .brand strong::after {
        display: none;
    }
}

@media (max-width: 420px) {
    header {
        border-radius: 0 0 22px 22px;
    }

    body {
        background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 58%, #9add74 58%, var(--grass) 100%);
    }

    .card,
    .content {
        padding: 1.75rem 1.5rem;
        border-radius: 22px;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 2.4rem);
    }

    p {
        font-size: 1rem;
    }

    footer {
        padding: 1.25rem 10vw;
        font-size: 0.9rem;
    }
}

