@import"https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap";:root{--card-width: clamp(80px, 18vw, 200px);--card-height: calc(var(--card-width) * 1.4);--card-border-radius: calc(var(--card-width) * .05);--gap: clamp(10px, 2vw, 20px);--row-gap: clamp(50px, 10vw, 100px);--padding: clamp(15px, 4vw, 40px);--health-size: clamp(36px, 7vw, 64px);--bg-dark: #1a1a1a;--health-color: #ff3333;--highlight-color: #ffd700;--card-shadow: drop-shadow(2px 2px 4px rgba(0, 0, 0, .3));--card-shadow-subtle: drop-shadow(.2px .2px .4px rgba(0, 0, 0, .03));--card-hover-shadow: drop-shadow(0 -3px 0 var(--highlight-color)) drop-shadow(0 3px 0 var(--highlight-color)) drop-shadow(-3px 0 0 var(--highlight-color)) drop-shadow(3px 0 0 var(--highlight-color)) drop-shadow(2px 4px 6px rgba(0, 0, 0, .4));--text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 4px 4px 8px rgba(0, 0, 0, .8)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Arial,sans-serif;background:var(--bg-dark);width:100vw;height:100vh;overflow:hidden;background-image:url(/backdrop.png);background-image:image-set(url(/backdrop.webp) type("image/webp"),url(/backdrop.png) type("image/png"));background-size:cover;background-position:center;display:flex;justify-content:center;align-items:center;cursor:url(/cursors/pointer.webp) 0 0,url(/cursors/pointer.png) 0 0,auto}#root{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.game-container{max-width:1200px;width:100%;max-height:600px;height:100%;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:1fr 1fr;gap:var(--row-gap) var(--gap);padding:var(--padding);align-items:center}.game-container>:nth-child(1){grid-column:1;grid-row:1}.game-container>:nth-child(2){grid-column:2 / -1;grid-row:1}.game-container>:nth-child(3){grid-column:1;grid-row:2}.game-container>:nth-child(4){grid-column:2;grid-row:2}.game-container>:nth-child(5){grid-column:3;grid-row:2}@media (max-width: 768px){.game-container{grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr auto;gap:clamp(20px,4vw,40px) var(--gap)}.game-container>:nth-child(1){grid-column:1;grid-row:3}.game-container>:nth-child(2){grid-column:1 / -1;grid-row:2}.game-container>:nth-child(3){grid-column:1 / -1;grid-row:1;justify-self:center}.game-container>:nth-child(4){grid-column:2;grid-row:3}.game-container>:nth-child(5){grid-column:3;grid-row:3}.health-container{justify-content:center;min-width:auto;flex-basis:auto}}.deck-area{display:flex;align-items:center;justify-content:flex-start;flex-shrink:0}.deck-stack{background:none;border:none;cursor:url(/cursors/pointer.webp) 0 0,url(/cursors/pointer.png) 0 0,pointer;padding:0;position:relative;width:var(--card-width);height:var(--card-height);transition:transform .2s;transform:rotate(-4deg)}.deck-stack:hover:not(:disabled){transform:translateY(-10px) rotate(-4deg)}.deck-stack:disabled{cursor:default;opacity:.9}.deck-pile{position:relative;width:100%;height:100%}.deck-pile-background{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;transform:scale(1.08);transition:opacity .2s,transform .2s;transform-origin:center center}.deck-stack:hover:not(:disabled) .deck-pile-background{opacity:1}.deck-card,.deck-card-background{position:absolute;top:0;left:0;width:100%;height:100%;transition:transform .2s ease-out}.deck-card-yellow-bg{width:100%;height:100%;background:var(--highlight-color);border-radius:var(--card-border-radius)}.deck-card img{position:relative;width:100%;height:100%;object-fit:contain;filter:var(--card-shadow-subtle);border-radius:var(--card-border-radius)}.deck-card:last-child img{filter:var(--card-shadow)}.room-area{display:flex;align-items:center;justify-content:center;gap:var(--gap);flex-grow:1}.card{position:relative;background:none;border:none;cursor:url(/cursors/pointer.webp) 0 0,url(/cursors/pointer.png) 0 0,pointer;padding:0;width:var(--card-width);min-height:var(--card-height);aspect-ratio:calc(1 / 1.4);transition:transform .2s}.card-slot{width:var(--card-width);height:var(--card-height)}.card-background{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--highlight-color);border-radius:var(--card-border-radius);opacity:0;transform:scale(1.08);transition:opacity .2s,transform .2s;z-index:-1}.card:hover{transform:translateY(-5px) rotate(0)!important}.card:hover .card-background{opacity:1}.card img{position:relative;width:100%;height:100%;object-fit:contain;filter:var(--card-shadow);border-radius:var(--card-border-radius);transition:filter .2s}.card.attackable{cursor:url(/cursors/fist.webp) 0 0,url(/cursors/fist.png) 0 0,crosshair}.card.attackable.has-weapon{cursor:url(/cursors/sword.webp) 0 0,url(/cursors/sword.png) 0 0,crosshair}.card.healable{cursor:url(/cursors/potion.webp) 0 0,url(/cursors/potion.png) 0 0,crosshair}.card.healable.already-healed{cursor:url(/cursors/potion-empty.webp) 0 0,url(/cursors/potion-empty.png) 0 0,crosshair}.card.repairable{cursor:url(/cursors/hammer.webp) 0 0,url(/cursors/hammer.png) 0 0,crosshair}.fist-option{position:absolute;bottom:8px;left:8px;width:32px;height:32px;opacity:0;transition:opacity .2s,transform .2s;cursor:url(/cursors/fist.webp) 0 0,url(/cursors/fist.png) 0 0,crosshair;z-index:10}.card:hover .fist-option{opacity:.65}.card:hover .fist-option:hover{opacity:1;transform:scale(1.1)}.fist-option img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(1px 1px 2px rgba(0,0,0,.5))}.room-card-0{transform:rotate(-3deg)}.room-card-1{transform:rotate(2deg)}.room-card-2{transform:rotate(-1deg)}.room-card-3{transform:rotate(4deg)}.health-container{display:flex;align-items:center;justify-content:flex-start;flex-shrink:0;min-width:clamp(120px,20vw,240px);flex-basis:clamp(120px,20vw,240px)}.health{font-family:"Press Start 2P",cursive;font-size:var(--health-size);color:var(--health-color);text-shadow:var(--text-shadow);padding:clamp(10px,2vw,20px);letter-spacing:2px}.weapon-area{display:flex;align-items:center;justify-content:center;flex-grow:1}.weapon-display{position:relative;width:var(--card-width);height:var(--card-height);transform:rotate(-2deg)}.weapon-stack{position:relative;display:flex;flex-direction:column;align-items:center}.weapon-stack .card-in-stack{position:absolute;width:var(--card-width);height:var(--card-height);transition:transform .3s ease}.weapon-stack .card-in-stack img{width:100%;height:100%;object-fit:contain;filter:var(--card-shadow-subtle);border-radius:var(--card-border-radius)}.weapon-stack .card-in-stack.weapon-card{z-index:1}.weapon-stack .card-in-stack.weapon-card img{filter:var(--card-shadow)}.discard-area{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;min-width:var(--card-width);flex-basis:var(--card-width)}.discard-pile{position:relative;width:var(--card-width);height:var(--card-height);transform:rotate(12deg);transform-origin:center center}.discard-card{position:absolute;top:0;left:0;width:100%;height:100%;transition:transform .2s ease-out}.discard-card img{width:100%;height:100%;object-fit:contain;filter:var(--card-shadow-subtle);border-radius:var(--card-border-radius)}.discard-card:first-child img{filter:var(--card-shadow)}.game-container.transitioning{pointer-events:none}.game-container.transitioning .deck-stack{opacity:.7;animation:pulse-deck 1s ease-in-out infinite}@keyframes pulse-deck{0%,to{transform:rotate(-4deg) scale(1)}50%{transform:rotate(-4deg) scale(1.05)}}.game-container.game-over{filter:blur(8px);pointer-events:none}.game-over-overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;z-index:100;background:#00000080}.game-over-modal{background:linear-gradient(145deg,#2a1a1a,#1a0a0a);border:3px solid #8b0000;border-radius:16px;padding:40px 50px;text-align:center;box-shadow:0 0 40px #8b000080,inset 0 0 60px #00000080}.game-over-modal h1{font-family:"Press Start 2P",cursive;font-size:32px;color:#f33;text-shadow:3px 3px 0 #000,0 0 20px rgba(255,51,51,.5);margin-bottom:20px;letter-spacing:2px}.game-over-modal.victory{border-color:gold;box-shadow:0 0 40px #ffd70066,inset 0 0 60px #00000080}.game-over-modal.victory h1{color:gold;text-shadow:3px 3px 0 #000,0 0 20px rgba(255,215,0,.5)}.score-display{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:25px;padding:15px 30px;background:#0000004d;border-radius:8px}.score-value{font-family:"Press Start 2P",cursive;font-size:48px;text-shadow:3px 3px 0 #000}.score-value.positive{color:#4ade80}.score-value.negative{color:#f33}.score-label{font-family:"Press Start 2P",cursive;font-size:12px;color:#888;text-transform:uppercase;letter-spacing:4px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:30px}.stat{display:flex;flex-direction:column;gap:8px}.stat-value{font-family:"Press Start 2P",cursive;font-size:24px;color:gold;text-shadow:2px 2px 0 #000}.stat-label{font-family:"Press Start 2P",cursive;font-size:10px;color:#888;text-transform:uppercase}.replay-button{font-family:"Press Start 2P",cursive;font-size:14px;color:#fff;background:linear-gradient(180deg,#8b0000,#5a0000);border:2px solid #ff3333;border-radius:8px;padding:15px 30px;cursor:url(/cursors/pointer.webp) 0 0,url(/cursors/pointer.png) 0 0,pointer;transition:all .2s;text-shadow:1px 1px 0 #000;box-shadow:0 4px #3a0000}.replay-button:hover{background:linear-gradient(180deg,#a00000,#700000);transform:translateY(-2px);box-shadow:0 6px #3a0000}.replay-button:active{transform:translateY(2px);box-shadow:0 2px #3a0000}.help-button{position:fixed;bottom:clamp(15px,3vw,30px);right:clamp(15px,3vw,30px);width:48px;height:48px;background:none;border:none;color:#fff;font-family:"Press Start 2P",cursive;font-size:24px;cursor:url(/cursors/pointer.webp) 0 0,url(/cursors/pointer.png) 0 0,pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;z-index:50;opacity:.6}.help-button:hover{transform:scale(1.1);opacity:1}.help-button:active{transform:scale(.95)}.help-icon{line-height:1;text-shadow:2px 2px 4px rgba(0,0,0,.8)}.help-overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;z-index:100;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.help-modal{position:relative;background:linear-gradient(145deg,#2a1a1a,#1a0a0a);border:3px solid var(--highlight-color);border-radius:16px;padding:40px 50px;max-width:600px;max-height:80vh;overflow-y:auto;box-shadow:0 0 40px #ffd70066,inset 0 0 60px #00000080}.help-close{position:absolute;top:15px;right:15px;width:32px;height:32px;border:none;background:#ffffff1a;color:var(--highlight-color);font-family:"Press Start 2P",cursive;font-size:20px;cursor:url(/cursors/pointer.webp) 0 0,url(/cursors/pointer.png) 0 0,pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .2s;line-height:1}.help-close:hover{background:#fff3;transform:scale(1.1)}.help-modal h1{font-family:"Press Start 2P",cursive;font-size:32px;color:var(--highlight-color);text-shadow:3px 3px 0 #000,0 0 20px rgba(255,215,0,.5);margin-bottom:25px;letter-spacing:2px;text-align:center}.help-content{color:#ddd;font-family:Arial,sans-serif;line-height:1.6}.help-content p{margin-bottom:20px}.help-section{margin-top:30px}.help-section h2{font-family:"Press Start 2P",cursive;font-size:16px;color:var(--highlight-color);text-shadow:2px 2px 0 #000;margin-bottom:15px;letter-spacing:1px}.help-section ul{list-style:none;padding-left:0}.help-section li{margin-bottom:15px;padding-left:20px;position:relative}.help-section li:before{content:"•";position:absolute;left:0;color:var(--highlight-color);font-weight:700}.help-section strong{color:var(--highlight-color)}.help-section a{color:var(--highlight-color);text-decoration:underline;transition:opacity .2s}.help-section a:hover{opacity:.8}.settings-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.settings-row label{font-family:"Press Start 2P",cursive;font-size:12px;color:#ddd;margin:0}.sound-toggle{font-family:"Press Start 2P",cursive;font-size:12px;padding:8px 16px;border:2px solid var(--highlight-color);border-radius:4px;background:linear-gradient(145deg,#2a1a1a,#1a0a0a);color:var(--highlight-color);cursor:url(/cursors/pointer.webp) 0 0,url(/cursors/pointer.png) 0 0,pointer;transition:all .2s;text-shadow:1px 1px 0 #000;min-width:50px}.sound-toggle.enabled{background:linear-gradient(145deg,#4a3a3a,#2a1a1a);box-shadow:inset 0 0 10px #ffd7004d}.sound-toggle.disabled{background:linear-gradient(145deg,#1a0a0a,#0a0000);color:#666;text-shadow:1px 1px 0 #333}.sound-toggle:hover{transform:scale(1.05);box-shadow:0 0 10px #ffd70080}.sound-toggle:active{transform:scale(.95)}.custom-rules{margin-top:20px;padding-top:20px;border-top:1px solid rgba(255,215,0,.2)}.custom-rules h3{font-family:"Press Start 2P",cursive;font-size:14px;color:var(--highlight-color);text-shadow:2px 2px 0 #000;margin-bottom:15px;letter-spacing:1px}.custom-rule-item{margin-bottom:20px}.custom-rule-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.custom-rule-label{font-family:"Press Start 2P",cursive;font-size:11px;color:#ddd;margin:0 10px 0 0;flex:1}.custom-rule-toggle{font-family:"Press Start 2P",cursive;font-size:12px;padding:8px 16px;border:2px solid var(--highlight-color);border-radius:4px;background:linear-gradient(145deg,#2a1a1a,#1a0a0a);color:var(--highlight-color);cursor:url(/cursors/pointer.webp) 0 0,url(/cursors/pointer.png) 0 0,pointer;transition:all .2s;text-shadow:1px 1px 0 #000;min-width:50px;flex-shrink:0}.custom-rule-toggle.enabled{background:linear-gradient(145deg,#4a3a3a,#2a1a1a);box-shadow:inset 0 0 10px #ffd7004d}.custom-rule-toggle.disabled{background:linear-gradient(145deg,#1a0a0a,#0a0000);color:#666;text-shadow:1px 1px 0 #333}.custom-rule-toggle:hover{transform:scale(1.05);box-shadow:0 0 10px #ffd70080}.custom-rule-toggle:active{transform:scale(.95)}.custom-rule-description{font-size:12px;color:#aaa;line-height:1.5;margin:0;padding-left:0}
