/* Chicken Road Demo Game */

/* Compact hero on demo page — no images, game on first screen */
.hero-section-demo-compact {
    padding: 16px 0 12px !important;
}

.hero-content-demo-compact {
    text-align: center;
}

.hero-content-demo-compact .hero-images {
    display: none;
}

.hero-section-demo-compact h1 {
    margin-bottom: 6px !important;
    font-size: 1.75rem !important;
}

.hero-section-demo-compact .subtitle {
    margin-bottom: 0 !important;
    font-size: 0.95rem;
}

.demo-game-section {
    padding: 16px 0 60px;
    background: linear-gradient(180deg, #0d0d12 0%, #151520 50%, #0d0d12 100%);
}

.demo-game-title {
    text-align: center;
    margin-bottom: 12px !important;
    font-size: 1.25rem !important;
}

/* CTA button under the game */
.demo-cta-wrap {
    text-align: center;
    margin-top: 28px;
    padding-bottom: 8px;
}

.demo-cta-btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff8c00 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.demo-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.demo-cta-btn:active {
    transform: translateY(0);
}

.demo-game-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a24;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Game header */
.demo-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #12121a;
    border-bottom: 1px solid #2a2a35;
}

.demo-game-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.demo-game-logo .egg-icon {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #daa520);
    border-radius: 50%;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3);
}

