#game-loading {position:fixed;inset:0;display:grid;place-items:center;background:#17130f;z-index:999;overflow:hidden}
#game-loading [hidden], #game-loading[hidden] {display:none}
.intro-stage {position:relative;width:min(100%,115.873dvh);aspect-ratio:730/630;overflow:hidden;container-type:inline-size;touch-action:none;user-select:none}
.intro-poster,.intro-motion {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.intro-first-shot {position:absolute;left:0;top:0;width:300%;height:300%;max-width:none;pointer-events:none}
.intro-caption {position:absolute;left:7.4%;top:3.7%;color:white;font:1.36cqw Arial,sans-serif}
.intro-progress {position:absolute;right:1.37%;top:.79%;width:9.1%;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;color:black;font:1.65cqw Arial,sans-serif;text-shadow:0 0 2px white,0 0 2px white,0 0 2px white}
.intro-value {position:relative;z-index:1}
.intro-progress.has-count-strip .intro-value {visibility:hidden}
.intro-count {display:none;position:absolute;width:100%;height:1.25em;inset:auto;z-index:1;overflow:hidden;text-align:center;line-height:1.25}
.intro-progress.has-count-strip .intro-count {display:block}
.intro-count i {display:block;font-style:normal;white-space:pre;will-change:transform}
.intro-count i::before {content:attr(data-values)}
.intro-wheel {position:absolute;left:0;top:0;width:1000%;height:1000%;max-width:none;pointer-events:none;will-change:transform}
.intro-keep {position:absolute;bottom:.79%;left:50%;transform:translateX(-50%);color:white;font:1.92cqw Calibri,Arial,sans-serif;white-space:nowrap;display:flex;align-items:center;gap:.65cqw;cursor:pointer}
.intro-keep input {appearance:none;width:2.06cqw;height:2.2cqw;margin:0;background:center/contain no-repeat url('/assets/phaser-intro/checkBoxBlue-1.webp');cursor:pointer}
.intro-keep input:checked {background-image:url('/assets/phaser-intro/checkIconBlue-1.webp'),url('/assets/phaser-intro/checkBoxBlue-1.webp')}
.intro-play {position:absolute;left:52.05%;bottom:-4.76%;width:19.32%;height:11.72%;border:0;background:transparent center/contain no-repeat url('/phaser/art/stage2/introPlay-1.svg');cursor:pointer}
.intro-play:hover {background-image:url('/phaser/art/stage2/introPlay-2.svg')}
.intro-play:active {background-image:url('/phaser/art/stage2/introPlay-3.svg')}
:root { color-scheme: dark; font: 15px Arial, sans-serif; background: #15100c; }
* { box-sizing: border-box; }
body { margin: 0; }
#viewport {
  position: relative; height: 100dvh; height: var(--tg-viewport-stable-height, 100dvh);
  display: grid; place-items: center; overflow: hidden;
  padding: max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px))
    max(env(safe-area-inset-right), var(--tg-content-safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px))
    max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px))
    max(env(safe-area-inset-left), var(--tg-content-safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px));
}
#viewport { container-type: size; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
#board {
  position: relative;
  width: 100%;
  height: 100%; min-height: 0; justify-self: center;
}
#display-frame {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(730px, 100cqw, calc(100cqh * 730 / 630)); aspect-ratio:730 / 630;
}
#canvas { position:absolute; inset:0; width:100%; height:100%; }
#canvas canvas { display: block; }
#controls { position: absolute; left: 0; top: 0; width: 730px; height: 630px; transform-origin: top left; pointer-events: none; }
#controls button, #controls input { pointer-events: auto; touch-action: manipulation; font-family: inherit; }
.battle-info-list { position:absolute; left:96px; top:500px; width:209px; height:95px; overflow:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:#a58c62 #302f2c; pointer-events:auto; touch-action:pan-y; overscroll-behavior:contain; font:11px 'Prison Calibri',Calibri,Arial,sans-serif; color:#ffec9f; }
.battle-info-list > div { position:relative; height:40px; box-sizing:border-box; border-bottom:1px solid #91887b; }
.battle-info-list img { position:absolute; left:2px; top:2px; width:30px; height:30px; object-fit:cover; cursor:pointer; }
#controls .battle-info-list button, .battle-info-list span { position:absolute; top:2px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#controls .battle-info-list button { left:40px; width:76px; text-align:left; background:transparent; border:0; padding:0; color:inherit; font:inherit; cursor:pointer; }
#controls .battle-info-list button:disabled { opacity:1; cursor:default; }
#controls .battle-info-list button:enabled:hover { color:white; }
.battle-info-list span { left:119px; right:0; color:#00cc66; }
#controls .battle-info-list[data-tab="events"] button { width:calc(100% - 40px); }
.battle-info-list[data-tab="events"] span { top:17px; left:40px; color:inherit; }
.battle-info-list[hidden] { display:none; }
.battle-info-list small { position:absolute; left:40px; top:20px; right:0; display:flex; color:white; }
.battle-info-list small i { width:50%; padding-left:17px; box-sizing:border-box; font:11px 'Prison Calibri',Calibri,Arial,sans-serif; line-height:16px; background:no-repeat left center / 15px 15px; }
.battle-info-list .collected, .battle-info-list .collected span { color:#461212; }
.battle-info-list[data-tab="events"] span { white-space:normal; font-size:10px; line-height:10px; }
.hit { position: absolute; background: transparent; border: 0; cursor: pointer; padding: 0; }
.card-reward { cursor: pointer; }
.card-reward:focus-visible { outline: 2px solid #fff2ab; outline-offset: -1px; }
.hit:disabled { cursor: default; }
.boss-named-drop {white-space:normal;max-width:47px;font:10px/10px Calibri,Arial,sans-serif}
.vorkuta-entry {background:center/contain no-repeat url('./art/stage2/schron-boxButton15-1.webp')}
.vorkuta-entry:hover {background-image:url('./art/stage2/schron-boxButton15-2.webp')}
.vorkuta-entry:active {background-image:url('./art/stage2/schron-boxButton15-3.webp')}
.vorkuta-board {background:center/contain no-repeat url('./art/stage2/schron-bossPollRewardBackground-1.webp')}
.vorkuta-plate {background:center/contain no-repeat url('./art/stage2/schron-bossPollRewardPlate-1.webp');color:#ffe08e;text-shadow:0 1px 3px #342005}
.vorkuta-take {color:#291809;background:center/contain no-repeat url('./art/stage2/schron-bossPollTakeButton-1.webp');font-size:15px}
.vorkuta-take:hover {background-image:url('./art/stage2/schron-bossPollTakeButton-2.webp')}
.vorkuta-take:active {background-image:url('./art/stage2/schron-bossPollTakeButton-3.webp')}
#controls:has(> .battle-dialog, > [role="dialog"]) .luska-entry {display:none}
.hit:focus-visible { outline: 3px solid #fff2ab; outline-offset: -2px; }
#notice {
  position: absolute; bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%); width: max-content; max-width: 85%;
  color: #fff2c9; background: #302018f2; padding: 8px 14px; border: 1px solid #bd955d;
}
#notice:empty { display: none; }
#notice button { margin-left: 8px; }
#fullscreen {
  z-index: 1; position: absolute; top: max(5px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)); right: max(5px, env(safe-area-inset-right), var(--tg-content-safe-area-inset-right, 0px));
  min-width: 36px; min-height: 36px; color: #fff2ab;
  background: #302018; border: 1px solid #8b6a42; border-radius: 4px; cursor: pointer;
}
@container (min-aspect-ratio: 1/1) and (max-aspect-ratio: 13/10) {
  #fullscreen { top:auto; bottom:3px; right:5px; min-width:20px; min-height:20px; padding:0; }
}
#rotate { display: none; position: absolute; top: 8%; padding: 6px; color: #e7cb99; text-align: center; }
@media (orientation: portrait) and (max-width: 600px) {
  #rotate { display: block; }
}

.friend-search { position:absolute; top:55px; width:730px; height:430px; overflow:hidden; pointer-events:auto; color:#461e12; font:13px Calibri,Arial,sans-serif; background-repeat:repeat; }
.friend-search-input { background:rgb(255 255 255 / 50%); border-radius:5px; }
.friend-search-input input { color:#461e12; background:transparent; border:1px solid #806f59; border-radius:3px; padding-right:20px; }
.friend-search-results { overflow:auto; display:grid; grid-template-columns:280px 280px; align-content:start; }
.friend-search-result { position:relative; height:60px; font-size:14px; }
.friend-search-result button { border:0; background-color:transparent; background-size:100% 100%; color:#461e12; font:12px Calibri,sans-serif; cursor:pointer; }
.friends-strip { position:absolute; left:14px; top:535px; width:560px; height:65px; pointer-events:none; }
.friends-strip img, .friends-strip span { position:absolute; }
.friends-strip img { object-fit:cover; }
.friends-strip button { pointer-events:auto; }
.friends-strip img, .friends-strip span { pointer-events:none; }
.friends-strip span { top:57px; width:60px; font:9px Calibri, sans-serif; color:#ffec9f; text-align:center; }
.boss-list {
  position: absolute;
  left: 20px;
  top: 95px;
  width: 700px;
  height: 380px;
  padding-right: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  touch-action: pan-y;
  color-scheme: light;
  scrollbar-width: thin;
  scrollbar-color: #e77632 #8c7e63;
}
.boss-row { content-visibility: auto; contain-intrinsic-size: 676px 195px; position: relative; height: 195px; width: 676px; color: #221d16; }
.boss-row > img, .boss-row > span { position: absolute; }
.boss-face { left: 38px; top: 0.55px; width: 115px; height: 121px; overflow: hidden; pointer-events: auto; }
.boss-reward-tip { position:absolute; pointer-events:none; z-index:5; white-space:pre-line; max-width:300px; padding:3px 5px; border:2px solid #999; border-radius:5px; background:#333; opacity:.85; color:white; font:12px Calibri,Arial,sans-serif; }
.boss-attack { z-index:1; }
.boss-face:hover { filter: brightness(1.1); }
.boss-portrait { position: absolute; inset: 0; width: 115px; height: 121px; }
.boss-transition :is(iframe,img,video) { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; }
.section-menu-tip { width:max-content; white-space:nowrap; line-height:normal; text-transform:none; opacity:1; box-shadow:1.4px 1.4px 2px rgba(0,0,0,.5); }
.boss-transition { background:transparent url(/assets/phaser-intro/cat-poster.webp) center/100% 100% no-repeat; position:absolute; left:0; top:55px; width:730px; height:550px; border:0; z-index:5; pointer-events:auto; }
.boss-medal-locked { opacity: 0.3; }
.boss-name { font-size: 13px; text-align: center; width: 116px; }
.boss-wins { font-size: 14px; }
.card-reward { display: flex; align-items: center; gap: 3px; font-size: 11px; white-space: nowrap; }
.card-reward img { width: 15px; height: 15px; object-fit: contain; }
.boss-attack {
  position: absolute;
  top: 145px;
  left: 41px;
  width: 107px;
  height: 35px;
  padding: 0;
  border: 0;
  background: transparent center/100% 100% no-repeat;
  color: #3e270d;
  cursor: pointer;
  font-size: 13px;
}

@font-face { font-family: 'Prison Inscription'; src: url('./art/stage2/flash-conf.ttf') format('truetype'); }
@font-face { font-family: 'Prison Calibri'; src: url('/original-prison-assets/assets/fonts/6_Calibri.woff') format('woff'); }
.battle-dialog.game-help { background: rgba(0,0,0,.2); color: black; font: 12px/14.55px 'Prison Calibri', Calibri, sans-serif; }
.game-help-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.game-help-scroll > div { box-sizing: border-box; width: 450px; padding: 2px 4px 2px 2px; }
.game-help-track { background: rgba(34,34,34,.5); cursor: pointer; touch-action: none; user-select: none; }
.game-help-thumb { box-sizing: border-box; border: .5px solid #794924; background: repeating-linear-gradient(#663333 0 1px,transparent 1px 2px) center / 7px 9px no-repeat, linear-gradient(to right,rgba(255,255,255,.35) 8px,transparent 8px), #ff6500; }
.game-help-thumb.pressed { background-color: #ff9955; }
.game-help-thumb::before, .game-help-thumb::after { content: ''; position: absolute; left: 4px; width: 5px; height: 3px; background: #663333; clip-path: polygon(0 100%,0 67%,20% 67%,20% 33%,40% 33%,40% 0,60% 0,60% 33%,80% 33%,80% 67%,100% 67%,100% 100%); }
.game-help-thumb::before { top: 4px; }
.game-help-thumb::after { bottom: 4px; transform: rotate(180deg); }
#controls .game-help-close { border: 0; padding: 1px 0 0; color: #660020; background: transparent url('./art/stage2/helpClose-1.svg') center / contain no-repeat; font: 12px 'Prison Calibri', Calibri, sans-serif; cursor: pointer; }
#controls .game-help-close:hover { color: white; background-image: url('./art/stage2/helpClose-2.svg'); }
#controls .game-help-close:active { color: #660020; background-image: url('./art/stage2/helpClose-3.svg'); }
.battle-dialog { position: absolute; inset: 0; pointer-events: auto; background: rgba(0,0,0,.4); outline: none; }
.retreat-plate { position: absolute; left: 160px; top: 130px; width: 372px; height: 233px; background-repeat: no-repeat; filter: drop-shadow(0 0 12px #000); font-family: Arial, sans-serif; }
.retreat-plate h2 { position: absolute; left: 130px; top: 64px; width: 210px; margin: 0; color: #990000; text-align: center; text-shadow: 0 0 4px #fff, 0 0 4px #fff; font-size: 24px; font-weight: normal; }
.retreat-price { position: absolute; left: 130px; top: 132px; width: 210px; text-align: center; color: #7a1602; font-size: 12px; }
.retreat-price img { vertical-align: middle; }
.retreat-plate:not(:has(h2)) .retreat-price { left: 140px; width: 200px; top: 105px; color: #fff; }
.retreat-action, .retreat-close { position: absolute; padding: 0; border: 0; background: transparent no-repeat center; cursor: pointer; }
.retreat-action { left: 199px; top: 183px; width: 71px; height: 16px; background-size: 100% 100%; color: #461e12; font-size: 12px; }
.retreat-close { left: 350px; top: 45px; width: 20px; height: 20px; background-size: contain; }
.battle-report { position: absolute; left: 80px; top: 55px; width: 425px; height: 430px; background-repeat: no-repeat; font-family: Arial, sans-serif; color: #461e12; }
.battle-report h2 { position: absolute; top: 20px; left: 35px; font-size: 15px; margin: 0; font-weight: normal; }
.battle-report .retreat-close { left: 398px; top: 10px; }
.battle-report-text { position: absolute; left: 35px; top: 60px; width: 370px; height: 350px; padding-right: 10px; overflow-y: auto; white-space: pre-wrap; text-align: justify; font: 13px/16px Arial, sans-serif; }
.battle-report-text::-webkit-scrollbar { width: 15px; }
.battle-report-text::-webkit-scrollbar-track { background-color: #422318; }
.battle-report-text::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #ff9955, #ff6600); border: 2px solid #b43c13; }
.duke-dialog { background: rgba(0,0,0,.2); }
.duke-plate { position: absolute; left: 50%; top: calc(50% - 50px); transform: translate(-50%,-50%); background-repeat: no-repeat; color: #000; }
.duke-description { position: absolute; top: 125px; left: 50%; width: 240px; transform: translateX(-50%); text-align: center; font-size: 16px; }
.duke-available .duke-description { top: 117px; }
.duke-damage { position: absolute; top: 145px; width: 100%; text-align: center; color: red; font: 30px 'Prison Inscription', Arial, sans-serif; }
.duke-action { position: absolute; left: 50%; top: 200px; width: 107px; height: 35px; transform: translateX(-50%); border: 0; padding: 0; background: transparent no-repeat; cursor: pointer; font-size: 14px; }
.duke-plate .retreat-close { left: auto; right: 8px; top: 8px; }
.damage-reward { position: absolute; left: 74.5px; top: 110px; width: 581px; height: 314px; color: white; }
.damage-reward img { position: absolute; pointer-events: none; }
.damage-reward h2 { position: absolute; left: 0; top: 24px; width: 100%; margin: 0; text-align: center; font: 22px 'Prison Inscription', Arial, sans-serif; }
.damage-reward p { position: absolute; left: 50%; top: 54px; width: 450px; transform: translateX(-50%); margin: 0; text-align: center; font-size: 14px; }
.damage-reward-bar-skin { position: absolute; inset: 0; pointer-events: none; clip-path: inset(136px 20px 124px 22px); }
.damage-reward-threshold { position: absolute; top: 222.45px; width: 52.3px; line-height: 23.6px; color: black; text-align: center; font-size: 14px; }
.door-reward-strip {position:absolute;display:flex;gap:3px;align-items:flex-start;width:145px;height:23px;overflow-x:auto;overflow-y:hidden;pointer-events:auto;scrollbar-width:thin;scrollbar-color:#866943 transparent}
.boss-result-reward-list {position:absolute;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:167px;height:107px;align-content:start;overflow-y:auto;pointer-events:auto;scrollbar-width:thin}
.door-reward-strip button,.boss-result-reward-list button {display:flex;align-items:center;gap:2px;flex:none;min-width:40px;height:17px;padding:0;border:0;background:none;color:#211c13;font:11px Arial,sans-serif;cursor:pointer}
.door-reward-strip img,.boss-result-reward-list img {width:15px;height:15px;object-fit:contain;flex:none}
.gvozd-threshold { color: #fff1ca; font: bold 12px/23px Arial, sans-serif; text-shadow: 0 1px 2px #000; }
.gvozd-stage { position: absolute; top: 188px; width: 52px; display: flex; gap: 3px; justify-content: center; align-items: center; color: #fff; text-shadow: 0 1px 2px #000; font: bold 14px Arial, sans-serif; }
.gvozd-stage img { position: static; width: 20px; height: 18px; object-fit: contain; }
.damage-reward-close { position: absolute; top: 261px; left: 232px; width: 85px; height: 32px; background: transparent no-repeat; border: 0; cursor: pointer; }
.battle-spellbook { position: absolute; inset: 0; color: #4c1919; font-family: Arial, sans-serif; outline: none; }
.spellbook-plate { position: absolute; top: 55px; width: 730px; height: 385px; background: no-repeat; pointer-events: auto; }
.spellbook-page { position: absolute; left: 58px; top: 24px; width: 632px; height: 360px; overflow-y: auto; display: grid; grid-template-columns: 276px 276px; gap: 13px 50px; align-items: start; }
.spellbook-page::-webkit-scrollbar { width: 15px; }
.spellbook-page::-webkit-scrollbar-track { background: #704a34; }
.spellbook-page::-webkit-scrollbar-thumb { background: #e87539; border: 3px solid #9a4f30; }
.spellbook-tab, .spellbook-close, .spellbook-action, .spellbook-icon, .spellbook-bar-slot, .spellshop-submit { position: absolute; border: 0; padding: 0; cursor: pointer; background: transparent no-repeat center; }
.spellbook-tab { left: 0; width: 44px; height: 81px; top: 18px; }
.spellbook-tab:nth-of-type(2) { top: 99px; }
.spellbook-tab:nth-of-type(3) { top: 180px; }
.spellbook-close { top: 5px; right: 3px; width: 24px; height: 24px; }
.spellbook-separator { display: flex; justify-content: flex-end; align-items: center; height: 19px; margin: 0; padding-right: 3px; background: no-repeat left center; font-weight: normal; font-size: 12px; }
.spellbook-row { position: relative; display: flex; align-items: center; height: 58px; padding-left: 81px; background-repeat: no-repeat; background-position: center bottom; font-size: 14px; }
.spellbook-icon { left: 30px; top: 6px; width: 49px; height: 46px; background-size: 44px 44px; border: 1px solid #947245; touch-action: none !important; }
.spellbook-icon:disabled { filter: grayscale(1); cursor: default; }
.spellbook-action { left: 0; top: 19px; width: 21px; height: 21px; }
.spellbook-stock { position: absolute; top: 0; left: 0; color: white; text-shadow: 0 0 3px black, 1px 1px black; font-size: 9px; }
.spellbook-bar { position: absolute; left: 47px; top: 440px; height: 42px; display: flex; }
.spellbook-bar-slot { position: relative; width: 42px; height: 42px; background-size: 42px 42px; touch-action: none !important; }
.spellbook-bar-slot img { width: 38px; height: 38px; margin-top: 2px; pointer-events: none; }
.is-dragging .spellbook-bar { box-shadow: 0 0 6px #ffd47a; }
.spellbook-drag { position: absolute; width: 46px; height: 46px; pointer-events: none; z-index: 2; }
.spellbook-shop { position: absolute; left: 179px; top: 126px; width: 372px; height: 246px; pointer-events: auto; background: no-repeat; background-size: 100% 100%; color: #461e12; }
.spellshop-preview { position: absolute; left: 18px; top: 18px; width: 46px; height: 46px; }
.spellshop-title { position: absolute; left: 80px; top: 10px; width: 230px; font-size: 20px; margin: 0; font-weight: normal; }
.spellshop-label { position: absolute; left: 70px; top: 120px; font-size: 14px; }
.spellshop-amount { width: 42px; color: #461e12; background: #fff; }
.spellshop-currency { width: 18px; height: 18px; vertical-align: middle; margin-left: 3px; }
.spellshop-submit { left: 50%; top: 170px; transform: translateX(-50%); min-width: 107px; height: 30px; color: #461e12; }
.spellshop-submit:disabled { filter: grayscale(1); }
.spellshop-funds { top: 200px; }
.spellbook-help { position: absolute; left: 240px; top: 175px; width: 250px; height: 170px; background-repeat: no-repeat; pointer-events: auto; }
.spellbook-help p { width: 200px; margin: 5px 12px; font: 12px Arial, sans-serif; }
.spellbook-gain { position: absolute; right: 1px; top: 18px; width: 23px; height: 23px; padding: 0; border: 0; background: transparent no-repeat center; }
.spellbook-gain-prompt { position: absolute; inset: 0; background: #0006; pointer-events: auto; }
.spellbook-gain-description { position: absolute; left: 130px; top: 100px; width: 210px; white-space: pre-line; color: #7a1602; text-align: center; font-size: 12px; }
.battle-talents { position: absolute; inset: 0; outline: none; font: 13px Arial, sans-serif; color: #2b2518; }
.prison-map-dialog { isolation: isolate; }
.prison-run-complete { isolation: isolate; pointer-events: auto; color: #461212; font: 12px 'Prison Calibri', Calibri, sans-serif; }
.prison-run-sheet { width: 300px; height: 290px; opacity: 0; transform-origin: 0 0; }
.prison-run-sheet button { padding: 0; border: 0; background: transparent no-repeat; background-size: 100% 100%; color: inherit; cursor: pointer; }
.prison-run-caption { width: 210px; text-align: center; }
.talents-panel { position: absolute; top: 55px; width: 730px; height: 430px; pointer-events: auto; }
.talents-paper { position: absolute; inset: 0; width: 730px; height: 430px; }
.talents-tab { position: relative; width: 120px; height: 27px; text-align: center; padding-top: 5px; font: 16px 'Prison Inscription', Arial, sans-serif; isolation: isolate; }
.talents-tab img { position: absolute; z-index: -1; inset: 0; }
button.talents-tab { border: 0; background: transparent; color: inherit; cursor: pointer; }
#controls button.talents-tab { font-family: 'Prison Inscription', Arial, sans-serif; }
.talents-close, .talents-reset, .talents-node { position: absolute; padding: 0; border: 0; background: transparent no-repeat center; cursor: pointer; color: inherit; }
.talents-close { right: 9px; top: 5px; width: 23px; height: 23px; }
.talents-reset { right: 45px; top: 43px; width: 181px; height: 36px; font-size: 13px; }
.talents-reset img { vertical-align: middle; }
.personal-news { font: 13px Calibri, Arial, sans-serif; color: #352b17; }
.personal-news button { cursor: pointer; }
.personal-news .talents-tab { border: 0; padding: 5px 0 0; background: transparent; color: inherit; }
.personal-news-tab { width: 108px; height: 19px; border: 0; padding: 0 2px; color: #361f0c; text-align: left; background: transparent no-repeat; background-size: 107px 19px; font: inherit; }
.personal-news-tab[aria-pressed="true"] { color: #fff; }
.personal-news-empty { text-align: center; font-size: 20px; color: #bfa470; }
.personal-news-log { width: 460px; max-height: 330px; padding: 5px 0; overflow: auto; }
.personal-news-entry { height: 29px; margin: 0 0 10px; position: relative; color: #211b0d; font-size: 14px; }
.personal-news-score { transform: translateX(-100%); }
.personal-news-requests { width: 520px; height: 220px; white-space: pre; color: #461e12; }
.personal-news-yellow { width: 106px; height: 24px; background: transparent no-repeat; color: #352b17; border: 0; font: 12px Calibri, Arial, sans-serif; }
.personal-news-request-row { width: 260px; height: 55px; transform: scale(.9); transform-origin: top left; }
.personal-news-request-row > img { width: 30px; height: 30px; }
.personal-record { width: 730px; height: 430px; pointer-events: none; }
.personal-record button, .personal-record [title], .resume-scroll, .achievement-scroll { pointer-events: auto; }
.resume-stats { position: absolute; left: 49px; right: 46px; top: 41px; display: flex; justify-content: space-between; }
.resume-stat { display: flex; align-items: center; gap: 8px; font: 16px 'Prison Inscription', Arial, sans-serif; color: #171511; }
.resume-stat-badge { position: relative; min-width: 77px; height: 32px; display: flex; justify-content: center; align-items: center; gap: 4px; color: #fff; font: 13px Calibri, Arial, sans-serif; }
.resume-paper { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.resume-stat-badge, .resume-medals-tile, .resume-collection, .achievement-frame { isolation: isolate; }
.resume-line-up, .resume-line-down { position: absolute; left: 20px; pointer-events: none; z-index: 1; }
.resume-line-up { top: 83px; }
.resume-line-down { top: 392px; }
.resume-scroll { position: absolute; left: 30px; top: 95px; width: 662px; height: 300px; overflow-y: auto; scrollbar-color: #55636b #ab9b80; scrollbar-width: thin; }
.resume-title { display: block; margin: 8px auto 10px; }
.resume-medals, .resume-collections { display: grid; grid-template-columns: repeat(4, 148px); gap: 10px; }
.resume-medals-tile { position: relative; width: 148px; height: 95px; }
.resume-medal { position: absolute; top: 0; height: 89px; display: grid; align-items: center; padding: 0; border: 0; background: transparent; }
.resume-collections { grid-template-columns: repeat(9, 62px); }
.resume-collection { position: relative; width: 62px; height: 62px; display: grid; place-items: center; }
.achievement-overall, .achievement-line-up, .achievement-line-down { position: absolute; }
.achievement-progress.achievement-overall { position: absolute; left: 252px; top: 39px; }
.achievement-line-up, .achievement-line-down { left: 157px; width: 544px; z-index: 1; }
.achievement-line-up { top: 69px; }
.achievement-line-down { top: 403px; }
.achievement-progress { display: inline-grid; place-items: center; position: relative; font: 12px Calibri, Arial, sans-serif; color: #101615; vertical-align: top; }
.achievement-progress > * { grid-area: 1 / 1; }
.achievement-categories { position: absolute; top: 41px; left: 17px; display: grid; gap: 0; }
.achievement-scroll { position: absolute; left: 156px; top: 75px; width: 557px; height: 335px; overflow-y: auto; scrollbar-color: #f8953c #948571; }
.achievement-group { width: 530px; position: relative; min-height: 73px; }
.achievement-levels { margin-left: 44px; width: 418px; }
.achievement-level { min-height: 73px; position: relative; color: #12100c; }
.achievement-frame { position: absolute; top: 0; left: 0; width: 52px; height: 54px; display: grid; place-items: center; }
.achievement-icon { max-width: 48px; max-height: 48px; object-fit: contain; }
.achievement-name { position: absolute; top: 3px; left: 60px; font: 16px 'Prison Inscription', Arial, sans-serif; text-transform: uppercase; }
.achievement-conditions { padding-top: 24px; padding-bottom: 10px; margin-left: 62px; max-width: 300px; }
.achievement-description { color: #15110c; text-align: center; font: 12px Calibri, Arial, sans-serif; min-height: 16px; }
.achievement-level-points { display: flex; align-items: center; position: absolute; left: 374px; top: 33px; white-space: nowrap; }
.achievement-mark { position: absolute; left: 365px; top: 15px; }
.achievement-star { position: absolute; top: 4px; left: 464px; display: inline-grid; place-items: center; color: #191714; }
.achievement-star > * { grid-area: 1 / 1; }
.achievement-star > span { position: relative; color: #181612; z-index: 1; }
.achievement-star-gray { filter: grayscale(1); opacity: .8; }
.achievement-toggle { position: absolute; left: 7px; top: 1px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.wardrobe-grid { position: absolute; left: 345px; top: 92px; width: 376px; height: 382px; display: grid; grid-template-columns: repeat(3, 110px); align-content: start; gap: 12px; overflow-y: auto; pointer-events: auto; scrollbar-width: thin; }
.wardrobe-sheet {position:relative;grid-column:1/-1;overflow-anchor:none}
.wardrobe-sheet-row {position:absolute;left:0;display:grid;grid-template-columns:repeat(3,110px);column-gap:12px}
.wardrobe-item { position: relative; width: 110px; height: 180px; background-repeat: no-repeat; background-size: 100% 100%; }
.wardrobe-thumbnail { position: absolute; top: 7px; left: 6px; width: 97px; height: 97px; overflow: hidden; }
#controls .tattoo-zones button { position:absolute; border:0; background:transparent; padding:0; pointer-events:none; cursor:pointer; }
.tattoo-zones button { opacity:0; transition:opacity .3s; }
.tattoo-zones:hover button, .tattoo-zones button:focus-visible, .tattoo-zones button.chosen { opacity:1; }
.tattoo-zones button > span { display:block; width:100%; height:100%; }
.wardrobe-thumbnail img { position: absolute; }
.wardrobe-card-hand { position: absolute; left: 46px; top: 51px; width: 43.75px; height: 73.75px; overflow: hidden; }
.wardrobe-card-hand img { transform-origin: top left; }
.wardrobe-wear { position: absolute; left: 14px; bottom: 4px; width: 82px; height: 20px; background: transparent no-repeat; background-size: 100% 100%; border: 0; font-size: 12px; color: #17210e; cursor: pointer; }
.wardrobe-filters { position: absolute; left: 345px; top: 60px; display: flex; gap: 8px; pointer-events: auto; }
.wardrobe-face-prompt { position:absolute; top:165px; left:0; width:100%; text-align:center; color:white; font:14px Calibri,Arial,sans-serif; animation:wardrobe-face-blink .667s linear infinite alternate; }
@keyframes wardrobe-face-blink { from { opacity:1; } to { opacity:0; } }
.wardrobe-filter-popup { position:absolute; inset:0; z-index:7; pointer-events:auto; }
.wardrobe-filter-list, .wardrobe-filter-sub { position:absolute; top:87px; height:383px; box-sizing:border-box; background:no-repeat left top; }
.wardrobe-filter-list { left:330px; width:199px; padding:5px 0 0 20px; background-image:url('./art/stage2/shopFilterBGBig-1.svg'); }
.wardrobe-filter-sub { left:505px; width:192px; padding:15px 20px 14px 10px; background-image:url('./art/stage2/shipSecondFilter-1.svg'); }
.wardrobe-filter-sub > div { height:350px; overflow-y:auto; scrollbar-width:thin; }
.wardrobe-filter-popup button { display:block; width:100%; max-width:168px; height:31px; padding:0 10px; border:0; color:#20170e; text-align:left; background:transparent; cursor:pointer; font:13px Calibri,Arial,sans-serif; }
.wardrobe-filter-popup button[aria-pressed=true], .wardrobe-filter-popup button:hover { background:url('./art/stage2/shopFilterCurrent-1.svg') no-repeat center / 100% 100%; }
.wardrobe-filters select { width: 84px; height: 25px; padding: 0 17px 0 5px; appearance: none; border: 0; color: #302414; cursor: pointer; background: transparent no-repeat center; background-size: 100% 100%; font: 12px Calibri, Arial, sans-serif; }
.wardrobe-filters option { color: #302414; background: #edcf92; }
.wardrobe-filters[hidden] { display: none; }
.wardrobe-set-header { width: 355px; align-items: center; color: white; font: 18px Calibri, Arial, sans-serif; }
.wardrobe-set-header span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wardrobe-set-header button { flex: 0 0 84px; height: 25px; border: 0; color: #302414; background: transparent no-repeat center / 100% 100%; cursor: pointer; }
.wardrobe-set-icon { position: absolute; top: 7px; right: 5px; border: 0; background: transparent no-repeat center / contain; }
button.wardrobe-set-icon { cursor: pointer; }
.wardrobe-info { max-width: 200px; opacity: 1; max-height: 400px; overflow-y: auto; pointer-events: auto; }
.wardrobe-set-icon:hover { filter: brightness(1.3); }
.wardrobe-price, .wardrobe-source, .wardrobe-rating { position: absolute; left: 8px; right: 5px; top: 105px; color: #3f2716; font: 12px Calibri, Arial, sans-serif; text-align: center; }
.wardrobe-price-with-rating { top: 125px; }
.wardrobe-price img, .wardrobe-rating img { max-width: 17px; max-height: 15px; vertical-align: middle; margin-left: 4px; }
.wardrobe-source { max-height: 46px; overflow: hidden; }
.prison-panel { width: 730px; height: 430px; pointer-events: auto; color: #3c2117; }
.prison-panel button { padding: 0; border: 0; background: transparent no-repeat; background-size: 100% 100%; color: inherit; cursor: pointer; }
#controls .prison-tab { font: 16px 'Prison Inscription', Arial, sans-serif; }
.prison-panel button:disabled { cursor: default; }

.master-view { font-family: 'Prison Calibri', Calibri, Arial, sans-serif; color: #461212; }
.master-view button { padding: 0; border: 0; cursor: pointer; background: transparent center / 100% 100% no-repeat; }
.master-panel { overflow: hidden; color: #461212; }
.master-list { overflow: hidden auto; scrollbar-width: none; }
.master-list::-webkit-scrollbar { display: none; }
.master-locked { filter: grayscale(1); }
.master-panel button { font: 12px 'Prison Calibri', Calibri, sans-serif; }
.master-help-plate { border: 2px solid rgba(255,255,255,.8); border-radius: 10px; background: rgba(255,255,255,.5); }
.master-tool { filter: drop-shadow(2px 5px 3px rgba(0,0,0,.5)); }
.master-tool-unowned { filter: brightness(.5) drop-shadow(0 0 2px #ff8800); }
.master-tool:hover { filter: drop-shadow(0 0 3px white); }
.master-stat { font-family: Rodchenko, 'Prison Calibri', sans-serif; }
.master-stat img { vertical-align: middle; }
.master-dialog-copy, .master-dialog-title { text-align: center; }
.master-attention { color: white; }
.master-question, .master-reward-sheet, .master-reward-sheet button { color: #461212; }
.master-panel .prison-execute { font-size: 14px; }
.master-rewards { display: flex; flex-wrap: wrap; width: max-content; max-width: 148px; justify-content: center; gap: 1px 6px; transform: translateX(-50%); font: 14px 'Prison Calibri', Calibri, sans-serif; }
.master-rewards span { display: inline-flex; align-items: center; gap: 2px; }
.master-gift-items { transform: translate(16px,-100%); pointer-events:none; z-index:1; }
.master-gift-items img { width: 48px; height: 48px; }
.master-drops { pointer-events: none; }
.master-drop { position: absolute; pointer-events: none; visibility: hidden; transform-origin: center bottom; }
.master-drop-text { position: absolute; pointer-events: none; width: max-content; font: 18px Rodchenko, sans-serif; -webkit-text-stroke: 2px black; paint-order: stroke fill; }
.master-rewards img { max-width: 22px; max-height: 20px; }

.prison-day-tab { padding-left: 20px !important; }
.prison-list { width: 688px; height: 346px; overflow-y: auto; scrollbar-color: #f79037 #99836c; }
.prison-row { position: relative; width: 665px; height: 116px; }
.prison-row.prison-moscow { height: 190px; }
.prison-row.prison-locked { filter: grayscale(1); }
.prison-row-title { width: 156px; text-align: center; font: 16px 'Prison Inscription', Arial, sans-serif; }
.prison-leader-title { font: 14px 'Prison Inscription', Arial, sans-serif; white-space: nowrap; }
.prison-plan { width: 630px; height: 266px; overflow: hidden; }
.prison-name, .prison-stat { font-weight: bold; }
.prison-name { font-size: 16px; }
.prison-panel .prison-mission { overflow: visible; }
.prison-panel .prison-mission img { object-fit: contain; pointer-events: none; }
.prison-panel .prison-mission-selected { z-index: 1; }
.prison-node-frame { pointer-events: none; }
.prison-atlas-sprite, .prison-node-slot { pointer-events: none; }
.prison-atlas-sprite { background-repeat: no-repeat; }
.prison-node-slot, .prison-mission-large { transform-origin: 0 0; }
.prison-mission-large { transform: scale(.7); }
.prison-panel .prison-mission-source { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.prison-progress-mask { overflow: hidden; }
.prison-panel .prison-mission-locked { cursor: default; }
.prison-panel .prison-mission-hidden { visibility: hidden; }
.prison-rewards-fly, .prison-found-bag { z-index: 2; pointer-events: none; color: #461e12; font: 14px Calibri, sans-serif; white-space: nowrap; }
.prison-found-bag img, .prison-collection-found span { transform-origin: 0 0; }
.prison-collection-found { animation: prison-found-fade .5s ease-out; }
@keyframes prison-found-fade { from { opacity: 0; } to { opacity: 1; } }
.prison-mudd-scene { z-index: 4; width: 580px; height: 430px; overflow: hidden; }
.prison-clothing-found { z-index: 5; pointer-events: auto; }
.prison-clothing-paper { filter: drop-shadow(0 0 16px #000c); }
.prison-clothing-card { width: 97px; height: 97px; }
.prison-clothing-found button {
  padding: 0; border: 0; background: transparent no-repeat; background-size: 100% 100%;
  color: #fff; font: 14px 'Prison Calibri', Calibri, Arial, sans-serif; cursor: pointer;
}
.prison-panel .prison-mudd-plate { text-align: left; font: 16px 'Prison Inscription', Arial, sans-serif; padding: 0; }
.prison-mudd-meter { display: block; width: 148px; height: 9px; pointer-events: none; background-repeat: no-repeat; }
.prison-mudd-fold { pointer-events: none; }
.prison-panel .prison-mudd-plate > span:first-child { color: black; font: 14px 'Prison Inscription', Arial, sans-serif; }
.prison-found-weapon-plate { transform-origin: 0 0; }
.prison-found-weapon-damage { transform: translateX(-50%); color: #660020; font: 12px 'Prison Calibri', Calibri, sans-serif; }
.prison-mudd-dialog { color: #461e12; font: 12px Calibri, Arial, sans-serif; z-index: 3; }
.prison-mudd-description { width: 260px; margin: 0; white-space: normal; }
.prison-mudd-dialog button { background-color: transparent; background-repeat: no-repeat; border: 0; color: inherit; cursor: pointer; white-space: pre-line; }
.prison-mudd-reward { width: 113px; text-align: center; }
.prison-panel .prison-execute { padding-bottom: 16px; color: #35200b; }
.prison-profit-footer { width: 645px; height: 47px; font: 13px Calibri, Arial, sans-serif; }
.prison-profit-footer > span { white-space: nowrap; }
.prison-business { width: 200px; height: 330px; color: #191710; font: 12px Calibri, Arial, sans-serif; }
.prison-business-title { width: 200px; text-align: center; font: 18px 'Prison Inscription', Arial, sans-serif; }
.prison-business-next { width: 136px; text-align: center; white-space: nowrap; }
.prison-business-action { padding-right: 44px !important; }
.prison-business-action img { max-width: 18px; max-height: 12px; }
.prison-business-max { width: 150px; color: #a30e0e; text-align: center; font: 18px 'Prison Inscription', Arial, sans-serif; }
.assembly-title { font: 15px 'Prison Inscription', Arial, sans-serif; color: #1a1510; }
.assembly-description, .assembly-label { color: #1a1510; font: 13px Calibri, Arial, sans-serif; white-space: pre; }
.assembly-label { z-index: 1; pointer-events: none; }
.assembly-status { z-index: 1; pointer-events: none; }
.assembly-label-hover { color: #fff; }
.assembly-piece { pointer-events: auto; }
.assembly-collect { padding-bottom: 15px !important; }
.assembly-collect img { max-width: 16px; max-height: 12px; }
.prison-business-art { left: 50% !important; transform: translateX(-40%); max-width: 114px; max-height: 96px; }
.escape-base-panel { width: 730px; height: 546px; pointer-events: auto; overflow: hidden; color: #191511; font: 13px Calibri, Arial, sans-serif; }
.escape-base button { padding: 0; background: transparent no-repeat center / 100% 100%; border: 0; color: #1c1610; cursor: pointer; }
.escape-base-panel button:disabled { cursor: default; }
.escape-base-panel img { pointer-events: none; }
.escape-base-panel span { pointer-events: none; }
.escape-base-panel span img { max-width: 16px; max-height: 16px; margin-left: 3px; vertical-align: middle; }
.escape-character-list { width: 579px; height: 479px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.escape-portrait-level { width: 66px; text-align: center; font-size: 12px; }
.escape-leader-photo { width: 65px; height: 65px; object-fit: cover; border-radius: 50%; }
.escape-leader-distance { width: 115px; text-align: center; color: white; }
.escape-leader-open { width: 88px; height: 98px; }
.escape-cache-grid { display:grid; gap:20px 25px; transform:translate(-50%,-50%); pointer-events:none; }
.escape-cache-grid > div { display:flex; align-items:center; gap:5px; font-size:13px; }
.escape-cache-grid img { max-width:29px; max-height:32px; }
.escape-character { position: relative; width: 570px; height: 119px; overflow: hidden; }
.escape-base-title, .escape-character-name, .escape-party-empty, .escape-character-locked, .escape-character-talents { font-family: 'Prison Inscription', Arial, sans-serif; }
.escape-base-title { color: #5a5040; font-size: 22px; }
.escape-character-name { width: 143px; text-align: center; }
.escape-character-talents { font-size: 12px; color: #71685a; }
.escape-character-locked { font-size: 17px; color: #a72d20; }
.escape-base-panel .escape-character-buy { display: flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; font-size: 12px; }
.escape-price { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.escape-base-panel .escape-price img { margin: 0; max-width: 14px; max-height: 15px; }
.escape-distance-label, .escape-party-empty { text-align: center; white-space: pre; }
.escape-distance-label { width: 74px; font-size: 11px; line-height: 11px; }
.escape-party-empty { width: 113px; color: #635746; font-size: 18px; }
.escape-resource-value { width: 45px; line-height: 18px; color: #fff; text-align: center; font-variant-numeric: tabular-nums; }
.escape-base-panel .escape-start { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.escape-base-panel .escape-start:disabled { filter: grayscale(1); }
.escape-resource-shop { position: absolute; inset: 0; background: linear-gradient(transparent 55px, #0005 55px); pointer-events: auto; }
.escape-resource-shop section { width: 583px; height: 354px; }
.escape-resource-shop span { pointer-events: none; }
.escape-resource-shop span img { max-width: 16px; max-height: 14px; vertical-align: middle; margin-left: 3px; }
.escape-shop-title { width: 100%; text-align: center; font: 21px 'Prison Inscription', Arial, sans-serif; }
.escape-shop-amount, .escape-shop-order { display: flex; align-items: center; justify-content: center; gap: 4px; }
.escape-shop-amount { width: 130px; font: 22px 'Prison Inscription', Arial, sans-serif; }
.escape-shop-amount img { width: 28px; }
#controls .escape-shop-order { gap: 3px; white-space: nowrap; font: 12px Calibri, Arial, sans-serif; }
.escape-shop-order img { width: 15px; }
.escape-route { height: 545px; background-color: #211e19; }
.escape-route .escape-fighter-info { width: 240px; height: 151px; pointer-events: none; }
.escape-fighter-info button { pointer-events: auto; }
.escape-enemy-info { width: 142px; pointer-events: none; }
.escape-fighter-name { width: 100%; text-align: center; color: white; text-shadow: 1px 1px #000, -1px -1px #000; font-size: 14px; }
.escape-meter { color: #070504; text-align: center; width: 98px; }
.escape-distance { width: 83px; text-align: right; color: white; font-size: 16px; }
.escape-route-clock { width: 72px; text-align: center; }
.escape-route .escape-route-target { background: transparent; }
.escape-route-target:disabled { pointer-events: none !important; }
.escape-route-highlight { filter: drop-shadow(0 0 5px white) drop-shadow(0 0 3px white); }
.escape-route-skill:disabled { filter: grayscale(1); opacity: 0.8; }
.escape-route .escape-route-skill { color: white; text-shadow: 1px 1px black; }
.escape-route .escape-route-cooldown span { width: 100%; font: 28px Calibri, Arial, sans-serif; text-align: center; }
.escape-auto-label { font-size: 12px; }
.escape-route-node { font: 21px 'Prison Inscription', Arial, sans-serif; color: white; }
.escape-damage, .escape-heal { font: 47.86px/1 Molot, Arial, sans-serif; color: #c00; transform-origin: center top; pointer-events: none; }
.escape-heal { color: #090; }
.escape-confirm-shadow { width: 730px; height: 630px; background: #0007; pointer-events: auto; }
.escape-confirm { width: 371px; height: 232px; color: #231505; }
.escape-confirm h2 { width: 200px; text-align: center; font: bold 22px Arial, sans-serif; margin: 0; color: white; text-shadow: 1px 1px #ae2518, -1px -1px #ae2518; }
.escape-confirm p { width: 200px; text-align: center; margin: 0; font: 12px Calibri, Arial, sans-serif; }
.escape-route-help { width: 500px; height: 420px; pointer-events: auto; color: #241a0f; }
.escape-route-help h2 { margin: 0; width: 100%; text-align: center; font-size: 24px; color: white; text-shadow: 0 0 4px #321100; }
.escape-route-help p { margin: 0; width: 420px; max-height: 315px; white-space: pre-line; overflow: auto; font-size: 14px; }
.escape-route-result { width: 730px; height: 545px; overflow: hidden; background: #0005; pointer-events: auto; }
.escape-result-distance { width: 180px; text-align: center; font: 36px 'Prison Inscription', Arial, sans-serif; color: #2e384c; }
.escape-result-record { width: 230px; text-align: center; }
.escape-cache-amount { font: 14px Calibri, Arial, sans-serif; }
.escape-route button:disabled:not(.escape-route-target) { filter: grayscale(1); }
.escape-route button img { vertical-align: middle; }
.escape-camp-name { width: 128px; text-align: center; font: 14px 'Prison Inscription', Arial, sans-serif; }
.escape-camp-upgraded { color: #725f43; font: 16px 'Prison Inscription', Arial, sans-serif; }
.escape-camp-price { font: 13px Calibri, Arial, sans-serif; }
.escape-mission-name, .escape-mission-description { margin: 0; text-align: center; width: 250px; white-space: pre-line; }
.escape-mission-name { width: 270px; font: 18px 'Prison Inscription', Arial, sans-serif; text-transform: uppercase; }
.escape-mission-description { font: 15px Calibri, Arial, sans-serif; }
.escape-mission-reward { width: 60px; text-align: right; font: 20px Calibri, Arial, sans-serif; }
.escape-fork { background: transparent; }
.escape-dealer { position: absolute; top: 55px; width: 730px; height: 545px; overflow: hidden; pointer-events: auto; background: #0005; }
.escape-dealer img { pointer-events: none; }
.escape-dealer .escape-dealer-price { padding-right: 22px; }
.escape-dealer-item { width: 97px; height: 97px; transform: scale(.8); transform-origin: top left; isolation: isolate; }
.escape-dealer-shade { width: 730px; height: 545px; background: #0007; pointer-events: auto; }
.escape-specializations { position: absolute; top: 55px; width: 730px; height: 545px; overflow: hidden; pointer-events: auto; background: #0005; font: 13px Calibri, Arial, sans-serif; }
.escape-specializations img, .escape-specializations canvas, .escape-specializations span { pointer-events: none; }
.escape-specializations .escape-spec-skill:disabled { cursor: default; filter: saturate(.25); }
.escape-specializations .escape-spec-skill[aria-pressed="true"] { filter: none; }
.escape-spec-name { width: 490px; color: white; text-align: center; font: 17px 'Prison Inscription', Arial, sans-serif; }
.escape-spec-description { width: 490px; color: white; text-align: center; }
.escape-spec-level { width: 60px; text-align: center; font-size: 22px; }
.escape-tier-open { width: 67px; text-align: center; }
.escape-specializations .escape-spec-change { text-align: left; padding-left: 6px; }
.wardrobe-exit { display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding-bottom: 22px; }
.wardrobe-exit p { position: absolute; left: 90px; top: 100px; width: 192px; text-align: center; }
.wardrobe-exit button:not(.retreat-close) { width: 71px; height: 17px; border: 0; padding: 0; color: #3c2117; background: transparent no-repeat; background-size: 100% 100%; cursor: pointer; }
.moscow-phone { display: block; }
.moscow-phone h2 { left: 115px; top: 51px; width: 235px; font-size: 22px; line-height: 24px; }
.moscow-phone p { left: 88px; top: 104px; width: 205px; margin: 0; color: #fff; font-size: 12px; line-height: 14px; text-shadow: 0 1px 2px #7b2d00; }
.moscow-phone .moscow-phone-action { left: 132px; top: 181px; width: 107px; height: 35px; color: #4c230e; font: 10px Calibri, Arial, sans-serif; white-space: nowrap; background-size: 100% 100%; }
.moscow-phone .retreat-close { left: 350px; top: 45px; }
.talents-info { position: absolute; top: 45px; left: 280px; line-height: 20px; }
.talents-progress { position: absolute; left: 29px; top: 47px; height: 29px; width: 200px; background-repeat: no-repeat; text-align: center; font-size: 12px; line-height: 26px; }
.talents-progress span { position: relative; }
.talents-next-point { position: absolute; left: 229px; top: 51px; }
.talents-meter-fill { position: absolute; inset: 0 auto 0 0; background-repeat: no-repeat; }
.talents-shelf { position: absolute; top: 100px; left: 85px; }
.talents-prestiges { position: absolute; top: 95px; left: 24px; width: 65px; height: 197px; }
.talents-prestige-icon { position: absolute; left: 0; display: block; width: 65px; height: 67px; object-fit: contain; }
.talents-scroll { position: absolute; top: 102px; left: 95px; width: 579px; height: 306px; overflow: auto; }
.talents-tree { position: relative; min-height: 3030px; }
.talents-tree-back { position: absolute; left: 0; top: 10px; }
.talents-node { width: 80px; height: 65px; text-align: left; }
.talents-node img { position: absolute; }
.talents-node-icon { left: 3px; top: 3.5px; }
.talents-node.talents-super .talents-node-icon { left: 21px; top: 21px; }
.talents-node-frame { left: 0; top: 0; }
.talents-node.locked img { filter: grayscale(1); }
.talents-rank { position: absolute; right: 13px; bottom: 9px; border-radius: 5px; background: #000; color: #74ff4b; min-width: 17px; height: 12px; font-size: 9px; text-align: center; }
.talents-node.talents-super .talents-rank { right: -35px; bottom: -22px; }
.talents-node.maxed .talents-rank { color: #fff961; }
.talents-tooltip { display: block; position: absolute; left: 76px; top: -3px; z-index: 20; width: 220px; padding: 7px 9px; border: 1px solid #b7b7b7; border-radius: 3px; background: #333; color: #fff; font: 12px/15px Arial, sans-serif; white-space: pre-line; text-align: left; pointer-events: none; box-shadow: 0 2px 5px #0009; }
.talents-tooltip[hidden] { display: none; }
.battle-spell-tooltip { position: absolute; z-index: 80; width: 205px; min-height: 58px; padding: 7px 9px; border: 1px solid #b7b7b7; border-radius: 3px; background: #333; color: #fff; font: 12px/15px Arial, sans-serif; white-space: pre-line; text-align: left; pointer-events: none; box-shadow: 0 2px 5px #0009; }
.battle-spell-tooltip { top: 436px; transform: translateY(-100%); display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 4px 7px; }
.battle-spell-tooltip img { object-fit: contain; }
.battle-spell-tooltip strong { color: #ffeab6; }
.battle-spell-tooltip span { grid-column: 1 / -1; }
.talents-reset-overlay { position: absolute; inset: 0; background: #0006; pointer-events: auto; }
.talents-reset-price { position: absolute; left: 131px; top: 111px; width: 207px; text-align: center; color: #7a1602; }
.talents-reset-price div { display: inline-block; margin-top: 8px; }
.talents-reset-price img { vertical-align: middle; }
.battle-route-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.battle-route-panel { position: absolute; left: 50%; top: 55px; transform: translateX(-50%); background: no-repeat; color: #24170c; }
.battle-route-close, .invite-send, .currency-tab, .currency-pay, .vip-order { position: absolute; border: 0; padding: 0; background: transparent no-repeat center; cursor: pointer; }
.battle-route-close { top: 7px; right: 7px; width: 23px; height: 23px; z-index: 2; }
.battle-invite .battle-route-panel { top: 55px; }
.battle-invite { background: transparent; }
.invite-title { position: absolute; top: 30px; left: 0; width: 100%; text-align: center; margin: 0; font-size: 14px; }
.invite-explanation { position: absolute; top: 55px; left: calc(50% - 100px); width: 200px; text-align: center; margin: 0; font-size: 12px; }
.invite-all { position: absolute; top: 101px; left: 60px; }
.invite-list { position: absolute; left: 60px; top: 123px; width: 225px; height: 227px; overflow: auto; }
.invite-check { display: flex; align-items: center; gap: 8px; font-size: 12px; height: 22px; cursor: pointer; }
.invite-check input { position: absolute; z-index: 1; width: 18px; height: 16px; margin: 0; opacity: 0; }
.invite-check-art { position: relative; width: 18px; height: 16px; background-repeat: no-repeat; pointer-events: none; }
.invite-tick { display: none; position: absolute; top: -5px; left: 0; }
.invite-check input:checked + .invite-check-art img { display: block; }
.invite-check input:focus-visible + .invite-check-art { outline: 2px solid #a33a12; }
.invite-send { left: 105px; top: 355px; width: 129px; height: 53px; padding-top: 18px; color: #fc9460; }
.battle-currencies .battle-route-panel { top: 55px; }
.currency-offers { position:absolute; inset:0; background:no-repeat -34.95px 5px; }
.currency-tabs { position:absolute; top:48px; left:-64px; z-index:1; display:flex; flex-direction:column; }
.currency-tab { position:relative; width:70px; height:53px; background-position:12px 0; transition:background-position .2s; overflow:hidden; }
.currency-tab:hover, .currency-tab[aria-pressed='true'] { background-position:7px 0; }
.currency-tab img { position:absolute; left:35px; top:26px; transform:translate(-50%,-50%); }
.currency-title { position:absolute; left:190px; top:0; width:200px; text-align:center; color:#32496b; margin:0; font:30px 'Prison Inscription',Arial,sans-serif; }
.currency-grid { position:absolute; inset:0; }
.currency-slot { position:absolute; width:117px; height:168px; text-align:center; }
.currency-product { position:absolute; top:76px; left:50%; transform:translate(-50%,-50%); }
.currency-count { position:absolute; top:102px; width:100%; display:flex; justify-content:center; align-items:center; gap:2px; color:#ffd583; font-size:18px; text-shadow:-1px -1px 1px black,1px -1px 1px black,-1px 1px 1px black,1px 1px 1px black; }
.currency-count img, .vip-order img, .vip-damage img { vertical-align: middle; }
.currency-pay { top:126px; left:5px; width:107px; height:35px; color:#513216; }
.top-room.merchant-room .currency-pay { font-size:14px; }
.battle-vip { background: transparent; }
.vip-grid { position: absolute; left: 31px; top: 90px; display: grid; grid-template-columns: repeat(4, 159px); gap: 10px; }
.vip-card { position: relative; width: 162px; height: 288px; background: no-repeat 3px 15px; text-align: center; color: #fff4d6; }
.vip-duration, .vip-damage, .vip-daily { position: absolute; left: 0; width: 100%; top: 64px; font-size: 12px; }
.vip-daily { top: 85px; color: #ad9d8a; }
.vip-damage { top: 107px; }
.vip-rewards { position: absolute; top: 130px; left: 11px; width: 140px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 34px; align-items: center; font-size: 12px; }
.vip-rewards img { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; margin-right: 2px; }
.vip-order { left: 26px; top: 242px; width: 107px; height: 35px; color: #382016; }
.vip-order.vip-prolong { left: 17px; top: 240px; width: 131px; height: 33px; }
.vip-countdown { position: absolute; top: 228px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 2px; color: #fff; font: 12px/1 Calibri, sans-serif; pointer-events: none; }
.vip-talents-label { position: absolute; left: 50%; top: 389px; transform: translateX(-50%); }
.vip-confirm-yes { left: 158px; }
.vip-confirm-no { left: 240px; }
.boss-row > img:not(.boss-portrait) { object-fit: contain; }
.escape-route-transition {
  pointer-events: none;
  z-index: 12;
}
@font-face { font-family:Rodchenko; src:url('/original-prison-assets/assets/fonts/RodchenkoCTT.woff'); }
.background-menu { color:#c74818; font:10px Calibri,Arial,sans-serif; }
.background-menu button { color:#391f09; font:12px Calibri,Arial,sans-serif; }
.prison-yard.background-menu:has(.back-dialog) { overflow:visible; }
.back-dialog { box-shadow:0 0 0 630px #0006; position:absolute; inset:0; background:#0006; text-align:center; color:#593014; font:14px Calibri,sans-serif; }
.back-title { color:#fff; text-shadow:1px 1px #a00,-1px -1px #a00; font:bold 22px Calibri,sans-serif; }
.back-copy { font:12px Calibri,sans-serif; }
.back-dialog input { color-scheme:light; width:16px; height:16px; vertical-align:middle; }
.back-dialog label { position:absolute; left:319px; top:233px; font:12px Calibri,sans-serif; }
.dice-room { height:549px; }
.dice-label { text-shadow:0 0 2px black,1px 1px 1px black,-1px -1px 1px black; pointer-events:none; transform:translate(-50%,-50%); white-space:nowrap; font-family:Rodchenko,Calibri,sans-serif; color:white; }
.dice-caption,.dice-body,.dice-help { font-family:Calibri,Arial,sans-serif; }
.dice-caption { color:#382810; }
.dice-body,.dice-help { white-space:pre-line; text-align:center; width:215px; }
.dice-help { width:350px; color:#382810; }
.dice-overlay { inset:0; background:#0007; }
.raven-timer,.raven-count,.raven-caption { font-family:Calibri,Arial,sans-serif; pointer-events:none; }
.raven-timer { font-size:14px; color:#310a00; white-space:nowrap; }
.raven-cell { width:45px; height:44px; display:flex; align-items:center; justify-content:center; gap:2px; font:12px Calibri,Arial,sans-serif; color:black; }
.prison-yard .raven-cell > img { position:static; width:16px; height:16px; object-fit:contain; }
.raven-caption { width:107px; line-height:35px; text-align:center; color:#312416; font-size:14px; }
.new-level-dialog { position:fixed; margin:0; width:730px; height:630px; max-width:none; max-height:none; border:0; padding:0; background:#0006; color:#15184f; transform-origin:0 0; overflow:hidden; font:12px Calibri,Arial,sans-serif; }
.new-level-dialog::backdrop { background:transparent; }
.new-level-dialog img { pointer-events:none; }
.new-level-dialog button { width:130px; height:20px; padding:0; border:0; background:transparent; color:#301b06; cursor:pointer; }
.new-level-dialog button span { width:100%; line-height:20px; }
.level-calendar { width:59px; text-align:center; font-size:15px; }
.level-share { width:125px; height:20px; white-space:nowrap; cursor:pointer; padding-left:4px; }
.level-share input { position:absolute; right:0; opacity:0; }
.yard-attention img, .yard-attention button, .yard-attention h2, .yard-attention p { position:absolute; }
.yard-attention h2,.yard-attention p { margin:0; width:200px; text-align:center; color:white; }
.yard-attention h2 { left:296px; top:194px; font:bold 22px Calibri,Arial,sans-serif; text-shadow:-1px -1px #821900,1px 1px #821900; }
.yard-attention p { left:298px; top:254px; font:12px Calibri,Arial,sans-serif; }
.yard-attention button { padding:0; border:0; background:transparent; cursor:pointer; }
.yard-attention button span { position:relative; color:#321706; font:bold 11px Calibri,Arial,sans-serif; }
.prison-yard {
  position: absolute;
  top: 55px;
  width: 730px;
  height: 430px;
  overflow: clip;
  outline: none;
  pointer-events: auto;
}
.prison-yard img, .prison-yard button {
  position: absolute;
  display: block;
}
.prison-yard img { pointer-events: none; }
.prison-yard button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.prison-yard button[aria-disabled="true"] { cursor: default; }
.prison-yard-cards {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .16);
}
.prison-yard-cards span {
  position: relative;
  color: #461e12;
  font-size: 13px;
}
.yard-card-table, .yard-card-win { position: absolute; inset: 0; overflow: clip; font-family: Calibri, Arial, sans-serif; }
.poker-hand { isolation: isolate; }
.yard-card-table [hidden] { display: none; }
.yard-card-win, .yard-card-help-panel { z-index: 2; }
.poker-case-window { background: rgba(0,0,0,.6); }
.poker-case-stage { width: 953px; height: 559px; transform: scale(.7660021); transform-origin: top left; }
.poker-case-stage canvas { pointer-events: none; }
.poker-case-price, .poker-case-reward-icon, .poker-case-reward-count, .poker-case-tattoo-paper { transform: translate(-50%,-50%); }
.poker-case-count-paper { transform: translate(-50%,-50%) scale(1.21); }
.poker-case-tattoo-paper { scale: 1.05; }
.poker-case-tattoo { width: 97px; height: 97px; overflow: hidden; }
.prison-yard .poker-case-loot button { background: url("/modern-yard/poker-case/confirm.png") center / 100% 100% no-repeat; }
.poker-case-loot .yard-card-caption { color: #000; font-size: 26px; }
.poker-level-item { transform: scale(.66); transform-origin: top left; }
.yard-card-table button:disabled { filter: grayscale(1); cursor: default; }
.yard-card-table .wheel-cup:disabled { filter: none; }
.poker-combo-prize { transform: translateX(-50%); }
.poker-combo-tip { width: 141px; height: 34px; }
.poker-combo-tip .boss-reward-tip { display: none; top: 50%; right: calc(100% + 5px); transform: translateY(-50%); white-space: nowrap; }
.poker-combo-tip:hover .boss-reward-tip, .poker-combo-tip:focus-visible .boss-reward-tip { display: block; }
.yard-card-table:has(> .yard-card-win) .poker-combo-tip { pointer-events: none; }
.poker-exp-meter, .poker-exp-meter img { pointer-events: none; }
.prison-yard .yard-card-table img.poker-change-icon { left: calc(100% + 5px) !important; top: -8px !important; }
.yard-card-caption, .yard-card-prize, .yard-card-balances { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.yard-card-caption { width: 100%; height: 100%; justify-content: center; color: #461e12; font-size: 14px; }
.poker-round-rewards { display:grid; gap:12px; justify-items:center; align-items:center; transform:translate(-50%,-50%); }
.poker-round-rewards > .yard-card-prize { position:static !important; font-size:16px; }
.blind-grade { color:black; }
.blind-options button { background-color:#483b2d; color:white; }
.yard-card-prize { font-size: 13px; color: black; }
.yard-card-balances { font-size: 20px; color: white; }
.prison-yard img.yard-card-currency { position: static; max-width: 25px; max-height: 24px; object-fit: contain; }
.yard-card-help { width: 270px; height: 360px; padding: 10px 20px; overflow-y: auto; background: #ffffff80; border: 2px solid #ffffffcc; border-radius: 10px; pointer-events: auto !important; }
.top-room button {display:flex;align-items:center;justify-content:center;gap:2px;padding:0;border:0;background-color:transparent;background-repeat:no-repeat;background-size:100% 100%;color:#461212;font:12px Calibri,Arial,sans-serif;cursor:pointer}
.top-room button:disabled {filter:grayscale(1);cursor:default}
.top-room .tea-count {font:18px Calibri,sans-serif;color:#6d5242;white-space:nowrap}
.top-room.merchant-room {background:transparent}
.top-room.merchant-room button {font-size:11px;line-height:1;white-space:nowrap}
#controls .weekly-top {background:linear-gradient(to bottom, transparent 55px, rgba(0,0,0,.2) 55px);color:#100c07}
.weekly-top button {color:#100c07}
.camera-event-window {position:absolute;left:0;top:55px;width:730px;height:430px;overflow:hidden;pointer-events:auto;color:white;outline:none}
.visitor-window {background:linear-gradient(to bottom,transparent 55px,rgba(0,0,0,.4) 55px)}

.currency-menu {position:absolute;top:11px;width:102px;height:21px;overflow:hidden;pointer-events:auto;z-index:5}
.currency-menu:has([aria-expanded=true]) {overflow:visible}
.currency-menu button {position:relative;display:block;width:102px;height:26px;background:transparent left top/102px 26px no-repeat;border:0;padding:0;color:#ffec9f;cursor:pointer;text-align:left}
.currency-menu button img {position:absolute;left:4px;top:4px;width:16px;height:16px;object-fit:contain}
.currency-menu button span {position:absolute;left:24px;top:2px;font:14px Arial,sans-serif}
.currency-list {position:absolute;top:23px;left:0}
.currency-list button + button {margin-top:-3px}
/* NewStewWindow: Window(..., modal, dim alpha 0). */
.stew-window::backdrop { background:transparent; }
.stew-window img, .achieve-popup img { pointer-events:none; }

#viewport.compact #display-frame { width:min(657px, 90cqw, calc(90cqh * 730 / 630)); }
#viewport:fullscreen:not(.compact) #display-frame,
#viewport.telegram-fullscreen:not(.compact) #display-frame { width:min(100cqw, calc(100cqh * 730 / 630)); }
#account-management { position: absolute; top: max(5px,env(safe-area-inset-top)); left: max(5px,env(safe-area-inset-left)); z-index: 10; cursor: pointer; }
#display-size, #mobile-size { color:#fff2ab; background:#302018; border:1px solid #8b6a42; border-radius:4px; cursor:pointer; padding:5px 9px; }
#display-size { position:absolute; z-index:2; bottom:max(6px,env(safe-area-inset-bottom)); left:max(6px,env(safe-area-inset-left)); }
.mobile-host #viewport, .mobile-stage #display-size, .mobile-stage #fullscreen { display:none; }
#mobile-shell { position:fixed; top:0; left:0; width:100dvw; height:var(--tg-viewport-height,100dvh); overflow:hidden; background:#15100c; display:grid; place-items:center; }
#mobile-game { display:block; border:0; width:88%; height:88%; }
#mobile-shell.expanded #mobile-game { width:100%; height:100%; }
#mobile-size { position:absolute; right:max(5px,env(safe-area-inset-right)); bottom:max(5px,env(safe-area-inset-bottom)); z-index:2; min-height:30px; }
@media (orientation:portrait) {
  #mobile-shell.expanded { width:var(--tg-viewport-height,100dvh); height:100dvw; left:100dvw; transform-origin:top left; transform:rotate(90deg); }
}
.mobile-stage #viewport { height:100dvh; }
.mobile-stage #display-frame { width:min(100cqw, calc(100cqh * 730 / 630)); aspect-ratio:730/630; }
.mobile-stage #canvas { inset:0 !important; width:100% !important; height:100% !important; }
