/* NO SYNTHESISED FACES (owner TTTTTTTT, 2026-09-19): a bold or italic
   asked of a face the game only has in regular was faked by each
   browser its own way (Firefox heavier and wider than Chrome), so
   the login troughs and the deal banner differed. Every face renders
   as served, the same letters on every browser; a weight the game
   wants comes from a served bold face, never from the browser. */
html, body, input, button, textarea, select { font-synthesis: none; }

/* Sacred Seasons 2 - the client's shared CSS (Phase 4,
   2026-09-06): play.html and greenhouse.html both link
   this file; the Greenhouse adds its dev CSS inline. */
:root{--bg:#101408;--panel:#161b0e;--line:#2a3319;--ink:#e8e4d2;
  --muted:#8f9779;--leaf:#8fc94a;--amber:#e9c05c;--red:#e05c4c}
*{box-sizing:border-box;margin:0}
html,body{height:100%}
body{background:var(--bg);color:var(--ink);
  font:14px system-ui,Segoe UI,sans-serif;overflow:hidden;
  display:flex;flex-direction:column}
@font-face{font-family:SS2Dialog;src:url(/api/dialogfont)}
@font-face{font-family:'SS2 Segoe Bold';
  src:url(/api/dialogfont?v=segoebold)}
#main{flex:1;display:flex;min-height:0}
/* the stage SCROLLS (the camera); overlays live on the frame so
   they hold still while the world moves under them */
#stagewrap{flex:1;position:relative;min-width:0;background:#000}
/* THE CLIENT FRAME (owner ruling, 2026-08-22): what's visible
   LOCKS to the original 700x600 by default - that is what the
   UX aligns against. "widescreen" unlocks it to the window (the
   original's unofficial wide mode). */
#frame{position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%);width:700px;height:600px;
  max-width:100%;max-height:100%;outline:1px solid var(--line);
  /* a HARD EDGE (owner OOOOOOOOOOOOOOOO, 2026-10-23): nothing draws
     outside the frame - dragged windows, banners dropping in from
     above, loot. An uncapped widescreen frame may come later. */
  overflow:hidden}
#stagewrap.wide #frame{left:0;top:0;transform:none;width:100%;
  height:100%;outline:none}
/* THE ORIGINAL PAGE'S LAYOUT (Ben, 2026-11-08): the frame at the top
   with a small pad and a black border around it, the page picture
   showing through around it */
body.origbg9 #stagewrap{background:transparent}
/* THE BLACK PANEL (Ben, 2026-11-09): one black rectangle the frame sits
   on, a border wide around it and a taller gap below for the strip;
   seated by snapFrame; drawn under the frame */
#playpanel9{position:absolute;left:0;top:0;background:#000;pointer-events:none}
#stagewrap.wide #playpanel9{display:none}
/* a secret field: a text input drawn with discs, so no password field
   exists for a browser or a password manager to fill (play-ux
   shieldInput9, Ben 2026-11-09) */
input.secret9{-webkit-text-security:disc}
body.origbg9 #frame{outline:none}
/* THE CONTROL STRIP (Ben, 2026-11-08): scale and multibox, seated by
   snapFrame directly under the frame inside its black border, in the
   plain white serif text the original page used for its forum and
   wiki links ("Visit the Forums | Visit the Wiki"); font and colour
   are knobs (playBarFont, playBarColor) */
#playbar9{position:absolute;left:0;top:0;width:700px;box-sizing:border-box;
  padding:2px 0 1px;text-align:center;white-space:nowrap;line-height:1.25;
  background:transparent;
  font:16px "Times New Roman",Times,serif;color:#fff}
#stagewrap.wide #playbar9{display:none}
#playbar9 .grp9{display:inline}
#playbar9 .sep9{margin:0 8px}
#playbar9 .lbl{margin-right:4px}
/* a door under the pointer, lifted above the players standing on it
   (world-client.js portalLift9); !important because the depth sort
   writes its own figure inline and must be left as it wrote it */
#room .mk.over9{z-index:var(--over9) !important}
#playbar9 .ask9 .btn9{margin:0 6px}
#playbar9 .ask9 .note9{display:block;white-space:normal;font-size:13px;line-height:1.2;opacity:.9}
#playbar9 .ask9 .note9:empty{display:none}
#playbar9 select{font:inherit;color:inherit;background:#000;border:1px solid #777;
  border-radius:0;padding:0 2px;vertical-align:baseline;cursor:pointer}
#playbar9 .btn9{color:inherit;text-decoration:none;margin:0 3px;cursor:pointer}
#playbar9 .btn9:hover{text-decoration:underline}
#playbar9 .btn9.on{font-weight:700;text-decoration:underline}
#playbar9 .help9{display:inline-block;width:14px;height:14px;line-height:12px;margin-left:4px;
  border-radius:50%;border:1px solid currentColor;font-size:11px;text-align:center;
  vertical-align:1px;cursor:help;opacity:.85}
#playbar9 .help9:hover{opacity:1}
/* THE UX BROWSER'S PIECE MODE (2026-11-01): the tune column stands
   beside the stage, not over it - the browser's frame is 940 wide */
