/* The shared fires (src/fire/fire.js): the campfire's panel, and the room you sit down in. The room's
   log uses main.css's .chat-list and .msg. */
/* The panel: a line on who is by the fires, one suggested fire in a card with its button, and (with two
   or more burning) the others behind a link. */
.fire-sec{gap:12px;padding-top:14px;border-top:1px solid rgba(243,231,207,.12)}
.fire-status{display:flex;align-items:center;gap:9px;margin:0;font-size:14.5px;color:var(--cream)}
.fire-status .pxi{flex:none}
.fire-card{display:flex;flex-direction:column;gap:12px;padding:14px;background:rgba(255,236,205,.05);box-shadow:inset 0 0 0 1px rgba(243,231,207,.14)}
.fc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.fc-name{font-family:var(--f-story);font-weight:700;font-size:18px;line-height:1.25}
.fc-sub{margin:3px 0 0;font-size:13px;color:var(--cream-dim)}
.fire-card > .fc-sub{margin:0}
.fc-count{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none;text-align:right}
.fc-count .n{display:inline-flex;align-items:center;gap:6px;font-family:var(--f-px);font-size:15px;color:var(--ember-hi);font-variant-numeric:tabular-nums}
.fc-count .left{font-size:12px;color:var(--cream-dim)}
.fire-go{width:100%;box-sizing:border-box;justify-content:center;padding:12px 14px;font-size:15px;font-weight:700}
.fire-more{align-self:flex-start;padding:0;font-size:13.5px}
.fire-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.fire-list li{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:8px 10px;background:rgba(255,236,205,.04);box-shadow:inset 0 0 0 1px rgba(243,231,207,.1)}
.fire-list .nm{font-weight:700}
.fire-list .ct{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--cream-dim);font-variant-numeric:tabular-nums}

/* The room (the user's mock-up, 2026-10-13): the painting alive on a WebGL canvas (src/fire/stage.js),
   the names, bubbles and seat buttons over it; a title card top left, the buttons top right, the log in
   a panel. Dark glass, thin gold lines, soft corners. */
.fire-room{--fr-gold:#d9a05b;--fr-gold-hi:#f0c27a;--fr-line:rgba(217,160,91,.45);--fr-line-soft:rgba(217,160,91,.22);
  --fr-glass:linear-gradient(180deg,rgba(31,20,13,.80),rgba(17,11,8,.86));--fr-ink:#f3e7cf;--fr-dim:#cdb999;--fr-faint:#9a876c;
  position:fixed;inset:0;z-index:9;overflow:hidden;background:#07060c;opacity:0;transition:opacity .5s ease}
/* Behind the painting, the same room blurred and dark, for wherever the painting can't reach the edge. */
.fire-room::before{content:"";position:absolute;inset:-40px;background:url(../assets/camp/fire/plate-small.webp) center / cover no-repeat;filter:blur(24px) brightness(.45)}
.fire-room.on{opacity:1}
.fr-stage{position:absolute;left:0;top:0;transform-origin:0 0;user-select:none;-webkit-user-select:none}
.fr-stage.pick{cursor:pointer}
.fr-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.fr-marks,.fr-bubbles{position:absolute;inset:0}
.fr-bubbles{pointer-events:none}
/* A free seat: lit on the canvas when pointed at; the button is there for the keyboard. */
.fr-seat{position:absolute;padding:0;border:0;background:none;pointer-events:none;opacity:0}
/* The names under the seats. */
.fr-tag{position:absolute;transform:translateX(-50%);padding:3px 10px 4px;border:1px solid rgba(217,160,91,.55);border-radius:8px;font:inherit;font-size:12.5px;line-height:1.25;white-space:nowrap;
  color:var(--fr-ink);background:rgba(20,13,9,.82);box-shadow:0 2px 8px rgba(0,0,0,.35)}
span.fr-tag{pointer-events:none}
button.fr-tag{cursor:pointer}
button.fr-tag:hover,button.fr-tag:focus-visible{background:rgba(36,24,16,.92);border-color:var(--fr-gold-hi);outline:none}
.fr-tag.me{color:#2a1406;font-weight:700;background:linear-gradient(180deg,#f6c879,#e09645);border-color:#ffd99c}
.fr-tag.blocked{color:var(--fr-faint);text-decoration:line-through}
/* The village's painted speech bubble (main.css, .village .bubble), without the night tint: by the fire
   the paper is lit. */
.fr-bubble{position:absolute;z-index:3;transform-origin:0 0;transform:translate(-18px,-100%);width:max-content;max-width:212px;min-width:30px;padding:0 8px 0 0;
  border:solid transparent;border-width:18px 18px 40px 47px;border-image:url(../assets/camp/village/ui/bubble.webp) 36 36 81 94 fill / 18px 18px 40px 47px stretch;
  font-family:var(--f-story);font-size:14px;line-height:1.35;text-align:center;color:#3a2a1a;word-break:keep-all;overflow-wrap:anywhere;
  opacity:0;transition:opacity .25s ease;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3))}
