/*
 * Provably Fair Tools - Verifier Styles
 * Styles for game verification interfaces
 */

/* Verifier Container */
.pf-verifier {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl, 4rem) var(--space-lg, 2rem);
}

/* Verifier Header */
.verifier-header {
    text-align: center;
    margin-bottom: var(--space-3xl, 4rem);
}

.verifier-game-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg, 1.5rem);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    color: var(--pf-primary);
}

.verifier-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: var(--space-md, 1rem);
    color: var(--pf-text-primary);
}

.verifier-subtitle {
    font-size: 1.125rem;
    color: var(--pf-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Verifier Layout */
.verifier-form-container {
    margin-bottom: var(--space-2xl, 3rem);
}

/* Verifier Form */
.verifier-form {
    background: var(--pf-bg-card);
    border: 1px solid var(--pf-border);
    border-radius: 16px;
    padding: var(--space-xl, 2rem);
}

.form-section {
    margin-bottom: var(--space-xl, 2rem);
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-lg, 1.5rem);
    color: var(--pf-text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm, 0.75rem);
}

.form-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    color: var(--pf-primary);
}

.form-group {
    margin-bottom: var(--space-lg, 1.5rem);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm, 0.75rem);
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pf-text-secondary);
}

.form-label .required {
    color: #ff4444;
    margin-left: var(--space-xs, 0.25rem);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md, 1rem);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--pf-border);
    border-radius: 8px;
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.9375rem;
    color: var(--pf-text-primary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--pf-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--pf-text-muted);
}

.form-hint {
    display: block;
    margin-top: var(--space-xs, 0.5rem);
    font-size: 0.8125rem;
    color: var(--pf-text-muted);
}

/* Fix select dropdown styling */
.form-select {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--pf-text-primary);
}

.form-select option {
    background-color: #1a1a2e;
    color: var(--pf-text-primary);
}

/* Nonce Input with Increment/Decrement Buttons */
.nonce-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--pf-border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.nonce-input-wrapper:focus-within {
    border-color: var(--pf-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.nonce-input-wrapper .nonce-input {
    flex: 1;
    border: none;
    border-radius: 0;
    background: transparent;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    padding: var(--space-md, 1rem);
    min-width: 0;
}

.nonce-input-wrapper .nonce-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Remove default number input arrows */
.nonce-input::-webkit-outer-spin-button,
.nonce-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.nonce-input[type=number] {
    -moz-appearance: textfield;
}

.nonce-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    padding: 0;
    background: rgba(0, 255, 136, 0.08);
    border: none;
    border-left: 1px solid var(--pf-border);
    border-right: 1px solid var(--pf-border);
    color: var(--pf-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nonce-btn:first-child {
    border-left: none;
}

.nonce-btn:last-child {
    border-right: none;
}

.nonce-btn:hover {
    background: rgba(0, 255, 136, 0.15);
    color: var(--pf-primary);
}

.nonce-btn:active {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(0.95);
}

.nonce-btn svg {
    pointer-events: none;
}

@media (max-width: 768px) {
    .nonce-btn {
        width: 44px;
        min-width: 44px;
    }

    .nonce-input-wrapper .nonce-input {
        font-size: 1rem;
    }
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--space-md, 1rem);
}

.btn-verify {
    flex: 1;
    padding: var(--space-md, 1rem) var(--space-xl, 2rem);
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-electric) 100%);
    border: none;
    border-radius: 8px;
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pf-bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

.btn-verify:active:not(:disabled) {
    transform: translateY(0);
}

.btn-verify:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-reset {
    padding: var(--space-md, 1rem) var(--space-xl, 2rem);
    background: transparent;
    border: 2px solid var(--pf-border);
    border-radius: 8px;
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pf-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    border-color: var(--pf-primary);
    color: var(--pf-primary);
}

/* Results Panel */
.verifier-results {
    margin-bottom: var(--space-2xl, 3rem);
}

.results-empty {
    display: none;
}

.results-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg, 1.5rem);
    opacity: 0.3;
}

.results-empty-text {
    font-size: 1rem;
}

