/* Little Wilds interface skin (owner's reference sheet, 2026-11-15): deep navy windows in a bronze-and-gold frame,
   the title on a blue banner that sits on the top edge, a round red close button, green action buttons, dark
   inset slots, round bronze HUD buttons and gold-rimmed resource plates. Loaded last; it only restyles, the
   structure and the names stay the game's own. */
#companion{
 --fx-ink:#0b1322;--fx-navy:#15213a;--fx-navy-hi:#213358;--fx-slot:#0e1829;
 --fx-gold:#e9b64a;--fx-gold-hi:#ffe9a3;--fx-bronze:#9a6a26;--fx-bronze-dark:#4a2c0c;
 --fx-blue:#2f6fd0;--fx-blue-hi:#6fb1ff;--fx-green:#44b53c;--fx-green-hi:#8be36a;--fx-green-dark:#1d6b1f;
 --fx-red:#d6392b;--fx-text:#f8efd6;--fx-muted:#b9c4d6;
 --fx-frame:0 0 0 2px var(--fx-bronze-dark),0 0 0 5px var(--fx-bronze),0 0 0 6px var(--fx-gold-hi),0 0 0 8px var(--fx-bronze-dark),0 18px 46px #000b;
}

/* ---- Windows: the drawer, the building card, dialogs ---- */
#companion .world-controls-drawer,
#companion .world-building-card,
#companion dialog.soldier-info-dialog,
#companion dialog{
 background:
  radial-gradient(120% 90% at 50% 0%,var(--fx-navy-hi),var(--fx-navy) 55%,var(--fx-ink))!important;
 border:2px solid var(--fx-gold)!important;border-radius:16px!important;box-shadow:var(--fx-frame)!important;color:var(--fx-text)!important;
}
/* The title: a blue banner at the top of the frame. */
#companion .world-popup-header,#companion #companionControlsDrawer .world-popup-header,#companion .world-building-card .world-popup-header{
 position:relative!important;z-index:3;display:flex!important;justify-content:center!important;align-items:center;flex:0 0 auto;overflow:visible!important;
 width:max-content;max-width:calc(100% - 110px);min-height:34px!important;margin:10px auto 10px!important;padding:5px 28px!important;
 background:linear-gradient(180deg,var(--fx-blue-hi),var(--fx-blue) 45%,#1b3f8a)!important;
 border:2px solid var(--fx-gold)!important;border-radius:10px!important;
 box-shadow:0 0 0 2px var(--fx-bronze-dark),inset 0 1px 0 #ffffff66,0 4px 10px #0009!important;
}
#companion .world-popup-header :is(strong,div,h2){
 font-size:17px!important;font-weight:800!important;letter-spacing:.02em;color:#fff!important;text-shadow:0 2px 0 #10254f,0 0 8px #0b1c3f!important;
 text-transform:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important;
}
/* Close and Back: the pack's round gold buttons (a red one with a cross; one with a gold arrow, turned to point
   left), wherever a window, a card, the map or a land away from home has them. */
#companion button[data-gold-icon]:is(button,:hover,:active,:focus-visible):is([data-gold-icon="close"],[data-gold-icon="back"]){
 width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:50%!important;padding:0!important;
 border:0!important;box-shadow:none!important;color:transparent!important;font-size:0!important;filter:drop-shadow(0 3px 4px #000b);
 display:grid!important;place-items:center;
}
#companion button[data-gold-icon="close"]:is(button,:hover,:active,:focus-visible){background:url('/ui/ornaments/icon-close.webp?v=1') center/100% 100% no-repeat!important}
#companion button[data-gold-icon="back"]:is(button,:hover,:active,:focus-visible){background:url('/ui/ornaments/icon-back.webp?v=1') center/100% 100% no-repeat!important}
/* The chat's own close buttons are smaller: its panel is small. */
#companion#companion .companion-chat .chat-close[data-gold-icon]{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;margin-left:auto}
@media (pointer:coarse){#companion#companion .companion-chat .chat-close[data-gold-icon]{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}}
#companion .window-pins>.pinned-close{top:12px!important;right:14px!important;z-index:5}
#companion .window-pins>.pinned-back{top:12px!important;left:14px!important;z-index:5}
#companion button[data-gold-icon]:is(:hover,:focus-visible){filter:brightness(1.15)}

/* ---- Buttons ---- */
/* Actions that do something (build, craft, buy, upgrade, collect): green. */
#companion button.detail-action:not(:has(img)):not(.training-end),#companion .companion-blueprint>button,#companion .recipe-row button,#companion .companion-raid-button,#companion .world-building-content :is(.rest-choice,.world-building-upgrade)>button{
 background:linear-gradient(180deg,var(--fx-green-hi),var(--fx-green) 48%,#2b8f2a)!important;border:2px solid var(--fx-green-dark)!important;border-radius:9px!important;
 box-shadow:0 0 0 1px #0d2c10,inset 0 2px 0 #ffffff59,0 3px 0 #164d18!important;color:#fff!important;font-weight:800!important;
 text-shadow:0 1px 0 #114016,0 0 6px #0f3a12!important;min-height:36px;padding:5px 18px;
}
#companion :is(button.detail-action:not(:has(img)):not(.training-end),.companion-blueprint>button,.recipe-row button,.companion-raid-button):is(:hover,:focus-visible):enabled{filter:brightness(1.1)}
#companion :is(button.detail-action:not(:has(img)):not(.training-end),.companion-blueprint>button,.recipe-row button,.companion-raid-button):active:enabled{transform:translateY(2px);box-shadow:0 0 0 1px #0d2c10,inset 0 2px 0 #ffffff40!important}
#companion :is(button.detail-action:not(:has(img)):not(.training-end),.companion-blueprint>button,.recipe-row button,.companion-raid-button):disabled{
 background:linear-gradient(180deg,#56637a,#39445a)!important;border-color:#232c3d!important;box-shadow:0 0 0 1px #121826,inset 0 1px 0 #ffffff26!important;
 color:#b7c0cf!important;text-shadow:none!important;opacity:1!important;
}
/* Small round chips (pose previews, graphics switch, paging): blue when chosen. */
#companion .dev-graphics-button{background:linear-gradient(180deg,#22365d,#15213a)!important;border:2px solid var(--fx-bronze)!important;color:var(--fx-text)!important;border-radius:8px!important}
#companion .dev-graphics-button[aria-pressed=true]{background:linear-gradient(180deg,var(--fx-blue-hi),var(--fx-blue))!important;border-color:var(--fx-gold-hi)!important;color:#fff!important;outline:0!important}
#companion select{background:var(--fx-slot)!important;border:2px solid var(--fx-bronze)!important;border-radius:8px!important;color:var(--fx-text)!important}

/* ---- Slots and cards: dark insets with a bronze rim ---- */
#companion :is(.companion-blueprint,.recipe-card,.soldier-stat,.soldier-skills,.developer-action,.companion-rival,.inventory-slot,.farming-panel,.rest-choice,.world-building-metrics,.dev-graphics,.companion-world-activity,.land-upgrade-panel){
 background:linear-gradient(180deg,#132038,var(--fx-slot))!important;border:2px solid #6b4a1c!important;border-radius:10px!important;
 box-shadow:inset 0 0 0 1px #f1c75e2e,inset 0 6px 14px #0006!important;color:var(--fx-text);
}
#companion :is(.companion-blueprint,.recipe-card,.developer-action,.inventory-slot):is(:hover,:focus-within){border-color:var(--fx-gold)!important}
#companion .inventory-slot.selected,#companion .inventory-slot[aria-pressed=true]{border-color:var(--fx-gold-hi)!important;box-shadow:0 0 0 2px #f1c75e88,inset 0 0 12px #f1c75e44!important}
#companion #companionBlueprints .companion-blueprint-art.model-card{border:2px solid var(--fx-gold)!important;border-radius:9px!important;background:radial-gradient(circle at 50% 45%,#2c4a80,#101b33)!important}
#companion :is(.companion-blueprint strong,.recipe-title strong,.soldier-skills dt,.dev-graphics strong){color:var(--fx-gold-hi)!important}
#companion :is(.companion-blueprint p.sub,.recipe-title small,.build-category-description,.sub){color:var(--fx-muted)}
#companion .soldier-stat strong{color:#fff!important}
#companion .soldier-badge{background:var(--fx-slot)!important;border:2px solid var(--fx-bronze)!important}
#companion .game-rewards>*{border-radius:7px}

/* ---- HUD: pet badge, resources, the dock ---- */
#companion .world-topbar #companionHudPet{
 background:linear-gradient(180deg,#1c2b47,var(--fx-ink))!important;border:2px solid var(--fx-gold)!important;border-radius:14px!important;
 box-shadow:0 0 0 2px var(--fx-bronze-dark),inset 0 1px 0 #ffffff26,0 4px 12px #0009!important;
}
#companion .world-topbar #companionHudPet #companionHudAvatar{border-radius:50%!important;border:2px solid var(--fx-gold-hi)!important;box-shadow:0 0 0 2px var(--fx-bronze-dark)!important;background:radial-gradient(circle at 50% 35%,#3d68b0,#111c33)!important}
#companion .pet-level-badge{background:linear-gradient(180deg,#22365d,#111c33)!important;border:2px solid var(--fx-bronze)!important;border-radius:9px!important;color:#fff!important}
#companion .pet-level-badge strong{color:var(--fx-gold-hi)!important}
#companion .pet-hud-track{background:#060b14!important;border:1px solid #33425e;height:9px!important}
#companion [data-resource="hp"] .pet-hud-fill,#companion [data-resource="health"] .pet-hud-fill{background:linear-gradient(180deg,#ff8f7c,#d6392b)!important}
#companion [data-resource="energy"] .pet-hud-fill{background:linear-gradient(180deg,#b5f07a,#44b53c)!important}
#companion [data-resource="mana"] .pet-hud-fill{background:linear-gradient(180deg,#9fd0ff,#2f6fd0)!important}
#companion #companionResources .resource-chip{
 background:linear-gradient(180deg,#1d2c49,var(--fx-ink))!important;border:2px solid var(--fx-gold)!important;border-radius:999px!important;
 box-shadow:0 0 0 2px var(--fx-bronze-dark),inset 0 1px 0 #ffffff26,0 3px 8px #0008!important;color:#fff!important;padding:3px 12px 3px 6px!important;
}
#companion #companionResources .resource-chip strong{color:#fff!important;font-weight:800!important}
#companion #companionResources .resource-chip small{color:var(--fx-muted)!important}
/* The dock: round bronze buttons with the name on a small plate below, as on the reference. */
#companion .world-game-dock{background:none!important;border:0!important;box-shadow:none!important;gap:10px!important;align-items:flex-end!important;height:auto!important;min-height:0!important;bottom:8px!important;top:auto!important}
#companion .world-game-dock>button{
 display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;min-width:60px!important;min-height:0!important;
 padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;height:auto!important;
}
#companion .world-game-dock>button:is(.active,[aria-expanded=true],[aria-pressed=true],:hover,:focus-visible,:active){background:none!important;border:0!important;box-shadow:none!important;outline:0!important}
#companion .world-game-dock>button .hud-symbol{
 width:50px!important;height:50px!important;min-width:50px!important;max-width:50px!important;flex:0 0 50px!important;border-radius:50%!important;
 background-color:#162443!important;background-size:64%!important;background-position:center!important;background-repeat:no-repeat!important;
 border:3px solid var(--fx-bronze)!important;box-shadow:0 0 0 2px var(--fx-bronze-dark),inset 0 0 0 2px var(--fx-gold-hi),inset 0 -8px 12px #0007,0 4px 8px #000a!important;
}
#companion .world-game-dock>button .hud-name{
 margin-top:-7px!important;padding:2px 9px!important;border-radius:7px;background:linear-gradient(180deg,#22365d,#0f1a30);border:1px solid var(--fx-bronze);
 font-size:10.5px!important;font-weight:800!important;color:#fff!important;text-shadow:0 1px 0 #000;position:relative;z-index:1;
}
#companion .world-game-dock>button:is(.active,[aria-expanded=true]) .hud-symbol{border-color:var(--fx-gold-hi)!important;background-color:#2a56a8!important;box-shadow:0 0 0 2px var(--fx-bronze-dark),inset 0 0 0 2px #fff6,0 0 14px #6fb1ffaa!important}
#companion .world-game-dock>button:is(:hover,:focus-visible) .hud-symbol{filter:brightness(1.18)}
#companion .world-game-dock .hud-separator{display:none!important}
@media(max-width:900px),(max-height:430px){
 #companion .world-game-dock{gap:4px!important}
 #companion .world-game-dock>button{min-width:46px!important}
 #companion .world-game-dock>button .hud-symbol{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;flex-basis:38px!important}
 #companion .world-game-dock>button .hud-name{font-size:8.5px!important;padding:1px 5px!important}
 #companion .world-popup-header,#companion #companionControlsDrawer .world-popup-header,#companion .world-building-card .world-popup-header{margin:6px auto!important;padding:3px 16px!important;min-height:26px!important}
 #companion .world-popup-header :is(strong,div,h2){font-size:13px!important}
}

/* ---- World map: the map is its own screen, without the home HUD ---- */
html.world-map-open #companion .world-topbar,
html.world-map-open #companion .world-game-dock,
html.world-map-open #companion .quick-item-bar{display:none!important}

/* Picture buttons (rotate, relocate, remove) keep their own art on a dark bronze-rimmed plate. */
#companion button.detail-action:has(img){background:linear-gradient(180deg,#22365d,#111c33)!important;border:2px solid var(--fx-bronze)!important;border-radius:10px!important;box-shadow:inset 0 1px 0 #ffffff26!important}

/* ---- The icon of a window sits in a bronze medallion on the left end of its title banner ---- */
#companion #companionControlsDrawer:is([data-panel="Care"],[data-panel="Build"],[data-panel="Explore"],[data-panel="Inventory"],[data-panel="Profile"]) .world-popup-header{padding-left:46px!important}
#companion #companionControlsDrawer:is([data-panel="Care"],[data-panel="Build"],[data-panel="Explore"],[data-panel="Inventory"],[data-panel="Profile"]) .world-popup-header::before{
 content:"";position:absolute;left:-12px;top:50%;width:46px;height:46px;transform:translateY(-50%);border-radius:50%;
 background:#162443 center/66% no-repeat;border:3px solid var(--fx-bronze);
 box-shadow:0 0 0 2px var(--fx-bronze-dark),inset 0 0 0 2px var(--fx-gold-hi),0 3px 8px #000a;
}
#companion #companionControlsDrawer[data-panel="Care"] .world-popup-header::before{background-image:url('/vectors/approved/hud-care-v1.webp')}
#companion #companionControlsDrawer[data-panel="Build"] .world-popup-header::before{background-image:url('/vectors/approved/hud-build-v1.webp')}
#companion #companionControlsDrawer[data-panel="Explore"] .world-popup-header::before{background-image:url('/vectors/approved/hud-activities-v1.webp')}
#companion #companionControlsDrawer[data-panel="Inventory"] .world-popup-header::before{background-image:url('/vectors/approved/hud-inventory-v1.webp')}
#companion #companionControlsDrawer[data-panel="Profile"] .world-popup-header::before{background-image:url('/vectors/approved/hud-profile-v1.webp')}

