/* Pogo-era look: a fixed-size stage (like the old Flash window) scaled to fit. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #20262b; overflow: hidden; }
body { font: bold 11px Arial, Helvetica, sans-serif; color: #111; -webkit-font-smoothing: antialiased; }
#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage { position: relative; transform-origin: center center; flex: none; background: #000; overflow: hidden; }
.hidden { display: none !important; }
.spr { background-repeat: no-repeat; flex: none; }
.abs { position: absolute; }
button { font: inherit; cursor: pointer; }
input { font: 12px Arial, sans-serif; }

.conn { position: fixed; top: 0; left: 0; right: 0; background: #b00; color: #fff; text-align: center; padding: 4px; z-index: 99; }

/* ---------- loader ---------- */
.loader { position: absolute; inset: 0; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.loader .bar { width: 260px; height: 12px; border: 1px solid #888; }
.loader .bar div { height: 100%; width: 0; background: linear-gradient(#ffd23c, #e09b00); }

/* ---------- top & bottom bars (the Pogo game frame) ---------- */
.topbar { position: absolute; left: 0; top: 0; height: 20px; background: linear-gradient(#2b2b2b, #050505); color: #fff; display: flex; align-items: center; padding: 0 8px; font-size: 12px; }
.topbar .mid { flex: 1; text-align: center; color: #7fd0ff; font-style: italic; display: flex; align-items: center; justify-content: center; gap: 14px; }
.topbar .jackpottag { flex: none; margin: -1px 0; }
.botbar { position: absolute; left: 0; height: 20px; background: linear-gradient(#2a2a2a, #090909); color: #ddd; display: flex; align-items: center; gap: 0; font-size: 10px; }
.botbar button { background: none; border: none; color: #e6e6e6; font-weight: bold; padding: 0 12px; height: 20px; letter-spacing: .02em; border-right: 1px solid #333; }
.botbar button:hover:not(:disabled) { color: #fff; background: #333; }
.botbar button:disabled { color: #666; cursor: default; }
.botbar label { display: flex; align-items: center; gap: 4px; padding: 0 12px; color: #e6e6e6; cursor: pointer; border-right: 1px solid #333; height: 20px; }

/* ---------- chat room ---------- */
.room { position: absolute; inset: 0; background: #fff; font-weight: normal; }
.room a, .linkish { color: #00c; text-decoration: underline; cursor: pointer; font-size: 12px; }
.room .side { position: absolute; left: 6px; top: 26px; width: 136px; }
.room .side .links { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; }
.legend { border: 1px solid #b8c6d6; padding: 4px 6px; }
.legend .ttl { color: #2a72c4; font-weight: bold; font-size: 13px; margin-bottom: 2px; }
.legend .row { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 15px; }
.legend .row .spr { margin-right: 1px; }
.room .you { margin-top: 10px; font-size: 11px; color: #333; }
.room .you b { color: #000; }
.room .you .mmr { white-space: nowrap; display: inline-block; }
.room .you .tokens { margin-top: 3px; }
.room .you .jackpot { margin-top: 2px; color: #0b6f9c; font-weight: bold; }
.room .head { position: absolute; left: 150px; top: 26px; right: 6px; height: 20px; display: flex; align-items: center; gap: 6px; }
.room .head .sort { margin-left: auto; font-weight: bold; font-size: 12px; display: flex; gap: 4px; align-items: center; }
.sortbtn { background: linear-gradient(#e9f7de, #a9d68e); border: 1px solid #6f9c55; padding: 1px 8px; font-weight: bold; font-size: 12px; }
.sortbtn.on { background: linear-gradient(#bfe8a5, #7cc65a); }
.tables { position: absolute; left: 150px; top: 50px; right: 6px; height: 330px; background: #20a32a; border: 1px solid #0b5e12; overflow-y: scroll; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 165px; }
.tables::-webkit-scrollbar { width: 14px; background: #c9d6f2; }
.tables::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #6f8fd8, #a8bff0); border: 1px solid #3c5aa8; }
.tcell { position: relative; border-right: 1px solid #0d6a15; border-bottom: 1px solid #0d6a15; }
.tcell .ttl { position: absolute; left: 3px; top: 2px; right: 3px; font-weight: bold; font-size: 12px; display: flex; align-items: center; gap: 3px; border-bottom: 1px dotted #0b4d10; padding-bottom: 1px; }
.tcell .ttl .icons { display: flex; gap: 2px; margin-left: 6px; }
.tcell .sub { position: absolute; left: 0; right: 0; top: 19px; text-align: center; font-weight: bold; font-size: 12px; }
.tcell .nm { position: absolute; font-size: 10px; font-weight: bold; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; white-space: nowrap; transform: translateX(-50%); }
.tcell .clk { cursor: pointer; }
.tcell .clk:hover { filter: brightness(1.15); }
.room .people { position: absolute; left: 150px; top: 386px; width: 270px; bottom: 6px; border: 1px solid #9fb2c9; background: #fff; }
.room .people .hdr, .chatpanel .hdr { height: 18px; background: linear-gradient(#f4f7fb, #d7e0ea); border-bottom: 1px solid #9fb2c9; display: flex; font-size: 11px; color: #456; }
.room .people .hdr div, .chatpanel .hdr div { flex: 1; text-align: center; line-height: 18px; border-right: 1px solid #b7c5d6; font-weight: normal; }
.plist { position: absolute; top: 19px; bottom: 0; left: 0; right: 0; overflow-y: auto; font-weight: normal; }
.plist .p { display: flex; align-items: center; gap: 4px; padding: 2px 4px; font-size: 12px; color: #1c4f8a; border-bottom: 1px solid #edf1f5; }
.plist .p .tbl { margin-left: auto; color: #556; font-size: 11px; }
.room .chat { position: absolute; left: 426px; right: 6px; top: 386px; bottom: 6px; border: 1px solid #9fb2c9; display: flex; flex-direction: column; background: #fff; }
.chatlog { flex: 1; overflow-y: auto; padding: 3px 4px; font-weight: normal; font-size: 12px; }
.chatlog .m { margin: 2px 0; word-wrap: break-word; }
.chatlog .m b { color: #1c4f8a; }
.chatlog .m.info { color: #3a9a3a; display: flex; gap: 4px; align-items: flex-start; }
.chatlog .m.info.welcome { color: #9b2fa0; }
.chatlog .m.info i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #3d84d6; color: #fff; font: italic bold 11px Georgia, serif; text-align: center; line-height: 14px; }
.chatform { display: flex; gap: 4px; padding: 3px; border-top: 1px solid #c4d1df; }
.chatform input { flex: 1; min-width: 0; border: 1px solid #8ea3bb; padding: 2px 3px; }
.sendbtn { background: linear-gradient(#5fa9e8, #2b6fc0); color: #fff; border: 1px solid #1f4f8c; border-radius: 8px; padding: 1px 10px; font-weight: bold; }

/* ---------- game window ---------- */
.gwin { position: absolute; inset: 0; background: #000; }
.boardbox { position: absolute; left: 0; top: 20px; width: 584px; height: 408px; overflow: hidden; }
.boardbox .layer { position: absolute; inset: 0; pointer-events: none; }
.boardbox .layer > :not(.layer) { pointer-events: auto; }
.boardbox .layer.tokens * { pointer-events: none; }
.tile { position: absolute; cursor: pointer; }
.tile.hl { filter: brightness(1.25) drop-shadow(0 0 3px #fff); }
.tile.mortgaged { filter: grayscale(.8) brightness(.8); }
.token { position: absolute; pointer-events: none; transition: left .14s linear, top .14s linear; }
.token.hop { animation: hop .16s ease-out; }
.token.walker { transition: none; }
.token.turnbob { animation: turnbob 1.15s ease-in-out infinite; }
@keyframes turnbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hop { 50% { transform: translateY(-9px); } }
.nameplate { position: absolute; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: bold; border-radius: 6px; text-shadow: 0 1px 1px #000; white-space: nowrap; overflow: hidden; }
.nameplate.turn { background: linear-gradient(#ffe066, #e7b10b); color: #1b1300; text-shadow: none; box-shadow: 0 0 0 1px #9b7200 inset; }
.money { position: absolute; font-size: 10px; color: #4b4b4b; line-height: 12px; white-space: nowrap; }
.money b { display: block; font-size: 13px; color: #262626; line-height: 14px; }
.money.right { text-align: right; transform: translateX(-100%); }
.slots { position: absolute; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.slots .col { display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.mini { width: 13px; height: 9px; border: 1px solid #333; border-radius: 1px; background: #f4f4ec; margin-bottom: -2px; position: relative; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.mini i { position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.mini.m { opacity: .45; }
.jailcard { position: absolute; }
.bigtoken { position: absolute; pointer-events: none; }
.bigtoken.out { filter: grayscale(1) brightness(.6); }
.bigtoken.reflect { transform: translateY(-3px) scaleY(-.35); filter: brightness(0) blur(1.4px); opacity: .28; }
.seatbtn { position: absolute; }
.panelnote { position: absolute; font-size: 10px; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; text-align: center; }

.statusbar { position: absolute; color: #e8f0ff; font-size: 11px; text-align: center; line-height: 12px; white-space: nowrap; overflow: hidden; }
.slot3 { position: absolute; color: #d8e6ff; font-size: 9px; text-align: center; line-height: 12px; }
.counter { position: absolute; color: #1d2b1d; font-size: 13px; font-weight: bold; }
.ctl { position: absolute; cursor: pointer; }
.ctl.disabled { cursor: default; }
.timer { position: absolute; color: #fff; font-size: 13px; text-shadow: 0 1px 1px #000; }
.dicebox { position: absolute; pointer-events: none; }

.side { position: absolute; left: 584px; top: 20px; width: 192px; height: 408px; }
.chatpanel { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; border-left: 1px solid #555; }
.chatpanel .icons { height: 22px; background: linear-gradient(#e6eef8, #c6d5e6); display: flex; gap: 3px; padding: 3px; }
.chatpanel .icons button { width: 18px; height: 16px; border: 1px solid #2f5f9f; border-radius: 3px; background: linear-gradient(#73a7e6, #2e69b6); color: #fff; font-size: 10px; padding: 0; line-height: 14px; }
.chatpanel .who { height: 120px; position: relative; border-bottom: 1px solid #9fb2c9; }
.chatpanel .divider { height: 12px; background: linear-gradient(#d9e3ef, #b7c7da); border-bottom: 1px solid #8ea3bb; }
.chatpanel .tabs { display: flex; height: 20px; border-bottom: 1px solid #8ea3bb; background: #dfe8f2; }
.chatpanel .tabs button { flex: 1; border: none; border-right: 1px solid #a9bbd0; background: none; font-size: 11px; color: #345; }
.chatpanel .tabs button.on { background: #fff; color: #000; }
.chatpanel .tabs button .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e33; margin-left: 3px; vertical-align: middle; }

/* ---------- dialogs ---------- */
.dlgwrap { position: absolute; inset: 0; z-index: 40; }
.dlgwrap.dim { background: rgba(0,0,0,.25); }
.dlg { position: absolute; border-style: solid; border-width: 22px; color: #10233a; font-size: 12px; }
.dlg .title { font-size: 15px; font-weight: bold; color: #0d2442; margin: -6px 0 6px; text-align: center; }
.dlg .body { font-weight: normal; }
.dlg .btns { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
/* Square Pogo buttons, 9-sliced from button.jpg (frames set as --btn0..3 at load). */
.pbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; height: 27px; padding: 0 4px; border-style: solid; border-width: 9px 10px 10px; border-color: transparent; border-image: var(--btn1) 9 10 10 10 fill / 9px 10px 10px stretch; background: none; color: #0b2340; font: bold 12px "Trebuchet MS", Arial, sans-serif; text-shadow: 0 1px 0 rgba(255,255,255,.35); white-space: nowrap; line-height: 1; }
.pbtn:hover:not(:disabled) { border-image-source: var(--btn2); }
.pbtn:active:not(:disabled) { border-image-source: var(--btn3); }
.pbtn.red { color: #7a1010; }
.pbtn:disabled { border-image-source: var(--btn0); color: #4e6170; text-shadow: none; cursor: default; }
.pbtn.sq { width: 100%; min-width: 0; }
.pbtn.small { height: 21px; border-width: 7px 8px 8px; border-image-width: 7px 8px 8px; font-size: 11px; }
.pbtn.wide { width: 120px; }
.overlay { position: absolute; left: 0; top: 0; width: 584px; height: 408px; z-index: 30; }
.overlay .ttlbar { position: absolute; left: 112px; top: 8px; width: 290px; height: 24px; color: #fff; font-size: 15px; text-align: center; line-height: 24px; }
.kv { display: flex; justify-content: space-between; gap: 10px; }
.det { position: relative; width: 138px; height: 207px; flex: none; }
.det .v { position: absolute; right: 7px; font-size: 10px; text-align: right; }
.det .lbl { position: absolute; left: 6px; right: 6px; font-size: 10px; }
.photo { border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cardfly { position: absolute; z-index: 60; width: 240px; height: 155px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.5); background: #fff; pointer-events: none; backface-visibility: hidden; }
.fx { position: absolute; pointer-events: none; z-index: 50; }
.notice { z-index: 80; pointer-events: auto; overflow: visible; }
.notice .noticetitle { text-align: center; font: bold 16px "Trebuchet MS", Arial, sans-serif; color: #0d2442; letter-spacing: -0.3px; white-space: nowrap; }
.notice .noticebtns { margin: 0; }
.notice .taxpicbox { display: flex; justify-content: center; }
.notice .tside { padding: 4px 8px 6px; border: 1px solid rgba(255,255,255,.45); border-radius: 3px; background: rgba(20,50,90,.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18); font: bold 13px "Trebuchet MS", Arial, sans-serif; color: #0d2442; }
.notice .tgave { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.notice .tgave .mover { margin: -6px -4px -4px -6px; }
.notice .trow { display: flex; align-items: center; gap: 6px; padding-left: 18px; height: 17px; }
.notice .trow.none { font-weight: normal; color: #3b5070; }
.notice .cashicon { width: 13px; height: 13px; border-radius: 2px; background: linear-gradient(#ffe56b, #c99a10); border: 1px solid #8a6a00;
  color: #6b4f00; font: bold 9px/11px Arial, sans-serif; text-align: center; }
.notice .taccepted { text-align: center; font: bold 15px "Trebuchet MS", Arial, sans-serif; color: #1ee01e; text-shadow: 0 0 1px #064d06, 0 1px 0 #064d06; }
.flymini { box-shadow: 0 2px 4px rgba(0,0,0,.45); }
.mhole { background: #0b0d10; }
/* Property screens (build / sell & mortgage / unmortgage), on properties-dialog.jpg. */
.props { font-family: "Trebuchet MS", Arial, sans-serif; }
.props .propttl { position: absolute; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; font-weight: bold; letter-spacing: -0.5px; }
.props .proplist { position: absolute; overflow-y: auto; overflow-x: hidden; }
.props .prow { position: absolute; border: 1px solid #5a3a08; box-shadow: 0 1px 0 rgba(0,0,0,.25); overflow: hidden; }
.props .prowname { position: absolute; display: flex; align-items: center; font-size: 15px; font-weight: bold; color: rgba(40, 30, 20, .7); }
.props .prowname.on { color: #000; }
.props .prowcost { position: absolute; display: flex; align-items: center; justify-content: flex-end; font-size: 15px; font-weight: bold; color: rgba(40, 30, 20, .7); }
.props .prowcost.on { color: #000; }
.props .pslot { position: absolute; }
.props .planned { filter: drop-shadow(0 0 2px #fff) brightness(1.15); }
.props .propnone { text-align: center; font-size: 14px; font-weight: bold; color: #24563a; }
.props .propmsg { position: absolute; font-size: 11.5px; font-weight: bold; line-height: 14px; color: #333; }
.props .propmsg.bad { color: #e0261d; }
.props .proptot { position: absolute; }
.props .ptrow { display: flex; justify-content: flex-end; gap: 10px; font-size: 13px; line-height: 20px; color: #111; }
.props .ptrow b { min-width: 66px; text-align: right; }
.props .propavail { position: absolute; display: flex; align-items: center; gap: 2px; font-size: 13px; color: #222; }
.props .propavail b { margin: 0 1px 0 4px; }
.props .propbtns { margin: 0; justify-content: flex-end; }
.props .proptime { font-size: 11px; }
.props .clk { cursor: pointer; }
.props .prow.faded { opacity: .5; }
.gotprops { z-index: 85; }
.notice .noticebig, .inheritdlg .noticebig { text-align: center; font: bold 16px/22px "Trebuchet MS", Arial, sans-serif; color: #0d2442; }
.inheritdlg .noticebig { margin: 4px 6px 2px; }
.bmtext { display: block; pointer-events: none; }
/* game over: white text with a dark edge on the blue dialog */
.notice .overhead { display: flex; justify-content: center; }
.notice .overtext, .notice .nwhead, .notice .nwname, .notice .nwtotal, .notice .nwfoot {
  font-family: "Trebuchet MS", Arial, sans-serif; color: #fff; white-space: nowrap;
  text-shadow: 1px 1px 0 #233a52, 0 0 2px #233a52, 0 0 1px #233a52; }
.notice .overtext { text-align: center; font-size: 15px; line-height: 18px; white-space: normal; padding: 0 6px; }
.notice .nwhead { text-align: center; font-size: 17px; font-weight: bold; letter-spacing: -0.3px; }
.notice .nwname { text-align: right; font-size: 14px; font-weight: bold; line-height: 30px; overflow: hidden; text-overflow: ellipsis; }
.notice .nwtotal { text-align: right; font-size: 14px; font-weight: bold; line-height: 30px; }
.notice .nwfoot { text-align: center; font-size: 13px; }
.notice .nwbankrupt, .rollup .rbankrupt { display: flex; align-items: center; justify-content: center; padding-top: 1px; box-sizing: border-box; }
.notice .worthbar { position: absolute; }
/* ---------- results screen (the original's "rollup") ---------- */
.rollup { pointer-events: auto; z-index: 70; overflow: hidden; background: #8fa79a; }
.rollup .rtab.off { filter: saturate(.2) brightness(.9) hue-rotate(30deg); opacity: .92; }
.rollup .rtabhit { position: absolute; cursor: pointer; }
.rollup .rside { position: absolute; box-sizing: border-box; border: 1px solid #c4d0cd; border-right: none; border-radius: 9px 0 0 9px;
  background: linear-gradient(90deg, #6f8388, #879a9d); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: -1px 1px 2px rgba(0,0,0,.25); }
.rollup .rside.on { background: linear-gradient(90deg, #a2c39e, #aacaa6); border-color: #e3efe0; cursor: default; }
.rollup .rside span { writing-mode: vertical-rl; transform: rotate(180deg); font: bold 11px/12px "Trebuchet MS", Arial, sans-serif;
  color: #fff; text-align: center; text-shadow: 0 0 2px #283639, 1px 1px 0 #283639; }
.rollup .rclip { position: absolute; overflow: hidden; }
.rollup .rclip.center { display: flex; justify-content: center; }
.rollup .rclip.center > .bmtext { position: static !important; flex: none; }
.rollup .rnote { position: absolute; font: bold 13px/17px "Trebuchet MS", Arial, sans-serif; color: #15251b; }
.rollup .rnote p { margin: 0 0 8px; }
.rollup .rwinbg { position: absolute; background: #4a5a62; box-shadow: inset 0 0 3px rgba(0,0,0,.4); }
.rollup .rtoken { pointer-events: none; }
.rollup .rtoken.reflect { transform: translateY(-3px) scaleY(-.3); filter: brightness(0) blur(1.6px); opacity: .35; }
.rollup .rjackpot { position: absolute; text-align: center; font: bold 12px/22px "Trebuchet MS", Arial, sans-serif; color: #e8f4ff; text-shadow: 0 1px 1px #000; }
.rollup .rwait { position: absolute; text-align: center; font: bold 12px/22px "Trebuchet MS", Arial, sans-serif; color: #223338; }
.rollup .rbtn { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; }
.rollup .rbtn > .spr { position: absolute; left: 0; top: 0; }
.rollup .rbtn:hover:not(:disabled) { filter: brightness(1.08); }
.rollup .rbtn:active:not(:disabled) { transform: translateY(1px); }
.rollup .rbtn:disabled { cursor: default; filter: grayscale(1) opacity(.55); }
.rollup .worthbar { position: absolute; }
.spinbox { z-index: 80; }
.spinwin { position: absolute; box-sizing: border-box; border: 3px solid #4e57b4; border-radius: 2px; background: #fdf77e; overflow: hidden; }
.spinreel { position: absolute; inset: 0; background-repeat: no-repeat; }
.spinlabel { position: absolute; inset: 0; text-align: center; font: bold 17px/33px Arial, sans-serif; color: #111; white-space: nowrap; letter-spacing: -0.2px; }
.rentsign { z-index: 60; transform-origin: 50% 50%; }
.rentamt { text-align: center; font: bold 10.5px/12px "Trebuchet MS", Arial, sans-serif; color: #dcf6cf; letter-spacing: 0.2px;
  text-shadow: 1px 0 0 #0d3d10, -1px 0 0 #0d3d10, 0 1px 0 #0d3d10, 0 -1px 0 #0d3d10; white-space: nowrap; }
.floattext { position: absolute; z-index: 55; font-size: 14px; font-weight: bold; pointer-events: none; text-shadow: 0 0 2px #000, 0 0 3px #000; white-space: nowrap; }
.tip { position: absolute; z-index: 45; pointer-events: none; padding: 7px 10px; min-width: 130px; max-width: 190px; background: #fff; border: 1px solid #8a9bb0; border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.45); font-size: 11px; color: #123; }
.tip b { display: block; font-size: 12px; }
.tip .band { height: 5px; border-radius: 2px; margin: -2px 0 4px; }
.tip .sub { font-weight: normal; color: #345; }
.list { overflow-y: auto; background: rgba(255,255,255,.75); border: 1px solid #7f9f8a; font-weight: normal; }
.list .it { display: flex; align-items: center; gap: 5px; padding: 2px 4px; font-size: 11px; cursor: pointer; border-bottom: 1px solid rgba(0,0,0,.06); }
.list .it.sel { background: #fff3b0; }
.list .it.dis { opacity: .4; cursor: default; }
.list .sw { width: 10px; height: 10px; border: 1px solid #333; flex: none; }
.toast { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 90; background: #fffbe0; border: 2px solid #c79100; border-radius: 8px; padding: 5px 12px; font-size: 12px; max-width: 420px; text-align: center; }
.ctl.inline { position: static; }

/* ---------- start-of-game sequence ---------- */
.slotlabel { position: absolute; font-size: 7px; color: #22303e; text-align: center; letter-spacing: .02em; font-weight: bold; }
.orderdlg { box-sizing: content-box; }
.ordergrid { position: absolute; background:
  linear-gradient(to right, transparent calc(50% - 1px), rgba(16, 44, 84, .5) calc(50% - 1px), rgba(16, 44, 84, .5) calc(50% + 1px), transparent calc(50% + 1px)),
  linear-gradient(to bottom, transparent calc(50% - 1px), rgba(16, 44, 84, .5) calc(50% - 1px), rgba(16, 44, 84, .5) calc(50% + 1px), transparent calc(50% + 1px)); }
.quad { position: absolute; }
.qname { position: absolute; text-align: center; font-size: 14px; font-weight: bold; color: #0c1f36; }
.ordermsg { position: absolute; text-align: center; font-size: 12px; color: #0c1f36; }
.okpill { position: absolute; border-radius: 11px; border: 1px solid #5a6470; background: linear-gradient(#eef1f3, #a7b0b8); color: #6b7279; font-weight: bold; font-size: 12px; padding: 0; }
.okpill.go { background: linear-gradient(#c9ffe2, #39d98f 55%, #17a862); color: #053d22; border-color: #0c6b3c; }
.okpill.go:hover { filter: brightness(1.08); }
.watchtext { position: absolute; text-align: center; font-size: 12px; font-weight: bold; color: #1b1b1b; }
.pieceTitle { font-size: 17px; line-height: 28px; }
.pieceHead { position: absolute; text-align: center; font-size: 17px; font-weight: bold; color: #173b1d; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.pieceName { position: absolute; font-size: 13px; font-weight: bold; color: #222; }
.pieceHint { position: absolute; font-size: 11px; font-weight: normal; color: #3d4a40; }
.slotLabel { position: absolute; background: linear-gradient(#3a3a3a, #161616); color: #fff; border-radius: 6px; text-align: center; font-size: 11px; line-height: 15px; border: 1px solid #000; overflow: hidden; white-space: nowrap; }
.slotLabel.now { background: linear-gradient(#efffd9, #a5e877); color: #1b4207; }
.chatlog .m.info { color: #7b3fa6; }

/* cash counting down (red) or up (green) */
.money b.down { color: #d3261d; }
.money b.up { color: #138a2a; }

/* ---------- trade screen (on trade-bg.jpg) ---------- */
.trade { font-family: "Trebuchet MS", Arial, sans-serif; }
.trade .thead { color: #1d1d1d; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade .tlist { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.trade .tlist::-webkit-scrollbar { display: none; }
.trade .trow { color: #fff; font-size: 13px; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,.55); line-height: 21px; position: absolute; }
.trade .trow.dim { color: #cfd6da; text-shadow: none; }
.trade .trow.clk { cursor: pointer; }
.trade .trow.clk:hover .tn { text-decoration: underline; }
.trade .trow .tn { position: absolute; white-space: nowrap; max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
.trade .trow .ta { position: absolute; }
.trade .tvalue { color: #fff; font-size: 13px; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,.55); white-space: nowrap; }
.trade .ttile { opacity: .9; }
.trade .ttile.mort { opacity: .45; }
.trade .ttile.clk { cursor: pointer; }
.trade .ttile:hover { filter: brightness(1.25) drop-shadow(0 0 2px #ff0); opacity: 1; }
.trade .tarrow { pointer-events: none; animation: tbob .8s ease-in-out infinite alternate; }
.trade .tcard.clk { cursor: pointer; }
.trade .tcard.on { outline: 2px solid #ffe14d; }
@keyframes tbob { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
.trade .tplcash { text-align: center; color: #1b1b1b; font-size: 11px; font-weight: bold; }
.trade .tplname { text-align: center; color: #1b1b1b; font-size: 17px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade .tbubble { display: flex; align-items: center; justify-content: center; text-align: center; color: #111; font-size: 11px; font-weight: normal; line-height: 13px; }
.trade .tbtns { display: flex; flex-direction: column; gap: 3px; }
.trade .tbtns .pbtn { height: 27px; font-size: 12px; padding: 0; border-width: 9px 7px 10px; border-image-width: 9px 7px 10px; letter-spacing: -.02em; }
.trade .tblank { height: 27px; }
.trade .tside , .auction .tside { color: #1b1b1b; }
.trade .thint , .auction .thint { text-align: center; font-size: 12px; font-weight: normal; line-height: 15px; }
.trade .tsname , .auction .tsname, .props .tsname { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: bold; line-height: 13px; }
.trade .tsown , .auction .tsown, .props .tsown { text-align: center; font-size: 11px; font-weight: normal; line-height: 14px; }
.trade .tsv , .auction .tsv, .props .tsv { text-align: right; font-size: 11px; font-weight: bold; line-height: 14px; }
.trade .tsband , .auction .tsband, .props .tsband { background: rgba(40, 90, 60, .25); border-radius: 2px; }
.trade .tsmall , .auction .tsmall, .props .tsmall { background: rgba(255, 230, 60, .85); }
.trade .bob , .auction .bob, .props .bob { animation: tbob .6s ease-in-out infinite alternate; }
.trade .tpop { min-height: 94px; display: flex; flex-direction: column; justify-content: center; }
.trade .tpoptext { text-align: center; font-size: 15px; font-weight: bold; color: #1b1b1b; line-height: 19px; }
.trade .tpop .btns { margin-top: 6px; }
.trade .tpop .btns .pbtn { width: 110px; }
.keypad .kpttl { text-align: center; font-size: 12px; font-weight: normal; color: #1b1b1b; line-height: 14px; }
.keypad .kpdisp { text-align: right; color: #f3c64a; font: bold 18px "Trebuchet MS", Arial, sans-serif; line-height: 28px; }
.keypad .kpkey { cursor: pointer; }
.tradepick { font-family: "Trebuchet MS", Arial, sans-serif; }
.tradepick .pickttl { text-align: center; font-size: 17px; font-weight: bold; color: #1b1b1b; margin: 0 0 8px; }
.tradepick .pickgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 8px 6px; background: rgba(40, 80, 120, .18); border: 1px solid rgba(20, 50, 80, .35); }
.tradepick .pickcell { display: flex; align-items: center; gap: 4px; }
.tradepick .pickcell .pbtn { flex: 1; font-size: 13px; }
/* ---------- purchase panel (space-detail-bg.jpg) ---------- */
.buypanel { position: absolute; border-style: solid; border-width: 14px; border-color: transparent; box-sizing: border-box; font-family: "Trebuchet MS", Arial, sans-serif; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.buypanel .buyphoto { object-fit: none; object-position: 50% 50%; }
.buypanel .buyname { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: bold; color: #1b1b1b; }
.buypanel .buybtns { display: flex; justify-content: center; gap: 8px; margin: 0; }
.buypanel .buybtns .pbtn { font-size: 13px; padding: 0 6px; }
.buypanel .det.big .v { font-size: 11px; font-weight: bold; }
/* A newly bought property's mini card slides into the panel. */
.mini.new { animation: minislide .17s ease-out; }
@keyframes minislide { from { transform: translateX(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- auction screen (auction-bg.jpg) ---------- */
.auction { font-family: "Trebuchet MS", Arial, sans-serif; overflow: hidden; }
.auction .aucttl { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.auction .aucttl1 { font-size: 14px; font-weight: bold; line-height: 16px; }
.auction .aucttl2 { font-size: 10px; font-weight: bold; line-height: 12px; }
.auction .aucendstxt { text-align: center; font-size: 13px; font-weight: bold; color: #1b1b1b; }
.auction .aucends { pointer-events: none; }
.auction .aucname { text-align: center; font-size: 13px; font-weight: bold; color: #1b1b1b; white-space: nowrap; }
.auction .auccash { text-align: center; font-size: 10px; font-weight: bold; color: #1b1b1b; }
.auction .aucfoot { text-align: center; font-size: 12px; font-weight: bold; color: #1b1b1b; }
.auction .auclimit { text-align: center; font-size: 10px; font-weight: bold; color: #1b1b1b; }
.auction .aucbub { pointer-events: none; }
.auction .aucbubtxt { display: flex; align-items: center; justify-content: center; font-weight: bold; color: #4b3a3a; }
/* ---------- accounts, MMR, profiles ---------- */
.mmr { margin-left: 5px; padding: 0 4px; border-radius: 3px; background: #e7eefc; color: #23468c; font-size: 10px; font-weight: bold; border: 1px solid #b9c9ec; }
.mmr.big { font-size: 14px; padding: 1px 6px; }
.plist .p.rated { cursor: pointer; }
.plist .p.rated:hover { background: #f2f6fd; }
.acform { display: flex; flex-direction: column; gap: 3px; }
.acform label { font-weight: bold; font-size: 11px; margin-top: 3px; }
.acform input { font: 13px Arial, sans-serif; padding: 2px 4px; }
.acform .achint { font-size: 10px; color: #456; margin-top: 4px; }
.acform .acwarn { font-size: 11px; font-weight: bold; color: #b0410e; background: #fff4d6; border: 1px solid #e6b54a; border-radius: 3px; padding: 3px 5px; margin-top: 6px; }
.acerr { color: #a01818; font-weight: bold; font-size: 11px; min-height: 13px; }
.profile .phead { display: flex; align-items: center; justify-content: space-between; }
.profile .pname { font-size: 17px; font-weight: bold; color: #0d2442; }
.profile .psub { font-size: 10px; color: #456; margin: 1px 0 6px; }
.profile .pgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.profile .precent, .board { margin-top: 6px; max-height: 150px; overflow-y: auto; }
.profile .ttl2 { font-weight: bold; color: #0d2442; border-bottom: 1px solid #9fb2c9; margin-bottom: 2px; }
.tinfo .ttl2 { font-weight: bold; color: #0d2442; border-bottom: 1px solid #9fb2c9; margin: 6px 0 2px; }
.tinfo .strow b { text-align: right; }
.tinfo .tnote { font-size: 10.5px; color: #1a2f4a; margin: 6px 0 0; line-height: 1.35; }
.strow { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: normal; padding: 1px 0; border-bottom: 1px dotted #c7d3e2; }
.strow.hdr { font-weight: bold; border-bottom: 1px solid #9fb2c9; }
.strow.clk { cursor: pointer; }
.strow.clk:hover { background: #eef3fb; }
.board { max-height: 260px; }
.up { color: #13792b; }
.down { color: #a01818; }
.mmrchange { font-size: 11px; font-weight: bold; }
.mmrchange.up { color: #13792b; }
.mmrchange.down { color: #a01818; }