:root {
    --gold: #ffb72b;
    --gold-soft: #ffd889;
    --ink: #fff2ca;
    --shadow: rgba(0, 0, 0, 0.72);
    --side-column: 438px;
    --center-column: 412px;
    --grid-gap: 16px;
    --layout-width: calc((var(--side-column) * 2) + var(--center-column) + (var(--grid-gap) * 2));
    --news-lift: -83px;
    --display-font: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
    --gold-shadow: 0 2px 1px #351300, 0 0 8px rgba(255, 154, 25, 0.62);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #050404;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: var(--display-font);
    background:
        radial-gradient(circle at 50% 23%, rgba(255, 160, 24, 0.18), transparent 28rem),
        url("../img/backs-optimized.jpg") top center / 1920px auto no-repeat,
        #050404;
    overflow-x: hidden;
}

.fire-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1720px);
    margin: 0 auto;
    padding: 0 0 30px;
}

@media (max-width: 720px) {
    .fire-particles {
        opacity: 0.9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fire-particles {
        display: none;
    }
}

.social-rail {
    position: fixed;
    z-index: 5;
    top: 92px;
    left: 0;
    width: 35px;
    opacity: 0.82;
}

.hero {
    position: relative;
    min-height: 684px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 30px;
}

.brand {
    position: absolute;
    top: -19px;
    left: calc(50% - 19px);
    z-index: 10;
    display: block;
    line-height: 0;
    transform: translateX(-50%);
    transition: filter 160ms ease;
}

.brand:hover {
    filter: brightness(1.12) drop-shadow(0 0 10px rgba(255, 174, 35, 0.55));
}

.brand img {
    width: 248px;
    height: 248px;
    object-fit: contain;
}

.online-badge,
.active-player-badge {
    position: absolute;
    z-index: 11;
    top: clamp(45px, calc(20vh - 125px), 85px);
    right: clamp(335px, calc(1vw + 340px), 348px);
    margin-top: -7px;
    margin-right: -4px;
    width: clamp(196px, 11vw, 258px);
    height: auto;
    object-fit: contain;
    transform: translateX(0);
    filter: drop-shadow(0 0 12px rgba(255, 172, 28, 0.72));
    pointer-events: none;
}

.active-player-flame {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.active-player-flame--ios {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .active-player-flame--video {
        display: none;
    }

    .active-player-flame--ios {
        display: block;
    }
}

.active-player-text {
    position: absolute;
    top: 46%;
    left: 53%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 86%;
    color: #ffd75a;
    background: linear-gradient(180deg, #fff6a8 0%, #ffe45a 42%, #ffb01e 58%, #d86d00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: Bahnschrift, "Arial Narrow", Arial, sans-serif;
    font-size: clamp(14px, 1.5vw, 23px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0.035em;
    text-align: center;
    -webkit-text-stroke: 0.75px #743700;
    -webkit-text-fill-color: transparent;
    paint-order: stroke fill;
    text-shadow:
        0 -1px 0 rgba(255, 237, 132, 0.92),
        0 1px 0 rgba(190, 83, 0, 0.92),
        0 2px 1px rgba(96, 37, 0, 0.72),
        0 0 5px rgba(255, 199, 45, 0.9),
        0 0 10px rgba(255, 111, 0, 0.58);
    transform: translate(-50%, 0);
}

.active-player-text span {
    display: block;
    white-space: nowrap;
}

.active-player-text span:nth-child(2) {
    font-size: 0.95em;
}

.active-player-text span:nth-child(3) {
    margin-top: 0.1em;
    font-size: 0.9em;
}

.hero-copy {
    width: min(790px, 92vw);
    margin-top: 210px;
    text-align: center;
    text-shadow: 0 3px 4px #120700, 0 0 12px rgba(255, 115, 0, 0.65);
}

.hero-copy h1 {
    margin: 0 0 6px;
    transform: translateX(24px);
    color: #ffb23b;
    font-family: var(--display-font);
    font-size: 47px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 3px 1px #4b1900, 0 0 10px rgba(255, 153, 25, 0.72);
}

.hero-copy p {
    max-width: 390px;
    margin: 0 auto 16px;
    color: #f7d59d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-shadow: 0 2px 2px #100500;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(8px);
}

.image-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 232px;
    filter: drop-shadow(0 8px 9px var(--shadow));
    transition: transform 160ms ease, filter 160ms ease;
}

.image-button img {
    width: 100%;
    height: auto;
}

.image-button span {
    position: absolute;
    right: 0;
    left: 0;
    color: #e8d0a0;
    font-family: var(--display-font);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 1px 1px #3a1400, 0 0 4px rgba(255, 214, 128, 0.38);
    text-transform: uppercase;
    pointer-events: none;
}

.image-button:hover,
.quick-links a:hover,
.site-footer nav a:hover {
    transform: translateY(-2px);
    filter: brightness(1.13) drop-shadow(0 0 10px rgba(255, 174, 35, 0.48));
}

.ticker {
    position: relative;
    width: min(var(--layout-width), 100%);
    height: 62px;
    margin: -30px auto 10px;
    overflow: hidden;
    color: #ffdd96;
    font-size: 17.5px;
    font-weight: 700;
    line-height: 62px;
    white-space: nowrap;
    text-shadow: 0 1px 2px #000;
    background: url("../img/arama%20buton.png") center / cover no-repeat;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.ticker-mask {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.25) 8%, #000 18%, #000 82%, rgba(0, 0, 0, 0.25) 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.25) 8%, #000 18%, #000 82%, rgba(0, 0, 0, 0.25) 92%, transparent 100%);
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 28s linear infinite;
}

.quick-links {
    display: grid;
    grid-template-columns: var(--side-column) var(--center-column) var(--side-column);
    align-items: center;
    width: min(var(--layout-width), 100%);
    margin: 0 auto 10px;
}

.quick-links-left,
.quick-links-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-links-left {
    justify-content: flex-end;
}

.quick-links-right {
    justify-content: flex-start;
    transform: translateX(27px);
}

.quick-links-center {
    width: var(--center-column);
}

.quick-links a {
    width: calc((var(--side-column) - 12px) / 2);
    transition: transform 160ms ease, filter 160ms ease;
}

.content-grid {
    display: grid;
    grid-template-columns: var(--side-column) var(--center-column) var(--side-column);
    gap: var(--grid-gap);
    align-items: start;
    width: min(var(--layout-width), 100%);
    margin: 0 auto;
}

.rankings-page-grid {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rankings-home-layout {
    align-items: start;
    grid-template-columns: var(--side-column) var(--center-column) var(--side-column);
}

.rankings-empty-center {
    min-height: 1px;
}

.rankings-page-grid > .ornate-panel {
    min-height: 598px;
    height: 598px;
}

.left-stack,
.right-stack {
    display: grid;
    gap: 9px;
}

.ornate-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(176, 111, 20, 0.58);
    background:
        linear-gradient(180deg, rgba(172, 99, 0, 0.16), rgba(16, 6, 0, 0.28)),
        url("../img/item-arkaplan-uzun-dikdortgen.png") center / 100% 100% no-repeat;
    box-shadow: 0 12px 24px var(--shadow);
}

.ornate-panel::after {
    content: none;
    position: absolute;
    inset: 70px 14px 47px;
    pointer-events: none;
    background: linear-gradient(rgba(255, 173, 26, 0.11) 1px, transparent 1px) 0 0 / 100% 48px;
    opacity: 0.58;
}

.ornate-panel h2,
.news-title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff1b7;
    font-family: var(--display-font);
    font-size: 30px;
    font-weight: 800;
    line-height: 62px;
    text-align: center;
    text-shadow: var(--gold-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ranking-panel {
    min-height: 480px;
}

.ranking-panel h2,
.guild-panel h2,
.event-panel h2 {
    overflow: hidden;
    border-radius: 12px 12px 22px 22px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(30, 10, 0, 0.72) 0%, rgba(30, 10, 0, 0.34) 44%, transparent 68%),
        linear-gradient(180deg, rgba(202, 115, 0, 0.94) 0%, rgba(159, 83, 0, 0.9) 45%, rgba(43, 15, 0, 0.9) 100%);
    box-shadow:
        inset 0 -9px 15px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 212, 86, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.35);
}

.guild-panel {
    min-height: 416px;
}

@media (min-width: 721px) {
    .left-stack .guild-panel {
        min-height: 416px;
    }

    .left-stack .guild-panel th,
    .left-stack .guild-panel td {
        height: 25.7px;
    }
}

.event-panel {
    min-height: 598px;
}

table {
    position: relative;
    z-index: 1;
    flex: 1;
    width: calc(100% - 23px);
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
    color: #fff4cc;
    font-size: 12.4px;
    text-shadow: 0 1px 1px #000;
}

th,
td {
    height: 32px;
    padding: 0 2px;
    overflow: hidden;
    border-left: 1px solid rgba(255, 179, 37, 0.16);
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

th {
    color: #e8c97a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(255, 190, 54, 0.24);
}

td:first-child,
th:first-child {
    width: 16px;
    border-left: 0;
    text-align: center;
}

tbody tr {
    border-top: 1px solid rgba(255, 181, 36, 0.12);
}

/* Karakter sıralaması sütun genişlikleri */
.ranking-panel th:nth-child(1),
.ranking-panel td:nth-child(1) { width: 16px; }
.ranking-panel th:nth-child(2),
.ranking-panel td:nth-child(2) { width: 22%; }
.ranking-panel th:nth-child(3),
.ranking-panel td:nth-child(3) { width: 12%; }
.ranking-panel th:nth-child(4),
.ranking-panel td:nth-child(4) { width: 18%; }
.ranking-panel th:nth-child(5),
.ranking-panel td:nth-child(5) { width: 18%; }
.ranking-panel th:nth-child(6),
.ranking-panel td:nth-child(6) { width: 18%; }
.ranking-panel th:nth-child(7),
.ranking-panel td:nth-child(7) { width: 14%; }

.ranking-panel th,
.ranking-panel td {
    padding-inline: 1px;
    text-align: center;
}

.ranking-panel th {
    font-size: 9.2px;
    font-weight: 700;
    text-overflow: clip;
}

.ranking-panel th:nth-child(1),
.ranking-panel td:nth-child(1) { width: 6%; }
.ranking-panel th:nth-child(2),
.ranking-panel td:nth-child(2) { width: 24%; }
.ranking-panel th:nth-child(3),
.ranking-panel td:nth-child(3) { width: 13%; }
.ranking-panel th:nth-child(4),
.ranking-panel td:nth-child(4) { width: 14%; }
.ranking-panel th:nth-child(5),
.ranking-panel td:nth-child(5) { width: 16%; }
.ranking-panel th:nth-child(6),
.ranking-panel td:nth-child(6) { width: 14%; }
.ranking-panel th:nth-child(7),
.ranking-panel td:nth-child(7) { width: 13%; }

.content-grid:not(.rankings-page-grid) .ranking-panel th:nth-child(1),
.content-grid:not(.rankings-page-grid) .ranking-panel td:nth-child(1) { width: 8%; }
.content-grid:not(.rankings-page-grid) .ranking-panel th:nth-child(2),
.content-grid:not(.rankings-page-grid) .ranking-panel td:nth-child(2) { width: 42%; }
.content-grid:not(.rankings-page-grid) .ranking-panel th:nth-child(3),
.content-grid:not(.rankings-page-grid) .ranking-panel td:nth-child(3) { width: 24%; }
.content-grid:not(.rankings-page-grid) .ranking-panel th:nth-child(4),
.content-grid:not(.rankings-page-grid) .ranking-panel td:nth-child(4) { width: 26%; }

.content-grid:not(.rankings-page-grid) .ranking-panel th:nth-child(n+5),
.content-grid:not(.rankings-page-grid) .ranking-panel td:nth-child(n+5) {
    display: none;
}

.more-link {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: auto;
    padding: 13px 0;
    color: #fff1b7;
    font-family: var(--display-font);
    font-size: 16.5px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 1px 1px #120600, 0 0 5px rgba(255, 185, 43, 0.42);
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 184, 45, 0.14);
    background: linear-gradient(180deg, rgba(15, 6, 0, 0), rgba(5, 2, 0, 0.38));
    transition: color 160ms ease, background 160ms ease, filter 160ms ease, text-shadow 160ms ease;
}

.more-link:hover {
    color: #fff8d6;
    background: linear-gradient(180deg, rgba(255, 184, 45, 0.1), rgba(86, 35, 0, 0.54));
    filter: brightness(1.18) drop-shadow(0 0 9px rgba(255, 174, 35, 0.48));
    text-shadow:
        0 1px 1px #120600,
        0 0 7px rgba(255, 214, 113, 0.78),
        0 0 13px rgba(255, 145, 22, 0.58);
}

.news-column {
    z-index: 2;
    margin-top: var(--news-lift);
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(rgba(36, 16, 0, 0.3), rgba(36, 16, 0, 0.5)),
        url("../img/duyurular%20back.png") center top / 100% 100%;
    box-shadow: 0 12px 24px var(--shadow);
}

.news-top-frame {
    position: relative;
    height: 114px;
    overflow: hidden;
    border: 1px solid rgba(255, 203, 76, 0.72);
    border-radius: 12px;
    box-shadow:
        inset 0 0 0 1px rgba(80, 38, 0, 0.55),
        0 0 10px rgba(255, 183, 43, 0.22);
}

.news-top-frame::before,
.news-top-frame::after {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 56px;
    height: 74px;
    content: "";
    pointer-events: none;
    background: url("../img/üst%20duyurular%20oklar.png") center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(255, 178, 35, 0.42));
}

.news-top-frame::before {
    left: 3px;
    transform: translateY(-50%);
}

.news-top-frame::after {
    right: 3px;
    transform: translateY(-50%) scaleX(-1);
}

.news-top {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rankings-news-stack {
    display: grid;
    gap: 9px;
    overflow: visible;
    background: none;
    box-shadow: none;
}

.blank-news-panel {
    min-height: 865px;
}

.blank-news-panel table {
    width: calc(100% - 24px);
    margin-top: 12px;
}

.blank-news-panel td {
    height: 76px;
    width: 20%;
}

.news-title {
    line-height: 34px;
    background: linear-gradient(90deg, #1b0900, #7b3100 38%, #190900);
    border-block: 1px solid rgba(255, 201, 82, 0.35);
}

.news-title-image {
    display: block;
    width: 100%;
    height: 66px;
    object-fit: cover;
    border-block: 1px solid rgba(255, 201, 82, 0.35);
    border-radius: 0 0 10px 10px;
}

.news-list {
    display: grid;
    gap: 10px;
    padding: 10px 11px 34px;
}

.news-card {
    display: block;
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(255, 188, 47, 0.28);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 160ms ease, filter 160ms ease;
}

.news-card img {
    width: 100%;
    height: 117px;
    object-fit: cover;
}

.news-card:hover {
    transform: translateX(2px);
    filter: brightness(1.12);
}

.event-panel ul {
    position: relative;
    z-index: 1;
    flex: 1;
    margin: 0;
    padding: 11px 15px 0;
    list-style: none;
}

.event-panel li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    margin-bottom: 2px;
    padding: 3px 7px 3px 4px;
    color: #fff3c7;
    text-shadow: 0 1px 2px #000;
    border-bottom: 1px solid rgba(255, 184, 45, 0.14);
}

.event-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 191, 52, 0.2);
    border-radius: 4px;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.event-panel span {
    color: #fff3c7;
    font-size: 13.6px;
    font-family: var(--display-font);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-panel small {
    color: #c8a060;
    font-size: 11px;
}

.follow-card {
    overflow: hidden;
    border-radius: 12px;
    background: rgba(21, 11, 5, 0.86);
    box-shadow: 0 12px 24px var(--shadow);
}

.follow-card a {
    display: block;
    line-height: 0;
    transition: filter 160ms ease;
}

.follow-card a:hover {
    filter: brightness(1.12);
}

.follow-card img {
    width: 100%;
    height: 298px;
    object-fit: cover;
    object-position: center top;
}

.site-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    width: min(1480px, 100%);
    min-height: 196px;
    margin: 6px auto 0;
    transform: translateX(-4px);
}

.site-footer-left,
.site-footer-right {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
    gap: 56px;
}

.site-footer-left {
    justify-content: flex-end;
    padding-right: 16px;
}

.site-footer-right {
    justify-content: flex-start;
    padding-left: 16px;
}

.site-footer nav a {
    color: var(--gold);
    font-family: var(--display-font);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 1px #120600, 0 0 7px rgba(255, 171, 33, 0.48);
    transition: transform 160ms ease, filter 160ms ease;
}

.footer-seal {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    transition: filter 160ms ease;
}

.footer-seal:hover {
    filter: brightness(1.12) drop-shadow(0 0 10px rgba(255, 174, 35, 0.55));
}

.footer-seal img {
    width: 164px;
    height: 164px;
    object-fit: contain;
}

@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

@media (min-width: 721px) {
    .ticker,
    .quick-links,
    .content-grid {
        transform: translateX(10px);
    }
}

@media (max-width: 1320px) and (min-width: 961px) {
    :root {
        --side-column: 410px;
        --center-column: 386px;
        --grid-gap: 15px;
    }
}

@media (max-width: 960px) {
    :root {
        --side-column: 210px;
        --center-column: 200px;
        --news-lift: -41px;
    }

    .page-shell {
        padding-inline: 12px;
    }

    .hero {
        min-height: 640px;
    }

    .content-grid,
    .quick-links {
        width: min(var(--layout-width), 100%);
    }
}

@media (max-width: 720px), ((hover: none) and (pointer: coarse) and (max-width: 1180px)) {
    :root {
        --side-column: 100%;
        --center-column: 100%;
        --news-lift: 0px;
    }

    body {
        background-image:
            radial-gradient(circle at 50% 23%, rgba(255, 160, 24, 0.18), transparent 28rem),
            url("../img/backs-mobile.jpg");
        background-size: auto 760px;
        background-position: top center;
    }

    .hero {
        min-height: 570px;
        justify-content: flex-end;
        padding-top: 0;
        padding-bottom: 44px;
    }

    .brand {
        top: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .brand img {
        width: 120px;
        height: 120px;
    }

    .online-badge,
    .active-player-badge {
        top: clamp(0px, 7vh, 18px);
        right: clamp(10px, 0.8vw, 32px);
        width: clamp(96px, 16.5vw, 128px);
        height: auto;
        object-fit: contain;
        transform: translateX(17%);
    }

    .content-grid {
        grid-template-columns: 1fr;
        width: min(460px, 100%);
    }

    .rankings-empty-center {
        display: none;
    }

    .rankings-page-grid > .ornate-panel {
        height: auto;
    }

    .ornate-panel::after {
        inset: 47px 8px 36px;
        background: linear-gradient(rgba(255, 173, 26, 0.11) 1px, transparent 1px) 0 0 / 100% 32px;
    }

    .ornate-panel h2,
    .news-title {
        font-size: 18px;
        line-height: 39px;
    }

    table {
        width: calc(100% - 12px);
        font-size: 8px;
    }

    th,
    td {
        height: 20px;
    }

    th {
        font-size: 6.8px;
    }

    .ranking-panel th {
        font-size: 6px;
    }

    .more-link {
        padding: 8px 0;
        font-size: 11px;
    }

    .news-top-frame {
        height: 68px;
    }

    .news-top-frame::before,
    .news-top-frame::after {
        width: 34px;
        height: 44px;
    }

    .news-title-image {
        height: 39px;
    }

    .news-list {
        gap: 5px;
        padding: 5px 6px 9px;
    }

    .news-card img {
        height: auto;
    }

    .event-panel ul {
        padding: 5px 9px 0;
    }

    .event-panel li {
        gap: 8px;
        min-height: 34px;
        padding: 3px 7px 3px 4px;
    }

    .event-thumb {
        width: 30px;
        height: 30px;
    }

    .event-panel span {
        font-size: 8.8px;
    }

    .event-panel small {
        font-size: 7.5px;
    }

    .left-stack,
    .right-stack {
        display: contents;
    }

    .news-column {
        order: 1;
        margin-top: 0;
    }

    .rankings-news-stack {
        gap: 7px;
    }

    .blank-news-panel {
        min-height: 410px;
    }

    .blank-news-panel table {
        margin-top: 8px;
    }

    .blank-news-panel td {
        height: 34px;
    }

    .event-panel {
        order: 2;
    }

    .ranking-panel {
        order: 3;
    }

    .guild-panel {
        order: 4;
    }

    .follow-card {
        order: 5;
    }

    .quick-links {
        grid-template-columns: 1fr;
        width: min(390px, 100%);
        gap: 7px;
    }

    .ticker {
        height: 60px;
        margin: -44px auto 10px;
        font-size: 17px;
        line-height: 60px;
    }

    .quick-links-left,
    .quick-links-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        gap: 7px;
        width: 100%;
    }

    .quick-links-right {
        transform: none;
    }

    .quick-links-center {
        display: none;
    }

    .quick-links a {
        width: 100%;
    }

    .ranking-panel {
        min-height: 300px;
    }

    .guild-panel {
        min-height: 230px;
    }

    .event-panel {
        min-height: 370px;
    }

    .follow-card img {
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .site-footer {
        flex-direction: column;
        gap: 12px;
        transform: none;
    }

    .site-footer-left,
    .site-footer-right {
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .online-badge,
    .active-player-badge {
        top: clamp(0px, 7vh, 18px);
        right: clamp(10px, 0.8vw, 32px);
        width: clamp(96px, 16.5vw, 128px);
        height: auto;
        object-fit: contain;
        transform: translateX(17%);
    }
}

@media (max-width: 480px) {
    body {
        background-size: auto 690px;
    }

    .hero {
        min-height: 550px;
        padding-bottom: 36px;
    }

    .ticker {
        margin: -36px auto 10px;
    }

    .brand img {
        width: 104px;
        height: 104px;
    }

    .online-badge,
    .active-player-badge {
        top: clamp(0px, 7.5vh, 18px);
        right: clamp(12px, 0.4vw, 24px);
        width: clamp(92px, 25vw, 108px);
        height: auto;
        object-fit: contain;
        transform: translateX(14%);
    }

    .hero-copy h1 {
        font-size: 25px;
    }

    .hero-actions {
        gap: 8px;
    }

    .image-button {
        width: min(142px, 44vw);
    }

    .image-button span {
        font-size: 13px;
        white-space: nowrap;
        letter-spacing: 0.4px;
    }

    table {
        font-size: 9px;
    }

    th,
    td {
        padding-inline: 3px;
    }

    .site-footer nav a {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .online-badge,
    .active-player-badge {
        top: clamp(0px, 6.8vh, 14px);
        right: clamp(10px, 0vw, 22px);
        width: clamp(96px, 25vw, 104px);
        height: auto;
        object-fit: contain;
        transform: translateX(16%);
    }
}

@media (max-width: 390px) {
    .online-badge,
    .active-player-badge {
        top: clamp(0px, 6.2vh, 8px);
        right: clamp(8px, 0vw, 20px);
        width: clamp(86px, 24vw, 94px);
        height: auto;
        object-fit: contain;
        transform: translateX(17%);
    }
}

@media (max-width: 375px) {
    .online-badge,
    .active-player-badge {
        right: clamp(0px, 0vw, 12px);
    }
}

@media (max-width: 375px) and (min-height: 780px) and (max-height: 820px) {
    .active-player-text {
        top: 46%;
        left: 53%;
        font-size: 13px;
        -webkit-text-stroke-width: 0.55px;
    }
}

@media (min-width: 376px) and (max-width: 413px) {
    .online-badge,
    .active-player-badge {
        margin-top: -17px;
        margin-right: -8px;
    }

    .active-player-text {
        top: 42%;
        left: 53%;
        font-size: 10.5px;
        -webkit-text-stroke-width: 0.45px;
    }
}

@media (min-width: 414px) and (max-width: 430px) {
    .online-badge,
    .active-player-badge {
        margin-top: -39px;
        margin-right: -14px;
    }

    .active-player-text {
        top: 46%;
        left: 53%;
        font-size: 14.5px;
        -webkit-text-stroke-width: 0.65px;
    }
}

@media (min-width: 414px) and (max-width: 430px) {
    .online-badge,
    .active-player-badge {
        right: clamp(28px, 0vw, 40px);
    }
}

@media (max-width: 375px) and (max-height: 805px) {
    .online-badge,
    .active-player-badge {
        right: clamp(-6px, 0vw, 6px);
    }
}

@media (min-width: 431px) and (max-width: 460px) {
    .online-badge,
    .active-player-badge {
        right: clamp(36px, 0vw, 48px);
    }
}

@media (min-width: 820px) and (max-width: 850px) {
    .online-badge,
    .active-player-badge {
        top: 0px;
        right: 0px;
    }
}

@media (min-width: 1000px) and (max-width: 1050px) {
    .online-badge,
    .active-player-badge {
        right: 10px;
    }
}
