@font-face {
    font-family: 'GoBattleCompass';
    src: url('files/compass.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'GoBattleCompass', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('files/gb_mountains_night.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: color 0.25s ease, background-color 0.25s ease;
}

body.dark {
    color: #e9f3ff;
}
body.dark .container {
    background-color: rgba(8, 10, 12, 0.80);
    color: #e9f3ff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
body.dark h1 {
    color: #bfe6ff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
body.dark .last-updated { color: #cbd7df; }
body.dark #status-message { color: #b6f0b6; }
body.dark #error-message { color: #ffb6b6; }
body.dark #drops-list li {
    background-color: rgba(255,255,255,0.03);
    color: #e9f3ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
body.dark #drops-list li.new-drop {
    background-color: rgba(255, 218, 106, 0.95);
    color: #222;
    border: 2px solid rgba(255,153,0,0.95);
}

body.light {
    color: #222;
}
body.light .container {
    background-color: rgba(255, 255, 255, 0.94);
    color: #222;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
body.light h1 {
    color: #0056b3; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
body.light .last-updated { color: #555; }
body.light #status-message { color: #1b7f1b; }
body.light #error-message { color: #b00020; }
body.light #drops-list li {
    background-color: #f1f3f5;
    color: #222;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
body.light #drops-list li.new-drop {
    background-color: #ffda6a;
    color: #222;
    border: 2px solid #ff9900;
}

.container {
    width: 92%;
    max-width: 960px;
    margin: 30px;
    padding: 28px;
    border-radius: 14px;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 2.4rem;
    line-height: 1.05;
}

.last-updated {
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.controls {
    margin-bottom: 18px;
}
.refresh-button, .theme-toggle {
    display:inline-block;
    padding: 10px 18px;
    font-size: 1rem;
    margin: 6px 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
    font-family: 'GoBattleCompass', Arial, sans-serif;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.refresh-button { background:#28a745; color:white; }
.refresh-button:hover { transform: translateY(-3px); background:#218838; }
.theme-toggle { background:#0086ff; color:white; }
.theme-toggle:hover { transform: translateY(-3px); background:#006ecc; }

#status-message { font-size: 0.96rem; margin-bottom: 10px; display: none; }
#loading-message { font-size: 1rem; margin-top: 8px; display: none; }
#error-message { font-size: 1rem; margin-top: 8px; display: none; }

#drops-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 880px) { #drops-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { #drops-list { grid-template-columns: 1fr; } }

#drops-list li {
    padding: 10px 12px;
    border-radius: 10px;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ultra-icon { width:32px; height:auto; flex-shrink:0; }
.ultra-name-group { display:flex; align-items:center; gap:10px; }
.ultra-name-group strong { font-weight: 600; font-size: 1rem; }
.ultra-count { font-size: 0.92rem; position: absolute; right: 12px; bottom: 10px; opacity: 0.95; }

.cookie-banner-overlay {
    position: fixed; inset: 0; display: none;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6); z-index: 1100;
}
.cookie-banner {
    width: 92%;
    max-width: 460px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 36px rgba(0,0,0,0.45);
    text-align: center;
}
body.dark .cookie-banner { background: rgba(12,12,12,0.92); color: #e9f3ff; box-shadow: 0 8px 40px rgba(0,0,0,0.7); }
.cookie-banner p { margin: 14px 0 16px 0; color: #444; }
body.dark .cookie-banner p { color: #d5e8ff; }

.cookie-banner button {
    padding: 10px 14px; margin: 6px; border-radius: 8px; border: none; cursor: pointer;
}
.cookie-banner .accept { background:#007bff; color:#fff; }
.cookie-banner .decline { background:#f0f0f0; color:#222; }
body.dark .cookie-banner .decline { background: #2a2a2a; color: #ddd; }

.visually-hidden { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
