@font-face {
    font-family: "Speda";
    src:
        local("Speda"),
        local("Speda Regular"),
        url("assets/fonts/Speda.woff2") format("woff2"),
        url("assets/fonts/Speda.ttf") format("truetype");
    font-display: swap;
}

:root {
    --bg: #010910;
    --ink: #d9f8ff;
    --aqua: #4ad5dd;
    --yellow: #fbb034;
    --yellow-deep: #d98a10;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Speda", "Noto Sans Arabic", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(74, 213, 221, 0.14), transparent 36%),
        radial-gradient(circle at 80% 20%, rgba(251, 176, 52, 0.1), transparent 34%),
        linear-gradient(180deg, #020b13 0%, var(--bg) 62%, #05070a 100%);
    direction: rtl;
    text-align: right;
}

.home-wrap {
    min-height: 100vh;
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    place-items: center;
    gap: 24px;
    padding: 16px;
}

.poster-card {
    width: min(980px, 100%);
    border-radius: 26px;
    border: 1px solid #12303d;
    background:
        radial-gradient(circle at 50% -10%, rgba(74, 213, 221, 0.16), transparent 42%),
        linear-gradient(180deg, #040d16 0%, #01060b 72%, #03050a 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
    padding: 28px 26px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: posterIn 0.9s ease both;
}

.logo-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid #75a8c1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
}

h1 {
    margin: 0;
    font-family: inherit;
    color: var(--aqua);
    letter-spacing: 0.01em;
    line-height: 1.02;
    font-size: clamp(2.1rem, 9vw, 4rem);
    text-shadow: 0 0 20px rgba(74, 213, 221, 0.2);
}

.venue {
    margin: 10px 0 0;
    font-size: 1rem;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #d5f7ff;
    direction: ltr;
    display: inline-block;
}

.date-ribbon {
    margin: 18px auto 16px;
    width: min(430px, 100%);
    min-height: 60px;
    background: linear-gradient(180deg, #ffc254 0%, #eca027 100%);
    color: #1f1302;
    display: grid;
    place-items: center;
    font-family: inherit;
    letter-spacing: 0.01em;
    font-size: clamp(1.3rem, 4.4vw, 2rem);
    position: relative;
    padding: 0 14px;
    font-weight: 800;
}

.date-ribbon::before,
.date-ribbon::after {
    content: "";
    position: absolute;
    top: 100%;
    width: 38px;
    height: 18px;
    background: var(--yellow-deep);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.date-ribbon::before {
    left: 0;
}

.date-ribbon::after {
    right: 0;
    transform: scaleX(-1);
}

h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.3rem, 4.4vw, 2.1rem);
    color: #ffab3f;
    font-family: inherit;
    letter-spacing: 0.01em;
    text-shadow: 0 0 14px rgba(255, 171, 63, 0.18);
}

.prize-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 14px;
    width: min(320px, 100%);
    display: grid;
    gap: 8px;
}

.prize-list li {
    border: 1px solid #214356;
    border-radius: 10px;
    background: rgba(10, 21, 29, 0.8);
    padding: 10px 14px;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
    color: #d4f2ff;
    display: flex;
    justify-content: center;
    gap: 10px;
    animation: listIn 0.55s ease both;
    direction: ltr;
}

.prize-list li:nth-child(2) {
    animation-delay: 0.1s;
}

.prize-list li:nth-child(3) {
    animation-delay: 0.2s;
}

.prize-list strong {
    color: #ffc75f;
}

.poster-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1d3e4f;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.poster-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 520px);
    object-fit: cover;
    filter: saturate(1.06) contrast(1.03);
}

.location-toggle {
    margin-top: 14px;
    width: 100%;
    border: 1px solid #24556f;
    background: rgba(7, 26, 37, 0.72);
    color: #d9f8ff;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.location-toggle:hover {
    transform: translateY(-1px);
    background: rgba(8, 32, 46, 0.85);
}

.location-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.location-icon svg {
    width: 18px;
    height: 18px;
    fill: #4ad5dd;
}

.map-panel {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1d3e4f;
    animation: mapIn 0.4s ease both;
}

.map-panel iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
}

.home-actions {
    display: grid;
    gap: 12px;
    width: min(980px, 100%);
    place-items: center;
}

.sponsor-note {
    margin: 8px 0 0;
    color: #d2dcf3;
    font-size: clamp(0.95rem, 2.4vw, 1.1rem);
    font-weight: 700;
    text-align: center;
    opacity: 0.95;
}

.open-register-btn,
.open-players-btn {
    text-decoration: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
    font-family: inherit;
    width: 100%;
    text-align: center;
}

.open-register-btn {
    color: #160d03;
    background: linear-gradient(135deg, #ffc65f, #f6a622);
    border: 1px solid #f4af3b;
    box-shadow: 0 12px 26px rgba(233, 153, 17, 0.34);
    animation: buttonIn 1s ease both;
}

.open-register-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.open-players-btn {
    color: #d9f8ff;
    background: linear-gradient(135deg, #203a48, #132833);
    border: 1px solid #2e6078;
    box-shadow: 0 10px 24px rgba(13, 30, 39, 0.45);
    animation: buttonIn 1.12s ease both;
}

.open-players-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

@keyframes posterIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes listIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mapIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .poster-card {
        padding: 22px 16px 22px;
        border-radius: 18px;
    }

    .date-ribbon {
        min-height: 52px;
    }

    .poster-image {
        max-height: 240px;
    }
}
