@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --ex-cyan: #00ABFF;
    --ex-cyan-bright: #33BBFF;
    --ex-cyan-light: #5EC8FF;
    --ex-cyan-dark: #008FD9;
    --ex-cyan-darker: #007AB8;
    --ex-cyan-glow: rgba(0, 171, 255, 0.32);
    --ex-cyan-soft: rgba(0, 171, 255, 0.08);
    --ex-panel-gradient: linear-gradient(145deg, #7eceff 0%, #4dc4ff 32%, #00ABFF 68%, #0090e0 100%);
    --ex-blue: #00ABFF;
    --ex-blue-light: #5EC8FF;
    --ex-blue-dark: #008FD9;
    --ex-blue-darker: #007AB8;
    --ex-blue-glow: rgba(0, 171, 255, 0.32);
    --ex-blue-soft: rgba(0, 171, 255, 0.08);
}

html {
    scroll-padding-top: 100px;
}

body {
    font-family: "Roboto", sans-serif;
    color: #1e1e1e;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    cursor: default;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #f8f9fa;
    background-image:
        radial-gradient(at 15% 15%, rgba(0, 171, 255, 0.32) 0px, transparent 32%),
        radial-gradient(at 85% 15%, rgba(77, 196, 255, 0.28) 0px, transparent 32%),
        radial-gradient(at 50% 85%, rgba(94, 200, 255, 0.22) 0px, transparent 30%),
        radial-gradient(at 80% 80%, rgba(0, 143, 217, 0.26) 0px, transparent 30%);
    background-attachment: fixed;
}

a {
    display: inline-block;
    border: none;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    font-variant: all-small-caps;
    cursor: pointer;
    border-radius: 16px;
    padding: 15px 25px;
    transition: all 0.3s;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 171, 255, 0.35);
    border: 2px solid transparent;
    background-clip: content-box;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 171, 255, 0.65);
}

nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(96%, 1040px);
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    backdrop-filter: blur(20px);
}

.links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0;
}

nav a {
    background-color: transparent;
    color: #333;
    margin: 0;
    padding: 12px 18px;
    font-size: 21px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 18px;
}

nav a:hover {
    color: var(--ex-cyan);
    background: rgba(0, 171, 255, 0.08);
    transform: scale(1.05) translateY(-5px);
}

nav a:active {
    background: linear-gradient(90deg, var(--ex-cyan) 0%, var(--ex-cyan-light) 100%);
    color: #fff;
    transform: scale(0.95);
}

.active {
    background: linear-gradient(90deg, var(--ex-blue) 0%, var(--ex-blue-light) 100%);
    color: #fff;
}

.menu-checkbox {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--ex-cyan);
    border-radius: 10px;
    transition: 0.3s;
}

.home {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: transparent;
}

.home a {
    font-size: 20px;
}

.logo {
    max-height: 300px;
    margin-top: -30px;
    margin-bottom: 20px;
    filter: drop-shadow(0 25px 15px rgba(0, 143, 217, 0.28));
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) scale(1.1);
    filter: drop-shadow(0 35px 25px rgba(0, 143, 217, 0.4));
}

.join-button {
    background: var(--ex-cyan);
    color: #fff;
    margin-right: 10px;
    box-shadow: 0 4px 15px rgba(0, 171, 255, 0.35);
}

.join-button:hover {
    background: var(--ex-cyan-dark);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 171, 255, 0.5);
}

.about-button {
    background: rgba(255, 255, 255, 0.5);
    color: #444;
    border: 1px solid rgba(0, 171, 255, 0.25);
    backdrop-filter: blur(5px);
}

.about-button:hover {
    background: #fff;
    color: var(--ex-cyan);
    border-color: var(--ex-cyan);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.about-button:active, 
.join-button:active {
    transform: translateY(-1px) scale(0.95);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-weight: 600;
}

.obsah {
    width: 100%;
    margin-top: 0;
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}

.nabizime-block {
    width: 100%;
    margin: 0 auto;
    padding: 48px 20px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    background: transparent;
}

.nabizime-heading {
    scroll-margin-top: 100px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.15rem, 5vw, 2.85rem);
    font-weight: 800;
    font-variant: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.15;
}

.nabizime-accent {
    color: var(--ex-cyan);
}

.nabizime-text {
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.9;
    color: #64748b;
    text-align: center;
    max-width: 660px;
    margin: 0 auto 48px;
}

.nabizime-highlight {
    color: var(--ex-cyan);
    font-weight: 600;
}

