#holegame{position:relative;width:100%;max-width:480px;margin:10px auto;font-family:"Courier New",monospace;font-size:11px;color:#ccc;text-align:center}
#hole-login,#hole-leaderboard,#hole-guide{padding:20px 10px;background:#111;border-top:2px solid #666;border-left:2px solid #666;border-right:2px solid #222;border-bottom:2px solid #222}
.holegame-title{margin-bottom:4px;color:#900;font-family:"Times New Roman",serif;font-size:20px;font-weight:bold}
.holegame-subtitle{margin-bottom:15px;font-size:9px}
#hole-login input{display:block;width:180px;margin:6px auto;padding:5px;box-sizing:border-box;background:#000;color:#fff;border:2px inset #777;font-family:"Courier New",monospace;font-size:12px}
#hole-login-status{min-height:14px;margin-top:8px;color:#ff0}
#hole-player-bar{min-height:18px;padding:5px;background:#222;text-align:left}
#hole-logout-button{float:right}

/* DIG WINDOW HEADER */
#hole-dig-frame{
margin-top:6px;
background:#070807;
border:1px solid #4b654b
}

#hole-dig-frame-bar{
display:flex;
align-items:center;
justify-content:space-between;
padding:4px 6px;
background:#142014;
border-bottom:1px solid #4b654b;
color:#79dd79;
font-size:9px;
font-weight:bold;
text-align:left
}

#hole-dig-frame-bar>div{
display:flex;
gap:4px
}

#hole-dig-frame-bar button{
width:auto!important;
margin:0!important;
padding:2px 8px!important;
background:#152315!important;
color:#8dbe8d!important;
border:1px solid #405840!important;
box-shadow:none!important;
text-shadow:none!important;
font-size:8px!important;
font-weight:bold!important
}

#hole-dig-frame-bar button:active{
background:#0d180d!important;
border:1px solid #405840!important;
box-shadow:none!important
}

/* canvas now belongs visually to the frame */
#hole-dig-frame #hole-canvas{
border:0
}

#hole-dig-frame #hole-canvas-wrap{
border:0
}

/* PLAYER BAR */
#hole-player-bar{
display:flex;
align-items:center;
justify-content:space-between;
min-height:18px;
padding:5px 6px;
background:#111;
border:1px solid #333;
color:#888;
text-align:left
}

#hole-player-name{
color:#ddd
}

.hole-player-controls{
display:flex;
gap:4px
}

#hole-player-bar #hole-info-button,
#hole-player-bar #hole-mute-button,
#hole-player-bar #hole-logout-button{
float:none!important;
width:auto!important;
margin:0!important;
padding:2px 7px!important;
background:#171717!important;
color:#999!important;
border:1px solid #444!important;
box-shadow:none!important;
text-shadow:none!important;
font-size:8px!important
}

#hole-player-bar #hole-info-button{
color:#b9b9b9!important;
border-color:#555!important
}

#hole-player-bar #hole-mute-button{
color:#8dbe8d!important;
border-color:#405840!important
}

#hole-player-bar #hole-logout-button{
color:#b98b8b!important;
border-color:#5a3c3c!important
}

#hole-player-bar #hole-mute-button:active{
background:#102010!important
}

#hole-player-bar #hole-logout-button:active{
background:#241010!important
}

/* CANVAS */

#hole-canvas-wrap{position:relative;width:100%}
#hole-canvas{display:block;width:calc(100% - 4px);height:auto;box-sizing:content-box;background:#000;border:2px inset #777;aspect-ratio:8/5;image-rendering:auto;touch-action:none}
#hole-effects{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none}

/* BUTTONS */

#holegame button{box-sizing:border-box;padding:5px 10px;background:#600;color:#fff;border-top:2px solid #a44;border-left:2px solid #a44;border-right:2px solid #300;border-bottom:2px solid #300;font-family:"Courier New",monospace;font-size:10px;font-weight:bold;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
#holegame button:active{border-top-color:#300;border-left-color:#300;border-right-color:#a44;border-bottom-color:#a44}
#holegame button:disabled{background:#241818;color:#555;border-top-color:#433;border-left-color:#433;border-right-color:#160b0b;border-bottom-color:#160b0b;cursor:default}
#hole-mute-button{
float:right;
margin-right:4px
}

/* CAMERA */

#hole-camera-controls{padding:5px;background:#111;border-left:1px solid #555;border-right:1px solid #555;text-align:center}
#hole-camera-controls button{min-width:120px;margin:0 2px}

/* DEPTH / MONEY */