.demo-game-balance {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.demo-game-balance span {
    color: #4caf50;
}

/* Game area - road */
.demo-game-area {
    position: relative;
    padding: 24px 16px;
    min-height: 280px;
    background: 
        linear-gradient(90deg, transparent 0%, transparent 100%),
        repeating-linear-gradient(90deg, #2a2a35 0px, #2a2a35 1px, transparent 1px, transparent 80px);
}

.demo-game-road {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    height: 140px;
    margin-top: 20px;
    padding: 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

.demo-game-road::-webkit-scrollbar {
    height: 6px;
}

.demo-game-road::-webkit-scrollbar-track {
    background: #1a1a24;
}

.demo-game-road::-webkit-scrollbar-thumb {
    background: #3a3a4a;
    border-radius: 3px;
}

/* Lane with hazard */
.demo-game-lane {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.demo-game-lane::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(180deg, #444 0px, #444 8px, transparent 8px, transparent 16px);
    opacity: 0.6;
}

.demo-game-hazard {
    width: 52px;
    height: 24px;
    background: #252530;
    border-radius: 0 0 50% 50%;
    border: 1px solid #3a3a45;
    margin-bottom: 8px;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.4);
}

/* Multiplier circle */
.demo-game-multiplier {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.25s ease;
}

.demo-game-multiplier.reached {
    background: linear-gradient(145deg, #2e7d32, #1b5e20);
    border-color: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.demo-game-multiplier.current {
    background: linear-gradient(145deg, #388e3c, #2e7d32);
    border-color: #66bb6a;
    box-shadow: 0 0 24px rgba(76, 175, 80, 0.6);
    transform: translateX(-50%) scale(1.08);
}

.demo-game-multiplier.future {
    background: linear-gradient(145deg, #2a2544, #1e1b35);
    border-color: #3a3555;
    color: #888;
}

.demo-game-multiplier.start-coin {
    background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
    border-color: #daa520;
    color: #1a1a1a;
    font-size: 11px;
}

/* Chicken character */
.demo-game-chicken-wrap {
    position: absolute;
    left: 0;
    bottom: 50px;
    width: 72px;
    height: 70px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.demo-game-chicken {
    position: relative;
    width: 52px;
    height: 56px;
    animation: chicken-bob 0.6s ease-in-out infinite;
}

/* Body — fluffy oval, frontal */
.demo-game-chicken .chicken-body {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 34px;
    background: linear-gradient(180deg, #fff 0%, #faf7f2 35%, #f2ede6 100%);
    border-radius: 50% 50% 48% 48%;
    box-shadow:
        -4px -3px 0 rgba(255,255,255,0.92),
        0 2px 0 rgba(0,0,0,0.04),
        0 5px 12px rgba(0,0,0,0.12);
}

/* Head — round, frontal (face straight at viewer) */
.demo-game-chicken .chicken-head {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 35% 35%, #fff, #faf8f5 45%, #f5f0ea 100%);
    border-radius: 50%;
    box-shadow:
        -3px -3px 0 rgba(255,255,255,0.98),
        0 1px 0 rgba(0,0,0,0.04),
        0 3px 8px rgba(0,0,0,0.08);
}

/* Comb — red, centered on top (face straight) */
.demo-game-chicken .chicken-comb {
    position: absolute;
    left: 50%;
    bottom: 44px;
    transform: translateX(-50%);
    width: 20px;
    height: 11px;
    background: linear-gradient(180deg, #ef5350 0%, #c62828 45%, #b71c1c 100%);
    border-radius: 50% 50% 25% 25%;
    box-shadow: inset 0 2px 0 rgba(255,120,120,0.35), 0 2px 3px rgba(0,0,0,0.2);
}

.demo-game-chicken .chicken-comb::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -5px;
    width: 7px;
    height: 9px;
    background: linear-gradient(180deg, #e53935, #c62828);
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255,180,180,0.5);
}

.demo-game-chicken .chicken-comb::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -5px;
    width: 7px;
    height: 9px;
    background: linear-gradient(180deg, #e53935, #c62828);
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255,180,180,0.5);
}

/* Beak — strictly to the right, from the right side of face */
.demo-game-chicken .chicken-beak {
    position: absolute;
    right: -8px;
    bottom: 32px;
    width: 16px;
    height: 9px;
    background: linear-gradient(90deg, #ffb74d 0%, #ffa726 40%, #ff9800 100%);
    border-radius: 0 80% 70% 0;
    box-shadow: 2px 0 3px rgba(0,0,0,0.12);
    transform: rotate(0deg);
}

.demo-game-chicken .chicken-beak::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 3px;
    height: 2px;
    background: rgba(0,0,0,0.12);
    border-radius: 50%;
}

/* Wattle — under beak, right side */
.demo-game-chicken .chicken-wattle {
    position: absolute;
    right: -3px;
    bottom: 28px;
    width: 9px;
    height: 11px;
    background: linear-gradient(165deg, #ff5252 0%, #e53935 40%, #c62828 100%);
    border-radius: 0 45% 55% 50%;
    box-shadow: inset 0 1px 0 rgba(255,220,220,0.4), 1px 1px 2px rgba(0,0,0,0.1);
}

/* Wings — symmetric, frontal */
.demo-game-chicken .chicken-wing {
    position: absolute;
    bottom: 10px;
    width: 17px;
    height: 15px;
    background: linear-gradient(145deg, #fff 0%, #faf7f2 50%, #f5f0ea 100%);
    border-radius: 50% 45% 50% 45%;
    box-shadow: -1px 1px 3px rgba(0,0,0,0.06);
}

.demo-game-chicken .chicken-wing.wing-left {
    left: 1px;
    transform: rotate(-12deg);
}

.demo-game-chicken .chicken-wing.wing-right {
    right: 1px;
    transform: scaleX(-1) rotate(-12deg);
}

/* Eyes — symmetric, face straight (looking at viewer) */
.demo-game-chicken .eye {
    position: absolute;
    bottom: 34px;
    width: 8px;
    height: 9px;
    background: radial-gradient(circle at 30% 30%, #37474f, #1a1a1a);
    border-radius: 50%;
    box-shadow: inset -1px -1px 0 rgba(0,0,0,0.3);
}

.demo-game-chicken .eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 2.5px;
    height: 2.5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 1px rgba(255,255,255,0.8);
}

.demo-game-chicken .eye.left { left: 9px; }
.demo-game-chicken .eye.right { right: 9px; }

/* Legs — symmetric */
.demo-game-chicken .chicken-leg {
    position: absolute;
    bottom: -5px;
    width: 4px;
    height: 11px;
    background: linear-gradient(90deg, #ffeb3b 0%, #ffc107 50%, #ffb300 100%);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.demo-game-chicken .chicken-leg.leg-left {
    left: 17px;
    transform: rotate(2deg);
}

.demo-game-chicken .chicken-leg.leg-right {
    right: 17px;
    transform: rotate(-2deg);
}

.demo-game-chicken.fall {
    animation: chicken-fall 0.5s ease-in forwards;
}

.demo-game-chicken.fall .chicken-wing.wing-left {
    animation: wing-flap-fall-left 0.3s ease-in;
}

.demo-game-chicken.fall .chicken-wing.wing-right {
    animation: wing-flap-fall-right 0.3s ease-in;
}

@keyframes chicken-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes chicken-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(80px) rotate(90deg); opacity: 0.3; }
}

@keyframes wing-flap-fall-left {
    0% { transform: rotate(-15deg); }
    50% { transform: rotate(10deg); }
    100% { transform: rotate(-15deg); }
}

@keyframes wing-flap-fall-right {
    0% { transform: scaleX(-1) rotate(-15deg); }
    50% { transform: scaleX(-1) rotate(10deg); }
    100% { transform: scaleX(-1) rotate(-15deg); }
}

/* Control panel */
.demo-game-controls {
    padding: 20px;
    background: #12121a;
    border-top: 1px solid #2a2a35;
}

.demo-game-controls-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.demo-game-bet-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-game-bet-block label {
    font-size: 12px;
    color: #888;
}

.demo-game-bet-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-game-bet-input {
    width: 90px;
    padding: 10px 12px;
    font-size: 16px;
    background: #1e1e2a;
    border: 1px solid #3a3a45;
    border-radius: 8px;
    color: #fff;
}

.demo-game-quick-bets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.demo-game-quick-bet {
    padding: 6px 12px;
    font-size: 13px;
    background: #2a2a35;
    border: 1px solid #3a3a45;
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.demo-game-quick-bet:hover {
    background: #3a3a45;
    color: #fff;
}

.demo-game-difficulty-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-game-difficulty-block label {
    font-size: 12px;
    color: #888;
}

.demo-game-difficulty-btns {
    display: flex;
    gap: 6px;
}

.demo-game-diff-btn {
    padding: 8px 14px;
    font-size: 12px;
    background: #2a2a35;
    border: 1px solid #3a3a45;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-game-diff-btn:hover {
    color: #fff;
    border-color: #4a4a55;
}

.demo-game-diff-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.demo-game-action-btns {
    display: flex;
    gap: 12px;
    align-items: center;
}

.demo-game-cashout {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(145deg, #f9a825, #f57f17);
    border: none;
    border-radius: 10px;
    color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.demo-game-cashout:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 168, 37, 0.5);
}

.demo-game-cashout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.demo-game-go {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(145deg, #4caf50, #388e3c);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.demo-game-go:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.5);
}

.demo-game-go:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.demo-game-chance {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Message overlay */
.demo-game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    z-index: 20;
    display: none;
}

.demo-game-message.show {
    display: block;
    animation: messagePop 0.3s ease;
}

.demo-game-message.win {
    background: rgba(76, 175, 80, 0.95);
    color: #fff;
}

.demo-game-message.lose {
    background: rgba(211, 47, 47, 0.95);
    color: #fff;
}

@keyframes messagePop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 768px) {
    .demo-game-controls-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .demo-game-action-btns {
        justify-content: stretch;
    }
    .demo-game-cashout,
    .demo-game-go {
        flex: 1;
    }
    .demo-game-lane {
        width: 64px;
    }
    .demo-game-chicken-wrap {
        width: 64px;
    }
}
