/* ============================================
   鼎王生存戰 - Game Styles
   ============================================ */

:root {
    --color-bg: #0a0a0f;
    --color-surface: #141420;
    --color-surface-2: #1c1c2e;
    --color-accent-red: #e63946;
    --color-accent-orange: #f77f00;
    --color-accent-gold: #fcbf49;
    --color-accent-cream: #eae2b7;
    --color-text: #f1f1f1;
    --color-text-dim: #8888aa;
    --color-free: #2ec4b6;
    --color-paid: #e63946;
    --color-combo: #ff006e;
    --font-main: 'Noto Sans TC', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow-red: 0 0 30px rgba(230, 57, 70, 0.3);
    --shadow-glow-gold: 0 0 30px rgba(252, 191, 73, 0.3);
    --shadow-glow-free: 0 0 20px rgba(46, 196, 182, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    user-select: none;
    -webkit-user-select: none;
}

/* ============================================
   Screen Management
   ============================================ */

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    z-index: 1;
}

.screen.active {
    display: flex;
}

/* ============================================
   START SCREEN
   ============================================ */

#start-screen {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a0a 50%, #0a0a1a 100%);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.start-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-emoji {
    position: absolute;
    font-size: 2.5rem;
    left: var(--x);
    animation: floatUp 6s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.15;
    bottom: -60px;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.start-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 600px;
}

.title-container {
    margin-bottom: 1.5rem;
}

.title-crown {
    font-size: 3rem;
    animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.game-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0.5rem 0;
    letter-spacing: 0.05em;
}

.title-ding {
    background: linear-gradient(180deg, var(--color-accent-gold), var(--color-accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(252, 191, 73, 0.5));
}

.title-wang {
    background: linear-gradient(180deg, var(--color-accent-orange), var(--color-accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.5));
}

.title-sub {
    display: block;
    font-size: 2rem;
    background: linear-gradient(90deg, var(--color-accent-cream), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.game-subtitle {
    font-size: 1.2rem;
    color: var(--color-accent-orange);
    font-weight: 700;
    animation: subtitlePulse 2s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.meme-quote {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.meme-quote p {
    font-size: 0.95rem;
    color: var(--color-accent-cream);
    margin: 0.3rem 0;
    font-style: italic;
    opacity: 0.85;
}

.start-info {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.2rem;
}

.btn-start {
    background: linear-gradient(135deg, var(--color-accent-red), var(--color-accent-orange));
    border: none;
    color: white;
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-start:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.6);
}

.btn-start:hover::before {
    transform: translateX(100%);
}

.btn-start:active {
    transform: translateY(0) scale(0.98);
}

.btn-emoji {
    font-size: 1.4rem;
}

.start-hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

/* ============================================
   GAME HUD
   ============================================ */

#game-hud {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    background: rgba(20, 20, 32, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    z-index: 10;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hud-icon {
    font-size: 1.5rem;
}

.hud-info {
    display: flex;
    flex-direction: column;
}

.hud-label {
    font-size: 0.65rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hud-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.hud-money .hud-value {
    color: var(--color-accent-gold);
}

.hud-timer .hud-value {
    color: var(--color-text);
}

.hud-timer.warning .hud-value {
    color: var(--color-accent-red);
    animation: timerPulse 0.5s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hud-score .hud-value {
    color: var(--color-accent-orange);
}

/* ============================================
   FULLNESS BAR
   ============================================ */

#fullness-container {
    padding: 0.5rem 1.2rem 0.3rem;
    background: var(--color-surface);
}

.fullness-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--color-text-dim);
}

.fullness-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.fullness-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #2ec4b6, #44cf6c, #fcbf49, #f77f00, #e63946);
    background-size: 500% 100%;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.fullness-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    border-radius: 0 10px 10px 0;
}

.fullness-markers {
    position: absolute;
    inset: 0;
}

.marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.fullness-milestones {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--color-text-dim);
    margin-top: 0.2rem;
    padding: 0 0.2rem;
}

/* ============================================
   GAME AREA
   ============================================ */

#game-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-surface) 0%, #0d0d18 100%);
    min-height: 0;
}

/* Hot Pot Scene */
#hotpot-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 1rem;
}

#table-surface {
    width: 320px;
    height: 250px;
    background: radial-gradient(ellipse at center, #3d2b1f 0%, #2a1a10 70%, transparent 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#hotpot {
    width: 160px;
    height: 110px;
    position: relative;
}

.pot-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #444 0%, #333 50%, #222 100%);
    border-radius: 10px 10px 50% 50%;
    border: 3px solid #555;
    overflow: hidden;
    position: relative;
}

.pot-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #666;
    transform: translateX(-50%);
    z-index: 2;
}

.soup-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, #8b1a1a, #5c0e0e);
    opacity: 0.9;
}

.soup-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, #c4a35a, #a88b3d);
    opacity: 0.9;
}

.bubble {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    left: var(--bx);
    bottom: 20%;
    animation: bubbleUp var(--bd) ease-in-out infinite;
}

@keyframes bubbleUp {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-40px) scale(1); opacity: 0; }
}