/* Result Status */
.result-status {
    display: flex;
    align-items: center;
    gap: var(--space-md, 1rem);
    padding: var(--space-lg, 1.5rem);
    margin-bottom: var(--space-xl, 2rem);
    border-radius: 12px;
    font-weight: 600;
}

.result-status.valid {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    color: var(--pf-primary);
}

.result-status.invalid {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.result-status-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-status-text {
    flex: 1;
    font-size: 1.125rem;
}

/* Result Details */
.result-details {
    flex: 1;
}

.result-section {
    margin-bottom: var(--space-xl, 2rem);
}

.result-section:last-child {
    margin-bottom: 0;
}

.result-section-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-md, 1rem);
    color: var(--pf-text-primary);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: var(--space-sm, 0.75rem) 0;
    border-bottom: 1px solid var(--pf-border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pf-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.9375rem;
    color: var(--pf-text-primary);
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

.result-value.highlight {
    color: var(--pf-primary);
    font-weight: 700;
}

/* Game Outcome Display */
.game-outcome {
    padding: var(--space-xl, 2rem);
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    text-align: center;
}

.outcome-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pf-text-secondary);
    margin-bottom: var(--space-sm, 0.75rem);
}

.outcome-value {
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--pf-primary);
}

.playing-card-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg, 1.5rem);
}

@media (min-width: 640px) {
    .playing-card-display {
        flex-direction: row;
        justify-content: center;
    }
}

.pf-playing-card {
    width: 140px;
    height: 200px;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}

.pf-card-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
}

.pf-card-corner--top {
    top: 0.85rem;
    left: 0.85rem;
}

.pf-card-corner--bottom {
    bottom: 0.85rem;
    right: 0.85rem;
    transform: rotate(180deg);
}

.pf-card-rank {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.pf-card-suit {
    font-size: 1.25rem;
    line-height: 1;
}

.pf-card-symbol {
    font-size: 3.25rem;
    line-height: 1;
}

.playing-card-info {
    text-align: center;
    max-width: 220px;
}

.playing-card-value {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 2.5rem;
    font-weight: 800;
}

.playing-card-value .playing-card-rank {
    text-transform: uppercase;
}

.playing-card-value .playing-card-suit {
    font-size: 2rem;
    line-height: 1;
}

.playing-card-text {
    margin-top: var(--space-sm, 0.75rem);
    font-size: 0.95rem;
    color: var(--pf-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Info Box */
.info-box {
    padding: var(--space-lg, 1.5rem);
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 12px;
    margin-top: var(--space-2xl, 3rem);
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 0.75rem);
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-md, 1rem);
    color: var(--pf-electric);
}

.info-box-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--pf-text-secondary);
}

.info-box-content ul {
    margin: var(--space-sm, 0.75rem) 0;
    padding-left: var(--space-xl, 2rem);
}

.info-box-content li {
    margin-bottom: var(--space-xs, 0.5rem);
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 255, 136, 0.2);
    border-top-color: var(--pf-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-message {
    padding: var(--space-lg, 1.5rem);
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    color: #ff4444;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Responsive adjustments */
}

@media (max-width: 768px) {
    .pf-verifier {
        padding: var(--space-2xl, 3rem) var(--space-md, 1rem);
    }

    .verifier-header {
        margin-bottom: var(--space-2xl, 3rem);
    }

    .verifier-title {
        font-size: 2rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-verify,
    .btn-reset {
        width: 100%;
    }

    .result-item {
        flex-direction: column;
        gap: var(--space-xs, 0.5rem);
    }

    .result-value {
        max-width: 100%;
        text-align: left;
    }

    .outcome-value {
        font-size: 2rem;
    }
}

/* Game-Specific Visualizations */

/* Dice Result */
.dice-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg, 1.5rem);
    padding: var(--space-xl, 2rem);
    margin-bottom: var(--space-lg, 1.5rem);
}

.dice-visual {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 191, 255, 0.2) 100%);
    border: 2px solid var(--pf-primary);
    border-radius: 16px;
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 2rem;
    font-weight: 900;
    color: var(--pf-primary);
}

