@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #050506;
    --panel: #0d0d10;
    --panel-2: #141418;
    --text: #f8f8fa;
    --muted: #9898a2;
    --red: #ff1f3d;
    --red-2: #a7001d;
    --line: rgba(255, 255, 255, .09);
    --glow: 0 0 28px rgba(255, 31, 61, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -5%, rgba(255, 31, 61, .13), transparent 32rem),
        var(--bg);
    font-family: Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 6, .84);
    backdrop-filter: blur(18px);
}
.topbar-inner {
    width: min(1180px, calc(100% - 40px));
    height: 78px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: inline-flex;
    align-items: center;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1.4px;
    text-transform: uppercase;
}
.brand span {
    display: grid;
    width: 37px;
    height: 37px;
    margin-right: 5px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff3550, #a6001c);
    box-shadow: 0 0 22px rgba(255, 31, 61, .35);
    font-size: 25px;
}
.top-actions { display: flex; align-items: center; gap: 22px; }
.official { color: #bdbdc4; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.official i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: #27e583;
    box-shadow: 0 0 12px #27e583;
}
.entry-button, .primary-button {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid rgba(255, 96, 118, .6);
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #f72545, #a4001b);
    box-shadow: 0 8px 30px rgba(222, 0, 35, .25), inset 0 1px rgba(255,255,255,.2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    transition: .2s ease;
}
.entry-button:hover, .primary-button:hover { transform: translateY(-2px); filter: brightness(1.12); }

.hero-wrap, .winners-section { width: min(1180px, calc(100% - 40px)); margin: auto; }
.hero-wrap { padding-top: 32px; }
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid rgba(255, 65, 92, .35);
    border-radius: 24px;
    background: #0a0a0c;
    box-shadow: var(--glow);
}
.hero-banner.has-image { min-height: auto; aspect-ratio: 3 / 1; }
.hero-banner.has-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 7vw, 90px);
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 50%, rgba(255, 23, 60, .35), transparent 18rem),
        linear-gradient(110deg, #070709, #15070b 50%, #08080a);
}
.grid-glow {
    position: absolute;
    inset: 0;
    opacity: .15;
    background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 45px 45px;
    mask-image: linear-gradient(90deg, transparent, black, transparent);
}
.hero-six {
    z-index: 1;
    color: #ff263f;
    font-size: clamp(130px, 20vw, 260px);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -24px;
    text-shadow: 0 0 55px rgba(255, 0, 42, .5);
    transform: skew(-6deg);
}
.hero-copy { z-index: 1; }
.hero-copy > span, .section-heading > span {
    color: #ff4d64;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
}
.hero-copy h1 { margin: 9px 0; font-size: clamp(34px, 5vw, 66px); line-height: .88; letter-spacing: -4px; }
.hero-copy h1 strong { display: block; color: var(--red); }
.hero-copy p { margin: 18px 0 0; color: #aaaab3; }
.hero-seal {
    z-index: 1;
    display: grid;
    width: 118px;
    height: 118px;
    place-content: center;
    border: 1px solid rgba(255, 56, 83, .7);
    border-radius: 50%;
    box-shadow: inset 0 0 25px rgba(255, 31, 61, .18), 0 0 25px rgba(255, 31, 61, .2);
    text-align: center;
    transform: rotate(7deg);
}
.hero-seal em { color: var(--red); font-size: 38px; font-style: normal; font-weight: 900; line-height: 1; }
.hero-seal small { font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.hero-seal b { font-size: 13px; }

.winners-section { padding: 92px 0 110px; }
.section-heading { position: relative; margin-bottom: 38px; text-align: center; }
.section-heading h2 { margin: 7px 0 10px; font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -5px; }
.section-heading h2 span { color: var(--red); text-shadow: 0 0 24px rgba(255,31,61,.3); }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.heading-line { width: 44px; height: 2px; margin: 0 auto 18px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.wins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.win-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(160deg, #141418, #09090b);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
    transition: .25s ease;
}
.win-card:hover { transform: translateY(-5px); border-color: rgba(255, 42, 70, .6); box-shadow: var(--glow); }
.win-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #151519; }
.win-media img { width: 100%; height: 100%; object-fit: cover; transition: .35s ease; }
.win-card:hover .win-media img { transform: scale(1.04); }
.win-placeholder { display: grid; height: 100%; place-items: center; color: #2c2c32; font-size: 130px; font-weight: 900; }
.win-shade { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.82)); }
.win-badge, .win-multiplier {
    position: absolute;
    top: 15px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}
.win-badge { left: 15px; background: var(--red); }
.win-multiplier { right: 15px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.win-content { padding: 21px; }
.win-content h3 { margin: 0 0 8px; font-size: 17px; }
.win-amount { color: #ff3852; font-size: 30px; font-weight: 900; letter-spacing: -1.5px; }
.win-content p { min-height: 38px; margin: 10px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.watch-link { display: flex; padding-top: 14px; justify-content: space-between; border-top: 1px solid var(--line); color: #d4d4da; font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }
.watch-link i { color: var(--red); font-style: normal; }
.empty-wins {
    display: flex;
    min-height: 220px;
    padding: 45px;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border: 1px dashed rgba(255, 65, 92, .32);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,31,61,.05), rgba(255,255,255,.015));
}
.empty-orbit { display: grid; width: 92px; height: 92px; flex: 0 0 auto; place-items: center; border: 1px solid #5d1724; border-radius: 50%; color: var(--red); font-size: 48px; font-weight: 900; box-shadow: inset 0 0 25px rgba(255,31,61,.12); }
.empty-wins span { color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: 2px; }
.empty-wins h3 { margin: 7px 0; font-size: 26px; }
.empty-wins p { margin: 0; color: var(--muted); font-size: 13px; }
.footer {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    min-height: 100px;
    margin: auto;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: #777780;
    font-size: 11px;
}
.footer .brand { color: white; transform: scale(.78); transform-origin: left; }
.floating-entry {
    position: fixed;
    z-index: 60;
    right: 22px;
    bottom: 22px;
    display: flex;
    padding: 8px 14px 8px 8px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 83, 105, .6);
    border-radius: 16px;
    background: rgba(119, 0, 20, .92);
    box-shadow: 0 12px 40px rgba(255,0,40,.32);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}
.floating-six { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #fb2946; font-size: 24px; }
.floating-entry small { display: block; color: #ffbdc5; font-size: 7px; letter-spacing: 1.5px; }
.floating-entry b { margin-left: 5px; }

/* Admin */
.admin-body { min-height: 100vh; background: #08080a; }
.login-wrap { display: grid; min-height: 100vh; padding: 24px; place-items: center; }
.login-card { width: min(440px, 100%); padding: 40px; border: 1px solid rgba(255,49,77,.25); border-radius: 24px; background: #101014; box-shadow: 0 30px 80px rgba(0,0,0,.55), var(--glow); }
.login-card .admin-kicker { display: block; margin-top: 35px; }
.login-card h1 { margin: 8px 0; font-size: 34px; letter-spacing: -1.5px; }
.login-card > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-card form { display: grid; gap: 17px; margin: 28px 0 18px; }
.login-card .primary-button { width: 100%; border: 0; }
.back-link { color: #92929b; font-size: 12px; }
.admin-kicker { color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: 2px; }
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    width: 245px;
    padding: 32px 26px;
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: #0c0c0f;
}
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 55px; }
.admin-sidebar nav a { padding: 12px; border-radius: 9px; color: #9999a3; font-size: 12px; font-weight: 700; }
.admin-sidebar nav a:hover { color: white; background: rgba(255,255,255,.05); }
.side-view { margin-top: auto; padding: 13px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: 11px; font-weight: 800; }
.admin-main { width: calc(100% - 245px); max-width: 1180px; min-height: 100vh; margin-left: 245px; padding: 45px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.admin-header h1 { margin: 4px 0 0; font-size: 36px; letter-spacing: -2px; }
.ghost-button, .danger-button {
    display: inline-flex;
    min-height: 38px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #c5c5cc;
    background: #151519;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .7px;
}
.danger-button { border-color: rgba(255,31,61,.3); color: #ff536b; background: rgba(255,31,61,.08); }
.notice { margin-bottom: 20px; padding: 14px 17px; border: 1px solid rgba(45,218,127,.25); border-radius: 10px; color: #70e8a9; background: rgba(45,218,127,.08); font-size: 12px; }
.notice.error { border-color: rgba(255,31,61,.3); color: #ff7b8e; background: rgba(255,31,61,.08); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 22px; }
.admin-stats article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #101014; }
.admin-stats span { display: block; margin-bottom: 8px; color: #777781; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.admin-stats strong { font-size: 25px; }
.admin-panel { margin-bottom: 22px; padding: 27px; scroll-margin-top: 20px; border: 1px solid var(--line); border-radius: 17px; background: #101014; }
.panel-title { display: flex; margin-bottom: 25px; align-items: center; justify-content: space-between; }
.panel-title > div { display: flex; align-items: center; gap: 11px; }
.panel-title span { color: var(--red); font-size: 10px; font-weight: 900; }
.panel-title h2 { margin: 0; font-size: 21px; }
.panel-title p { margin: 0; color: #777781; font-size: 11px; }
.banner-form { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.file-drop {
    display: grid;
    min-height: 150px;
    place-content: center;
    border: 1px dashed rgba(255,59,86,.45);
    border-radius: 13px;
    background: rgba(255,31,61,.025);
    text-align: center;
    cursor: pointer;
}
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop span { color: var(--red); font-size: 34px; }
.file-drop strong { margin: 5px; font-size: 13px; }
.file-drop small { color: #777781; }
.banner-fields { display: flex; flex-direction: column; justify-content: center; gap: 15px; }
.banner-preview { width: 100%; margin: 22px 0 12px; border-radius: 10px; aspect-ratio: 3 / 1; object-fit: cover; }
.win-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; color: #aaaab3; font-size: 11px; font-weight: 700; }
input, textarea {
    width: 100%;
    padding: 12px 13px;
    outline: none;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: white;
    background: #09090b;
    resize: vertical;
}
input:focus, textarea:focus { border-color: rgba(255,50,78,.65); box-shadow: 0 0 0 3px rgba(255,31,61,.08); }
input[type=file] { padding: 9px; color: #888892; }
.form-wide { grid-column: 1 / -1; }
.publish-toggle { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.publish-toggle input { display: none; }
.publish-toggle span { position: relative; width: 35px; height: 19px; border-radius: 15px; background: #29292e; }
.publish-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #85858e; transition: .2s; }
.publish-toggle input:checked + span { background: #8c0018; }
.publish-toggle input:checked + span::after { left: 19px; background: #ff3a56; }
.form-actions { display: flex; gap: 10px; }
.form-actions button { border: 0; }
.admin-win-list { display: grid; gap: 10px; }
.admin-win-list article { display: grid; grid-template-columns: 76px 1fr auto; gap: 15px; padding: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #0b0b0e; }
.admin-thumb { display: grid; width: 76px; height: 58px; overflow: hidden; place-items: center; border-radius: 8px; color: #34343a; background: #18181c; font-size: 36px; font-weight: 900; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-win-list small { color: #2cdb7f; font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.admin-win-list h3 { margin: 4px 0; font-size: 13px; }
.admin-win-list strong { color: #ff3e58; font-size: 14px; }
.row-actions { display: flex; gap: 7px; }
.row-actions form { display: flex; }
.admin-empty { padding: 30px; border: 1px dashed var(--line); border-radius: 12px; color: #777781; text-align: center; font-size: 12px; }

@media (max-width: 900px) {
    .wins-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-seal { display: none; }
    .admin-sidebar { position: static; width: 100%; padding: 18px 22px; flex-direction: row; align-items: center; justify-content: space-between; }
    .admin-sidebar nav { display: none; }
    .side-view { margin: 0; }
    .admin-main { width: 100%; margin: 0; padding: 28px 22px; }
}

@media (max-width: 620px) {
    .topbar-inner { width: calc(100% - 24px); height: 66px; }
    .brand { font-size: 20px; }
    .brand span { width: 32px; height: 32px; font-size: 21px; }
    .official { display: none; }
    .entry-button { min-height: 39px; padding: 0 12px; font-size: 10px; }
    .hero-wrap, .winners-section, .footer { width: calc(100% - 24px); }
    .hero-wrap { padding-top: 16px; }
    .hero-banner { min-height: 245px; border-radius: 16px; }
    .hero-banner.has-image { min-height: 0; aspect-ratio: 2.2 / 1; }
    .hero-placeholder { justify-content: flex-start; gap: 22px; padding: 25px; }
    .hero-six { margin-left: -15px; font-size: 125px; letter-spacing: -15px; }
    .hero-copy h1 { font-size: 35px; letter-spacing: -2.6px; }
    .hero-copy > span { font-size: 7px; letter-spacing: 1.4px; }
    .hero-copy p { font-size: 11px; }
    .winners-section { padding: 64px 0 90px; }
    .section-heading h2 { font-size: 47px; letter-spacing: -3.5px; }
    .wins-grid { grid-template-columns: 1fr; gap: 14px; }
    .empty-wins { padding: 28px 20px; flex-direction: column; text-align: center; }
    .empty-wins h3 { font-size: 21px; }
    .footer { padding: 28px 0 90px; flex-direction: column; gap: 12px; text-align: center; }
    .floating-entry { right: 12px; bottom: 12px; }
    .admin-sidebar .brand { flex: 0 0 auto; }
    .admin-sidebar .side-view { padding: 10px; }
    .admin-main { padding: 24px 14px; }
    .admin-header h1 { font-size: 28px; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-stats article:last-child { grid-column: 1 / -1; }
    .admin-panel { padding: 19px 14px; }
    .panel-title { align-items: flex-start; }
    .panel-title p { display: none; }
    .banner-form, .win-form { grid-template-columns: 1fr; }
    .form-wide { grid-column: auto; }
    .admin-win-list article { grid-template-columns: 62px 1fr; }
    .admin-thumb { width: 62px; height: 52px; }
    .row-actions { grid-column: 1 / -1; }
    .login-card { padding: 29px 23px; }
}
