/* The island's window (world/js/open-world/ui.js): the Harbour, the board, the war room, the chronicle and the Palace.
   The site's navy cards (hunt.css --hx-*) with the Old School studs as ornament; numbers in the pixel font, gold. */
.ow-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0 10px; }
.ow-tabs button { font: 400 16px var(--ui-font, "Jersey 10"), monospace; letter-spacing: .4px; padding: 6px 12px; border-radius: 10px; background: #141e52; color: #bcc5ea; border: 1px solid #34468a; cursor: pointer; }
.ow-tabs button.on { background: linear-gradient(180deg, #ffe066, var(--gold-2, #ffd23f)); color: #0b1340; border-color: #d4a800; }
.ow-tabs button:focus-visible { outline: 2px solid #fff; }
.ow-clock { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.ow-clock .ow-phase { font: 400 18px var(--ui-font, "Jersey 10"), monospace; letter-spacing: .4px; padding: 2px 10px; border-radius: 999px; background: #1d4bff; color: #fff; }
.ow-clock .ow-phase.act { background: #c81e3c; } .ow-clock .ow-phase.pal { background: var(--gold-2, #ffd23f); color: #0b1340; }
.ow-clock small { color: #bcc5ea; font-size: 13px; }
.ow-card { background: var(--hx-studs, none), linear-gradient(180deg, #1a2663, #141e52); border: 1px solid #34468a; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 #000a2e; margin: 0 0 10px; }
.ow-card h3 { margin: 0 0 6px; font: 400 18px var(--display, "Titan One"), sans-serif; color: var(--gold-2, #ffd23f); }
.ow-card p { margin: 0 0 6px; font-size: 15px; line-height: 1.4; }
.ow-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 6px; }
.ow-stat { background: #0f1848; border: 1px solid #34468a; border-radius: 10px; padding: 6px 8px; min-width: 0; }
.ow-stat small { display: block; color: #bcc5ea; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.ow-stat b { display: block; font: 400 24px var(--ui-font, "Jersey 10"), monospace; color: var(--gold-2, #ffd23f); line-height: 1; }
.ow-hours { display: flex; gap: 3px; margin: 4px 0 2px; } .ow-hours i { flex: 1; height: 9px; border-radius: 4px; background: #0a1030; border: 1px solid #34468a; } .ow-hours i.on { background: var(--gold-2, #ffd23f); }
.ow-board { background: #0e2a5a; border: 1px solid #34468a; border-radius: 12px; overflow: hidden; margin: 0 0 10px; }
.ow-board canvas { display: block; width: 100%; height: auto; touch-action: manipulation; image-rendering: pixelated; }
.ow-sea { background: #0e2a5a; border: 1px solid #34468a; border-radius: 12px; overflow: hidden; margin: 0 0 8px; }
.ow-sea canvas { display: block; width: 100%; height: auto; touch-action: none; image-rendering: pixelated; }
.ow-calls { min-height: 44px; max-height: 96px; overflow: auto; font-size: 14px; color: #e8e4da; display: grid; gap: 3px; margin: 0 0 8px; }
.ow-calls div { padding: 3px 8px; border-left: 3px solid var(--gold-2, #ffd23f); background: #0f1848; border-radius: 6px; }
.ow-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr); gap: 12px; align-items: start; }
.ow-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ow-acts .btn { font-size: 13px; padding: 6px 10px; }
.ow-tag { display: inline-block; font: 400 15px var(--ui-font, "Jersey 10"), monospace; letter-spacing: .3px; padding: 1px 8px; border-radius: 999px; background: #34468a; color: #fff; vertical-align: middle; }
.ow-ring { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 400 15px var(--ui-font, "Jersey 10"), monospace; } .ow-r3 { background: #2b4b8a; } .ow-r2 { background: #2f6a3f; } .ow-r1 { background: #7a4a1a; } .ow-r0 { background: #8a7a2a; color: #0b1340; }
.ow-log { display: grid; gap: 5px; max-height: 420px; overflow: auto; padding-right: 4px; }
.ow-log div.l { padding: 6px 8px; border-radius: 8px; background: #0f1848; border-left: 3px solid #34468a; font-size: 14px; }
.ow-log div.l.win { border-color: #3ddc84; } .ow-log div.l.loss { border-color: #ff2e4d; } .ow-log div.l.hero { border-color: var(--gold-2, #ffd23f); background: #2a2410; } .ow-log div.l.ev { border-color: #3a66ff; }
.ow-log .ow-rep { margin-top: 6px; font-size: 13px; color: #bcc5ea; display: grid; gap: 4px; }
.ow-bar { height: 10px; background: #0a1030; border: 1px solid #34468a; border-radius: 999px; overflow: hidden; } .ow-bar i { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, #ff2e4d, var(--gold-2, #ffd23f)); transition: width 1.2s ease; }
.ow-err { color: #ff8da0; font-size: 14px; margin: 6px 0 0; min-height: 1.2em; }
.ow-note { color: #bcc5ea; font-size: 13px; margin: 6px 0 0; }
.ow-big { font: 400 40px var(--ui-font, "Jersey 10"), monospace; color: var(--gold-2, #ffd23f); line-height: 1; }
.ow-hall { display: grid; gap: 6px; } .ow-hall div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; background: #0f1848; border: 1px solid #34468a; border-radius: 8px; font-size: 14px; }
.ow-hall b { color: var(--gold-2, #ffd23f); }
.ow-seats { display: grid; gap: 4px; } .ow-seats div { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 8px; background: #0f1848; border-radius: 8px; } .ow-seats i { width: 12px; height: 12px; border: 1px solid #1f1a24; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: inline-block; }
.ow-seats .btn { margin-left: auto; }
input[type="range"].ow-range { width: 100%; accent-color: var(--gold-2, #ffd23f); }
@media (max-width: 720px) { .ow-grid { grid-template-columns: 1fr; } .ow-tabs button { padding: 6px 9px; font-size: 15px; } .ow-stat b { font-size: 21px; } }
/* The 3D sea (open-world/voyage3d.js): the scene fills the box; the chart, the compass, the names on the coast, the anchor
   button and the hints float over it. */
.ow-sea .ow3 { position: relative; overflow: hidden; }
.ow-sea canvas.ow3-gl { display: block; touch-action: none; image-rendering: auto; cursor: crosshair; }
.ow-sea .ow3-wait { margin: 0; padding: 120px 12px; text-align: center; color: #bcc5ea; font: 400 18px var(--ui-font, "Jersey 10"), monospace; }
.ow3-labels { position: absolute; inset: 0; pointer-events: none; }
.ow3-label { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font: 400 15px var(--ui-font, "Jersey 10"), monospace; letter-spacing: .3px; color: #fff; padding: 1px 8px; border-radius: 999px; background: rgba(11,19,64,.78); border: 1px solid rgba(255,214,10,.75); text-shadow: 0 1px 0 #000; }
.ow3-label.camp { border-color: #ff5a4a; } .ow3-label.taken { border-color: #c8d6e5; color: #dfe6f1; }
.ow-sea canvas.ow3-mini { position: absolute; left: 8px; top: 8px; border-radius: 50%; cursor: pointer; image-rendering: pixelated; touch-action: none; box-shadow: 0 0 0 2px #34468a, 0 3px 0 #000a2e; }
.ow3-compass { position: absolute; right: 10px; top: 10px; width: 54px; height: 54px; border-radius: 50%; background: rgba(11,19,64,.72); border: 2px solid #34468a; pointer-events: none; }
.ow3-compass > * { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; text-align: center; line-height: 16px; font: 400 15px var(--ui-font, "Jersey 10"), monospace; font-style: normal; color: #bcc5ea; }
.ow3-compass b { left: 50%; top: 9px; color: var(--gold-2, #ffd23f); font-weight: 400; } .ow3-compass i:nth-child(2) { left: calc(100% - 9px); top: 50%; } .ow3-compass i:nth-child(3) { left: 50%; top: calc(100% - 9px); } .ow3-compass i:nth-child(4) { left: 9px; top: 50%; }
.ow-sea .ow3-anchor { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 15px; padding: 8px 16px; box-shadow: 0 3px 0 #8a6a00, 0 6px 16px rgba(0,0,0,.35); }
.ow3-toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -8px); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; padding: 5px 12px; border-radius: 999px; background: rgba(11,19,64,.85); border: 1px solid #ff5a4a; color: #fff; font-size: 14px; white-space: nowrap; }
.ow3-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ow3-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); pointer-events: none; padding: 3px 10px; border-radius: 999px; background: rgba(11,19,64,.6); color: #dfe6f1; font-size: 13px; white-space: nowrap; transition: opacity .6s; }
.ow3-hint.gone { opacity: 0; }
@media (max-width: 620px) { .ow3-compass { width: 44px; height: 44px; } .ow3-hint { font-size: 12px; } }
/* Placing a building (Age of Empires style): the bar over the map says what, what it costs and whether it can stand there. */
.isle-place { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); z-index: 9; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 6px 10px; border-radius: 10px; background: rgba(6, 12, 40, 0.92); border: 2px solid #0b1340; box-shadow: inset 0 0 0 1px #ffd23f80, 0 3px 0 rgba(0, 0, 0, .35); color: #fff; font: 400 17px var(--ui-font, "Jersey 10"), monospace; pointer-events: auto; }
.isle-place[hidden] { display: none; }
.isle-place .ip-what b { color: var(--gold-2, #ffd23f); font-weight: 400; }
.isle-place .ip-what small { color: #b9c3ea; font-size: 15px; }
.isle-place .ip-why.ok { color: #7dffa8; }
.isle-place .ip-why.bad { color: #ff9a9a; }
.isle-place .ip-btns { display: inline-flex; gap: 6px; }
.town-insta { margin-left: 4px; background: linear-gradient(180deg, #7ad7ff, #2f8fd6) !important; color: #04122e !important; }
/* The island's board, big (the island box's 🗺 Map): across the window, its sheet underneath. */
.ow-board { position: relative; }
.ow-big { position: absolute; right: 8px; top: 8px; font: inherit; font-size: 15px; cursor: pointer; border-radius: 7px; border: 1px solid #000; background: rgba(20, 29, 64, 0.88); color: #ffe88a; padding: 2px 8px; }
.ow-grid.big { grid-template-columns: 1fr; }
.ow-grid.big > div:last-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 760px) {
  .isle-place { top: auto; bottom: calc(var(--mobile-chat-bottom, 10px) + 120px); font-size: 15px; }
}
/* The town window (open-world/town.js): goods, the land's yield, its buildings with their pictures, soldiers, the market. */
.town-goods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.town-goods span { background: #0f1848; border: 1px solid #34468a; border-radius: 10px; padding: 4px 6px; text-align: center; font-size: 15px; }
.town-goods b { display: block; font: 400 22px var(--ui-font, "Jersey 10"), monospace; color: var(--gold-2, #ffd23f); line-height: 1; }
.town-goods small { display: block; color: #bcc5ea; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.town-h { margin: 12px 0 4px; font: 400 18px var(--display, "Titan One"), sans-serif; color: var(--gold-2, #ffd23f); }
.town-h small { font: 400 15px var(--ui-font, "Jersey 10"), monospace; color: #bcc5ea; margin-left: 6px; }
.town-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.town-list li { display: flex; gap: 10px; align-items: center; background: #141e52; border: 1px solid #34468a; border-radius: 10px; padding: 6px 8px; }
.town-list li > div { min-width: 0; flex: 1; }
.town-art { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: #0f1848; border-radius: 8px; }
.town-art canvas { width: 48px; height: 48px; image-rendering: pixelated; object-fit: contain; }
.town-list small { display: block; color: #bcc5ea; font-size: 13px; margin: 2px 0 4px; }
.town-done { color: #7ee08a; font-size: 13px; } .town-going { color: #ffd23f; font-size: 13px; } .town-none { color: #8a93c0; font-size: 13px; }
.town-list .btn, #townBody .ow-acts .btn { font-size: 13px; padding: 5px 10px; }
.town-offer .sub { margin-bottom: 4px; }
.town-pic { text-align: center; margin: 6px 0 2px; } .town-pic canvas { max-width: 100%; image-rendering: pixelated; }
/* The island window's ranking (open-world/ui.js): development, soldiers as everyone sees them, hexes, Palace points. */
.ow-rank { width: 100%; border-collapse: collapse; font-size: 14px; }
.ow-rank th { text-align: left; color: #bcc5ea; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 2px 4px; }
.ow-rank td { padding: 4px; border-top: 1px solid #26357a; } .ow-rank td b { font: 400 18px var(--ui-font, "Jersey 10"), monospace; color: var(--gold-2, #ffd23f); }
.ow-rank .me td { background: rgba(255, 214, 10, .08); }
.ow-dev { display: inline-block; height: 6px; border-radius: 3px; background: var(--gold-2, #ffd23f); vertical-align: middle; margin-left: 4px; }
@media (max-width: 560px) { .town-goods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The town window's people (open-world/town.js): builders, workers on the land, the next births; each − n + a stepper. */
.town-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
.town-people > div { background: #141e52; border: 1px solid #34468a; border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.town-people > div > b { color: #fff; font-size: 14px; }
.town-people small { color: #bcc5ea; font-size: 12px; line-height: 1.3; }
.town-step { display: inline-flex; align-items: center; gap: 6px; }
.town-step b { font: 400 24px var(--ui-font, "Jersey 10"), monospace; color: var(--gold-2, #ffd23f); min-width: 22px; text-align: center; }
.town-step .btn.small { min-width: 30px; padding: 2px 8px; font-size: 16px; }
.town-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.town-acts:empty { display: none; }
.town-list li.town-focus { border-color: var(--gold-2, #ffd23f); box-shadow: 0 0 0 2px rgba(255, 214, 10, .35); }
@media (max-width: 560px) { .town-people { grid-template-columns: 1fr; } }
/* A work building's row (open-world/town.js): its workers' stepper beside what they make a Tide. */
.town-work { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 2px; }
.town-work small { margin: 0; }
.town-step b small { font-size: 14px; color: #bcc5ea; }
/* The People window (open-world/town.js paintPeople): every job, building by building, each with its villager dressed for
   it, its − n +, what it brings, and 📍 to walk there. */
.ppl-grid { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.ppl-card { display: flex; gap: 8px; align-items: center; background: #141e52; border: 1px solid #34468a; border-radius: 10px; padding: 6px 8px; min-width: 0; }
.ppl-card > div { min-width: 0; flex: 1; }
.ppl-card b { color: #fff; font-size: 15px; }
.ppl-card small { display: block; color: #bcc5ea; font-size: 12px; line-height: 1.3; }
.ppl-card.is-idle, .town-goods span.is-idle { border-color: var(--gold-2, #ffd23f); }
.ppl-card.town-focus { border-color: var(--gold-2, #ffd23f); box-shadow: 0 0 0 2px rgba(255, 214, 10, .35); }
.ppl-pic { flex: none; width: 48px; height: 60px; display: grid; place-items: center; background: #0f1848; border-radius: 8px; overflow: hidden; }
.ppl-pic canvas { width: 48px; height: 60px; image-rendering: pixelated; }
.ppl-ctl { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.ppl-ctl .town-step b { white-space: nowrap; } .ppl-ctl .town-step b small { display: inline; }
.ppl-ctl .ppl-go { margin-left: auto; min-width: 30px; padding: 2px 6px; }
.town-h .btn.small { margin-left: 8px; font-size: 13px; padding: 2px 8px; vertical-align: middle; }
/* The island's world map (open-world/sea-map.js): the Open Sea and the island, a square (owner, 2026-10-19: "it needs to
   be a big square"), in the first map's window (world.css .map-view, .map-wrap, .map-zoom: + and −, the wheel, a pinch,
   a drag; owner, 2026-11-04: "same style"), the whole sea at first; the jumps in a row under it; 🏝 Island / 🗺 Mainland
   tabs on both maps. The lands' names are tier 1, who holds them tier 2 (world.css .map-inner[data-lod]). */
.map-tabs { margin: 0 0 6px; }
.sea-map { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } /* one column, never wider than the window (the zoomed map scrolls inside it) */
.sea-main { background: #3a72c0; } /* beside the square of sea when the window is wider: more sea, the painted sea's blue */
.sea-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; image-rendering: auto; }
.sea-fog { position: absolute; pointer-events: none; image-rendering: auto; filter: blur(2px); }
.sea-jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sea-jumps .btn { padding: 3px 8px; font-size: 14px; }
.sea-label { display: flex; flex-direction: column; align-items: center; font-size: 15px; line-height: 1.05; }
.sea-label small { font-family: var(--ui-font, "Jersey 10"), monospace; font-size: 14px; color: #e8eeff; }
.sea-label.dim { opacity: 0.75; font-size: 13px; }
.sea-label.gold { color: #ffd23f; font-size: 18px; }
.sea-town { position: absolute; box-sizing: border-box; border: 2px solid var(--tc); border-radius: 3px; background: color-mix(in srgb, var(--tc) 28%, transparent); pointer-events: none; }
.sea-town.mine { box-shadow: 0 0 0 1px #000, 0 0 10px var(--tc); }
.sea-label.quay { transform: translate(-50%, 3px); } /* ⚓ To the Shipyard: hung from the sea's top edge, never cut by it */
.sea-inner[data-lod="0"] .sea-label.quay.by-bay { transform: translate(calc(-100% + 14px), 3px); } /* the whole sea: it ends at the passage, clear of the Bay's ring beside it */
/* Kingdom Isles' Bay (kingdom wallets): a gold ring round its islet, the name under the ring; a click on the name sails there */
.sea-home { position: absolute; transform: translate(-50%, -50%); box-sizing: border-box; border: 2px solid #ffd23f; border-radius: 50%; box-shadow: 0 0 0 1px #000, 0 0 10px #ffd23f; pointer-events: none; z-index: 1; }
.sea-home::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #ffd23f; animation: map-ping 1.6s ease-out infinite; }
.sea-home > .sea-label.bay { left: 50%; top: 100%; transform: translate(-50%, 2px); pointer-events: auto; cursor: pointer; }
.sea-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #1b1424; pointer-events: none; }
.sea-dot.holder { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; transform: rotate(45deg); background: #ffd23f; }
/* The island in the HUD (open-world/town.js; owner, 2026-10-19: "the menus for the buldings cant take the entire screen,
   they need to be like the bottom left menus on the main world.. and just like northgard"; 2026-10-20: "the island menu,
   doesnt need a title, and there is double information.. all can be condensed over the left bottom menu.. including the
   construction area"): a 🏝 tab among the bottom-left menu's tabs, a strip of goods where the XP bar sits (it steps aside
   on the island), and the panel (ui.js side panel, tab "isle": .ip). Same stone, gold and navy as the HUD. */
html.on-isle #xpBar { display: none !important; }
#isleTab[hidden] { display: none; }
#isleTab img { image-rendering: pixelated; }
.isle-strip { display: flex; align-items: center; justify-content: space-between; gap: 2px 3px; width: 100%; box-sizing: border-box; padding: 4px 6px 1px; color: #dfe6ff; font-size: 12px; line-height: 1.1; cursor: pointer; white-space: nowrap; overflow: hidden; }
.isle-strip[hidden] { display: none; }
.isle-strip > span { display: inline-flex; align-items: baseline; gap: 2px; }
.isle-strip b { font: 400 14px var(--ui-font, "Jersey 10"), monospace; color: var(--gold-2, #ffd23f); }
.isle-strip .is-tide b { color: #9fd8ff; }
.isle-strip:hover b { text-decoration: underline; }
/* Phones, upright or sideways (owner, 2026-10-21, with a shot of the row cut off after the food: "the items have a proper
   menu"): under the ZAZA WORLD box the goods are a box of their own like the HUD's, each a chip, three to a row, so all of
   them show (your people and the Tide too); a tap opens the 🏝 panel as before. */
@media (max-width: 760px), (orientation: landscape) and (max-height: 500px) and (min-width: 561px) {
  .isle-strip { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 3px; width: max-content; max-width: 100%; margin-top: 2px; padding: 4px; font-size: 12px; background: linear-gradient(180deg, rgba(30, 44, 112, 0.96), rgba(11, 19, 64, 0.96)); border: 2px solid var(--gold-2, #ffd23f); border-radius: 10px; box-shadow: 0 2px 0 #000a2e, 0 4px 10px rgba(0, 0, 0, 0.35); overflow: visible; }
  .isle-strip[hidden] { display: none; }
  .isle-strip > span { align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(159, 176, 240, 0.3); }
  .isle-strip b { font-size: 14px; line-height: 1; }
  html.on-isle .hud-panel:has(> .hud-under > .isle-strip:not([hidden])) { --xp-under-space: 56px; } /* two rows, not the XP row's 28 px */
}
/* the selection panel (ui.js side panel, tab "isle") */
.ip { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #dfe6ff; }
.ip-head { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 210, 63, 0.28); }
.ip-head > div { flex: 1; min-width: 0; }
.ip-head h3 { margin: 0; font: 400 17px var(--display, "Titan One"), sans-serif; color: var(--gold-2, #ffd23f); line-height: 1.1; text-shadow: 2px 2px 0 #000a2e; }
.ip-head small { display: block; color: #bcc5ea; font-size: 13px; margin-top: 2px; }
.ip-lv { display: inline-block; white-space: nowrap; font: 400 14px var(--ui-font, "Jersey 10"), monospace; font-style: normal; color: #2a1a00; background: linear-gradient(180deg, #ffe066, #e8b52a); border-radius: 5px; padding: 0 5px; vertical-align: middle; text-shadow: none; }
.ip-lv small { display: inline !important; color: #5a4000 !important; font-size: 12px !important; margin: 0 !important; }
.ip-art { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: radial-gradient(circle at 50% 70%, #2a3d8a, #0f1848 70%); border: 1px solid #34468a; border-radius: 8px; }
.ip-art canvas { width: 54px; height: 54px; image-rendering: pixelated; }
.ip-art.sm { width: 30px; height: 30px; border-radius: 5px; } .ip-art.sm canvas { width: 28px; height: 28px; }
.ip-pic { flex: none; width: 44px; height: 56px; display: grid; place-items: center; background: #0f1848; border: 1px solid #34468a; border-radius: 8px; overflow: hidden; }
.ip-pic canvas { width: 44px; height: 55px; image-rendering: pixelated; }
.ip-land { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 400 20px var(--ui-font, "Jersey 10"), monospace; color: #2a1a00; background: linear-gradient(180deg, #ffe066, #e8b52a); border: 2px solid #000; }
.ip-x { flex: none; align-self: flex-start; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid #000; background: #141d40; color: #fff; font-size: 13px; cursor: pointer; }
.ip-x:hover { background: #7a2a2a; }
@media (max-width: 760px), (orientation: landscape) and (max-height: 500px) and (min-width: 561px) { .ip-x { display: none; } .ip-head { padding-right: 38px; } } /* a phone's side panel has its own ✕ (world.css: upright or sideways, the same test), so never two */
/* a phone: the island's panel sits over the chat as tall as what it shows, so the town stays in view above it */
.ip-fold-btn { display: none; }
@media (max-width: 760px), (orientation: landscape) and (max-height: 500px) and (min-width: 561px) { .ip-fold-btn { display: inline-flex; margin: 0 0 6px; } .ip-fold:not(.open) { display: none; } } /* a phone: the picked villager's jobs folded away, the map in sight */
@media (max-width: 760px) { .side.open.is-isle { top: auto; max-height: calc(100% - var(--mobile-panel-top, 96px) - var(--mobile-chat-clearance, 220px)); } .side.open.is-isle .side-body { overflow-y: auto; } }
.ip-what { margin: 0; font-size: 13px; color: #bcc5ea; line-height: 1.3; }
.ip-hint, .ip-note { margin: 0; font-size: 13px; color: #dfe6ff; line-height: 1.3; }
.ip-sub { font-size: 14px; color: #ffe88a; margin-top: 2px; } .ip-sub small { color: #9aa6d6; font-size: 12px; margin-left: 4px; }
.ip-work { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px; background: #141e52; border: 1px solid #34468a; border-radius: 8px; }
.ip-work > b { font-weight: 400; color: #fff; font-size: 14px; flex: 1 1 100%; }
.ip-work > small { flex: 1 1 100%; color: #bcc5ea; font-size: 12px; }
.ip-pips { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; }
.ip-pips i { width: 22px; height: 22px; display: grid; place-items: center; font-style: normal; font-size: 13px; border-radius: 5px; background: #0b1240; box-shadow: inset 0 0 0 1px #34468a; }
.ip-pips i.on { background: linear-gradient(180deg, #3d58b8, #22337a); box-shadow: inset 0 0 0 1px #ffd23f; }
.ip-going { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #ffe88a; }
.ip-bar { height: 8px; border-radius: 4px; background: #0b1240; box-shadow: inset 0 0 0 1px #34468a; overflow: hidden; }
.ip-bar i { display: block; height: 100%; background: linear-gradient(180deg, #ffe066, #e8b52a); }
.ip-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ip-stats > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px; padding: 3px 6px; background: #141e52; border: 1px solid #34468a; border-radius: 7px; font-size: 14px; }
.ip-stats b { font: 400 19px var(--ui-font, "Jersey 10"), monospace; color: var(--gold-2, #ffd23f); }
.ip-stats small { color: #9aa6d6; font-size: 11px; }
.ip-stats .is-idle { border-color: var(--gold-2, #ffd23f); }
.ip-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.ip-acts.col { flex-direction: column; }
.ip .btn { font-size: 13px; padding: 4px 8px; }
.ip .btn small { font-size: 11px; opacity: 0.85; }
.ip-foot { display: flex; gap: 4px; justify-content: space-between; margin-top: 2px; padding-top: 6px; border-top: 1px solid #26357a; }
.ip-jobs { display: flex; flex-direction: column; gap: 4px; }
.ip-jobs .btn { text-align: left; }
.ip-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.ip-slots i { width: 16px; height: 16px; border-radius: 4px; background: #0b1240; box-shadow: inset 0 0 0 1px #34468a; }
.ip-slots i.on { background: linear-gradient(180deg, #ffe066, #e8b52a); box-shadow: inset 0 0 0 1px #000; }
.ip-slots span { margin-left: 4px; font-size: 13px; color: #ffe88a; }
.ip-list { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.ip-item { display: flex; align-items: center; gap: 4px; padding: 2px 4px; font: inherit; font-size: 12px; text-align: left; color: #dfe6ff; background: #141e52; border: 1px solid #34468a; border-radius: 6px; cursor: pointer; min-width: 0; }
.ip-item > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-item:hover { border-color: var(--gold-2, #ffd23f); }
.ip-build { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 3px; }
.ip-bt { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 2px; font: inherit; color: #dfe6ff; background: #141d40; border: 1px solid #000; border-radius: 6px; cursor: pointer; }
.ip-bt small { font-size: 10px; line-height: 1.05; text-align: center; }
.ip-bt:hover { border-color: var(--gold-2, #ffd23f); }
.ip-bt.off { opacity: 0.5; filter: grayscale(0.6); }
.ip-ppl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ip-ppl li { display: flex; align-items: center; gap: 6px; padding: 3px 6px; background: #141e52; border: 1px solid #34468a; border-radius: 7px; }
.ip-ppl li.is-idle, .ip-ppl li.town-focus { border-color: var(--gold-2, #ffd23f); }
.ip-ico { width: 20px; text-align: center; }
.ip-nm { flex: 1; min-width: 0; font-size: 14px; }
.ip-nm small { display: block; color: #9aa6d6; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-ppl .town-step b { font-size: 20px; min-width: 18px; }
.ip-ppl .town-step .btn.small { min-width: 24px; padding: 1px 6px; font-size: 14px; }
.ip .ow-err:empty { display: none; }

/* the panel's home (homePanel): the goods with what a Tide brings, the job chips, the construction area */
.ip-goods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.ip-goods > span { display: flex; align-items: baseline; justify-content: center; gap: 3px; padding: 3px 2px; border-radius: 7px; background: #141e52; border: 1px solid #34468a; font-size: 13px; }
.ip-goods b { font: 400 18px var(--ui-font, "Jersey 10"), monospace; color: var(--gold-2, #ffd23f); }
.ip-goods small { font-size: 11px; color: #9aa6d6; } .ip-goods small.pos { color: #7ee08a; } .ip-goods small.neg { color: #ff8a8a; }
.ip-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.ip-chip { display: inline-flex; align-items: baseline; gap: 2px; padding: 1px 6px; font: inherit; font-size: 14px; color: #fff; cursor: pointer; border-radius: 6px; border: 1px solid #000; background: #141d40; }
.ip-chip b { font-weight: 400; color: var(--gold-2, #ffd23f); } .ip-chip small { color: #8a93c0; font-size: 11px; }
.ip-chip.is-idle { background: linear-gradient(180deg, #ffe066, #e8b52a); } .ip-chip.is-idle, .ip-chip.is-idle b, .ip-chip.is-idle small { color: #2a1a00; }
.ip-chip:hover { border-color: var(--gold-2, #ffd23f); }
.ip-bt em { font-style: normal; font-size: 10px; color: #ffe88a; line-height: 1.05; text-align: center; }
.ip-bt.off em { color: #ff9a9a; }
.ip-home { padding-top: 6px; border-top: 1px solid #26357a; }
