/* Popits Monitor - Original Style with Logo Effects */

* { margin: 0; padding: 0; box-sizing: border-box }

body {
    font-family: -apple-system, system-ui, sans-serif;
    background: #0d1117;
    min-height: 100vh;
    color: #e6edf3;
    padding: 20px 3%;
}

#c { position: relative }

/* ========== Header ========== */
.hd {
    text-align: center;
    padding: 30px 20px 25px;
    margin-bottom: 25px;
}

/* ========== Logo ========== */
.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    animation: logoGlow 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes logoGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.logo-img {
    position: relative;
    z-index: 1;
    height: 140px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-3px, 2px); }
    92% { transform: translate(3px, -2px); }
    93% { transform: translate(-2px, -2px); }
    94% { transform: translate(2px, 2px); }
}

/* ========== Title ========== */
.hd h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 15px;
    background: linear-gradient(45deg, #fff, #a0a0a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #8b949e;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ========== Status Bar (New Style) ========== */
.st {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.st span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(30, 35, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 0.85rem;
    color: #e6edf3;
    transition: all 0.3s ease;
}

.st span:hover {
    background: rgba(40, 45, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========== Bucket ========== */
.bk {
    background: #1e1e24;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.bk:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.bk.ended {
    border-color: #f85149;
}

/* ========== Bucket Header ========== */
.bh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bt {
    font-size: 1.1em;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bt span {
    font-style: normal;
    font-size: 1.5em;
}

/* ========== Timer ========== */
.timer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #2ed573;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ed573;
    animation: pulse 1s infinite;
}

.dot.w {
    background: #d29922;
    box-shadow: 0 0 10px #d29922;
}

.dot.d {
    background: #ff4757;
    box-shadow: 0 0 10px #ff4757;
    animation: pulse 0.3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1 }
    50% { opacity: 0.4 }
}

.cd {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.cd.w { color: #d29922 }
.cd.d { color: #ff4757 }
.cd.end { color: #ff4757 }

/* ========== Grid ========== */
.gr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ========== Item Card ========== */
.it {
    background: #21262d;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    border: 2px solid #444;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    min-width: 0;
    overflow: hidden;
}

.it:hover {
    background: #30363d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.it.wn {
    border-color: #f0b429;
    border-width: 3px;
    background: linear-gradient(135deg, #21262d, #332701);
}

.it.nolink { cursor: default }
.it.nolink:hover { transform: none; box-shadow: none }

/* ========== Image ========== */
.im {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #30363d;
}

/* ========== Item Details ========== */
.sy {
    font-size: 0.8em;
    font-weight: 600;
    color: #58a6ff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.vl {
    font-size: 0.95em;
    font-weight: 700;
    color: #fff;
}

.vl.err {
    color: #f85149;
    font-size: 0.8em;
}

.wn .vl { color: #f0b429 }

.trophy {
    color: #f0b429;
    margin-left: 3px;
}

/* ========== Empty State ========== */
.empty {
    text-align: center;
    padding: 60px;
    color: #8b949e;
    font-size: 1.1em;
}

/* ========== Responsive ========== */
@media (min-width: 1400px) {
    body { padding: 30px 12% }
    .gr { grid-template-columns: repeat(6, 1fr); gap: 15px }
    .bk { padding: 20px }
    .im { height: 240px }
    .logo-img { height: 160px }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    body { padding: 25px 8% }
    .gr { grid-template-columns: repeat(5, 1fr); gap: 14px }
    .im { height: 260px }
    .logo-img { height: 150px }
}

@media (min-width: 992px) and (max-width: 1199px) {
    body { padding: 20px 5% }
    .gr { grid-template-columns: repeat(4, 1fr); gap: 12px }
    .im { height: 280px }
}

@media (min-width: 768px) and (max-width: 991px) {
    body { padding: 20px 3% }
    .gr { grid-template-columns: repeat(3, 1fr); gap: 10px }
    .im { height: 260px }
    .logo-img { height: 110px }
}

@media (max-width: 767px) {
    body { padding: 15px }
    .gr { grid-template-columns: repeat(2, 1fr); gap: 8px }
    .it { padding: 8px }
    .im { height: 220px }
    .sy { font-size: 0.7em }
    .vl { font-size: 0.85em }
    .hd h1 { font-size: 1.3rem; letter-spacing: 0.15em }
    .logo-img { height: 80px }
    .subtitle { font-size: 0.65rem; letter-spacing: 0.1em }
    .bt { font-size: 0.9em }
    .cd { font-size: 1.2em }
    .st { gap: 8px }
    .st span { padding: 8px 14px; font-size: 0.75rem }
}