body.uxpiece9 #main{margin-left:240px;flex:none;height:600px}
body.uxpiece9 #uxtunecol{top:6px!important;bottom:6px!important}
#stage{position:absolute;inset:0;overflow:hidden;background:#000;
  user-select:none;-webkit-user-select:none}
/* nothing in the game is selectable or natively draggable
   (owner spec 2026-08-30, matches the original client); only
   real inputs keep text selection */
body{user-select:none;-webkit-user-select:none}
input,textarea,[contenteditable]{user-select:text;
  -webkit-user-select:text}
img,svg{-webkit-user-drag:none}
/* no will-change (owner EEEEEEEEEEEE, 2026-09-27): a will-change layer is
   rasterised once at 1x and only scaled by the compositor, so under the
   frame's zoom every SVG in the room (the rig, the NPCs, the art) went
   soft or pixelated while the inventory's preview, outside the room, stayed
   crisp; without it the browser re-rasterises the room at the final scale */
#room{position:absolute;transform-origin:0 0}
#room img{-webkit-user-drag:none}
#player{position:absolute;width:0;height:0;z-index:34;
  pointer-events:none}
/* an NPC's dial and nametag are part of its HITBOX (owner,
   2026-08-22: "for convenience") */
#room .mk .dial, #room .mk .ntag{pointer-events:auto;
  cursor:pointer}
/* a piece whose ART RULES say hidden: in the world, clickable through
   its ink, drawing nothing (owner FFFF2, 2026-09-12) */
#room .mk.artoff .spr, #room .mk.artoff .sprlit, #room .mk.artoff .dial,
#room .mk.artoff .ntag, #room .mk.artoff .spin{opacity:0}
/* the day's INFESTED entrance portal (owner VVVVVVVVVVVVVV N3 and
   XXXXXXXXXXXXXX, 2026-10-05): the server marks the one portal in the
   world that leads into the day's dungeon; its bitmap turns minus 80
   degrees (purple; plus 80 is green, owner CCCCCCCCCCCCCCC), the lit frame with it. The hue sits on the MARKER DIV, so
   the two frames keep the authored filters of room-render.js (the drop
   shadow, the no-lit hover brighten; review, BBBBBBBBBBBBBBB,
   2026-10-05). The client's tune knob portalInfestHue writes the live
   value inline; this rule is the no-script default. No will-change
   (the ruling above). */
/* the infested hue rides the ARROW frames alone, set inline by
   portalTint9 with the tunable knob (owner WWWWWWWWWWWWWWW1, 2026-10-13):
   a marker-level filter tinted the pennant and doubled the arrow's turn */
#room .mk.portal.infested{filter:none}
/* the rig anchors INSIDE the player div at the tile's standing
   point - the stitcher's own FEETOFF (10,18) */
#rig{position:absolute;left:10px;top:18px;transform-origin:0 100%}
#wmark{position:absolute;width:20px;height:20px;
  border:2px solid #5ddc82;border-radius:50%;pointer-events:none;
  opacity:0;transition:opacity .4s}
/* Z order (owner ruling, 2026-08-22): static dial, then spinner,
   then the NPC body, then the nametag. z:-1 keeps the ring in
   the ground layer; DOM order puts it above the static dial. */
/* the ring takes the pointer (owner OOOOOOOOOO, 2026-09-20): its
   whole disc opens the talk; z:-1 keeps it under the body, so the
   body's own ink still wins where they overlap */
.spin{position:absolute;z-index:-1;pointer-events:auto;cursor:pointer}
/* dialog */
#dlg{position:absolute;left:0;right:0;bottom:26px;display:flex;
  justify-content:center;z-index:5050;pointer-events:none}
#dlg .card{pointer-events:auto;width:620px;max-width:92%;
  background:linear-gradient(#f7f1df,#e9ddc2);color:#1c1c1c;
  border:3px solid #6b4a2b;border-radius:12px;
  box-shadow:0 10px 24px #000a;padding:12px 16px;display:flex;
  gap:14px;font-family:SS2Dialog,Verdana,sans-serif}
#dlg .port{flex:none;width:96px;height:110px;background:#d8c9a5;
  border:2px solid #6b4a2b;border-radius:8px;overflow:hidden;
  display:flex;align-items:flex-end;justify-content:center}
#dlg .port img,#dlg .port svg{max-width:100%;max-height:100%}
#dlg .body{flex:1;min-width:0;display:flex;flex-direction:column}
#dlg .nm{font-weight:700;margin-bottom:4px}
#dlg .tx{flex:1;overflow-y:auto;max-height:130px;font-size:13.5px;
  line-height:1.32}
#dlg .rd{border-top:1px solid #b09a6e;margin-top:6px;padding-top:5px;
  color:#cc1111;font-size:12.5px;max-height:72px;overflow-y:auto}
#dlg .okrow{text-align:right;margin-top:6px}
#dlg .ok{background:#6b4a2b;color:#f7f1df;border:0;border-radius:7px;
  padding:4px 22px;cursor:pointer;font:700 13px SS2Dialog,Verdana}