/* Mines Grid Preview */
.mines-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xs, 0.5rem);
    max-width: 300px;
    margin: var(--space-lg, 1.5rem) auto;
}

.mines-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--pf-border);
    border-radius: 8px;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.mines-cell.mine {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
}

.mines-cell.safe {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

/* HiLo Card Sequence - Horizontal Row Layout */
.hilo-cards-container {
    margin: var(--space-lg, 1.5rem) 0;
    padding: var(--space-md, 1rem);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--pf-border);
    border-radius: 12px;
}

.hilo-card-row {
    display: flex;
    gap: var(--space-md, 1rem);
    overflow-x: auto;
    padding: var(--space-sm, 0.75rem) 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.3) rgba(255, 255, 255, 0.05);
}

.hilo-card-row::-webkit-scrollbar {
    height: 8px;
}

.hilo-card-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.hilo-card-row::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

.hilo-card-row::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

.hilo-card-wrapper {
    flex-shrink: 0;
}

.pf-playing-card--hilo {
    width: 130px;
    height: 180px;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pf-playing-card--hilo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pf-card-content {
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pf-card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.pf-card-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.pf-card-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    transform: rotate(180deg);
}

.pf-card-rank {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.pf-card-suit {
    font-size: 1.125rem;
    line-height: 1;
}

.pf-card-symbol {
    font-size: 3rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .pf-playing-card--hilo {
        width: 110px;
        height: 155px;
    }

    .pf-card-rank {
        font-size: 1rem;
    }

    .pf-card-suit {
        font-size: 1rem;
    }

    .pf-card-symbol {
        font-size: 2.5rem;
    }

    .hilo-card-row {
        gap: var(--space-sm, 0.75rem);
    }
}

/* ===========================================================================
   Warning Messages
   =========================================================================== */

.warnings-container {
    margin-bottom: var(--space-xl, 2rem);
}

.warning-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md, 1rem);
    padding: var(--space-lg, 1.5rem);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-left: 4px solid rgb(245, 158, 11);
    border-radius: 8px;
    margin-bottom: var(--space-md, 1rem);
    animation: warningFadeIn 0.3s ease;
}

.warning-message:last-child {
    margin-bottom: 0;
}

.warning-icon {
    flex-shrink: 0;
    color: rgb(245, 158, 11);
    margin-top: 2px;
}

.warning-content {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--pf-text-primary);
}

.warning-content strong {
    color: rgb(245, 158, 11);
    font-weight: 700;
}

@keyframes warningFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .warning-message {
        padding: var(--space-md, 1rem);
        gap: var(--space-sm, 0.75rem);
    }

    .warning-content {
        font-size: 0.875rem;
    }
}

/* ===========================================================================
   Keno Grid Display
   =========================================================================== */

/* Drawn numbers badges */
.keno-drawn-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm, 0.75rem);
    justify-content: center;
    padding: var(--space-lg, 1.5rem);
    background: rgba(0, 255, 136, 0.03);
    border-radius: 12px;
    margin-bottom: var(--space-lg, 1.5rem);
}

.keno-drawn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 var(--space-md, 1rem);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.08) 100%);
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 10px;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pf-primary);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.15);
}

/* Keno board container */
.keno-board-container {
    padding: var(--space-xl, 2rem);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--pf-border);
}

/* Keno grid - 8 columns × 5 rows */
.keno-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-sm, 0.75rem);
    max-width: 600px;
    margin: 0 auto;
}

.keno-number {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--pf-border);
    border-radius: 8px;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--pf-text-secondary);
    transition: all 0.3s ease;
}

.keno-number-drawn {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 255, 136, 0.12) 100%);
    border: 2px solid var(--pf-primary);
    color: var(--pf-primary);
    font-weight: 800;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .keno-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 0.5rem;
    }

    .keno-number {
        min-height: 40px;
        font-size: 0.875rem;
    }

    .keno-drawn-badge {
        min-width: 42px;
        height: 42px;
        font-size: 1.125rem;
    }

    .keno-board-container {
        padding: var(--space-lg, 1.5rem);
    }
}

