@font-face {
    font-family: 'Fistalle';
    src: url('Fonts/Fistalle.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'BerkeleyMono';
    src: url('Fonts/BerkeleyMonoTrial-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

body {
    background-image: url("Assets/Pages/Granite1.8.jpg");
    background-size: 500px;
    background-position: var(--bg-offset-x, 0px) var(--bg-offset-y, 0px);
    font-family: 'Fistalle', sans-serif;
    overflow-x: hidden;
}

.title-outer {
    min-height: 30vh;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

h1 {
    color: #ffffff;
    margin: 1pc auto;
    font-size: clamp(2em, 7vw, 4.5em);
    font-family: Fistalle, sans-serif;
    font-weight: 500;
    text-align: center;
    display: block;
    width: 100%;
    letter-spacing: 30px;

}

@media (max-width: 600px) {
    h1 {
        font-size: clamp(1.2em, 10vw, 2.5em);
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--page-color, transparent);
    mix-blend-mode: soft-light;
}

body > * {
    position: relative;
    z-index: 1;
}

mark {
    background: var(--page-color);
    color: #ffffff;
    display: inline-block;
    padding: 5px 0 0 30px;
}

/* Center wrapper for scoreboard and content (shared) */
.page-center {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.scoreboard-section {
    width: 100%;
    max-width: 700px;
    margin: 40px auto 0 auto;
    padding: 20px;
    background: #00000062;
    position: relative;
    border: none;
    box-shadow:
        inset 4px 4px 8px rgb(255, 255, 255),
        inset -4px -4px 8px rgb(255, 255, 255);
    flex-shrink: 0;
    overflow: hidden;
    align-self: center;
}

/* Top border (original orientation) */
.scoreboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: url('Assets/Pages/celticbackggrn2.jpg') repeat-x;
    background-size: auto 40px;
    z-index: 2;
    pointer-events: none;
}

/* Bottom border (rotated 180°) */
.scoreboard-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: url('Assets/Pages/celticbackggrn2.jpg') repeat-x;
    background-size: auto 40px;
    transform: rotate(180deg);
    z-index: 2;
    pointer-events: none;
}

.scoreboard-inner {
    width: 100%;
    min-height: 100%;
    padding: 24px 32px 32px 32px;
    position: relative;
}

/* Right border (rotated 90° CW) */
.scoreboard-inner::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    width: 5000px;
    height: 20px;
    background: url('Assets/Pages/celticbackggrn2.jpg') repeat-x;
    background-size: auto 40px;
    transform-origin: top right;
    transform: rotate(-90deg);
    z-index: 2;
    pointer-events: none;
}

/* Left border (rotated 270° / 90° CCW) */
.scoreboard-inner::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 5000px;
    height: 20px;
    background: url('Assets/Pages/celticbackggrn2.jpg') repeat-x;
    background-size: auto 40px;
    transform-origin: top left;
    transform: rotate(90deg);
    z-index: 2;
    pointer-events: none;
}

.scoreboard-section h2 {
    font-size: 1.5em;
    margin-bottom: 12px;
    color: #00ff00;
    text-shadow: 0 0 8px rgb(255, 234, 0);
}

.scoreboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.scoreboard-table th,
.scoreboard-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.scoreboard-table th {
    color: #00ccff;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
}
.scoreboard-table td {
    color: #ff00ff;
}
.scoreboard-table tr:hover td {
    background: rgba(255,255,255,0.05);
}

#logKillsBtn {
    padding: 10px 24px;
    font-size: 15px;
    background: rgba(180, 40, 40, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255,100,100,0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-right: 8px;
}
#logKillsBtn:hover {
    background: rgba(200, 60, 60, 0.95);
    border-color: rgba(255,150,150,0.6);
}
#logKillsBtn:disabled {
    opacity: 0.5;
    cursor: default;
}
.kill-info {
    display: inline-block;
    margin-left: 12px;
    color: #ff4400;
    font-size: 14px;
}
