@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

@font-face {
    font-family: 'TF2 Build';
    src: url('../assets/fonts/tf2build.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Pokemon';
    src: url('../assets/fonts/Pokemon Solid.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: url('../assets/images/background.jpg') no-repeat center/cover;
    color: #f0f0f0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
    pointer-events: none;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.image-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    order: -1;
    margin-top: 20px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 280px;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, #d32f2f 0%, #d32f2f 50%, #1f3a93 50%, #1f3a93 100%);
    clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
    z-index: -1;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: #1a1a1a;
    clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
    z-index: -1;
}

#image {
    width: 100%;
    height: 100%;
    clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
    overflow: hidden;
    border: 4px solid #ffd700;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    width: fit-content;
    margin: 0 auto;
}

.title-block {
    position: relative;
    margin-bottom: 40px;
    transform: skewY(-2deg);
}

h1 {
    font-family: 'Pokemon', sans-serif;
    margin: 0;
    font-size: 80px;
    color: #ffd700;
    letter-spacing: 2px;
    font-weight: 900;
    -webkit-text-stroke: 12px #1f3a93;
    -webkit-text-fill-color: #ffd700;
    paint-order: stroke fill;
    position: relative;
    padding: 15px 20px;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

h1::before {
    display: none;
}

.title-img {
    display: none;
}

.subtitle-badge {
    display: block;
    background: #ffd700;
    color: #d32f2f;
    font-family: 'TF2 Build', sans-serif;
    font-size: 18px;
    padding: 8px 16px;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    border: 2px solid #1f3a93;
    text-align: center;
}

.meta-info {
    margin-bottom: 20px;
    padding: 8px 0;
    font-size: 12px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: 'TF2 Build', sans-serif;
    text-align: center;
    border-top: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
}

.meta-info a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

.meta-info a:hover {
    color: #d32f2f;
}

.owner-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 30px auto 0;
    padding-bottom: 8px;
}

.owner-content {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.owner-label {
    font-size: 11px;
    color: #ffd700;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: 'TF2 Build', sans-serif;
}

.owner-name {
    font-size: 13px;
    color: #f0f0f0;
    text-decoration: none;
    font-weight: bold;
    font-family: 'TF2 Build', sans-serif;
    transition: color 0.2s ease;
}

.owner-name:hover {
    color: #d32f2f;
}

.rules-header {
    position: relative;
    margin: 30px 0 20px;
    display: inline-block;
    transform: skewY(2deg);
}

h3 {
    font-family: 'Pokemon', sans-serif;
    font-size: 60px;
    margin: 0;
    color: #ffd700;
    letter-spacing: 1px;
    font-weight: 900;
    -webkit-text-stroke: 12px #1f3a93;
    -webkit-text-fill-color: #ffd700;
    paint-order: stroke fill;
    padding: 12px 20px;
    position: relative;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
}

h3::before {
    display: none;
}

.rules-img {
    display: none;
}

ol {
    list-style: none;
    counter-reset: li;
    padding: 0;
    margin: 15px 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px 16px;
}

li {
    counter-increment: li;
    padding: 14px 16px 14px 56px;
    color: #f0f0f0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
    background: linear-gradient(135deg, #1f1f1f 0%, #252525 100%);
    border: 3px solid #d32f2f;
    border-right-color: #1f3a93;
    border-bottom-color: #1f3a93;
    box-shadow:
        inset 1px 1px 0 rgba(255, 215, 0, 0.2),
        4px 4px 0 rgba(0, 0, 0, 0.5),
        -1px -1px 0 rgba(31, 58, 147, 0.4);
    transition: all 0.15s ease;
    outline: 1px solid rgba(255, 215, 0, 0.3);
    outline-offset: -4px;
    font-family: 'TF2 Build', sans-serif;
    display: flex;
    align-items: center;
}

li:hover {
    background: linear-gradient(135deg, #262626 0%, #2a2a2a 100%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 215, 0, 0.3),
        3px 3px 0 rgba(0, 0, 0, 0.5),
        -1px -1px 0 rgba(31, 58, 147, 0.4);
    transform: translate(-1px, -1px);
}

li:nth-child(even) {
    border-left-color: #1f3a93;
    border-top-color: #1f3a93;
    border-right-color: #d32f2f;
    border-bottom-color: #d32f2f;
}

ol li::before {
    content: counter(li);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d32f2f 0%, #b81f1f 100%);
    color: #ffd700;
    font-weight: bold;
    font-size: 14px;
    font-family: 'TF2 Build', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffd700;
    box-shadow:
        inset -1px -1px 0 rgba(0, 0, 0, 0.3),
        2px 2px 0 rgba(0, 0, 0, 0.5),
        0 0 0 1px #d32f2f;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-section {
        padding-top: 20px;
    }

    h1 {
        font-size: 48px;
    }

    h3 {
        font-size: 26px;
    }

    ol {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    .title-block {
        transform: skewY(0deg);
    }

    h1 {
        font-size: 36px;
        text-shadow: 2px 2px 0 #ffd700;
    }

    h3 {
        font-size: 20px;
    }

    .rules-header::before,
    .rules-header::after {
        display: none;
    }

    .subtitle-badge {
        font-size: 16px;
    }

    ol {
        grid-template-columns: 1fr;
    }

    li {
        transform: rotate(0deg);
    }

    li:hover {
        transform: scale(1.02);
    }
}