#hole-main-readout{display:grid;grid-template-columns:1fr 1fr;background:#090909;border-left:1px solid #555;border-right:1px solid #555;border-bottom:1px solid #444}
#hole-main-readout>div{min-width:0;padding:11px 6px 10px;text-align:center}
#hole-main-readout>div:first-child{border-right:1px solid #333}
.hole-readout-label{display:block;margin-bottom:3px;color:#777;font-size:9px;font-weight:normal;letter-spacing:1px}
#hole-main-readout b{display:block;color:#fff;font-size:18px;line-height:1.1;letter-spacing:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* INFO */

#hole-info{display:grid;grid-template-columns:repeat(6,1fr);background:#0d0d0d;border-left:1px solid #555;border-right:1px solid #555;border-bottom:1px solid #555;text-align:center}
#hole-info>div{min-width:0;box-sizing:border-box}
.hole-info-active-power{grid-column:1/span 3;border-right:1px solid #333}
.hole-info-passive-power{grid-column:4/span 3}
.hole-info-power{padding:9px 5px;border-bottom:1px solid #333}
.hole-info-power>span{display:block;margin-bottom:4px;color:#888;font-size:9px;line-height:1}
.hole-power-value-wrap{display:flex;align-items:baseline;justify-content:center;gap:7px;min-height:22px;white-space:nowrap}
.hole-info-power .hole-power-value-wrap b{display:inline-block;color:#fff;font-size:19px;line-height:1.15;white-space:nowrap}
.hole-power-gain{display:inline-block;visibility:hidden;color:#6f6;font-size:10px;line-height:1;font-style:normal;font-weight:bold;opacity:0;text-shadow:1px 1px #000;white-space:nowrap}
.hole-power-gain.show{visibility:visible;animation:holePowerGain 1.05s ease-out forwards}

@keyframes holePowerGain{
0%{opacity:0;transform:translateY(6px) scale(.85)}
15%{opacity:1;transform:translateY(0) scale(1.1)}
65%{opacity:1;transform:translateY(0) scale(1)}
100%{opacity:0;transform:translateY(-7px) scale(1)}
}

.hole-info-layer{grid-column:1/span 2;border-right:1px solid #333}
.hole-info-hardness{grid-column:3/span 2;border-right:1px solid #333}
.hole-info-value{grid-column:5/span 2}
.hole-info-small{padding:8px 4px}
.hole-info-small span{display:block;margin-bottom:4px;color:#888;font-size:9px;line-height:1}
.hole-info-small b{display:block;color:#fff;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hole-info-hardness b{font-size:16px}

/* PERFORMANCE */

#hole-performance{display:grid;grid-template-columns:1fr 1fr;background:#060606;border-left:1px solid #555;border-right:1px solid #555;border-bottom:1px solid #444}
#hole-performance i{display:block;margin-top:3px;color:#6c6;font-size:9px;font-style:normal;white-space:nowrap}
#hole-performance>div{min-width:0;padding:6px 4px;text-align:center}
#hole-performance>div:first-child{border-right:1px solid #333}
#hole-performance span{display:block;margin-bottom:2px;color:#777;font-size:9px}
#hole-performance b{display:block;color:#ff0;font-size:10px;white-space:nowrap}

/* DIG */

#hole-dig-button{width:100%;height:55px;margin-top:6px;font-size:18px!important;border-width:3px!important}

/* BUY AMOUNT */

#hole-buy-amount{display:flex;align-items:center;justify-content:center;gap:3px;margin-top:6px;padding:4px;box-sizing:border-box;background:#111;border:1px solid #444;touch-action:manipulation}
#hole-buy-amount>span{margin-right:2px;color:#777;font-size:8px;font-weight:bold}
#hole-buy-amount button{min-width:42px;padding:4px 5px!important;background:#292929!important;color:#888!important;border-top-color:#555!important;border-left-color:#555!important;border-right-color:#171717!important;border-bottom-color:#171717!important;font-size:9px!important}
#hole-buy-amount button[data-buy-amount="rank"]{white-space:nowrap;min-width:max-content}
#hole-buy-amount button.selected{background:#600!important;color:#fff!important;border-top-color:#a44!important;border-left-color:#a44!important;border-right-color:#300!important;border-bottom-color:#300!important}

/* SHOP */

#hole-upgrade-menus{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}
.hole-upgrade-menu{min-width:0;background:#0b0b0b;border:1px solid #555;text-align:left}
.hole-upgrade-menu-title{display:flex;justify-content:space-between;gap:6px;padding:6px;background:#222;border-bottom:1px solid #444;color:#aaa;font-size:10px;font-weight:bold}
.hole-upgrade-menu-title span:last-child{color:#ddd;text-align:right}
.hole-item-list{height:275px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#666 #111}
.hole-item-list::-webkit-scrollbar,#hole-mystic-shop-list::-webkit-scrollbar,.hole-guide-content::-webkit-scrollbar{width:8px}
.hole-item-list::-webkit-scrollbar-track,#hole-mystic-shop-list::-webkit-scrollbar-track,.hole-guide-content::-webkit-scrollbar-track{background:#111}
.hole-item-list::-webkit-scrollbar-thumb,#hole-mystic-shop-list::-webkit-scrollbar-thumb,.hole-guide-content::-webkit-scrollbar-thumb{background:#555;border:1px solid #222}

.hole-shop-item{position:relative;min-height:125px;margin:2px;padding:7px;box-sizing:border-box;background:#101010;border:2px solid #383838;border-bottom-color:#555}
.hole-shop-item.owned{background:#121212}
.hole-shop-item.available{background:#090909}
.hole-shop-item.locked{display:none}

.hole-shop-current{position:relative;min-height:61px;padding-right:66px}
.hole-shop-current-text{min-width:0}
.hole-shop-item-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 6px;min-width:0}
.hole-shop-item-head b{min-width:0;color:#fff;font-size:12px;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hole-shop-level{color:#999;font-size:9px;white-space:nowrap}
.hole-shop-rank{margin-top:4px;font-size:9px;line-height:1.15;font-weight:bold}
.hole-shop-item-total{margin-top:7px;color:#777;font-size:9px;line-height:1.2;white-space:nowrap}
.hole-shop-item-total b{color:#bbb;font-size:10px}
.hole-shop-item-locked{margin-top:5px;color:#555;font-size:8px}

.hole-item-frame{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:58px;height:58px;box-sizing:border-box;overflow:hidden;background:#050505;border-top:2px solid #555;border-left:2px solid #555;border-right:2px solid #222;border-bottom:2px solid #222;color:#555;font-family:"Courier New",monospace;font-size:17px;font-weight:bold}
.hole-item-frame img{display:block;width:100%;height:100%;object-fit:fill;image-rendering:pixelated}

.hole-shop-next-row{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;align-items:end;margin-top:6px;padding-top:5px;border-top:1px dotted #4a4a4a}
.hole-next-upgrade{min-width:0;margin:0;padding:0;border:0;color:#b0b0b0;font-size:9px;line-height:1.18;text-align:left}
.hole-next-title{margin-bottom:2px;color:#777;font-size:8px;font-weight:bold}
.hole-next-rank-title{color:#ff6;font-size:9px}
.hole-math-base{color:#ccc;font-size:10px;font-weight:bold;line-height:1.15}
.hole-bulk-level{margin-bottom:2px;color:#aaa;font-size:9px;font-weight:bold}
.hole-no-purchase{color:#555;font-size:8px}
.hole-math-bonus-row,.hole-math-multi-row,.hole-math-total-row{position:relative;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 4px;padding-left:35px;min-height:11px;margin-top:2px;line-height:1.15}
.hole-math-bonus-row .hole-math-label,.hole-math-multi-row .hole-math-label,.hole-math-total-row .hole-math-label{position:absolute;left:0;top:1px;width:31px}
.hole-math-context{margin-top:3px;color:#888;font-size:7px}
.hole-bonus-token.hole-math-sum{padding:0 3px;border:1px solid #494638;background:rgba(255,243,160,.04);color:#ddd;font-weight:bold;white-space:nowrap}
.hole-math-total-row{padding-top:2px;border-top:1px dotted #454035}
.hole-math-total-row .hole-math-label{top:3px}
.hole-math-total{color:#fff3a0;font-weight:bold;white-space:nowrap}
.hole-math-label{color:#666;font-size:8px}
.hole-math-rank-bonus,.hole-math-mystic{font-weight:bold;white-space:nowrap}
.hole-rank-arrow{margin:0 2px;color:#777}
.hole-rank-upgrade-note{margin-top:2px;color:#999;font-size:8px}
.hole-upgrade-result{margin-top:2px;color:#5be05b;font-size:10px;font-weight:bold;white-space:nowrap}
.hole-upgrade-percent{color:#43a843;font-size:8px;font-weight:normal}
.hole-shop-buy{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-width:0;text-align:right}
.hole-shop-price{min-width:0;margin:0;color:#ccc;font-size:9px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hole-shop-buy button{flex:0 0 105px;width:105px;min-width:0!important;margin:0;padding:5px 2px!important;font-size:8px!important}

.hole-shop-item.available .hole-shop-item-head b{color:#707070}
.hole-shop-item.available .hole-shop-level{color:#555}
.hole-shop-item.available .hole-shop-rank{color:#555!important}
.hole-shop-item.available .hole-shop-item-total{color:#484848}
.hole-shop-item.available .hole-shop-item-total b{color:#555}
.hole-shop-item.available .hole-item-frame{background:#050505;border-top-color:#303030;border-left-color:#303030;border-right-color:#151515;border-bottom-color:#151515;color:#3d3d3d}
.hole-shop-item.available .hole-next-upgrade{color:#555}
.hole-shop-item.available .hole-next-title{color:#444}
.hole-shop-item.available .hole-math-base{color:#555}
.hole-shop-item.available .hole-math-label{color:#444}
.hole-shop-item.available .hole-math-rank-bonus,.hole-shop-item.available .hole-math-mystic{opacity:.45}
.hole-shop-item.available .hole-upgrade-result{color:#356535}
.hole-shop-item.available .hole-upgrade-percent{color:#315331}
.hole-shop-item.available .hole-shop-price{color:#666}

/* GAMBLER BONUS IN SHOP */

.hole-math-gambler{
background:linear-gradient(90deg,#ff4545,#ff9d32,#ffe44d,#58dc6a,#46cddb,#568cff,#a866ff,#ff55bd,#ff4545);
background-size:300% 100%;
-webkit-background-clip:text;
background-clip:text;
-webkit-text-fill-color:transparent;
color:#fff;
font-weight:bold;
white-space:nowrap;
animation:holeGamblerRainbow 2.5s linear infinite
}

@keyframes holeGamblerRainbow{
0%{background-position:0 0}
100%{background-position:300% 0}
}

/* RANK */

.hole-rank-r1{--rank-color:#a66a3f}
.hole-rank-r2{--rank-color:#bfc3c8}
.hole-rank-r3{--rank-color:#d6b43c}
.hole-rank-r4{--rank-color:#35b96f}
.hole-rank-r5{--rank-color:#36d4d0}
.hole-rank-r6{--rank-color:#4f78ff}
.hole-rank-r7{--rank-color:#8d5cff}
.hole-rank-r8{--rank-color:#c84cff}
.hole-rank-r9{--rank-color:#df3d56}
.hole-rank-r10{--rank-color:#ff7c32}
.hole-rank-r11{--rank-color:#d9ff41}
.hole-rank-r12{--rank-color:#b7f5ff}
.hole-rank-r13{--rank-color:#2affc0}
.hole-rank-r14{--rank-color:#ff4fc4}
.hole-rank-r15{--rank-color:#fff}

.hole-shop-item[class*="hole-rank-"]{
border:2px solid var(--rank-color);
box-shadow:0 0 3px var(--rank-color),inset 0 0 2px var(--rank-color);
}

#hole-joker-leaderboard-wrap{
padding:7px;
border-top:1px solid #304430;
text-align:center
}

#hole-joker-leaderboard{
margin-top:0px;
padding:7px;
background:#050605;
border:1px solid #304430;
text-align:left
}

.hole-joker-title{
display:grid;
grid-template-columns:1fr auto 1fr;
align-items:center;
padding:5px 7px;
background:#142014;
border-bottom:1px solid #4b654b;
color:#79dd79;
font-size:11px;
font-weight:bold
}

.hole-joker-title>span:last-child{
color:#658565;
font-size:8px;
text-align:right
}

.hole-joker-leaderboard-row{
display:flex;
align-items:baseline;
gap:4px;
padding:4px 0;
font-size:9px;
white-space:nowrap
}

#hole-joker-leaderboard-button{
width:auto!important;
margin:0!important;
padding:2px 9px!important;
background:#152315!important;
color:#8dbe8d!important;
border:1px solid #405840!important;
box-shadow:none!important;
text-shadow:none!important;
font-size:8px!important;
font-weight:bold
}

#hole-joker-leaderboard-button:active{
background:#0d180d!important;
border:1px solid #405840!important;
box-shadow:none!important
}

.hole-joker-rank{color:#777}

.hole-joker-leaderboard-row>b{color:#ddd}

.hole-joker-leaderboard-row>i{
flex:1;
min-width:5px;
border-bottom:1px dotted #333
}

.hole-joker-leaderboard-row>strong{
color:#fff;
font-size:9px
}

.hole-joker-leaderboard-row>em{
font-size:8px;
font-style:normal;
font-weight:bold
}

.hole-joker-leaderboard-row>em.positive{color:#66ff66}
.hole-joker-leaderboard-row>em.negative{color:#ff6666}

@media screen and (max-width:600px){
.hole-joker-leaderboard-row{font-size:8px;gap:3px}
.hole-joker-leaderboard-row>strong{font-size:8px}
.hole-joker-leaderboard-row>em{font-size:7px}
}

.hole-shop-item[class*="hole-rank-"] .hole-item-frame{border:2px solid var(--rank-color);box-shadow:0 0 3px var(--rank-color),inset 0 0 2px var(--rank-color)}
.hole-rank-r15 .hole-item-frame{animation:holeUltimateRank .8s steps(2,end) infinite}

@keyframes holeUltimateRank{
0%{box-shadow:0 0 3px #fff,inset 0 0 2px #fff}
50%{box-shadow:0 0 9px #fff,0 0 13px #ff9,inset 0 0 5px #fff}
100%{box-shadow:0 0 3px #fff,inset 0 0 2px #fff}
}

.hole-shop-item.hole-rank-flash{z-index:3}
.hole-rank-rim{position:absolute;inset:0;z-index:30;overflow:hidden;pointer-events:none}
.hole-rank-rim i{position:absolute;display:block;opacity:0;pointer-events:none;filter:drop-shadow(0 0 2px var(--rank-flash-color))}
.hole-rim-top{top:0;left:-38%;width:38%;height:2px;background:linear-gradient(90deg,transparent 0%,var(--rank-flash-color) 35%,#fff 60%,var(--rank-flash-color) 78%,transparent 100%);animation:holeRimTop .30s linear 0s both}
.hole-rim-right{top:-45%;right:0;width:2px;height:45%;background:linear-gradient(180deg,transparent 0%,var(--rank-flash-color) 35%,#fff 60%,var(--rank-flash-color) 78%,transparent 100%);animation:holeRimRight .20s linear .26s both}
.hole-rim-bottom{right:-38%;bottom:0;width:38%;height:2px;background:linear-gradient(90deg,transparent 0%,var(--rank-flash-color) 35%,#fff 60%,var(--rank-flash-color) 78%,transparent 100%);animation:holeRimBottom .30s linear .42s both}
.hole-rim-left{bottom:-45%;left:0;width:2px;height:45%;background:linear-gradient(180deg,transparent 0%,var(--rank-flash-color) 35%,#fff 60%,var(--rank-flash-color) 78%,transparent 100%);animation:holeRimLeft .20s linear .68s both}

@keyframes holeRimTop{0%{left:-38%;opacity:0}10%{opacity:1}90%{opacity:1}100%{left:100%;opacity:0}}
@keyframes holeRimRight{0%{top:-45%;opacity:0}10%{opacity:1}90%{opacity:1}100%{top:100%;opacity:0}}
@keyframes holeRimBottom{0%{right:-38%;opacity:0}10%{opacity:1}90%{opacity:1}100%{right:100%;opacity:0}}
@keyframes holeRimLeft{0%{bottom:-45%;opacity:0}10%{opacity:1}90%{opacity:1}100%{bottom:100%;opacity:0}}

/* FRYSEDISKEN */
#hole-mystic-menu{margin-top:6px;background:#07121a;border:1px solid #477b9b;text-align:left}
.hole-mystic-title{display:flex;justify-content:space-between;gap:8px;padding:7px;background:#102838;border-bottom:1px solid #477b9b;color:#91cceb;font-size:11px;font-weight:bold;text-align:left}
.hole-mystic-title span:last-child{color:#d7efff}
#hole-mystic-shop-list{height:240px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#477b9b #07121a}
#hole-mystic-shop-list::-webkit-scrollbar{width:8px}
#hole-mystic-shop-list::-webkit-scrollbar-track{background:#07121a}
#hole-mystic-shop-list::-webkit-scrollbar-thumb{background:#477b9b;border:1px solid #173447}
.hole-mystic-item{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:8px;min-height:112px;padding:8px;box-sizing:border-box;background:#09151e;border-bottom:1px solid #29485c;border-left:3px solid var(--mystic-color)}
.hole-mystic-item:last-child{border-bottom:0}
.hole-mystic-item.locked{display:none}
.hole-mystic-item.available{background:#061018}
.hole-mystic-item.purchased{background:#0c1b26}
.hole-mystic-main{min-width:0}
.hole-mystic-head{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.hole-mystic-swatch{width:7px;height:7px;flex:0 0 auto;background:var(--mystic-color);border:1px solid #000;box-shadow:0 0 2px var(--mystic-color)}
.hole-mystic-head b{color:var(--mystic-color);font-size:12px}
.hole-mystic-owned-state{color:#68869a;font-size:9px}
.hole-mystic-description{margin-top:7px;color:var(--mystic-color);font-size:11px;font-weight:bold}
.hole-mystic-gain{margin-top:7px;font-size:9px;line-height:1.25}
.hole-mystic-gain-title{display:block;margin-bottom:3px;color:#66879b;font-size:8px}
.hole-mystic-gain-row{display:flex;align-items:baseline;gap:5px;color:var(--mystic-color)}
.hole-mystic-gain-row b{min-width:48px;color:var(--mystic-color);font-size:9px;font-weight:bold}
.hole-mystic-gain-row span{color:var(--mystic-color);font-size:9px;font-weight:normal}
.hole-mystic-side{display:flex;flex-direction:column;width:90px}
.hole-mystic-frame{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin:0 auto;box-sizing:border-box;overflow:hidden;background:#03090d;border:2px solid var(--mystic-color);color:var(--mystic-color);font-size:18px;font-weight:bold}
.hole-mystic-frame img{display:block;width:100%;height:100%;object-fit:fill;image-rendering:pixelated}
.hole-mystic-price{margin:4px 0;color:#a9c9dc;font-size:10px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hole-mystic-side button{width:100%;min-width:0!important;padding:5px 2px!important;font-size:9px!important}
#hole-mystic-menu .hole-mystic-side button:not(:disabled){background:#17435d!important;color:#d7efff!important;border-top-color:#5790b2!important;border-left-color:#5790b2!important;border-right-color:#09202e!important;border-bottom-color:#09202e!important}
#hole-mystic-menu .hole-mystic-side button:not(:disabled):active{background:#0d2c40!important;border-top-color:#09202e!important;border-left-color:#09202e!important;border-right-color:#5790b2!important;border-bottom-color:#5790b2!important}
.hole-mystic-item.available{border-left-color:#203746}
.hole-mystic-item.available .hole-mystic-swatch{opacity:.45}
.hole-mystic-item.available .hole-mystic-head b{color:var(--mystic-color);opacity:.45}
.hole-mystic-item.available .hole-mystic-owned-state{color:#405a69}
.hole-mystic-item.available .hole-mystic-description{color:var(--mystic-color);opacity:.42}
.hole-mystic-item.available .hole-mystic-frame{border-color:#294657;color:#48697b}
.hole-mystic-item.available .hole-mystic-price{color:#587487}
.hole-mystic-item.purchased .hole-mystic-frame{box-shadow:0 0 3px var(--mystic-color),inset 0 0 2px var(--mystic-color)}
/* BOTTOM / GUIDE */

#hole-bottom-buttons{display:flex;justify-content:center;gap:6px;margin-top:8px}
#hole-bottom-buttons button{width:120px;margin:0}
#hole-save-status{margin-top:5px;color:#777;font-size:9px}
#hole-leaderboard-list{width:90%;margin:15px auto;text-align:left;line-height:1.7}
#hole-guide{text-align:left}
#hole-guide .holegame-title{margin-bottom:14px;text-align:center}
.hole-guide-content{max-height:460px;padding:0 8px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#666 #111}
.hole-guide-content h3{margin:16px 0 5px;padding-bottom:3px;color:#ff0;border-bottom:1px solid #444;font-family:"Courier New",monospace;font-size:12px}
.hole-guide-content h3:first-child{margin-top:0}
.hole-guide-content p{margin:5px 0 9px;color:#ccc;font-size:11px;line-height:1.45}
.hole-guide-content b{color:#fff}
.hole-rank-table{width:100%;margin:8px 0 14px;border-collapse:collapse;color:#ccc;font-family:"Courier New",monospace;font-size:10px}
.hole-rank-table th,.hole-rank-table td{padding:4px 6px;border:1px solid #444;text-align:left}
.hole-rank-table th{background:#222;color:#fff}
.hole-rank-table tr:nth-child(even) td{background:#0a0a0a}
#hole-info-close{display:block;min-width:100px;margin:14px auto 0}

/* DIG FEEDBACK */

.hole-dig-number{position:absolute;left:50%;z-index:10;font-family:"Courier New",monospace;font-size:15px;font-weight:bold;text-shadow:1px 1px #000;pointer-events:none}
.hole-depth-number{top:51%;color:#ff0;animation:holeDigNumber .6s ease-out forwards}
.hole-money-number{top:61%;color:#6f6;animation:holeMoneyNumber .7s ease-out forwards}

@keyframes holeDigNumber{
0%{opacity:1;transform:translate(-50%,0) scale(.8)}
25%{transform:translate(-50%,-8px) scale(1.15)}
100%{opacity:0;transform:translate(-50%,-38px) scale(1)}
}

@keyframes holeMoneyNumber{
0%{opacity:1;transform:translate(-50%,0) scale(.8)}
30%{transform:translate(-50%,-5px) scale(1.1)}
100%{opacity:0;transform:translate(-50%,-30px) scale(1)}
}

#hole-canvas.hole-hit{animation:holeHit .14s linear}

@keyframes holeHit{
0%{transform:translate(0,0)}
20%{transform:translate(calc(var(--hole-shake,3px)*-.35),var(--hole-shake,3px))}
45%{transform:translate(calc(var(--hole-shake,3px)*.22),calc(var(--hole-shake,3px)*-.45))}
70%{transform:translate(calc(var(--hole-shake,3px)*-.12),calc(var(--hole-shake,3px)*.18))}
100%{transform:translate(0,0)}
}

.hole-dust{position:absolute;z-index:8;width:4px;height:4px;pointer-events:none;animation:holeDust .42s ease-out forwards}

@keyframes holeDust{
0%{opacity:1;transform:translate(0,0) rotate(0deg) scale(1)}
100%{opacity:0;transform:translate(var(--dust-x),var(--dust-y)) rotate(var(--dust-r)) scale(.3)}
}

/* JOKERSLOTS */

#hole-jokerslots{margin-top:6px;background:#070807;border:1px solid #4b654b;text-align:left}
.hole-joker-title{display:flex;justify-content:space-between;padding:7px;background:#142014;border-bottom:1px solid #4b654b;color:#79dd79;font-size:11px;font-weight:bold}
.hole-joker-title span:last-child{color:#658565;font-size:8px}

.hole-joker-machine{padding:10px;text-align:center;background:#090b09;border-bottom:1px solid #304430}

.hole-joker-reel{
display:flex;
align-items:center;
justify-content:center;
width:120px;
height:62px;
margin:3px auto 10px;
box-sizing:border-box;
overflow:hidden;
background:#e0ddc8;
color:#111;
border-top:4px solid #fff;
border-left:4px solid #fff;
border-right:4px solid #68685e;
border-bottom:4px solid #68685e;
font:bold 22px "Courier New",monospace
}

.hole-joker-reel.rolling{animation:holeJokerRoll .10s linear infinite}
.hole-joker-reel.win{color:#087508;background:#dff5cf;box-shadow:0 0 8px #62e762}
.hole-joker-reel.loss{color:#900;background:#ead1c9}
.hole-joker-reel.neutral{color:#665f00;background:#ece9c9}
.hole-joker-reel.boost,.hole-joker-reel.mystery{
color:#e77cff;
background:#18051d;
font-size:34px;
text-shadow:0 0 4px #ff55ff,0 0 9px #a000ff;
box-shadow:0 0 8px #a000ff,inset 0 0 8px #500070;
animation:holeMysteryGlow .45s steps(2,end) infinite
}

@keyframes holeJokerRoll{
0%{transform:translateY(-2px)}
50%{transform:translateY(2px)}
100%{transform:translateY(-2px)}
}

@keyframes holeMysteryGlow{
0%{text-shadow:0 0 3px #f5f,0 0 6px #8000ff}
50%{text-shadow:0 0 7px #fff,0 0 15px #f5f,0 0 22px #8000ff}
100%{text-shadow:0 0 3px #f5f,0 0 6px #8000ff}
}

.hole-joker-price{width:min(330px,100%);margin:5px auto 7px;color:#999;font-size:10px}
.hole-joker-price b{color:#fff}
.hole-joker-stake-selected{margin-bottom:5px;color:#999;font-size:10px}
.hole-joker-stake-selected b{color:#fff;font-size:15px}
#hole-joker-stake-slider{display:block;width:100%;height:18px;margin:0;padding:0;background:transparent;cursor:pointer;-webkit-appearance:none;appearance:none}
#hole-joker-stake-slider::-webkit-slider-runnable-track{height:5px;background:#0b0d0b;border-top:1px solid #020302;border-left:1px solid #020302;border-right:1px solid #3d543d;border-bottom:1px solid #3d543d}
#hole-joker-stake-slider::-webkit-slider-thumb{width:12px;height:16px;margin-top:-6px;background:#183818;border-top:2px solid #5b9b5b;border-left:2px solid #5b9b5b;border-right:2px solid #071607;border-bottom:2px solid #071607;border-radius:0;-webkit-appearance:none;appearance:none}
#hole-joker-stake-slider::-moz-range-track{height:5px;background:#0b0d0b;border-top:1px solid #020302;border-left:1px solid #020302;border-right:1px solid #3d543d;border-bottom:1px solid #3d543d}
#hole-joker-stake-slider::-moz-range-thumb{width:10px;height:14px;background:#183818;border-top:2px solid #5b9b5b;border-left:2px solid #5b9b5b;border-right:2px solid #071607;border-bottom:2px solid #071607;border-radius:0}
#hole-joker-stake-slider:disabled{cursor:default;opacity:.35}
.hole-joker-stake-limits{display:flex;justify-content:space-between;gap:10px;margin-top:1px;color:#607060;font-size:8px}
.hole-joker-stake-limits span:last-child{text-align:right}
.hole-joker-stake-limits b{color:#8fa58f;font-size:8px;font-weight:normal}

#hole-joker-button{
width:175px;
margin:3px auto 8px;
background:#155815!important;
border-top-color:#4ca64c!important;
border-left-color:#4ca64c!important;
border-right-color:#082508!important;
border-bottom-color:#082508!important;
font-size:12px!important
}

#hole-joker-result{
min-height:50px;
padding:8px;
box-sizing:border-box;
background:#030403;
border:1px inset #4a4a4a;
text-align:center
}

#hole-joker-result>b,
#hole-joker-result strong{
display:block;
font-size:14px;
line-height:1.2
}

#hole-joker-result span{
display:block;
margin-top:5px;
color:#aaa;
font-size:10px;
line-height:1.25
}

.hole-joker-result-win{
background:#071507!important;
border-color:#397339!important
}
.hole-joker-result-win strong{
color:#66ff66;
font-size:16px!important;
text-shadow:0 0 4px #006600
}

.hole-joker-result-loss{
background:#160606!important;
border-color:#733939!important
}
.hole-joker-result-loss strong{
color:#ff5555;
font-size:16px!important;
text-shadow:0 0 4px #600
}

.hole-joker-result-neutral{
background:#171707!important;
border-color:#6f6f2e!important
}
.hole-joker-result-neutral strong{
color:#ffff66;
font-size:15px!important
}

.hole-joker-result-boost{
background:#14051a!important;
border-color:#7d3f91!important;
box-shadow:inset 0 0 8px #400050
}
.hole-joker-result-boost strong{
color:#ff79ff;
font-size:16px!important;
text-shadow:0 0 5px #8800ff
}
.hole-joker-result-boost span{
color:#e4b4ff!important;
font-weight:bold
}

/* GAMBLE STATS */

#hole-joker-stats{
display:grid;
grid-template-columns:repeat(3,1fr);
background:#0c0c0c;
border-bottom:1px solid #304430;
text-align:center
}

#hole-joker-stats span{
min-width:0;
padding:7px 3px;
color:#777;
font-size:9px;
border-right:1px solid #262f26
}

#hole-joker-stats span:last-child{border-right:0}

#hole-joker-stats b{
display:block;
margin-top:3px;
color:#ddd;
font-size:11px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis
}

#hole-joker-won{color:#7ddd7d!important}
#hole-joker-spent{color:#dd8a8a!important}
#hole-joker-net.positive{color:#66ff66!important}
#hole-joker-net.negative{color:#ff6666!important}

/* BONUS LIST */
.hole-joker-bonus-title{
padding:7px;
color:#709070;
border-bottom:1px solid #293829;
font-size:10px;
font-weight:bold
}
#hole-joker-bonuses{padding:8px}
.hole-joker-bonus-columns{
display:grid;
grid-template-columns:1fr 1fr;
gap:18px
}
.hole-joker-bonus-columns>div{min-width:0}
.hole-joker-bonus-columns>div>b{
display:block;
margin-bottom:6px;
color:#ccc;
font-size:11px
}
.hole-joker-bonus-columns span{
display:flex;
justify-content:space-between;
align-items:baseline;
gap:5px;
padding:2px 0;
font-size:10px;
font-weight:bold;
line-height:1.15;
white-space:nowrap
}

/* 0% = GREY */
.hole-gambler-percent{
color:#777;
font-size:10px;
font-style:normal;
font-weight:bold;
text-shadow:1px 1px #000;
white-space:nowrap
}

/* ABOVE 0% = GRADUALLY MORE RAINBOW */
.hole-gambler-percent.active{
color:#ddd;
-webkit-text-fill-color:#ddd;
background:none;
filter:none;
text-shadow:
1px 1px #000,
-1px 0 rgb(255 69 69 / calc(var(--shine)*.8)),
1px 0 rgb(70 205 219 / calc(var(--shine)*.8)),
0 -1px rgb(255 228 77 / calc(var(--shine)*.65)),
0 1px rgb(168 102 255 / calc(var(--shine)*.75)),
0 0 calc(1px + var(--shine)*4px) rgb(255 85 189 / calc(var(--shine)*.55));
animation:holeBonusShine 1.8s steps(4,end) infinite
}

@keyframes holeBonusShine{
0%{filter:brightness(1)}
50%{filter:brightness(1.25)}
100%{filter:brightness(1)}
}

.hole-joker-global{
display:grid;
grid-template-columns:1fr 1fr;
gap:8px;
margin-top:8px;
padding-top:7px;
border-top:1px dotted #405040
}
.hole-joker-global span{
display:flex;
justify-content:space-between;
align-items:baseline;
gap:5px;
color:#aaa;
font-size:10px;
font-weight:bold
}
.hole-joker-global .hole-gambler-percent{
font-size:11px
}
/* MOBILE */

@media screen and (max-width:600px){
#holegame{width:100%}
#hole-login input{font-size:16px}
#hole-camera-controls button{min-width:105px;min-height:34px;padding-left:8px;padding-right:8px}
#hole-main-readout>div{padding:9px 3px 8px}
#hole-main-readout b{font-size:14px;letter-spacing:0}
.hole-readout-label{font-size:8px}
.hole-info-power{padding:8px 3px}
.hole-info-power>span,.hole-info-small span{font-size:8px}
.hole-info-power .hole-power-value-wrap b{font-size:16px}
.hole-power-gain{font-size:9px}
.hole-info-small{padding:7px 2px}
.hole-info-small b{font-size:9px}
.hole-info-hardness b{font-size:14px}
#hole-performance>div{padding:6px 2px}
#hole-performance i{font-size:8px}
#hole-performance span{font-size:8px}
#hole-performance b{font-size:9px}

#hole-buy-amount{justify-content:space-between;gap:2px;padding:4px 3px}
#hole-buy-amount>span{margin-right:0}
#hole-buy-amount button{flex:1 1 0;min-width:0;min-height:30px;padding:4px 2px!important;font-size:9px!important}

#hole-upgrade-menus{grid-template-columns:1fr}
.hole-item-list{height:260px}
.hole-upgrade-menu-title{font-size:10px}
.hole-shop-item{min-height:128px;margin:2px;padding:8px}
.hole-shop-current{min-height:62px;padding-right:68px}
.hole-shop-item-head b{font-size:12px}
.hole-shop-level{font-size:9px}
.hole-shop-rank{font-size:9px}
.hole-shop-item-total{margin-top:7px;font-size:9px}
.hole-item-frame{width:58px;height:58px}
.hole-shop-next-row{grid-template-columns:minmax(0,1fr);gap:5px}
.hole-next-upgrade{font-size:9px}
.hole-next-title{font-size:8px}
.hole-math-base,.hole-upgrade-result{font-size:10px}
.hole-upgrade-percent{font-size:8px}
.hole-shop-price{font-size:9px}
.hole-shop-buy button{min-height:28px;font-size:9px!important}

#hole-mystic-shop-list{height:230px}
.hole-mystic-title{font-size:10px}
.hole-mystic-item{grid-template-columns:minmax(0,1fr) 86px;min-height:112px;padding:7px}
.hole-mystic-side{width:86px}
.hole-mystic-frame{width:58px;height:58px}
.hole-mystic-head b{font-size:11px}
.hole-mystic-description{font-size:10px}
.hole-mystic-gain{margin-top:6px}
.hole-mystic-gain-title{font-size:8px}
.hole-mystic-gain-row b{min-width:48px;font-size:9px}
.hole-mystic-gain-row span{font-size:9px}

#hole-bottom-buttons{gap:5px}
#hole-bottom-buttons button{width:46%}
#hole-guide{padding:12px 8px}
.hole-guide-content{max-height:420px}
.hole-guide-content p{font-size:11px}
.hole-rank-table{font-size:10px}
#hole-dig-button{height:70px}

.hole-joker-title{font-size:10px}
.hole-joker-reel{width:115px;height:58px}
.hole-joker-price{width:100%}
.hole-joker-stake-selected b{font-size:13px}
.hole-joker-bonus-columns{gap:10px}
.hole-joker-bonus-columns span{font-size:9px}
.hole-joker-bonus-columns i{font-size:9px}
.hole-joker-global{grid-template-columns:1fr}
#hole-joker-stats b{font-size:9px}
}

/* HØL COMPACT LAYOUT OVERRIDES */

/* USE THE FULL WIDTH OF THE HØL BOX */
#holegame{
position:relative;
width:100%;
max-width:none;
margin:0;
}

/* REMOVE EMPTY SPACE BETWEEN MAJOR SECTIONS */
#holegame #hole-player-bar,
#holegame #hole-dig-frame,
#holegame #hole-camera-controls,
#holegame #hole-main-readout,
#holegame #hole-info,
#holegame #hole-performance,
#holegame #hole-dig-button,
#holegame #hole-buy-amount,
#holegame #hole-upgrade-menus,
#holegame #hole-loot-overview,
#holegame #hole-mystic-menu,
#holegame #hole-jokerslots,
#holegame #hole-save-status{
margin-top:0;
margin-bottom:0;
}

/* SHOP COLUMNS TOUCH EACH OTHER */
#holegame #hole-upgrade-menus{
gap:0;
}

/* NO GAP AROUND THE CANVAS */
#holegame #hole-canvas-wrap{
margin:0;
padding:0;
}

#holegame #hole-canvas{
margin:0;
border:0;
}

/* HEADER ABOVE THE HOLE - NEUTRAL, NOT GREEN */
#holegame #hole-dig-frame{
background:#080808;
border:1px solid #444;
}

#holegame #hole-dig-frame-bar{
padding:4px 6px;
background:#181818;
border-bottom:1px solid #444;
color:#aaa;
}

#holegame #hole-dig-frame-bar button{
background:#1b1b1b!important;
color:#bbb!important;
border:1px solid #555!important;
box-shadow:none!important;
text-shadow:none!important;
}

#holegame #hole-dig-frame-bar button:active{
background:#080808!important;
border-color:#777!important;
}

/* PLAYER BAR - SAME GENERAL FAMILY */
#holegame #hole-player-bar{
margin:0;
background:#111;
border:1px solid #444;
}

#holegame #hole-player-bar #hole-mute-button{
color:#aaa!important;
border-color:#555!important;
background:#181818!important;
}

#holegame #hole-player-bar #hole-logout-button{
color:#b88!important;
border-color:#633!important;
background:#181010!important;
}

/* CAMERA BUTTONS JOIN DIRECTLY TO THE CANVAS */
#holegame #hole-camera-controls{
padding:5px;
border-top:0;
}

/* DIG BUTTON JOINS DIRECTLY TO STATS */
#holegame #hole-dig-button{
display:block;
}

/* BUY SELECTOR JOINS DIRECTLY TO DIG BUTTON */
#holegame #hole-buy-amount{
border-top:0;
}

/* SHOP BORDERS PROVIDE THE SEPARATION */
#holegame .hole-upgrade-menu{
margin:0;
}

/* FRYSEDISKEN + JOKER ALSO JOIN THE STACK */
#holegame #hole-mystic-menu,
#holegame #hole-jokerslots{
margin-top:0;
}

/* SAVE STATUS DOESN'T NEED ITS OWN EMPTY BAND */
#holegame #hole-save-status{
margin:0;
padding:3px 0;
}

/* DIGGING LEADERBOARD */
#hole-dig-frame #hole-leaderboard{
margin:0;
padding:7px;
background:#050505;
border:0;
border-bottom:1px solid #444;
text-align:left
}

#hole-dig-frame #hole-leaderboard-list{
width:100%;
margin:0;
line-height:normal
}

@media screen and (max-width:600px){
#holegame .hole-rank-table{
display:table!important;
width:100%!important;
table-layout:fixed;
border-collapse:collapse
}

#holegame .hole-rank-table tbody{
display:table-row-group!important
}

#holegame .hole-rank-table tr{
display:table-row!important
}

#holegame .hole-rank-table th,
#holegame .hole-rank-table td{
display:table-cell!important;
width:33.333%!important;
box-sizing:border-box!important;
padding:4px 6px!important;
vertical-align:middle
}
}

/* MANUELT UTSTYR */
#hole-upgrade-menus .hole-upgrade-menu:first-child{
border-color:#78512f
}

#hole-upgrade-menus .hole-upgrade-menu:first-child .hole-upgrade-menu-title{
background:#24180f;
border-bottom-color:#78512f;
color:#d0a16c
}

/* MINIONS */
#hole-upgrade-menus .hole-upgrade-menu:last-child{
border-color:#356475
}

#hole-upgrade-menus .hole-upgrade-menu:last-child .hole-upgrade-menu-title{
background:#102028;
border-bottom-color:#356475;
color:#73b6cc
}

/* COLLAPSIBLE HØL WINDOWS */
.hole-collapse-button{
width:18px!important;
min-width:18px!important;
height:18px!important;
margin:0 0 0 4px!important;
padding:0!important;
background:#181818!important;
color:#aaa!important;
border:1px solid #555!important;
box-shadow:none!important;
text-shadow:none!important;
font:bold 11px "Courier New",monospace!important;
line-height:16px!important
}

.hole-upgrade-menu-title>span:last-child,
.hole-mystic-title>span:last-child,
.hole-joker-title>div{
display:flex;
align-items:center;
justify-content:flex-end;
gap:4px
}

#hole-active-menu.hole-collapsed #hole-active-shop-list,
#hole-passive-menu.hole-collapsed #hole-passive-shop-list,
#hole-mystic-menu.hole-collapsed #hole-mystic-shop-list{
display:none
}

#hole-jokerslots.hole-collapsed>*:not(.hole-joker-title){
display:none!important
}

#hole-dig-frame.hole-collapsed>*:not(#hole-dig-frame-bar){
display:none!important
}
#hole-dig-frame.hole-collapsed + #hole-camera-controls{display:none!important}

/* COMPACT DIG DATA AREA */

/* CAMERA BUTTON STRIP */
#holegame #hole-camera-controls{
padding:3px 5px;
gap:10px
}

#holegame #hole-camera-controls button{
height:30px;
padding:0;
line-height:28px;
font-size:11px
}

/* DEPTH + MONEY */
#holegame #hole-main-readout>div{
padding:7px 5px
}

#holegame .hole-readout-label{
font-size:8px;
line-height:9px;
margin-bottom:2px
}

#holegame #hole-depth,
#holegame #hole-money{
font-size:18px;
line-height:20px
}

/* POWER / CLICK + POWER / SEC */
#holegame .hole-info-power{
padding:6px 4px
}

#holegame .hole-info-power>span{
font-size:8px;
line-height:9px;
margin-bottom:2px
}

#holegame .hole-power-value-wrap{
line-height:18px
}

#holegame #hole-power,
#holegame #hole-passive-power-main{
font-size:18px;
line-height:18px
}

/* LAYER / HARDNESS / VALUE */
#holegame .hole-info-small{
padding:5px 3px
}

#holegame .hole-info-small>span{
font-size:7px;
line-height:8px;
margin-bottom:2px
}

#holegame .hole-info-small>b{
line-height:14px
}

/* MANUAL / PASSIVE PERFORMANCE */
#holegame #hole-performance>div{
padding:5px 3px
}

#holegame #hole-performance span{
font-size:7px;
line-height:8px
}

#holegame #hole-performance b{
line-height:13px
}

#holegame #hole-performance i{
line-height:12px
}

.hole-gambler-row{
display:flex!important;
align-items:baseline;
gap:5px
}

.hole-gambler-values{
display:flex!important;
align-items:baseline;
gap:7px;
margin-left:auto
}

.hole-gambler-power{
color:#888;
font-size:8px;
font-style:normal;
font-weight:normal;
white-space:nowrap
}

.hole-joker-current-bonus{
margin-top:7px;
padding:6px;
border-top:1px solid #405840;
font-size:9px
}

.hole-joker-current-bonus>b{
display:block;
margin-bottom:4px;
color:#79dd79
}

.hole-joker-current-bonus>span{
display:block;
color:#ddd;
font-weight:bold
}

.hole-joker-power-result{
font-size:10px;
color:#ddd;
font-weight:bold
}

#hole-main-readout>div{
position:relative;
overflow:visible
}

.hole-money-gamble-fx{
position:absolute;
right:8px;
top:50%;
z-index:20;
font-style:normal;
font-weight:bold;
font-size:10px;
white-space:nowrap;
pointer-events:none;
opacity:0;
transform:translateY(2px);
text-shadow:1px 1px #000,-1px -1px #000;
transition:none
}

.hole-money-gamble-fx.show{
animation:holeMoneyGambleFx .95s ease-out forwards
}

.hole-money-gamble-fx.spend{
color:#ff3b3b
}

.hole-money-gamble-fx.return10{
color:#ff8c32
}

.hole-money-gamble-fx.return50{
color:#ffe34d
}

.hole-money-gamble-fx.return100{
color:#45e06f
}

.hole-money-gamble-fx.win{
color:#fff;
background:linear-gradient(90deg,#ff4141,#ffb52e,#fff34d,#46ef70,#48dff5,#7580ff,#d65cff,#ff55ad,#ff4141);
background-size:300% 100%;
-webkit-background-clip:text;
background-clip:text;
-webkit-text-fill-color:transparent;
filter:drop-shadow(1px 1px #000);
animation:holeMoneyGambleFx .95s ease-out forwards,holeMoneyRainbow .3s linear infinite
}

@keyframes holeMoneyGambleFx{
0%{opacity:0;transform:translateY(4px) scale(.9)}
15%{opacity:1;transform:translateY(0) scale(1.12)}
65%{opacity:1;transform:translateY(-5px) scale(1)}
100%{opacity:0;transform:translateY(-12px) scale(.95)}
}

@keyframes holeMoneyRainbow{
0%{background-position:0 0}
100%{background-position:100% 0}
}

/* NIKOSJOKK TESTMODUS */
#hole-test-banner{display:flex;align-items:center;justify-content:center;gap:5px;padding:5px;background:#171207;border:1px solid #665522;color:#ffe77a;font-size:8px;text-align:center}
#hole-test-banner b{margin-right:3px}
#hole-test-banner button{width:auto!important;margin:0!important;padding:2px 6px!important;background:#3b3010!important;color:#fff1a0!important;border:1px solid #806e2d!important;box-shadow:none!important;font-size:7px!important}

/* MESTRING / NIKOSJOKK / COOP LIA */
.hole-shop-item.hole-mastered{box-shadow:0 0 5px #fff7a8,inset 0 0 3px #fff7a8}
.hole-mastery-stamps{
display:flex;
align-items:stretch;
flex-wrap:wrap;
width:max-content;
max-width:100%;
margin-top:4px
}
.hole-mastery-badge,
.hole-mastergrad-badge{
display:inline-flex;
align-items:center;
min-height:16px;
margin:0;
padding:2px 5px;
box-sizing:border-box;
font-size:7px;
line-height:10px;
font-weight:bold;
letter-spacing:.35px;
text-shadow:1px 1px #000;
white-space:nowrap
}
.hole-mastery-badge{
background:#27230b;
color:#fff3a0;
border:1px solid #82752f;
border-right:0
}
.hole-mastery-stamps .hole-mastery-badge:last-child{
border-right:1px solid #82752f
}
#hole-mastery-toast{position:fixed;left:50%;top:20%;z-index:9999;width:min(330px,85vw);padding:10px;box-sizing:border-box;background:#161404;color:#fff3a0;border:2px solid #b8a33d;box-shadow:0 0 12px #8b7720;text-align:center;font:bold 12px "Courier New",monospace;transform:translateX(-50%);pointer-events:none}
#hole-mastery-toast b{display:block;margin-bottom:4px;color:#fff;font-size:15px}
#hole-nikosjokk{margin:0;background:#0c080f;border:1px solid #765080;text-align:left}
.hole-nikosjokk-title{display:flex;align-items:center;justify-content:space-between;padding:7px;background:#26152b;border-bottom:1px solid #765080;color:#e6a8ef;font-size:11px;font-weight:bold}
.hole-nikosjokk-title>div{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.hole-nikosjokk-title>div>span{color:#b88fc0;font-size:8px;text-align:right}
#hole-nikosjokk.hole-collapsed>*:not(.hole-nikosjokk-title){display:none!important}
.hole-nikosjokk-body{padding:8px}
.hole-nikosjokk-explain{margin:0 0 7px;padding:5px 6px;background:#09070b;border:1px dotted #5e4664;color:#b79cbd;font-size:8px;line-height:1.35;text-align:center}
.hole-mastery-summary{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:8px}
.hole-mastery-summary span{padding:5px;background:#0a080b;border:1px solid #3e3042;color:#8f7d94;font-size:8px;text-align:center}
.hole-mastery-summary b{display:block;margin-top:2px;color:#fff3a0;font-size:11px}
.hole-nikosjokk-score-title{padding:6px;background:#120c15;border:1px solid #49364f;color:#c5a1cc;font-size:9px}
.hole-nikosjokk-score-title b{float:right;color:#fff;font-size:12px}
.hole-nikosjokk-score-grid{display:grid;grid-template-columns:1fr auto;gap:0;margin-top:4px;border:1px solid #392c3d;border-bottom:0}
.hole-nikosjokk-score-grid span,.hole-nikosjokk-score-grid>b{padding:5px 6px;border-bottom:1px solid #392c3d;font-size:9px}
.hole-nikosjokk-score-grid span{color:#c5a1cc;font-weight:bold}.hole-nikosjokk-score-grid>b{min-width:78px;color:#fff3a0;text-align:right;white-space:nowrap}
.hole-nikosjokk-score-grid small{display:block;margin-top:2px;color:#78667d;font-size:7px;font-weight:normal;line-height:1.25}
.hole-nikosjokk-reward{margin-top:7px;padding:7px;background:#18120a;border:1px solid #665224;color:#bda76b;text-align:center;font-size:9px}
.hole-nikosjokk-reward b{display:block;margin-top:2px;color:#fff18a;font-size:15px}
#hole-nikosjokk-next{padding:5px;color:#8d7d93;font-size:8px;text-align:center}
#hole-nikosjokk-lock{margin-bottom:5px;color:#a87373;font-size:8px;text-align:center}
#hole-nikosjokk-button{display:block;width:190px;margin:4px auto!important;background:#4d1956!important;border-top-color:#8d5598!important;border-left-color:#8d5598!important;border-right-color:#210b25!important;border-bottom-color:#210b25!important}
#hole-nikosjokk-confirm{margin-top:8px;padding:8px;background:#080608;border:1px solid #765080;text-align:center}
#hole-nikosjokk-confirm>b{color:#ff7b7b;font-size:13px}#hole-nikosjokk-confirm p{margin:5px 0 8px;color:#ddd;font-size:9px}
.hole-nikosjokk-confirm-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;text-align:left}
.hole-nikosjokk-confirm-grid>div{padding:6px;background:#0d0b0e;border:1px solid #3d303f}
.hole-nikosjokk-confirm-grid b{display:block;margin-bottom:4px;color:#fff;font-size:9px}.hole-nikosjokk-confirm-grid span{display:block;padding:2px 0;color:#999;font-size:8px}
.hole-nikosjokk-confirm-buttons{display:flex;justify-content:center;gap:6px;margin-top:8px}
.hole-nikosjokk-confirm-buttons button{width:auto!important;margin:0!important}
#hole-nikosjokk-confirm-button{background:#5d1616!important}
.hole-nikosjokk-title #hole-coop-view-button{width:auto!important;margin:0!important;padding:2px 7px!important;box-shadow:none!important;font-size:8px!important}
.hole-nikosjokk-title #hole-coop-view-button:not(:disabled){background:#321a38!important;color:#d9a7e2!important;border:1px solid #65456d!important}
.hole-nikosjokk-title #hole-coop-view-button:disabled{background:#171319!important;color:#5f4a63!important;border:1px solid #352a38!important;opacity:.75}

#hole-coop-lia{padding:8px;background:#0c080f;border-top:2px solid #765080;border-left:2px solid #765080;border-right:2px solid #2b1830;border-bottom:2px solid #2b1830;text-align:left}
#hole-coop-lia{position:relative;overflow:hidden}
#hole-coop-lia.hole-coop-enter::after{
content:"";
position:absolute;
inset:0;
z-index:999;
pointer-events:none;
background:#d8c5ff;
box-shadow:inset 0 0 150px rgba(164,111,255,1);
animation:holeCoopEnterFlash .33s ease-out forwards;
}
@keyframes holeCoopEnterFlash{
0%{opacity:1;background:#d8c5ff;box-shadow:inset 0 0 150px rgba(164,111,255,1)}
18%{opacity:.92;background:#e8dcff;box-shadow:inset 0 0 110px rgba(184,139,255,.9)}
45%{opacity:.58;background:#bd91e6;box-shadow:inset 0 0 75px rgba(139,76,195,.7)}
70%{opacity:.24;background:#7d4b92;box-shadow:inset 0 0 35px rgba(104,50,130,.4)}
100%{opacity:0;background:#3c2345;box-shadow:inset 0 0 0 rgba(80,35,100,0)}
}
.hole-coop-title{text-align:center;color:#e6a8ef;font:bold 20px "Times New Roman",serif;text-shadow:1px 1px #000,0 0 4px #4d1956}
.hole-coop-subtitle{margin:2px 0 7px;text-align:center;color:#b88fc0;font-size:8px;font-weight:bold}
.hole-coop-wallet{padding:5px;background:#120c15;border:1px solid #49364f;color:#a98caf;font-size:8px;text-align:center}.hole-coop-wallet b{color:#fff3a0;font-size:11px}
.hole-coop-root{width:46%;margin:8px auto 12px;padding:5px 6px;box-sizing:border-box;background:#1a1020;border:1px solid #8a5a94;box-shadow:0 0 4px #321a38;text-align:center}.hole-coop-root.locked{background:#0c090e;border-color:#3e3042;box-shadow:none;opacity:.55}
.hole-skill-card-title{color:#f4d9f8;font-size:9px;font-weight:bold;line-height:1.1}.hole-skill-card-desc{margin-top:3px;color:#ad93b2;font-size:7px;line-height:1.22}.hole-skill-card-cost{margin-top:3px;color:#fff3a0;font-size:7px;font-weight:bold}
#hole-skill-tree{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:4px}
.hole-skill-branch{min-width:0;padding:0 2px 5px;background:transparent;border:0}.hole-skill-branch>h3{margin:0 0 6px;padding:4px 2px;background:#26152b;border:1px solid #765080;color:#e0a8e8;font-size:8px;text-align:center}
.hole-skill-arrow{height:15px;margin:1px 0;color:#4d3a52;font:bold 12px/15px "Courier New",monospace;text-align:center;text-shadow:1px 1px #000}.hole-skill-arrow.active{color:#d99ce4;text-shadow:0 0 4px #7b4387}
.hole-skill-card{margin:0 0 8px;padding:5px;background:#100b13;border:1px solid #49364f;box-shadow:0 1px 0 #050306;text-align:left}.hole-skill-card.eid{background:#1c1121;border-color:#8b5c95;box-shadow:0 0 3px #4b2853}.hole-skill-card.last{opacity:.48}
.hole-skill-card-requirement{margin-top:3px;color:#bc747e;font-size:7px;line-height:1.15}.hole-skill-card button{display:inline-block;width:auto!important;min-width:50px;margin-top:4px!important;padding:2px 5px!important;font-size:7px!important}.hole-skill-card.eid button{background:#321a38!important;color:#d9a7e2!important;border-color:#65456d!important}
#hole-coop-status{min-height:14px;margin:6px 0 3px;color:#fff18a;font-size:8px;text-align:center}
#hole-start-new-hole{display:block;width:170px;margin:4px auto!important;background:#4d1956!important;border-top-color:#8d5598!important;border-left-color:#8d5598!important;border-right-color:#210b25!important;border-bottom-color:#210b25!important}
.hole-math-coop{position:relative;display:inline-block;color:#d99ce4;font-size:8px;font-weight:bold;white-space:nowrap;cursor:help;border-bottom:1px dotted #75527c;outline:0}
.hole-math-coop:hover::after,.hole-math-coop:focus::after{content:attr(data-bonus-name);position:absolute;left:50%;bottom:calc(100% + 4px);z-index:50;padding:3px 5px;background:#160d19;color:#edc9f3;border:1px solid #765080;font:7px "Courier New",monospace;white-space:nowrap;transform:translateX(-50%);box-shadow:1px 1px #000}
.hole-coop-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.hole-coop-top .hole-coop-title{grid-column:2}.hole-coop-top-buttons{grid-column:3;justify-self:end;display:flex;gap:4px}.hole-coop-top-buttons button{width:auto!important;margin:0!important;padding:2px 7px!important;font-size:8px!important}.hole-coop-top #hole-coop-back-button{background:#321a38!important;color:#d9a7e2!important;border:1px solid #65456d!important}.hole-coop-top #hole-coop-logout-button{background:#181010!important;color:#b88!important;border:1px solid #633!important}

@media screen and (max-width:600px){
.hole-mastery-summary{grid-template-columns:1fr}.hole-nikosjokk-confirm-grid{grid-template-columns:1fr}#hole-skill-tree{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hole-coop-root{width:68%}
.hole-nikosjokk-title>div>span{width:100%}.hole-nikosjokk-score-grid>b{min-width:68px;font-size:8px}.hole-nikosjokk-score-grid small{font-size:6px}#hole-test-banner{flex-wrap:wrap}
}
@media screen and (max-width:360px){#hole-skill-tree{grid-template-columns:1fr}.hole-coop-root{width:82%}}

#hole-leaderboard-tabs{display:flex;gap:3px;margin:5px 0 7px}
#hole-leaderboard-tabs button{flex:1;min-width:0;padding:3px 2px!important;background:#171717!important;color:#888!important;border:1px solid #444!important;font-size:7px!important}
#hole-leaderboard-tabs button.selected{background:#173017!important;color:#9bd29b!important;border-color:#4f754f!important}

@media screen and (max-width:600px){#hole-leaderboard-tabs button{font-size:6px!important}}

/* NIKOSJOKK UX / COOP LIA ROUTES */
.hole-shop-item.hole-mastered,.hole-shop-item.owned.hole-mastered{background:#211c08!important;box-shadow:0 0 6px #c5aa38,inset 0 0 9px #5b4a11}
.hole-bonus-token{position:relative;display:inline-block;min-width:0;padding:0 1px;box-sizing:border-box;font-size:8px!important;line-height:11px!important;font-weight:bold!important;text-align:center;white-space:nowrap;cursor:help;outline:0}
.hole-bonus-token:hover::after,.hole-bonus-token:focus::after{content:attr(data-bonus-name);position:absolute;left:50%;bottom:calc(100% + 4px);z-index:80;padding:3px 5px;background:#0b080c;color:#eee;border:1px solid #765080;font:7px/1.2 "Courier New",monospace;white-space:nowrap;transform:translateX(-50%);box-shadow:1px 1px #000;-webkit-text-fill-color:#eee;text-shadow:none;filter:none}
.hole-bonus-token.hole-math-gambler{font-size:8px!important;line-height:11px!important}
.hole-bonus-token.hole-math-coop{font-size:8px!important;line-height:11px!important;border-bottom:0}
.hole-nikosjokk-score-total{display:flex;align-items:center;justify-content:space-between;margin:0 0 5px;padding:8px;background:#1b1020;border:1px solid #765080;box-shadow:inset 0 0 8px #26152b;color:#d4afd9;font-size:9px;font-weight:bold}
.hole-nikosjokk-score-total b{color:#fff3a0;font-size:20px;line-height:1;text-shadow:0 0 4px #6d4b22}
.hole-snus-progress-wrap{margin:7px 0 6px;padding:6px;background:#0b080d;border:1px solid #49364f}
.hole-snus-progress-label{display:flex;justify-content:space-between;gap:6px;margin-bottom:4px;color:#9b82a1;font-size:8px}.hole-snus-progress-label b{color:#e5c7ea;font-size:8px}
.hole-snus-progress{height:10px;overflow:hidden;background:#050406;border-top:1px solid #241828;border-left:1px solid #241828;border-right:1px solid #765080;border-bottom:1px solid #765080}
.hole-snus-progress i{display:block;width:0;height:100%;background:repeating-linear-gradient(90deg,#5d2968 0,#5d2968 7px,#82408f 7px,#82408f 10px);box-shadow:0 0 5px #9a55a8;transition:width .2s linear}
#hole-nikosjokk-progress-text{margin-top:4px;color:#75647a;font-size:7px;text-align:center}
.hole-nikosjokk-confirm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.hole-nikosjokk-confirm-grid>div>div span{display:block;padding:2px 0;color:#999;font-size:8px}
#hole-nikosjokk-gain-list span{color:#d8bc72}
#hole-test-banner span{flex:1 1 100%;color:#ffec82;font-size:8px;text-align:center}

.hole-skill-graving>h3{background:#24160d!important;border-color:#c9864f!important;color:#c9864f!important}.hole-skill-graving .hole-skill-card{background:#1b120c;border-color:#80542f}.hole-skill-graving .hole-skill-card.eid{border-color:#c9864f;box-shadow:0 0 4px #6d4426}.hole-skill-graving .hole-skill-card-title,.hole-skill-graving .hole-skill-arrow.active{color:#c9864f!important}
.hole-skill-minions>h3{background:#0d1721!important;border-color:#6fa8dc!important;color:#6fa8dc!important}.hole-skill-minions .hole-skill-card{background:#0c141c;border-color:#456a89}.hole-skill-minions .hole-skill-card.eid{border-color:#6fa8dc;box-shadow:0 0 4px #355b78}.hole-skill-minions .hole-skill-card-title,.hole-skill-minions .hole-skill-arrow.active{color:#6fa8dc!important}
.hole-skill-okonomi>h3{background:#0d1d10!important;border-color:#78c879!important;color:#78c879!important}.hole-skill-okonomi .hole-skill-card{background:#0c170e;border-color:#477b49}.hole-skill-okonomi .hole-skill-card.eid{border-color:#78c879;box-shadow:0 0 4px #3c6d3e}.hole-skill-okonomi .hole-skill-card-title,.hole-skill-okonomi .hole-skill-arrow.active{color:#78c879!important}
.hole-skill-startbonuser>h3{background:#201b0b!important;border-color:#d4b95d!important;color:#d4b95d!important}.hole-skill-startbonuser .hole-skill-card{background:#191608;border-color:#806f37}.hole-skill-startbonuser .hole-skill-card.eid{border-color:#d4b95d;box-shadow:0 0 4px #75662e}.hole-skill-startbonuser .hole-skill-card-title,.hole-skill-startbonuser .hole-skill-arrow.active{color:#d4b95d!important}
.hole-skill-card.last{color:#444}
.hole-skill-card.last.hole-skill-depth-1{opacity:.48}
.hole-skill-card.last.hole-skill-depth-2{opacity:.34}
.hole-skill-card.last.hole-skill-depth-3{opacity:.22}
.hole-skill-card.last .hole-skill-card-title,.hole-skill-card.last .hole-skill-card-desc,.hole-skill-card.last .hole-skill-card-cost{color:#666!important;text-shadow:none!important}

@media screen and (max-width:600px){.hole-nikosjokk-confirm-grid{grid-template-columns:1fr}.hole-nikosjokk-score-total b{font-size:17px}.hole-bonus-token{font-size:8px!important}}

/* NIKOSJOKK SIMPLIFY / FIRST MASTERY / STARTPAKKE ROOT */
#hole-first-mastery-popup{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:14px!important;box-sizing:border-box!important;border:0!important;background:transparent!important;z-index:2147483647!important;overflow:hidden!important;transform:none!important}
#hole-first-mastery-popup[open]{display:block!important}
#hole-first-mastery-popup::backdrop{background:rgba(0,0,0,.78)}
.hole-first-mastery-box{position:absolute;left:var(--hole-mastery-center-x,50vw);top:var(--hole-mastery-center-y,50vh);;width:min(390px,92vw);margin:0!important;padding:14px;box-sizing:border-box;background:#171207;border:2px solid #c2a83e;box-shadow:0 0 18px #8b7720,0 0 35px #321a38;color:#d8c77c;text-align:center;font:9px/1.45 "Courier New",monospace;transform:translate(-50%,-50%)}
.hole-first-mastery-box>b{display:block;margin-bottom:8px;color:#fff3a0;font-size:16px;text-shadow:0 0 5px #9b7b20}.hole-first-mastery-box p{margin:7px 0;color:#c8bd96}.hole-first-mastery-box strong{color:#fff3a0}.hole-first-mastery-box button{box-sizing:border-box;margin-top:7px!important;padding:5px 10px;background:#4d1956!important;color:#fff;border-top:2px solid #8d5598!important;border-left:2px solid #8d5598!important;border-right:2px solid #210b25!important;border-bottom:2px solid #210b25!important;font:bold 10px "Courier New",monospace;cursor:pointer}
.hole-nikosjokk-body{padding:7px 8px 8px}.hole-nikosjokk-score-total{margin-top:0}.hole-nikosjokk-score-grid{margin-top:5px}.hole-nikosjokk-score-grid span,.hole-nikosjokk-score-grid>b{padding-top:5px!important;padding-bottom:5px!important}.hole-nikosjokk-score-grid small{display:inline!important;margin:0 0 0 7px!important;font-size:7px!important}.hole-nikosjokk-score-grid span{white-space:nowrap}.hole-nikosjokk-reward{margin-top:5px}.hole-snus-progress-wrap{margin-top:5px}
.hole-coop-root{position:relative;width:42%;margin:8px auto 0;padding:6px;background:#1a1020;border:1px solid #8a5a94;box-shadow:0 0 4px #321a38;text-align:left}.hole-coop-root.eid{background:#211426;border-color:#b47bc0;box-shadow:0 0 5px #74417e}.hole-coop-root.locked{opacity:.5}.hole-coop-root .hole-skill-card-title{font-size:9px}.hole-coop-root .hole-skill-card-desc{font-size:7px}.hole-coop-root .hole-skill-card-cost{font-size:7px}.hole-coop-root button{display:inline-block;width:auto!important;min-width:55px;margin-top:4px!important;padding:2px 5px!important;font-size:7px!important}.hole-coop-root.eid button{background:#321a38!important;color:#d9a7e2!important;border-color:#65456d!important}
.hole-coop-root-arrow{height:22px;margin:1px 0 2px;color:#4d3a52;font:bold 17px/22px "Courier New",monospace;text-align:center;text-shadow:1px 1px #000}.hole-coop-root-arrow.active{color:#d99ce4;text-shadow:0 0 5px #7b4387}
@media screen and (max-width:600px){.hole-nikosjokk-score-grid small{display:block!important;margin:2px 0 0!important}.hole-nikosjokk-score-grid span{white-space:normal}.hole-coop-root{width:65%}}

/* COOP LIA ECONOMY FEEDBACK */
.hole-money-skill-bonus{align-items:baseline;justify-content:center;flex-wrap:wrap;gap:1px;margin-top:4px!important;font:bold 7px "Courier New",monospace;line-height:11px;letter-spacing:0;white-space:nowrap}
.hole-money-skill-bonus .hole-math-label{font-size:7px}
.hole-money-skill-bonus .hole-bonus-token{font-size:8px!important;line-height:11px!important}
.hole-joker-coop-effects{align-items:center;justify-content:center;gap:5px;margin-top:5px;color:#8be49c;font:bold 7px "Courier New",monospace}
.hole-joker-coop-effects .hole-joker-coop-token{padding:2px 4px;background:#0d180f;border:1px solid #31543a;color:#8be49c!important;font-size:7px!important;line-height:1.2!important;cursor:help;white-space:nowrap}
.hole-joker-coop-effects i{color:#425b47;font-style:normal}
@media screen and (max-width:600px){.hole-money-skill-bonus,.hole-joker-coop-effects{font-size:6px}.hole-money-skill-bonus .hole-math-label{font-size:6px}.hole-joker-coop-effects .hole-joker-coop-token{font-size:6px!important}}

.hole-joker-leaderboard-row{
min-width:0;
max-width:100%;
overflow:hidden
}

.hole-joker-leaderboard-row>b{
min-width:0;
overflow:hidden;
text-overflow:ellipsis
}

.hole-joker-leaderboard-row>strong{
flex:0 0 auto;
max-width:45%;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap
}


/* DETAIL PASS: ECONOMY / HEADER ALIGNMENT / COOP STATES / TRANSITIONS */
#holegame #hole-dig-frame-bar .hole-collapse-button,
#holegame .hole-joker-title .hole-collapse-button,
#holegame .hole-nikosjokk-title .hole-collapse-button,
#holegame .hole-upgrade-menu-title .hole-collapse-button,
#holegame .hole-mystic-title .hole-collapse-button{
display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 18px!important;width:18px!important;min-width:18px!important;height:18px!important;margin:0!important;padding:0!important;box-sizing:border-box!important;font:bold 11px/1 "Courier New",monospace!important;vertical-align:middle!important
}
.hole-dig-frame-controls,.hole-joker-title>div,.hole-nikosjokk-title>div,.hole-upgrade-menu-title>span:last-child,.hole-mystic-title>span:last-child{align-items:center!important}
#hole-nikosjokk-confirm-button{background:#432064!important;color:#f4eaff!important;border-top-color:#8b69c9!important;border-left-color:#8b69c9!important;border-right-color:#241039!important;border-bottom-color:#241039!important;box-shadow:0 0 6px #6541a0,0 0 12px rgba(80,107,255,.34)!important;animation:holeNikoConfirmGlow .85s ease-in-out infinite alternate}
@keyframes holeNikoConfirmGlow{from{filter:brightness(1);box-shadow:0 0 4px #6541a0,0 0 7px rgba(80,107,255,.22)}to{filter:brightness(1.3);box-shadow:0 0 9px #9569df,0 0 17px rgba(79,119,255,.55)}}
.hole-skill-card.available{background:#080a09!important;border-style:dashed!important;box-shadow:none!important;filter:saturate(.72) brightness(.88)}
.hole-skill-card.available .hole-skill-card-title{opacity:.82}.hole-skill-card.available .hole-skill-card-desc,.hole-skill-card.available .hole-skill-card-cost{opacity:.72}
.hole-skill-card.available button:not(:disabled){filter:none!important;opacity:1!important;box-shadow:0 0 4px currentColor!important}
.hole-coop-root.available{background:#0b080d!important;border-style:dashed!important;box-shadow:none!important;filter:saturate(.75) brightness(.9)}
.hole-coop-root.eid{filter:none!important;border-style:solid!important}
/* NIKOSJOKK COMPACT SUMMARY / NIKOSJOKK WHITEOUT */
.hole-nikosjokk-main{padding:8px;background:#120c15;border:1px solid #49364f}
.hole-nikosjokk-main .hole-nikosjokk-reward{margin:0;padding:0 0 7px;background:transparent;border:0;color:#bda9c2;font-size:9px}
.hole-nikosjokk-main .hole-nikosjokk-reward b{display:block;margin-top:2px;color:#f1d7f5;font-size:16px;text-shadow:0 0 5px #5d2968}
.hole-nikosjokk-main .hole-snus-progress-wrap{margin:0;padding-top:6px;border-top:1px solid #392c3d}
.hole-loot-quality{margin:7px 0;padding:8px;border:1px solid #526c79;background:#101a22;color:#adcedd;font:10px/1.5 "Courier New",monospace}
.hole-loot-quality[hidden]{display:none}
.hole-loot-quality-heading,.hole-loot-quality-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 12px}
.hole-loot-quality-heading{margin-bottom:5px}.hole-loot-quality-heading b{color:#d3efff}
.hole-loot-quality-caption{margin-top:4px;color:#91a9b5;font-size:9px}
.hole-loot-quality .hole-snus-progress{height:7px;border-color:#385463}
.hole-loot-quality .hole-snus-progress i{background:repeating-linear-gradient(90deg,#38697c 0,#38697c 7px,#619db1 7px,#619db1 10px);box-shadow:none;transition:none}
.hole-loot-quality.is-ready{border-color:#74c4aa}.hole-loot-quality.is-ready .hole-loot-quality-heading span{color:#a2e7cb}
#hole-nikosjokk-details-toggle{display:flex!important;align-items:center;justify-content:space-between;width:100%!important;margin:5px 0!important;padding:4px 6px!important;background:#120c15!important;color:#9f81a6!important;border:1px solid #49364f!important;box-shadow:none!important;font-size:8px!important;text-align:left}
#hole-nikosjokk-details-toggle span{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:#d8b7df;border:1px solid #65456d;font-size:10px;line-height:1}
#hole-nikosjokk-details{margin-bottom:5px}
#hole-nikosjokk-details .hole-nikosjokk-score-total{margin:0 0 4px}
#hole-nikosjokk-button{width:205px!important}
.hole-money-skill-bonus{margin-top:4px!important;font-size:7px!important}
#hole-dig-frame{position:relative}
#hole-canvas-wrap{overflow:hidden}
#hole-new-hole-fx{
position:absolute;
inset:0;
z-index:80;
display:none;
pointer-events:none;
opacity:0;
background:#fff;
box-shadow:inset 0 0 35px rgba(111,70,180,.8);
}
#hole-new-hole-fx.show{
display:block;
animation:holeNikosjokkFlash 3s linear forwards;
}
#hole-new-hole-fx>div,
#hole-new-hole-fx b,
#hole-new-hole-fx span{display:none!important}

@keyframes holeNikosjokkFlash{
0%{opacity:0;background:#fff;box-shadow:inset 0 0 20px rgba(255,255,255,.4)}
5%{opacity:.58;background:#cfc1ff;box-shadow:inset 0 0 55px rgba(145,92,255,.9)}
10%{opacity:.10;background:#7650aa}
15%{opacity:.82;background:#fff}
22%{opacity:.18;background:#8e6abb}
28%{opacity:.72;background:#f0eaff;box-shadow:inset 0 0 70px rgba(113,69,190,.9)}
35%{opacity:.14;background:#684894}
42%{opacity:.84;background:#fff}
49%{opacity:.27;background:#a58bd0}
56%{opacity:.70;background:#eee8ff}
63%{opacity:.42;background:#9b79c8}
68%{opacity:.94;background:#fff;box-shadow:inset 0 0 100px rgba(255,255,255,1)}
74%{opacity:1;background:#f9f5ff;box-shadow:inset 0 0 120px rgba(238,225,255,1)}
82%{opacity:1;background:#eee3ff;box-shadow:inset 0 0 130px rgba(211,181,255,1)}
90%{opacity:1;background:#dfceff;box-shadow:inset 0 0 140px rgba(181,135,255,1)}
100%{opacity:1;background:#d8c5ff;box-shadow:inset 0 0 150px rgba(164,111,255,1)}
}

@media screen and (max-width:600px){
#hole-nikosjokk-button{width:190px!important}
.hole-nikosjokk-main{padding:7px}
}

/* JOKERSLOTS RARE CHANCE */
.hole-joker-rare-chance{margin-top:4px;color:#796884;font-size:8px;font-weight:bold;text-align:center}
.hole-joker-rare-chance b{color:#d99ce4;font-size:10px;text-shadow:0 0 4px #6b3477}

/* FRYSEDISKEN UNLOCK POPUP */
#hole-frysedisken-popup{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:14px!important;box-sizing:border-box!important;border:0!important;background:transparent!important;z-index:2147483600!important;overflow:hidden!important;transform:none!important}
#hole-frysedisken-popup[open]{display:block!important}
#hole-frysedisken-popup::backdrop{background:rgba(0,8,14,.78)}
.hole-frysedisken-popup-box{position:absolute;left:var(--hole-fryse-center-x,50vw);top:50%;width:min(380px,92vw);margin:0;padding:14px;box-sizing:border-box;background:#07121a;color:#b8d5e6;border-top:2px solid #5790b2;border-left:2px solid #5790b2;border-right:2px solid #102b3b;border-bottom:2px solid #102b3b;box-shadow:0 0 16px #356f93,0 0 32px rgba(53,111,147,.4);text-align:center;font:9px/1.45 "Courier New",monospace;transform:translate(-50%,-50%)}
.hole-frysedisken-popup-title{margin-bottom:10px;color:#a8ddff;font:bold 17px "Times New Roman",serif;text-shadow:0 0 6px #397a9f;letter-spacing:.5px}
.hole-frysedisken-popup-box p{margin:7px 0;color:#9dbccc}
.hole-frysedisken-popup-box b{color:#d8f1ff}
#hole-frysedisken-popup-close{margin-top:8px!important;padding:5px 18px!important;background:#17435d!important;color:#d7efff!important;border-top:2px solid #5790b2!important;border-left:2px solid #5790b2!important;border-right:2px solid #09202e!important;border-bottom:2px solid #09202e!important;box-shadow:none!important;font:bold 9px "Courier New",monospace!important}
#hole-frysedisken-popup-close:active{background:#0d2c40!important;border-top-color:#09202e!important;border-left-color:#09202e!important;border-right-color:#5790b2!important;border-bottom-color:#5790b2!important}
#hole-frysedisken-popup-close:focus,#hole-frysedisken-popup-close:focus-visible{outline:none!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent!important}

/* OFFLINE / VELKOMMEN TILBAKE - LIVES INSIDE #holegame */
#hole-offline-popup{
position:absolute;
inset:0;
z-index:1000;
display:none;
padding:0;
box-sizing:border-box;
background:rgba(0,0,0,.78);
}
.hole-offline-box{
position:absolute;
left:50%;
top:var(--hole-offline-center-y,50%);
width:min(360px,calc(100% - 20px));
margin:0;
transform:translate(-50%,-50%);
padding:14px;box-sizing:border-box;
background:#180f1d;
color:#ddd;
border:2px solid #70477d;
border-right-color:#241029;
border-bottom-color:#241029;box-shadow:0 0 18px #36183f;
text-align:center;
font-family:Verdana,Arial,sans-serif;font-size:10px}



.hole-offline-title{margin-bottom:12px;color:#e4c7ee;font-size:15px;font-weight:bold;letter-spacing:1px}
#hole-offline-away,#hole-offline-worked{margin:7px 0;line-height:1.5}
.hole-offline-results{margin:14px 0;padding:10px 0;border-top:1px solid #684373;border-bottom:1px solid #684373;font-size:12px}
.hole-offline-results div{margin:5px 0}
.hole-offline-results b{color:#ead7f0}
#hole-offline-close{margin-top:3px;padding:5px 18px;background:#4d1956;color:#f4d9f8;border-top:2px solid #8d5598;border-left:2px solid #8d5598;border-right:2px solid #210b25;border-bottom:2px solid #210b25;font:bold 10px Verdana}
#hole-offline-close:focus,#hole-offline-close:focus-visible{outline:none;box-shadow:none;-webkit-tap-highlight-color:transparent}
@media screen and (max-width:600px){
.hole-offline-box{width:min(360px,100%);padding:12px 10px}.hole-offline-title{font-size:14px}}

/* COOP LIA - SIX TIER SCROLLING TREE */
#hole-skill-tree{
grid-template-columns:repeat(4,minmax(0,1fr))!important;
gap:8px!important;
max-height:410px;
margin-top:4px;
padding:0 3px 4px;
box-sizing:border-box;
overflow-y:auto;
overflow-x:hidden;
align-items:start;
scrollbar-width:thin;
scrollbar-color:#765080 #0c080f
}
#hole-skill-tree::-webkit-scrollbar{width:7px}
#hole-skill-tree::-webkit-scrollbar-track{background:#0c080f}
#hole-skill-tree::-webkit-scrollbar-thumb{background:#563b5d;border:1px solid #251a29}
.hole-skill-branch{min-width:0!important;padding:0 2px 5px!important}
.hole-skill-branch>h3{position:sticky;top:0;z-index:5;margin:0 0 5px!important}
.hole-skill-card{box-sizing:border-box;text-align:center!important}
.hole-skill-card-title,.hole-skill-card-desc,.hole-skill-card-cost,.hole-skill-card-requirement{text-align:center!important}
.hole-skill-card button{display:block!important;width:auto!important;min-width:50px;margin:5px auto 0!important}
.hole-coop-root{text-align:center!important}
.hole-coop-root button{display:block!important;margin:5px auto 0!important}
.hole-skill-card.last.hole-skill-depth-4{opacity:.18}
.hole-skill-card.last.hole-skill-depth-5{opacity:.14}
.hole-skill-card.last.hole-skill-depth-6{opacity:.10}

@media screen and (max-width:600px){
#hole-skill-tree{
grid-template-columns:repeat(4,minmax(0,1fr))!important;
gap:3px!important;
max-height:350px;
padding:0 1px 3px
}
.hole-skill-branch{padding:0!important}
.hole-skill-branch>h3{margin-bottom:3px!important;padding:3px 1px!important;font-size:6px!important;line-height:1.1;overflow-wrap:anywhere}
.hole-skill-arrow{height:11px!important;margin:0!important;font-size:9px!important;line-height:11px!important}
.hole-skill-card{margin:0 0 4px!important;padding:3px 2px!important}
.hole-skill-card-title{font-size:7px!important;line-height:1.05!important;overflow-wrap:anywhere}
.hole-skill-card-desc{margin-top:2px!important;font-size:6px!important;line-height:1.1!important;overflow-wrap:anywhere}
.hole-skill-card-cost{margin-top:2px!important;font-size:6px!important;line-height:1.1!important}
.hole-skill-card button{width:100%!important;max-width:58px!important;min-width:0!important;margin:4px auto 0!important;padding:2px 1px!important;font-size:6px!important}
.hole-coop-root{width:60%!important}
.hole-joker-rare-chance{font-size:7px}.hole-joker-rare-chance b{font-size:9px}
}
@media screen and (max-width:360px){
#hole-skill-tree{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2px!important}
.hole-coop-root{width:68%!important}
}


/* COOP LIA BUTTONS - PURPLE, NO GLOW */
.hole-skill-card.available button:not(:disabled),.hole-coop-root.available button:not(:disabled){background:#4d1956!important;color:#f4d9f8!important;border-top:2px solid #8d5598!important;border-left:2px solid #8d5598!important;border-right:2px solid #210b25!important;border-bottom:2px solid #210b25!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
.hole-skill-card.available button:not(:disabled):active,.hole-coop-root.available button:not(:disabled):active{background:#38113f!important;border-top-color:#210b25!important;border-left-color:#210b25!important;border-right-color:#8d5598!important;border-bottom-color:#8d5598!important}
/* IOS - REMOVE UGLY AUTO-FOCUS RING ON FIRST MASTERY POPUP */
#hole-first-mastery-close:focus,#hole-first-mastery-close:focus-visible{outline:none!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent!important}

/* =========================================================
   GAMBLING MASTERY / GAMBLINGRANK
   ========================================================= */

.hole-gambling-card-badge{
display:inline-block;
margin:4px 3px 0 0;
padding:2px 4px;
background:#16051d;
color:#ef8cff;
border:1px solid #78408a;
box-shadow:0 0 3px #552366;
font-size:7px;
font-weight:bold;
letter-spacing:.2px;
text-shadow:1px 1px #000;
white-space:nowrap
}

/* JOKERSLOTS OVERVIEW */

.hole-gambler-values{
display:flex!important;
align-items:baseline!important;
justify-content:flex-end!important;
flex-wrap:wrap!important;
gap:4px!important;
margin-left:auto
}

.hole-gambling-mastery{
display:inline-block;
color:#ff84ff;
font-size:9px;
font-weight:bold;
line-height:1;
text-shadow:
1px 1px #000,
0 0 4px #8b24a5;
white-space:nowrap
}

.hole-gambling-effective{
display:inline-block;
color:#e9a6ff;
font-size:8px;
font-style:normal;
font-weight:bold;
line-height:1;
white-space:nowrap
}

.hole-joker-global{
display:grid;
grid-template-columns:1fr 1fr;
gap:8px;
margin-top:8px;
padding:7px 0 0;
border-top:1px dotted #405040
}

.hole-joker-global>span{
display:flex!important;
align-items:baseline;
justify-content:space-between;
gap:5px;
color:#8b9c8b;
font-size:8px!important;
font-weight:bold
}

.hole-joker-global .hole-gambler-percent{
font-size:9px
}


/* =========================================================
   CENTERED GAMBLINGRANK POPUP
   ========================================================= */

#hole-gambling-rank-popup{
position:fixed!important;
inset:0!important;
width:100vw!important;
height:100vh!important;
max-width:none!important;
max-height:none!important;
margin:0!important;
padding:14px!important;
box-sizing:border-box!important;
border:0!important;
background:transparent!important;
z-index:2147483646!important;
overflow:hidden!important;
transform:none!important
}

#hole-gambling-rank-popup[open]{
display:block!important
}

#hole-gambling-rank-popup::backdrop{
background:rgba(0,0,0,.80)
}

.hole-gambling-rank-box{
position:absolute;
left:var(--hole-gambling-center-x,50vw);
top:var(--hole-gambling-center-y,50vh);
width:min(390px,92vw);
margin:0;
padding:14px;
box-sizing:border-box;
background:#130518;
color:#dab5e4;
border-top:2px solid #a95abb;
border-left:2px solid #a95abb;
border-right:2px solid #3b1545;
border-bottom:2px solid #3b1545;
box-shadow:
0 0 14px #762d88,
0 0 28px rgba(164,62,190,.4);
text-align:center;
font:9px/1.4 "Courier New",monospace;
transform:translate(-50%,-50%)
}

#hole-gambling-rank-title{
display:block;
margin-bottom:11px;
color:#ff9cff;
font-size:16px;
line-height:1.2;
text-shadow:
1px 1px #000,
0 0 6px #a000c0
}

.hole-gambling-rank-stats{
display:grid;
grid-template-columns:repeat(3,1fr);
margin:8px 0;
background:#080309;
border:1px solid #56305e
}

.hole-gambling-rank-stats>span{
min-width:0;
padding:7px 3px;
box-sizing:border-box;
color:#826c88;
font-size:7px;
border-right:1px solid #38203d
}

.hole-gambling-rank-stats>span:last-child{
border-right:0
}

.hole-gambling-rank-stats b{
display:block;
margin-top:4px;
color:#f1c6f8;
font-size:10px;
white-space:nowrap
}

#hole-gambling-rank-multiplier{
color:#ff74ff;
font-size:15px
}

#hole-gambling-rank-effective{
color:#fff;
font-size:11px
}

#hole-gambling-rank-close{
margin-top:8px!important;
padding:5px 16px!important;
background:#51145d!important;
color:#ffe7ff!important;
border-top:2px solid #a95abb!important;
border-left:2px solid #a95abb!important;
border-right:2px solid #26072d!important;
border-bottom:2px solid #26072d!important;
box-shadow:none!important;
font:bold 9px "Courier New",monospace!important
}

#hole-gambling-rank-close:focus,
#hole-gambling-rank-close:focus-visible{
outline:none!important;
box-shadow:none!important
}


/* FINAL GAMBLING MASTERY */

#hole-gambling-rank-popup.hole-gambling-mastered
.hole-gambling-rank-box{
background:#171304;
border-top-color:#ffe66a;
border-left-color:#ffe66a;
border-right-color:#5c4b0c;
border-bottom-color:#5c4b0c;
box-shadow:
0 0 16px #d5b931,
0 0 35px rgba(255,219,75,.45)
}

#hole-gambling-rank-popup.hole-gambling-mastered
#hole-gambling-rank-title,
#hole-gambling-rank-popup.hole-gambling-mastered
#hole-gambling-rank-multiplier{
color:#fff37a;
text-shadow:0 0 7px #a48200
}

#hole-gambling-rank-popup.hole-gambling-mastered
#hole-gambling-rank-close{
background:#57490d!important;
color:#fff6a2!important;
border-top-color:#d8c24a!important;
border-left-color:#d8c24a!important;
border-right-color:#241d04!important;
border-bottom-color:#241d04!important
}


/* LET TEST BUTTONS WRAP WITH THE NEW BUTTON */

#hole-test-banner{
flex-wrap:wrap
}

@media screen and (max-width:600px){

.hole-gambling-mastery{
font-size:8px
}

.hole-gambling-effective{
font-size:7px
}

.hole-joker-global{
grid-template-columns:1fr
}

.hole-gambling-rank-stats{
grid-template-columns:1fr
}

.hole-gambling-rank-stats>span{
border-right:0;
border-bottom:1px solid #38203d
}

.hole-gambling-rank-stats>span:last-child{
border-bottom:0
}

.hole-gambling-card-badge{
font-size:7px
}
}

/* =========================================================
   GAMBLINGBONUS TOOLTIP
   Keep the ? / gambling summary compact and inside the item
   instead of allowing one huge nowrap line.
   ========================================================= */

.hole-shop-item .hole-bonus-token.hole-math-gambler:hover::after,
.hole-shop-item .hole-bonus-token.hole-math-gambler:focus::after{
  box-sizing:border-box;
  left:0;
  right:auto;
  width:max-content;
  max-width:200px;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  text-align:left;
  transform:none;
}


/* =========================================================
   MAIN + MASTERGRAD
   ========================================================= */

.hole-shop-item.hole-main{
  box-shadow:0 0 5px #78a96a,inset 0 0 4px rgba(86,125,70,.45)
}

.hole-main-badge{
  display:inline-block;
  margin:4px 3px 0 0;
  padding:2px 4px;
  background:#13210f;
  color:#a9e89a;
  border:1px solid #4e7944;
  font-size:7px;
  font-weight:bold;
  letter-spacing:.3px;
  text-shadow:1px 1px #000;
  white-space:nowrap
}

.hole-mastergrad-badge{
  background:#161c22;
  color:#a9d8ff;
  border-top:1px solid #527695;
  border-right:1px solid #527695;
  border-bottom:1px solid #527695;
  border-left:0
}

.hole-math-mastergrad{
  color:#9ed1ff!important;
  border-bottom:1px dotted #426b8a
}

.hole-math-mastergrad:hover::after,
.hole-math-mastergrad:focus::after{
  white-space:normal;
  width:max-content;
  max-width:190px;
  box-sizing:border-box
}

/* Seventh COOP LIA tier: MAIN AKTIV / MAIN PASSIV */
.hole-skill-card.last.hole-skill-depth-7{opacity:.07}

/* MASTERGRAD CHOICE POPUP */
#hole-mastergrad-popup{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:14px!important;
  box-sizing:border-box!important;
  border:0!important;
  background:transparent!important;
  z-index:2147483647!important;
  overflow:hidden!important;
  transform:none!important
}

#hole-mastergrad-popup[open]{display:block!important}
#hole-mastergrad-popup::backdrop{background:rgba(0,0,0,.84)}

.hole-mastergrad-box{
  position:absolute;
  left:var(--hole-mastergrad-center-x,50vw);
  top:var(--hole-mastergrad-center-y,50vh);
  width:min(500px,94vw);
  margin:0;
  padding:12px;
  box-sizing:border-box;
  background:#0c1118;
  color:#b9cad8;
  border-top:2px solid #6787a0;
  border-left:2px solid #6787a0;
  border-right:2px solid #263746;
  border-bottom:2px solid #263746;
  box-shadow:0 0 16px rgba(73,120,158,.6);
  text-align:center;
  font:9px/1.35 "Courier New",monospace;
  transform:translate(-50%,-50%)
}

#hole-mastergrad-title{
  display:block;
  margin-bottom:4px;
  color:#d7edff;
  font-size:16px;
  text-shadow:1px 1px #000,0 0 5px #426b8a
}

#hole-mastergrad-item{
  margin-bottom:9px;
  color:#fff;
  font-size:11px;
  font-weight:bold
}

.hole-mastergrad-warning{
  margin:0 0 9px;
  color:#e0bc6b;
  font-size:8px;
  font-weight:bold
}

.hole-mastergrad-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px
}

.hole-mastergrad-option{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:8px 5px!important;
  background:#111a24!important;
  color:#c8dcec!important;
  border-top:2px solid #5f7f98!important;
  border-left:2px solid #5f7f98!important;
  border-right:2px solid #223342!important;
  border-bottom:2px solid #223342!important;
  box-shadow:none!important;
  font:8px/1.25 "Courier New",monospace!important;
  white-space:normal!important
}

.hole-mastergrad-option:hover{
  background:#172636!important
}

.hole-mastergrad-option strong{
  display:block;
  margin-bottom:5px;
  color:#a9d8ff;
  font-size:10px
}

.hole-mastergrad-option span{
  display:block;
  min-height:30px;
  color:#8fa6b8;
  font-size:7px
}

.hole-mastergrad-option em{
  display:block;
  margin-top:6px;
  color:#fff3a0;
  font-size:8px;
  font-style:normal;
  font-weight:bold
}

@media screen and (max-width:600px){
  .hole-mastergrad-options{grid-template-columns:1fr}
  .hole-mastergrad-option span{min-height:0}
  .hole-mastergrad-box{width:min(390px,94vw)}
  .hole-main-badge,.hole-mastery-badge,.hole-mastergrad-badge{font-size:7px}
}

/* MOBILE TAP FIX */
#holegame button,
#holegame a,
#holegame .hole-shop-item,
#holegame #hole-buy-amount {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#hole-canvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* GRØV IS A GAME CONTROL — NEVER SCROLL FROM IT */
#hole-dig-button {
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
/* MASTERGRAD IDENTITIES */
.hole-grad-astrofysikk,[data-mastergrad-choice="astrofysikk"]{
  --mastergrad-color:#9ed1ff;
  --mastergrad-background:url("https://bettysgraphics.neocities.org/images/backgrounds/pattern%20571.gif");
}
.hole-grad-geologi,[data-mastergrad-choice="geologi"]{
  --mastergrad-color:#b4d78a;
  --mastergrad-background:url("https://bettysgraphics.neocities.org/images/backgrounds/pattern%209.jpg");
}
.hole-grad-spillteori,[data-mastergrad-choice="spillteori"]{
  --mastergrad-color:#efa5df;
  --mastergrad-background:url("https://bettysgraphics.neocities.org/images/backgrounds/pattern%20485.jpg");
}
.hole-shop-item.owned.hole-mastered[class*="hole-grad-"]{
  background:linear-gradient(rgba(5,5,8,.72),rgba(5,5,8,.84)),var(--mastergrad-background) repeat #101014!important;
  border-color:var(--mastergrad-color);
  box-shadow:0 0 5px var(--mastergrad-color),inset 0 0 4px rgba(0,0,0,.8);
}
.hole-shop-item[class*="hole-grad-"] .hole-item-frame{
  border:2px solid var(--mastergrad-color);
  box-shadow:0 0 5px var(--mastergrad-color),inset 0 0 2px var(--mastergrad-color);
  animation:none;
}
.hole-shop-item[class*="hole-grad-"] .hole-mastergrad-badge{
  color:var(--mastergrad-color);
  border:1px solid var(--mastergrad-color);
  background:rgba(0,0,0,.65);
}
.hole-shop-item[class*="hole-grad-"] .hole-math-mastergrad{
  color:var(--mastergrad-color)!important;
  border-bottom-color:var(--mastergrad-color);
}
.hole-mastergrad-option[data-mastergrad-choice]{border-color:var(--mastergrad-color)}
.hole-mastergrad-option[data-mastergrad-choice] strong,
.hole-mastergrad-option[data-mastergrad-choice] em{color:var(--mastergrad-color)}
/* =========================================================
   TOTAL DYBDE LEADERBOARD — GEOLOGICAL DEPTH BARS
   ========================================================= */

#hole-leaderboard .hole-depth-leaderboard-row{
display:grid;
grid-template-columns:
  22px
  minmax(72px,120px)
  minmax(35px,1fr)
  72px;
align-items:center;
gap:6px;
width:100%;
box-sizing:border-box;
padding:4px 0;
}

/* fixed username zone */
.hole-depth-leaderboard-name{
min-width:0;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}

/* fixed distance zone */
.hole-depth-leaderboard-value{
min-width:0;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
text-align:right;
}

/* empty comparison track */
.hole-depth-leaderboard-track{
position:relative;
display:block;
height:10px;
min-width:0;
overflow:hidden;
box-sizing:border-box;

background:#080808;

border-top:1px solid #191919;
border-left:1px solid #191919;
border-right:1px solid #343434;
border-bottom:1px solid #343434;

box-shadow:
  inset 0 1px 2px #000,
  0 0 1px #000;
}

/*
  GEOLOGICAL CORE SAMPLE

  Colours are taken from the actual HØL layer palette:
  jord -> leire -> grus -> fiellj -> granitt ->
  gammelfiellj -> skorpe -> lava -> etc.
*/
.hole-depth-leaderboard-fill{
position:absolute;
left:0;
top:0;
bottom:0;

min-width:0;

background:
  linear-gradient(
    180deg,
    rgba(255,255,255,.08) 0,
    rgba(255,255,255,0) 30%,
    rgba(0,0,0,.14) 70%,
    rgba(0,0,0,.35) 100%
  ),
  repeating-linear-gradient(
    90deg,

    #59391f 0px,
    #59391f 7px,

    #704525 7px,
    #704525 16px,

    #756653 16px,
    #756653 27px,

    #55504a 27px,
    #55504a 40px,

    #454549 40px,
    #454549 54px,

    #393337 54px,
    #393337 69px,

    #30292d 69px,
    #30292d 85px,

    #40272a 85px,
    #40272a 101px,

    #522729 101px,
    #522729 114px,

    #611f20 114px,
    #611f20 128px,

    #21151d 128px,
    #21151d 139px,

    #35222c 139px,
    #35222c 145px,

    #571f23 145px,
    #571f23 150px
  );

box-shadow:
  inset -1px 0 rgba(255,255,255,.2),
  inset 0 1px rgba(255,255,255,.08);

}

/* little dark vertical cuts make it feel more like strata/core */
.hole-depth-leaderboard-fill::after{
content:"";
position:absolute;
inset:0;

background:
repeating-linear-gradient(
  90deg,
  transparent 0,
  transparent 14px,
  rgba(0,0,0,.24) 14px,
  rgba(0,0,0,.24) 15px
);

pointer-events:none;
}


/* MOBILE */

@media screen and (max-width:600px){

#hole-leaderboard .hole-depth-leaderboard-row{
grid-template-columns:
  18px
  minmax(55px,85px)
  minmax(25px,1fr)
  62px;

gap:4px;
}

.hole-depth-leaderboard-track{
height:9px;
}

}

@media screen and (max-width:360px){

#hole-leaderboard .hole-depth-leaderboard-row{
grid-template-columns:
  17px
  68px
  minmax(20px,1fr)
  57px;
}

}
/* Worksite close-up control: keep all three controls usable on narrow screens. */
#holegame #hole-camera-controls{display:flex;justify-content:center;gap:4px;flex-wrap:wrap}
#holegame #hole-camera-controls button{min-width:44px;margin:0}
#holegame #hole-camera-controls #hole-zoom-button{min-width:112px;font-size:10px}
#holegame #hole-zoom-button[aria-pressed="true"]{color:#ffff99;border-color:#b49b68}

/* Native-size text stays sharp independently of the pixel-art canvas. */
#hole-worker-hud{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:4;image-rendering:auto}
#hole-worker-hud .hole-worker-hit-number{position:absolute;display:none;white-space:nowrap;color:#ffff88;font:700 11px/1.1 "Courier New",monospace;text-shadow:1px 1px #080808,-1px -1px #080808;will-change:transform,opacity}
#hole-worker-hud .hole-worker-name-badge{position:absolute;display:none;transform:translate(-50%,-100%) translateY(-7px);padding:4px 6px;border:1px solid #b49b68;background:#101010;color:#ffff99;white-space:nowrap;text-align:center;font:700 11px/1.2 "Courier New",monospace}
#hole-worker-hud .hole-worker-name-badge b{display:block;font:inherit}
#hole-worker-hud .hole-worker-name-badge small{display:block;margin-top:2px;color:#ddddbb;font:10px/1.2 "Courier New",monospace}

/* Manual impacts use a short, decaying shake; magnitude is visual-only. */
#hole-canvas.hole-hit{animation:holeManualImpact .19s linear}
@keyframes holeManualImpact{
0%,100%{transform:translate(0,0)}
15%{transform:translate(calc(var(--hole-shake,.25px)*-.65),var(--hole-shake,.25px))}
32%{transform:translate(calc(var(--hole-shake,.25px)*.5),calc(var(--hole-shake,.25px)*-.65))}
52%{transform:translate(calc(var(--hole-shake,.25px)*-.3),calc(var(--hole-shake,.25px)*.35))}
75%{transform:translate(calc(var(--hole-shake,.25px)*.12),calc(var(--hole-shake,.25px)*-.15))}
}
#hole-effects .hole-depth-number{animation-name:holeManualNumber}
@keyframes holeManualNumber{
0%{opacity:1;transform:translate(-50%,-100%) scale(.78)}
16%{opacity:1;transform:translate(calc(-50% + 2px),calc(-100% - 3px)) scale(var(--hit-pop,1.12))}
40%{opacity:.84;transform:translate(calc(-50% + 5px),calc(-100% - 7px)) scale(1)}
100%{opacity:0;transform:translate(calc(-50% + 8px),calc(-100% - 18px)) scale(1)}
}
#hole-effects .hole-money-number{animation-name:holeManualNumber;animation-fill-mode:both}
#hole-worker-hud .hole-worker-hit-number{transform-origin:center bottom}

/* Keep layer labels at native text size in both camera views. */
#hole-worker-hud .hole-layer-badge{position:absolute;left:4px;max-width:calc(100% - 8px);box-sizing:border-box;padding:3px 5px;background:rgba(0,0,0,.65);color:#ddd;font:10px/1.2 "Courier New",monospace;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
/* One shared grid sizes the score column from the widest score across all rows. */
#hole-leaderboard-list:has(.hole-depth-leaderboard-row){display:grid;grid-template-columns:22px minmax(0,120px) minmax(0,1fr) max-content;column-gap:6px}
#hole-leaderboard .hole-depth-leaderboard-row{grid-column:1 / -1;grid-template-columns:subgrid}
#hole-leaderboard .hole-depth-leaderboard-value{width:auto;max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap}
@media(max-width:600px){#hole-leaderboard-list:has(.hole-depth-leaderboard-row){grid-template-columns:18px minmax(0,85px) minmax(0,1fr) max-content;column-gap:4px}}
@media(max-width:360px){#hole-leaderboard-list:has(.hole-depth-leaderboard-row){grid-template-columns:17px minmax(0,68px) minmax(0,1fr) max-content}}

/* Unsaved excavation test presets, alongside the existing test controls. */
#hole-test-banner .hole-test-excavation{border-color:#d3a257;color:#ffe4a5;}
#hole-test-banner button{white-space:normal;}

/* FRYSEDISKEN: contained dark panel. The world must never size the page/table. */
#holegame #hole-mystic-menu{width:100%;max-width:100%;min-width:0;box-sizing:border-box;contain:inline-size;background:#080808;border:1px solid #555;text-align:left}
#holegame #hole-mystic-menu .hole-mystic-title{background:#15100b;border-bottom:1px solid #70552d;color:#d7b971;padding:6px 7px;font-size:11px}
#holegame .hole-spec-toolbar{display:flex;flex-direction:column;gap:5px;padding:6px;background:#0c0c0c;border-bottom:1px solid #333;color:#aaa;font:10px/1.4 "Courier New",monospace;min-width:0}
.hole-spec-nav{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
#holegame .hole-spec-nav button{padding:4px 6px;font-size:9px;background:#171717;color:#c5b38d;border:1px solid #555}
#holegame .hole-spec-nav button:hover{background:#2b2118;color:#fff}
#hole-spec-status{display:block;min-height:14px;overflow-wrap:anywhere}
#holegame #hole-mystic-shop-list{position:relative;display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:320px;max-height:65vh;padding:0;overflow:auto;contain:strict;touch-action:none;cursor:grab;background:#080808;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#555 #111;scroll-behavior:auto;overflow-anchor:none}
#holegame #hole-mystic-shop-list:active{cursor:grabbing}
.hole-spec-space{position:absolute;left:0;top:0;width:2400px;height:2240px;overflow:hidden}
.hole-spec-board{position:absolute;left:0;top:0;width:2400px;height:2240px;transform-origin:0 0;background:#080808 url("/images/frysedisken/spacebg9.jpg") repeat;image-rendering:pixelated}
.hole-spec-board svg{position:absolute;inset:0;pointer-events:none;fill:none;stroke-width:1;opacity:.45}
#holegame #hole-mystic-menu .hole-spec-node{position:absolute;width:160px;height:110px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;gap:3px;padding:6px;margin:0;white-space:normal;text-align:left;background:#111;border:1px solid #555;border-top:2px solid var(--route);color:#bbb;font:10px/1.2 "Courier New",monospace;cursor:pointer;touch-action:none;box-shadow:none;overflow:hidden}
#holegame .hole-spec-node b{font-size:11px;color:#ddd}
#holegame .hole-spec-node span{flex:1;font-weight:normal}
#holegame .hole-spec-node strong{font-size:10px;color:#d1c294}
#holegame .hole-spec-node em{font:normal 9px "Courier New",monospace;color:#888}
#holegame #hole-mystic-menu .hole-spec-node.available{border-color:var(--route);background:#17140f}
#holegame #hole-mystic-menu .hole-spec-node.available:hover{background:#252014}
#holegame #hole-mystic-menu .hole-spec-node.owned{background:#101b10;border-color:#628653}
#holegame #hole-mystic-menu .hole-spec-node.owned em{color:#8dbd71}
#holegame #hole-mystic-menu .hole-spec-node.locked{background:#0d0d0d;border-color:#333;color:#777}
#holegame #hole-mystic-menu .hole-spec-node.route-locked{background:#090909;border-color:#222;color:#555}
#holegame #hole-mystic-menu .hole-spec-node.route-locked b,#holegame #hole-mystic-menu .hole-spec-node.route-locked strong{color:#666}
#holegame #hole-mystic-menu .hole-spec-node.unaffordable{background:#211214;border-color:#92554e;border-style:dashed;cursor:not-allowed}
#holegame #hole-mystic-menu .hole-spec-node.unaffordable strong{color:#ffa18d}
#holegame #hole-mystic-menu .hole-spec-node.unaffordable em{color:#ffb3a5;font-weight:bold}
#holegame #hole-mystic-menu .hole-spec-node:focus-visible{outline:2px solid #d7b971;outline-offset:2px}
.hole-spec-root{position:absolute;left:1120px;top:1078px;width:160px;height:84px;display:grid;align-content:center;box-sizing:border-box;text-align:center;border:1px solid #80663b;background:#16110b;color:#d7b971;font:11px "Courier New",monospace}
.hole-spec-route{position:absolute;width:160px;text-align:center;font:bold 11px "Courier New",monospace;pointer-events:none}
.hole-spec-tests{display:flex;flex-wrap:wrap;gap:4px;width:100%}
#holegame #hole-mystic-menu.hole-collapsed .hole-spec-toolbar{display:none}
@media(max-width:600px){#holegame #hole-mystic-shop-list{height:300px;max-height:60vh}.hole-mystic-title{flex-wrap:wrap}#holegame .hole-spec-nav button{min-height:28px;flex:1 1 auto}}

#holegame .hole-spec-entry{border-top-width:3px!important;background:#1a160f!important}
#holegame .hole-spec-item-bonuses{display:flex;flex-wrap:wrap;gap:3px;margin-top:5px;text-align:left;line-height:1.35}
#holegame .hole-spec-item-bonuses:empty{display:none}
#holegame .hole-spec-item-heading{flex-basis:100%;color:#b6a274;font:9px "Courier New",monospace}
#holegame .hole-spec-item-badge{padding:3px 4px;border:1px solid #605637;background:#17150e;color:#d6c492;font:9px/1.35 "Courier New",monospace;white-space:normal}
#holegame .hole-spec-item-badge strong{color:#d8efae}
#holegame .hole-spec-item-badge small{font-size:9px;color:#aaa}

/* Save conflicts are an inline game panel, never a website overlay. */
#hole-save-conflict button{max-width:100%;white-space:normal;margin:4px;padding:5px;font:inherit}
#hole-save-conflict h2{font-size:16px}

#hole-save-standby{padding:8px;border:1px solid #756846;background:#17150e;color:#d8c684;font:11px "Courier New",monospace}#hole-save-standby button{font:inherit;margin-left:5px}

/* The session notice stays inside HØL; the frozen worksite is visibly muted. */
#holegame.hole-session-paused #hole-canvas{opacity:.45}
#holegame.hole-session-paused #hole-dig-button{opacity:.45;cursor:default}

/* Frysedisken mechanics use the same compact tokens as other bonus sources. */
#holegame .hole-spec-item-bonuses{font:inherit;color:inherit;margin:3px 0;padding:0;border:0;background:none}
#holegame .hole-joker-reel.eurojackpot{color:#ffec70;border-color:#ffec70;text-shadow:2px 2px #b74312}

/* Session recovery stays inside the canvas, including on short mobile screens. */
#holegame #hole-save-standby{position:absolute;left:50%;top:50%;right:auto;transform:translate(-50%,-50%);z-index:20;width:max-content;max-width:calc(100% - 32px);max-height:calc(100% - 24px);overflow:auto;box-sizing:border-box;text-align:center;font:11px/1.5 "Courier New",monospace;padding:12px;background:#171717;color:#ddd;border:1px solid #777}
#holegame #hole-save-standby button{display:block;margin:10px auto 0;min-height:36px;padding:7px 14px}
#holegame #hole-save-standby button[hidden]{display:none}
#holegame #hole-save-standby .hole-session-feedback{margin-top:8px;color:#e4d286;overflow-wrap:anywhere}
#holegame.hole-session-paused #hole-canvas-wrap *{animation-play-state:paused!important}

/* BØRSEN v136: one fixed-share economy; accents never leave this panel. */
#hole-market{box-sizing:border-box;width:100%;margin:0;padding:0;border:1px solid #666;background:#101010;color:#ddd;text-align:left;font:12px/1.45 "Courier New",monospace;scroll-margin-top:12px}
#hole-market[hidden],#hole-market-body[hidden]{display:none!important}
#hole-market header{display:flex;justify-content:space-between;align-items:center}
#hole-market h2,#hole-market h3{font: bold 15px "Courier New",monospace;color:#e4d286;margin:12px 0 8px}
#hole-market header h2{margin:0}
#hole-market button{font:inherit;min-height:36px;padding:5px 8px;white-space:normal;cursor:pointer}
#hole-market button:disabled{opacity:.4;cursor:not-allowed}
#hole-market button[aria-selected="true"],#hole-market button[aria-pressed="true"]{background:#323b29;border-color:#c0ce91;color:#e2f2ba}
#hole-market nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:14px 0}
#hole-market small{display:block;font-size:10px;color:#aaa}
#hole-market .market-lines{margin:8px 0}
#hole-market .market-lines>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:5px 0;border-bottom:1px dotted #333}
#hole-market .market-lines dd{margin:0;font-weight:bold;text-align:right}
#hole-market .market-lines dt{color:#aaa}
#hole-market-account{padding-bottom:10px;border-bottom:1px solid #555}
#hole-market-account .market-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
#hole-market .market-buttons{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0}
#hole-market .market-table{max-width:100%;overflow-x:auto}
#hole-market table{border-collapse:collapse;width:100%;font:inherit}
#hole-market th,#hole-market td{padding:7px 4px;text-align:right;border-bottom:1px dotted #555}
#hole-market th{font-size:10px;color:#aaa}
#hole-market th:first-child,#hole-market td:first-child{text-align:left}
#hole-market .market-company{border:0;background:none;text-align:left;color:var(--company-color);font-weight:bold;padding:4px 0;overflow-wrap:anywhere}
#hole-market .market-company small{color:var(--company-color);opacity:.85}
#hole-market .market-company i{display:inline-block;width:7px;height:7px;background:var(--company-color);margin-right:5px}
#hole-market .market-company-name{color:var(--company-color)}
#hole-market .market-detail,#hole-market .market-holding{border-left:3px solid var(--company-color);padding:8px;margin:12px 0;background:#0b0b0b}
#hole-market .market-holding>b{float:right;margin-top:10px}
#hole-market .market-quantity{display:flex;align-items:center;gap:4px;justify-content:space-between;margin:12px 0}
#hole-market .market-quantity strong{text-align:center;flex:1}
#hole-market .market-trade-button{color:var(--company-color);border-color:var(--company-color);min-width:150px;margin:7px 4px 7px 0}
#hole-market .market-chart{display:block;width:100%;max-height:220px;margin-top:8px;background:#050505}
#hole-market .market-chart text{fill:#aaa;font:10px monospace}
#hole-market .market-ranges button{flex:1}
#hole-market .market-up{color:#81ef87}#hole-market .market-down{color:#ff8c8c}#hole-market .market-flat{color:#ccc}
#hole-market .market-news{list-style:none;padding:0}
#hole-market .market-news li{border-left:3px solid var(--company-color);padding:6px 10px;margin:8px 0}
#hole-market .market-news span{color:var(--company-color)}#hole-market .market-news time{display:block;font-size:10px;color:#aaa}
#hole-market-transfer-form{padding:10px;margin-top:10px;border:2px inset #555;background:#050505}
#hole-market-transfer-form label{display:block;margin:10px 0}
#hole-market input{box-sizing:border-box;max-width:100%;background:#000;color:#eee;font:inherit;padding:7px;border:2px inset #777}
#hole-market-status{color:#ffde88;overflow-wrap:anywhere}#hole-market-status:empty{display:none}
@media(max-width:550px){#hole-market{padding:7px;font-size:11px}#hole-market button{min-height:42px;padding:4px}#hole-market nav{grid-template-columns:repeat(2,minmax(0,1fr))}#hole-market-account .market-lines{grid-template-columns:1fr}#hole-market th,#hole-market td{padding:6px 2px}#hole-market .market-company{font-size:10px}#hole-market .market-quantity{gap:3px}#hole-market .market-quantity button{min-width:36px}#hole-market .market-detail{padding:6px}}

#hole-market-transfer small,#hole-market .market-lines dd{overflow-wrap:anywhere}

/* v137: one quantity field; historical holding details stay collapsed. */
#hole-market .market-quantity{justify-content:flex-start}
#hole-market .market-quantity input{width:100px;margin-left:8px}
#hole-market #hole-market-content summary{cursor:pointer;color:#aaa;padding:8px 0}
#hole-market .market-credit{color:#e4d286;font-size:11px}

/* v138: portfolio uses the same horizontal rows as the market. */
#hole-market .market-portfolio table{min-width:540px}
#hole-market .market-portfolio td:not(:first-child){white-space:nowrap}
#hole-market .market-portfolio th{white-space:nowrap}

/* v139: isolate market rows from the site's mobile layout-table stacking. */
#holegame #hole-market .market-table{width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
#holegame #hole-market .market-table table{display:table!important;width:100%!important;table-layout:auto!important}
#holegame #hole-market .market-table thead{display:table-header-group!important}
#holegame #hole-market .market-table tbody{display:table-row-group!important}
#holegame #hole-market .market-table tr{display:table-row!important}
#holegame #hole-market .market-table th,#holegame #hole-market .market-table td{display:table-cell!important;float:none!important;width:auto!important;box-sizing:border-box;vertical-align:middle}
#hole-market .market-news{overflow-y:auto;overscroll-behavior-y:contain;margin:8px 0}
#hole-market .market-news li{box-sizing:border-box;margin:0;min-height:54px;padding:7px 9px;border-bottom:1px dotted #333;overflow-wrap:anywhere}
@media(max-width:600px){
 #holegame #hole-market .market-table th,#holegame #hole-market .market-table td{padding:6px 5px!important;font-size:10px}
 #hole-market .market-company{min-width:85px;max-width:120px;line-height:1.3}
 #hole-market .market-company small{font-size:9px}
 #hole-market-account .market-lines{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
 #hole-market-account .market-lines>div{display:block;padding:4px 0}
 #hole-market-account .market-lines dd{text-align:left;font-size:11px}
}

/* Company statements stay inside BØRSEN. */
#hole-market-statement-form{margin:12px 0;padding-top:10px;border-top:1px dotted #555;text-align:left}
#hole-market-statement-form textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:6px 0;padding:7px;background:#080808;color:#ddd;border:1px solid var(--company-color);font:inherit;resize:vertical}
#hole-market-statement-form small{display:block;margin-top:5px;color:#aaa}

#hole-market .market-pending-sale{display:block;font-size:10px;color:#cbbc83;margin-top:4px;white-space:normal}
#hole-market .market-pending-sale button{padding:3px 5px;font-size:10px;min-height:28px}

/* BØRSEN body; titlebar geometry is shared with the other HØL windows. */
#hole-market-body{padding:8px}
#hole-market nav{margin:8px 0}
#hole-market .market-statement-text{color:#eee;font-size:13px;line-height:1.6;margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
#hole-market .market-news b{display:block;color:var(--company-color);font-size:11px;margin-top:3px}
#hole-market .market-price-slider{display:block;margin:12px 0}
#hole-market .market-price-slider input{display:block;width:100%;margin:10px 0;accent-color:var(--company-color)}
#hole-market .market-price-slider>span{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:10px}
#hole-market .market-price-slider button{min-height:28px;padding:2px 8px}
#hole-market .market-limit{margin:10px 0;color:var(--company-color)}
/* BAKROMMET: compact blue shop beside NIKOSJOKK. */
.hole-prestige-shops{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;margin:0}
.hole-prestige-shops:has(#hole-backroom[hidden]){grid-template-columns:1fr}
.hole-prestige-shops #hole-nikosjokk{margin:0;min-width:0}
#hole-backroom{margin:0;min-width:0;border:1px solid #79b8ed;background:#07172b;color:#d6eaff;font:12px "Courier New",monospace;text-align:left}
#hole-backroom[hidden],#hole-backroom.hole-collapsed .hole-backroom-body{display:none!important}
#hole-backroom .hole-upgrade-menu-title{background:#123966;color:#bce2ff;border-bottom:1px solid #5083ad}
.hole-backroom-body{padding:10px;background:#07172b url('/images/frysedisken/spacebg9.jpg') repeat}
.hole-backroom-body>strong{display:block;color:#b9dfff;font-size:11px}
.hole-backroom-body>p{font-size:11px;color:#a7bad0;margin:5px 0 10px}
#hole-backroom-items>p{color:#d7eeff;margin:8px 0}
.hole-backroom-card{display:grid;grid-template-columns:58px minmax(0,1fr);column-gap:10px;align-items:center;background:rgba(4,21,43,.94);border:2px ridge #457cad;margin:8px 0 0;padding:10px}
.hole-backroom-art{grid-column:1;grid-row:1/4;width:54px;height:60px;object-fit:contain;image-rendering:pixelated}
.hole-backroom-card h3{grid-column:2;font:bold 13px "Courier New",monospace;color:#b8e1ff;margin:0 0 4px}
.hole-backroom-card small{font-size:10px;color:#8faac6;white-space:nowrap}
.hole-backroom-card p{grid-column:2;font-size:11px;line-height:1.4;margin:0 0 8px;color:#d8e8f8}
.hole-backroom-card button{grid-column:2;min-height:36px;width:100%;padding:5px;font:inherit;font-size:11px;border:2px outset #6b9dca;background:#163e68;color:#e0f2ff}
.hole-backroom-card button:disabled{background:#152436;color:#8d9baa;border-color:#435568;cursor:not-allowed}
.hole-joker-bonus-details>summary{cursor:pointer;list-style:disclosure-closed;padding:10px;text-align:left}
.hole-joker-bonus-details[open]>summary{list-style:disclosure-open}
@media(max-width:800px){.hole-prestige-shops{grid-template-columns:minmax(0,1fr)}}

/* =========================================================
   STANDARD MAJOR HØL WINDOW HEADERS
   Shared geometry; each section keeps its own theme color.
   ========================================================= */

#holegame .hole-panel-titlebar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:6px!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-height:30px!important;
  margin:0!important;
  padding:5px 8px!important;
  font:bold 11px/1 "Courier New",monospace!important;
  text-align:left!important;
}

#holegame .hole-panel-titlebar>span:first-child,
#holegame .hole-panel-titlebar>#hole-market-title{
  min-width:0;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  font:inherit!important;
  line-height:1!important;
}

#holegame .hole-panel-title-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
  min-width:0;
  margin:0!important;
  white-space:nowrap;
}

#holegame .hole-panel-title-actions>span{
  margin:0!important;
  line-height:20px!important;
  white-space:nowrap;
}

#holegame .hole-panel-titlebar .hole-collapse-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 20px!important;
  width:20px!important;
  min-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  background:#181818!important;
  color:#aaa!important;
  border:1px solid #555!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font:bold 12px/1 "Courier New",monospace!important;
}

#holegame .hole-panel-titlebar #hole-joker-leaderboard-button,
#holegame .hole-panel-titlebar #hole-coop-view-button{
  width:auto!important;
  min-width:0!important;
  height:20px!important;
  min-height:20px!important;
  margin:0!important;
  padding:0 8px!important;
  box-sizing:border-box!important;
  font:bold 8px/18px "Courier New",monospace!important;
}

#holegame #hole-market,
#holegame #hole-jokerslots,
#holegame .hole-prestige-shops,
#holegame #hole-nikosjokk,
#holegame #hole-backroom{
  margin-top:0!important;
  margin-bottom:0!important;
}

#holegame #hole-market>header{
  background:#181818;
  color:#ddd;
  border-bottom:1px solid #555;
}

#holegame #hole-active-menu>.hole-panel-titlebar{background:#24180f;color:#d0a16c;border-bottom:1px solid #78512f}
#holegame #hole-passive-menu>.hole-panel-titlebar{background:#102028;color:#73b6cc;border-bottom:1px solid #356475}
#holegame #hole-mystic-menu>.hole-panel-titlebar{background:#102838;color:#91cceb;border-bottom:1px solid #477b9b}
#holegame #hole-jokerslots>.hole-panel-titlebar{background:#142014;color:#79dd79;border-bottom:1px solid #4b654b}
#holegame #hole-nikosjokk>.hole-panel-titlebar{background:#26152b;color:#e6a8ef;border-bottom:1px solid #765080}
#holegame #hole-backroom>.hole-panel-titlebar{background:#123966;color:#bce2ff;border-bottom:1px solid #5083ad}

#holegame .hole-nikosjokk-title .hole-panel-title-actions>span{
  color:#b88fc0;
  font-size:8px;
  text-align:right;
}

#holegame #hole-player-bar .hole-player-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:4px;
}
#holegame #hole-player-bar #hole-info-button,
#holegame #hole-player-bar #hole-mute-button,
#holegame #hole-player-bar #hole-logout-button{
  float:none!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  height:20px!important;
  margin:0!important;
  padding:0 7px!important;
  box-sizing:border-box!important;
  font:bold 8px/18px "Courier New",monospace!important;
}
#holegame #hole-player-bar #hole-info-button{background:#181818!important;color:#bbb!important;border:1px solid #555!important}

#hole-market-button[hidden]{display:none!important}

@media screen and (max-width:600px){
  #holegame .hole-panel-titlebar{min-height:30px!important;padding:5px 6px!important;font-size:10px!important}
  #holegame .hole-panel-title-actions{gap:3px!important}
  #holegame .hole-panel-titlebar #hole-joker-leaderboard-button,
  #holegame .hole-panel-titlebar #hole-coop-view-button{padding:0 5px!important;font-size:7px!important}
  #holegame .hole-nikosjokk-title .hole-panel-title-actions>span{font-size:7px}
}

/* Company inventory offer; respects the shared titlebars supplied by the user. */
#hole-market .market-company-offer{border:1px solid var(--company-color,#666);padding:10px;margin:12px 0}
#hole-market .market-company-offer h4{font: bold 12px "Courier New",monospace;color:var(--company-color);margin:0 0 8px}
#hole-market #hole-market-company-quote{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0}
#hole-market .market-company-offer small{display:block;color:#bbb;line-height:1.5}

#hole-market #hole-market-company-quote{display:block}
#hole-market #hole-market-company-quote>button{display:block;margin:8px 0}
#hole-market .market-bid-map{position:relative;height:24px;margin:4px 8px 6px;border-bottom:1px solid #777}
#hole-market .market-bid-mark{position:absolute;bottom:2px;transform:translateX(-50%);font-size:17px}
#hole-market .will-fill,#hole-market .market-fill-preview{color:#96e88d}
#hole-market .will-wait{color:#888}
#hole-market .market-bid-map i{position:absolute;top:0;bottom:0;border-left:2px solid #eee}
#hole-market .market-available{display:block;margin:4px 0 0;padding:3px 5px;min-height:28px;font-size:10px;color:#b6edaa;border:1px solid #5c8554;background:#142015;text-align:left}
#hole-market .market-sold-out{display:block;margin-top:4px;font-size:9px;color:#999;white-space:normal}

#hole-market .market-news-actor{color:var(--company-color,#ddd);font-weight:700}
#hole-market .market-news-ticker{color:var(--company-color,#ddd);font-weight:900;font-size:1.08em}
#hole-market .market-news>li{border-left:3px solid var(--company-color,#666)}

#hole-market .market-news li>span{color:#ddd}
#hole-market .market-news .market-news-actor{display:inline;margin:0;font:inherit;font-weight:700;color:var(--company-color,#ddd)}

#hole-market .market-holding-dividend{display:block;white-space:normal;font-size:10px;color:#aaa;margin-top:4px}
#hole-market .market-owner-summary,#hole-market .market-open-orders{border-top:1px dotted #666;margin-top:12px;padding-top:8px}
#hole-market .market-open-orders>div{margin:8px 0;padding-bottom:8px;border-bottom:1px dotted #444}
#hole-market .market-secondary-action{font-size:10px;min-height:28px;margin-top:10px;background:#202020;border:1px solid #555;color:#ccc}
#hole-market .market-last-niko{font-size:11px;color:#bbb}


/* =========================================================
   BØRSEN v154 — VISUAL PASS ONLY
   Same mechanics, less noise, stronger hierarchy.
   ========================================================= */

#hole-market-body{
  padding:10px 12px 14px;
  background:#090909;
}

/* Tabs: one compact strip instead of four loud red blocks. */
#hole-market nav{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:0 0 12px;
  border:1px solid #373737;
  background:#0d0d0d;
}
#hole-market nav button{
  min-height:31px!important;
  margin:0!important;
  padding:5px 4px!important;
  background:#111!important;
  color:#888!important;
  border:0!important;
  border-right:1px solid #303030!important;
  box-shadow:none!important;
  font:bold 9px/1 "Courier New",monospace!important;
  letter-spacing:.15px;
}
#hole-market nav button:last-child{border-right:0!important}
#hole-market nav button[aria-selected="true"]{
  background:#1c1c1c!important;
  color:#eee!important;
  box-shadow:inset 0 -2px 0 #b9b9b9!important;
}

/* Account stays compact and secondary to the actual market. */
#hole-market-account{
  margin:0 0 10px;
  padding:0 0 9px;
  border-bottom:1px solid #303030;
}
#hole-market-account h3{
  margin:0 0 5px!important;
  color:#aaa!important;
  font-size:9px!important;
  letter-spacing:.5px;
}
#hole-market-account .market-lines{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  margin:0 0 6px;
}
#hole-market-account .market-lines>div{
  display:block;
  min-width:0;
  padding:5px 6px;
  background:#101010;
  border:0;
}
#hole-market-account .market-lines dt{
  font-size:7px;
  color:#686868;
  white-space:nowrap;
}
#hole-market-account .market-lines dd{
  margin-top:2px;
  color:#d7d7d7;
  font-size:10px;
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#hole-market-account .market-buttons{margin:5px 0 0}
#hole-market-account .market-buttons button{
  min-height:26px!important;
  padding:3px 7px!important;
  background:#171717!important;
  color:#aaa!important;
  border:1px solid #444!important;
  box-shadow:none!important;
  font-size:8px!important;
}

/* All ordinary market buttons are restrained; accent is reserved for action/context. */
#hole-market button{
  box-shadow:none!important;
  text-shadow:none!important;
}
#hole-market-content>button,
#hole-market .market-secondary-action,
#hole-market [data-market-center],
#hole-market [data-market-company-center]{
  background:#171717!important;
  color:#aaa!important;
  border:1px solid #444!important;
}

/* Company detail becomes one clean information block. */
#hole-market .market-detail{
  margin:0;
  padding:0 0 2px;
  background:#090909;
  border:0;
  border-left:3px solid var(--company-color);
}
#hole-market .market-detail-top{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:8px 10px;
  background:#0e0e0e;
  border-bottom:1px solid #292929;
}
#hole-market .market-back{
  align-self:start;
  min-height:25px!important;
  padding:3px 6px!important;
  background:#171717!important;
  color:#aaa!important;
  border:1px solid #444!important;
  font-size:8px!important;
}
#hole-market .market-company-heading{
  min-width:0;
}
#hole-market .market-company-heading h3{
  margin:0!important;
  color:var(--company-color)!important;
  font-size:14px!important;
  line-height:1.15!important;
  overflow-wrap:anywhere;
}
#hole-market .market-company-heading>small{
  margin-top:2px;
  color:var(--company-color);
  opacity:.7;
  font-size:8px;
  letter-spacing:1px;
}
#hole-market .market-price-hero{
  min-width:78px;
  text-align:right;
}
#hole-market .market-price-hero small{
  color:#666;
  font-size:7px;
  letter-spacing:.8px;
}
#hole-market .market-price-hero strong{
  display:block;
  margin-top:2px;
  color:#f1f1f1;
  font-size:17px;
  line-height:1;
  white-space:nowrap;
}

#hole-market .market-key-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0;
  border-bottom:1px solid #292929;
}
#hole-market .market-key-stats>div{
  min-width:0;
  padding:7px 9px;
  border-right:1px solid #242424;
}
#hole-market .market-key-stats>div:last-child{border-right:0}
#hole-market .market-key-stats small{
  color:#656565;
  font-size:7px;
  letter-spacing:.35px;
}
#hole-market .market-key-stats b{
  display:block;
  margin-top:2px;
  color:#d6d6d6;
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#hole-market .market-last-niko{
  margin:0!important;
  padding:6px 9px;
  color:#777!important;
  background:#0b0b0b;
  border-bottom:1px solid #202020;
  font-size:8px!important;
}

#hole-market .market-supply-note{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  margin:10px 10px 0;
  padding:7px 8px;
  background:#0f0f0f;
  border:1px solid #2f2f2f;
}
#hole-market .market-supply-note span{
  color:#686868;
  font-size:7px;
}
#hole-market .market-supply-note b{
  color:#ccc;
  font-size:9px;
  text-align:right;
}

/* Trading ticket: compact, obvious order of operations. */
#hole-market #hole-market-trade{margin:0 10px}
#hole-market .market-trade-panel{
  margin:6px 0 0;
  padding:8px;
  background:#0c0c0c;
  border:1px solid #333;
}
#hole-market .market-trade-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:7px;
}
#hole-market .market-trade-head>small{
  margin:0;
  color:#777;
  font-size:8px;
  text-align:right;
}
#hole-market .market-trade-head>small b{color:#ddd}
#hole-market .market-trade-switch{
  display:flex;
  gap:2px;
}
#hole-market .market-trade-switch button{
  min-height:27px!important;
  min-width:55px;
  padding:3px 8px!important;
  background:#151515!important;
  color:#777!important;
  border:1px solid #3e3e3e!important;
  font-size:9px!important;
}
#hole-market .market-trade-switch button[aria-pressed="true"]{
  color:var(--company-color)!important;
  border-color:var(--company-color)!important;
  background:#181818!important;
}
#hole-market .market-stock-availability{margin:0 0 7px}
#hole-market .market-available{
  display:inline-block;
  width:auto;
  min-height:0!important;
  margin:0;
  padding:3px 5px!important;
  background:#121812!important;
  color:#9fc995!important;
  border:1px solid #354e32!important;
  font-size:8px!important;
  text-decoration:none!important;
}
#hole-market .market-sold-out{
  margin:0;
  padding:3px 0;
  color:#777;
  font-size:8px;
}
#hole-market .market-quantity{
  display:grid;
  grid-template-columns:minmax(0,1fr) 48px;
  align-items:end;
  gap:5px;
  margin:7px 0!important;
}
#hole-market .market-quantity label{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  align-items:center;
  gap:6px;
  color:#888;
  font-size:8px;
}
#hole-market .market-quantity label>span{color:#777}
#hole-market .market-quantity input{
  width:100%!important;
  height:31px;
  margin:0!important;
  padding:4px 7px;
  background:#050505;
  border:1px solid #555;
  color:#eee;
  font-size:12px;
}
#hole-market .market-quantity>button{
  min-height:31px!important;
  height:31px;
  padding:3px!important;
  background:#191919!important;
  color:#aaa!important;
  border:1px solid #494949!important;
  font-size:8px!important;
}
#hole-market .market-order-summary{
  margin-top:8px;
  padding-top:8px;
  border-top:1px dotted #3b3b3b;
}
#hole-market .market-order-summary>button[data-market-trade]{
  width:100%;
  min-height:34px!important;
  padding:6px 8px!important;
  background:#151515!important;
  color:var(--company-color)!important;
  border:1px solid var(--company-color)!important;
  font:bold 9px/1.25 "Courier New",monospace!important;
}
#hole-market .market-order-summary>small{
  margin-top:5px;
  color:#696969;
  font-size:8px;
}
#hole-market .market-secondary-action{
  display:block;
  width:auto;
  min-height:25px!important;
  margin:7px 0 0!important;
  padding:3px 6px!important;
  font-size:8px!important;
}
#hole-market .market-order-wait{
  padding:8px;
  background:#10100b;
  border:1px solid #5b5430;
}
#hole-market .market-order-wait>small{margin-top:5px;color:#91875a}

/* Price slider belongs to the ticket instead of floating between controls. */
#hole-market .market-price-slider{
  margin:9px 0!important;
  padding:7px 0 0;
  border-top:1px dotted #333;
  color:#888;
  font-size:8px;
}
#hole-market .market-price-slider>b{display:block;color:#888;margin-bottom:3px}
#hole-market .market-price-slider input{margin:6px 0!important}
#hole-market .market-price-slider>span{font-size:7px!important;color:#666}
#hole-market .market-price-slider button{min-height:22px!important;font-size:7px!important}
#hole-market .market-limit{margin:5px 0!important;font-size:9px}

/* Chart is visually subordinate to the trade ticket. */
#hole-market .market-chart-panel{
  margin:11px 10px 0;
  padding-top:9px;
  border-top:1px solid #303030;
}
#hole-market .market-section-label{
  margin-bottom:6px;
  color:#666;
  font:bold 8px/1 "Courier New",monospace;
  letter-spacing:.6px;
}
#hole-market .market-ranges{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:2px;
  margin:0 0 6px;
}
#hole-market .market-ranges button{
  min-height:25px!important;
  padding:3px!important;
  background:#141414!important;
  color:#777!important;
  border:1px solid #393939!important;
  font-size:8px!important;
}
#hole-market .market-ranges button[aria-pressed="true"]{
  color:var(--company-color)!important;
  border-color:var(--company-color)!important;
  background:#181818!important;
}
#hole-market .market-chart{
  max-height:150px!important;
  margin:0!important;
  background:#070707!important;
  border:1px solid #222;
}
#hole-market .market-chart text{fill:#777!important;font-size:9px!important}

/* Generic info rows inside owner/portfolio views. */
#hole-market .market-owner-economy{
  margin:9px 10px;
  padding:7px 8px;
  background:#0d0d0d;
  border:1px solid #2d2d2d;
}
#hole-market .market-owner-economy .market-lines{margin:0}
#hole-market .market-owner-economy>small{margin-top:5px;color:#777}
#hole-market .market-owner-summary,
#hole-market .market-open-orders{
  margin:10px!important;
  padding-top:9px!important;
  border-top:1px solid #333!important;
}
#hole-market .market-owner-summary h4,
#hole-market .market-open-orders h4{
  margin:0 0 6px;
  color:#888;
  font:bold 8px/1 "Courier New",monospace;
  letter-spacing:.5px;
}

/* Company issue price panel. */
#hole-market .market-company-offer{
  margin:10px!important;
  padding:9px!important;
  background:#0c0c0c;
  border:1px solid #353535!important;
  border-left:2px solid var(--company-color)!important;
}
#hole-market .market-company-offer h4{font-size:9px!important}

/* Market list/portfolio: quieter rows and less button-like company names. */
#hole-market .market-table table{background:#090909}
#hole-market .market-table th{
  padding:6px 5px!important;
  background:#101010;
  color:#666!important;
  border-bottom:1px solid #333!important;
  font-size:8px!important;
  font-weight:normal;
}
#hole-market .market-table td{
  padding:7px 5px!important;
  border-bottom:1px solid #242424!important;
  font-size:9px!important;
}
#hole-market .market-company{
  min-height:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  color:var(--company-color)!important;
  text-decoration:none!important;
  font-size:9px!important;
}
#hole-market .market-company i{width:5px;height:5px;margin-right:5px}
#hole-market .market-company small{font-size:7px!important;margin-top:1px}

/* Transfer form uses the same quiet panel vocabulary. */
#hole-market-transfer-form{
  margin:0 0 10px!important;
  padding:8px!important;
  background:#0d0d0d!important;
  border:1px solid #3a3a3a!important;
}
#hole-market-transfer-form .market-buttons button,
#hole-market-transfer-form>button{
  min-height:26px!important;
  padding:3px 7px!important;
  background:#171717!important;
  color:#aaa!important;
  border:1px solid #444!important;
  font-size:8px!important;
}

#hole-market .market-empty-state{
  display:grid;
  gap:6px;
  padding:14px 10px;
  text-align:center;
  border:1px dashed #444;
  color:#888;
}
#hole-market .market-empty-state>b{color:#ddd}
#hole-market .market-primary-action{
  justify-self:center;
  background:#171717!important;
  color:#ddd!important;
  border:1px solid #666!important;
}

@media(max-width:600px){
  #hole-market-body{padding:8px 7px 10px}
  #hole-market nav{grid-template-columns:repeat(4,minmax(0,1fr))}
  #hole-market nav button{min-height:30px!important;font-size:7px!important;padding:4px 1px!important}
  #hole-market-account .market-lines{grid-template-columns:repeat(2,minmax(0,1fr))}
  #hole-market .market-detail-top{grid-template-columns:auto minmax(0,1fr);gap:6px}
  #hole-market .market-price-hero{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;padding-top:6px;border-top:1px dotted #2d2d2d;text-align:left}
  #hole-market .market-price-hero strong{font-size:15px}
  #hole-market .market-key-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  #hole-market .market-key-stats>div{padding:6px 5px}
  #hole-market .market-key-stats b{font-size:9px}
  #hole-market .market-supply-note{align-items:flex-start;flex-direction:column}
  #hole-market .market-supply-note b{text-align:left}
  #hole-market .market-chart-panel,#hole-market #hole-market-trade,#hole-market .market-supply-note,#hole-market .market-owner-economy,#hole-market .market-owner-summary,#hole-market .market-open-orders,#hole-market .market-company-offer{margin-left:5px!important;margin-right:5px!important}
  #hole-market .market-chart{max-height:138px!important}
}


/* =========================================================
   BØRSEN v155 — READABILITY + CLEANER ORDER FLOW
   Visual/readability pass only; company accents preserved.
   ========================================================= */

/* Readable without browser zoom. */
#hole-market{
  color:#d6d6d6;
  font-size:13px;
  line-height:1.5;
}
#hole-market-body{padding:11px 12px 14px}
#hole-market small{font-size:10px;color:#aaa;line-height:1.45}
#hole-market nav{margin:10px 0 12px}
#hole-market nav button{
  min-height:38px!important;
  padding:6px 4px!important;
  color:#a9a9a9!important;
  font-size:10px!important;
}
#hole-market nav button[aria-selected="true"]{
  color:#f1f1f1!important;
}

#hole-market .market-table th{
  padding:8px 7px!important;
  color:#8d8d8d!important;
  font-size:9px!important;
  letter-spacing:.2px;
}
#hole-market .market-table td{
  padding:9px 7px!important;
  color:#d4d4d4;
  font-size:10.5px!important;
}
#hole-market .market-company{
  font-size:10.5px!important;
  line-height:1.25;
}
#hole-market .market-company small{
  font-size:8.5px!important;
  opacity:.8;
}
#hole-market .market-holding-dividend{
  margin-top:5px;
  color:#aaa;
  font-size:9.5px;
}

/* Detail alignment: all content follows the same inner edge. */
#hole-market .market-detail-top{
  min-height:60px;
  padding:10px 12px;
}
#hole-market .market-company-heading h3{font-size:16px!important}
#hole-market .market-company-heading>small{font-size:9px}
#hole-market .market-price-hero small{font-size:8px;color:#8c8c8c}
#hole-market .market-price-hero strong{font-size:20px}

#hole-market .market-chart-panel{
  margin:12px 10px 10px;
  padding:0;
  border-top:0;
}
#hole-market .market-chart-first{
  padding-bottom:11px;
  border-bottom:1px solid #303030;
}
#hole-market .market-section-label{
  margin-bottom:8px;
  color:#aaa;
  font-size:9px;
}
#hole-market .market-ranges{
  gap:4px;
  margin-bottom:8px;
}
#hole-market .market-ranges button{
  min-height:31px!important;
  color:#aaa!important;
  font-size:9px!important;
}
#hole-market .market-chart{
  max-height:190px!important;
  border-color:#333;
}
#hole-market .market-chart text{
  fill:#aaa!important;
  font-size:10px!important;
}

#hole-market .market-key-stats{
  margin:0 10px 8px;
  border:1px solid #303030;
  background:#0c0c0c;
}
#hole-market .market-key-stats>div{padding:9px 10px}
#hole-market .market-key-stats small{
  color:#929292;
  font-size:8.5px;
}
#hole-market .market-key-stats b{
  margin-top:4px;
  color:#e0e0e0;
  font-size:11px;
}
#hole-market .market-last-niko{
  margin:0 10px 10px!important;
  padding:7px 0;
  color:#aaa!important;
  background:transparent;
  border-bottom:1px dotted #383838;
  font-size:9.5px!important;
}

/* Market overview: no bright availability chips. */
#hole-market .market-availability-note{
  display:block;
  margin:0;
  color:#a8a8a8;
  font-size:9.5px;
}
#hole-market .market-sold-out{color:#8a8a8a}
#hole-market .market-stock-availability{
  margin:1px 0 9px;
  padding-bottom:7px;
  border-bottom:1px dotted #353535;
}
#hole-market .market-available{display:none!important}

/* Unified buy flow: quantity + max/min price + one action. */
#hole-market #hole-market-trade{margin:0 10px}
#hole-market .market-trade-panel{
  padding:11px;
  border-color:#3e3e3e;
}
#hole-market .market-trade-head{margin-bottom:9px}
#hole-market .market-trade-head>small{
  color:#aaa;
  font-size:9.5px;
}
#hole-market .market-trade-head>small b{color:#eee}
#hole-market .market-trade-switch button{
  min-height:31px!important;
  min-width:64px;
  font-size:10px!important;
}
#hole-market .market-quantity{
  grid-template-columns:minmax(0,1fr) 58px;
  gap:7px;
  margin:9px 0!important;
}
#hole-market .market-quantity label{
  grid-template-columns:62px minmax(0,1fr);
  gap:8px;
  color:#aaa;
  font-size:9.5px;
}
#hole-market .market-quantity label>span{color:#aaa}
#hole-market .market-quantity input{
  height:36px;
  font-size:13px;
}
#hole-market .market-quantity>button{
  height:36px;
  min-height:36px!important;
  font-size:9px!important;
}
#hole-market .market-price-slider{
  margin:11px 0!important;
  padding-top:9px;
  color:#aaa;
  font-size:9.5px;
}
#hole-market .market-price-slider>b{color:#c2c2c2}
#hole-market .market-price-slider>span{
  color:#929292!important;
  font-size:8.5px!important;
}
#hole-market .market-price-slider button{
  min-height:27px!important;
  font-size:8.5px!important;
}
#hole-market .market-limit{
  color:var(--company-color);
  font-size:10.5px!important;
}
#hole-market .market-order-summary{
  margin-top:10px;
  padding-top:10px;
}
#hole-market .market-order-summary .market-lines dt{color:#aaa}
#hole-market .market-order-summary .market-lines dd{color:#eee}
#hole-market .market-order-summary>button[data-market-trade]{
  min-height:39px!important;
  padding:8px 10px!important;
  font-size:10.5px!important;
}
#hole-market .market-order-summary>small{
  margin-top:7px;
  color:#aaa;
  font-size:9.5px;
  line-height:1.5;
}

/* Portfolio open orders: compact cards instead of sentence fragments. */
#hole-market .market-open-orders{
  margin:16px 0 8px!important;
  padding:12px 0 0!important;
}
#hole-market .market-open-orders h4{
  margin:0 0 9px;
  color:#aaa;
  font-size:9.5px;
}
#hole-market .market-order-card{
  margin:0 0 8px;
  padding:10px;
  background:#0c0c0c;
  border:1px solid #383838;
  border-left:3px solid var(--company-color);
}
#hole-market .market-order-company{
  padding-bottom:7px;
  margin-bottom:7px;
  border-bottom:1px dotted #383838;
}
#hole-market .market-order-card-body{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  gap:8px;
  align-items:end;
}
#hole-market .market-order-card-body>div{
  min-width:0;
}
#hole-market .market-order-card-body span{
  display:block;
  margin-bottom:3px;
  color:#8f8f8f;
  font-size:8.5px;
}
#hole-market .market-order-card-body b{
  display:block;
  color:#e4e4e4;
  font-size:10px;
  white-space:nowrap;
}
#hole-market .market-order-kind{color:var(--company-color)!important}
#hole-market .market-order-card-body button{
  min-height:31px!important;
  padding:4px 8px!important;
  font-size:9px!important;
}
#hole-market .market-order-wait{
  padding:10px;
}
#hole-market .market-order-wait>small{
  margin-top:8px;
  color:#aaa;
  font-size:9.5px;
}

/* Owner view: consistent inset and totals only. */
#hole-market .market-owner-economy,
#hole-market .market-owner-summary,
#hole-market .market-company-offer,
#hole-market-statement-form{
  margin-left:10px!important;
  margin-right:10px!important;
}
#hole-market .market-owner-economy{
  margin-top:10px;
  padding:10px;
}
#hole-market .market-owner-economy h4,
#hole-market .market-owner-summary h4{
  margin:0 0 7px;
  color:#aaa;
  font-size:9.5px;
}
#hole-market .market-owner-economy .market-lines>div,
#hole-market .market-owner-summary .market-lines>div{
  padding:6px 0;
}
#hole-market .market-owner-economy .market-lines dt,
#hole-market .market-owner-summary .market-lines dt{
  color:#aaa;
}
#hole-market .market-owner-economy .market-lines dd,
#hole-market .market-owner-summary .market-lines dd{
  color:#eee;
}
#hole-market .market-owner-economy>small,
#hole-market .market-owner-summary>small{
  margin-top:7px;
  color:#aaa;
  font-size:9.5px;
}
#hole-market .market-company-offer{
  padding:11px!important;
}
#hole-market .market-company-offer h4{
  font-size:10px!important;
}
#hole-market .market-company-offer p,
#hole-market .market-company-offer small{
  font-size:9.5px;
  color:#aaa;
}
#hole-market-statement-form{
  padding-top:12px;
}
#hole-market-statement-form label{
  color:#bbb;
  font-size:10px;
}
#hole-market-statement-form textarea{
  min-height:72px;
  color:#eee;
  font-size:11px;
}
#hole-market-statement-form small{
  color:#999;
  font-size:9px;
}

/* Generic lines/details improved contrast. */
#hole-market .market-lines dt{color:#aaa}
#hole-market .market-lines dd{color:#eee}
#hole-market details{
  margin-top:12px;
  color:#bbb;
}
#hole-market details summary{
  color:#bbb;
  font-size:10px;
}

/* Small screens: stay readable rather than shrinking into 7px text. */
@media(max-width:600px){
  #hole-market{font-size:12px}
  #hole-market-body{padding:9px 8px 12px}
  #hole-market nav button{min-height:34px!important;font-size:9px!important;padding:5px 2px!important}
  #hole-market .market-table th{font-size:8px!important;padding:6px 4px!important}
  #hole-market .market-table td{font-size:9px!important;padding:7px 4px!important}
  #hole-market .market-company{font-size:9.5px!important}
  #hole-market .market-company small{font-size:8px!important}
  #hole-market .market-detail-top{padding:9px 8px}
  #hole-market .market-company-heading h3{font-size:14px!important}
  #hole-market .market-price-hero strong{font-size:18px}
  #hole-market .market-chart-panel,
  #hole-market .market-key-stats,
  #hole-market .market-last-niko,
  #hole-market #hole-market-trade,
  #hole-market .market-supply-note,
  #hole-market .market-owner-economy,
  #hole-market .market-owner-summary,
  #hole-market .market-company-offer,
  #hole-market-statement-form{
    margin-left:5px!important;
    margin-right:5px!important;
  }
  #hole-market .market-order-card-body{
    grid-template-columns:1fr 1fr;
  }
  #hole-market .market-order-card-body button{
    grid-column:1/-1;
    width:100%;
  }
  #hole-market .market-chart{max-height:165px!important}
}

/* =========================================================
   BØRSEN v157 — simpler price sliders / clearer trade outcome
   ========================================================= */
#hole-market .market-price-slider{
  display:block;
  margin:13px 0 10px!important;
  padding:10px 0 0;
  border-top:1px dotted #333;
  color:#aaa;
}
#hole-market .market-slider-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:5px;
}
#hole-market .market-slider-title b{
  color:#bbb;
  font-size:9.5px;
  letter-spacing:.2px;
}
#hole-market .market-slider-title strong{
  color:var(--company-color);
  font-size:11px;
  white-space:nowrap;
}
#hole-market .market-slider-track{
  position:relative;
  height:34px;
  display:flex;
  align-items:center;
  margin:2px 0 0;
}
#hole-market .market-slider-track input[type="range"]{
  position:relative;
  z-index:3;
  width:100%;
  margin:0!important;
  accent-color:var(--company-color);
}
#hole-market .market-price-map{
  position:absolute;
  z-index:4;
  left:8px;
  right:8px;
  top:0;
  bottom:0;
  pointer-events:none;
}
#hole-market .market-book-dot{
  position:absolute;
  top:0;
  transform:translateX(-50%);
  color:#777;
  font:700 12px/12px "Courier New",monospace;
  text-shadow:0 1px #000;
}
#hole-market .market-book-dot.will-fill{
  color:var(--company-color);
}
#hole-market .market-current-course{
  position:absolute;
  top:14px;
  height:17px;
  border-left:1px solid #eee;
  opacity:.9;
}
#hole-market .market-slider-scale{
  display:grid!important;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  color:#888!important;
  font-size:8.5px!important;
}
#hole-market .market-slider-scale>span:last-child{text-align:right}
#hole-market .market-slider-scale button{
  min-height:24px!important;
  padding:2px 7px!important;
  background:#151515!important;
  color:#bbb!important;
  border:1px solid #444!important;
  font-size:8px!important;
  white-space:nowrap;
}
#hole-market .market-slider-legend{
  display:block;
  margin-top:5px;
  color:#858585;
  font-size:8.5px;
}
#hole-market .market-fill-status{
  margin:8px 0 9px;
  color:#d2d2d2;
  font-size:10px;
  line-height:1.35;
}
#hole-market .market-trade-cost{
  margin-top:8px;
  border-top:1px dotted #444;
  border-bottom:1px solid #444;
}
#hole-market .market-trade-cost>div{
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px 12px;
  align-items:baseline;
  padding:6px 0;
}
#hole-market .market-trade-cost span{
  color:#aaa;
  font-size:9px;
}
#hole-market .market-trade-cost b,
#hole-market .market-trade-cost strong{
  color:#eee;
  font-size:11px;
  text-align:right;
}
#hole-market .market-trade-cost .market-fee-row{
  border-top:1px dotted #303030;
  color:#d8a1a1;
}
#hole-market .market-trade-cost .market-fee-row span,
#hole-market .market-trade-cost .market-fee-row b{
  color:#d8a1a1;
}
#hole-market .market-trade-cost .market-fee-row small{
  grid-column:1/-1;
  color:#8e8e8e;
  font-size:8px;
  line-height:1.2;
}
#hole-market .market-trade-total{
  border-top:1px solid #555;
}
#hole-market .market-trade-total span{color:#d0d0d0}
#hole-market .market-trade-total strong{font-size:13px}
#hole-market .market-order-summary>button[data-market-trade]{
  width:100%;
  min-height:38px!important;
}