.pot-steam {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
}

.steam-line {
    position: absolute;
    bottom: 0;
    left: var(--sx);
    width: 2px;
    height: 20px;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
    animation: steamRise 2s ease-out infinite;
    animation-delay: calc(var(--sx) * 0.01);
}

@keyframes steamRise {
    0% { transform: translateY(0) scaleY(0.5); opacity: 0.3; }
    100% { transform: translateY(-15px) scaleY(1.5); opacity: 0; }
}

/* Table items (food appearing on table) */
#table-items {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.table-food {
    position: absolute;
    font-size: 1.8rem;
    animation: foodAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: opacity 0.3s;
}

@keyframes foodAppear {
    0% { transform: scale(0) translateY(-20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ============================================
   WAITRESS CHARACTER
   ============================================ */

#waitress-container {
    position: absolute;
    right: 15%;
    bottom: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.waitress-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waitress-idle .waitress-body {
    animation: waitressIdle 3s ease-in-out infinite;
}

@keyframes waitressIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.waitress-head {
    width: 45px;
    height: 50px;
    position: relative;
}

.waitress-hair {
    width: 45px;
    height: 30px;
    background: linear-gradient(180deg, #1a1a2e, #16213e);
    border-radius: 50% 50% 0 0;
    position: absolute;
    top: 0;
}

.waitress-face {
    width: 35px;
    height: 35px;
    background: linear-gradient(180deg, #ffd5b4, #f4b88c);
    border-radius: 50%;
    position: absolute;
    top: 12px;
    left: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.waitress-eyes {
    display: flex;
    gap: 6px;
    font-size: 0.55rem;
    margin-top: -2px;
}

.eye {
    color: #1a1a2e;
}

.waitress-mouth {
    font-size: 0.6rem;
    margin-top: -2px;
    color: #e63946;
}

.waitress-torso {
    width: 40px;
    height: 45px;
    background: linear-gradient(180deg, #1a1a2e, #2d2d44);
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5px;
}

.waitress-apron {
    background: var(--color-accent-red);
    color: white;
    font-size: 0.45rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.1em;
}

.waitress-legs {
    width: 20px;
    height: 20px;
    border-left: 3px solid #1a1a2e;
    border-right: 3px solid #1a1a2e;
    margin-top: 0;
}

/* Waitress bow animation */
.waitress-bow .waitress-body {
    animation: none !important;
    transform-origin: bottom center;
    animation: bowDown 2s ease-in-out forwards !important;
}

@keyframes bowDown {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(90deg); }
    80% { transform: rotate(90deg); }
    100% { transform: rotate(0deg); }
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: -80px;
    right: -20px;
    background: white;
    color: #1a1a2e;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    max-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: speechAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    text-align: center;
    line-height: 1.4;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

@keyframes speechAppear {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.hidden {
    display: none !important;
}

/* ============================================
   FLOATING TEXTS
   ============================================ */

#floating-texts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}

.float-text {
    position: absolute;
    font-weight: 900;
    font-size: 1.2rem;
    white-space: nowrap;
    animation: floatTextUp 1.2s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.float-text.positive {
    color: var(--color-free);
}

.float-text.negative {
    color: var(--color-paid);
}

.float-text.meme {
    color: var(--color-accent-gold);
    font-size: 1.5rem;
}

@keyframes floatTextUp {
    0% { transform: translateY(0) scale(0.8); opacity: 1; }
    100% { transform: translateY(-80px) scale(1.2); opacity: 0; }
}

/* ============================================
   ORDER PANEL
   ============================================ */

#order-panel {
    background: var(--color-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem 1rem;
}

.panel-title {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
}

.order-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.order-btn {
    background: var(--color-surface-2);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
    color: var(--color-text);
}

.order-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.order-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.95);
}

.free-item {
    border-color: rgba(46, 196, 182, 0.2);
}

.free-item:hover:not(:disabled) {
    border-color: var(--color-free);
    box-shadow: var(--shadow-glow-free);
}

.paid-item {
    border-color: rgba(230, 57, 70, 0.15);
}

.paid-item:hover:not(:disabled) {
    border-color: var(--color-paid);
}

.trap-item {
    border-color: rgba(255, 0, 110, 0.15);
}

.order-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

.item-name {
    font-size: 0.7rem;
    font-weight: 700;
}

.item-price {
    font-size: 0.6rem;
    font-weight: 700;
}

.free-item .item-price {
    color: var(--color-free);
}

.paid-item .item-price {
    color: var(--color-paid);
}

.item-fullness {
    font-size: 0.55rem;
    color: var(--color-text-dim);
}

.btn-cooldown {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-accent-orange);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    width: 0%;
    transition: width linear;
}

/* ============================================
   COMBO DISPLAY
   ============================================ */

#combo-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 110, 0.15);
    border: 2px solid var(--color-combo);
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 15;
    animation: comboPulse 0.5s ease-in-out;
    backdrop-filter: blur(10px);
}

#combo-count {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-combo);
    text-shadow: 0 0 20px var(--color-combo);
}

.combo-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent-cream);
}

@keyframes comboPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* ============================================
   EVENT OVERLAY
   ============================================ */

#event-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
    animation: overlayIn 0.3s ease;
}

@keyframes overlayIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#event-content {
    text-align: center;
    animation: eventBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes eventBounce {
    0% { transform: scale(0) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

#event-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
}

#event-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#event-desc {
    font-size: 1rem;
    color: var(--color-text-dim);
    max-width: 300px;
}

/* ============================================
   END SCREEN
   ============================================ */

#end-screen {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a0a 50%, #0a0a1a 100%);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.end-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    animation: endSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes endSlideUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

#end-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#end-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--color-accent-gold);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow-gold);
}

