/* Event Section Styles */
.event-section {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.event-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin-bottom: 15px;
    padding: 15px 24px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    gap: 12px;
    min-height: 120px;
}

.event-header-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.event-pool-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 100px;
    width: 100%;
    padding: 16px 0;
}

.event-pool-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-pool-card {
    flex: 0 0 400px;
    width: 400px;
    max-width: 400px;
    min-width: 400px;
    box-sizing: border-box;
}

.event-pool-row .pool-display,
.event-pool-row .treasury-display,
.event-pool-row .wild-display,
.event-pool-row .lucky7-display {
    flex: 0 0 400px !important;
    width: 400px !important;
    max-width: 400px !important;
    min-width: 400px !important;
    box-sizing: border-box;
}

.event-pool-card .treasury-amount,
.event-pool-card .wild-amount,
.event-pool-card .lucky7-amount {
    font-size: 32px !important;
    letter-spacing: 1px;
}

.event-pool-card .pool-icon {
    font-size: 1.25rem;
}

.event-pool-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lucky7-pool-content {
    align-items: center;
}

.event-helper-lucky7 {
    background: linear-gradient(135deg, rgba(124, 252, 0, 0.15), rgba(124, 252, 0, 0.08));
    border-color: rgba(124, 252, 0, 0.5);
    color: #7CFC00;
    text-shadow: 0 0 6px rgba(124, 252, 0, 0.4);
    width: auto;
    max-width: 100%;
    display: inline-block;
    text-align: center;
}

.event-helper-treasury {
    margin: 0;
    width: auto;
    max-width: 100%;
    display: inline-block;
    text-align: center;
}

.lucky7-pool-content .event-helper-lucky7 {
    margin: 0;
}

#lucky7HelperText,
.lucky7-pool-content .event-helper-lucky7 {
    font-size: 17px;
    padding: 10px 18px;
    line-height: 1.45;
}

.numbers-treasury.daily-numbers-section {
    align-items: center;
    justify-content: space-evenly;
    gap: 12px;
}

.numbers-treasury .daily-numbers-label {
    margin: 0;
    text-align: center;
    width: auto;
}

.event-pool-content .wild-numbers-label,
.event-pool-content .daily-numbers-label {
    margin: 0;
}

.event-pool-content .next-draw-countdown {
    margin-top: 0;
}

.event-pool-content .utc-note {
    margin-top: 0;
}

.numbers-treasury .daily-numbers-container {
    gap: 12px;
    justify-content: center;
    margin: 0;
}

.numbers-treasury .daily-number-item,
.daily-number-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-width: 0;
}

/* Event header numbers — layout only; box sizing from theme / base .daily-number rules */
.event-pool-content .daily-numbers-container {
    gap: 50px;
}

.event-pool-content .daily-number-item {
    flex: 0 0 auto;
    min-width: 0;
}

.wild-numbers-section {
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    gap: 12px;
}

.wild-numbers-label {
    color: #ff5252;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: auto;
}

.wild-numbers-helper {
    margin: 0 0 8px;
    width: auto;
    max-width: 100%;
    display: inline-block;
}

.event-helper-text.event-helper-wild,
.wild-numbers-helper.event-helper-wild {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.18), rgba(220, 53, 69, 0.1)) !important;
    border: 2px solid rgba(255, 82, 82, 0.55) !important;
    color: #ff5252 !important;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 6px rgba(255, 82, 82, 0.45) !important;
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
}

.numbers-wild.daily-numbers-container {
    gap: 12px;
    justify-content: center;
    margin: 0;
    width: 100%;
}

/* WILD — red colors only; size/spacing from .event-pool-content rules above */
.numbers-wild .daily-number-payout-container {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12), rgba(0, 0, 0, 0.15)) !important;
    border: 2px solid rgba(220, 53, 69, 0.4) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.numbers-wild .daily-number-payout-container:hover {
    border-color: rgba(255, 82, 82, 0.65) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.35);
}