/* ---- Raids and practice: the battle panel, the clock, the skill button ---- */
#companion .raid-battle-panel{
 background:linear-gradient(180deg,#1c2b47f2,#0b1322f2)!important;border:2px solid var(--fx-gold)!important;border-radius:14px!important;
 box-shadow:0 0 0 2px var(--fx-bronze-dark),0 0 0 4px var(--fx-bronze),0 10px 26px #000a!important;color:var(--fx-text)!important;
}
#companion .raid-battle-panel :is(h2,h3,strong){color:var(--fx-gold-hi)}
#companion .raid-timer{
 display:inline-block;padding:5px 18px!important;border-radius:10px;border:2px solid var(--fx-gold)!important;color:#fff!important;font-weight:800;
 background:linear-gradient(180deg,var(--fx-blue-hi),var(--fx-blue) 45%,#1b3f8a)!important;box-shadow:0 0 0 2px var(--fx-bronze-dark),inset 0 1px 0 #ffffff66,0 4px 10px #0009!important;text-shadow:0 2px 0 #10254f;
}
#companion .raid-timer.critical{background:linear-gradient(180deg,#ff8a6f,var(--fx-red) 50%,#8a1810)!important;text-shadow:0 2px 0 #5a0e08}
/* A button with nothing written on it is an icon button of the older theme: it keeps that theme's art. */
#companion button.detail-action:empty{background:revert-layer!important;border:revert-layer!important;box-shadow:none!important}

/* ---- Notices ---- */
#toast{
 background:linear-gradient(180deg,#22365d,#0f1a30)!important;border:2px solid #e9b64a!important;border-radius:12px!important;color:#f8efd6!important;font-weight:700;
 box-shadow:0 0 0 2px #4a2c0c,0 10px 28px #000b!important;
}
/* Location strips inside the Activities window. */
#companion .activity-location-header{background:linear-gradient(180deg,#132038,var(--fx-slot))!important;border:2px solid #6b4a1c!important;border-radius:10px!important}

/* ---- Tab rows: filters and views as a row of chips, the chosen one blue ---- */
#companion .fx-tabs,#companion .inventory-tabs{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
#companion .fx-tabs{flex:1 1 100%}
#companion :is(.fx-tab,.inventory-tabs>button){
 min-height:30px!important;padding:4px 12px!important;border-radius:8px!important;border:2px solid var(--fx-bronze)!important;
 background:linear-gradient(180deg,#22365d,#111c33)!important;box-shadow:inset 0 1px 0 #ffffff26!important;color:var(--fx-muted)!important;font-size:12px;font-weight:700;
}
#companion :is(.fx-tab[aria-selected=true],.inventory-tabs>button.active){
 background:linear-gradient(180deg,var(--fx-blue-hi),var(--fx-blue) 50%,#1b3f8a)!important;border-color:var(--fx-gold-hi)!important;color:#fff!important;
 box-shadow:inset 0 1px 0 #ffffff66,0 0 10px #6fb1ff66!important;text-shadow:0 1px 0 #10254f;
}
#companion :is(.fx-tab,.inventory-tabs>button):is(:hover,:focus-visible){filter:brightness(1.15)}
#companion .inventory-filters{display:flex;flex-wrap:wrap;gap:8px}
#companion .inventory-filters input[type=search]{flex:1 1 180px;background:var(--fx-slot)!important;border:2px solid var(--fx-bronze)!important;border-radius:8px!important;color:var(--fx-text)!important;min-height:32px;padding:4px 10px}
#companion .inventory-item-detail{background:linear-gradient(180deg,#132038,var(--fx-slot))!important;border:2px solid #6b4a1c!important;border-radius:10px!important;box-shadow:inset 0 0 0 1px #f1c75e2e!important}
@media(max-width:900px),(max-height:430px){#companion .fx-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}#companion .fx-tab{flex:0 0 auto;padding:3px 9px!important;font-size:11px}}

/* ---- Shops: the purse, then one row per item with its price and a Buy button ---- */
#companion .fx-shop{display:grid;gap:8px;max-width:640px;margin:0 auto;width:100%}
#companion .fx-shop-purse{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:var(--fx-muted);font-size:12px}
#companion .fx-shop-list{display:grid;gap:6px}
#companion .fx-shop-row{
 display:grid;grid-template-columns:52px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:6px 10px 6px 6px;border-radius:10px;
 background:linear-gradient(180deg,#132038,var(--fx-slot));border:2px solid #6b4a1c;box-shadow:inset 0 0 0 1px #f1c75e2e,inset 0 6px 14px #0006;
}
#companion .fx-shop-row:is(:hover,:focus-within){border-color:var(--fx-gold)}
#companion .fx-shop-icon{width:52px;height:52px;object-fit:contain;border-radius:8px;background:radial-gradient(circle at 50% 40%,#2c4a80,#101b33);border:2px solid var(--fx-bronze);box-sizing:border-box;padding:3px}
#companion .fx-shop-text{display:grid;gap:2px;min-width:0}
#companion .fx-shop-text strong{color:var(--fx-gold-hi);font-size:14px}
#companion .fx-shop-text small{color:var(--fx-muted);font-size:11px;line-height:1.3}
#companion .fx-shop-row .game-rewards{margin:0;white-space:nowrap}
#companion .fx-shop-row button.detail-action{min-width:72px}
#companion .fx-shop-heading{margin:10px 0 4px;color:var(--fx-gold);font-size:13px;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:540px){#companion .fx-shop-row{grid-template-columns:40px minmax(0,1fr) auto;row-gap:4px}#companion .fx-shop-icon{width:40px;height:40px}#companion .fx-shop-row button.detail-action{grid-column:2/-1;justify-self:end}}

/* ---- Training school ---- */
/* The entry screen: a framed hall with its name on a banner. */
#companion .training-dock.school-entry{
 inset:10px!important;width:auto!important;height:auto!important;border:2px solid var(--fx-gold)!important;border-radius:16px!important;
 background:radial-gradient(110% 80% at 50% 10%,var(--fx-navy-hi),var(--fx-navy) 55%,var(--fx-ink))!important;box-shadow:var(--fx-frame),0 0 0 100vmax #060b14!important;
}
#companion .training-dock.school-entry>:is(h2,h3,strong):first-child,#companion .training-dock:not(.school-entry)>:is(h2,h3,strong):first-child{
 align-self:center;padding:5px 28px;border-radius:10px;border:2px solid var(--fx-gold);color:#fff!important;font-size:17px!important;font-weight:800;margin:0 0 6px;
 background:linear-gradient(180deg,var(--fx-blue-hi),var(--fx-blue) 45%,#1b3f8a);box-shadow:0 0 0 2px var(--fx-bronze-dark),inset 0 1px 0 #ffffff66,0 4px 10px #0009;text-shadow:0 2px 0 #10254f;
}
#companion .training-dock .school-entry-button{filter:drop-shadow(0 8px 14px #000a);transition:transform .15s}
#companion .training-dock .school-entry-button:is(:hover,:focus-visible){transform:translateY(-3px) scale(1.03)}
/* Choosing a practice opponent: the same frame as every window, one slot per opponent. */
#companion .training-dock:not(.school-entry){
 background:linear-gradient(180deg,#1c2b47f5,#0b1322f5)!important;border:2px solid var(--fx-gold)!important;border-radius:14px!important;
 box-shadow:0 0 0 2px var(--fx-bronze-dark),0 0 0 4px var(--fx-bronze),0 10px 26px #000a!important;color:var(--fx-text)!important;display:flex;flex-direction:column;
}
#companion .training-bot-card{
 background:linear-gradient(180deg,#132038,var(--fx-slot))!important;border:2px solid #6b4a1c!important;border-radius:10px!important;
 box-shadow:inset 0 0 0 1px #f1c75e2e!important;padding:7px 9px!important;margin:3px 0!important;
}
#companion .training-bot-card strong{color:var(--fx-gold-hi)!important}
#companion .training-bot-card small{color:var(--fx-muted)!important}
/* Missions: the list, and one mission with its objectives. */
#companion .school-missions>h2:first-child{display:none}
#companion .school-mission-card{
 background:linear-gradient(180deg,#132038,var(--fx-slot))!important;border:2px solid #6b4a1c!important;border-radius:12px!important;
 box-shadow:inset 0 0 0 1px #f1c75e2e,inset 0 6px 14px #0006!important;color:var(--fx-text)!important;
}
#companion .school-mission-card:is(:hover,:focus-visible){border-color:var(--fx-gold)!important}
#companion .school-mission-card :is(strong,h3),#companion .school-mission-hero h2{color:var(--fx-gold-hi)!important}
#companion .school-mission-goals{display:grid;gap:5px;padding:0;list-style:none}
#companion .school-mission-goals li{
 background:linear-gradient(180deg,#132038,var(--fx-slot))!important;border:2px solid #6b4a1c!important;border-radius:9px!important;
 padding:6px 10px!important;display:flex;justify-content:space-between;gap:10px;color:var(--fx-text)!important;
}
#companion .school-mission-goals li.done{border-color:#3f9a45!important;color:#b9f0b0!important}
#companion .school-mission-actions{display:flex;gap:10px;align-items:center;justify-content:center}
@media(max-width:900px),(max-height:430px){
 #companion .training-dock>:is(h2,h3,strong):first-child{font-size:13px!important;padding:3px 14px!important}
}

/* The Map button is the last one in the dock, right of Dev; it carries the owner's map picture. */
#companion #companionMapToggle .hud-symbol{background-image:url('/companions/modern/map-icon.webp')!important;background-size:96%!important}

/* Care: the heading and the action tiles sit in the middle of the window. */
#companion #companionPanelCare>.row{justify-content:center!important}
#companion #companionActivities{display:flex!important;flex-wrap:wrap;justify-content:center}
#companion #companionActivities>.care-action{flex:0 0 86px}

/* ---- Skills window: a skill tree on the left, the chosen skill on the right ---- */
#companion .care-skills-panel{max-width:760px;margin-inline:auto;padding:8px}
#companion .skill-tree-window{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(210px,1fr);gap:12px;align-items:stretch}
#companion .skill-tree,#companion .skill-tree-detail{border:2px solid var(--fx-bronze);border-radius:12px;background:radial-gradient(circle at 50% 30%,#1d3364,#0d1730 72%);box-shadow:inset 0 0 0 1px #0008,inset 0 0 26px #0009}
#companion .skill-tree{display:grid;justify-items:center;align-content:start;padding:14px 10px 16px}
#companion .skill-tree-root{position:relative;padding-bottom:22px}
#companion .skill-tree-root:empty{display:none}
/* The trunk under the root and the bar that forks to the three branches. */
#companion .skill-tree-root::after{content:"";position:absolute;left:50%;bottom:0;width:3px;height:22px;margin-left:-1.5px;background:var(--fx-bronze)}
#companion .skill-tree-branches{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;width:100%;padding-top:20px}
#companion .skill-tree-branches::before{content:"";position:absolute;top:0;left:16.666%;right:16.666%;height:3px;background:var(--fx-bronze)}
#companion .skill-tree-branch{position:relative;display:grid;justify-items:center;align-content:start;gap:18px}
#companion .skill-tree-branch::before{content:"";position:absolute;top:-20px;left:50%;width:3px;height:20px;margin-left:-1.5px;background:var(--fx-bronze)}
#companion .skill-tree-branch-name{padding:2px 12px;border:1px solid var(--fx-bronze);border-radius:8px;background:linear-gradient(180deg,var(--fx-blue-hi),var(--fx-blue));color:#fff;font:800 11px/1.5 Georgia,serif;letter-spacing:.04em;text-shadow:0 1px 0 #000}
#companion #companionControlsDrawer .skill-node{
 position:relative;display:grid!important;place-items:center;width:62px!important;height:62px!important;min-width:0!important;min-height:0!important;padding:0!important;border-radius:50%!important;
 border:3px solid var(--fx-bronze)!important;background:radial-gradient(circle,#27457f,#101b36)!important;box-shadow:0 0 0 2px var(--fx-bronze-dark),0 3px 6px #000a!important;overflow:visible!important;cursor:pointer;
}
/* The link up to the node (or the branch name) above. */
#companion .skill-tree-branch .skill-node::before{content:"";position:absolute;left:50%;bottom:100%;width:3px;height:18px;margin:0 0 3px -1.5px;background:var(--fx-bronze);pointer-events:none}
#companion .skill-node img{width:44px;height:44px;object-fit:contain;border-radius:50%;pointer-events:none}
#companion #companionControlsDrawer .skill-node[data-state=learned]{border-color:var(--fx-gold-hi)!important;box-shadow:0 0 0 2px var(--fx-bronze-dark),0 0 12px #ffd76a88!important}
#companion #companionControlsDrawer .skill-node[data-state=ready]{border-color:#7fc4ff!important;box-shadow:0 0 0 2px var(--fx-bronze-dark),0 0 12px #6fb1ffaa!important}
#companion .skill-node[data-state=locked] img{filter:grayscale(.9) brightness(.55)}
#companion .skill-node[data-state=ready] img{filter:grayscale(.35) brightness(.85)}
#companion #companionControlsDrawer .skill-node[aria-pressed=true]{outline:3px solid #fff!important;outline-offset:3px}
#companion #companionControlsDrawer .skill-node:is(:hover,:focus-visible){filter:brightness(1.18)}
/* A small padlock on a skill that is not learned yet. */
#companion .skill-node-lock{position:absolute;right:-5px;bottom:-5px;width:22px;height:22px;border-radius:50%;border:2px solid var(--fx-bronze);background:#101b36 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none' stroke='%23e8d5a3' stroke-width='2.2'/%3E%3Crect x='6' y='11' width='12' height='9' rx='2' fill='%23e8d5a3'/%3E%3C/svg%3E") center/14px no-repeat;pointer-events:none}
#companion .skill-node[data-state=ready] .skill-node-lock{border-color:#7fc4ff}
#companion .skill-tree-detail{display:grid;justify-items:center;align-content:start;gap:7px;padding:14px 12px;text-align:center}
#companion .skill-tree-detail-art{width:74px;height:74px;object-fit:contain;border-radius:50%;border:3px solid var(--fx-gold-hi);background:radial-gradient(circle,#27457f,#101b36);box-shadow:0 0 0 2px var(--fx-bronze-dark),0 0 14px #ffd76a66}
#companion .skill-tree-detail h3{margin:0;color:var(--fx-gold-hi,#ffe29a);font:800 17px/1.2 Georgia,serif;text-shadow:0 1px 0 #000}
#companion .skill-tree-text{margin:0;color:var(--fx-text);font-size:13px;line-height:1.35}
#companion .skill-tree-stats{display:grid;gap:3px;width:100%;margin:2px 0 0;padding:0;list-style:none}
#companion .skill-tree-stats li{display:flex;justify-content:space-between;gap:10px;padding:3px 9px;border-radius:6px;background:#0a1228aa;font-size:12px;color:#c9d6f2}
#companion .skill-tree-stats strong{color:#fff}
#companion .skill-tree-count{color:#c9d6f2;font-size:12px}
#companion .skill-tree-state{margin:0;padding:5px 16px;border:2px solid var(--fx-bronze);border-radius:9px;background:linear-gradient(180deg,#22365d,#15213a);color:#d6c8a2;font:800 13px/1.3 Georgia,serif}
#companion .skill-tree-state[data-state=learned]{border-color:var(--fx-gold-hi);background:linear-gradient(180deg,#3f9a3a,#236b25);color:#fff;text-shadow:0 1px 0 #0009}
#companion .skill-tree-state[data-state=ready]{border-color:#7fc4ff;color:#d7ecff}
#companion .skill-tree-hint{margin:8px 0 0!important;text-align:center}
/* Talents: seven forks of two paths under the skill branches (pet_talents), four to a row. */
#companion .talent-forks-name{margin-top:16px}
#companion .talent-forks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 3px;width:100%;margin-top:8px}
#companion .talent-fork{display:grid;justify-items:center;gap:4px}
#companion .talent-fork-level{color:#c9d6f2;font:700 10.5px/1 Georgia,serif}
#companion .talent-fork-pair{position:relative;display:flex;gap:3px;padding:3px;border:1px solid var(--fx-bronze);border-radius:22px;background:#0a122888}
#companion #companionControlsDrawer .talent-fork .skill-node{width:29px!important;height:29px!important;border-width:2px!important;box-shadow:0 0 0 1px var(--fx-bronze-dark)!important}
#companion .talent-art,#companion .skill-node img.talent-art{width:25px;height:25px;object-fit:contain;border-radius:0;pointer-events:none;filter:drop-shadow(0 1px 1px #000a)}
#companion .skill-tree-detail-art.talent-art{width:74px;height:74px;padding:5px;box-sizing:border-box;border-radius:50%}
#companion .skill-node[data-state=locked] img.talent-art,#companion .skill-node[data-state=closed] img.talent-art{filter:grayscale(1) brightness(.5)}
#companion #companionControlsDrawer .skill-node[data-state=closed]{border-color:#3a4763!important;opacity:.75}
#companion .talent-fork .skill-node-lock{width:14px;height:14px;right:-4px;bottom:-4px;border-width:1px}
#companion .skill-tree-state[data-state=closed]{color:#9aa6bf}
#companion .skill-tree-detail button{margin-top:4px}
@media(max-width:700px),(max-height:480px){
 #companion .skill-tree-window{grid-template-columns:minmax(0,1.2fr) minmax(150px,1fr);gap:6px}
 #companion .skill-tree{padding:8px 4px 10px}
 #companion .skill-tree-branch{gap:13px}
 #companion #companionControlsDrawer .skill-node{width:44px!important;height:44px!important;border-width:2px!important}
 #companion .skill-node img{width:32px;height:32px}
 #companion .skill-tree-branch .skill-node::before{height:13px}
 #companion .skill-tree-root{padding-bottom:16px}#companion .skill-tree-root::after{height:16px}
 #companion .skill-tree-branches{padding-top:14px}#companion .skill-tree-branch::before{top:-14px;height:14px}
 #companion .skill-tree-branch-name{font-size:9.5px;padding:1px 7px}
 #companion .skill-tree-detail{padding:8px 7px;gap:4px}
 #companion .skill-tree-detail-art{width:50px;height:50px}
 #companion .skill-tree-detail-art.talent-art{width:50px;height:50px;padding:4px;border-radius:50%}
 #companion .talent-forks-name{margin-top:9px}#companion .talent-forks{gap:7px 2px;margin-top:5px}#companion .talent-fork-pair{gap:3px;padding:3px}
 #companion #companionControlsDrawer .talent-fork .skill-node{width:24px!important;height:24px!important}#companion .talent-art,#companion .skill-node img.talent-art{width:20px;height:20px}
 #companion .skill-tree-detail h3{font-size:14px}#companion .skill-tree-text{font-size:11.5px}
 #companion .skill-tree-stats li{font-size:11px;padding:2px 7px}
}