@media (max-width: 480px) {
    .keno-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 0.375rem;
    }

    .keno-number {
        min-height: 36px;
        font-size: 0.8125rem;
    }
}

/* ===========================================================================
   Mines Grid Display
   =========================================================================== */

/* Mine positions badges */
.mine-positions-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm, 0.75rem);
    justify-content: center;
    padding: var(--space-lg, 1.5rem);
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    margin-bottom: var(--space-lg, 1.5rem);
}

.mine-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 var(--space-md, 1rem);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.12) 100%);
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 10px;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(239, 68, 68);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.mines-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm, 0.75rem);
    max-width: 500px;
    margin: 0 auto var(--space-lg, 1.5rem);
    padding: var(--space-xl, 2rem);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--pf-border);
}

.mines-cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--pf-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mines-cell-position {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--pf-text-muted);
    opacity: 0.5;
    font-family: var(--font-mono, 'Courier New', monospace);
}

.mines-cell-icon {
    font-size: 2rem;
    line-height: 1;
}

.mines-cell.mine {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.12) 100%);
    border: 2px solid rgb(239, 68, 68);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mines-cell.mine .mines-cell-icon {
    animation: mineAppear 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mines-cell.safe {
    background: rgba(0, 255, 136, 0.08);
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.mines-cell.safe .mines-cell-icon {
    opacity: 0.7;
    filter: hue-rotate(220deg) saturate(2) brightness(1.2);
}

@keyframes mineAppear {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .mine-position-badge {
        min-width: 42px;
        height: 42px;
        font-size: 1.125rem;
    }

    .mines-preview {
        gap: 0.5rem;
        padding: var(--space-lg, 1.5rem);
    }

    .mines-cell-icon {
        font-size: 1.5rem;
    }

    .mines-cell-position {
        font-size: 0.5625rem;
        top: 2px;
        left: 2px;
    }
}

@media (max-width: 480px) {
    .mines-preview {
        gap: 0.375rem;
        padding: var(--space-md, 1rem);
    }

    .mines-cell-icon {
        font-size: 1.25rem;
    }

    .mines-cell-position {
        font-size: 0.5rem;
    }
}

/* ===========================================================================
   Wheel Segments Display
   =========================================================================== */

.wheel-segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-sm, 0.75rem);
    padding: var(--space-xl, 2rem);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--pf-border);
    max-width: 100%;
}

.wheel-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md, 1rem);
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--segment-color, #00e403);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.segment-index {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pf-text-muted);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono, 'Courier New', monospace);
}

.segment-payout {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--segment-color, #00e403);
    font-family: var(--font-heading, 'Montserrat', sans-serif);
}

.wheel-segment.winning-segment {
    background: var(--segment-color, #00e403);
    border: 3px solid var(--segment-color, #00e403);
    box-shadow: 0 0 30px var(--segment-color, #00e403), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    animation: winningPulse 1.5s ease-in-out infinite;
    z-index: 10;
}

.wheel-segment.winning-segment .segment-index {
    color: #000;
    font-weight: 700;
}

.wheel-segment.winning-segment .segment-payout {
    color: #000;
    font-size: 1.25rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

@keyframes winningPulse {
    0%, 100% {
        box-shadow: 0 0 30px var(--segment-color, #00e403), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 50px var(--segment-color, #00e403), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 768px) {
    .wheel-segments-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.5rem;
        padding: var(--space-lg, 1.5rem);
    }

    .segment-payout {
        font-size: 1rem;
    }

    .wheel-segment.winning-segment .segment-payout {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .wheel-segments-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.375rem;
        padding: var(--space-md, 1rem);
    }

    .wheel-segment {
        padding: 0.5rem;
    }

    .segment-index {
        font-size: 0.625rem;
    }

    .segment-payout {
        font-size: 0.875rem;
    }

    .wheel-segment.winning-segment .segment-payout {
        font-size: 1rem;
    }
}

/* Flip Display Styles */
.flip-summary {
    display: flex;
    gap: var(--space-xl, 2rem);
    justify-content: center;
    margin-top: var(--space-lg, 1.5rem);
    padding: var(--space-lg, 1.5rem);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.flip-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
}

.flip-stat-icon {
    font-size: 2rem;
    line-height: 1;
}

.flip-stat-label {
    font-size: 0.875rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.flip-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pf-primary);
    font-family: var(--font-heading, 'Montserrat', sans-serif);
}

.flips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md, 1rem);
    margin-top: var(--space-md, 1rem);
    justify-content: center;
    max-width: 100%;
}

.flip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md, 1rem);
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flip-heads {
    border-color: #00e403;
}

.flip-heads .flip-emoji {
    filter: hue-rotate(120deg);
}

.flip-tails {
    border-color: #ff4444;
}

.flip-tails .flip-emoji {
    filter: hue-rotate(300deg);
}

.flip-emoji {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: var(--space-xs, 0.25rem);
}

.flip-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-xs, 0.25rem);
    color: var(--pf-text-primary);
}

