/* Dead Pool - retro 2000s obituary-themed prediction market */
/* Consistent with throbbing.click main site aesthetic */

* {
    box-sizing: border-box;
}

html {
    background: #0a0a0a;
    min-height: 100%;
}

body {
    margin: 0;
    color: #e0d8c8;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 14px;
    background:
        repeating-linear-gradient(90deg, rgba(139, 0, 0, 0.08) 0 1px, transparent 1px 90px),
        linear-gradient(#1a0000, #0a0a0a 170px, #111 171px, #0a0a0a);
}

a {
    color: #ff6b6b;
    font-weight: bold;
    text-decoration: underline;
}

a:hover {
    color: #fff600;
    text-decoration: none;
}

/* Page shell - same dimensions as main site */
.page-shell {
    max-width: 1180px;
    min-width: 760px;
    margin: 0 auto;
    padding: 10px;
}

/* Masthead - obituary headline style */
.masthead {
    border: 3px solid #8b0000;
    background: linear-gradient(#111, #1a0000 45%, #2a0000 46%, #000);
    box-shadow: 0 0 0 2px #330000 inset, 0 5px 15px rgba(139, 0, 0, 0.4);
}

.topline {
    display: flex;
    justify-content: space-around;
    padding: 4px 8px;
    color: #e0d8c8;
    font-size: 11px;
    background: #1a0000;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
}

.brand-row > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

h1 {
    margin: 0;
    color: #ff1a00;
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(52px, 8vw, 90px);
    line-height: .85;
    letter-spacing: 4px;
    text-shadow: 3px 3px 0 #000, 5px 5px 0 #8b0000;
    text-transform: uppercase;
    font-weight: 900;
}

h1 span {
    color: #cc0000;
    font-size: 0.5em;
    display: block;
    font-family: 'Courier New', monospace;
    letter-spacing: 6px;
    text-shadow: 2px 2px 0 #000;
}

.domain-for-sale {
    margin: 8px 0 0;
    color: #cc6666;
    font-size: 16px;
    font-weight: bold;
    font-style: italic;
}

/* Back link to main site */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #e0d8c8;
    border: 1px solid #8b0000;
    background: linear-gradient(#1a0000, #000);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-link:hover {
    background: linear-gradient(#2a0000, #1a0000);
    color: #fff600;
    border-color: #cc0000;
}

/* New death notice ticker */
.death-ticker {
    width: 100%;
    background: #000;
    border-bottom: 3px solid #8b0000;
    border-top: 1px solid #330000;
    overflow: hidden;
    position: relative;
}

.death-ticker .ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.death-ticker .ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: death-ticker 35s linear infinite;
    padding-left: 100%;
}

.death-ticker .ticker-content span {
    display: inline-block;
    padding: 8px 24px;
    color: #cc6666;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.death-ticker .ticker-content span:nth-child(odd) {
    color: #ff6b6b;
}

.death-ticker .ticker-content span:nth-child(even) {
    color: #ff9999;
}

@keyframes death-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Three-column layout */
.layout {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr) 190px;
    gap: 10px;
    margin-top: 10px;
    align-items: start;
}

.left-rail,
.right-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.box,
.category,
.hero-promo {
    border: 1px solid #330000;
    background: #111;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.box {
    margin-bottom: 0;
    padding: 10px;
}

.box h2,
.category-title h2,
.hero-promo h2 {
    margin: 0 0 8px;
    color: #cc0000;
    font-size: 18px;
    line-height: 1.2;
}

.box p {
    margin: 6px 0;
    color: #e0d8c8;
    line-height: 1.4;
}

/* Red accent box */
.red-box {
    border-color: #8b0000;
    background: linear-gradient(#1a0000, #0a0000);
    text-align: center;
}

.red-box h2 {
    color: #ff6b6b;
    font-family: 'Times New Roman', serif;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Prediction question - coffin style */
.prediction-box {
    border: 3px ridge #8b0000;
    background: linear-gradient(135deg, #0a0a0a, #1a0000 50%, #0a0a0a);
    text-align: center;
    padding: 25px 20px;
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.8);
    position: relative;
}

.prediction-box::before {
    content: "☠";
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    color: #8b0000;
    opacity: 0.3;
}

.prediction-question {
    margin: 0 0 20px;
    color: #e0d8c8;
    font-family: 'Times New Roman', Times, serif;
    font-size: 32px;
    line-height: 1.3;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 1px;
}

.prediction-question em {
    color: #ff6b6b;
    font-style: italic;
    font-size: 36px;
    display: block;
    margin-top: 6px;
}

/* Bet buttons */
.bet-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.bet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 15px 30px;
    color: #fff;
    border: 3px outset #ff6b6b;
    background: linear-gradient(#8b0000, #4a0000);
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
    box-shadow: 0 4px 0 #2a0000, 0 0 15px rgba(139, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 4px;
}

.bet-btn:hover {
    background: linear-gradient(#cc0000, #8b0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2a0000, 0 0 25px rgba(204, 0, 0, 0.6);
    border-color: #ff9999;
}

.bet-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #2a0000;
}

.bet-btn.yes {
    border-color: #ff6b6b;
    background: linear-gradient(#8b0000, #330000);
}

.bet-btn.no {
    border-color: #666;
    background: linear-gradient(#333, #111);
}

.bet-btn.no:hover {
    background: linear-gradient(#555, #222);
    border-color: #999;
}

/* Bet counter - visitor counter style */
.bet-counter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: #000;
    border: 2px solid #8b0000;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    margin: 10px 0;
}

.bet-counter .counter-label {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #cc6666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.bet-counter .counter-digits {
    display: flex;
    gap: 3px;
}

.bet-counter .digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 30px;
    background: #000;
    color: #ff6b6b;
    border: 1px solid #8b0000;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 18px;
    box-shadow: inset 0 0 6px rgba(139, 0, 0, 0.4);
}

.bet-counter .digit.spacer {
    border: none;
    box-shadow: none;
    width: 10px;
    color: #8b0000;
}

/* Monero badge */
.monero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(#f16822, #bf5000);
    border: 1px solid #ff8c42;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.monero-badge::before {
    content: "●";
    font-size: 14px;
    color: #fff;
    animation: monero-pulse 1.5s ease-in-out infinite;
}

@keyframes monero-pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 5px #fff; }
    50% { opacity: 0.5; text-shadow: 0 0 2px #fff; }
}

/* Clarence Darrow quote - obituary box */
.obituary-box {
    border: 3px ridge #8b0000;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

.obituary-box .death-date {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #8b0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.obituary-box blockquote {
    margin: 10px 0;
    padding: 10px 20px;
    border-left: 3px solid #8b0000;
    color: #e0d8c8;
    font-family: Georgia, serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    text-align: left;
}

.obituary-box .attribution {
    display: block;
    margin-top: 8px;
    color: #cc6666;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* Easter egg story toggle */
.story-toggle {
    display: block;
    margin: 10px 0;
    padding: 12px;
    border: 2px solid #8b0000;
    background: linear-gradient(#1a0000, #000);
    color: #cc6666;
    cursor: pointer;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s;
}

.story-toggle:hover {
    background: linear-gradient(#2a0000, #1a0000);
    border-color: #cc0000;
    color: #ff6b6b;
}

.story-toggle .arrow {
    display: inline-block;
    transition: transform 0.3s;
}

.story-toggle .arrow.open {
    transform: rotate(90deg);
}

/* Easter egg story content */
.story-content {
    display: none;
    margin: 10px 0;
    padding: 20px;
    border: 2px solid #330000;
    background: linear-gradient(#0d0d0d, #1a1a1a);
    font-family: Georgia, serif;
    line-height: 1.6;
    color: #e0d8c8;
}

.story-content.visible {
    display: block;
    animation: story-fade 0.5s ease-out;
}

.story-content .story-headline {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: #ff6b6b;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 #000;
}

.story-content p {
    margin: 8px 0;
}

.story-content .story-kicker {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #8b0000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.story-content .story-moral {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #330000;
    font-style: italic;
    color: #cc6666;
}

@keyframes story-fade {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Right rail specialty boxes */
.odds-box {
    text-align: center;
    padding: 15px 10px;
    border: 3px double #8b0000;
    background: linear-gradient(#0a0000, #1a0000);
}

.odds-box h2 {
    color: #ff6b6b;
    font-family: 'Times New Roman', serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.odds-box .odds-value {
    font-family: 'Courier New', monospace;
    font-size: 36px;
    color: #ff6b6b;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000, 4px 4px 0 #330000;
    margin: 10px 0;
}

.odds-box .odds-label {
    font-size: 11px;
    color: #8b0000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.info-box {
    border: 2px solid #330000;
    background: linear-gradient(#111, #0a0a0a);
    padding: 10px;
    font-size: 12px;
}

.info-box h3 {
    margin: 0 0 8px;
    color: #cc0000;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.info-box p {
    margin: 4px 0;
    line-height: 1.4;
}

/* Stats */
.stat {
    color: #cc6666;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.stat strong {
    color: #ff6b6b;
}

/* Categories */
.categories {
    background: #0d0d0d;
    border-color: #330000;
}

.categories a {
    display: block;
    margin: 5px 0;
    padding: 6px;
    border: 1px solid #330000;
    background: #111;
    color: #cc6666;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.categories a:hover {
    background: #1a0000;
    border-color: #8b0000;
    color: #fff600;
}

/* News obituary section */
.news-clippings {
    border-color: #330000;
    background: #0d0d0d;
}

.news-clippings h2 {
    color: #cc0000;
    font-family: 'Times New Roman', serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-clippings .clipping-item {
    padding: 8px 0;
    border-bottom: 1px dotted #330000;
    display: block;
    color: #cc6666;
    font-size: 12px;
    text-decoration: none;
    line-height: 1.3;
}

.news-clippings .clipping-item:last-child {
    border-bottom: none;
}

.news-clippings .clipping-item:hover {
    color: #ff6b6b;
}

/* Footer */
footer {
    margin-top: 10px;
    padding: 10px;
    color: #e0d8c8;
    border: 1px solid #330000;
    background: #0a0000;
    text-align: center;
    font-size: 12px;
}

footer p {
    margin: 3px 0;
    font-family: 'Courier New', monospace;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.footer-badges .badge {
    padding: 2px 8px;
    background: #1a0000;
    color: #cc6666;
    font-size: 9px;
    border: 1px solid #8b0000;
    border-radius: 2px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

/* Trust box */
.trust-box {
    text-align: center;
    background: #0d0d0d;
    border-color: #330000;
}

.stars {
    color: #8b0000;
    font-size: 22px;
    letter-spacing: 2px;
}

/* Bet placed toast animation */
.bet-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: #000;
    border: 2px solid #8b0000;
    color: #ff6b6b;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    z-index: 100;
    animation: toast-in 0.3s ease-out, toast-out 0.3s 2.5s ease-in forwards;
    text-align: center;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
    white-space: nowrap;
}

@keyframes toast-in {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
    0% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Pulse animation for bet counter */
@keyframes digit-flip {
    0% { transform: rotateX(0deg); opacity: 1; }
    50% { transform: rotateX(90deg); opacity: 0.3; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

/* Pulsing skull for effect */
.skull-pulse {
    animation: skull-pulse 2s ease-in-out infinite;
    font-size: 32px;
    display: inline-block;
}

@keyframes skull-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #330000;
    border: 1px solid #1a0000;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b0000;
}

/* Responsive */
@media (max-width: 820px) {
    .page-shell {
        min-width: 0;
    }

    .brand-row {
        display: block;
    }

    .brand-row > div {
        margin-bottom: 12px;
        align-items: center;
        text-align: center;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .left-rail,
    .right-rail {
        order: 2;
    }

    .left-rail,
    .content,
    .right-rail {
        order: auto;
    }

    .bet-buttons {
        flex-direction: column;
        align-items: center;
    }

    .bet-btn {
        width: 100%;
        max-width: 250px;
    }

    .prediction-question {
        font-size: 24px;
    }

    .prediction-question em {
        font-size: 28px;
    }

    .death-ticker {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-shell {
        padding: 5px;
    }

    .brand-row {
        padding: 12px 16px;
    }

    h1 {
        font-size: clamp(36px, 10vw, 56px);
    }

    .back-link {
        font-size: 11px;
        padding: 6px 10px;
    }

    .prediction-question {
        font-size: 20px;
    }

    .prediction-question em {
        font-size: 24px;
    }

    .box {
        padding: 8px;
    }

    .footer-badges {
        gap: 6px;
    }
}