/* World map land window: live 3D creatures (creature-stage.ts); wider with two or three wild holders. */
#companion #worldMap .dialog-stage{position:relative;flex:0 0 auto;width:min(100%,calc(80px + var(--n,1)*86px));height:168px;margin:4px auto 8px}
#companion #worldMap .dialog-stage canvas.creature-stage{display:block;width:100%;height:100%;filter:drop-shadow(0 4px 4px #0008)}
#companion #worldMap .dialog-stage .creature-stage-count{position:absolute;transform:translate(-50%,-10%);padding:1px 7px;border-radius:9px;border:1px solid var(--fx-gold,#d6ae62);background:#14263aee;color:var(--fx-gold-hi,#ffe9a3);font-size:12px;font-weight:800;line-height:1.3;pointer-events:none}

/* Activities: the journal of a place (outings finished there, a reward per step). */
#companion .place-journal{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center;margin:8px 0 10px;padding:10px 12px;border:1px solid rgba(214,168,74,.65);border-radius:10px;background:linear-gradient(180deg,rgba(28,48,72,.92),rgba(16,30,48,.92))}
#companion .place-journal-head{display:flex;flex-direction:column;gap:2px;min-width:0}
#companion .place-journal-head strong{color:#ffe7a6;font-size:15px}
#companion .place-journal-head small{color:#cfe0ee}
#companion .place-journal-bar{grid-column:1/-1;position:relative;height:18px;border-radius:9px;background:#0b1826;border:1px solid rgba(214,168,74,.5);overflow:hidden}
#companion .place-journal-bar i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#3f9e58,#9be04e);border-radius:9px}
#companion .place-journal-bar span{position:relative;display:block;text-align:center;font-size:12px;line-height:17px;color:#fff;text-shadow:0 1px 2px #000}
#companion .place-journal .game-rewards{grid-column:1;margin:0}
#companion .place-journal>button{grid-column:2;grid-row:1;white-space:nowrap}
#companion .place-journal.complete{border-color:rgba(155,224,78,.7)}
#companion .place-journal.complete p{grid-column:1/-1;margin:0}
#companion .resource-token[data-resource="item"]{color:#b9f0c8!important;background:#24513a80;border-color:#4f9a6c80}
#companion .resource-token[data-resource="happiness"]{color:#ffc0dd!important;background:#5c2b4480;border-color:#a8648580}