.flip-number {
    font-size: 0.625rem;
    color: var(--pf-text-muted);
    font-family: var(--font-mono, 'Courier New', monospace);
}

@media (max-width: 768px) {
    .flips-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 0.5rem;
    }

    .flip-item {
        padding: 0.75rem;
    }

    .flip-emoji {
        font-size: 1.5rem;
    }

    .flip-summary {
        gap: var(--space-lg, 1.5rem);
        padding: var(--space-md, 1rem);
    }
}

@media (max-width: 480px) {
    .flips-grid {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
        gap: 0.375rem;
    }

    .flip-item {
        padding: 0.5rem;
    }

    .flip-emoji {
        font-size: 1.25rem;
    }

    .flip-label {
        font-size: 0.625rem;
    }

    .flip-stat-icon {
        font-size: 1.5rem;
    }

    .flip-stat-value {
        font-size: 1.25rem;
    }
}

/* Chicken Display Styles */
.death-point-value {
    color: #ff4444 !important;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.outcome-subtitle {
    font-size: 0.875rem;
    color: var(--pf-text-muted);
    margin-top: var(--space-sm, 0.5rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chicken-values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md, 1rem);
    justify-content: center;
    margin-top: var(--space-md, 1rem);
}

.chicken-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg, 1.5rem);
    background: rgba(255, 255, 255, 0.03);
    border: 3px solid;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.chicken-value:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.safe-value {
    border-color: #00e403;
}

.death-value {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: deathPulse 1.5s ease-in-out infinite;
}

.value-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pf-text-primary);
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    margin-bottom: var(--space-xs, 0.25rem);
}

.value-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.safe-value .value-label {
    color: #00e403;
}

.death-value .value-label {
    color: #ff4444;
}

@keyframes deathPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.1);
        border-color: #ff4444;
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 68, 68, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.2);
        border-color: #ff6666;
    }
}

.shuffled-array {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm, 0.5rem);
    justify-content: center;
    margin-top: var(--space-md, 1rem);
    padding: var(--space-lg, 1.5rem);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.array-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-mono, 'Courier New', monospace);
    color: var(--pf-text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.array-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.08);
}

.array-item-visible {
    border-color: #00e403;
    color: #00e403;
    background: rgba(0, 228, 3, 0.1);
}

.array-item-death {
    border-color: #ff4444;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
    font-weight: 700;
}

@media (max-width: 768px) {
    .chicken-values-grid {
        gap: 0.75rem;
    }

    .chicken-value {
        padding: var(--space-md, 1rem);
        min-width: 80px;
    }

    .value-number {
        font-size: 1.5rem;
    }

    .shuffled-array {
        gap: 0.375rem;
        padding: var(--space-md, 1rem);
    }

    .array-item {
        min-width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .chicken-values-grid {
        gap: 0.5rem;
    }

    .chicken-value {
        padding: 0.75rem;
        min-width: 70px;
    }

    .value-number {
        font-size: 1.25rem;
    }

    .value-label {
        font-size: 0.625rem;
    }

    .shuffled-array {
        gap: 0.25rem;
        padding: 0.75rem;
    }

    .array-item {
        min-width: 30px;
        height: 30px;
        font-size: 0.625rem;
    }
}

/* Pump Display Styles */
.pop-point-value {
    color: #ff4444 !important;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.pump-values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md, 1rem);
    justify-content: center;
    margin-top: var(--space-md, 1rem);
}

.pump-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg, 1.5rem);
    background: rgba(255, 255, 255, 0.03);
    border: 3px solid;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.pump-value:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pop-value {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: popPulse 1.5s ease-in-out infinite;
}

