.cg-main { padding-bottom: 8px; }
.cg-hero { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; margin-top: 18px; }
@media (max-width: 760px) { .cg-hero { grid-template-columns: 1fr; } }
.cg-kicker { color: #b45309; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin: 6px 0 4px; }
.cg-title { font-size: 44px; line-height: 1.05; margin: 0 0 12px; color: #232048; }
.cg-title span { color: #b45309; }
.cg-rule { font-size: 19px; line-height: 1.45; color: #33305a; margin: 0 0 10px; }
.cg-note { color: #5d5980; line-height: 1.5; margin: 0; }
.cg-console { min-width: 0; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 16px; padding: 16px; }
.cg-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; color: #92400e; font-size: 15px; }
.cg-stats strong { color: #232048; }
.cg-row { display: flex; gap: 10px; justify-content: center; align-items: flex-end; min-height: 190px; margin: 0 auto 14px; padding: 18px 10px 0; border-radius: 14px; background: linear-gradient(180deg, #3730a3 0%, #312e81 55%, #1e1b4b 100%); touch-action: none; overflow: hidden; }
.cg-candle { position: relative; width: 52px; height: 168px; padding: 0; background: transparent; border: 0; cursor: pointer; flex: 0 0 auto; }
.cg-candle:disabled { cursor: default; opacity: .6; }
.cg-candle:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; border-radius: 8px; }
.cg-flame { position: absolute; top: 2px; left: 50%; width: 18px; height: 26px; margin-left: -9px; background: radial-gradient(circle at 50% 70%, #fef9c3 0%, #fbbf24 45%, #f97316 75%, #dc2626 100%); border-radius: 0 50% 50% 50%; transform: rotate(-45deg); transform-origin: 50% 50%; animation: cg-flicker 1.6s ease-in-out infinite alternate; }
@keyframes cg-flicker { from { transform: rotate(-45deg) scale(1); } to { transform: rotate(-42deg) scale(1.08, 1.14); } }
.cg-out .cg-flame { display: none; }
.cg-wick { position: absolute; top: 28px; left: 50%; width: 2px; height: 10px; margin-left: -1px; background: #292524; }
.cg-body { position: absolute; left: 50%; bottom: 0; width: 34px; height: 118px; margin-left: -17px; background: linear-gradient(90deg, #fde68a 0%, #fef3c7 50%, #fcd34d 100%); border-radius: 8px 8px 4px 4px; box-shadow: inset -3px 0 0 rgba(180, 83, 9, .25); }
.cg-candle:nth-child(3n+2) .cg-body { height: 96px; background: linear-gradient(90deg, #fbcfe8 0%, #fdf2f8 50%, #f9a8d4 100%); }
.cg-candle:nth-child(3n) .cg-body { height: 132px; background: linear-gradient(90deg, #bfdbfe 0%, #eff6ff 50%, #93c5fd 100%); }
.cg-smoke { position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: rgba(203, 213, 225, .85); animation: cg-rise 1.4s ease-out forwards; pointer-events: none; }
@keyframes cg-rise { from { transform: translateY(0) scale(1); opacity: .9; } to { transform: translateY(-46px) scale(2.2); opacity: 0; } }
.cg-controls { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cg-controls button { font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; border: 1px solid #b45309; background: #ffffff; color: #b45309; padding: 10px 18px; }
.cg-controls .cg-primary { background: #b45309; border-color: #b45309; color: #ffffff; }
.cg-controls button:disabled { opacity: .45; cursor: default; }
.cg-status { color: #5d5980; min-height: 24px; margin: 12px 0 0; }
.cg-hint { color: #5d5980; font-size: 14px; margin: 8px 0 0; }
@media (max-width: 760px) { .cg-console { display: flex; flex-direction: column; } .cg-stats { order: 1; } .cg-row { order: 2; } .cg-controls { order: 3; } .cg-status { order: 4; } .cg-hint { order: 5; } }
@media (max-width: 390px) { .cg-title { font-size: 36px; } .cg-console { padding: 12px; } .cg-row { min-height: 170px; gap: 6px; } .cg-candle { width: 40px; } .cg-stats { font-size: 14px; gap: 12px; } .cg-controls button { padding: 8px 14px; font-size: 15px; } }