/* Preserve the simple O-marker look in MIN AKSJE too. */
#hole-market .market-company-offer .market-price-slider{
  margin-top:9px!important;
}
#hole-market .market-company-offer .market-fill-preview{
  margin:9px 0 7px;
  color:#ddd;
  font-size:9.5px;
}
#hole-market .market-owner-sale-value{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:8px;
  padding:7px 0;
  border-top:1px dotted #3b3b3b;
}
#hole-market .market-owner-sale-value span{color:#999;font-size:8.5px}
#hole-market .market-owner-sale-value b{color:var(--company-color);font-size:10px}

/* Portfolio: one compact sell action without adding another table column. */
#hole-market .market-holding-count{
  display:inline-block;
  min-width:20px;
}
#hole-market .market-inline-sell{
  margin-left:5px!important;
  min-height:22px!important;
  padding:2px 5px!important;
  background:#171717!important;
  color:#bbb!important;
  border:1px solid #555!important;
  font-size:7.5px!important;
  vertical-align:middle;
}
#hole-market .market-inline-sell:hover{color:#fff!important}

/* Market overview: sale count is useful but visually quiet. */
#hole-market .market-portfolio .market-down,
#hole-market .market-table .market-down{font-variant-numeric:tabular-nums}

@media(max-width:600px){
  #hole-market .market-slider-title b{font-size:9px}
  #hole-market .market-slider-title strong{font-size:10px}
  #hole-market .market-slider-scale{font-size:8px!important}
  #hole-market .market-slider-scale button{font-size:7.5px!important;padding:2px 5px!important}
  #hole-market .market-book-dot{font-size:11px}
  #hole-market .market-inline-sell{display:block;margin:4px 0 0!important;width:auto!important}
}

