@font-face {
    font-family: 'Fistalle';
    src: url('Fonts/Fistalle.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IoskeleyMono';
    src: url('Fonts/IoskeleyMono-Light.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
    min-height: 100vh;
    background-color: var(--page-color, transparent);
    background-image: url("Assets/Pages/Granite1.8.jpg");
    background-blend-mode: screen;
    background-size: 500px;
    background-position: var(--bg-offset-x, 0px) var(--bg-offset-y, 0px);
}

@media (max-width: 600px) {
    html {
        font-size: 11px;
    }
}

body {
    background: transparent;
    font-family: 'Fistalle', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    min-height: 100vh;
}

.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);
        letter-spacing: 10px;
    }

    h2 {
        font-size: 1em;
    }

    h3 {
        font-size: 0.9em;
    }

    p, li {
        font-size: 0.82em;
        line-height: 1.5;
    }

    mark {
        padding-left: 10px;
    }

    .scoreboard-section {
        margin: 20px 12px 0 12px;
        padding: 14px;
        width: calc(100% - 24px);
        max-width: calc(100vw - 24px);
    }

    .scoreboard-inner {
        padding: 18px 14px 20px 14px;
    }

    .scoreboard-section h2 {
        font-size: 1em;
    }

    .scoreboard-table th,
    .scoreboard-table td {
        padding: 6px 8px;
        font-size: 0.82em;
    }

    .title-outer {
        min-height: 20vh;
        height: 20vh;
    }
}

body::before {
    content: none;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Remove stacking context so mix-blend-mode can reach the page background */
.page-center {
    z-index: auto;
}

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: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.scoreboard-section {
    width: 430px;
    height: 501px;
    margin: 40px auto 0 auto;
    padding: 20px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.267), rgba(255, 255, 255, 0.253)),
        url('Assets/Pages/GreenGranite.jpg') center / cover no-repeat;
    position: relative;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-bottom: 2px solid #404040;
    border-right: 2px solid #404040;
    flex-shrink: 0;
    overflow: hidden;
    align-self: center;
    box-sizing: border-box;
}

/* Top border — mitered corners */
.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;
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: overlay;
    transform: scaleY(-1);
}

/* Bottom border — mitered corners */
.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;
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: overlay;
}

.scoreboard-inner {
    width: 100%;
    height: 100%;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

.scoreboard-bevel {
    padding: 24px 32px 32px 32px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-bottom: 2px solid #dfdfdf;
    border-right: 2px solid #dfdfdf;
}

/* Right border */
.scoreboard-inner::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    width: 497px;
    height: 20px;
    background: url('Assets/Pages/celticbackggrn2.jpg') repeat-x;
    background-size: auto 40px;
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
    transform-origin: top right;
    transform: rotate(-90deg);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: overlay;
}

/* Left border */
.scoreboard-inner::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 497px;
    height: 20px;
    background: url('Assets/Pages/celticbackggrn2.jpg') repeat-x;
    background-size: auto 40px;
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
    transform-origin: top left;
    transform: rotate(90deg);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: overlay;
}


.scoreboard-section h2 {
    font-size: 1.5em;
    margin-bottom: 2px;
    color: #ff0000;
    font-family: 'Fistalle', sans-serif;
    letter-spacing: 4px;
    mix-blend-mode:soft-light;
    border-top: 2px solid #dfdfdf;
    border-left: 2px solid #dfdfdf;
    border-bottom: 2px solid #404040;
    border-right: 2px solid #404040;
    text-shadow:
        0.8px 0.5px 0px #ffffff,
        -0.8px 0 0px #000000,
        0.8px 0 0px #ffffff,
        0.8px -0.9px 0px #000000;
}

.scoreboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.scoreboard-table th,
.scoreboard-table td {
    padding: 6px 0px;
    text-align: left;
    color: #797700;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-family: 'Fistalle', sans-serif;
    letter-spacing: 0.5px;
    mix-blend-mode:difference;
    text-shadow:
        0.8px 0.5px 0px #ffffff,
        -0.8px 0 0px #000000,
        0.8px 0 0px #000000,
        0.8px -0.9px 0px #000000;
}
.scoreboard-table th {
    font-weight: 600;
    background: rgba(255, 255, 255, 0);
    letter-spacing: 0.5px;
}
.scoreboard-table td {
    color: #fffeb5;
    mix-blend-mode:hard-light;

    
}
.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;
}

/* ── Mobile: log section & image gallery ── */
@media (max-width: 600px) {
    .log-section {
        padding: 14px 16px 28px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .log-date h2 {
        font-size: 1.2em;
    }

    .log-entry {
        font-size: 1em;
    }

    .log-body {
        padding-left: 14px;
        font-size: 0.9em;
        line-height: 1.6;
    }

    .log-body li::before {
        left: -14px;
        width: 14px;
    }

    .container {
        flex-direction: column;
        padding: 0 10px;
    }

    .box {
        max-width: 100%;
        margin: 10px 0;
    }

    #logKillsBtn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .kill-info {
        margin-left: 8px;
        font-size: 12px;
    }
}

#saveKillsBtn {
    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-top: 12px;
    mix-blend-mode: overlay;
    display: block;
    width: 100%;
}
#saveKillsBtn:hover {
    background: rgba(200, 60, 60, 0.95);
    border-color: rgba(255,150,150,0.6);
}
#saveKillsBtn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ── Location thumbnail buttons (index.html) ── */
.imgWrap img {
    display: block;
}
.imgWrap {
    position: relative;
    display: block;
    mix-blend-mode: difference;
    transform: translateY(-2px);
    cursor: pointer;
}
.imgWrap::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-top:    8px inset rgba(255, 255, 255, 0.55);
    border-left:   8px inset rgba(255, 255, 255, 0.3);
    border-bottom: 8px inset rgba(0, 0, 0, 0.65);
    border-right:  8px inset rgba(0, 0, 0, 0.35);
}
.imgWrap::after {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    z-index: 1;
    border-top:    2px inset rgba(0, 0, 0, 0.5);
    border-left:   2px inset rgba(0, 0, 0, 0.5);
    border-bottom: 2px inset rgba(255, 255, 255, 0.35);
    border-right:  2px inset rgba(255, 255, 255, 0.35);
}
.imgWrap:hover {
    filter: sepia(1);
}
.imgWrap:active {
    transform: translateY(3px);
}
.imgWrap:active::before {
    border-top:    6px inset rgba(0, 0, 0, 0.7);
    border-left:   6px inset rgba(0, 0, 0, 0.35);
    border-bottom: 6px inset rgba(255, 255, 255, 0.35);
    border-right:  6px inset rgba(255, 255, 255, 0.5);
}
.imgWrap:active::after {
    inset: 6px;
    border-top:    2px inset rgba(255, 255, 255, 0.35);
    border-left:   2px inset rgba(255, 255, 255, 0.35);
    border-bottom: 2px inset rgba(0, 0, 0, 0.5);
    border-right:  2px inset rgba(0, 0, 0, 0.5);
}

/* ── Blend mode test blocks ── */
#blend-test-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 700px;
    margin: 24px auto 0;
    z-index: auto;
}

.blend-test-block {
    position: relative;
    width: calc(25% - 9px);
    aspect-ratio: 1 / 1;
    border-top: 4px solid #ffffff;
    border-left: 4px solid #ffffff;
    border-bottom: 4px solid #404040;
    border-right: 4px solid #404040;
    overflow: hidden;
    padding: 8px;
}

.blend-test-block .blend-bg {
    position: absolute;
    inset: 0;
    background: var(--page-color, #888);
}

.blend-test-block .blend-bevel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-bottom: 2px solid #dfdfdf;
    border-right: 2px solid #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blend-test-block .blend-label {
    color: #fff;
    font-size: 0.75em;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
    text-align: center;
}