.numbers-wild .daily-number-payout {
    color: #ff5252 !important;
    text-shadow: 0 0 4px rgba(255, 82, 82, 0.3);
}

.numbers-wild .daily-number {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(0, 0, 0, 0.2)) !important;
    border: 2px solid rgba(220, 53, 69, 0.55) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.25);
}

.numbers-wild .daily-number .number {
    color: #ff5252 !important;
    text-shadow: 0 0 5px rgba(255, 82, 82, 0.35);
}

.numbers-wild .wild-draw-time {
    color: #ff5252 !important;
    opacity: 0.85;
    font-weight: bold;
}

.wild-numbers-empty {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 0.85rem;
    width: 100%;
}

.pool-clickable {
    cursor: pointer;
    transition: all 0.25s ease;
}

.pool-click-hint {
    margin-top: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.wild-currency { color: #ff5252; }
.lucky7-currency { color: #7CFC00; }

/* Pool winners modal */
.pool-winners-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pool-winners-content {
    background: #2d2d2d;
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.pool-winners-content.pool-modal-treasury { border: 2px solid rgba(255, 215, 0, 0.6); }
.pool-winners-content.pool-modal-wild { border: 2px solid rgba(220, 53, 69, 0.6); }
.pool-winners-content.pool-modal-lucky7 { border: 2px solid rgba(124, 252, 0, 0.6); }
.pool-winners-content.pool-modal-hof { border: 2px solid rgba(212, 175, 55, 0.6); }

.pool-modal-hof .pool-winners-header h3 { color: #e8c547; margin: 0; }

.hof-modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: 70vh;
}

.hof-modal-body .hof-row-inner {
    padding: 14px 16px 12px;
    gap: 10px;
}

.hof-modal-body .hof-event-badge {
    min-width: 58px;
}

.pool-winners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pool-modal-treasury .pool-winners-header h3 { color: #FFD700; margin: 0; }
.pool-modal-wild .pool-winners-header h3 { color: #ff5252; margin: 0; }
.pool-modal-lucky7 .pool-winners-header h3 { color: #7CFC00; margin: 0; }

.pool-winners-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.pool-winners-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.pool-winners-table-wrap { overflow-x: auto; }

.pool-winners-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pool-winners-table th,
.pool-winners-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.pool-winners-table th {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.pool-winners-empty,
.pool-winners-loading {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.event-header-pools {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

.event-header-pools .treasury-display,
.event-header-pools .lucky7-display,
.event-header-pools .wild-display {
    flex: 1 1 220px;
    max-width: 400px;
    min-width: 200px;
}

.pool-display {
    flex: 1 1 260px;
    max-width: 420px;
    min-width: 220px;
}

.pool-amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pool-icon {
    font-size: 1.5rem;
    margin-left: 10px;
}

.pool-icon-treasury {
    color: #FFD700;
}

.pool-icon-lucky7 {
    color: #7CFC00;
}

.lucky7-display {
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(124, 252, 0, 0.12), rgba(0, 0, 0, 0.25));
    border: 2px solid rgba(124, 252, 0, 0.45);
    box-shadow: 0 0 12px rgba(124, 252, 0, 0.15);
}

.lucky7-label {
    font-size: 1rem;
    font-weight: bold;
    color: #7CFC00;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.lucky7-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #7CFC00;
    text-shadow: 0 0 8px rgba(124, 252, 0, 0.5);
}

.lucky7-hint {
    margin-top: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
}

.wild-display {
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(0, 0, 0, 0.25));
    border: 2px solid rgba(220, 53, 69, 0.55);
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.2);
    transition: all 0.25s ease;
}

.wild-display:hover,
.lucky7-display:hover {
    transform: translateY(-2px);
}

.wild-label {
    font-size: 1rem;
    font-weight: bold;
    color: #ff5252;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.wild-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #ff5252;
    text-shadow: 0 0 8px rgba(255, 82, 82, 0.45);
}

.wild-hint {
    margin-top: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.pool-icon-wild {
    color: #ff5252;
}

.wild-add {
    color: #ff5252;
    margin-left: 4px;
}

.wild-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wild-modal-content {
    background: #2d2d2d;
    border: 2px solid rgba(220, 53, 69, 0.6);
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    padding: 24px;
    color: #fff;
    max-height: 90vh;
    overflow-y: auto;
}

.wild-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wild-modal-header h3 {
    margin: 0;
    color: #ff5252;
}

.wild-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.wild-modal-desc, .wild-modal-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

.wild-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.wild-number-card {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.wild-number-tier {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.wild-number-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff5252;
}

.wild-number-expires {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

.event-header-dailies {
    width: 100%;
    display: flex;
    justify-content: center;
}

.event-helper-text {
    margin: 0;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.event-helper-text.event-helper-lucky7,
.lucky7-pool-content .event-helper-text {
    background: linear-gradient(135deg, rgba(124, 252, 0, 0.15), rgba(124, 252, 0, 0.08)) !important;
    border-color: rgba(124, 252, 0, 0.5) !important;
    color: #7CFC00 !important;
    text-shadow: 0 0 6px rgba(124, 252, 0, 0.4) !important;
}

/* Winner ticker - thin line below daily numbers */
.winner-ticker-wrap {
    width: 100%;
    overflow: hidden;
    padding: 6px 12px;
    margin-top: 4px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.25);
}

.winner-ticker-track {
    width: 100%;
    overflow: hidden;
}

.winner-ticker-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 24px;
}

.winner-ticker-item {
    display: inline-block;
    font-size: 13px;
    padding: 0 1em;
}

.winner-ticker-item.ticker-treasury {
    color: #FFD700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.winner-ticker-item.ticker-wild {
    color: #ff5252;
    text-shadow: 0 0 6px rgba(255, 82, 82, 0.45);
}

.winner-ticker-item.ticker-lucky7 {
    color: #7CFC00;
    text-shadow: 0 0 6px rgba(124, 252, 0, 0.45);
}

.winner-ticker-sep {
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0.5em;
}

/* Unified buttons row — below fixed header, single line evenly spaced */
.unified-buttons-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
    margin: 0 auto 20px;
    max-width: 100%;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.unified-buttons-row .unified-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    font-size: 0.9rem;
    text-align: center;
}

.treasury-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.treasury-display:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
}

.treasury-label {
    color: #FFD700;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.event-section .treasury-amount {
    font-size: 52px !important; /* +10% and enforce across themes */
    font-weight: bold;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    text-align: center;
}

.treasury-currency {
    color: #FFD700;
    font-size: 20px;
    margin-left: 5px;
    font-weight: bold;
}

/* Daily Numbers Styles */
.daily-numbers-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    min-width: 0;
    flex: 1;
    gap: 0;
}

.daily-numbers-label {
    color: #FFD700;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: auto;
}

.daily-numbers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0;
    width: 100%;
}

.daily-number {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.45);
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.2);
    min-width: 100px;
    margin: 0;
}

.daily-number .number {
    font-size: 1.75rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 0;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.35);
    letter-spacing: 0.08rem;
}

.numbers-treasury .draw-time {
    font-size: 0.75rem;
    color: #FFD700;
    font-weight: bold;
    opacity: 0.85;
    margin-top: 0.35rem;
}

.next-draw-countdown {
    color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Daily Number Payout Container - Gold styling with hover effects */
.daily-number-payout-container {
    display: inline-block;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 6px;
}

.daily-number-payout-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
}

.daily-number-payout {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.next-draw-countdown {
    text-align: center;
    color: #4CAF50;
    font-size: 14px;
    font-weight: bold;
    margin-top: 8px;
    padding: 5px 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.utc-note {
    margin-top: 4px;
    font-size: 12px;
    color: #A5D6A7;
    text-align: center;
}

.countdown-time {
    color: #FFD700;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* History Button */
.history-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin: 0;
}

.history-button:hover {
    background-color: #45a049;
}

.clickable-number {
    cursor: pointer;
    transition: color 0.3s ease;
}

.clickable-number:hover {
    color: #45a049;
}

/* History Button */
.history-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.history-button:hover {
    background-color: #45a049;
}

/* Event Content */
.event-content {
    margin-bottom: 30px;
}

.event-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.event-content-left {
    display: flex;
    flex-direction: column;
}

.event-content-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

/* Winners Hall of Fame */
.winners-hof-panel {
    background: linear-gradient(180deg, rgba(18, 12, 8, 0.95), rgba(8, 6, 4, 0.98));
    border: 2px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 215, 0, 0.08);
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    max-height: calc((500px + 400px + 100px) * 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.land-bounty-disabled .event-content-right .winners-hof-panel {
    max-height: calc((500px + 400px + 100px) * 0.9);
}

.winners-hof-panel:hover {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 215, 0, 0.12);
}

.winners-hof-panel .hof-click-hint {
    margin: 0;
    padding: 0 16px 12px;
    font-size: 0.72rem;
    color: rgba(232, 197, 71, 0.5);
    text-align: center;
    cursor: pointer;
}

.hof-open-trigger {
    cursor: pointer;
}

.hof-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.22);
}

.hof-filter-events,
.hof-filter-time {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hof-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hof-filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hof-filter-btn.active {
    border-color: rgba(232, 197, 71, 0.65);
    background: rgba(232, 197, 71, 0.18);
    color: #e8c547;
}

.hof-filter-events .hof-filter-btn[data-hof-event="treasury"].active {
    border-color: rgba(255, 215, 0, 0.65);
    background: rgba(255, 215, 0, 0.14);
    color: #ffd700;
}

.hof-filter-events .hof-filter-btn[data-hof-event="lucky7"].active {
    border-color: rgba(124, 252, 0, 0.65);
    background: rgba(124, 252, 0, 0.14);
    color: #7cfc00;
}

.hof-filter-events .hof-filter-btn[data-hof-event="wild"].active {
    border-color: rgba(255, 82, 82, 0.65);
    background: rgba(255, 82, 82, 0.14);
    color: #ff5252;
}

.hof-header {
    text-align: center;
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), transparent);
}

.hof-title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e8c547;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hof-subtitle {
    display: none;
}

.hof-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.hof-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hof-row-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 14px;
    text-align: left;
}

