/* v2: restrained tabletop depth. v1 styles remain intact underneath. */
#current-monster .card{width:130px!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:5/7;padding:0!important;position:relative}
#current-monster .card .card-image-sprite{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important}
#current-monster .card .card-image{width:100%;height:100%;object-fit:contain}
body.depth-view{background:radial-gradient(ellipse at 50% 48%,#334941 0%,#172325 48%,#0b1117 90%)}
.depth-view .game-container{max-width:1560px;perspective:1800px;padding-top:25px;gap:20px}
.depth-view .ai-top-zone{max-width:1120px;width:94%;margin:0 auto;border-radius:60px 60px 20px 20px;box-shadow:0 10px 25px #0007,inset 0 1px 0 #e8deb633;background:linear-gradient(160deg,#354840,#1b2929)}
.depth-view .top-row-section{transform:rotateX(5deg);transform-origin:center bottom;gap:24px}
.depth-view .market-section{position:relative;background:radial-gradient(ellipse at 30% 0%,#51614a66,transparent 75%),linear-gradient(145deg,#293d37,#172a29)!important;border:1px solid #cab17c66!important;box-shadow:0 8px 0 #0c1718,0 10px 0 #4f57402b,0 25px 38px #0008,inset 0 1px 0 #eee2bf38;border-radius:22px!important;padding:20px!important}
.depth-view .monsters-section{background:radial-gradient(ellipse at 75% 40%,#8b603232,transparent 80%),linear-gradient(160deg,#334638,#192628)!important;box-shadow:0 8px 0 #0c1718,0 25px 38px #0008,inset 0 1px 0 #eee2bf38;border-color:#d7b87b66!important}
.depth-view .card{box-shadow:0 2px 0 #d0b87666,0 4px 0 #101716,0 12px 20px #000b!important;border-radius:9px!important}
.depth-view .market-slot:nth-child(2n) .card{transform:translateY(-2px) rotate(.8deg)}
.depth-view .market-slot:nth-child(2n+1) .card{transform:rotate(-.8deg)}
.depth-view .card:hover{transform:translateY(-9px) rotate(0deg)!important;box-shadow:0 3px 0 #f0d49455,0 18px 24px #000c,0 0 22px #d7b77645!important}
.depth-view .played-cards-section{background:radial-gradient(ellipse at center,#29473966,transparent 80%),#111f21!important;box-shadow:inset 0 3px 15px #0009,inset 0 -1px 0 #dad4ac33;border-style:solid!important;border-color:#7a886846!important;border-radius:35px!important;margin:4px 28px;padding:14px 22px!important}
.depth-view .player-bottom-zone{box-shadow:0 5px 0 #0d1918,0 14px 26px #0009,inset 0 1px 0 #f2daa750;border-color:#ccb06b70!important;border-radius:24px!important;background:linear-gradient(125deg,#3d4f38,#183830 65%,#182a2c)!important}
.depth-view #player-hand{gap:6px!important;padding-top:14px!important;padding-bottom:14px!important;overflow:visible!important;flex-wrap:wrap}
.depth-view #player-hand .card{transform:translateY(var(--fan-rise,0px)) rotate(var(--fan-angle,0deg));transform-origin:50% 110%;margin:0 2px!important}
.depth-view #player-hand .card:hover,.depth-view #player-hand .card:focus-within{transform:translateY(-12px) rotate(0deg)!important;z-index:30}
.view-switch{white-space:nowrap;color:#e9d5a7}.depth-view .view-switch{border-color:#d6b97580;background:#d9bf7520}
@media(max-width:1100px){.depth-view .top-row-section{transform:none}.depth-view .played-cards-section{margin:0 10px}.depth-view .game-container{gap:16px}.depth-view .ai-top-zone{width:100%}}
@media(max-width:700px){#current-monster .card{width:84px!important}.depth-view .game-container{padding:12px;gap:12px;perspective:none}.depth-view .ai-top-zone{border-radius:18px}.depth-view .played-cards-section{margin:0;padding:12px!important;border-radius:18px!important}.depth-view .market-section{padding:12px!important}.depth-view #player-hand{overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap;padding:7px 4px!important;gap:10px!important}.depth-view #player-hand .card{transform:none}.depth-view .top-row-section{gap:12px}.view-switch{font-size:9px!important;min-height:28px!important}.depth-view .card:hover{transform:none!important}}
@media(prefers-reduced-motion:reduce){.depth-view .top-row-section,.depth-view .card,.depth-view #player-hand .card{transform:none!important}}
.depth-view .monsters-section{flex-direction:column!important;align-items:stretch}.depth-view .monsters-section>.monster-label{width:auto;flex:none;font-size:9px;line-height:1.4;letter-spacing:1.2px;margin-bottom:10px}.depth-view .monster-altar-row{justify-content:center;gap:12px}.depth-view .monster-altar-cell{flex:0 1 auto;width:auto}
@media(max-width:700px){.depth-view .monsters-section{flex-direction:row!important;align-items:center}.depth-view .monsters-section>.monster-label{width:52px!important;flex:0 0 52px!important;margin-bottom:0;font-size:8px}.depth-view .monster-altar-row{gap:8px}.depth-view .monster-altar-cell{flex:1;min-width:0}}
