/* Retro skin for the Neighbours from Hell launcher: early-2000s web look */
:root {
    --orange: #ff7a00;
    --orange-light: #ff9524;
    --orange-dark: #c84f00;
    --ink: #2a1405;
    --panel: #fff3d6;
    --panel-shadow: #b98b4a;
    --yellow: #ffd21f;
    --link: #0033cc;
    --title-a: #0a246a;
    --title-b: #3a6ea5;
    --title-c: #a6caf0;
    --ui-font: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif;
}

html {
    background-color: var(--orange);
    background-image: repeating-linear-gradient(
        135deg,
        var(--orange) 0 14px,
        var(--orange-light) 14px 28px
    );
}

body {
    background: transparent;
    color: var(--ink);
    font-family: var(--ui-font);
    font-size: 13px;
    line-height: 1.45;
}

a { color: var(--link); }
a:visited { color: #551a8b; }

.logo {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(4px 5px 0 rgba(42, 20, 5, 0.45));
}

/* Raised 3D panel, the classic outset bevel */
.panel {
    background: var(--panel);
    border: 2px solid;
    border-color: #ffffff var(--panel-shadow) var(--panel-shadow) #ffffff;
    box-shadow: 1px 1px 0 var(--ink), 6px 6px 0 rgba(42, 20, 5, 0.35);
}

/* Bevel buttons */
.btn {
    display: inline-block;
    padding: 6px 16px;
    font-family: var(--ui-font);
    font-size: 13px;
    font-weight: bold;
    color: var(--ink);
    text-decoration: none;
    background: linear-gradient(#fffbe9, #ffe08a 55%, #ffc94a);
    border: 2px solid;
    border-color: #fffdf3 #8a5a12 #8a5a12 #fffdf3;
    outline: 1px solid var(--ink);
    cursor: pointer;
}
.btn:visited { color: var(--ink); }
.btn:hover { background: linear-gradient(#ffffff, #ffe9a6 55%, #ffd76b); }
.btn:active {
    border-color: #8a5a12 #fffdf3 #fffdf3 #8a5a12;
    background: linear-gradient(#ffc94a, #ffe08a);
    padding: 7px 15px 5px 17px;
}
.btn:focus-visible,
.check input:focus-visible + .box,
.win-btn:focus-visible {
    outline: 2px dotted var(--ink);
    outline-offset: 3px;
}

/* Custom checkbox: sunken white box with a chunky check */
.check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
}
.check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.check .box {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background: #ffffff;
    border: 2px solid;
    border-color: #7a5a2a #ffffff #ffffff #7a5a2a;
    outline: 1px solid var(--ink);
}
.check:hover .box { background: #fff7d9; }
.check input:checked + .box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border: solid var(--orange-dark);
    border-width: 0 3px 3px 0;
    transform: rotate(40deg);
}

/* Window frame around the game, Windows 2000 style */
.window {
    background: #d4d0c8;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    outline: 1px solid #000;
    box-shadow: 8px 8px 0 rgba(42, 20, 5, 0.4);
    padding: 3px;
}
.titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 3px 3px 6px;
    background: linear-gradient(90deg, var(--title-a), var(--title-b) 60%, var(--title-c));
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
}
.titlebar .title { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-btn {
    width: 18px;
    height: 16px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    background: #d4d0c8;
    color: #000;
    font: bold 11px/1 var(--ui-font);
    text-decoration: none;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    cursor: pointer;
}
.win-btn:visited { color: #000; }
.win-btn:active { border-color: #404040 #ffffff #ffffff #404040; }

/* 88x31 web badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.badge {
    width: 88px;
    height: 31px;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    font: bold 9px/1.1 Verdana, sans-serif;
    text-align: center;
    border: 1px solid #000;
    color: #fff;
}
.badge.b1 { background: linear-gradient(#3a3a3a, #000); color: var(--yellow); }
.badge.b2 { background: linear-gradient(#5a8fd6, #1c3f8a); }
.badge.b3 { background: #fff; color: #000; }
.badge.b3 b { color: #c00000; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