.hof-event-badge {
    flex-shrink: 0;
    align-self: center;
    min-width: 62px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.hof-badge-treasury {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(255, 215, 0, 0.35);
}

.hof-badge-lucky7 {
    color: #7cfc00;
    background: rgba(124, 252, 0, 0.12);
    border: 1px solid rgba(124, 252, 0, 0.35);
}

.hof-badge-wild {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.35);
}

.hof-row-body {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.hof-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-shadow: 0 0 10px currentColor;
}

.hof-creature {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-bottom: 8px;
}

.hof-prize {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 12px currentColor;
}

.hof-ped {
    font-size: 0.95rem;
    font-weight: 700;
}

.hof-global {
    font-size: 0.78rem;
    opacity: 0.75;
    margin-bottom: 4px;
}

.hof-date {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 0.72rem;
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}

.hof-empty {
    padding: 48px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
}

.hof-row.hof-treasury {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.14), rgba(255, 152, 0, 0.06));
}

.hof-row.hof-treasury .hof-name,
.hof-row.hof-treasury .hof-prize,
.hof-row.hof-treasury .hof-creature {
    color: #ffd700;
}

.hof-row.hof-wild {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.18), rgba(139, 0, 0, 0.08));
}

.hof-row.hof-wild .hof-name,
.hof-row.hof-wild .hof-prize,
.hof-row.hof-wild .hof-creature {
    color: #ff5252;
}