.fr-bubble.on{opacity:1}
.fr-bubble.flip{transform:translate(18px,-100%) scaleX(-1)}
.fr-bubble.flip .words{transform:scaleX(-1)}
.fr-bubble .words{display:block;margin:-7px 0 -7px -21px}

/* The room's icons. */
.fri{display:block;width:20px;height:20px;flex:none}
.fri .f{fill:currentColor}
.fri .s{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* The top: the fire's card on the left, the buttons on the right. */
.fr-bar{position:absolute;z-index:2;top:calc(var(--safe-t) + 16px);left:16px;right:16px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;pointer-events:none}
.fr-bar > *{pointer-events:auto}
.fr-name{display:flex;align-items:center;gap:12px;min-width:min(360px,calc(100vw - 260px));box-sizing:border-box;padding:0 4px 0 0;
  border:16px solid transparent;border-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M8 .75H40A7.25 7.25 0 0 0 47.25 8V40A7.25 7.25 0 0 0 40 47.25H8A7.25 7.25 0 0 0 .75 40V8A7.25 7.25 0 0 0 8 .75Z' fill='rgba(23,14,9,.86)' stroke='rgba(217,160,91,.62)' stroke-width='1.2'/%3E%3Cpath d='M9.87 4.25H38.13A10.75 10.75 0 0 0 43.75 9.87V38.13A10.75 10.75 0 0 0 38.13 43.75H9.87A10.75 10.75 0 0 0 4.25 38.13V9.87A10.75 10.75 0 0 0 9.87 4.25Z' fill='none' stroke='rgba(217,160,91,.24)' stroke-width='1'/%3E%3C/svg%3E") 16 fill / 16px stretch;filter:drop-shadow(0 10px 24px rgba(0,0,0,.4))}
.fr-flame{display:block;width:38px;height:42px;margin:-6px 0 -6px -4px;flex:none}
.fr-flame svg{display:block;width:100%;height:100%;filter:drop-shadow(0 0 8px rgba(255,140,50,.45))}
.fr-title{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.fr-title b{font-size:19px;font-weight:700;letter-spacing:.01em;color:var(--fr-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr-title span{font-size:13.5px;color:var(--fr-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr-count{display:inline-flex;align-items:center;gap:6px;align-self:flex-end;margin:0 0 1px 6px;font-size:14px;color:var(--fr-dim);font-variant-numeric:tabular-nums;white-space:nowrap}
.fr-count .fri{width:16px;height:16px;color:var(--fr-gold)}
.fr-acts{display:flex;align-items:center;gap:10px}
.fr-btn{height:46px;min-width:50px;box-sizing:border-box;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font:inherit;font-size:15px;color:var(--fr-ink);
  background:rgba(22,14,9,.80);border:1px solid var(--fr-line-soft);border-radius:12px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.35);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:border-color .15s,background .15s,transform .08s}
.fr-btn:hover{background:rgba(40,26,17,.88);border-color:var(--fr-line)}
.fr-btn:active{transform:translateY(1px)}
.fr-btn:focus-visible{outline:2px solid var(--fr-gold-hi);outline-offset:2px}
.fr-btn .fri{color:#f2d6a8}
.fr-leave{padding:0 20px 0 16px;border:1.5px solid rgba(232,170,90,.78)}
.fr-leave:hover{border-color:var(--fr-gold-hi)}

/* The log: a glass panel down the right of a wide screen, along the bottom of anything narrower. fit()
   in fire.js keeps the ring of seats clear of it. */
.fr-chat{position:absolute;z-index:2;left:0;right:0;bottom:0;height:42vh;height:42dvh;padding-bottom:var(--safe-b);display:flex;flex-direction:column;box-sizing:border-box;
  background:var(--fr-glass);border:1px solid var(--fr-line);border-bottom:0;border-radius:18px 18px 0 0;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 -10px 30px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,220,170,.06)}
.fire-room.log-right .fr-chat{left:auto;right:16px;top:calc(var(--safe-t) + 80px);bottom:calc(var(--safe-b) + 16px);width:372px;height:auto;padding-bottom:0;border-bottom:1px solid var(--fr-line);border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,220,170,.06)}
.fr-orn{display:block;color:var(--fr-gold)}
.fr-orn svg{display:block;width:100%;height:auto}
.fr-orn .ln{fill:none;stroke:currentColor;stroke-width:1;opacity:.55}
.fr-orn .dm,.fr-orn .lf{fill:currentColor;opacity:.9}
.fr-orn .dt{fill:currentColor;opacity:.7}
.fr-orn .vn{fill:none;stroke:#2a1a10;stroke-width:.9;opacity:.6}
.fr-chat > .fr-orn{width:70%;margin:12px auto 0}
.fr-log{padding:12px 16px 14px;gap:14px}
.fr-hint{min-height:0;padding:0 16px 6px;font-size:12.5px;text-align:center;color:var(--fr-gold-hi)}
.fr-hint:empty{display:none}
/* Where you sat down, and who's here; someone sat down or got up. */
.fr-log .msg.intro{margin:2px 0 4px;text-align:center;font-size:14px;line-height:1.75;color:var(--fr-dim)}
.fr-log .msg.intro p{margin:0}
.fr-log .msg.intro .fr-orn{width:100%;margin:12px 0 0}
.fr-log .msg.sys{text-align:center;font-size:12.5px;color:var(--fr-faint)}
/* A line: their face, name and time over it; yours on the right. */
.fr-log .msg{font-size:14.5px;line-height:1.55}
.fr-log .msg:not(.sys):not(.intro):not(.me){display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:12px;align-items:start}
.fr-log .msg.cont{margin-top:-8px}
.fr-log .msg.cont .mb{grid-column:2}
.fr-log .av{width:42px;height:42px;padding:0;border:1.5px solid var(--fr-gold);border-radius:50%;overflow:hidden;background:#2a1c14;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.fr-log .av img{display:block;width:100%;height:100%;object-fit:cover}
.fr-log .mh{display:flex;align-items:baseline;gap:10px;margin:1px 0 6px}
.fr-log .mh .who{font-family:var(--f-story);font-weight:700;font-size:16px;line-height:1.2;color:var(--fr-gold-hi);padding:0;border:0;background:none;cursor:pointer}
.fr-log .mh .who:hover,.fr-log .mh .who:focus-visible{text-decoration:underline;text-underline-offset:3px;outline:none}
.fr-log .time{font-size:12px;color:var(--fr-faint);margin:0;font-variant-numeric:tabular-nums}
.fr-log .bub{display:inline-block;max-width:100%;box-sizing:border-box;padding:9px 14px 10px;border:1px solid rgba(255,236,205,.13);border-radius:13px;background:rgba(255,236,205,.07);
  color:var(--fr-ink);word-break:keep-all;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}
.fr-log .msg:not(.me) .bub[data-msg]{cursor:pointer}
.fr-log .msg.me{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.fr-log .msg.me .bub{max-width:88%;background:rgba(255,154,60,.17);border-color:rgba(255,176,96,.34)}
.fr-log .msg.me.cont{margin-top:-10px}
.fr-log .msg.pending{opacity:.6}
.fr-log .msg.failed{opacity:.55}
.fr-log .msg.failed .bub{text-decoration:line-through;text-decoration-color:rgba(232,87,42,.8)}
/* What you say: the field with its smiley, the orange button, the emoji over them. */
.fr-say{position:relative;display:flex;gap:10px;padding:12px 14px 14px;border-top:1px solid rgba(217,160,91,.16)}
.fr-field{flex:1;min-width:0;display:flex;align-items:center;gap:4px;padding:0 6px 0 14px;border:1px solid var(--fr-line-soft);border-radius:12px;background:rgba(0,0,0,.34);transition:border-color .15s,box-shadow .15s}
.fr-field:focus-within{border-color:var(--fr-line);box-shadow:0 0 0 3px rgba(217,160,91,.12)}
.fr-field input[type=text]{flex:1;min-width:0;padding:13px 0;border:0;background:none;box-shadow:none;font-size:14.5px;color:var(--fr-ink)}
.fr-field input[type=text]:focus{box-shadow:none}
.fr-field input::placeholder{color:var(--fr-faint)}
.fr-emo{width:36px;height:36px;flex:none;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:none;color:var(--fr-gold);cursor:pointer}
.fr-emo .fri{width:24px;height:24px}
.fr-emo:hover,.fr-emo[aria-expanded=true]{background:rgba(217,160,91,.14);color:var(--fr-gold-hi)}
.fr-emo:focus-visible{outline:2px solid var(--fr-gold-hi);outline-offset:1px}
.fr-send{flex:none;padding:0 22px;border:0;border-radius:12px;font:inherit;font-size:15px;font-weight:700;color:#2a1406;cursor:pointer;
  background:linear-gradient(180deg,#ffbd6e,#f28a32);box-shadow:inset 0 1px 0 rgba(255,236,190,.6),0 3px 0 #b5561c,0 8px 18px rgba(242,138,50,.22);transition:transform .08s,filter .15s}
.fr-send:hover{filter:brightness(1.06)}
.fr-send:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgba(255,236,190,.6),0 1px 0 #b5561c}
.fr-send:focus-visible{outline:2px solid var(--fr-gold-hi);outline-offset:2px}
.fr-emojis{position:absolute;z-index:4;right:14px;bottom:calc(100% + 6px);display:grid;grid-template-columns:repeat(8,36px);gap:2px;padding:8px;
  background:linear-gradient(180deg,rgba(36,23,15,.96),rgba(22,14,9,.97));border:1px solid var(--fr-line);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.5)}
.fr-emojis button{width:36px;height:36px;padding:0;border:0;border-radius:9px;background:none;font-size:21px;line-height:1;cursor:pointer;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.fr-emojis button:hover,.fr-emojis button:focus-visible{background:rgba(217,160,91,.16);outline:none}
/* The menu (other fires, the invite link) and the card on someone's name (report, block). */
.fr-pop{position:absolute;z-index:5;min-width:210px;max-width:min(320px,calc(100vw - 16px));box-sizing:border-box;padding:12px;display:flex;flex-direction:column;gap:8px;
  background:linear-gradient(180deg,rgba(36,23,15,.97),rgba(22,14,9,.98));border:1px solid var(--fr-line);border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.5)}
.fr-pop-h{font-size:12.5px;letter-spacing:.03em;color:var(--fr-dim)}
.fr-pop-note{margin:0;font-size:12px;line-height:1.5;color:var(--fr-faint)}
.fr-pop-item{font:inherit;font-size:14px;text-align:left;color:var(--fr-ink);background:rgba(255,236,205,.06);border:0;border-radius:10px;padding:10px 12px;cursor:pointer}
.fr-pop-item:hover,.fr-pop-item:focus-visible{background:rgba(217,160,91,.18);outline:none}
.fr-moves{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.fr-moves li{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;font-size:13.5px}
.fr-moves .ct{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--fr-dim)}
.fr-moves .ct .fri{width:14px;height:14px;color:var(--fr-gold)}
.fr-pop .btn{border-radius:10px;box-shadow:none;background:rgba(255,236,205,.08)}
.fr-pop .btn:hover{background:rgba(217,160,91,.18)}
.fr-pop .btn.primary{justify-content:center;color:#2a1406;background:linear-gradient(180deg,#ffbd6e,#f28a32);box-shadow:0 2px 0 #b5561c}
.fr-moves .btn{padding:6px 11px;font-size:13px}
.fr-pop input[type=text]{border-radius:10px;box-shadow:inset 0 0 0 1px var(--fr-line-soft);background:rgba(0,0,0,.3)}
.fr-pop input[type=text]:focus{box-shadow:inset 0 0 0 1px var(--fr-line),0 0 0 3px rgba(217,160,91,.12)}
.fr-link{width:100%;font-size:13px}
/* The report card. */
.fr-reasons{display:flex;flex-direction:column;gap:6px;font-size:13.5px}
.fr-reasons label,.fr-check{display:flex;align-items:center;gap:8px;cursor:pointer}
.fr-reasons input,.fr-check input{accent-color:var(--ember);margin:0}
.fr-note{width:100%;font-size:13px}
.fr-check{font-size:13px;color:var(--fr-dim)}
.fr-pop-links a{color:var(--fr-gold-hi)}
/* The camp's menu tab, at the fire in the room's look. */
body.at-fire .nav-toggle{width:26px;height:62px;top:calc(50% - 31px);background:rgba(22,14,9,.84);border:1px solid var(--fr-line,rgba(217,160,91,.45));border-left:0;border-radius:0 12px 12px 0;box-shadow:0 8px 20px rgba(0,0,0,.35)}
body.at-fire .nav-toggle:hover{background:rgba(40,26,17,.9)}
/* The room has its own sound button (this beats main.css's rule that shows the camp's). */
body.nav-closed.at-fire:not(.pre):not(.night) .mini-sound{opacity:0;pointer-events:none}
@media (max-width:760px){
  .fr-bar{top:calc(var(--safe-t) + 10px);left:10px;right:10px;gap:8px}
  .fr-name{min-width:0;flex:1;gap:9px;border-width:12px;border-image-width:12px}
  .fr-flame{width:30px;height:34px;margin:-4px 0 -4px -2px}
  .fr-title b{font-size:16px}
  .fr-title span{font-size:12px}
  .fr-count{font-size:13px;margin-left:2px}
  .fr-btn{height:42px;min-width:42px;padding:0 10px}
  .fr-leave{padding:0 12px}
  .fr-leave span{display:none}
  /* The menu's tab would sit on the seats at the left edge; Leave the fire is the way out. */
  body.at-fire .nav-toggle{opacity:0;pointer-events:none}
  .fr-say{padding:10px 10px 12px}
  .fr-send{padding:0 16px}
  .fr-emojis{right:10px;grid-template-columns:repeat(8,34px)}
  .fr-emojis button{width:34px;height:34px}
}
@media (max-width:420px){
  .fr-title span{display:none}
  .fr-acts{gap:6px}
  .fr-btn{height:40px;min-width:40px;padding:0 9px}
  .fr-title b{font-size:15px}
  .fr-count{font-size:12.5px;gap:4px}
}
/* (A phone zooms into a field whose letters are smaller than 16px.) */
@media (pointer:coarse){
  .fr-field input[type=text]{font-size:16px}
}
/* Before the first sit-down: what happens to what is said. */
.fire-notice{position:fixed;inset:0;z-index:35;display:grid;place-items:center;padding:16px;background:rgba(6,5,10,.6)}
.fn-card{width:min(440px,100%);padding:18px;display:flex;flex-direction:column;gap:12px}
.fn-card h2{margin:0;font-family:var(--f-story);font-size:19px}
.fn-card p{margin:0;font-size:14px;line-height:1.6;color:var(--cream)}
.fn-card .fn-links{font-size:13px;color:var(--cream-dim)}
.fn-card .fn-links a{color:var(--ember-hi)}
.fn-acts{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}

/* ---- the character creator (src/creator.js): the paper doll by a fire, and what it can wear ---- */
.creator{position:fixed;inset:0;z-index:36;display:grid;place-items:center;padding:16px;background:rgba(6,5,10,.55)}
.cr-card{width:min(760px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:18px;display:flex;flex-direction:column;gap:14px;box-sizing:border-box}
.cr-card h2{margin:0;font-family:var(--f-story);font-size:20px}
.cr-view{position:relative;height:clamp(190px,40vh,360px);background:radial-gradient(ellipse 70% 55% at 50% 78%,rgba(255,146,58,.26),rgba(255,146,58,0) 70%),radial-gradient(ellipse at 50% 0%,#221a2c,#120d15 70%);box-shadow:inset 0 0 0 2px rgba(243,231,207,.08)}
.cr-view canvas{position:absolute;inset:0;width:100%;height:100%}
.cr-rows{display:flex;flex-direction:column;gap:10px}
.cr-row{display:flex;align-items:center;gap:12px}
.cr-k{flex:none;width:44px;font-size:13px;color:var(--cream-dim)}
.cr-acts{display:flex;justify-content:flex-end;gap:10px}
@media (max-width:560px){.cr-card{padding:14px;gap:12px}.cr-row{align-items:flex-start}.cr-k{padding-top:7px}}
/* Standing by the fire (before you choose a seat): nothing to say yet. */
.fire-room.standing .fr-say{display:none}
