/* (4.56) THE TRODAIRE LOOK on the game's windows: a carved wood frame with gold knot corners, knot dividers, a wax-seal close button,
   gold and wood buttons, parchment boxes to type in, and painted icons on the bar. Add ?ui=off to the page address to go back to the
   plain look (?ui=trod brings it back). Art by Wyeth and Aekashics: used in the game only, never sold or handed out as files. */
body.trodui .panel.window { background: none; border: 38px solid transparent; border-image: url(ui/panel-wood.webp) 172 fill / 38px / 6px stretch; padding: 0 4px 6px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)); scrollbar-width: thin; scrollbar-color: #c9952e #072d18; }
body.trodui .panel.window .wh { background: #083019; border-bottom: none; color: #ffd87a; font-size: 21px; letter-spacing: .04em; text-shadow: 0 2px 0 #051c0f, 0 0 10px rgba(255,190,80,.35); padding: 2px 0 14px; margin-bottom: 8px; background-image: url(ui/divider.webp); background-repeat: no-repeat; background-position: center bottom; background-size: 100% 16px; background-color: #083019; }
body.trodui #mailWin .wh::before, body.trodui #store .wh::before, body.trodui #awards .wh::before, body.trodui #worldmap .wh::before, body.trodui #help .wh::before { content: ''; width: 34px; height: 34px; background: url(ui/letter.webp) center / contain no-repeat; margin-right: 8px; flex: none; }
body.trodui #store .wh::before { background-image: url(ui/store.webp); } body.trodui #awards .wh::before { background-image: url(ui/awards.webp); } body.trodui #storyWin .wh::before { background-image: url(ui/story.webp); } body.trodui #worldmap .wh::before { background-image: url(ui/map.webp); } body.trodui #help .wh::before { background-image: url(ui/quests.webp); }

body.trodui .panel.window .wh .x { margin-left: auto; } body.trodui .panel.window .wh::before { order: -1; }
body.trodui .panel.window .x { width: 34px; height: 34px; background: url(ui/close-seal.webp) center / contain no-repeat; color: #ffe9b8; font-size: 20px; font-weight: 700; text-shadow: 0 1px 0 #5a0f08; }
body.trodui .panel.window .x:hover { filter: brightness(1.2); }
body.trodui .panel.window .btn { background: linear-gradient(#0d512b, #072d18); border: 1px solid #c9952e; border-radius: 999px; color: #ffe2a0; box-shadow: inset 0 1px 0 rgba(255,220,150,.25), 0 2px 0 #04170c; padding: 6px 14px; }
body.trodui .panel.window .btn:hover, body.trodui .panel.window .btn.padfocus { background: linear-gradient(#116b38, #0a3e20); }
body.trodui .panel.window .btn.gold, body.trodui .panel.window .fr-any .btn.on { background: linear-gradient(#ffd66e, #d9972a 55%, #158445); color: #072a16; border-color: #fff0b0; font-weight: 700; text-shadow: 0 1px 0 rgba(255,240,190,.6); }
body.trodui .panel.window .ml-tabs .tab { background: linear-gradient(#0a3f21, #062714); border: 1px solid #158445; border-radius: 10px 10px 4px 4px; color: #e5dca4; font-size: 12.5px; padding: 7px 8px; }
body.trodui .panel.window .ml-tabs .tab.on { background: linear-gradient(#ffd66e, #c98a22); color: #072a16; border-color: #fff0b0; font-weight: 700; }
body.trodui .panel.window .ml-row, body.trodui .panel.window .ml-brow { background: rgba(3,19,10,.45); border: 1px solid rgba(201,149,46,.28); border-radius: 10px; padding: 8px 10px; }
body.trodui .panel.window .ml-row:hover, body.trodui .panel.window .ml-row.padfocus { border-color: #ffd66e; background: rgba(255,200,90,.1); }
body.trodui .panel.window .fr-req { border-color: #ffd66e; background: rgba(255,200,90,.12); }
body.trodui .panel.window .fr-head { color: #ffd87a; font-family: var(--serif); font-size: 14.5px; letter-spacing: .03em; margin: 14px 0 6px; padding-top: 12px; background: url(ui/divider.webp) center top / 100% 12px no-repeat; }
body.trodui .panel.window .fr-head:first-of-type { background: none; padding-top: 0; margin-top: 6px; }
body.trodui .panel.window .hint, body.trodui .panel.window .ml-letter .m { color: #eae3b8; }
body.trodui .panel.window input:not([type=checkbox]), body.trodui .panel.window textarea { background: #f6f2de; color: #072a16; border: 2px solid #b8862a; border-radius: 8px; box-shadow: inset 0 2px 5px rgba(14,86,45,.35); }
body.trodui .panel.window input::placeholder, body.trodui .panel.window textarea::placeholder { color: #158445; }
body.trodui .panel.window .ml-text { background: #f6f2de; color: #072a16; border: 2px solid #b8862a; border-radius: 8px; }
body.trodui .panel.window .ml-form label { color: #efe9c6; font-size: 12.5px; }
body.trodui .panel.window .fr-row small { color: #e2d89a; }
/* on a wide screen the frame goes around the window's old size, so nothing inside is squeezed; on phones it is thinner and stays inside */
@media (min-width: 761px) { body.trodui .panel.window { box-sizing: content-box; } }
@media (max-width: 760px) { body.trodui .panel.window { border-width: 20px; border-image-width: 20px; padding: 0 2px 4px; } }
body.mobile.trodui .panel.window { border-width: 20px; border-image-width: 20px; box-sizing: border-box; }

/* windows with their own colors keep them inside the frame */
body.trodui .panel.window.advent-win { border-image-source: url(ui/panel-wood.webp); }
body.trodui .panel.window.advent-win .wh { background-color: #083019; }
/* things the wood frame must not squeeze */
body.trodui .panel.window.build-menu, body.trodui #buildMenu.panel.window { border-width: 30px; border-image-width: 30px; }
/* painted icons on the bar */
body.trodui #mapBtn .ico, body.trodui #awardBtn .ico, body.trodui #storyBtn .ico, body.trodui #mailBtn .ico { font-size: 0; width: 30px; height: 30px; background: center / contain no-repeat; margin-top: 6px; }
body.trodui #mapBtn .ico { background-image: url(ui/map.webp); } body.trodui #awardBtn .ico { background-image: url(ui/awards.webp); } body.trodui #storyBtn .ico { background-image: url(ui/story.webp); } body.trodui #mailBtn .ico { background-image: url(ui/letter.webp); }
body.trodui #bar { background: linear-gradient(#0a3f21, #051f10); border: 2px solid #c9952e; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,220,150,.25); }
body.trodui #bar .slot { border-color: #158445; border-radius: 8px; background: radial-gradient(circle at 50% 35%, #0d512b, #051f10); }
body.trodui #bar .slot.small { width: 38px; }
body.trodui #bar .slot:hover { border-color: #ffd66e; }
body.trodui #mapMenu .btn { background: linear-gradient(#0d512b, #072d18); border: 1px solid #c9952e; border-radius: 999px; color: #ffe2a0; }
body.trodui #mapMenu { background: #083019; border: 2px solid #c9952e; border-radius: 14px; }

/* (4.59) THE MAIN SCREEN in the same look: wood-and-gold panels for the hero, target, mini map, quest and heroes boxes, and a painted
   icon on each box that tucks it away or brings it back (the map's icon opens its two choices). */
body.trodui #topLeft, body.trodui #targetFrame, body.trodui #mmBox, body.trodui #questBox, body.trodui #lbBox { background: linear-gradient(rgba(10,63,33,.94), rgba(5,31,16,.94)); border: 2px solid #c9952e; border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,220,150,.22); }
body.trodui #topLeft { padding: 10px 12px 9px; width: 262px; }
body.trodui #topLeft .me-row { color: #ffd87a; font-size: 16px; text-shadow: 0 1px 0 #051c0f; margin-bottom: 7px; } body.trodui #topLeft .me-row .lvl { color: #efe9c6; font-size: 12px; }
body.trodui #topLeft .bar, body.trodui #targetFrame .bar { height: 18px; border-radius: 999px; border: 1px solid #c9952e; background: #04170c; box-shadow: inset 0 2px 3px rgba(0,0,0,.6); margin-bottom: 6px; }
body.trodui #topLeft .bar > div, body.trodui #targetFrame .bar > div { border-radius: 999px; }
body.trodui #topLeft .bar span, body.trodui #targetFrame .bar span { line-height: 16px; font-weight: 700; }
body.trodui #topLeft .bar.xp { height: 11px; } body.trodui #topLeft .bar.xp span { line-height: 9px; }
body.trodui #topLeft .gold-row { color: #ffe2a0; font-size: 13.5px; font-weight: 600; gap: 7px; }
body.trodui #topLeft > div:not(.me-row):not(.bar):not(.gold-row):not(.hidden) { border-radius: 10px; border-color: rgba(201,149,46,.45); background-color: rgba(3,19,10,.45); }
body.trodui #questBox .ph, body.trodui #lbBox .ph { color: #ffd87a; font-size: 14px; }
body.trodui #questBox, body.trodui #lbBox, body.trodui #mmBox { position: relative; }
body.trodui #questBox, body.trodui #lbBox { padding: 9px 12px 9px 22px; color: #f3e6cc; }
body.trodui #zoneName { color: #ffe2a0; }
body.trodui #questTog, body.trodui #lbTog, body.trodui #chatTog { width: 46px; height: 46px; border: none; border-radius: 0; background: center / contain no-repeat; font-size: 0; filter: drop-shadow(0 3px 5px rgba(0,0,0,.6)); margin: 0; }
body.trodui #questTog:hover, body.trodui #lbTog:hover, body.trodui #chatTog:hover, body.trodui #questTog:focus, body.trodui #lbTog:focus, body.trodui #chatTog:focus { transform: scale(1.1); filter: drop-shadow(0 0 8px #ffd66e); outline: none; }
body.trodui #questTog { background-image: url(ui/quests.webp); position: absolute; left: -30px; top: -8px; z-index: 6; }
body.trodui #lbTog { background-image: url(ui/friends.webp); position: absolute; left: -30px; top: -8px; z-index: 6; }
body.trodui #chatTog { background-image: url(ui/ink.webp); top: -50px; left: -4px; }
body.trodui #chatTog i { font: 700 10px/16px sans-serif; }
body.trodui.nochat #chatTog { top: auto; bottom: 0; }
/* tucked away: only the title stays, small, beside its icon */
body.trodui #questBox.shut > :not(.ph):not(#questTog) { display: none; } body.trodui #questBox.shut .ph { margin: 0; } body.trodui #questBox.shut .ph span, body.trodui #questBox.shut .ph a { display: none; }
body.trodui #questBox.shut, body.trodui #lbBox.shut { align-self: flex-end; width: 150px; padding-top: 6px; padding-bottom: 6px; }
body.trodui.mm-off #mmBox { align-self: flex-end; width: 150px; padding: 6px 8px 6px 22px; }
body.trodui #mapIco { top: -8px; width: 50px; height: 50px; }
body.trodui #chatLog { background: linear-gradient(transparent, rgba(5,31,16,.72) 22%); border-radius: 12px 12px 0 0; }
body.trodui #chatIn { background: rgba(5,31,16,.9); border: 2px solid #c9952e; border-radius: 0 0 12px 12px; color: #fff3d6; }
body.trodui #chatIn::placeholder { color: #e2d89a; }
body.trodui #safeTog { top: -44px; left: 50px; }
body.trodui.mm-off #mapIco { left: 24px; }
body.trodui #lbBox.shut .ph { font-size: 12.5px; white-space: nowrap; margin: 0; } body.trodui #lbBox.shut { width: 190px; }
body.trodui #questBox.shut { width: 190px; } body.trodui.mm-off #mmBox { width: 190px; } body.trodui.mm-off #mapIco { left: -16px; }

/* (4.61) the count of heroes online, brighter */
body.trodui #lbBox .ph #online { color: #ffe9a8; font-weight: 700; font-size: 12px; }

/* (4.62) THE HERO BOX: a round portrait of the hero's animal with the level on a gold badge, the name on its own line, glossy bars
   with a heart and a star, and painted icons for gold and Crowns. Phones keep their own compact box. */
body.trodui:not(.mobile) #topLeft { width: 300px; display: grid; grid-template-columns: 78px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px 10px 10px; }
body.trodui:not(.mobile) #mePortrait { display: block; grid-column: 1; grid-row: 1 / span 3; width: 78px; height: 78px; padding: 0; border: none; border-radius: 50%; cursor: pointer; position: relative; background: #3a1f4a center / cover no-repeat; box-shadow: 0 0 0 2px #158445, 0 3px 8px rgba(0,0,0,.6); }
/* (5.52) the portrait picture is set by the game from ui/pf_ANIMAL.webp: the new hero art, all five animals */
body.trodui #mePortrait:hover, body.trodui #mePortrait:focus { outline: none; box-shadow: 0 0 0 2px #ffd66e, 0 0 12px rgba(255,214,110,.7); }
body.trodui #meLvlNum { position: absolute; right: -6px; bottom: -4px; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 15px; background: radial-gradient(circle at 35% 30%, #fff1b8, #f0b93a 55%, #158445); border: 2px solid #0f5b30; color: #09371d; font: 700 15px/26px var(--serif); font-style: normal; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
body.trodui:not(.mobile) #topLeft .me-row { grid-column: 2; flex-direction: column; align-items: flex-start; gap: 1px; margin-bottom: 5px; min-width: 0; }
body.trodui:not(.mobile) #topLeft #meName { font-size: 19px; line-height: 1.1; color: #ffd87a; text-shadow: 0 2px 0 #051c0f; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.trodui:not(.mobile) #topLeft .me-row .lvl { font-size: 12px; color: #efe9c6; font-family: var(--sans); }
body.trodui:not(.mobile) #topLeft .bar { grid-column: 2; }
body.trodui #topLeft .bar.hp > div { background: linear-gradient(#ff9c8a, #e2452f 42%, #a01c12); box-shadow: inset 0 2px 0 rgba(255,255,255,.35); }
body.trodui #topLeft .bar.xp > div { background: linear-gradient(#c9b0ff, #8a5ae0 50%, #5a2eb0); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
body.trodui #topLeft .bar.hp::before { content: '\2665'; position: absolute; left: 7px; top: 0; z-index: 2; font-size: 11px; line-height: 16px; color: #fff; text-shadow: 0 1px 2px #5a0f08; }
body.trodui #topLeft .bar.xp::before { content: '\2605'; position: absolute; left: 7px; top: 0; z-index: 2; font-size: 8px; line-height: 9px; color: #fff; text-shadow: 0 1px 2px #2a0a5a; }
body.trodui #topLeft .bar span { z-index: 2; }
body.trodui:not(.mobile) #topLeft .gold-row { grid-column: 1 / -1; margin-top: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(3,19,10,.5); border: 1px solid rgba(201,149,46,.4); font-size: 15px; font-weight: 700; color: #ffe2a0; gap: 7px; }
body.trodui #topLeft .coin { width: 24px; height: 24px; border-radius: 0; background: url(ui/gold.webp) center / contain no-repeat; }
body.trodui #topLeft .gem { width: 24px; height: 24px; transform: none; background: url(ui/crown.webp) center / contain no-repeat; box-shadow: none; }
body.trodui #topLeft .crown-row { margin-left: auto; color: #e3d0ff; font-size: 15px; gap: 6px; }
body.trodui:not(.mobile) #topLeft #boost, body.trodui:not(.mobile) #topLeft #buff, body.trodui:not(.mobile) #topLeft #petBadge, body.trodui:not(.mobile) #topLeft #seasonBadge { grid-column: 1 / -1; }
body.trodui #petBadge, body.trodui #seasonBadge { border-radius: 999px; padding: 5px 12px; border: 1px solid rgba(201,149,46,.55); background: linear-gradient(#0d512b, #072d18); box-shadow: inset 0 1px 0 rgba(255,220,150,.2); font-size: 13px; }
body.trodui #seasonBadge { background: linear-gradient(#23406a, #142848); border-color: #8ac8ff; }
body.trodui #petBadge:hover, body.trodui #seasonBadge:hover { border-color: #ffd66e; }
body.trodui #petBadge .pb-name, body.trodui #seasonBadge .pb-name { color: #fff3d6; font-weight: 600; } body.trodui #petBadge .pb-sub { color: #efe9c6; }
/* (4.63) the tucked-away boxes are a little wider so "Heroes of Saorise · 12 online" fits */
body.trodui #lbBox.shut, body.trodui #questBox.shut, body.trodui.mm-off #mmBox { width: 226px; }
body.trodui.mm-off #mapIco { left: -52px; }
body.trodui #lbBox.shut .ph { font-size: 12px; } body.trodui #lbBox.shut .ph #online { font-size: 11.5px; }

/* (4.73) PHONES. The wood-and-gold look was sized for a computer screen, and on a phone the hero box grew under the menu, chat and map
   buttons, the chat line landed on top of the gold, the map picture sat on the place name and the quest line was cut. On a phone
   the hero box is small again (name, health, a thin experience line, gold and Crowns on one row) and everything has its own room. */
body.trodui.mobile #topLeft { width: 190px; padding: 6px 9px 6px; }
body.trodui.mobile #topLeft .me-row { font-size: 13px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; gap: 6px; }
body.trodui.mobile #topLeft .me-row .lvl { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
body.trodui.mobile #topLeft .bar { height: 15px; margin: 0 0 3px; } body.trodui.mobile #topLeft .bar span { line-height: 13px; font-size: 10.5px; }
body.trodui.mobile #topLeft .bar.hp::before { line-height: 13px; font-size: 9px; left: 6px; }
body.trodui.mobile #topLeft .bar.xp { height: 6px; } body.trodui.mobile #topLeft .bar.xp span, body.trodui.mobile #topLeft .bar.xp::before { display: none; }
body.trodui.mobile #topLeft .gold-row { font-size: 12px; gap: 5px; } body.trodui.mobile #topLeft .crown-row { font-size: 12px; gap: 4px; }
body.trodui.mobile #topLeft .coin, body.trodui.mobile #topLeft .gem { width: 17px; height: 17px; }
@media (orientation: landscape) { body.trodui.mobile #mTop { left: calc(208px + env(safe-area-inset-left)); } body.trodui.mobile #chat { top: calc(92px + env(safe-area-inset-top)); } body.trodui.mobile #topRight { width: 168px; } }
@media (orientation: portrait) { body.trodui.mobile #topLeft { width: 178px; } body.trodui.mobile #topRight { width: 148px; } body.trodui.mobile #mTop { top: calc(146px + env(safe-area-inset-top)); } body.trodui.mobile .mm canvas { width: 100%; height: auto; } }
body.trodui.mobile #questBox .ph { display: none; }
body.trodui.mobile #mmBox, body.trodui.mobile.mm-off #mmBox, body.trodui.mobile #questBox, body.trodui.mobile #questBox.shut, body.trodui.mobile #lbBox.shut { width: auto; }
body.trodui.mobile #mapIco, body.trodui.mobile.mm-off #mapIco { left: -14px; top: -7px; width: 38px; height: 38px; }
body.trodui.mobile #zoneName { font-size: 11.5px; padding-left: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.trodui.mobile #questBox { box-sizing: content-box; max-height: 40px; overflow: hidden; padding: 5px 8px 0 26px; }
body.trodui.mobile #questBox, body.trodui.mobile #questBox * { font-size: 10.5px !important; line-height: 13px !important; }
body.trodui.mobile #questBox > div { margin: 0; padding: 0; }

/* (5.49) 3D BUTTONS EVERYWHERE IN THE WINDOWS. Every button in a game window is the real 3D pill model (Meshy), drawn as a nine-slice
   frame so its round ends keep their shape at any size: b3_<color>0 resting, 1 lit (mouse over or the controller's highlight), 2 pressed in.
   Wood for ordinary buttons, gold for the main one, red for ones that take something away. Calm Mode keeps them from moving. */
body.trodui .panel.window .btn, body.trodui #mapMenu .btn { background: none; border-style: solid; border-color: transparent; border-width: 7px 14px 11px 14px; border-image: url(ui/b3_wood0.webp?v=5.49) 50 74 62 74 fill / 7px 14px 11px 14px stretch; border-radius: 0; box-shadow: none; padding: 0 2px; color: #ffe9c0; text-shadow: 0 1px 0 rgba(0,0,0,.65); transition: transform .12s; } /* no drop shadow here: a shop list has well over a hundred of these, and the model's own rim already lifts it */
body.trodui .panel.window .btn:hover, body.trodui .panel.window .btn.padfocus, body.trodui #mapMenu .btn:hover, body.trodui #mapMenu .btn.padfocus { background: none; border-image-source: url(ui/b3_wood1.webp?v=5.49); transform: translateY(-1px); }
body.trodui .panel.window .btn:active, body.trodui #mapMenu .btn:active { border-image-source: url(ui/b3_wood2.webp?v=5.49); transform: translateY(1px); }
body.trodui .panel.window .btn.gold, body.trodui .panel.window .btn.primary, body.trodui .panel.window .fr-any .btn.on, body.trodui .panel.window .btn.on { background: none; border-image-source: url(ui/b3_gold0.webp?v=5.49); color: #fff; font-weight: 700; text-shadow: 0 1px 0 #126f3a, 0 0 3px #126f3a; }
body.trodui .panel.window .btn.gold:hover, body.trodui .panel.window .btn.gold.padfocus, body.trodui .panel.window .btn.primary:hover, body.trodui .panel.window .btn.primary.padfocus, body.trodui .panel.window .btn.on:hover { background: none; border-image-source: url(ui/b3_gold1.webp?v=5.49); }
body.trodui .panel.window .btn.gold:active, body.trodui .panel.window .btn.primary:active { border-image-source: url(ui/b3_gold2.webp?v=5.49); }
body.trodui .panel.window .btn.danger, body.trodui .panel.window .btn.red { border-image-source: url(ui/b3_red0.webp?v=5.49); color: #fff; }
body.trodui .panel.window .btn.danger:hover, body.trodui .panel.window .btn.red:hover, body.trodui .panel.window .btn.danger.padfocus, body.trodui .panel.window .btn.red.padfocus { border-image-source: url(ui/b3_red1.webp?v=5.49); }
body.trodui .panel.window .btn:disabled, body.trodui .panel.window .btn.off { filter: grayscale(.7) brightness(.8); transform: none; cursor: default; }
body.calm.trodui .panel.window .btn { transition: none; transform: none !important; }
body.trodui .panel.window .chip { background: none; border-style: solid; border-color: transparent; border-width: 6px 12px 9px 12px; border-image: url(ui/b3_wood0.webp?v=5.49) 50 74 62 74 fill / 6px 12px 9px 12px stretch; border-radius: 0; box-shadow: none; padding: 0 2px; color: #ffe9c0; text-shadow: 0 1px 0 rgba(0,0,0,.65); }
body.trodui .panel.window .chip:hover, body.trodui .panel.window .chip.padfocus { background: none; border-image-source: url(ui/b3_wood1.webp?v=5.49); }
body.trodui .panel.window .chip.on { background: none; border-image-source: url(ui/b3_gold0.webp?v=5.49); color: #fff; font-weight: 700; text-shadow: 0 1px 0 #126f3a, 0 0 3px #126f3a; }
body.trodui .panel.window .cr-tabs button { background: none; border-style: solid; border-color: transparent; border-width: 6px 12px 9px 12px; border-image: url(ui/b3_wood0.webp?v=5.49) 50 74 62 74 fill / 6px 12px 9px 12px stretch; border-radius: 0; box-shadow: none; padding: 0 2px; color: #ffe9c0; text-shadow: 0 1px 0 rgba(0,0,0,.65); cursor: pointer; } /* the forge's category tabs */
body.trodui .panel.window .cr-tabs button:hover, body.trodui .panel.window .cr-tabs button.padfocus { background: none; border-image-source: url(ui/b3_wood1.webp?v=5.49); }
body.trodui .panel.window .cr-tabs button.sel { background: none; border-image-source: url(ui/b3_gold0.webp?v=5.49); color: #fff; font-weight: 700; text-shadow: 0 1px 0 #126f3a, 0 0 3px #126f3a; }
/* (5.49) the action bar: every slot is the real 3D square button model (Meshy), three pictures stacked: resting, lit, pressed in */
body.trodui #bar .slot { background: url(ui/b3_tile.webp?v=5.49) 0 0 / 100% 300% no-repeat; border: 0; border-radius: 11px; }
body.trodui #bar .slot:hover, body.trodui #bar .slot.padfocus { background-position: 0 50%; }
body.trodui #bar .slot:active { background-position: 0 100%; }
body.trodui #bar .slot.locked { border: 0; }
/* (5.49) the other rows of tabs (help, guide, cooking, hero maker) are 3D pills too: wood resting, gold for the one you are on */
body.trodui .panel.window .ml-tabs .tab, body.trodui .panel.window .ck-tabs button, body.trodui .btabs button:not(#bDice) { background: none; border-style: solid; border-color: transparent; border-width: 7px 13px 10px 13px; border-image: url(ui/b3_wood0.webp?v=5.49) 50 74 62 74 fill / 7px 13px 10px 13px stretch; border-radius: 0; box-shadow: none; padding: 1px 3px; color: #ffe9c0; opacity: 1; text-shadow: 0 1px 0 rgba(0,0,0,.65); cursor: pointer; }
body.trodui .panel.window .ml-tabs .tab:hover, body.trodui .panel.window .ml-tabs .tab.padfocus, body.trodui .panel.window .ck-tabs button:hover, body.trodui .panel.window .ck-tabs button.padfocus, body.trodui .btabs button:not(#bDice):hover, body.trodui .btabs button:not(#bDice).padfocus { background: none; border-image-source: url(ui/b3_wood1.webp?v=5.49); }
body.trodui .panel.window .ml-tabs .tab.on, body.trodui .panel.window .ck-tabs button.on, body.trodui .btabs button.sel:not(#bDice) { background: none; border-image-source: url(ui/b3_gold0.webp?v=5.49); color: #fff; font-weight: 700; text-shadow: 0 1px 0 #126f3a, 0 0 3px #126f3a; }
body.trodui .btabs { border-bottom: 0; }

/* (5.72) NO WOOD ANYWHERE (owner, 4 Dec): the Trodaire kit (ui/t/*.webp, in-game use only). Emerald windows in a gold knot frame, pearl to type on,
   emerald for the main choice and ruby for every other button. Every brown and tan above was turned to emerald and pearl. */
html body.trodui .panel.window { border: 34px solid transparent; border-image: url(ui/t/ui-win-pearl.webp?v=5.73) 40 fill / 34px / 0 stretch; padding: 8px 18px 12px; scrollbar-color: #c98a16 #efe9d6; }
@media (max-width: 760px) { html body.trodui .panel.window { border-width: 22px; border-image-width: 22px; padding: 2px 8px 6px; } }
html body.mobile.trodui .panel.window { border-width: 22px; border-image-width: 22px; padding: 2px 8px 6px; }
html body.trodui .panel.window.advent-win { border-image-source: url(ui/t/ui-win-pearl.webp?v=5.73); }
html body.trodui .panel.window.build-menu, html body.trodui #buildMenu.panel.window { border-width: 28px; border-image-width: 28px; }
html body.trodui .panel.window .wh { background-color: #fbfaf3; color: #0b6b34; text-shadow: none; font-weight: 700; }
html body.trodui .panel.window .btn, html body.trodui #mapMenu .btn { background: none; border: 0 solid transparent; border-image: url(ui/t/ui-tab-on.webp?v=5.73) 0 70 fill / 0 1.25em / 0 stretch; border-radius: 0; box-shadow: none; padding: 8px 1.3em 9px; color: #fff3c4; text-shadow: 0 1px 2px #000; transform: none; }
html body.trodui .panel.window .btn.sm { border-image: url(ui/t/ui-tab-on.webp?v=5.73) 0 70 fill / 0 1.1em / 0 stretch; padding: 5px 1.15em 6px; }
html body.trodui .panel.window .btn.gold, html body.trodui .panel.window .btn.primary, html body.trodui .panel.window .btn.on, html body.trodui .panel.window .fr-any .btn.on { border-image-source: url(ui/t/ui-btn-big.webp?v=5.73); border-image-slice: 0 80 fill; color: #fff; font-weight: 700; text-shadow: 0 1px 2px #000; }
html body.trodui .panel.window .btn.danger, html body.trodui .panel.window .btn.red { border-image-source: url(ui/t/ui-tab-on.webp?v=5.73); color: #fff; }
html body.trodui .panel.window .btn:hover, html body.trodui .panel.window .btn.padfocus, html body.trodui #mapMenu .btn:hover, html body.trodui #mapMenu .btn.padfocus, html body.trodui .panel.window .btn:active, html body.trodui #mapMenu .btn:active, html body.trodui .panel.window .btn.danger:hover, html body.trodui .panel.window .btn.red:hover, html body.trodui .panel.window .btn.danger.padfocus, html body.trodui .panel.window .btn.red.padfocus { background: none; border-image-source: url(ui/t/ui-tab-on.webp?v=5.73); filter: brightness(1.22); transform: none; }
html body.trodui .panel.window .btn.gold:hover, html body.trodui .panel.window .btn.gold.padfocus, html body.trodui .panel.window .btn.primary:hover, html body.trodui .panel.window .btn.primary.padfocus, html body.trodui .panel.window .btn.on:hover, html body.trodui .panel.window .btn.on.padfocus, html body.trodui .panel.window .btn.gold:active, html body.trodui .panel.window .btn.primary:active { background: none; border-image-source: url(ui/t/ui-btn-big.webp?v=5.73); filter: brightness(1.2); }
html body.trodui .panel.window .btn.padfocus { outline: 3px solid #fff; outline-offset: 2px; border-radius: 20px; }
html body.trodui .panel.window .btn:disabled, html body.trodui .panel.window .btn[disabled] { border-image-source: url(ui/t/ui-tab-off.webp?v=5.73); filter: saturate(.6) brightness(.9); }
html body.trodui .panel.window input:not([type=checkbox]):not([type=radio]):not([type=range]), html body.trodui .panel.window textarea, html body.trodui .panel.window .ml-text { background: #fffdf6; color: #13301e; border: 2px solid #c98a16; box-shadow: inset 0 2px 4px rgba(6,36,20,.25); }
html body.trodui .panel.window input::placeholder, html body.trodui .panel.window textarea::placeholder { color: #5d7a66; }
/* the front page card: the same emerald window */
html body.trodui #login .login-card, html #login .login-card { border-image: url('ui/t/ui-win-pearl.webp?v=5.73') 40 fill / 40px / 0 stretch; }
@media (max-height: 800px) and (min-width: 901px) { html #login .login-card { border-image-width: 34px; } }
html #login .login-card { padding: 10px 12px 14px; }
html #login .login-card .btn:not(.primary):not(#playBtn) { background: none; border: 0 solid transparent; border-image: url(ui/t/ui-tab-on.webp?v=5.73) 0 70 fill / 0 1.25em / 0 stretch; border-radius: 0; box-shadow: none; padding: 8px 1.5em 9px; color: #fff3c4; text-shadow: 0 1px 2px #000; }
html #login .login-card .btn:not(.primary):not(#playBtn):hover, html #login .login-card .btn.padfocus:not(.primary):not(#playBtn) { filter: brightness(1.22); }

/* (5.72) PEARL TO READ ON (owner: "the pearl for background, emerald and ruby for buttons, except our premade buttons that are fun").
   Inside a window the game's color names are swapped, so text written for a dark panel turns to dark green ink on pearl. */
html body.trodui .panel.window, html body.trodui #login .login-card { --ink: #13301e; --dim: #2f4d3b; --muted: #55705f; --gold: #0b6b34; --gold-dim: #b07a12; --panel: rgba(255,253,246,.96); --panel-solid: #fffdf6; --edge: #c98a16; color: #13301e; text-shadow: none; }
html body.trodui .panel.window :is(p, li, td, th, label, small, span, div, b, i, em, h1, h2, h3, h4) { text-shadow: none; }
html body.trodui .panel.window .hint, html body.trodui .panel.window .ml-letter .m, html body.trodui .panel.window .fr-row small, html body.trodui .panel.window .ml-form label { color: #2f4d3b; }
html body.trodui .panel.window .fr-head, html body.trodui .panel.window .ch { color: #0b6b34; }
html body.trodui .panel.window .ml-row, html body.trodui .panel.window .ml-brow { background: rgba(11,107,52,.07); border-color: rgba(201,138,22,.55); }
html body.trodui .panel.window .ml-row:hover, html body.trodui .panel.window .ml-row.padfocus { background: rgba(255,216,107,.35); border-color: #c98a16; }
html body.trodui .panel.window .ml-tabs .tab { background: linear-gradient(#f4f1e4, #e4dfcb); border-color: #c98a16; color: #13301e; }
html body.trodui .panel.window .ml-tabs .tab.on { background: linear-gradient(#12894a, #0b6b34); color: #fff; border-color: #ffd86b; }
html body.trodui .panel.window a { color: #0b6b34; }
/* every kit button: the words sit in the middle, across and up-and-down */
html body.trodui .panel.window .btn, html body.trodui #mapMenu .btn, html #login .login-card .btn:not(.primary):not(#playBtn) { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; vertical-align: middle; }
html body.trodui .panel.window .btn.hidden { display: none; }
/* the front page on pearl: dark green words, the title in emerald with a gold edge */
html #login .login-card, html #login .login-card label, html #login .login-card .cls-title, html #login .login-card .hint, html #login .login-card .tag, html #login .login-card small, html #login .login-card p { color: #13301e; text-shadow: none; }
html #login .login-card a { color: #0b6b34; }
html #login h1 { color: #0b6b34; } html #login h1 span { -webkit-text-stroke: 6px #ffd86b; text-shadow: 0 4px 0 #c98a16; }
html #login .lc-slogan { color: #a8122c; text-shadow: none; }
html #login .login-card input { background: #fffdf6; color: #13301e; border: 2px solid #c98a16; } html #login .login-card input::placeholder { color: #5d7a66; }
/* the PLAY button: the word sits in the middle of the button face (it rode too high) */
html #login .btn.primary { display: flex; align-items: center; justify-content: center; padding: 0 4% 5% 27%; line-height: 1; }
html #login .btn.primary:active { padding-bottom: 1%; }
html #login .login-card .fb-link a { color: #fff; } html #login .login-card .linkbtn, html #login .login-card .intro-link button { color: #0b6b34; text-shadow: none; }
/* (5.72) pearl windows: nothing dark inside. Satchel slots and item squares are see-through with a gold edge; shop and award rows sit on the pearl. */
html body.trodui .panel.window .cell, html body.trodui .panel.window .eqslot { background: transparent; border: 1px solid rgba(201,138,22,.6); border-radius: 8px; }
html body.trodui .panel.window .cell:hover, html body.trodui .panel.window .cell.padfocus, html body.trodui .panel.window .eqslot:hover, html body.trodui .panel.window .eqslot.padfocus { background: rgba(255,216,107,.3); border-color: #c98a16; }
html body.trodui .panel.window .cell .n { color: #13301e; text-shadow: 0 0 2px #fff, 0 0 2px #fff; font-weight: 700; }
html body.trodui .panel.window .eqslot .lbl { color: #a8122c; } html body.trodui .panel.window .eqslot .v { color: #13301e; }
html body.trodui .panel.window .shoprow { border-bottom: 1px solid rgba(201,138,22,.4); }
html body.trodui .panel.window .shoprow.deal { background: rgba(255,216,107,.22); border-color: rgba(201,138,22,.6); }
html body.trodui .panel.window .shoprow .nm small, html body.trodui .panel.window .shoprow .m, html body.trodui .panel.window small { color: #2f4d3b; }
html body.trodui .panel.window .shoprow .btn.on { color: #fff; }
html body.trodui .panel.window .event-head { background: rgba(11,107,52,.08); border: 1px solid #c98a16; border-radius: 10px; color: #0b6b34; font-weight: 700; }
html body.trodui .panel.window .event-head small { color: #13301e; font-weight: 400; }
html body.trodui .panel.window .crown-row { color: #0b4f8a; font-weight: 700; } html body.trodui .panel.window s.was { color: #7a6a58; }
html body.trodui .panel.window .aw { background: transparent; border-color: rgba(201,138,22,.5); }
html body.trodui .panel.window .aw.done { background: rgba(255,216,107,.25); }
html body.trodui .panel.window .aw-bar, html body.trodui .panel.window .aw-prog { background: #e9e4d0; border-color: #c98a16; }
html body.trodui .panel.window .aw-title b { color: #a8122c; }
html body.trodui .panel.window .cr-tabs button, html body.trodui .panel.window .helpbody button:not(.btn), html body.trodui .panel.window .seg button { background: #f4f1e4; border: 1px solid #c98a16; color: #13301e; border-radius: 12px; }
html body.trodui .panel.window .cr-tabs button.sel, html body.trodui .panel.window .helpbody button.sel:not(.btn), html body.trodui .panel.window .helpbody button.on:not(.btn), html body.trodui .panel.window .seg button.on, html body.trodui .panel.window .seg button.sel { background: #0b6b34; border-color: #ffd86b; color: #fff; }
html body.trodui .panel.window #adminLink a { background: #a8122c !important; border-color: #ffd86b !important; color: #fff !important; }
html body.trodui .panel.window .x { color: #fff; }
/* (5.72) THE HERO BOX, MORE FUN (owner: "this we need more fun"): a pearl plaque in the gold knot frame, the hero's name in the game's bouncy
   lettering, a gold-and-ruby ring round the portrait, fat candy bars for health and experience, and two bright coin pills. Computer screens. */
html body.trodui:not(.mobile) #topLeft { width: 336px; grid-template-columns: 92px 1fr; column-gap: 12px; background: none; border: 26px solid transparent; border-image: url(ui/t/ui-wide-pearl.webp?v=5.73) 34 fill / 26px / 0 stretch; border-radius: 0; box-shadow: none; padding: 4px 6px 4px 4px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); color: #13301e; box-sizing: content-box; }
html body.trodui:not(.mobile) #mePortrait { width: 92px; height: 92px; background-color: #0b6b34; box-shadow: 0 0 0 4px #ffd86b, 0 0 0 6px #a8122c, 0 0 0 8px #ffd86b, 0 5px 8px rgba(0,0,0,.45); margin: 4px 0 4px 6px; }
html body.trodui #mePortrait:hover, html body.trodui #mePortrait:focus { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #a8122c, 0 0 0 8px #ffd86b, 0 0 14px #ffd86b; }
html body.trodui:not(.mobile) #meLvlNum { right: -12px; bottom: -8px; min-width: 40px; height: 40px; border-radius: 20px; background: radial-gradient(circle at 35% 28%, #fff6c8, #ffd25a 50%, #c98a16); border: 3px solid #a8122c; color: #a8122c; font: 400 22px/34px 'Chewy', Georgia, serif; box-shadow: 0 0 0 2px #ffd86b, 0 3px 5px rgba(0,0,0,.5); transform: rotate(-6deg); }
html body.trodui:not(.mobile) #topLeft #meName { font: 400 27px/1.05 'Chewy', Georgia, serif; letter-spacing: .02em; color: #0b6b34; -webkit-text-stroke: 4px #ffd86b; paint-order: stroke fill; text-shadow: 0 3px 0 #c98a16; padding: 2px 4px 3px; }
html body.trodui:not(.mobile) #topLeft .me-row .lvl { font: 700 13px/1.2 var(--sans); color: #a8122c; letter-spacing: .04em; text-transform: uppercase; padding-left: 4px; }
html body.trodui:not(.mobile) #topLeft .bar { height: 24px; border: 3px solid #c98a16; background: #e9e4d0; box-shadow: inset 0 2px 3px rgba(0,0,0,.25), 0 2px 0 #7a5208; margin-bottom: 7px; }
html body.trodui:not(.mobile) #topLeft .bar.xp { height: 17px; }
html body.trodui:not(.mobile) #topLeft .bar.hp > div { background: linear-gradient(#ff8f9e, #e0203f 45%, #a8122c); box-shadow: inset 0 3px 0 rgba(255,255,255,.45); }
html body.trodui:not(.mobile) #topLeft .bar.xp > div { background: linear-gradient(#8fd0ff, #2a86e0 50%, #1456a8); box-shadow: inset 0 2px 0 rgba(255,255,255,.5); }
html body.trodui:not(.mobile) #topLeft .bar span { line-height: 18px; font: 700 13px/18px var(--sans); color: #fff; text-shadow: 0 1px 0 #40101a, 0 0 3px #40101a; }
html body.trodui:not(.mobile) #topLeft .bar.xp span { line-height: 11px; font-size: 10.5px; text-shadow: 0 1px 0 #0a2a5a, 0 0 3px #0a2a5a; }
html body.trodui:not(.mobile) #topLeft .bar.hp::before { font-size: 16px; line-height: 18px; left: 8px; color: #fff; }
html body.trodui:not(.mobile) #topLeft .bar.xp::before { font-size: 11px; line-height: 11px; left: 8px; color: #ffe37a; text-shadow: 0 1px 2px #0a2a5a; }
html body.trodui:not(.mobile) #topLeft .gold-row { margin-top: 8px; padding: 0; border: 0; background: none; gap: 8px; font: 400 21px/1 'Chewy', Georgia, serif; color: #6a4300; }
html body.trodui:not(.mobile) #topLeft .gold-row > #gold { flex: 1 1 0; margin-left: -38px; padding: 7px 12px 7px 40px; border-radius: 999px; background: linear-gradient(#fff3b0, #ffd25a); border: 2px solid #c98a16; box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 3px 0 #9a6a10; }
html body.trodui:not(.mobile) #topLeft .coin { width: 34px; height: 34px; position: relative; z-index: 1; margin-left: -2px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
html body.trodui:not(.mobile) #topLeft .crown-row { flex: 1 1 0; margin-left: 0; padding: 7px 12px 7px 6px; border-radius: 999px; background: linear-gradient(#efe0ff, #c9a2ff); border: 2px solid #7a3fc0; box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 3px 0 #54278a; color: #3d1670; font: inherit; gap: 6px; }
html body.trodui:not(.mobile) #topLeft .gem { width: 30px; height: 30px; margin: -6px 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
html body.trodui:not(.mobile) #topLeft #petBadge, html body.trodui:not(.mobile) #topLeft #seasonBadge { margin-top: 8px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(#12894a, #0b6b34); border: 2px solid #ffd86b; box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 3px 0 #06401f; font-size: 14px; }
html body.trodui:not(.mobile) #topLeft #seasonBadge { background: linear-gradient(#3f9bf0, #1c62c0); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 #103f80; }
html body.trodui:not(.mobile) #topLeft #petBadge .pb-name, html body.trodui:not(.mobile) #topLeft #seasonBadge .pb-name { color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.5); } html body.trodui:not(.mobile) #topLeft #petBadge .pb-sub, html body.trodui:not(.mobile) #topLeft #seasonBadge .pb-sub { color: #fff3c4; }
html body.trodui:not(.mobile) #topLeft > #boost:not(.hidden), html body.trodui:not(.mobile) #topLeft > #buff:not(.hidden) { background: rgba(11,107,52,.1); border-color: #c98a16; color: #13301e; }

/* (5.72) not a "health" bar: nobody is hurt in Saorise, so no heart and no red. A green energy bar with a shamrock leaf. */
html body.trodui #topLeft .bar.hp > div, html body.trodui:not(.mobile) #topLeft .bar.hp > div { background: linear-gradient(#a8f08a, #3fbf4a 45%, #0b8a34); box-shadow: inset 0 3px 0 rgba(255,255,255,.45); }
html body.trodui #topLeft .bar.hp::before, html body.trodui:not(.mobile) #topLeft .bar.hp::before { content: '\2618'; color: #fff; text-shadow: 0 1px 2px #06401f; }
html body.trodui:not(.mobile) #topLeft .bar.hp span { text-shadow: 0 1px 0 #06401f, 0 0 3px #06401f; }
html body.trodui:not(.mobile) #mePortrait { margin: 6px 0 4px 8px; }

/* (5.72) the live portrait sits inside the round frame, over the still picture */
#mePortraitCv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; display: block; pointer-events: none; }

/* (5.72) pearl sweep before packing: the Pets window, shop tabs, mail tabs, and pale words written for dark panels */
html body.trodui .panel.window :is(.pk, .pw-row, .pw-active, .q-row, .qrow, .row, .card, .slot, .box, .cl-row, .cl-card, .st-card, .fm-row, .ck-row, .cr-row, .bs-row) { background: rgba(11,107,52,.06); border-color: rgba(201,138,22,.55); color: #13301e; }
html body.trodui .panel.window :is(.pw-row.on, .pw-active, .pk.stable, .row.on, .card.on, .sel) { background: rgba(255,216,107,.3); border-color: #c98a16; }
html body.trodui .panel.window :is(.pb-bar, .bar, .prog, .meter) { background: #e9e4d0; border-color: #c98a16; }
html body.trodui .panel.window :is(.m, .ph, .dlg-text, .q-reward, .pw-lvl, .sub, .note, .muted, .dim, .desc, small, .lbl) { color: #2f4d3b; }
html body.trodui .panel.window :is(b, strong, .nm, .name, .title, h3, h4) { color: #13301e; }
html body.trodui .panel.window .up { color: #0b6b34; font-weight: 700; }
html body.trodui .panel.window :is(.tab, .tabs button, .dlg-tabs button, .shop-tabs button, .cat, .cats button, .seg button, .chip):not(.btn) { background: linear-gradient(#f7f4e8, #e6e0cb); border: 1px solid #c98a16; color: #13301e; text-shadow: none; box-shadow: none; }
html body.trodui .panel.window :is(.tab, .tabs button, .dlg-tabs button, .shop-tabs button, .cat, .cats button, .seg button, .chip):is(.on, .sel, .active):not(.btn) { background: linear-gradient(#12894a, #0b6b34); border-color: #ffd86b; color: #fff; }
html body.trodui .panel.window .btn :is(b, strong, small, span), html body.trodui .panel.window .btn { color: #fff3c4; }
html body.trodui .panel.window .btn.gold :is(b, strong, small, span), html body.trodui .panel.window .btn.primary :is(b, strong, small, span) { color: #fff; }
html body.trodui .panel.window .cdur { background: rgba(19,48,30,.75); color: #fff; }

/* (5.73) THE PEARL LOOK, second sweep: the windows that were not seen with things in them for 5.73. No wood, no dark boxes:
   pearl backgrounds, ruby buttons and tabs, emerald for the one you are on. */
html body.trodui .panel.window .ml-tabs .tab, html body.trodui .panel.window .ck-tabs button, html body.trodui .btabs button:not(#bDice), html body.trodui .panel.window .chip, html body.trodui .panel.window .cr-tabs button { background: none; border: 0 solid transparent; border-image: url(ui/t/ui-tab-on.webp?v=5.73) 0 70 fill / 0 1.2em / 0 stretch; border-radius: 0; box-shadow: none; padding: 7px 1.25em 8px; color: #fff3c4; text-shadow: 0 1px 2px #000; opacity: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.15; }
html body.trodui .panel.window .ml-tabs .tab.on, html body.trodui .panel.window .ck-tabs button.on, html body.trodui .btabs button.sel:not(#bDice), html body.trodui .panel.window .chip.on, html body.trodui .panel.window .chip.sel, html body.trodui .panel.window .cr-tabs button.on { border-image-source: url(ui/t/ui-btn-big.webp?v=5.73); border-image-slice: 0 80 fill; color: #fff; font-weight: 700; }
html body.trodui .panel.window .ml-tabs .tab:hover, html body.trodui .panel.window .ck-tabs button:hover, html body.trodui .btabs button:not(#bDice):hover, html body.trodui .panel.window .chip:hover, html body.trodui .panel.window .cr-tabs button:hover, html body.trodui .panel.window .ml-tabs .tab.padfocus, html body.trodui .panel.window .ck-tabs button.padfocus, html body.trodui .btabs button.padfocus:not(#bDice), html body.trodui .panel.window .chip.padfocus, html body.trodui .panel.window .cr-tabs button.padfocus { filter: brightness(1.12); }
html body.trodui .panel.window .ck-tabs i { background: rgba(0,0,0,.28); color: #fff; }
/* cooking and farming cards */
html body.trodui .panel.window .ckc, html body.trodui .panel.window .fmc { background: rgba(255,255,255,.55); border: 1px solid rgba(201,138,22,.55); box-shadow: none; }
html body.trodui .panel.window .ckc.ready, html body.trodui .panel.window .fmc.ready { background: rgba(214,240,214,.7); border-color: #0b6b34; box-shadow: none; }
html body.trodui .panel.window .ckc-nm, html body.trodui .panel.window .ckc.ready .ckc-nm { color: #13301e; }
html body.trodui .panel.window .ckc-fx { color: #8a2a2a; } html body.trodui .panel.window .ckc-why { color: #55705f; }
html body.trodui .panel.window .ckc-ico, html body.trodui .panel.window .ckc-ico.fgi, html body.trodui .panel.window .fm-pic { background: radial-gradient(#ffffff, #dff0e2 72%); }
html body.trodui .panel.window .ckc-ico canvas { box-shadow: 0 0 0 3px #c98a16; } html body.trodui .panel.window .ckc.ready .ckc-ico canvas, html body.trodui .panel.window .ckc.ready .ckc-ico.fgi { box-shadow: 0 0 0 3px #0b6b34; }
html body.trodui .panel.window .ckc-ico.fgi { box-shadow: 0 0 0 3px #c98a16; }
html body.trodui .panel.window .ing { background: rgba(255,255,255,.7); border-color: rgba(201,138,22,.6); color: #55705f; } html body.trodui .panel.window .ing.ok { color: #0b6b34; border-color: #0b6b34; background: #e4f5e6; } html body.trodui .panel.window .ing.no { color: #9a1c1c; border-color: #c46a6a; background: #fbeaea; }
html body.trodui .panel.window .ck-station { background: rgba(255,255,255,.55); border: 1px solid rgba(201,138,22,.55); color: #13301e; } html body.trodui .panel.window .ck-station > span { background: radial-gradient(#ffffff, #dff0e2); border-color: #c98a16; }
html body.trodui .panel.window .ck-station b, html body.trodui .panel.window .ck-skill b, html body.trodui .panel.window .fm-nm { color: #0b6b34; } html body.trodui .panel.window .ck-station small, html body.trodui .panel.window .ck-skill, html body.trodui .panel.window .fm-st { color: #2f4d3b; } html body.trodui .panel.window .fmc.ready .fm-st { color: #0b6b34; font-weight: 700; }
html body.trodui .panel.window .ckc-btns .btn.primary { background: none; box-shadow: none; color: #fff; }
/* the story book */
html body.trodui .panel.window .st-chip { background: rgba(255,255,255,.6); border-color: rgba(201,138,22,.6); color: #2f4d3b; } html body.trodui .panel.window .st-chip.fin { color: #0b6b34; } html body.trodui .panel.window .st-chip.on { background: #0b6b34; border-color: #0b6b34; color: #fff; }
html body.trodui .panel.window .st-title { color: #0b6b34; } html body.trodui .panel.window .st-obj { background: rgba(255,255,255,.6); border-left-color: #c98a16; color: #13301e; }
html body.trodui #storyWin [style*="color"], html body.trodui #storyWin .st-act, html body.trodui #storyWin .st-quest { text-shadow: none; }
/* the wardrobe */
html body.trodui .panel.window .wd-out, html body.trodui .panel.window .wd-brew { background: rgba(255,255,255,.55); border-color: rgba(201,138,22,.55); } html body.trodui .panel.window .wd-out > b, html body.trodui .panel.window .wd-brew > b { color: #0b6b34; }
html body.trodui .panel.window .wd-o { background: rgba(255,255,255,.7); border-color: rgba(201,138,22,.5); } html body.trodui .panel.window .wd-row { border-top-color: rgba(201,138,22,.45); padding-left: 8px; }
html body.trodui .panel.window .wd-it, html body.trodui .panel.window .wd-dye { background: rgba(255,255,255,.6); border-color: rgba(201,138,22,.55); color: #13301e; } html body.trodui .panel.window .wd-it.on, html body.trodui .panel.window .wd-dye.on { background: #dff3e2; border-color: #0b6b34; }
html body.trodui .panel.window .wd-sw { border-color: #fff; box-shadow: 0 0 0 1px #c98a16; } html body.trodui .panel.window .wd-sw.none { background: repeating-linear-gradient(45deg, #e9e2cf 0 5px, #fffdf6 5px 10px); }
/* making a hero: a pearl card, not dark glass */
html body.trodui .bpanel { --ink: #13301e; --dim: #2f4d3b; --muted: #55705f; --gold: #0b6b34; --gold-dim: #b07a12; color: #13301e; text-shadow: none; background: none; border: 34px solid transparent; border-image: url(ui/t/ui-win-pearl.webp?v=5.73) 40 fill / 34px / 0 stretch; border-radius: 0; box-shadow: none; padding: 4px 12px 8px; -webkit-backdrop-filter: none; backdrop-filter: none; }
html body.trodui .bpanel h1 { font-family: 'Chewy', var(--serif); color: #0b6b34; text-shadow: none; } html body.trodui .bpanel .crest { color: #c98a16; } html body.trodui .bpanel .tag, html body.trodui .bpanel .bh, html body.trodui .bpanel label, html body.trodui .bpanel .bref { color: #2f4d3b; text-shadow: none; }
html body.trodui .bpanel .opt { background: rgba(255,255,255,.6); border-color: rgba(201,138,22,.55); color: #13301e; } html body.trodui .bpanel .opt.sel { background: #dff3e2; border: 2px solid #0b6b34; } html body.trodui .bpanel .opt small { color: #2f4d3b; } html body.trodui .bpanel .opt em { color: #0b6b34; }
html body.trodui .bpanel .bstats, html body.trodui .bpanel .bcost { background: rgba(255,255,255,.6); border: 1px solid rgba(201,138,22,.45); color: #2f4d3b; } html body.trodui .bpanel .bstats b { color: #13301e; }
html body.trodui .bpanel .chips button, html body.trodui .bpanel .seg button { background: none; border: 0 solid transparent; border-image: url(ui/t/ui-tab-on.webp?v=5.73) 0 70 fill / 0 1.2em / 0 stretch; border-radius: 0; box-shadow: none; padding: 6px 1.25em 7px; color: #fff3c4; text-shadow: 0 1px 2px #000; display: inline-flex; align-items: center; justify-content: center; }
html body.trodui .bpanel .chips button.sel, html body.trodui .bpanel .seg button.sel, html body.trodui .bpanel .chips button.on, html body.trodui .bpanel .seg button.on { border-image-source: url(ui/t/ui-btn-big.webp?v=5.73); border-image-slice: 0 80 fill; color: #fff; font-weight: 700; }
html body.trodui .bpanel input:not([type=checkbox]) { background: #fff; border: 1px solid #c98a16; color: #13301e; } html body.trodui .bpanel input::placeholder { color: #7a8f82; } html body.trodui .bpanel a { color: #0b6b34; }
html body.trodui .bpanel .btn { background: none; border: 0 solid transparent; border-image: url(ui/t/ui-tab-on.webp?v=5.73) 0 70 fill / 0 1.25em / 0 stretch; border-radius: 0; box-shadow: none; padding: 8px 1.3em 9px; color: #fff3c4; text-shadow: 0 1px 2px #000; display: inline-flex; align-items: center; justify-content: center; }
html body.trodui .bpanel .btn.primary { border-image-source: url(ui/t/ui-btn-big.webp?v=5.73); border-image-slice: 0 80 fill; color: #fff; font-weight: 700; }
html body.trodui #wardWin .wd-row, html body.trodui #wardWin > p, html body.trodui #wardBody > p, html body.trodui #wardBody { padding-left: 8px; padding-right: 6px; box-sizing: border-box; }
html body.trodui .bpanel .bh { padding-left: 2px; }