.hof-row.hof-lucky7 {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.16), rgba(46, 125, 50, 0.08));
}

.hof-row.hof-lucky7 .hof-name,
.hof-row.hof-lucky7 .hof-prize,
.hof-row.hof-lucky7 .hof-creature {
    color: #7cfc00;
}

.hof-row.hof-row-new {
    animation: slideDownFadeIn 0.6s ease-out;
    overflow: hidden;
}

.rules-section {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.rules-section-title {
    margin-top: 40px;
    margin-bottom: 24px;
}

.rules-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.rules-col {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 20px 22px;
}

.rules-events-split {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    padding: 0;
    background: transparent;
}

.rules-event-block {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 18px 20px;
    min-height: 0;
}

.rules-event-heading {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.rules-heading-treasury { color: #FFD700; }
.rules-heading-wild { color: #ff5252; }
.rules-heading-lucky7 { color: #7CFC00; }

.rules-treasury-creatures {
    list-style-type: none;
    padding-left: 0;
}

.rules-monthly-section {
    margin-top: 32px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 20px 22px;
}

@media (max-width: 960px) {
    .rules-main-grid {
        grid-template-columns: 1fr;
    }

    .rules-events-split {
        grid-template-rows: auto auto;
    }
}

.hof-row.hof-row-new.hof-treasury {
    box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.45);
}

.hof-row.hof-row-new.hof-wild {
    box-shadow: inset 0 0 0 2px rgba(255, 82, 82, 0.45);
}

.hof-row.hof-row-new.hof-lucky7 {
    box-shadow: inset 0 0 0 2px rgba(124, 252, 0, 0.45);
}

html.land-bounty-pending .land-bounty-section {
    display: none !important;
}

.points-feed {
    background-color: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.winners-list {
    background-color: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.points-feed h3, .winners-list h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #4CAF50;
}

/* Feed Tabs */
.feed-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.feed-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-tab:hover {
    color: var(--accent-color);
}

.feed-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.feed-tab.has-winners {
    color: #FFD700;
    animation: goldGlow 2s ease-in-out infinite;
    border-bottom-color: #FFD700;
}

.feed-tab.has-winners:hover {
    color: #FFD700;
}

.feed-tab.has-winners.active {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

.points-log, .winners-log {
    flex: 1;
    overflow-y: auto;
    margin-top: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    padding: 10px;
}

.point-entry, .winner-entry, .points-entry {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.treasury-add {
    color: #FFD700;
}

.lucky7-add {
    color: #7CFC00;
    margin-left: 4px;
}

/* Animation for new global entries */
.points-entry.global-entry-new {
    animation: slideDownFadeIn 0.6s ease-out;
    background: rgba(255, 215, 0, 0.15);
    border-left: 3px solid #FFD700;
}

.global-entry.global-entry-new {
    animation: slideDownFadeIn 0.6s ease-out;
    background: rgba(76, 175, 80, 0.15);
    border-left: 3px solid #4CAF50;
}

@keyframes slideDownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
        margin-bottom: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

.point-entry:last-child, .winner-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.no-winners {
    color: #888;
    text-align: center;
    padding: 10px;
    font-style: italic;
}

/* Recent Winners Styles */
.recent-winners {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.recent-winners h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.winner-entry {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
    margin-bottom: 10px;
    padding: 10px;
    transition: all 0.3s ease;
}

.winner-entry:hover {
    background: rgba(76, 175, 80, 0.2);
}

.winner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.winner-name {
    color: #4CAF50;
    font-weight: bold;
}

.winner-type {
    color: #888;
    font-style: italic;
}

.win-amount {
    color: #fff;
}

.win-details {
    color: #888;
}

.win-time {
    color: #666;
    font-size: 0.9em;
    margin-left: auto;
}

.winners-list {
    margin: 0px 0;
}

.winners-list h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.winners-log {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px;
}

.winner-entry {
    color: #fff;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.winner-entry:last-child {
    border-bottom: none;
}

/* Responsive — stack pool above numbers/content on smaller screens */
@media (max-width: 960px) {
    .event-pool-row {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 16px;
        padding: 18px 0;
    }

    .event-pool-card,
    .event-pool-row .pool-display,
    .event-pool-row .treasury-display,
    .event-pool-row .wild-display,
    .event-pool-row .lucky7-display {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .event-pool-content {
        width: 100%;
        flex: none;
        justify-content: flex-start;
        gap: 14px;
    }

    .numbers-treasury.daily-numbers-section,
    .wild-numbers-section,
    .lucky7-pool-content {
        width: 100%;
    }

    .daily-numbers-container,
    .numbers-wild.daily-numbers-container {
        justify-content: center;
    }
}

/* Responsive Design for Event Section — keep stacked layout from 960px breakpoint */
@media (max-width: 768px) {
    .event-header {
        padding: 12px;
        gap: 10px;
    }

    .event-header-body {
        gap: 0;
    }

    .event-pool-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px;
        padding: 14px 0;
    }

    .event-pool-card,
    .event-pool-row .pool-display,
    .event-pool-row .treasury-display,
    .event-pool-row .wild-display,
    .event-pool-row .lucky7-display {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .event-pool-content {
        width: 100%;
        flex: none;
        gap: 12px;
    }

    .event-pool-content .daily-number {
        margin: 0 !important;
    }

    .event-pool-content .daily-number-item {
        min-width: 100px;
        max-width: 100px;
        width: 100px;
    }

    #lucky7HelperText,
    .lucky7-pool-content .event-helper-lucky7 {
        font-size: 15px;
        padding: 8px 14px;
    }

    .daily-numbers-section {
        width: 100%;
        align-items: center;
    }

    .daily-numbers-label,
    .wild-numbers-label,
    .event-helper-treasury {
        text-align: center;
    }

    .daily-numbers-container,
    .numbers-wild.daily-numbers-container {
        justify-content: center;
    }

    .daily-numbers-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .event-pool-content .daily-number {
        min-width: 80px;
        padding: 10px 12px;
    }

    .event-pool-content .daily-number .number {
        font-size: 1.35rem;
    }

    .winners-hof-panel {
        max-height: none;
    }

    .next-draw-countdown {
        text-align: center;
        margin-top: 10px;
    }

    .event-content-grid {
        grid-template-columns: 1fr !important;
    }
    
    .unified-buttons-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .unified-buttons-row .unified-btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
        font-size: 0.82rem;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .event-header {
        padding: 10px;
        gap: 8px;
    }

    .event-pool-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }

    .event-pool-card,
    .event-pool-row .treasury-display,
    .event-pool-row .wild-display,
    .event-pool-row .lucky7-display {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .event-pool-content .daily-number-item {
        min-width: 92px;
        max-width: 92px;
        width: 92px;
    }

    .event-pool-content .daily-number {
        margin: 0 !important;
    }

    .winner-ticker-item {
        font-size: 11px;
    }

    .treasury-amount {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .treasury-currency {
        font-size: 16px;
    }

    .treasury-label, .daily-numbers-label {
        font-size: 16px;
    }

    .daily-numbers-container {
        gap: 6px;
    }

    .event-pool-content .daily-number {
        min-width: 70px;
        padding: 8px 10px;
    }

    .event-pool-content .daily-number .number {
        font-size: 1.15rem;
    }

    .winners-hof-panel {
        max-height: none;
    }

    .hof-title {
        font-size: 1.35rem;
        letter-spacing: 0.12em;
    }

    .hof-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hof-filter-events,
    .hof-filter-time {
        justify-content: center;
    }

    .hof-event-badge {
        min-width: 54px;
        font-size: 0.58rem;
        padding: 5px 6px;
    }

    .hof-date {
        position: static;
        display: block;
        margin-top: 8px;
        text-align: right;
    }
}