.dlazdice-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 52px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.dlazdice {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 210px;
    padding: 28px 16px 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        var(--ex-panel-gradient);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    text-align: center;
    box-shadow:
        0 16px 40px rgba(0, 171, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    cursor: default;
    color: #fff;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.35, 0.64, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.dlazdice::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.03) 75%, transparent 75%);
    background-size: 20px 20px, 10px 10px;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.dlazdice::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.dlazdice-icon {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 6px 18px rgba(0, 60, 120, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.dlazdice img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 60, 120, 0.2));
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dlazdice-title {
    position: relative;
    z-index: 1;
    font-family: "Poppins", sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 6px 0 0;
    color: #ffffff;
}

.dlazdice-desc {
    position: relative;
    z-index: 1;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    max-width: 180px;
}

.dlazdice:hover {
    z-index: 10;
    transform: translateY(-10px) scale(1.04);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 22px 50px rgba(0, 171, 255, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dlazdice:hover::before {
    opacity: 0.65;
}

.dlazdice:hover .dlazdice-icon {
    transform: scale(1.12) rotate(-4deg);
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 10px 24px rgba(0, 60, 120, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.dlazdice:hover .dlazdice-icon img {
    transform: scale(1.08);
}

.obsah > p {
    margin: 0 40px;
    text-align: justify;
}

h2 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    position: relative;
    font-weight: 600;
    font-variant: all-small-caps;

}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10vh;
    margin-top: 10vh;
    text-align: center;
}

footer span {
    color: rgba(80, 80, 80, 0.75);
    font-weight: 400;
    font-size: 15px;
}

.discord {
    position: relative;
    overflow: hidden;
    width: min(92%, 680px);
    margin: 60px auto 30px;
    padding: 52px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        var(--ex-panel-gradient);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    border-radius: 22px;
    text-align: center;
    box-shadow:
        0 20px 50px rgba(0, 171, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.discord::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.03) 75%, transparent 75%);
    background-size: 20px 20px, 10px 10px;
    opacity: 0.5;
    pointer-events: none;
}

.discord::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.discord img,
.discord h2,
.discord p,
.discord a,
.discord div {
    position: relative;
    z-index: 1;
}

.discord img {
    width: 96px;
    margin-bottom: 4px;
    filter: drop-shadow(0 4px 12px rgba(0, 60, 120, 0.2));
}

.discord h2 {
    font-variant: normal;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    margin: 8px 0;
}

.discord p {
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 420px;
    margin: 0;
}

.discord a {
    background: #ffffff;
    color: var(--ex-cyan-dark);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    margin-top: 24px;
    padding: 14px 28px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 60, 120, 0.15);
}

.discord a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 28px rgba(0, 60, 120, 0.2);
}

.discord a:active {
    transform: translateY(-1px) scale(0.95);
}

.vote {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0 10px 0 10px;
}

.vote-dlazdice {
    display: flex;
    flex-direction: column;
    background-color: #eaeaea;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 250px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vote-dlazdice h2 {
    font-variant: normal;
    font-size: 25px;
}

.vote-dlazdice > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.vote-dlazdice input {
    height: 30px;
    border: 1px solid rgba(243, 243, 243, 0.5);
    width: 200px;
    background-color: #f7f7f7;
    border-radius: 10px;
    padding: 5px 10px;
    margin-bottom: 5px;
    margin-top: 5px;
    font-size: 16px;
}

.vote-dlazdice input:focus {
    outline: solid 2px var(--ex-cyan);
}

.vote-dlazdice a {
    background: var(--ex-cyan);
    color: #fff;
    margin-right: 10px;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(0, 171, 255, 0.35);
}

.vote-dlazdice a:hover {
    background: var(--ex-cyan-dark);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 171, 255, 0.5);
}

.vote-dlazdice a:active {
    transform: translateY(-1px) scale(0.95);
}

.admin-team {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sekce {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.sekce:last-of-type {
    margin: 0;
}

.hrac {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(234, 234, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 20px;
    width: 220px;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.hrac:hover {
    transform: translateY(-5px);
}

.hrac img {
    height: 150px;
}

.hrac span {
    font-size: 18px;
    font-weight: 600;
}

.pravidla-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 140px 24px 60px;
    gap: 36px;
    box-sizing: border-box;
}

.pravidla-tabulka {
    width: 100%;
    max-width: 100%;
    border-spacing: 0;
    table-layout: fixed;
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 171, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #1e1e1e;
}

.pravidla-tabulka thead {
    background: linear-gradient(90deg, var(--ex-cyan) 0%, var(--ex-cyan-light) 100%);
    color: #fff;
}

.pravidla-tabulka th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 15px 20px;
    text-align: left;
}

.pravidla-tabulka td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(155, 155, 155, 0.15);
    font-size: 16px;
    transition: ease-in-out 0.2s;
}

.pravidla-tabulka td:first-child, 
.pravidla-tabulka th:first-child {
    width: 56px;
    text-align: center;
    font-weight: bold;
}

.pravidla-tabulka td:nth-child(2),
.pravidla-tabulka th:nth-child(2) {
    width: 28%;
}

.pravidla-tabulka td:nth-child(3),
.pravidla-tabulka th:nth-child(3) {
    width: auto;
    word-wrap: break-word;
}

.pravidla-tabulka td:nth-child(2) {
    font-weight: 600;
    color: var(--ex-cyan);
}

.pravidla-tabulka tr:last-child td {
    border-bottom: none;
}

.pravidla-tabulka tbody tr:hover td {
    background-color: rgba(0, 171, 255, 0.08);
}

@media (max-width: 960px) {
    .dlazdice-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        max-width: 580px;
    }
}

@media (max-width: 768px) {
    .nabizime-block {
        padding: 48px 16px 56px;
    }

    .dlazdice-box {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 32px;
    }

    .links {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 30px;
        background: rgba(255, 255, 255);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    nav {
        width: fit-content;
        max-width: calc(100% - 24px);
        left: auto;
        right: 15px;
        transform: none;
        justify-content: flex-end;
    }

    .menu-checkbox:checked ~ .links {
        display: flex;
    }

    .menu-checkbox:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-checkbox:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-checkbox:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 866px) {
    .sekce {
        flex-direction: column;
        flex-wrap: wrap
    }
}