#hole-market .market-supply-note small{display:block;grid-column:1/-1;line-height:1.5;color:#b8c4ce}

/* Organic execution preview: server quote, whole SNUS only. */
#hole-market .market-quote-note{display:block;color:#ddd;font-size:13px;line-height:1.5;margin:8px 0}
#hole-market .market-quote-estimate{font-size:13px;color:#ddd;letter-spacing:.04em}

/* Keep the live quote heading steady during background updates. */
#hole-market .market-quote-estimate{display:block;min-height:1.5em}
#hole-market .market-buy-options{margin:10px 0}
#hole-market .market-buy-options>button{font-size:12px;background:transparent;color:#ddd;border:1px solid #555;padding:6px 9px}

/* HØLFONDET is always visibly a system actor. */
.market-fund-info{display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 12px;border:1px solid #454545;margin:10px 0;background:#171717;font-size:11px}
.market-fund-info>b,.market-fund-info>small{flex-basis:100%}
.market-fund-info>small{color:#aaa;font-size:10px}
.market-npc-badge{display:inline-block;border:1px solid #666;color:#d4c38a;padding:2px 4px;font-size:9px;line-height:1.2;vertical-align:middle;margin-right:6px}
.market-fund-news{display:block}


/* Compact shareholder view, using the exchange's existing typography and ticker colors. */
#hole-market nav{grid-template-columns:repeat(5,minmax(0,1fr))}
#hole-market .owners-view{padding:2px 0 0;font-size:11px}
#hole-market .owners-picker{display:flex;flex-wrap:wrap;gap:0;border-bottom:1px solid #383838;margin-bottom:20px}
#hole-market .owners-picker button{flex:1 1 auto;background:transparent!important;color:#999!important;border:0!important;border-bottom:2px solid transparent!important;padding:12px 10px!important;font:inherit!important;min-height:40px!important;box-shadow:none!important}
#hole-market .owners-picker button[aria-pressed="true"]{border-bottom-color:#ccc!important;color:#eee!important;background:#191919!important}
#hole-market .owners-view em{font-style:normal;font-size:9px;color:#c9bd91;border:1px solid #625a40;padding:2px 4px;margin-left:8px;white-space:nowrap;vertical-align:middle}
#hole-market .owners-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
#hole-market .owners-heading h3{font-size:17px!important;color:#eee!important;margin:0 0 6px;letter-spacing:.4px}
#hole-market .owners-heading p{font-size:9px;color:#858585;margin:0}
#hole-market .owners-value{text-align:right;white-space:nowrap}
#hole-market .owners-value small{display:block;color:#888;font-size:9px;margin-bottom:5px}
#hole-market .owners-value strong{font-size:18px;color:#eee}
#hole-market .owners-facts{display:flex;gap:20px;padding:10px 0;border-top:1px solid #292929;border-bottom:1px solid #292929;color:#888;font-size:10px}
#hole-market .owners-facts b{color:#ddd;font-weight:normal}
#hole-market .owners-view h4{font-size:9px!important;letter-spacing:1px;color:#888!important;margin:24px 0 8px!important}
#hole-market .owners-position{display:grid;grid-template-columns:minmax(100px,1fr) auto minmax(100px,auto);gap:18px;align-items:center;min-height:52px;border-bottom:1px solid #242424;padding:8px 0}
#hole-market .owners-position .market-company{font-size:12px!important;padding:0!important}
#hole-market .owners-position>div>small{display:block;font-size:9px;color:#888;margin-top:5px}
#hole-market .owners-position>span{color:#ccc;text-align:right}
#hole-market .owners-position>span small,#hole-market .owners-position>b small{color:#777;font-size:9px;font-weight:normal}
#hole-market .owners-position>b{text-align:right;font-size:12px;color:#ddd;font-weight:normal}
#hole-market .owners-empty{font-size:10px;color:#666;padding:14px 0;margin:0;border-bottom:1px solid #242424}
#hole-market .owners-view footer{font-size:8px;color:#666;margin-top:24px;line-height:1.6}
@media(max-width:540px){#hole-market nav{grid-template-columns:repeat(3,minmax(0,1fr))}#hole-market .owners-picker button{flex-basis:45%;padding:10px 5px!important}#hole-market .owners-heading h3{font-size:13px!important}#hole-market .owners-value strong{font-size:14px}#hole-market .owners-facts{gap:10px;font-size:9px}#hole-market .owners-position{gap:8px;grid-template-columns:minmax(80px,1fr) auto auto}}


/* =========================================================
   BØRSEN v163 — HØLFONDET / DEMAND / NEWS CLEANUP
   Organic-v1 execution stays unchanged; this is presentation only.
   ========================================================= */
#hole-market nav button[data-market-attention="true"]{position:relative}
#hole-market nav button[data-market-attention="true"]::after{content:"";position:absolute;top:5px;right:6px;width:7px;height:7px;border-radius:50%;background:#d62828;box-shadow:0 0 0 1px #050505,0 0 5px rgba(214,40,40,.65)}
#hole-market .market-holding-demand{display:block;margin-top:4px;color:#ef9b9b;font-size:9px;line-height:1.35;white-space:normal}
#hole-market .market-demand-strip{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 14px;margin:10px 0 6px;padding:7px 9px;border:1px solid #5a3434;background:#170d0d;color:#c9b5b5;font-size:9px;text-align:left}
#hole-market .market-demand-strip b{color:#ff9a9a;letter-spacing:.3px}
#hole-market .market-demand-strip span{color:#d3c3c3}
#hole-market .market-fund-brief{display:flex;flex-wrap:wrap;align-items:center;gap:4px 13px;margin:6px 0 10px;padding:5px 0;border-top:1px dotted #353535;border-bottom:1px dotted #353535;background:transparent;color:#999;font-size:9px;text-align:left}
#hole-market .market-fund-brief>b{color:#cfc6a3;font-size:9px}
#hole-market .market-fund-brief .market-npc-badge{margin-left:4px;margin-right:0}
#hole-market .market-fund-brief>span{white-space:nowrap}
#hole-market .market-fund-statement{margin:16px 0 4px;padding:11px 12px;border:1px solid #4a4637;background:#12110d;text-align:left}
#hole-market .owners-view .market-fund-statement h4{margin:0 0 7px!important;color:#c9bd91!important;letter-spacing:.8px}
#hole-market .market-fund-statement p{margin:0;color:#d2d0c6;font-size:10px;line-height:1.65}
#hole-market .market-news-main{margin:4px 0 10px;border-top:1px solid #343434}
#hole-market .market-news-main li{min-height:0;margin:0;padding:9px 9px 10px;border-bottom:1px dotted #303030}
#hole-market .market-news-main time{margin-bottom:3px;color:#777;font-size:8.5px}
#hole-market .market-news-main li>span,#hole-market .market-news-main .market-statement-text{line-height:1.45}
#hole-market .market-news-empty{padding:16px 8px;border-top:1px solid #303030;border-bottom:1px solid #303030;color:#777;font-size:9px;text-align:left}
#hole-market .market-news-log{margin:12px 0 0;border-top:1px dotted #3b3b3b;color:#888}
#hole-market .market-news-log>summary{padding:9px 0!important;color:#8d8d8d!important;font-size:8.5px;letter-spacing:.3px}
#hole-market .market-news-all{max-height:250px;margin:0!important;border:1px solid #292929;background:#070707;opacity:.82}
#hole-market .market-news-all li{min-height:0;margin:0;padding:6px 8px;font-size:9px}
#hole-market .market-news-all time{font-size:8px}
#hole-market .market-news-all .market-npc-badge{font-size:7.5px;padding:1px 3px}
@media(max-width:540px){#hole-market nav button[data-market-attention="true"]::after{top:4px;right:4px;width:6px;height:6px}#hole-market .market-demand-strip{display:block}#hole-market .market-demand-strip span{display:block;margin-top:3px}#hole-market .market-fund-brief{display:block}#hole-market .market-fund-brief>*{display:block;margin:3px 0}}

/* =========================================================
   BØRSEN v165 — seamless liquidity actions
   ========================================================= */
#hole-market .market-demand-buyers{flex:1 0 100%;display:grid;gap:4px;margin-top:2px;padding-top:5px;border-top:1px dotted #4a3030}
#hole-market .market-demand-buyer{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%;box-sizing:border-box;padding:3px 4px;color:#d6caca;text-align:left;font:inherit}
#hole-market .market-demand-buyer b{color:#ffb0b0}
#hole-market .market-demand-buyer span{color:#cdbdbd;text-align:right}
#hole-market button.market-demand-buyer,#hole-market button.market-demand-action{background:transparent!important;border:0!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer}
#hole-market button.market-demand-buyer{margin:0!important}
#hole-market button.market-demand-buyer:hover,#hole-market button.market-demand-buyer:focus-visible{background:#281414!important;outline:1px solid #6b3d3d!important}
#hole-market button.market-demand-action{display:block;width:100%;margin:4px 0 0!important;padding:2px 0!important;color:#ef9b9b!important;font-size:9px!important;line-height:1.35!important;text-align:left!important;white-space:normal!important}
#hole-market button.market-demand-action:hover,#hole-market button.market-demand-action:focus-visible{color:#ffc0c0!important;text-decoration:underline;outline:0!important}
@media(max-width:540px){#hole-market .market-demand-buyer{display:block}#hole-market .market-demand-buyer span{display:block;margin-top:2px;text-align:left}}

/* v174: encounter UI lives inside the shaft viewport. */
#hole-boss-panel[hidden],#hole-boss-health[hidden],#hole-boss-sprite[hidden],#hole-loot-reveal[hidden],#hole-loot-overview[hidden]{display:none!important}
#holegame #hole-boss-panel{position:absolute;top:7px;left:50%;transform:translateX(-50%);width:max-content;max-width:85%;z-index:7;background:rgba(12,11,9,.9);border:1px solid #756653;padding:4px 8px;pointer-events:none;color:#eadbb9;text-align:center;font:9px/1.35 'Courier New',monospace;box-shadow:1px 1px #000}
#holegame #hole-boss-panel p{margin:2px 0;font-size:inherit;line-height:inherit}#hole-boss-panel.fighting{display:none!important}
#holegame #hole-boss-health{position:absolute;left:50%;transform:translateX(-50%);width:130px;max-width:40%;z-index:7;font:bold 7px/1.1 'Courier New',monospace;color:#e5cfb3;pointer-events:none;text-shadow:1px 1px #000}
#hole-boss-health-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}#hole-boss-timer{position:absolute;right:-30px;bottom:0;color:#fff1c7}
#holegame #hole-boss-hp{display:block;width:100%;height:7px;margin:3px 0 0;accent-color:#a9352c;border:1px solid #614d3d;background:#190b0b}
#hole-boss-hp::-webkit-progress-bar{background:#190b0b}#hole-boss-hp::-webkit-progress-value{background:#a9352c}
#hole-boss-sprite{position:absolute;left:50%;transform:translateX(-50%);max-width:30%;object-fit:contain;image-rendering:pixelated;pointer-events:none;z-index:4}
#holegame #hole-loot-overview{margin:0;background:#101010;border:2px solid #383838;color:#bfb8aa;text-align:left}
#holegame #hole-loot-overview>summary{cursor:pointer;background:#252014;color:#c7b584;border-bottom:1px solid #665731;list-style:none}
#hole-loot-overview>summary::-webkit-details-marker{display:none}#hole-loot-overview>summary:after{content:'+';margin-left:6px}#hole-loot-overview[open]>summary:after{content:'−'}
#holegame #hole-loot-list{max-height:290px;overflow:auto;padding:2px;display:block}
#holegame .hole-loot-tier{margin:0 0 4px;border:0}#holegame .hole-loot-tier h3{padding:3px 5px;margin:0;background:#181818;border-bottom:1px solid #343434;color:var(--loot-color);font:bold 8px/1.2 'Courier New',monospace}
#holegame .hole-loot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;padding-top:2px}
#holegame .hole-loot-card{display:flex;align-items:center;gap:5px;min-height:37px;padding:4px;box-sizing:border-box;background:#121212;border:1px solid #383838;font:8px/1.3 'Courier New',monospace}
#holegame .hole-loot-card img{width:25px;height:25px;object-fit:contain;image-rendering:pixelated;flex-shrink:0;background:#080808;border:1px solid #45413a;padding:2px;box-sizing:border-box}
#holegame .hole-loot-card b{display:block;color:var(--loot-color);font:bold 9px/1.2 'Courier New',monospace}#holegame .hole-loot-card small{display:block;margin-top:3px;color:#aaa;font:7px/1.3 'Courier New',monospace}
#holegame .hole-loot-card.locked{min-height:30px;background:#0a0a0a;border-color:#282828}#holegame .hole-loot-card.locked b{color:#666;font-size:8px}#holegame .hole-loot-card.locked small{display:none}
#holegame .hole-math-loot{font-weight:bold}
#holegame #hole-loot-reveal{position:absolute;z-index:12;top:50%;left:50%;transform:translate(-50%,-50%);width:235px;max-width:82%;box-sizing:border-box;padding:12px;background:#11100e;border:2px solid var(--loot-color);box-shadow:0 0 0 3px #070605,0 8px 40px #000c;text-align:center;color:var(--loot-color);font:10px/1.35 'Courier New',monospace}
#hole-loot-reveal img{display:block;margin:8px auto;width:56px;height:56px;object-fit:contain;image-rendering:pixelated}#hole-loot-reveal b,#hole-loot-reveal small{display:block}#hole-loot-reveal b{font-size:12px}#hole-loot-reveal p{margin:5px 0;color:#ddd;font-size:9px}#hole-loot-reveal-count,#hole-loot-reveal-owned{color:#999;font-size:8px}
#holegame #hole-loot-reveal-next{margin-top:9px;padding:5px 10px;border:2px outset #6c5f46;background:#29251d;color:#eadfc5;font:bold 9px 'Courier New',monospace;cursor:pointer}
#hole-loot-reveal.revealed img{animation:holeLootArrival .45s ease-out} @keyframes holeLootArrival{from{transform:scale(.35) rotate(-12deg);filter:brightness(4)}to{transform:scale(1);filter:brightness(1)}}

#holegame #hole-loot-reveal-name,#holegame #hole-loot-reveal-tier{color:var(--loot-color)!important}

#hole-boss-crack-count {position:absolute;inset:43% 0 auto;text-align:center;color:#ff2525;font:bold 42px monospace;text-shadow:2px 2px #000,-2px -2px #000;pointer-events:none;z-index:8}
#hole-boss-crack-count[hidden],#hole-hall-scroll[hidden]{display:none}
#hole-hall-scroll{position:absolute;bottom:5px;left:30%;width:40%;height:10px;accent-color:#92794b;z-index:20}

/* v176: compact collection with inspectable stacks. */
#hole-boss-panel{display:none!important}
#hole-camera-controls{display:flex;align-items:center;justify-content:center;gap:4px}
#hole-camera-controls button{min-width:35px}
#hole-loot-summary{font-size:9px;color:#c9b893}
.hole-loot-totals{padding:7px;border-bottom:1px solid #625a45;margin-bottom:5px}
.hole-loot-totals small{display:block;font-size:10px;color:#dfd4ad;margin-top:3px}
#holegame .hole-loot-card.unlocked{display:block;box-shadow:inset 0 0 8px color-mix(in srgb,var(--loot-color) 18%,transparent);border-color:var(--loot-color)}
.hole-loot-card summary{display:flex;gap:7px;align-items:center;cursor:pointer;list-style:none}
.hole-loot-card summary span{min-width:0}
.hole-loot-card.unlocked img,#hole-loot-reveal.revealed img{filter:drop-shadow(0 0 5px var(--loot-color))}
.hole-loot-card small{white-space:normal!important}
.hole-loot-info{font-size:10px;border-top:1px solid var(--loot-color);padding:7px 3px;margin-top:5px}
#holegame #hole-loot-reveal.revealed{box-shadow:0 0 17px color-mix(in srgb,var(--loot-color) 45%,transparent),inset 0 0 20px color-mix(in srgb,var(--loot-color) 12%,transparent)}
#hole-loot-cashout{color:#ffe28d;margin-bottom:8px;font-size:10px}

#hole-boss-sprite{max-width:none;width:auto;object-position:center bottom}

/* v177: independent expanding cards and familiar equipment-frame glow. */
#holegame .hole-loot-grid{align-items:start;gap:5px}
#holegame .hole-loot-card{min-height:64px}
#holegame .hole-loot-card img{width:46px;height:46px;padding:3px}
#holegame .hole-loot-card.unlocked{box-shadow:none;border-color:#49453b}
#holegame .hole-loot-card.unlocked img{filter:none;border:2px solid var(--loot-color);box-shadow:0 0 3px var(--loot-color),inset 0 0 2px var(--loot-color)}
#holegame .hole-loot-card.unlocked small{color:var(--loot-color)}
#holegame .hole-loot-tier h3{display:flex;justify-content:space-between;gap:4px}
#holegame .hole-loot-tier h3 span{font-weight:normal;font-size:7px}
.hole-loot-totals{padding:5px;margin:6px 0 0;border:1px solid #524934}
.hole-loot-totals summary{cursor:pointer;font:bold 9px monospace;color:#d2bd83}
.hole-loot-total-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:6px}
.hole-loot-total-grid>div{display:flex;justify-content:space-between;background:#191711;padding:5px;font:9px monospace}
.hole-loot-total-grid b{color:#ffe18a}
#hole-loot-find-symbol{font:bold 42px monospace;margin:14px;color:#ffe28d;text-shadow:0 0 12px #cc982e}
#hole-loot-find-symbol[hidden],#hole-loot-reveal-image[hidden]{display:none!important}
#hole-loot-reveal-bonus{color:var(--loot-color)!important}


/* v179: GJENSTANDER cards and boss-item review share one bonus presentation. */
#holegame #hole-loot-overview{
 display:block;
 width:100%;
 margin:0!important;
 border-top:0;
 box-sizing:border-box;
}
#holegame #hole-loot-overview[hidden]{display:none!important}
#holegame .hole-loot-card summary{align-items:flex-start}
#holegame .hole-loot-card-copy{display:block;min-width:0;flex:1}
#holegame .hole-loot-bonus-list{display:block;margin-top:4px}
#holegame .hole-loot-bonus-row{
 display:block!important;
 margin:1px 0!important;
 padding:0!important;
 color:var(--bonus-color)!important;
 font:8px/1.2 "Courier New",monospace!important;
 font-weight:bold!important;
 white-space:normal!important;
 text-align:left;
 text-shadow:1px 1px #000;
}
#holegame .hole-loot-bonus-row span{color:inherit!important;opacity:.78;font-weight:normal}
#holegame #hole-loot-reveal-bonus{margin:7px 0 4px!important;color:#ddd!important}
#holegame #hole-loot-reveal-bonus .hole-loot-bonus-row{
 font-size:9px!important;
 line-height:1.3!important;
 text-align:center;
}
#holegame .hole-loot-total-grid>div{color:var(--bonus-color)}
#holegame .hole-loot-total-grid>div span{color:var(--bonus-color)}
#holegame .hole-loot-total-grid>div b{color:var(--bonus-color)}
@media screen and (max-width:420px){
 #holegame .hole-loot-grid{grid-template-columns:1fr}
}

/* v180: compact Jokerslots-style bonus rows, independent card expansion. */
#holegame .hole-loot-grid{align-items:start}
#holegame .hole-loot-bonus-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:4px 5px!important;margin:2px 0!important;background:#171717;border-left:2px solid var(--bonus-color);font-size:10px!important;line-height:1.35!important}
#holegame .hole-loot-bonus-row span{font-weight:bold;opacity:1;font-variant-numeric:tabular-nums}
#holegame .hole-loot-card-copy>b{display:block;margin-bottom:6px}
#holegame #hole-boss-timer{font-size:10px;white-space:nowrap}
#holegame #hole-boss-health{min-width:190px;max-width:95%}
#holegame #hole-boss-timer{position:static;display:block;text-align:center;padding:2px 4px;margin-top:2px;background:rgba(20,8,8,.8);font-size:9px}
#holegame #hole-boss-health-name{font-size:9px}

/* Extra fights only: no player-facing statistics/history panel. */
#holegame #hole-boss-assignments[hidden]{display:none!important}
#holegame #hole-boss-assignments{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#holegame #hole-boss-assignments button{padding:7px 10px;font:bold 11px monospace;background:#291c15;color:#dfc99a;border:1px solid #75644c;cursor:pointer}

/* v184: responsive encounter health and unclipped loot review. */
#holegame #hole-boss-health{min-width:0;max-width:none;transform-origin:top center;font-size:8px}
#holegame #hole-boss-health-name,#holegame #hole-boss-timer{font-size:8px}
#holegame #hole-boss-timer{background:none;padding:0;margin:1px 0}
#holegame .hole-boss-hp-track{position:relative;height:15px;margin-top:2px}
#holegame #hole-boss-hp{height:100%;margin:0;width:100%;box-sizing:border-box}
#holegame #hole-boss-hp-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;white-space:nowrap;color:#fff;font:bold 8px/1 monospace;text-shadow:1px 1px #000}
#holegame #hole-loot-reveal{position:relative;inset:auto;transform:none;width:340px;max-width:calc(100% - 24px);height:auto;max-height:none;margin:14px auto;padding:14px;overflow:visible}

/* v185 inventory: the list scrolls, the seven equipment slots stay visible. */
#holegame #hole-loot-list{height:auto;max-height:none;overflow:hidden;padding:0;min-width:0}
#holegame .hole-inventory-scroll{max-height:65vh;overflow-y:auto;padding:6px;overscroll-behavior:contain}
#holegame .hole-loot-grid{grid-template-columns:1fr 1fr;align-items:start}
#holegame .hole-loot-card summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none}
#holegame .hole-loot-card summary img{width:58px;height:58px;flex:none;object-fit:contain;border:1px solid var(--loot-color)}
#holegame .hole-loot-card .hole-loot-info{padding:8px;max-height:none}
#holegame .hole-item-lore{white-space:pre-wrap;font:11px/1.55 'Courier New',monospace;color:#c9c4b5;text-align:left;margin:10px 0}
#holegame .hole-item-copy{padding:9px 6px;margin:9px 0;border:1px solid #484238;background:#10100e;scroll-margin:20px}
#holegame .hole-rolled-stat{display:flex;justify-content:space-between;gap:8px;padding:4px 6px;margin:2px 0;background:#171917;border-left:2px solid var(--stat-color);color:var(--stat-color);font:11px/1.35 'Courier New',monospace;text-align:left}
#holegame .hole-rolled-stat b{color:inherit;white-space:nowrap;font:inherit;font-weight:bold}
#holegame .hole-equipment-dock{position:sticky;bottom:0;z-index:14;border:2px outset #73684e;background:#191812;padding:10px;box-shadow:0 -4px 10px #0009}
#holegame .hole-equipment-dock>small{display:block;color:#aaa;font:10px monospace;margin:5px 0}
#holegame .hole-equipment-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:3px 12px;margin:0;font:bold 11px/1.4 monospace}
#holegame .hole-current-loot-quality{color:#adcedd;white-space:nowrap;font:10px/1.4 monospace}
#holegame #hole-equipment-loot-quality{color:#d3efff;font-weight:bold}
#holegame .hole-equipment-slots{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
#holegame .hole-equipment-slots button{min-width:0;aspect-ratio:1;padding:3px;background:#080808;border:2px ridge var(--loot-color);box-shadow:inset 0 0 8px color-mix(in srgb,var(--loot-color),transparent 65%)}
#holegame .hole-equipment-slots img{display:block;width:100%;height:100%;object-fit:contain}
#holegame #hole-equipped-details{max-height:28vh;overflow:auto}
#holegame .hole-build-summary{margin-top:8px;max-height:30vh;overflow:auto;font:10px monospace}
#holegame .hole-build-tag{display:inline-block;padding:4px;margin:3px;border:1px solid #706340;color:#e1d4a5}
#holegame #hole-boss-farm-list{max-height:50vh;overflow:auto}
#holegame .hole-farm-row{padding:10px;border-bottom:1px solid #5a4a36;font:11px monospace}
#holegame .hole-farm-row>b{display:block;margin-bottom:5px}
#holegame .hole-boss-pool span{display:flex;align-items:center;gap:6px;margin:4px 0}
#holegame .hole-boss-pool img{width:28px;height:28px;object-fit:contain}
#holegame .hole-boss-pool small{display:block;color:#a99477}
#holegame #hole-loot-reveal .hole-rolled-stat{font-size:11px}
@media(max-width:620px){#holegame .hole-loot-grid{grid-template-columns:1fr}#holegame .hole-equipment-dock{padding:6px}#holegame .hole-equipment-slots{gap:3px}#holegame .hole-inventory-scroll{max-height:55vh}}

/* v186: native modal top layer, independent of page stacking/scrolling. */
#holegame #hole-loot-reveal{position:fixed;inset:0;transform:none;margin:auto;width:360px;max-width:calc(100vw - 28px);height:fit-content;max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;padding:18px;z-index:2147483647;box-sizing:border-box}
#hole-loot-reveal::backdrop{background:rgba(0,0,0,.76)}
#holegame #hole-loot-reveal-next{position:sticky;bottom:0;min-height:36px}
#holegame #hole-loot-overview{overflow:hidden}

/* v187: compact inventory and softer equipment/rematch controls. */
#holegame #hole-loot-reveal{inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;margin:0!important}
#holegame .hole-inventory-scroll{height:280px;max-height:38dvh;overflow:auto;min-height:0}
#holegame .hole-loot-grid{grid-template-columns:minmax(0,1fr)}
#holegame #hole-boss-farm{margin:0;border:0;border-bottom:1px solid #494334;background:#141310}
#holegame #hole-boss-farm>summary{padding:10px 12px;color:#b6ab90;cursor:pointer;font:11px monospace}
#holegame #hole-boss-farm-list{max-height:220px;overflow:auto;padding:0 10px}
#holegame .hole-farm-row{padding:12px 4px;border-bottom:1px solid #343127}
#holegame .hole-farm-heading{display:flex;align-items:center;gap:12px;margin-bottom:8px}
#holegame .hole-farm-heading img{width:48px;height:48px;object-fit:contain}
#holegame .hole-farm-row>small{display:block;margin:6px 0;color:#aaa18b}
#holegame #hole-loot-overview button:not([data-gear-action="slot"]){display:inline-block;margin:10px 0 4px;padding:8px 14px;min-height:34px;max-width:100%;border:2px outset #777162;background:#302e27;color:#e2d9c2;font:bold 10px/1.4 monospace;white-space:normal;cursor:pointer;box-shadow:none}
#holegame #hole-loot-overview button:not([data-gear-action="slot"]):hover:not(:disabled){background:#413e33}
#holegame #hole-loot-overview button:disabled{opacity:.5;cursor:default}
#holegame #hole-loot-overview button:not([data-gear-action="slot"]):active:not(:disabled){border-style:inset}
#holegame .hole-item-copy>small{display:block;margin-top:6px}
#holegame .hole-equipment-slots{grid-template-columns:repeat(7,minmax(0,52px));justify-content:center}
#holegame .hole-equipment-slots button.empty{background:#242424 url('https://bettysgraphics.neocities.org/images/backgrounds/pattern%20249.gif') repeat;color:#fff;text-shadow:1px 1px 2px #000}

/* v188: align the modal with the visible game, not the site's sidebar. */
#holegame #hole-loot-reveal{left:var(--review-x,50%)!important;top:var(--review-y,50%)!important}
#holegame .hole-equipment-slots button.empty{background-image:linear-gradient(#0009,#0009),url('https://bettysgraphics.neocities.org/images/backgrounds/pattern%20249.gif');background-size:100% 100%;background-repeat:no-repeat}
#holegame .hole-inventory-scroll{overflow-anchor:none}

/* v189: distinguish equip/remove and keep lore optional. */
#holegame #hole-loot-overview button[data-gear-action="equip"]{background:#203c2b;border-color:#64846d;color:#b9e5c3}
#holegame #hole-loot-overview button[data-gear-action="equip"]:hover:not(:disabled){background:#2d5139}
#holegame #hole-loot-overview button[data-gear-action="remove"]{background:#482729;border-color:#936263;color:#f0bfc0}
#holegame #hole-loot-overview button[data-gear-action="remove"]:hover:not(:disabled){background:#613336}
#holegame .hole-lore-disclosure{margin:8px 0 12px;border-bottom:1px solid #343127;padding-bottom:8px}
#holegame .hole-loot-card .hole-lore-disclosure>summary{display:list-item;list-style:disclosure-closed;cursor:pointer;color:#b8ad94;font:10px monospace;padding:4px 0}
#holegame .hole-loot-card .hole-lore-disclosure[open]>summary{list-style:disclosure-open}
#holegame #hole-crit-readout{display:flex;justify-content:center;flex-wrap:wrap;gap:3px 10px;margin-top:5px;font:9px/1.4 monospace}
#holegame #hole-crit-readout span{font:inherit;white-space:nowrap}

/* v190: secondary combat/economy stats beside the main power readouts. */
#holegame #hole-combat-stats{grid-column:1/-1;padding:7px 12px;background:#101010;border-bottom:1px solid #383838;font:10px monospace;text-align:left}
#holegame #hole-combat-stats>summary{cursor:pointer;color:#bdb39b;text-align:center}
#holegame #hole-combat-stats-values{max-width:440px;margin:8px auto}
#holegame #hole-combat-stats-values>small{display:block;color:#999;font:9px/1.5 monospace;margin:7px 0}

/* A static glossy highlight: no animation work during tapping or combat. */
#holegame .hole-quality-shine,#holegame .hole-quality-stat>b.hole-quality-shine,#holegame #hole-equipment-loot-quality.hole-quality-shine{background:linear-gradient(110deg,#8dd7ff 0%,#f4fcff 24%,#c6adff 43%,#fff1b7 59%,#f4fcff 76%,#91e6df 100%);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:bold;text-shadow:0 0 6px #9bccff66}
#holegame .hole-rolled-stat.hole-quality-stat{background:linear-gradient(90deg,#19212b,#191b22 65%,#242131)}

/* v192: show the actual critical hit while the normal readout keeps updating. */
#holegame .hole-info-active-power .hole-power-value-wrap{position:relative}
#holegame #hole-power.hole-critical-hidden{visibility:hidden}
#holegame #hole-critical-power{font-size:18px;line-height:18px;position:absolute;inset:0;color:#ff5555!important;pointer-events:none;text-shadow:0 0 8px #b51e1e;font-weight:bold;display:flex;align-items:center;justify-content:center}
#holegame #hole-critical-power[hidden]{display:none!important}

/* Gameplay never selects text; real form controls remain editable. */
#holegame,#holegame *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#holegame input,#holegame textarea,#holegame select,#holegame [contenteditable="true"]{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}
#holegame #hole-dig-button{touch-action:none}
#holegame .hole-loot-card>img,#holegame .hole-loot-card>summary>img{width:58px;height:58px;min-width:58px;max-width:58px;aspect-ratio:1/1;flex:0 0 58px;object-fit:contain;box-sizing:border-box;align-self:center}
#holegame .hole-equipment-slots button{height:auto;aspect-ratio:1/1;box-sizing:border-box}

/* Category slots: square icons, readable labels, only matching replacement targets. */
#holegame .hole-equipment-slots{grid-template-columns:repeat(7,minmax(0,1fr));align-items:start}
#holegame .hole-equipment-slot{min-width:0;text-align:center}
#holegame .hole-equipment-slot>small{display:block;min-height:24px;font:9px/12px "Courier New",monospace;color:#bdb9a8;margin:4px 0}
#holegame .hole-equipment-slot>button{width:100%;max-width:64px;display:block;margin:auto}
#holegame .hole-equipment-slot>button.compatible{outline:2px solid #a5c98e;outline-offset:1px}
#holegame .hole-equipment-slot>button:disabled{opacity:.35}
#holegame .hole-set-info{border-left:2px solid #8fae79;padding:6px 8px;margin:8px 0}
#holegame .hole-set-info>small{display:block;margin:5px 0;color:#bcb7a3}
#holegame .hole-set-summary{margin:10px 0;color:#bcb7a3}
#holegame .hole-loot-card>summary span{min-width:0;overflow-wrap:anywhere}

#holegame .hole-equipment-slot>small{overflow-wrap:anywhere}

/* Current-hole scoreboard: compact rows, details only on request. */
#hole-leaderboard .hole-current-player{border:0;border-bottom:1px solid #30362c;background:transparent;margin:0;min-width:0}
#hole-leaderboard .hole-current-player summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:6px 2px;cursor:pointer;color:#ded5ac;font: bold 10px/1.4 'Courier New',monospace}
#hole-leaderboard .hole-current-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hole-leaderboard .hole-current-name:before{content:'▸ ';color:#aaa}
#hole-leaderboard .hole-current-player[open] .hole-current-name:before{content:'▾ '}
#hole-leaderboard .hole-current-hour{color:#95c78e;font-size:10px;margin:0 0 8px}
#hole-leaderboard .hole-current-player summary strong{white-space:nowrap}
#hole-leaderboard .hole-current-player summary:focus-visible{outline:2px solid #d7c68b;outline-offset:2px}
#hole-leaderboard .hole-current-info{border-top:1px solid #36362e;padding:8px;background:#11120f;color:#bbb;font:10px/1.5 'Courier New',monospace}
#hole-leaderboard .hole-current-info dl{margin:0 0 8px}
#hole-leaderboard .hole-current-info dl>div{display:flex;justify-content:space-between;gap:16px;margin:5px 0}
#hole-leaderboard .hole-current-info dd{margin:0;text-align:right;overflow-wrap:anywhere;max-width:65%;color:#eee}

/* Shared ruler: the geological colours never stretch to fit individual players. */
#hole-leaderboard .hole-current-board{display:grid;grid-template-columns:minmax(0,120px) minmax(30px,1fr) max-content;column-gap:8px}
#hole-leaderboard .hole-current-player{display:grid;grid-column:1/-1;grid-template-columns:subgrid}
#hole-leaderboard .hole-current-player summary{grid-column:1/-1;grid-template-columns:subgrid;align-items:center}
#hole-leaderboard .hole-current-info{grid-column:1/-1}
#hole-leaderboard .hole-current-player:not([open])>.hole-current-info{display:none}
#hole-leaderboard .hole-current-track .hole-depth-leaderboard-fill{width:100%;background:var(--hole-current-geology);box-shadow:inset 0 1px rgba(255,255,255,.12),inset 0 -2px rgba(0,0,0,.4)}
#hole-leaderboard .hole-current-tip{position:absolute;top:0;bottom:0;width:1px;background:#e9d49c;transform:translateX(-1px)}
@media(max-width:600px){#hole-leaderboard .hole-current-board{grid-template-columns:minmax(0,85px) minmax(24px,1fr) max-content;column-gap:5px}}

/* v210: match the other scoreboards; use expansion space as a small stat grid. */
#hole-leaderboard .hole-current-player summary{padding:3px 0;font-size:9px;line-height:1.25}
#hole-leaderboard .hole-current-info dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 16px}
#hole-leaderboard .hole-current-info dl>div{display:block;margin:0}
#hole-leaderboard .hole-current-info dt{font-size:9px;color:#999}
#hole-leaderboard .hole-current-info dd{text-align:left;max-width:none;margin:1px 0 3px}
#hole-leaderboard .hole-current-info>small{font-size:8px;color:#888}
/* Equipped copies are hydrated only for the open player; seven compact square slots. */
#holegame #hole-leaderboard .hole-current-equipment{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;width:100%;max-width:330px;margin:7px 0}
#holegame #hole-leaderboard .hole-current-item{display:block;position:relative;min-width:0;min-height:0;width:100%;height:auto;aspect-ratio:1;padding:3px;margin:0;box-sizing:border-box;border:2px ridge var(--loot-color);background:#080808;color:#bbb;font:12px monospace;cursor:help;box-shadow:inset 0 0 6px color-mix(in srgb,var(--loot-color),transparent 70%)}
#holegame #hole-leaderboard .hole-current-item.empty{background:linear-gradient(#0009,#0009),url('https://bettysgraphics.neocities.org/images/backgrounds/pattern%20249.gif') center/100% 100% no-repeat}
#holegame #hole-leaderboard .hole-current-item>img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;image-rendering:pixelated}
#holegame #hole-leaderboard .hole-current-item:hover,#holegame #hole-leaderboard .hole-current-item:focus-visible{outline:1px solid var(--loot-color);outline-offset:1px}
#holegame #hole-leaderboard .hole-current-equipment-note{display:block;margin:0 0 6px}
#hole-board-item-tooltip{position:fixed;z-index:2147483647;pointer-events:none;width:230px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:9px;border:2px ridge var(--loot-color);background:#141414;color:#ddd;box-shadow:0 3px 12px #0009;font:10px/1.5 'Courier New',monospace;overflow-wrap:anywhere}
#hole-board-item-tooltip[hidden]{display:none!important}
#hole-board-item-tooltip>b{display:block;color:var(--loot-color);font-size:11px;margin:0 0 3px}
#hole-board-item-tooltip>small{display:block;color:#999;font-size:8px;margin:0 0 5px}
#hole-board-item-tooltip .hole-rolled-stat{display:flex;justify-content:space-between;gap:12px;padding:4px 0;color:var(--stat-color);border:0;border-bottom:1px solid #292929}
#hole-board-item-tooltip .hole-rolled-stat>b{white-space:nowrap}
#hole-leaderboard .hole-current-hour{margin-bottom:6px}
#holegame #hole-boss-farm-list{max-height:320px;padding:0 8px 8px;overscroll-behavior:contain}
#holegame .hole-farm-family h4{margin:12px 0 4px;color:#d0bd8d;font: bold 11px monospace;border-bottom:1px solid #514630;padding-bottom:5px}
#holegame .hole-farm-pool>summary{font:9px monospace;color:#a89c81;cursor:pointer;padding:5px 0}
#holegame .hole-farm-pool .hole-boss-pool{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px;padding:4px 0}
#holegame .hole-farm-pool .hole-boss-pool>small{display:none}
#holegame .hole-farm-row{padding:5px 0}
#holegame .hole-farm-heading{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;align-items:center;margin:0}
#holegame .hole-farm-heading img{width:40px;height:40px}
#holegame .hole-farm-label b{font:bold 10px/1.3 monospace;overflow-wrap:anywhere}
#holegame .hole-farm-label small{display:block;margin-top:3px;color:#aaa;font:9px monospace}
#holegame #hole-loot-overview .hole-farm-heading button{margin:0;padding:6px 9px;min-height:30px;font-size:9px;background:#28382e;border-color:#647664;color:#cfddbc}
@media(max-width:400px){#holegame .hole-farm-heading{grid-template-columns:32px minmax(0,1fr) auto;gap:5px}#holegame .hole-farm-heading img{width:32px;height:32px}#holegame #hole-loot-overview .hole-farm-heading button{max-width:85px;padding:5px;font-size:8px}}
#hole-leaderboard .hole-current-player::details-content{grid-column:1/-1;min-width:0}

#hole-leaderboard .hole-current-name{color:#fff}

/* Match the existing scoreboard rules, not a separate gold/monospace theme. */
#hole-leaderboard .hole-current-board{grid-template-columns:8px 22px minmax(0,120px) minmax(24px,1fr) max-content;column-gap:4px}
#hole-leaderboard .hole-current-player{border:0}
#hole-leaderboard .hole-current-player summary.hole-joker-leaderboard-row{font:inherit;font-size:9px;line-height:normal;font-weight:normal;align-items:baseline;padding:4px 0;color:#ddd;gap:4px}
#hole-leaderboard .hole-current-player summary>b{font-weight:bold;color:#ddd}
#hole-leaderboard .hole-current-player summary>strong{font-size:9px;color:#fff;font-weight:bold}
#hole-leaderboard .hole-current-name:before{content:none!important}
#hole-leaderboard .hole-current-arrow{color:#777;font-size:8px}
#hole-leaderboard .hole-current-player[open] .hole-current-arrow{transform:rotate(90deg)}
#hole-leaderboard .hole-current-track{align-self:center}
@media(max-width:600px){#hole-leaderboard .hole-current-board{grid-template-columns:7px 18px minmax(0,85px) minmax(20px,1fr) max-content;column-gap:3px}#hole-leaderboard .hole-current-player summary.hole-joker-leaderboard-row,#hole-leaderboard .hole-current-player summary>strong{font-size:8px;gap:3px}}
#hole-leaderboard .hole-current-player summary>strong{max-width:none;overflow:visible;text-overflow:clip}

#holegame .hole-item-set-disclosure>summary{display:list-item;list-style:disclosure-closed;font:10px monospace;color:#bcb7a3;cursor:pointer;padding:2px 0}
#holegame .hole-item-set-disclosure[open]>summary{list-style:disclosure-open;margin-bottom:7px}
#holegame .hole-loot-tier:focus{outline:1px solid #9b8d68;outline-offset:2px}
@media(max-width:620px){
 #holegame .hole-equipment-slot>button{position:relative;width:100%;height:auto;min-height:0;max-width:64px;aspect-ratio:1/1;padding:0;box-sizing:border-box}
 #holegame .hole-equipment-slot>button>img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:contain}
 #holegame .hole-loot-card>img,#holegame .hole-loot-card>summary>img{width:58px;height:58px;min-height:58px;max-height:58px;aspect-ratio:1;object-fit:contain}
}

#hole-first-boss-hint{position:absolute;left:50%;bottom:12%;transform:translateX(-50%);max-width:90%;width:max-content;box-sizing:border-box;padding:7px 10px;background:#100d09e8;border:1px solid #bba679;color:#ffe6ab;font:bold 12px/1.4 'Courier New',monospace;text-align:center;pointer-events:none;z-index:12}
#hole-first-boss-hint[hidden]{display:none}
#holegame #hole-dig-button.hole-first-boss-prompt{animation:holeFirstBossPrompt 1.4s ease-in-out infinite}
@keyframes holeFirstBossPrompt{50%{box-shadow:inset 0 0 16px #ffdb8855;filter:brightness(1.2)}}
@media(prefers-reduced-motion:reduce){#holegame #hole-dig-button.hole-first-boss-prompt{animation:none;outline:2px solid #d6ba7c}}

/* v219: modest extra height; no new render loop or effects layers. */
#holegame #hole-canvas{aspect-ratio:3/2}
#holegame .hole-rate-crit{color:#ff7474!important}
#holegame #hole-market,#holegame #hole-backroom,#holegame #hole-market-button{display:none!important}

/* Dedicated boss ledger: bounded, collapsed by default, no digging-control clutter. */
#holegame #hole-boss-farm{margin:0;border:2px solid #514936;background:#11110f;min-width:0}
#holegame #hole-boss-farm>summary{padding:10px 12px;font:bold 11px monospace;color:#c8bb91;background:#252115}
#holegame #hole-boss-farm-list{max-height:360px;max-height:min(50vh,360px);overflow-y:auto;padding:0 10px 8px}
#holegame .hole-farm-family{border-bottom:1px solid #4a4333}
#holegame .hole-farm-family>summary{display:flex;align-items:center;gap:8px;padding:8px 0;cursor:pointer;font:10px monospace}
#holegame .hole-farm-family>summary:before{content:'▸';color:#ad9e78}
#holegame .hole-farm-family[open]>summary:before{content:'▾'}
#holegame .hole-farm-family>summary img{width:30px;height:30px;object-fit:contain}
#holegame .hole-farm-family>summary b{flex:1;min-width:0;overflow-wrap:anywhere;color:#ddd}
#holegame .hole-farm-family>summary small{color:#aaa;white-space:nowrap;font-size:9px}
#holegame .hole-farm-row>summary{padding:7px 2px;cursor:pointer;font:10px monospace;color:#ddd}
#holegame .hole-farm-row>summary small{font-size:8px;color:#b4a580;margin-left:6px}
#holegame .hole-farm-row .hole-farm-heading{padding:5px 2px 9px}
#holegame #hole-boss-farm button{margin:4px 0;padding:7px 10px;min-height:32px;font:bold 9px monospace;background:#28382e;border:2px outset #647664;color:#cfddbc}
#holegame #hole-boss-farm button:disabled{opacity:.5}
#holegame #hole-dig-frame-bar #hole-boss-energy-status{padding:3px 6px;min-height:24px;font:10px monospace;color:#dfd4ab;background:#242419;border:1px outset #75694f;white-space:nowrap}
#holegame #hole-dig-frame-bar #hole-boss-energy-status[hidden],#holegame #hole-boss-farm[hidden]{display:none}
@media(max-width:400px){#holegame .hole-dig-frame-controls{gap:4px}#holegame #hole-dig-frame-bar #hole-boss-energy-status{font-size:9px;padding:3px}#holegame .hole-farm-heading{grid-template-columns:28px minmax(0,1fr) auto}#holegame #hole-boss-farm button{padding:6px;font-size:8px;max-width:85px}}

/* v233: shared window geometry, quiet recovery, and the 100k rarity. */
.box.hole-game-box{padding:0;border:0}
#holegame #hole-loot-overview,#holegame #hole-boss-farm{margin:0!important;border:1px solid #444;box-sizing:border-box}
#holegame #hole-loot-overview>.hole-panel-titlebar{background:#18213d;color:#abc7ff;border-bottom:1px solid #536aa0;cursor:pointer;list-style:none}
#holegame #hole-boss-farm>.hole-panel-titlebar{background:#321825;color:#f1a2bf;border-bottom:1px solid #8b4c65;cursor:pointer;list-style:none}
#holegame #hole-loot-overview>summary:after{content:none}
#holegame #hole-boss-farm>summary::-webkit-details-marker{display:none}
#holegame .hole-details-toggle{font-size:0!important;pointer-events:none}
#holegame .hole-details-toggle:before{content:'+';font:bold 12px/1 'Courier New',monospace}
#holegame details[open]>.hole-panel-titlebar .hole-details-toggle:before{content:'−'}
#holegame #hole-loot-summary,#holegame #hole-boss-menu-summary{font-size:9px;color:inherit;opacity:.9}
#holegame #hole-dig-frame-bar #hole-boss-energy-status{height:15px!important;min-height:15px!important;padding:2px 8px!important;box-sizing:border-box;font:bold 8px/9px 'Courier New',monospace!important}
#holegame #hole-save-standby .hole-session-feedback[hidden]{display:none}
#holegame #hole-save-standby:has(.hole-session-feedback[hidden]){width:auto;padding:8px;border-color:#555}
#holegame #hole-save-standby button{margin:0 auto;min-height:36px}
#holegame #hole-save-standby button:not(:first-of-type){margin-top:8px}
#hole-leaderboard .hole-current-board{grid-template-columns:8px 22px fit-content(120px) minmax(24px,1fr) max-content}
#holegame .hole-capacity-row{grid-column:1/-1;margin-top:12px;padding-top:10px;border-top:1px solid #735281}
#holegame .hole-capacity-row h3{margin:0 0 8px;color:#e6a8ef;font:bold 11px monospace}
#holegame .hole-capacity-row>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#holegame .hole-capacity-row .hole-skill-card{height:100%;box-sizing:border-box}
#holegame .hole-mythic-card>summary>img,#holegame .hole-equipment-slots button[style*="#37ffe0"]{border-color:#37ffe0;box-shadow:inset 0 0 9px #37ffe055,0 0 5px #f169ff77}
#hole-loot-reveal.hole-mythic-reveal{border-color:#37ffe0;box-shadow:0 0 18px #37ffe055,0 0 36px #f169ff44}
#hole-loot-reveal.hole-mythic-reveal #hole-loot-reveal-tier{color:#37ffe0;text-shadow:1px 1px #a93cb9,0 0 8px #37ffe077}

/* v234: the reveal frame stays square regardless of a GIF's native dimensions. */
#holegame #hole-loot-reveal-frame{position:relative;display:block;width:88px;height:88px;min-width:88px;min-height:88px;max-width:88px;max-height:88px;aspect-ratio:1;box-sizing:border-box;margin:12px auto;padding:4px;overflow:hidden;contain:paint;background:#080808;border:2px solid var(--loot-color);box-shadow:0 0 4px var(--loot-color),inset 0 0 5px var(--loot-color)}
#holegame #hole-loot-reveal-frame[hidden]{display:none!important}
#holegame #hole-loot-reveal-frame>#hole-loot-reveal-image{display:block;position:static;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;margin:0;padding:0;box-sizing:border-box;object-fit:contain;image-rendering:pixelated;filter:none}
#holegame #hole-loot-reveal-name{overflow-wrap:anywhere}
#holegame #hole-loot-reveal.hole-mythic-reveal #hole-loot-reveal-frame{box-shadow:0 0 6px #37ffe0,inset 0 0 8px #37ffe055,0 0 10px #f169ff77}
@media(max-width:600px){
 #hole-leaderboard .hole-current-board{grid-template-columns:7px 18px fit-content(90px) minmax(20px,1fr) max-content}
 #holegame #hole-loot-summary{max-width:42vw;overflow:hidden;text-overflow:ellipsis;font-size:8px}
 #holegame .hole-capacity-row>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #holegame #hole-dig-frame-bar #hole-boss-energy-status{font-size:8px!important;padding:0 6px!important}
}

/* Reliability: shared recovery banner must remain visible in COOP LIA. */
#holegame > #hole-save-standby{position:sticky;top:8px;left:auto;right:auto;transform:none;z-index:100;width:auto;max-width:100%;max-height:70vh;margin:8px;padding:12px}