/* ---- Marketplace (the bazaar): players' listings, selling from the bag, own listings and sales ---- */
#companion #companionControlsDrawer[data-panel="Market"]{width:min(780px,calc(100% - 20px))!important}
#companion .fx-market{display:grid;gap:8px;align-content:start;width:100%;max-width:740px;margin:0 auto}
#companion .fx-market-head{display:flex;align-items:center;gap:8px}
#companion .fx-market-head .fx-tabs{flex:1 1 auto}
#companion .fx-market-head .fx-shop-purse{flex:0 0 auto}
#companion .fx-market .game-rewards{margin:0;white-space:nowrap}
#companion .fx-market small{letter-spacing:normal}
#companion .fx-market-refresh{flex:0 0 auto}
#companion .fx-market-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
#companion .fx-market-filters input[type=search]{flex:1 1 170px;width:auto!important;margin:0!important;min-width:0;min-height:32px;padding:4px 10px;background:var(--fx-slot)!important;border:2px solid var(--fx-bronze)!important;border-radius:8px!important;color:var(--fx-text)!important}
#companion .fx-market-filters select{flex:0 0 auto;width:auto!important;margin:0!important;min-height:32px;padding:3px 8px;font-size:12px}
#companion .fx-market-check{flex:0 0 auto;width:auto!important;margin:0!important;display:flex;align-items:center;gap:5px;color:var(--fx-muted);font-size:12px;white-space:nowrap;cursor:pointer}
#companion .fx-market-check input{flex:none;min-height:0!important;padding:0!important;accent-color:var(--fx-blue);width:16px;height:16px;margin:0}
#companion .fx-market .fx-tab:disabled{opacity:.45}
#companion .fx-market-row{grid-template-columns:44px minmax(0,1fr) auto 58px auto;gap:8px;padding:5px 8px 5px 5px}
#companion .fx-market-row.fx-market-own{grid-template-columns:44px minmax(0,1fr) auto auto}
#companion .fx-market-row.expired{border-color:#7a3b34}
#companion .fx-market-row .fx-shop-icon{width:44px;height:44px}
#companion .fx-market-row .fx-shop-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#companion .fx-market-deal{margin-left:6px;padding:0 5px;border-radius:6px;background:#1d6b1f;border:1px solid var(--fx-green-hi);color:#eaffdf;font-size:10px;font-weight:800;vertical-align:1px}
#companion .fx-market-each{display:grid;justify-items:end;line-height:1.1}
#companion .fx-market-each small{color:var(--fx-muted);font-size:10px}
#companion .fx-market-number{margin:0!important;width:100%;min-width:0;min-height:34px;padding:3px 4px;text-align:center;font-weight:700;font-size:13px;background:var(--fx-slot)!important;border:2px solid var(--fx-bronze)!important;border-radius:8px!important;color:var(--fx-text)!important;box-sizing:border-box}
#companion .fx-market-number:focus-visible,#companion .fx-market-filters input:focus-visible{outline:2px solid var(--fx-gold-hi);outline-offset:1px}
#companion .fx-market-row button.detail-action{min-width:104px;padding:5px 10px}
#companion .fx-market-row button:not(.detail-action){min-height:36px;padding:5px 14px;border-radius:9px!important;border:2px solid var(--fx-bronze)!important;background:linear-gradient(180deg,#22365d,#111c33)!important;color:var(--fx-text)!important;font-weight:700}
#companion .fx-market-empty{display:grid;justify-items:center;gap:6px;padding:26px 14px;text-align:center;border:2px dashed #6b4a1c;border-radius:10px;color:var(--fx-muted)}
#companion .fx-market-empty strong{color:var(--fx-gold-hi);font-size:14px}
#companion .fx-market-empty small{font-size:12px;max-width:420px;line-height:1.35}
#companion .fx-market-sell{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);gap:10px;align-items:start}
#companion .fx-market-bag{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:5px;padding:8px;border-radius:10px;background:var(--fx-slot);border:2px solid #6b4a1c;align-content:start}
#companion .fx-market-slot{width:auto;height:auto}
#companion .fx-market-form{display:grid;gap:8px;padding:10px;border-radius:10px;background:linear-gradient(180deg,#132038,var(--fx-slot));border:2px solid #6b4a1c;box-shadow:inset 0 0 0 1px #f1c75e2e}
#companion .fx-market-form-top{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center}
#companion .fx-market-field{margin:0!important;min-height:0!important;display:grid;grid-template-columns:86px minmax(0,1fr) auto;align-items:center;gap:8px;color:var(--fx-muted);font-size:12px;font-weight:700}
#companion .fx-market-hint{color:var(--fx-muted);font-size:11px;line-height:1.35}
#companion .fx-market-summary{display:grid;gap:3px;padding:7px 9px;border-radius:8px;background:#0b1322;border:1px solid #2c3d5e;font-size:12px;color:var(--fx-muted)}
#companion .fx-market-summary>div{display:flex;justify-content:space-between;align-items:center;gap:8px}
#companion .fx-market-summary .fx-market-total{padding-top:4px;border-top:1px solid #2c3d5e;color:var(--fx-gold-hi);font-weight:800;font-size:13px}
#companion .fx-market-earned{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:8px 12px;border-radius:10px;background:linear-gradient(180deg,#132038,var(--fx-slot));border:2px solid #6b4a1c}
#companion .fx-market-earned.waiting{border-color:var(--fx-gold);box-shadow:inset 0 0 16px #f1c75e2e}
#companion .fx-market-history{display:grid;gap:3px}
#companion .fx-market-history h4{margin:6px 0 2px;color:var(--fx-gold-hi);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
#companion .fx-market-trade{display:grid;grid-template-columns:minmax(0,1fr) auto 84px;align-items:center;gap:10px;padding:4px 10px;border-radius:8px;background:#0e182980;font-size:12px}
#companion .fx-market-trade>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#companion .fx-market-trade small{color:var(--fx-muted);font-size:11px}
#companion .fx-market-trade .game-rewards{justify-self:end}
#companion .fx-market-trade.bought .resource-token{color:#ffb9a8!important}
/* The bazaar's button: the players' market, so it stands out from the five shops. */
#companion button.market-trade-marker.marketplace-marker{max-width:none;padding:8px 16px;font-size:13px;border-color:var(--fx-gold-hi)!important;background:linear-gradient(180deg,var(--fx-blue-hi),var(--fx-blue) 45%,#1b3f8a)!important;color:#fff!important;box-shadow:0 0 0 2px var(--fx-bronze-dark),0 6px 14px #0009!important}
#companion button.market-trade-marker.marketplace-marker::after{border-top-color:var(--fx-gold-hi)}
#companion button.market-trade-marker.marketplace-marker:is(:hover,:focus-visible){background:linear-gradient(180deg,#8cc4ff,#3b7fe0 45%,#2450a6)!important;filter:none}
@media(max-width:640px),(max-height:430px){
 #companion .fx-market-head{flex-wrap:wrap}
 #companion .fx-market-sell{grid-template-columns:minmax(0,1fr) minmax(210px,250px)}
 #companion .fx-market-row{grid-template-columns:36px minmax(0,1fr) auto 48px auto;gap:6px}
 #companion .fx-market-row .fx-shop-icon{width:36px;height:36px}
 #companion .fx-market-row button.detail-action{min-width:84px;padding:5px 6px}
 #companion button.market-trade-marker.marketplace-marker{font-size:10px;padding:5px 9px}
}
@media(max-width:520px){#companion .fx-market-sell{grid-template-columns:minmax(0,1fr)}}

/* ---- Raids: two goals per base, and the defence report with its Revenge button ---- */
#companion .raid-goals{display:flex;flex-wrap:wrap;gap:8px}
#companion .raid-goals>button{flex:1 1 150px}
#companion .raid-report{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center}
#companion .raid-report>:is(small,strong,p){grid-column:1;margin:0}
#companion .raid-report>:is(button,.raid-avenged){grid-column:2;grid-row:1/span 3}
#companion .raid-report[data-direction=INCOMING]{border-left:3px solid var(--fx-red);padding-left:8px}
#companion .raid-report[data-direction=OUTGOING]{border-left:3px solid var(--fx-green);padding-left:8px}
#companion .raid-report[data-direction=TERRITORY]{border-left:3px solid var(--fx-blue);padding-left:8px}
#companion .raid-avenged{color:var(--fx-green-hi);font-weight:800;text-transform:uppercase;letter-spacing:.06em}

/* ---- Achievements and collections (Profile) ---- */
#companion .game-section-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){#companion .game-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
#companion .game-section-art[data-icon=achievements]{background:url('/icons/profile/achievements.webp?v=1') center/contain no-repeat}
#companion .fx-achievements{max-width:none}
#companion .fx-achievement-total{display:flex;align-items:center;gap:6px;color:var(--fx-gold-hi);font-size:14px;white-space:nowrap}
#companion .fx-star{color:#3a4763;font-size:15px;line-height:1;text-shadow:0 1px 0 #000}
#companion .fx-star.on{color:var(--fx-gold);text-shadow:0 0 6px #e9b64a99,0 1px 0 #4a2c0c}
#companion .fx-achievement{grid-template-columns:54px minmax(0,1fr) auto;gap:10px;padding:7px 10px}
#companion .fx-achievement.complete{opacity:.72}
#companion .fx-achievement-stars{display:flex;justify-content:center;gap:1px}
#companion .fx-achievement-bar{height:7px;border-radius:5px;background:#0b1322;border:1px solid #2c3d5e;overflow:hidden;margin:3px 0 1px}
#companion .fx-achievement-bar>i{display:block;height:100%;background:linear-gradient(90deg,var(--fx-blue),var(--fx-blue-hi));border-radius:5px}
#companion .fx-achievement-count{color:var(--fx-text)!important}
#companion .fx-achievement-done{color:var(--fx-green-hi);font-weight:800;font-size:12px;min-width:44px;text-align:center}
#companion .fx-collection h4{margin:8px 0 5px;color:var(--fx-gold-hi);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
#companion .fx-collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#companion .fx-collection-card{display:grid;gap:2px;padding:8px 10px;border-radius:10px;border:2px dashed #3a4763;background:#0e182980;color:var(--fx-muted);min-height:48px;align-content:center}
#companion .fx-collection-card.found{border:2px solid #6b4a1c;background:linear-gradient(180deg,#132038,var(--fx-slot));box-shadow:inset 0 0 0 1px #f1c75e2e}
#companion .fx-collection-card strong{font-size:13px;color:var(--fx-muted)}
#companion .fx-collection-card.found strong{color:var(--fx-gold-hi)}
#companion .fx-collection-card small{font-size:11px}
#companion .fx-collection-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:6px;padding:8px;border-radius:10px;background:var(--fx-slot);border:2px solid #6b4a1c}
#companion .fx-collection-item{width:auto;height:auto;cursor:default}
#companion .fx-collection-item:not(.found) img{filter:brightness(0) opacity(.35)}
@media(max-width:640px){#companion .fx-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#companion .fx-achievement{grid-template-columns:44px minmax(0,1fr) auto}}

/* ---- First steps: the guide line at the top of the world and the glowing HUD button it points at ---- */
#companion .companion-guide{position:absolute;left:50%;top:56px;transform:translateX(-50%);z-index:14;display:flex;align-items:center;gap:10px;max-width:min(620px,calc(100% - 150px));
 padding:7px 8px 7px 12px;border-radius:12px;border:2px solid var(--fx-gold);background:linear-gradient(180deg,#22365de8,#0f1a30e8);box-shadow:0 0 0 2px var(--fx-bronze-dark),0 8px 22px #0009;
 color:var(--fx-text);font-size:13px;line-height:1.3;pointer-events:auto}
#companion .companion-guide[hidden]{display:none!important}
#companion .companion-guide small{flex:none;padding:2px 8px;border-radius:8px;background:linear-gradient(180deg,var(--fx-blue-hi),var(--fx-blue));color:#fff;font-weight:800;font-size:11px;white-space:nowrap}
#companion .companion-guide span{flex:1 1 auto;min-width:0}
#companion button.companion-guide-skip{flex:none;min-height:26px!important;padding:2px 10px!important;border-radius:8px!important;border:1px solid var(--fx-bronze)!important;background:#0e1829!important;color:var(--fx-muted)!important;font-size:11px;box-shadow:none!important}
/* While a window is open the line stands above the window's frame, over everything. */
#companion .companion-guide.over-window{position:fixed;top:4px;z-index:160;max-width:min(620px,calc(100% - 24px))}
/* What to press next glows, wherever it is; the arrow is an element of its own that floats over the page and
   follows it (static/companion-guide.js), so the thing pointed at keeps its own place and layer. */
#companion .guide-target{animation:guide-glow 1.4s ease-in-out infinite}
#companion .guide-pointer{position:fixed;z-index:161;width:0;height:0;margin:-18px 0 0 -11px;border:11px solid transparent;border-bottom-width:0;border-top:18px solid var(--fx-gold-hi);
 filter:drop-shadow(0 0 3px #000) drop-shadow(0 2px 2px #000a);pointer-events:none;animation:guide-bounce 1.4s ease-in-out infinite}
#companion .guide-pointer.under{margin-top:0;border-top:0;border-bottom:18px solid var(--fx-gold-hi);border-top-width:0}
#companion .guide-pointer[hidden]{display:none}
@keyframes guide-glow{0%,100%{filter:drop-shadow(0 0 2px #ffe9a3)}50%{filter:drop-shadow(0 0 10px #ffd76a) brightness(1.2)}}
@keyframes guide-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media(prefers-reduced-motion:reduce){#companion .guide-target,#companion .guide-pointer{animation:none}}
@media(max-width:900px),(max-height:430px){#companion .companion-guide{top:40px;font-size:11px;padding:4px 6px 4px 8px;gap:6px;max-width:calc(100% - 190px)}#companion .companion-guide small{font-size:10px;padding:1px 6px}}
/* Throwing an item away (bag and Storage): a quiet button that asks before it acts. */
#companion .inventory-discard{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:8px;border-top:1px solid rgba(214,174,98,.25)}
#companion .inventory-discard>small{flex:1 1 100%;color:#f0b9a8}
#companion .inventory-discard>button{flex:1 1 auto;filter:saturate(.55)}
/* The bought shield, beside the shield's state on the Raids panel. */
#companion #companionShield{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
#companion .raid-shield-buy{flex:0 1 auto}
#companion .game-section-art[data-icon=raids]{background:url('/icons/profile/raids.webp?v=1') center/contain no-repeat}
/* The bazaar's resource counter (Marketplace -> Resources): one row for each resource. */
#companion .fx-market-exchange{display:grid;gap:8px}
#companion .fx-market-exchange-row{display:grid;grid-template-columns:minmax(150px,1.3fr) 84px minmax(150px,1fr) minmax(150px,1fr);gap:8px 10px;align-items:center;padding:10px 12px;border:1px solid rgba(214,174,98,.3);border-radius:10px;background:rgba(10,18,34,.5)}
#companion .fx-market-exchange-row>small{grid-column:1/-1}
#companion .fx-market-exchange-row .fx-market-number{width:100%}
@media (max-width:760px){#companion .fx-market-exchange-row{grid-template-columns:1fr 84px}#companion .fx-market-exchange-row>button{grid-column:auto}}
#companion .fx-market-subtitle{margin:16px 0 4px;color:#efdfae;font-size:15px}
#companion .fx-market-spare .fx-market-exchange-row{grid-template-columns:44px minmax(140px,1.3fr) minmax(150px,1fr) minmax(150px,1fr)}
@media (max-width:760px){#companion .fx-market-spare .fx-market-exchange-row{grid-template-columns:44px 1fr}}
#companion .activity-rested{display:block;margin-top:4px;color:#b9e4a0}

/* ---- Ranking (Profile -> Ranking): the season board and the all-time board ---- */
#companion .fx-ranking-row{grid-template-columns:38px minmax(0,1fr) auto}
#companion .fx-ranking-row.you{border-color:var(--fx-gold);background:linear-gradient(180deg,#2a3f6ae8,#16233fe8)}
#companion .fx-ranking-place{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid var(--fx-bronze);background:#0e1829;color:var(--fx-muted);font-weight:800}
#companion .fx-ranking-place.top{border-color:var(--fx-gold);color:var(--fx-gold-hi)}
#companion .fx-ranking-points{color:var(--fx-gold-hi);font-weight:800;white-space:nowrap}
#companion .fx-ranking-mine,#companion .fx-ranking-prize{grid-template-columns:minmax(0,1fr) auto}
#companion .fx-ranking-prize{border-color:var(--fx-gold)}
/* ---- An event on the land: a card under the pet panel that folds to one line ---- */
#companion .companion-land-event{position:absolute;left:10px;top:78px;z-index:13;width:min(300px,calc(100% - 20px));padding:6px 8px 8px;border-radius:12px;border:2px solid var(--fx-gold);
 background:linear-gradient(180deg,#22365de8,#0f1a30e8);box-shadow:0 0 0 2px var(--fx-bronze-dark),0 8px 22px #0009;color:var(--fx-text);font-size:12px;line-height:1.35;pointer-events:auto}
#companion .companion-land-event[hidden]{display:none!important}
#companion .companion-land-event.folded{width:auto;padding:4px 8px}
#companion button.companion-land-event-head{display:flex;align-items:center;gap:8px;width:100%;min-height:26px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:var(--fx-text)!important;font-size:13px;text-align:left;cursor:pointer}
#companion .companion-land-event-head strong{flex:1 1 auto;min-width:0}
#companion .companion-land-event-head small{flex:none;color:var(--fx-muted);font-size:11px;white-space:nowrap}
#companion .companion-land-event-sign{flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:linear-gradient(180deg,var(--fx-gold-hi),var(--fx-gold));color:#3a2205;font-weight:900}
#companion .companion-land-event p{margin:6px 0 0}
#companion .companion-land-event-reward{color:var(--fx-gold-hi);font-weight:700}
#companion .companion-land-event-actions{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
#companion .companion-land-event-actions small{flex:1 1 auto;color:var(--fx-muted)}
@media(max-width:900px),(max-height:430px){#companion .companion-land-event{top:58px;left:6px;width:min(250px,calc(100% - 12px));font-size:11px}}
#companion .game-section-art[data-icon=ranking]{background:url('/icons/profile/ranking.webp?v=1') center/contain no-repeat}
/* ---- Raid replay: a bar at the top of the view while a kept fight plays; the dock and the event card step aside ---- */
#companion .replay-mode .world-game-dock,#companion .replay-mode .companion-land-event,#companion .replay-mode .companion-guide{display:none!important}
#companion .companion-replay{position:absolute;left:50%;top:56px;transform:translateX(-50%);z-index:15;display:flex;align-items:center;gap:10px;width:min(640px,calc(100% - 24px));padding:7px 10px;border-radius:12px;
 border:2px solid var(--fx-gold);background:linear-gradient(180deg,#22365de8,#0f1a30e8);box-shadow:0 0 0 2px var(--fx-bronze-dark),0 8px 22px #0009;color:var(--fx-text);font-size:13px;pointer-events:auto}
#companion .companion-replay[hidden]{display:none!important}
#companion .companion-replay-text{flex:0 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.25}
#companion .companion-replay-text small{color:var(--fx-muted);font-size:11px;white-space:nowrap}
#companion .companion-replay-bar{flex:1 1 60px;height:8px;border-radius:5px;background:#0e1829;border:1px solid var(--fx-bronze);overflow:hidden}
#companion .companion-replay-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--fx-gold),var(--fx-gold-hi))}
#companion button.companion-replay-button{flex:none;min-height:28px!important;min-width:52px;padding:2px 10px!important;border-radius:8px!important;border:1px solid var(--fx-bronze)!important;background:#0e1829!important;color:var(--fx-text)!important;font-size:12px;box-shadow:none!important}
#companion button.companion-replay-button:is(:hover,:focus-visible){border-color:var(--fx-gold)!important}
@media(max-width:900px),(max-height:430px){#companion .companion-replay{top:40px;font-size:11px;gap:6px;padding:4px 6px}}
/* ---- Activities: a photograph of the spot on every card (a low strip, so four cards still fit), and of the place on its journal ---- */
#companion #companionWorldActivities .activity-picture{display:block;width:100%;height:68px;object-fit:cover;border-radius:8px;border:1px solid rgba(214,168,74,.55);background:#0b1826}
#companion .place-journal:has(.place-journal-picture){grid-template-columns:auto minmax(0,1fr) auto}
#companion .place-journal-picture{grid-column:1;grid-row:1;width:84px;height:52px;object-fit:cover;border-radius:8px;border:1px solid rgba(214,168,74,.55)}
/* The banners keep their title on one side: show the other. */
#companion .place-journal-picture:is([data-place=home],[data-place=lake]){object-position:88% 50%}
#companion .place-journal-picture:is([data-place=forest],[data-place=meadow]){object-position:12% 50%}
#companion .place-journal:has(.place-journal-picture) .place-journal-head{grid-column:2;grid-row:1}
#companion .place-journal:has(.place-journal-picture)>button{grid-column:3;grid-row:1}
#companion .place-journal:has(.place-journal-picture)>p{grid-column:2/-1}
#companion .place-journal:has(.place-journal-picture) .place-journal-bar{grid-row:2}
#companion .place-journal:has(.place-journal-picture) .game-rewards{grid-column:1/-1;grid-row:3}
#companion .place-journal:has(.place-journal-picture) .place-journal-finds{grid-column:1/-1;grid-row:4}
@media(max-height:430px){#companion #companionWorldActivities .activity-picture,#companion .place-journal-picture{display:none}}

/* ===== Picture buttons over the land: turning and placing a building =====
   The four controls of the rotation bar and the placement bar are pictures cut from two sheets (rotation arrows:
   four cells; OK / Cancel: two cells). The general button rules above painted the two arrows as plain green
   buttons, and a hover rule sized the OK picture as a four-cell sheet, which slid it sideways. One block states
   every state of every one of them: the picture never changes size or place, a hover only brightens it.
   (`.companion-world-viewport` in every selector lifts them over the general button rules.) */
#companion .companion-world-viewport .building-rotation-toolbar button:is(.detail-action,.placement-ok,.placement-cancel),
#companion .companion-world-viewport .placement-actions button:is(.placement-turn,.placement-ok,.placement-cancel){
 border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;color:transparent!important;font-size:0!important;
 background-color:transparent!important;background-repeat:no-repeat!important;background-origin:border-box!important;background-clip:border-box!important;
 transform:none!important;transition:filter .12s!important;filter:none!important;outline-color:transparent;text-shadow:none!important;min-height:0!important}
#companion .companion-world-viewport .building-rotation-toolbar button:is(.detail-action,.placement-ok,.placement-cancel):is(::before,::after),
#companion .companion-world-viewport .placement-actions button:is(.placement-turn,.placement-ok,.placement-cancel):is(::before,::after){content:none!important;display:none!important}
#companion .companion-world-viewport .building-rotation-toolbar button.detail-action[data-art-cell],
#companion .companion-world-viewport .placement-actions button.placement-turn{background-image:url("/vectors/approved-hd/runtime/rotation-controls-v089.webp")!important;background-size:400% 100%!important}
#companion .companion-world-viewport .building-rotation-toolbar button.detail-action[data-art-cell="0"],#companion .companion-world-viewport .placement-actions button.placement-turn-left{background-position:0 0!important}
#companion .companion-world-viewport .building-rotation-toolbar button.detail-action[data-art-cell="1"],#companion .companion-world-viewport .placement-actions button.placement-turn-right{background-position:33.333% 0!important}
#companion .companion-world-viewport :is(.building-rotation-toolbar,.placement-actions) button:is(.placement-ok,.placement-cancel){background-image:url("/vectors/approved-hd/runtime/placement-controls-v089.webp")!important;background-size:200% 100%!important}
#companion .companion-world-viewport :is(.building-rotation-toolbar,.placement-actions) button.placement-ok{background-position:0 0!important}
#companion .companion-world-viewport :is(.building-rotation-toolbar,.placement-actions) button.placement-cancel{background-position:100% 0!important}
#companion .companion-world-viewport .building-rotation-toolbar button:is(.detail-action,.placement-ok,.placement-cancel):is(:hover,:focus-visible):enabled,
#companion .companion-world-viewport .placement-actions button:is(.placement-turn,.placement-ok,.placement-cancel,.placement-connect):is(:hover,:focus-visible):enabled{filter:brightness(1.14)!important}
#companion .companion-world-viewport .building-rotation-toolbar button:is(.detail-action,.placement-ok,.placement-cancel):active:enabled,
#companion .companion-world-viewport .placement-actions button:is(.placement-turn,.placement-ok,.placement-cancel,.placement-connect):active:enabled{filter:brightness(.9)!important;transform:none!important}
#companion .companion-world-viewport .building-rotation-toolbar button:is(.detail-action,.placement-ok,.placement-cancel){width:52px!important;height:52px!important}

/* ===== Warrior window: attack, defense, health, range and mana as hexagons ===== */
#companion .soldier-stats{display:flex!important;flex-wrap:nowrap;justify-content:center;gap:3px}
#companion .soldier-stats .soldier-stat{position:relative;flex:0 1 60px;min-width:0;aspect-ratio:72/62;display:grid!important;align-content:center;justify-items:center;gap:1px;padding:0 5px!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(180deg,#f2c96b,#a9772c)!important;
 clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
#companion .soldier-stats .soldier-stat::before{content:"";position:absolute;inset:2px;z-index:0;background:linear-gradient(180deg,#1c2f52,#0e1930);
 clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
#companion .soldier-stats .soldier-stat>*{position:relative;z-index:1}
#companion .soldier-stats .soldier-stat strong{font-size:12px;line-height:1.1;white-space:nowrap}
#companion .soldier-stats .soldier-stat span{font-size:7.5px;letter-spacing:.04em}
@media(max-width:420px){#companion .soldier-stats{gap:1px}#companion .soldier-stats .soldier-stat strong{font-size:10.5px}#companion .soldier-stats .soldier-stat span{font-size:6.5px}}

/* ===== Game boards (owner's sheet ~/Desktop/UI.png, 2026-12-02) =====
   The windows read as boards of a game, not as pages: the land behind an open window is blurred and dimmed like a
   painted backdrop, the frame is a thick bevel of gold with a gem in every corner, the title rides a broad blue
   banner, buttons are glossy plates with a gold rim, and what can be built is a row of picture cards. */
/* The land behind an open window: out of focus and darker, so the board stands in front of a painting. */
#companion #companionWorldCanvas{transition:filter .25s ease}
#companion .companion-world-shell:has(#companionControlsDrawer:not([hidden]),#companionBuildingModal:not([hidden]),.world-map-popup:not([hidden])) #companionWorldCanvas{filter:blur(5px) brightness(.5) saturate(1.15)}
@media(prefers-reduced-motion:reduce){#companion #companionWorldCanvas{transition:none}}

/* The frame: gold bevel (light above, deep bronze below), a dark line inside and out, blue gems in the corners. */
#companion{
 --fx-bevel:linear-gradient(180deg,#fff3b8 0%,#f3c552 14%,#b47a1e 46%,#6e420d 54%,#d9a43a 86%,#ffe9a3 100%);
 --fx-gem:radial-gradient(circle,#dff4ff 0 16%,#4aa8ff 17% 46%,#123f9c 47% 62%,#3a2206 63% 74%,#0000 75%);
 --fx-board:radial-gradient(130% 80% at 50% 0%,#24386a 0%,#16233f 46%,#0a1120 100%);
}
#companion .world-controls-drawer,
#companion .world-building-card,
#companion dialog{
 border:9px solid transparent!important;border-radius:20px!important;
 background:
  var(--fx-gem) left -7px top -7px/22px 22px no-repeat border-box,
  var(--fx-gem) right -7px top -7px/22px 22px no-repeat border-box,
  var(--fx-gem) left -7px bottom -7px/22px 22px no-repeat border-box,
  var(--fx-gem) right -7px bottom -7px/22px 22px no-repeat border-box,
  var(--fx-board) padding-box,
  var(--fx-bevel) border-box!important;
 box-shadow:0 0 0 2px #2a1703,0 0 0 4px #c08a2a66,inset 0 0 0 2px #2a1703,inset 0 0 0 3px #ffe9a34d,inset 0 0 46px #000a,0 22px 60px #000d!important;
}
/* The title's banner: broader, with a second gold line and a sheen. */
#companion .world-popup-header,#companion #companionControlsDrawer .world-popup-header,#companion .world-building-card .world-popup-header{
 min-height:42px!important;padding:6px 38px!important;margin:6px auto 12px!important;border-radius:12px!important;
 background:linear-gradient(180deg,#8cc6ff 0%,#3f86e6 30%,#1f55b4 62%,#143a86 100%)!important;
 border:3px solid #f3c552!important;
 box-shadow:0 0 0 2px #2a1703,0 0 0 4px #b47a1e,0 0 0 5px #2a1703,inset 0 2px 0 #ffffff80,inset 0 -6px 10px #0a245a,0 8px 16px #000b!important;
}
#companion .world-popup-header :is(strong,div,h2){font-size:20px!important;font-weight:900!important;letter-spacing:.03em;text-shadow:0 2px 0 #0b2152,0 0 10px #0b1c3f!important}

/* Buttons: glossy plates. Green does, gold collects and steps, red takes away, grey is locked. */
#companion button.detail-action:not(:has(img)):not(.training-end),#companion .companion-blueprint>button,#companion .recipe-row button,#companion .companion-raid-button,#companion .world-building-content :is(.rest-choice,.world-building-upgrade)>button,#companion .scout-bar button.scout-action{
 min-height:40px!important;padding:7px 18px!important;border-radius:12px!important;
 font-size:15px!important;font-weight:900!important;letter-spacing:.02em;color:#fff!important;text-shadow:0 2px 0 #0d3a10,0 0 6px #0006!important;
 background:linear-gradient(180deg,#b6f58a 0%,#58c943 34%,#2a9627 60%,#176a1b 100%)!important;
 border:2px solid #f3c552!important;
 box-shadow:0 0 0 2px #2a1703,inset 0 2px 0 #ffffff8c,inset 0 -5px 8px #0d4a12,0 4px 0 #1a0e02,0 7px 12px #0009!important;
}
#companion :is(button.detail-action:not(:has(img)):not(.training-end),.companion-blueprint>button,.recipe-row button,.companion-raid-button):active:enabled{transform:translateY(3px);box-shadow:0 0 0 2px #2a1703,inset 0 2px 0 #ffffff59,0 1px 0 #1a0e02!important}
#companion :is(button.detail-action:not(:has(img)):not(.training-end),.companion-blueprint>button,.recipe-row button,.companion-raid-button):disabled{
 color:#d5dbe6!important;text-shadow:0 2px 0 #1b2230!important;
 background:linear-gradient(180deg,#8a93a6 0%,#59627a 40%,#353d52 100%)!important;border-color:#8b7a52!important;
 box-shadow:0 0 0 2px #1a1408,inset 0 2px 0 #ffffff40,0 3px 0 #10131c!important;opacity:1!important;filter:none!important;
}
/* Steps and plain choices (previous / next, cancel, return): gold plates; what takes away: red. */
#companion :is(.activity-paging,.build-paging) button,#companion .inventory-pager button,#companion .scout-bar button.scout-action:not(.primary),#companion .fx-clan-foot button.detail-action{
 color:#fff!important;border:2px solid #f3c552!important;border-radius:12px!important;font-weight:900!important;min-height:38px;text-shadow:0 2px 0 #5a3206!important;
 background:linear-gradient(180deg,#ffe9a3 0%,#f0b43c 34%,#c07f1c 62%,#7c4a0c 100%)!important;
 box-shadow:0 0 0 2px #2a1703,inset 0 2px 0 #ffffffa6,inset 0 -5px 8px #6b3d07,0 4px 0 #1a0e02,0 7px 12px #0009!important;
}
#companion button.detail-action:is([data-clan=kick],[data-clan=leave],.danger,.discard-action),#companion .developer-delete-profile{
 text-shadow:0 2px 0 #5a0d08!important;
 background:linear-gradient(180deg,#ff9a86 0%,#e2452f 36%,#b3241a 62%,#74100c 100%)!important;
 box-shadow:0 0 0 2px #2a1703,inset 0 2px 0 #ffffff8c,inset 0 -5px 8px #5e0c08,0 4px 0 #1a0e02,0 7px 12px #0009!important;
}

/* Tabs: dark plates with a gold rim. */
#companion :is(.fx-tab,.inventory-tabs button,.inventory-filters button):not([aria-selected=true]):not([aria-pressed=true]):not(.active):not(.selected){
 min-height:32px!important;padding:5px 14px!important;border-radius:10px!important;font-size:13px!important;font-weight:800!important;color:#e9dcc0!important;
 background:linear-gradient(180deg,#2a3b63,#141e36)!important;border:2px solid #8b6a2a!important;box-shadow:0 0 0 1px #1a0e02,inset 0 1px 0 #ffffff26!important;
}
/* (The chosen tab keeps the blue of the skin's first pass, further up.) */

/* Slots, rows and cards: sunk plates with a gold line and a light from above. */
#companion :is(.companion-blueprint,.recipe-card,.fx-shop-row,.farming-panel,.rest-choice,.companion-world-activity,.land-upgrade-panel,.fx-clan-notice,.fx-clan-found){
 background:linear-gradient(180deg,#1d2c50 0%,#111b33 60%,#0b1322 100%)!important;
 border:2px solid #a8782a!important;border-radius:14px!important;
 box-shadow:0 0 0 1px #1a0e02,inset 0 1px 0 #ffffff24,inset 0 0 22px #0008,0 4px 10px #0007!important;
}
#companion :is(.companion-blueprint,.recipe-card,.fx-shop-row):is(:hover,:focus-within){border-color:#ffe9a3!important;box-shadow:0 0 0 1px #1a0e02,0 0 14px #f0b43c59,inset 0 1px 0 #ffffff33,inset 0 0 22px #0008!important}

/* What can be built: picture cards, four to a row, the picture large over its name. */
@media(min-width:900px){
 #companion #companionBlueprints section.companion-category:not([hidden]){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:stretch}
 #companion #companionBlueprints section.companion-category>:not(.companion-blueprint){grid-column:1/-1}
 #companion #companionBlueprints.companion-blueprints-grid:has(>section.companion-category){display:block!important}
 #companion #companionBlueprints .companion-blueprint{display:flex!important;flex-direction:column;align-items:center;gap:6px;padding:10px 10px 12px!important;text-align:center;min-width:0}
 #companion #companionBlueprints .companion-blueprint-main,#companion #companionBlueprints .companion-blueprint-main:has(.model-card),#companion #companionBlueprints .companion-blueprint-main:has(.fence-shape-picker){display:flex!important;flex-direction:column;align-items:center;gap:6px;width:100%;flex:1}
 #companion #companionBlueprints .companion-blueprint-art.model-card{width:112px!important;height:112px!important;flex:0 0 112px;border:2px solid #f3c552!important;border-radius:14px!important;
  background:radial-gradient(circle at 50% 40%,#3b63b0 0%,#1a2c57 55%,#0c1529 100%)!important;box-shadow:0 0 0 2px #2a1703,inset 0 0 18px #000a,0 4px 8px #0008}
 #companion #companionBlueprints .companion-blueprint-main>div:not(.companion-blueprint-art):not(.fence-shape-picker){width:100%;text-align:center}
 #companion #companionBlueprints .companion-blueprint :is(.companion-blueprint-art,.fence-shape-picker){align-self:center}
 #companion #companionBlueprints .companion-blueprint strong{display:block;font-size:16px!important;font-weight:900!important;text-shadow:0 2px 0 #2a1703}
 #companion #companionBlueprints .companion-blueprint .companion-blueprint-tag{display:none}
 #companion #companionBlueprints .companion-blueprint p.sub{font-size:11.5px!important;line-height:1.3;margin:2px 0 4px!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
 #companion #companionBlueprints .companion-blueprint .game-rewards{justify-content:center}
 #companion #companionBlueprints .companion-blueprint>button{width:100%!important;margin:auto 0 0!important}
}

/* Text on the boards: a little larger and bolder than a page's, with a shadow like engraved letters. */
#companion :is(.world-controls-body,.world-building-content) :is(h3,h4){color:#ffe9a3!important;font-weight:900!important;letter-spacing:.02em;text-shadow:0 2px 0 #1a0e02}
#companion .fx-shop-text strong{font-size:14.5px;text-shadow:0 1px 0 #1a0e02}
/* Notices: a small board of their own. */
#companion #toast{border:3px solid #f3c552!important;border-radius:14px!important;background:linear-gradient(180deg,#24386a,#0f1830)!important;box-shadow:0 0 0 2px #2a1703,inset 0 1px 0 #ffffff33,0 10px 24px #000c!important;font-weight:800!important}

/* ===== The painted skin (owner's art of 2026-12-02; scripts/cut_ui_ornaments.mjs makes the pictures) =====
   Windows wear a whole painted frame of the owner's pack (~/Desktop/uui.zip) as a nine-slice: its gem corners keep
   their size and its bars are drawn out to the window's. The title sits on a banner between two lions (a building's
   card: between two wings). Buttons, the cards of what can be built, the bag's slots and the tabs are the pack's
   own plates. The letters are Lilita One (SIL Open Font Licence, static/fonts). */
@font-face{font-family:'Lilita One';src:url('/fonts/LilitaOne-Regular.ttf?v=1') format('truetype');font-display:swap}
/* One face with one weight: nothing is made bolder by the browser (it would smear the letters). */
#companion,#companion :is(p,span,b,strong,div,small,label,button,input,select,textarea,td,th,summary,h1,h2,h3,h4,a,output,li,dt,dd,em,i:not([class])){
 font-family:'Lilita One',var(--project-font)!important;font-weight:400!important;font-synthesis:none;
}
/* Glyphs keep their own widths at every size (snapped to whole pixels, small text opened gaps inside words). */
#companion{text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;letter-spacing:.01em}

/* The frame lies over the window's edge, half outside it: the board ends under its bars. */
#companion .world-controls-drawer,
#companion .world-building-card,
#companion dialog{
 border:9px solid transparent!important;border-radius:22px!important;
 
 background:var(--fx-board) border-box!important;
 box-shadow:inset 0 0 46px #000a,0 22px 60px #000d!important;
}
/* The title's banner. Its blue field lies in the lower middle of the picture, between the lions or the wings. */
#companion .world-popup-header,#companion #companionControlsDrawer .world-popup-header,#companion .world-building-card .world-popup-header{
 border:0!important;border-radius:0!important;box-shadow:none!important;
 min-width:400px;min-height:92px!important;max-width:calc(100% - 110px);margin:-6px auto 0!important;padding:34px 110px 16px!important;box-sizing:border-box;
 filter:drop-shadow(0 6px 8px #000b);
}
#companion .world-building-card .world-popup-header{min-width:350px;max-width:100%;min-height:84px!important;margin:-6px auto 0!important;padding:32px 98px 14px!important}
@media(max-width:620px){#companion .world-popup-header,#companion #companionControlsDrawer .world-popup-header,#companion .world-building-card .world-popup-header{min-width:300px;min-height:78px!important;padding:28px 84px 13px!important}}
#companion .world-popup-header :is(strong,div,h2){font-size:21px!important;letter-spacing:.03em;text-shadow:0 2px 0 #0b2152,0 0 10px #0b1c3f!important}

/* Buttons: the pack's plates, their pointed ends kept whole and the middle drawn out to the button's width. */
#companion button.detail-action:not(:has(img)):not(.training-end),#companion .companion-blueprint>button,#companion .recipe-row button,#companion .companion-raid-button,#companion .world-building-content :is(.rest-choice,.world-building-upgrade)>button,#companion .scout-bar button.scout-action,#companion :is(.activity-paging,.build-paging) button,#companion .fx-clan-foot button.detail-action{
 background:none!important;border-style:solid!important;border-color:transparent!important;border-width:13px 30px!important;border-radius:0!important;
 border-image:url('/ui/ornaments/button-green.webp?v=2') 18 38 18 38 fill/13px 30px stretch!important;
 box-shadow:none!important;padding:0 2px!important;min-height:44px!important;filter:drop-shadow(0 3px 3px #000a);
 font-size:16px!important;color:#fff!important;text-shadow:0 2px 0 #0d3a10,0 0 6px #0008!important;letter-spacing:.03em;opacity:1!important;
}
#companion :is(.activity-paging,.build-paging) button{min-width:128px!important}
#companion :is(.activity-paging,.build-paging) button,#companion .scout-bar button.scout-action:not(.primary),#companion .fx-clan-foot button.detail-action,#companion button.detail-action:is([data-clan=visit],[data-clan=title],[data-clan=notice_edit]){
 border-image-source:url('/ui/ornaments/button-gold.webp?v=2')!important;text-shadow:0 2px 0 #5a3206,0 0 6px #0008!important;
}
#companion button.detail-action:is([data-clan=kick],[data-clan=leave],.danger,.discard-action){border-image-source:url('/ui/ornaments/button-red.webp?v=2')!important;text-shadow:0 2px 0 #5a0d08,0 0 6px #0008!important}
#companion button.detail-action:is([data-clan=take],[data-farm=water],[data-farm=water_all]){border-image-source:url('/ui/ornaments/button-blue.webp?v=2')!important;text-shadow:0 2px 0 #0b2a6b,0 0 6px #0008!important}
#companion :is(button.detail-action:not(:has(img)):not(.training-end),.companion-blueprint>button,.recipe-row button,.companion-raid-button,.scout-bar button.scout-action,.activity-paging button,.build-paging button,.fx-clan-foot button.detail-action):disabled{
 border-image-source:url('/ui/ornaments/button-grey.webp?v=2')!important;background:none!important;box-shadow:none!important;color:#e3e8f0!important;text-shadow:0 2px 0 #1b2230!important;filter:drop-shadow(0 3px 3px #000a)!important;
}
#companion :is(button.detail-action:not(:has(img)):not(.training-end),.companion-blueprint>button,.recipe-row button,.companion-raid-button,.activity-paging button,.build-paging button):is(:hover,:focus-visible):enabled{filter:brightness(1.12) drop-shadow(0 3px 3px #000a)}
#companion :is(button.detail-action:not(:has(img)):not(.training-end),.companion-blueprint>button,.recipe-row button,.companion-raid-button):active:enabled{box-shadow:none!important}

/* Tabs: the chosen one a blue plate, the others an empty gold outline. */
#companion :is(.fx-tab,.inventory-tabs button,.inventory-filters button){
 background:none!important;border-style:solid!important;border-color:transparent!important;border-width:11px 20px!important;border-radius:0!important;box-shadow:none!important;
 border-image:url('/ui/ornaments/tab-off.webp?v=2') 22 36 22 36 fill/11px 20px stretch!important;padding:0 2px!important;min-height:36px!important;color:#f3e6c8!important;font-size:14px!important;
}
#companion :is(.fx-tab,.inventory-tabs button,.inventory-filters button):is([aria-selected=true],[aria-pressed=true],.active,.selected){
 border-image:url('/ui/ornaments/tab-on.webp?v=2') 16 30 16 30 fill/11px 20px stretch!important;color:#fff!important;text-shadow:0 2px 0 #0b2a6b!important;
}

/* What can be built: the pack's card, its crest over the picture. */
@media(min-width:900px){
 #companion #companionBlueprints .companion-blueprint{
  background:none!important;border-style:solid!important;border-color:transparent!important;border-width:34px 20px 20px!important;border-radius:0!important;box-shadow:none!important;
  padding:0 2px 2px!important;gap:3px!important;filter:drop-shadow(0 5px 6px #0009);
 }
 #companion #companionBlueprints .companion-blueprint-art.model-card{width:80px!important;height:80px!important;flex:0 0 80px!important}
 #companion #companionBlueprints .companion-blueprint>button{min-height:40px!important;border-width:11px 28px!important}
 #companion #companionBlueprints :is(.activity-paging,.build-paging){margin-top:2px!important}
 #companion #companionBlueprints .companion-blueprint p.sub{-webkit-line-clamp:2!important;margin:0 0 2px!important}
 #companion #companionBlueprints .companion-blueprint-main{gap:3px!important}
 #companion #companionBlueprints section.companion-category:not([hidden]){gap:8px!important}
 #companion #companionBlueprints .companion-blueprint:is(:hover,:focus-within){box-shadow:none!important;filter:brightness(1.08) drop-shadow(0 5px 8px #000b)}
 #companion #companionBlueprints .companion-blueprint-art.model-card{background:radial-gradient(circle at 50% 40%,#16264c 0%,#0c1630 70%)!important;border-color:#f3c552!important}
 #companion #companionBlueprints .companion-blueprint p.sub{color:#dbe6ff!important}
}

/* The bag's slots. */
#companion .inventory-slot{background:url('/ui/ornaments/slot.webp?v=2') center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#companion .inventory-slot:is(.selected,[aria-pressed=true],[aria-selected=true],:focus-visible){background-image:url('/ui/ornaments/slot-lit.webp?v=2')!important}
/* Notices outside the game's frame speak in the same letters. */
#toast,#toast *{font-family:'Lilita One',var(--project-font)!important;font-weight:400!important;letter-spacing:.02em}
/* Paging (previous / next): gold plates. These buttons carry no class, so the older themes' rule for every plain
   button (which counts two ids, one inside a :not) outweighs the one above: three ids settle it. */
#companion#companion #companionControlsBody :is(.activity-paging,.build-paging) button{
 background:none!important;border-style:solid!important;border-color:transparent!important;border-width:12px 28px!important;border-radius:0!important;box-shadow:none!important;
 border-image:url('/ui/ornaments/button-gold.webp?v=2') 18 38 18 38 fill/12px 28px stretch!important;
 min-width:128px!important;min-height:42px!important;padding:0 2px!important;font-size:15px!important;color:#fff!important;text-shadow:0 2px 0 #5a3206,0 0 6px #0008!important;opacity:1!important;filter:drop-shadow(0 3px 3px #000a);
}
#companion#companion #companionControlsBody :is(.activity-paging,.build-paging) button:disabled{border-image-source:url('/ui/ornaments/button-grey.webp?v=2')!important;color:#e3e8f0!important;text-shadow:0 2px 0 #1b2230!important}

/* ===== The Care window (owner's picture ~/Desktop/care.png, 2026-12-02) =====
   Wide screens only (a phone keeps the plain stack). The pet stands in a card with lions and paw banners before a
   forest; beside it the level's shield, the name on a plate with the experience bar and the Skills plate; under
   those the daily reward (a chest, a green Collect), the five needs as bars with their pictures, and the pet's
   mood and character with a segmented bar for every habit. The pieces are cut from the owner's picture and pack
   (static/ui/care; scripts/cut_ui_ornaments.mjs). Its cards have thin frames (the end of this file).
   The parts of the window are laid on one grid, the care actions under the pet's card: the boxes that only grouped
   them (the habitat, .care-pet-info, its .row and .care-pet-heading, the workbench and its Care panel) dissolve, so
   each part is placed by itself. */
@media(min-width:900px){
 #companion #companionGame[data-panel="Care"]{
  display:grid!important;grid-template-columns:330px 92px minmax(0,1.25fr) minmax(0,1fr) 142px!important;grid-template-rows:auto auto auto auto!important;
  gap:6px 12px!important;align-items:center;padding:2px 4px 0!important;
 }
 #companion #companionGame[data-panel="Care"] :is(#companionHabitat,.companion-workbench,#companionPanelCare),#companion #companionHabitat>.care-pet-info,#companion #companionHabitat .care-pet-info>.row,#companion #companionHabitat .care-pet-heading{display:contents!important}
 #companion #companionGame[data-panel="Care"] #companionPanelCare>.row{display:none!important}
 /* The care actions: four and three under the card. */
 #companion #companionGame[data-panel="Care"] #companionActivities{grid-area:4/1/5/2;align-self:start;display:flex!important;flex-wrap:wrap;justify-content:center;gap:6px!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
 #companion #companionGame[data-panel="Care"] #companionActivities>.care-action{flex:0 0 76px!important;width:76px!important}
 #companion #companionControlsDrawer[data-panel="Care"]{max-height:calc(100% - 116px)!important}
 #companion #companionControlsDrawer[data-panel="Care"] .world-popup-header{min-height:76px!important;padding:28px 100px 13px!important;margin-top:-10px!important}

 /* The pet's card. The frame lies over the scene as a nine-slice; the scene fills the hole in it. */
 #companion #companionGame[data-panel="Care"] #companionHabitat #companionPortrait{
  grid-area:1/1/4/2!important;align-self:start!important;position:relative!important;box-sizing:border-box;width:330px!important;height:258px!important;min-height:0!important;margin:0!important;
  padding:50px 29px 25px!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;
  background:radial-gradient(circle at 50% 78%,#6fd6ff66 0 16%,#0000 46%),url('/ui/care/backdrop.webp?v=1') center/cover no-repeat!important;
  background-origin:content-box!important;background-clip:content-box!important;
 }
 #companion #companionHabitat #companionPortrait::after{
  content:'';position:absolute;inset:0;z-index:2;pointer-events:none;border-style:solid;border-color:transparent;border-width:65px 78px;
  filter:drop-shadow(0 6px 8px #000b);
 }
 #companion #companionHabitat #companionPortrait :is(canvas,img){position:relative;z-index:1;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;background:none!important}
 /* The live pet fills the hole of the frame: the offsets of its narrow-screen place (approved-hd.css) would push it aside. */
 #companion #companionHabitat #companionPortrait #companionPet3d{left:0;top:0;transform:none}
 /* On the card's foot: until when the pet must be fed. */
 #companion #companionHabitat .companion-deadline{
  grid-area:1/1/4/2;align-self:end;z-index:3;margin:0 42px 18px!important;padding:3px 8px!important;text-align:center;font-size:11px!important;line-height:1.2;color:#ffe9a3!important;
  background:#0a1224d9!important;border:1px solid #c99632!important;border-radius:9px!important;box-shadow:0 2px 5px #000a!important;
 }
 #companion #companionHabitat .companion-deadline.critical{color:#ffb4a6!important;border-color:#e2452f!important}
 #companion #companionHabitat .companion-thought{display:none!important}

 /* The level's shield, the name's plate and the experience bar. */
 #companion #companionHabitat #companionLevel{
  grid-area:1/2/3/3;align-self:center;justify-self:center;display:flex!important;align-items:flex-end;justify-content:center;box-sizing:border-box;width:96px;height:84px;margin:0!important;padding:0 0 0!important;
  background:url('/ui/care/level.webp?v=1') center top/contain no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  font-size:13px!important;color:#fff!important;text-shadow:0 2px 0 #2a1703,0 0 6px #000!important;letter-spacing:.04em;
 }
 #companion #companionHabitat .care-pet-heading>div{
  grid-area:1/3/2/5;align-self:end;min-width:0;display:flex;align-items:baseline;gap:10px;box-sizing:border-box;min-height:40px;margin-top:6px;
  border-style:solid;border-color:transparent;border-width:11px 22px;border-image:url('/ui/ornaments/tab-on.webp?v=2') 16 30 16 30 fill/11px 22px stretch;
 }
 #companion #companionHabitat #companionPetName{margin:0!important;font-size:21px!important;color:#fff!important;text-shadow:0 2px 0 #0b2152!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #companion #companionHabitat #companionSpeciesLabel{margin:0!important;font-size:12.5px!important;color:#cfe0ff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #companion #companionHabitat #companionStage{
  grid-area:1/3/2/5;align-self:start;justify-self:end;z-index:1;margin:0 8px 0 0!important;padding:1px 9px!important;white-space:nowrap;font-size:10.5px!important;letter-spacing:.06em;color:#3a2206!important;text-shadow:none!important;
  background:linear-gradient(180deg,#fff3b8,#f0b43c 55%,#c07f1c)!important;border:1px solid #2a1703!important;border-radius:8px!important;box-shadow:0 2px 4px #0009!important;
 }
 #companion #companionHabitat .companion-xp{grid-area:2/3/3/5;align-self:start;position:relative;margin:0!important;padding:0!important;display:block!important;height:20px}
 #companion #companionHabitat .companion-xp progress{margin:0!important}
 #companion #companionHabitat .companion-xp label{position:absolute;inset:0;z-index:1;display:block;text-align:center;line-height:20px!important;margin:0!important;padding:0!important;font-size:11.5px!important;color:#fff!important;text-shadow:0 1px 0 #000,0 0 5px #000!important;pointer-events:none}
 #companion #companionHabitat :is(.companion-xp,.companion-need) progress{
  -webkit-appearance:none;appearance:none;display:block;width:100%;height:20px!important;box-sizing:border-box;border:2px solid #c99632!important;border-radius:11px!important;
  background:#070d1a!important;box-shadow:0 0 0 1px #2a1703,inset 0 2px 5px #000c!important;overflow:hidden;
 }
 #companion #companionHabitat :is(.companion-xp,.companion-need) progress::-webkit-progress-bar{background:transparent}
 #companion #companionHabitat .companion-xp progress::-webkit-progress-value{background:linear-gradient(180deg,#b9f1ff,#2fb8ff 45%,#0d6fd6);border-radius:8px;box-shadow:inset 0 2px 0 #ffffff80}
 #companion #companionHabitat .companion-xp progress::-moz-progress-bar{background:linear-gradient(180deg,#b9f1ff,#2fb8ff 45%,#0d6fd6);border-radius:8px}

 /* Skills: a plate with crossed swords, its name under it. */
 #companion #companionHabitat #companionSkills{
  grid-area:1/5/3/6;align-self:center;justify-self:end;position:relative;flex:none!important;width:142px!important;height:52px!important;margin:0 0 14px!important;padding:0!important;overflow:visible!important;
  background:url('/ui/care/skills.webp?v=1') center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 3px 4px #000a);
 }
 #companion #companionHabitat #companionSkills img{display:none!important}
 #companion #companionHabitat #companionSkills .care-summary-label{position:absolute;inset:auto 0 -17px 0!important;display:block;padding:0!important;background:none!important;text-align:center;font:400 13px/1 'Lilita One',sans-serif!important;text-transform:none}
 #companion #companionHabitat #companionSkills .care-summary-label b{color:#ffe9a3!important;background:none!important;-webkit-text-fill-color:#ffe9a3!important;filter:none!important;text-shadow:0 2px 0 #2a1703}
 #companion #companionHabitat #companionSkills:is(:hover,:focus-visible):enabled{filter:brightness(1.15) drop-shadow(0 3px 4px #000a)}

 /* The daily reward: a chest, what the streak stands at, and Collect. */
 #companion #companionHabitat .care-summary-actions{
  grid-area:3/2/4/6;align-self:stretch;display:flex!important;justify-content:flex-end!important;align-items:center;box-sizing:border-box;min-height:76px;margin:12px 16px 8px!important;padding:0!important;background-clip:padding-box!important;
  border-style:solid;border-color:transparent;border-width:14px 18px;
  background:url('/ui/care/chest.webp?v=1') left 8px center/auto 66px no-repeat,radial-gradient(60% 120% at 22% 50%,#ffc44a33,#0000 70%),linear-gradient(180deg,#16254a,#0b1428)!important;
 }
 #companion #companionHabitat #companionDailyStatus .daily-note{display:none}
 #companion #companionHabitat #companionDailyStatus b{display:block;color:#ffe9a3;font-size:13px}
 #companion #companionHabitat #companionDailyStatus .daily-reset{display:block}
 #companion #companionHabitat #companionDailyStatus{grid-area:3/2/4/6;align-self:center;z-index:1;margin:0 206px 0 150px!important;font-size:11px!important;line-height:1.25;color:#e8efff!important;pointer-events:none}
 #companion #companionHabitat #companionDaily{
  position:relative;width:164px!important;height:auto!important;min-height:44px!important;overflow:visible!important;background:none!important;border-style:solid!important;border-color:transparent!important;border-width:13px 30px!important;border-radius:0!important;box-shadow:none!important;
  border-image:url('/ui/ornaments/button-green.webp?v=2') 18 38 18 38 fill/13px 30px stretch!important;filter:drop-shadow(0 3px 3px #000a);
 }
 #companion #companionHabitat #companionDaily:disabled{border-image-source:url('/ui/ornaments/button-grey.webp?v=2')!important;opacity:1!important}
 #companion #companionHabitat #companionDaily img{display:none!important}
 #companion #companionHabitat #companionDaily .care-summary-label{position:static!important;display:block;padding:0!important;background:none!important;font:400 14px/1.1 'Lilita One',sans-serif!important;text-transform:none;text-align:center}
 #companion #companionHabitat #companionDaily .care-summary-label b{color:#fff!important;background:none!important;-webkit-text-fill-color:#fff!important;filter:none!important;text-shadow:0 2px 0 #0d3a10,0 0 6px #0008}
 #companion #companionHabitat #companionDaily:disabled .care-summary-label b{color:#e3e8f0!important;-webkit-text-fill-color:#e3e8f0!important;text-shadow:0 2px 0 #1b2230}

 /* The five needs: a picture, then a bar in the need's colour with its name and number written over it. */
 #companion #companionHabitat #companionNeeds{
  grid-area:4/2/5/4;align-self:start;display:grid!important;grid-template-columns:1fr!important;gap:4px!important;box-sizing:border-box;margin:14px 18px!important;padding:1px 0!important;background-clip:padding-box!important;
  border-style:solid;border-color:transparent;border-width:14px 16px;background:linear-gradient(180deg,#14213f,#0a1224)!important;
 }
 #companion #companionHabitat .companion-need{position:relative;display:grid!important;grid-template-columns:50px minmax(0,1fr);align-items:center;gap:0;margin:0!important;padding:0!important;background:none!important;border:0!important}
 #companion #companionHabitat .companion-need-icon{width:54px;height:30px;margin-right:-6px;z-index:1;background:center/contain no-repeat;filter:drop-shadow(0 2px 2px #000a)}
 #companion #companionHabitat .companion-need[data-need=satiety] .companion-need-icon{background-image:url('/ui/care/need-satiety.webp?v=1')}
 #companion #companionHabitat .companion-need[data-need=happiness] .companion-need-icon{background-image:url('/ui/care/need-happiness.webp?v=1')}
 #companion #companionHabitat .companion-need[data-need=energy] .companion-need-icon{background-image:url('/ui/care/need-energy.webp?v=1')}
 #companion #companionHabitat .companion-need[data-need=cleanliness] .companion-need-icon{background-image:url('/ui/care/need-cleanliness.webp?v=1')}
 #companion #companionHabitat .companion-need[data-need=mana] .companion-need-icon{background-image:url('/ui/care/need-mana.webp?v=1')}
 #companion #companionHabitat .companion-need-name{display:none}
 #companion #companionHabitat .companion-need>div{position:absolute;left:58px;right:8px;text-align:center;top:50%;transform:translateY(-50%);z-index:1;font-size:11.5px!important;color:#fff!important;text-shadow:0 1px 0 #000,0 0 5px #000!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
 #companion #companionHabitat .companion-need progress{grid-column:2}
 #companion #companionHabitat .companion-need progress::-webkit-progress-value{border-radius:8px;box-shadow:inset 0 2px 0 #ffffff80;background:linear-gradient(180deg,var(--need-hi),var(--need) 45%,var(--need-lo))}
 #companion #companionHabitat .companion-need progress::-moz-progress-bar{border-radius:8px;background:linear-gradient(180deg,var(--need-hi),var(--need) 45%,var(--need-lo))}
 #companion #companionHabitat .companion-need[data-need=satiety]{--need-hi:#ffe08a;--need:#ffab1c;--need-lo:#c9690a}
 #companion #companionHabitat .companion-need[data-need=happiness]{--need-hi:#c8ff8a;--need:#55d21c;--need-lo:#1f8a12}
 #companion #companionHabitat .companion-need[data-need=energy]{--need-hi:#fff59a;--need:#ffd21c;--need-lo:#c99a06}
 #companion #companionHabitat .companion-need[data-need=cleanliness]{--need-hi:#b9f1ff;--need:#2fb8ff;--need-lo:#0d6fd6}
 #companion #companionHabitat .companion-need[data-need=mana]{--need-hi:#e2c2ff;--need:#a45cff;--need-lo:#6424c8}

 /* Mood and character: the panel under the wings, a segmented bar for every habit. */
 #companion #companionHabitat #companionPetLife{
  grid-area:4/4/5/6;align-self:start;display:grid!important;gap:3px!important;box-sizing:border-box;margin:20px 22px 14px!important;padding:3px 0 0!important;border-radius:0!important;background-clip:padding-box!important;
  border-style:solid;border-color:transparent;border-width:10px 16px 14px;background:linear-gradient(180deg,#14213f,#0a1224)!important;
 }
 #companion #companionHabitat .pet-life-row strong{font-size:13.5px!important}
 #companion #companionHabitat .pet-life-row small{font-size:11px!important;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #companion #companionHabitat .pet-life-character small{display:none}
 #companion #companionHabitat .pet-life-shares{grid-template-columns:1fr!important;gap:4px!important}
 #companion #companionHabitat .pet-life-mood{grid-template-columns:12px auto minmax(0,1fr)!important}
 #companion #companionHabitat .pet-life-mood small{grid-column:auto!important}
 #companion #companionHabitat .pet-life-share{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;min-height:18px}
 #companion #companionHabitat .pet-life-share::before{content:'';width:32px;height:19px;background:center/contain no-repeat;filter:drop-shadow(0 1px 2px #000a)}
 #companion #companionHabitat .pet-life-share[data-share=playful]::before{background-image:url('/ui/care/trait-playful.webp?v=1')}
 #companion #companionHabitat .pet-life-share[data-share=brave]::before{background-image:url('/ui/care/trait-brave.webp?v=1')}
 #companion #companionHabitat .pet-life-share[data-share=calm]::before{background-image:url('/ui/care/trait-calm.webp?v=1')}
 #companion #companionHabitat .pet-life-share[data-share=curious]::before{background-image:url('/ui/care/trait-curious.webp?v=1')}
 #companion #companionHabitat .pet-life-share[data-share=pampered]::before{background-image:url('/ui/care/trait-pampered.webp?v=1')}
 #companion #companionHabitat .pet-life-share small{position:absolute;left:46px;top:50%;transform:translateY(-50%);z-index:1;font-size:10.5px!important;color:#fff!important;text-shadow:0 1px 0 #000,0 0 4px #000;text-align:left!important;pointer-events:none}
 #companion #companionHabitat .pet-life-share span{grid-column:2;height:16px!important;box-sizing:border-box;border:2px solid #8d93a3;border-radius:9px!important;background:#070d1a!important;box-shadow:inset 0 2px 4px #000c;padding:1px}
 #companion #companionHabitat .pet-life-share span i{height:100%;border-radius:5px!important;background:linear-gradient(180deg,#b9f1ff,#2fd0ff 50%,#0d8fd6)!important;
  -webkit-mask:repeating-linear-gradient(90deg,#000 0 13px,#0000 13px 16px);mask:repeating-linear-gradient(90deg,#000 0 13px,#0000 13px 16px)}
 #companion #companionHabitat .pet-life-share.on span{border-color:#f3c552}
 #companion #companionHabitat .pet-life-share.on span i{background:linear-gradient(180deg,#fff3b8,#f0b43c 50%,#c07f1c)!important}
 #companion #companionHabitat .pet-life-progress{display:none!important}
}

/* ===== Clan art (owner's sheet ~/Desktop/ask, 2026-12-02; static/ui/clan, cut by scripts/cut_ui_ornaments.mjs) =====
   Rank badges before the members, a picture on each of the clan window's tabs and on each clan skill, the clan's
   notice and the Journal on parchment, notices on a plate with a laurel, the confirmation box in a frame with lions
   and its answers as a green tick and a red cross, and gold scroll bars. */
#companion .fx-shop-row.fx-clan-member{grid-template-columns:50px minmax(0,1fr) auto!important}
#companion .fx-clan-member::before{content:'';width:48px;height:54px;background:center/contain no-repeat;filter:drop-shadow(0 2px 3px #000a)}
#companion .fx-clan-member[data-rank="0"]::before{background-image:url('/ui/clan/rank-0.webp?v=1')}
#companion .fx-clan-member[data-rank="1"]::before{background-image:url('/ui/clan/rank-1.webp?v=1')}
#companion .fx-clan-member[data-rank="2"]::before{background-image:url('/ui/clan/rank-2.webp?v=1')}
#companion .fx-clan-member[data-rank="3"]::before{background-image:url('/ui/clan/rank-3.webp?v=1')}
#companion .fx-clan-member[data-rank="4"]::before{background-image:url('/ui/clan/rank-4.webp?v=1')}
#companion .fx-tab[data-clan-tab]{display:inline-flex!important;align-items:center;gap:6px}
#companion .fx-tab[data-clan-tab]::before{content:'';width:26px;height:28px;margin:-6px 0 -6px -8px;background:center/contain no-repeat;flex:none}
#companion .fx-tab[data-clan-tab=clan]::before{background-image:url('/ui/clan/tab-clan.webp?v=1')}
#companion .fx-tab[data-clan-tab=store]::before{background-image:url('/ui/clan/tab-store.webp?v=1')}
#companion .fx-tab[data-clan-tab=build]::before{background-image:url('/ui/clan/tab-build.webp?v=1')}
#companion .fx-tab[data-clan-tab=allies]::before{background-image:url('/ui/clan/tab-allies.webp?v=1')}
#companion .fx-tab[data-clan-tab=rules]::before{background-image:url('/ui/clan/tab-rules.webp?v=1')}
#companion .fx-shop-row[data-skill]{grid-template-columns:74px minmax(0,1fr) auto!important}
#companion .fx-shop-row[data-skill]::before{content:'';width:72px;height:54px;background:center/contain no-repeat;filter:drop-shadow(0 2px 3px #000a)}
#companion .fx-shop-row[data-skill=vaults]::before{background-image:url('/ui/clan/skill-vaults.webp?v=1')}
#companion .fx-shop-row[data-skill=shares]::before{background-image:url('/ui/clan/skill-shares.webp?v=1')}
#companion .fx-shop-row[data-skill=drill]::before{background-image:url('/ui/clan/skill-drill.webp?v=1')}
#companion .fx-shop-row[data-skill=renown]::before{background-image:url('/ui/clan/skill-renown.webp?v=1')}
#companion .fx-shop-row[data-skill=thumbs]::before{background-image:url('/ui/clan/skill-thumbs.webp?v=1')}
#companion .fx-shop-row[data-skill=lore]::before{background-image:url('/ui/clan/skill-lore.webp?v=1')}
/* Parchment: the clan's notice and every line of the Journal, in dark ink. */
#companion .fx-clan-notice,#companion #companionMemories .event{
 background:none!important;border-style:solid!important;border-color:transparent!important;border-width:14px 26px!important;border-radius:0!important;box-shadow:none!important;
 border-image:url('/ui/clan/parchment.webp?v=1') 30 60 30 60 fill/14px 26px stretch!important;color:#3a2206!important;
}
#companion .fx-clan-notice :is(strong,p),#companion #companionMemories .event :is(small,div){color:#3a2206!important;text-shadow:none!important}
#companion #companionMemories .event{margin:6px 0;padding:2px 4px!important}
#companion #companionMemories .event small{color:#7a5520!important}
/* Notices. */
#toast{
 background:linear-gradient(180deg,#1d2f5c,#0c1630) center bottom 6px/calc(100% - 14px) calc(100% - 26px) no-repeat border-box!important;border-style:solid!important;border-color:transparent!important;border-width:26px 34px 16px!important;border-radius:0!important;box-shadow:none!important;
 border-image:url('/ui/clan/notice.webp?v=1') 40 50 24 50 fill/26px 34px 16px stretch!important;padding:0 4px!important;filter:drop-shadow(0 8px 14px #000c);
}
/* The confirmation box. */
#companion .game-confirmation{
 border-style:solid!important;border-color:transparent!important;border-width:92px 40px 22px!important;border-radius:0!important;box-shadow:none!important;overflow:visible;
 border-image:url('/ui/clan/dialog.webp?v=1') 126 54 30 54/92px 40px 22px stretch!important;
 /* The board fills the frame up to its bars (they are thinner than the pieces they are cut with). */
 background:linear-gradient(180deg,#16254a,#0a1224) center bottom 9px/calc(100% - 26px) calc(100% - 56px) no-repeat border-box!important;padding:6px 14px 12px!important;width:min(440px,calc(100% - 24px))!important;
}
#companion .game-confirmation h2{position:absolute;left:0;right:0;top:-46px;margin:0!important;text-align:center;font-size:17px!important;color:#fff!important;text-shadow:0 2px 0 #0b2152!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 78px}
#companion .game-confirmation{position:fixed}
#companion#companion .game-confirmation-actions :is(.placement-ok,.placement-cancel){
 width:128px!important;height:46px!important;min-width:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:0!important;color:transparent!important;
 background:url('/ui/clan/confirm-yes.webp?v=1') center/100% 100% no-repeat!important;filter:drop-shadow(0 3px 3px #000a);
}
#companion#companion .game-confirmation-actions .placement-cancel{background-image:url('/ui/clan/confirm-no.webp?v=1')!important}
#companion#companion .game-confirmation-actions :is(.placement-ok,.placement-cancel) *{display:none!important}
/* Scroll bars. */
#companion ::-webkit-scrollbar{width:13px;height:13px}
#companion ::-webkit-scrollbar-track{background:url('/ui/clan/bar-track.webp?v=1') center/11px 100% no-repeat}
#companion ::-webkit-scrollbar-thumb{background:url('/ui/clan/bar-thumb.webp?v=1') center/13px 100% no-repeat;min-height:44px}
#companion ::-webkit-scrollbar-corner{background:transparent}

/* ===== The older windows' insides (owner, 2026-12-02): Profile, Dev, Activities, Inventory =====
   Their plain panels become the pack's plates: Profile's sections are picture cards in the Build cards' frame, the
   developer's actions and the outings are framed plates, and the bag's two panels stand in gold frames. */
/* Profile: seven cards, four to a row, each short enough for both rows to show. */
@media(min-width:900px){
 #companion .game-section-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px 10px!important}
 #companion .game-section-grid>.profile-badges{grid-column:1/-1}
 #companion button.game-section-card{
  display:flex!important;flex-direction:column;align-items:center;gap:2px;text-align:center;min-height:0!important;height:auto!important;
  background:none!important;border-style:solid!important;border-color:transparent!important;border-width:30px 18px 18px!important;border-radius:0!important;box-shadow:none!important;
  padding:0 2px 2px!important;filter:drop-shadow(0 5px 6px #0009);
 }
 #companion button.game-section-card:is(:hover,:focus-visible){filter:brightness(1.12) drop-shadow(0 5px 8px #000b)}
 #companion button.game-section-card .game-section-art{width:64px!important;height:64px!important;flex:none;margin:0 auto!important}
 #companion button.game-section-card :is(strong,h3,b){font-size:17px!important;color:#ffe9a3!important;text-shadow:0 2px 0 #2a1703}
 #companion button.game-section-card>span:not(.game-section-art){font-size:11.5px!important;line-height:1.25;color:#dbe6ff!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #companion button.game-section-card>span:last-child{display:none!important}
}
#companion .profile-badges{background:none!important;border-style:solid!important;border-color:transparent!important;border-width:11px 20px!important;border-radius:0!important;border-image:url('/ui/ornaments/tab-off.webp?v=2') 22 36 22 36 fill/11px 20px stretch!important;padding:0 4px!important}
#companion :is(.local-save-panel,.settings-row,.companion-profile-bar,.companion-milestone){background:linear-gradient(180deg,#1d2c50,#0c1529)!important;border:2px solid #a8782a!important;border-radius:12px!important;box-shadow:0 0 0 1px #1a0e02,inset 0 1px 0 #ffffff24!important}
#companion .companion-milestone.unlocked{border-color:#f3c552!important}
/* Dev: every action a plate; the main one green. */
#companion .developer-section h3{display:flex;align-items:center;gap:10px;margin:14px 0 8px!important;font-size:17px!important;color:#ffe9a3!important;border:0!important}
#companion .developer-section h3::after{content:'';flex:1;height:2px;background:linear-gradient(90deg,#f3c552,#f3c55200)}
#companion .developer-actions{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:8px!important}
#companion#companion button.developer-action{
 display:grid!important;gap:2px;text-align:left;min-height:54px;padding:8px 12px!important;border-radius:12px!important;
 background:linear-gradient(180deg,#24386a,#101a33)!important;border:2px solid #a8782a!important;box-shadow:0 0 0 1px #1a0e02,inset 0 1px 0 #ffffff33,0 3px 0 #0a0f1c!important;
}
#companion#companion button.developer-action:is(:hover,:focus-visible):enabled{border-color:#ffe9a3!important;filter:brightness(1.12)}
#companion#companion button.developer-action:active:enabled{transform:translateY(2px);box-shadow:0 0 0 1px #1a0e02,inset 0 1px 0 #ffffff33!important}
#companion#companion button.developer-action strong{font-size:14px!important;color:#fff!important}
#companion#companion button.developer-action small{font-size:11px!important;line-height:1.25;color:#b9c9e6!important;letter-spacing:.01em!important}
#companion#companion button.developer-action.developer-action-primary{background:linear-gradient(180deg,#58c943,#1d7a1f)!important;border-color:#f3c552!important}
#companion#companion button.developer-action.developer-action-primary small{color:#e6ffd9!important}
#companion .dev-graphics{background:linear-gradient(180deg,#1d2c50,#0c1529)!important;border:2px solid #a8782a!important;border-radius:12px!important}
/* Activities: an outing is a framed plate with its photograph; the place's head and its journal too. */
#companion .companion-world-activity{padding:8px!important;border-radius:14px!important}
#companion .companion-world-activity .activity-picture{border:2px solid #f3c552;border-radius:10px;box-shadow:0 0 0 1px #2a1703}
#companion #companionWorldActivities section.companion-category>h3{font-size:19px!important;color:#ffe9a3!important;text-shadow:0 2px 0 #2a1703}
#companion :is(.activity-place-head,.place-journal,.activity-journal){background:linear-gradient(180deg,#1d2c50,#0c1529)!important;border:2px solid #a8782a!important;border-radius:14px!important;box-shadow:0 0 0 1px #1a0e02,inset 0 1px 0 #ffffff24!important}
/* Inventory: the bag in one gold frame, the chosen item in another; plain buttons become plates. */
#companion .inventory-window{background:none!important;border:0!important;box-shadow:none!important;padding:2px!important}
#companion .inventory-slot-grid{box-sizing:border-box;padding:6px!important;border-style:solid;border-color:transparent;border-width:14px 16px;background:linear-gradient(180deg,#14213f,#0a1224) padding-box!important;margin:14px 18px!important}
#companion aside.inventory-item-detail{box-sizing:border-box;border-style:solid!important;border-color:transparent!important;border-width:14px 16px!important;border-radius:0!important;box-shadow:none!important;
 background:linear-gradient(180deg,#16254a,#0b1428) padding-box!important;margin:14px 18px!important;padding:10px 8px!important}
#companion aside.inventory-item-detail h3{font-size:18px!important;color:#ffe9a3!important;text-shadow:0 2px 0 #2a1703}
#companion#companion aside.inventory-item-detail button:not(.detail-action),#companion#companion .inventory-paging button{
 background:none!important;border-style:solid!important;border-color:transparent!important;border-width:11px 26px!important;border-radius:0!important;box-shadow:none!important;min-height:38px!important;padding:0 2px!important;
 border-image:url('/ui/ornaments/button-blue.webp?v=2') 18 38 18 38 fill/11px 26px stretch!important;color:#fff!important;font-size:14px!important;text-shadow:0 2px 0 #0b2a6b!important;
}
#companion#companion .inventory-paging button{border-image-source:url('/ui/ornaments/button-gold.webp?v=2')!important;text-shadow:0 2px 0 #5a3206!important;min-width:64px}
#companion#companion .inventory-paging button:disabled{border-image-source:url('/ui/ornaments/button-grey.webp?v=2')!important;opacity:1!important}
#companion :is(.collar-strip,.inventory-filters input){background:#0a1224!important;border:2px solid #a8782a!important;border-radius:10px!important;color:#f3e6c8!important}

/* Clan wars and clan missions (2026-12-02): the war's box with its score, the tasks of a mission with their bars. */
#companion .fx-clan-war{display:grid;gap:6px;margin:10px 0;padding:12px 14px;border-radius:12px;background:linear-gradient(180deg,rgba(74,22,22,.72),rgba(30,14,18,.78));border:1px solid rgba(232,170,96,.7);box-shadow:inset 0 0 0 1px rgba(255,220,150,.12)}
#companion .fx-clan-war>strong{color:#ffe9a3;font-size:15px}
#companion .fx-clan-war small{color:#ecd9c0;font-size:12px;line-height:1.35}
#companion .fx-clan-war .fx-clan-war-land{color:#ffd9a0}
#companion .fx-clan-war-score{display:flex;align-items:center;justify-content:center;gap:14px}
#companion .fx-clan-war-score b{color:#fff3d0;font-size:30px;letter-spacing:1px;text-shadow:0 2px 0 rgba(0,0,0,.55)}
#companion .clan-tasks{display:grid;gap:6px;margin:6px 0}
#companion .clan-task{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;color:#e6eef0;font-size:12.5px}
#companion .clan-task b{color:#ffe9a3}
#companion .clan-task .fx-achievement-bar{grid-column:1/-1}
#companion .clan-task.done span,#companion .clan-mission.done strong{color:#b9f0a8}
#companion .clan-mission.done{opacity:.86}
#companion .fx-tab[data-clan-tab=missions]::before{background-image:url('/ui/clan/scroll.webp?v=1')}

/* ==== Owner, 2026-12-03: "the lions and the thicker frame belong on the OUTSIDE of a window, with the detail;
   inside it the frames are thin; and every title stands in the middle of what frames it." ====
   A window is three layers: the board (::before, under everything, kept inside the frame's rails), what the
   window holds, and the frame (::after, over everything): the pack's lion frame as a nine-slice, its corners
   holding the lions with their paw banners above and the leaves below (window-lions.webp: the crest of its top
   rail was taken out, the title's plate lies there). --lw is the frame's scale. The question box (.game-confirmation)
   keeps its own frame from the owner's sheet. */
#companion#companion#companion :is(.world-controls-drawer,.world-building-card,dialog:not(.game-confirmation)){
 --lw:.75;isolation:isolate;
 border:0!important;border-image:none!important;border-radius:0!important;background:none!important;box-shadow:none!important;
 padding:calc(58px*var(--lw)) calc(46px*var(--lw)) calc(42px*var(--lw))!important;box-sizing:border-box;overflow:hidden!important;
}
#companion#companion#companion .world-controls-drawer{max-height:calc(100% - 70px)!important}
/* The window itself never scrolls (its frame and title would go with it): what it holds does. */
#companion#companion#companion .world-controls-drawer:not([hidden]){display:flex!important;flex-direction:column!important}
#companion#companion#companion .world-controls-drawer .world-controls-body{flex:1 1 auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important}
/* A building's card stands in the middle of a dimmed layer: the frame's layers are measured from the card. */
#companion#companion#companion .world-building-card:not(dialog){position:relative!important}
#companion .world-controls-drawer::before,#companion .world-building-card::before,#companion dialog:not(.game-confirmation)::before{
 content:'';position:absolute;z-index:-1;inset:calc(54px*var(--lw)) calc(20px*var(--lw)) calc(16px*var(--lw));border-radius:14px;
 background:var(--fx-board);box-shadow:inset 0 0 46px #000a;pointer-events:none;
}
#companion .world-controls-drawer::after,#companion .world-building-card::after,#companion dialog:not(.game-confirmation)::after{
 content:'';position:absolute;z-index:9;inset:0;pointer-events:none;border-style:solid;border-color:transparent;
 border-width:calc(200px*var(--lw)) calc(122px*var(--lw)) calc(96px*var(--lw));
 border-image:url('/ui/ornaments/window-lions.webp?v=1') 200 122 96 122 stretch;
 filter:drop-shadow(0 5px 6px #000a);
}
#companion#companion#companion :is(.world-building-card,dialog:not(.game-confirmation)){--lw:.6}
@media(max-width:900px),(max-height:430px){#companion#companion#companion :is(.world-controls-drawer,.world-building-card,dialog:not(.game-confirmation)){--lw:.5}}
/* What a window holds keeps clear of the side rails and of the banners that hang from the lions. */
#companion#companion#companion .world-controls-drawer .world-controls-body{padding:8px calc(30px*var(--lw) + 3px)!important}
#companion#companion#companion .world-building-card>:not(.world-popup-header,.window-pins){margin-left:calc(18px*var(--lw));margin-right:calc(18px*var(--lw))}
/* The title: a plain plate with pointed ends over the top rail, in the middle between the lions, as long as the
   title needs. No picture stands beside it (it pushed the title off the middle). */
#companion#companion#companion .world-popup-header{
 background:none!important;filter:none!important;display:flex!important;justify-content:center!important;align-items:center!important;position:relative;z-index:10;
 min-width:0!important;width:auto!important;max-width:calc(100% - 250px*var(--lw))!important;min-height:0!important;height:calc(60px*var(--lw))!important;box-sizing:border-box;
 margin:calc(-16px*var(--lw)) auto calc(8px*var(--lw))!important;padding:0!important;
}
#companion#companion#companion .world-popup-header::before{content:none!important;display:none!important}
#companion#companion#companion .world-popup-header>:is(strong,h2,div){
 display:block!important;box-sizing:border-box;min-width:calc(190px*var(--lw));max-width:100%;height:calc(60px*var(--lw))!important;line-height:calc(60px*var(--lw))!important;margin:0!important;padding:0 4px!important;background:none!important;
 border-style:solid!important;border-color:transparent!important;border-width:0 calc(46px*var(--lw))!important;border-image:url('/ui/ornaments/title-plate.webp?v=1') 0 62 0 62 fill/0 calc(46px*var(--lw)) stretch!important;
 font-size:calc(27px*var(--lw))!important;text-align:center!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#companion#companion#companion .world-popup-header>:is(strong,h2,div)[hidden]{display:none!important}
/* Back and Close stand on the top rail, beside the lions, clear of what the window holds. */
#companion#companion .window-pins>.pinned-close{top:calc(14px*var(--lw) - 17px)!important;right:calc(80px*var(--lw))!important;left:auto!important;z-index:11}
#companion#companion .window-pins>.pinned-back{top:calc(14px*var(--lw) - 17px)!important;left:calc(80px*var(--lw))!important;right:auto!important;z-index:11}
#companion#companion#companion .window-pins>:is(.pinned-close,.pinned-back){width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
#companion#companion#companion .world-popup-header{max-width:calc(100% - 330px*var(--lw))!important}
#companion .window-pins{z-index:11}

/* Inside a window: thin, plain frames (one gold line with a dark keyline), no crests, lions or banners. */
@media(min-width:900px){
 #companion #companionBlueprints .companion-blueprint,
 #companion #companionHabitat .care-summary-actions,
 #companion #companionHabitat #companionNeeds,
 #companion #companionHabitat #companionPetLife{
  border:1.5px solid #caa14d!important;border-image:none!important;border-radius:12px!important;filter:none!important;
  background-clip:border-box!important;box-shadow:0 0 0 1px #2a1a06,inset 0 0 0 1px #ffffff14,0 4px 10px #0007!important;
 }
 #companion #companionBlueprints .companion-blueprint{background:linear-gradient(180deg,#16254a,#0b1428)!important}
 #companion #companionBlueprints .companion-blueprint{padding:14px 12px 12px!important}
 #companion #companionHabitat .care-summary-actions{padding:10px 14px!important}
 #companion #companionHabitat #companionNeeds{padding:12px 14px!important}
 #companion #companionHabitat #companionPetLife{padding:12px 14px!important}
 /* The pet's card: the scene in a thin frame. */
 #companion #companionGame[data-panel="Care"] #companionHabitat #companionPortrait{padding:0!important;border:1.5px solid #caa14d!important;border-radius:12px!important;overflow:hidden!important;box-shadow:0 0 0 1px #2a1a06,0 4px 10px #0007!important;background-origin:border-box!important;background-clip:border-box!important}
 #companion #companionHabitat #companionPortrait::after{content:none!important}
}
#companion .inventory-slot-grid,#companion aside.inventory-item-detail{
 border:1.5px solid #caa14d!important;border-image:none!important;border-radius:12px!important;box-shadow:0 0 0 1px #2a1a06,inset 0 0 0 1px #ffffff14,0 4px 10px #0007!important;
 background-clip:border-box!important;padding:14px!important;
}