#end-rank-emoji {
    font-size: 1.5rem;
}

#end-rank-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent-gold);
}

.end-stats {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent-cream);
}

.end-comment {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-accent-cream);
    font-style: italic;
}

/* ============================================
   RAGE METER (爆氣條)
   ============================================ */

#rage-container {
    padding: 0.3rem 1.2rem 0.4rem;
    background: var(--color-surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rage-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--color-text-dim);
}

#rage-stage-text {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--color-accent-orange);
    text-shadow: none;
    transition: all 0.3s;
}

#rage-stage-text.stage-1 {
    color: var(--color-accent-orange);
}

#rage-stage-text.stage-2 {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
    animation: rageTextPulse 0.6s ease-in-out infinite;
}

#rage-stage-text.stage-3 {
    color: #ff0040;
    font-size: 0.8rem;
    text-shadow: 0 0 15px rgba(255, 0, 64, 0.8);
    animation: rageTextPulse 0.3s ease-in-out infinite;
}

@keyframes rageTextPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.rage-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rage-fill {
    height: 100%;
    width: 0%;
    border-radius: 7px;
    background: linear-gradient(90deg, #ff8c00, #ff4500, #ff0040, #ff006e);
    background-size: 200% 100%;
    animation: rageGradientFlow 2s linear infinite;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.3);
}

@keyframes rageGradientFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.rage-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    border-radius: 0 7px 7px 0;
}

.rage-markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rage-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.rage-marker span {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.45rem;
    color: var(--color-text-dim);
    white-space: nowrap;
}

/* Rage mode active - whole game screen glows */
#game-screen.rage-mode {
    animation: rageModeGlow 0.5s ease-in-out infinite alternate;
}

#game-screen.rage-mode #rage-container {
    background: rgba(255, 0, 64, 0.15);
    border-bottom-color: rgba(255, 0, 64, 0.3);
}

#game-screen.rage-mode .rage-fill {
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.6);
}

@keyframes rageModeGlow {
    0% { box-shadow: inset 0 0 30px rgba(255, 0, 64, 0.05); }
    100% { box-shadow: inset 0 0 60px rgba(255, 0, 64, 0.15); }
}

/* Rage explosion effect */
.rage-explode {
    animation: rageExplode 0.6s ease-out;
}

@keyframes rageExplode {
    0% { transform: scale(1); filter: brightness(1); }
    30% { transform: scale(1.02); filter: brightness(1.5); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* Rage mode bonus indicator */
.rage-bonus-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff006e;
    text-shadow: 0 0 30px rgba(255, 0, 110, 0.8), 0 0 60px rgba(255, 0, 110, 0.4);
    z-index: 50;
    animation: rageBonusAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    white-space: nowrap;
}

@keyframes rageBonusAppear {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-15deg); opacity: 0; }
    60% { transform: translate(-50%, -50%) scale(1.2) rotate(3deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

/* ============================================
   CREDITS
   ============================================ */

.credits {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    text-align: center;
}

.credits-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
}

.credits-item {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    margin: 0.3rem 0;
}

.credits-item a {
    color: var(--color-accent-orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.credits-item a:hover {
    color: var(--color-accent-gold);
    border-bottom-color: var(--color-accent-gold);
    text-shadow: 0 0 8px rgba(252, 191, 73, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .game-title {
        font-size: 3rem;
    }

    .title-sub {
        font-size: 1.4rem;
    }

    .order-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.3rem;
    }

    .order-btn {
        padding: 0.4rem 0.2rem;
    }

    .item-emoji {
        font-size: 1.2rem;
    }

    .item-name {
        font-size: 0.6rem;
    }

    .hud-value {
        font-size: 1rem;
    }

    #waitress-container {
        right: 5%;
        bottom: 5%;
        transform: scale(0.8);
    }

    #table-surface {
        width: 240px;
        height: 200px;
    }

    #hotpot {
        width: 120px;
        height: 85px;
    }
}

/* ============================================
   SCREEN SHAKE
   ============================================ */

.screen-shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Button press flash */
.btn-flash {
    animation: btnFlash 0.2s ease;
}

@keyframes btnFlash {
    0% { background: rgba(255,255,255,0.3); }
    100% { background: var(--color-surface-2); }
}

/* Full body glow when combo */
.combo-glow {
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.4) !important;
    border-color: var(--color-combo) !important;
}