@keyframes popPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.1);
        border-color: #ff4444;
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 68, 68, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.2);
        border-color: #ff6666;
    }
}

.pop-value .value-label {
    color: #ff4444;
}

.array-item-pop {
    border-color: #ff4444;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
    font-weight: 700;
}

@media (max-width: 768px) {
    .pump-values-grid {
        gap: 0.75rem;
    }

    .pump-value {
        padding: var(--space-md, 1rem);
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .pump-values-grid {
        gap: 0.5rem;
    }

    .pump-value {
        padding: 0.75rem;
        min-width: 70px;
    }
}

/* ================================================
   MINES PATTERN FINDER STYLES
   ================================================ */

/* Grid Selector */
.mines-grid-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto;
}

.mines-selector-tile {
    aspect-ratio: 1;
    min-height: 50px;
    background: var(--surface-primary, #1a1d29);
    border: 2px solid var(--border-color, #2d3142);
    border-radius: var(--radius-sm, 0.375rem);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mines-selector-tile:hover {
    border-color: var(--accent-color, #00d4aa);
    transform: scale(1.05);
}

.mines-selector-tile.selected {
    background: linear-gradient(135deg, var(--accent-color, #00d4aa) 0%, var(--accent-dark, #00a87e) 100%);
    border-color: var(--accent-color, #00d4aa);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
}

/* Mines Grid Display */
.mines-grid-display {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto;
}

.mines-grid-display.user-pattern {
    margin-top: 1rem;
}

.mines-tile {
    aspect-ratio: 1;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--border-color, #2d3142);
    border-radius: var(--radius-sm, 0.375rem);
    transition: all 0.2s ease;
    position: relative;
}

.mines-tile.mine-tile {
    background: rgba(255, 68, 68, 0.15);
    border-color: #ff4444;
}

.mines-tile.safe-tile {
    background: var(--surface-primary, #1a1d29);
    border-color: var(--border-color, #2d3142);
}

.mines-tile.selected-tile,
.mines-tile.user-selected-tile {
    background: linear-gradient(135deg, var(--accent-color, #00d4aa) 0%, var(--accent-dark, #00a87e) 100%);
    border-color: var(--accent-color, #00d4aa);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.3);
    font-weight: 700;
}

.mines-tile.unselected-tile {
    background: var(--surface-secondary, #141721);
    border-color: var(--border-color, #2d3142);
    opacity: 0.3;
}

/* Form Buttons Container */
.form-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: var(--space-md, 1rem);
}

/* Verify/Submit Button */
.verify-button {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--pf-accent, #00d4aa) 0%, var(--pf-accent-dark, #00a87e) 100%);
    border: none;
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
}

.verify-button:hover {
    background: linear-gradient(135deg, #00e5bf 0%, #00d4aa 100%);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.35);
    transform: translateY(-2px);
}

.verify-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
}

.verify-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Reset Button */
.reset-button {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pf-text-primary, #e5e7eb);
    background: var(--pf-bg-card, #1a1d29);
    border: 2px solid var(--pf-border, #2d3142);
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: var(--pf-bg-secondary, #22252f);
    border-color: var(--pf-accent, #00d4aa);
    color: var(--pf-accent, #00d4aa);
    transform: translateY(-2px);
}

.reset-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .mines-grid-selector,
    .mines-grid-display {
        max-width: 250px;
        gap: 0.4rem;
    }

    .mines-tile {
        font-size: 1.25rem;
    }

    .form-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mines-grid-selector,
    .mines-grid-display {
        max-width: 200px;
        gap: 0.3rem;
    }

    .mines-tile {
        font-size: 1rem;
    }
}
