/* ARCHERY: the modal's look (dlg/dlg.archery.php). The game's paper (the popup's bgpag), ink #463320, muted #948567,
   the house gold, Jost for the body, Monotype Corsiva for the headings. Every rule is scoped to .arc and sets its own
   font, because the game css gives every div 13px Jost. The stage is a canvas 16:7 drawn by ui/archery/archery.js; the
   hourglass, the wind words, the pad, the mute and the result card are DOM over it. THE PHONE (2026-11-05, fishing.css's
   pattern): under 760px the dialog is full screen and PORTRAIT (the 760px block at the end: the column head / stage /
   foot, the stage wrap taking every pixel left, the canvas filling it); .arc-phone is THE PORTRAIT STAGE (set by
   archery.js on a phone and in the tall dialog html.arc-tall: a tablet held upright); the desktop is untouched. */
/* THE LARGE STAGE (fishing's rule): the paper grows to 1800px as far as the window lets it; the stage is 16:7, so the
   height is what stops it (the same arithmetic as ui/fishing/fishing.css) */
.popupFrameWidth { max-width: max(900px, min(1800px, calc(100vw - 40px), calc((100vh - 145px) * 1.9 + 40px))); max-height: calc(100vh - 12px); }
.arc { --ink: #463320; --ink-2: #6b5a44; --muted: #948567; --line: #d9cfb6; --gold: #CC9900; --gold-2: #FFCC00;
       --gold-soft: rgba(255, 204, 0, .18); --red: #8f2a1e; --green: #336633; --paper: rgba(243, 237, 214, .92);
       position: relative; color: var(--ink); font: 14px/1.45 'Jost', sans-serif; text-align: left; }
.arc *, .arc *::before, .arc *::after { box-sizing: border-box; }
.arc :where(div, p, span, b, li, td) { font-family: inherit; font-size: inherit; }
.arc :where(p) { margin: 0 0 8px; }
.arc-hide { display: none !important; }
.arc-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; padding: 4px 8px 6px; border-bottom: 1px solid var(--line); }
.arc-titles { flex: 1 1 320px; min-width: 0; }
.arc-h1 { margin: 0; font: 30px/1.1 'Monotype Corsiva', 'Jost', cursive; color: var(--ink); }
.arc-words { color: var(--muted); font-size: 13px; }
.arc-touch { position: relative; display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: default; }
.arc-glyph { width: 18px; height: 18px; }
.arc-touch-sum { color: var(--green); }
.arc-touch-card { display: none; position: absolute; right: 0; top: 100%; z-index: 30; min-width: 230px; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(40,30,20,.25); font-size: 12.5px; }
.arc-touch:hover .arc-touch-card, .arc-touch:focus-within .arc-touch-card { display: block; }
.arc-touch-card > div { display: flex; justify-content: space-between; gap: 14px; padding: 1px 0; }
.arc-touch-card > .arc-touch-h { display: block; color: var(--ink-2); margin-bottom: 3px; }
.arc-touch-card > .arc-touch-t { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 3px; }
.arc-tabs { display: flex; gap: 2px; }
.arc-tab { font: 13px/1 'Jost', sans-serif; color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 7px 12px; cursor: pointer; }
.arc-tab-on { background: var(--paper); color: var(--ink); font-weight: 600; }
.arc-view { padding: 8px; }
.arc-stage-wrap { position: relative; width: 100%; aspect-ratio: 16 / 7; background: #e9e3cf; border: 1px solid var(--line); overflow: hidden; }
.arc-targets-words { color: var(--ink-2); font-size: 13px; max-width: 80ch; margin: 2px 2px 10px; }
.arc-tab-n { color: var(--muted); font-size: 11px; margin-left: 4px; }
.arc-stage { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.arc-stage.arc-aiming { cursor: none; } /* THE READING RULE: only the reticle is seen while a shot is open */
.arc-target-name { position: absolute; left: 10px; top: 8px; font: 17px/1.2 'Monotype Corsiva', cursive; color: var(--ink); pointer-events: none; }
.arc-target-name small { font: 12px/1.2 'Jost', sans-serif; color: var(--muted); margin-left: 6px; }
.arc-time-words { position: absolute; right: 12px; bottom: 16px; font: 13px/1 'Jost', sans-serif; color: var(--ink-2); pointer-events: none; }
.arc-time-last ~ .arc-time-words { color: var(--red); font-weight: 600; }
.arc-time { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 6px; background: rgba(70, 51, 32, .15); border-radius: 3px; pointer-events: none; }
.arc-time-fill { height: 100%; width: 100%; background: var(--gold); border-radius: 3px; transition: width .1s linear; }
.arc-time-last .arc-time-fill { background: var(--red); animation: arc-pulse .5s ease-in-out infinite alternate; }
@keyframes arc-pulse { from { opacity: 1; } to { opacity: .35; } }
.arc-wind { position: absolute; right: 12px; top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); pointer-events: none; }
.arc-wind-light { width: 12px; height: 12px; border-radius: 50%; background: #999; }
.arc-light-green { background: var(--green); } .arc-light-amber { background: var(--gold); } .arc-light-red { background: var(--red); }
.arc-nock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(243, 237, 214, .35); }
.arc-nock-note { font-size: 13px; color: var(--ink-2); max-width: 70%; text-align: center; }
.arc-btn { font: 14px/1 'Jost', sans-serif; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.arc-btn-gold { background: var(--gold-2); border-color: var(--gold); font-weight: 600; }
.arc-result { position: absolute; left: 12px; top: 40px; width: 260px; max-width: 38%; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-align: center; box-shadow: 0 6px 18px rgba(40,30,20,.18); } /* at the side: the face and the arrow stay in view */
.arc-large .arc-result { width: 320px; font-size: 16px; }
.arc-large .arc-r-big { font-size: 44px; }
.arc-large .arc-target-name { font-size: 22px; }
.arc-large .arc-target-name small, .arc-large .arc-time-words, .arc-large .arc-wind { font-size: 15px; }
.arc-r-big { font: 34px/1 'Monotype Corsiva', cursive; color: var(--gold); margin-bottom: 4px; }
.arc-r-big small { font: 13px/1 'Jost', sans-serif; color: var(--ink-2); }
.arc-r-miss { color: var(--red); }
.arc-r-item { font-weight: 600; }
.arc-r-words { color: var(--ink-2); font-size: 13px; margin: 4px 0; }
.arc-r-skill { color: var(--green); font-size: 13px; }
.arc-r-new { color: var(--gold); font-size: 13px; }
.arc-result .arc-btn { margin-top: 6px; }
.arc-overlay { display: none; }
.arc-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 6px 2px; font-size: 13px; color: var(--ink-2); }
.arc-hint { flex: 1 1 100%; color: var(--muted); }
.arc-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.arc-rung { display: grid; grid-template-columns: 24px 1fr auto; gap: 2px 8px; align-items: baseline; padding: 6px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.arc-rung-empty { opacity: .6; border-style: dashed; }
.arc-rung-pos { font: 18px/1 'Monotype Corsiva', cursive; color: var(--gold); }
.arc-rung-name { font-weight: 600; }
.arc-rung-paces { color: var(--muted); }
.arc-rung-mech, .arc-rung-best { grid-column: 2 / 4; color: var(--ink-2); font-size: 12px; }
.arc-empty { color: var(--muted); padding: 12px; text-align: center; }
.arc-howto p { max-width: 70ch; }
/* THE HOW TO WITH PICTURES (owner, 2026-11-05): four cards, a drawing and two lines each, then the full guide's link */
.arc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 10px; max-width: 1000px; }
.arc-card { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.arc-card svg { width: 92px; height: 72px; display: block; }
.arc-card b { display: block; font: 600 14px/1.25 'Jost', sans-serif; margin-bottom: 2px; }
.arc-card span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.arc-guide { display: inline-block; margin: 2px 0 8px; padding: 8px 14px; border: 1px solid var(--gold); border-radius: 8px; color: var(--ink); background: var(--gold-soft); text-decoration: none; font-weight: 600; }
.arc-guide:hover { background: var(--gold-2); text-decoration: none; }
.arc-phone .arc-cards { grid-template-columns: 1fr; }

/* ---- THE SOUND SWITCH (fishing's .fsh-mute): a subtle speaker at the top left of the stage ---- */
.arc-mute { position: absolute; left: 10px; top: 32px; z-index: 6; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 250, 232, .22); cursor: pointer; opacity: .55; transition: opacity .2s, background .2s; display: flex; align-items: center; justify-content: center; box-shadow: none; }
.arc-mute:hover, .arc-mute:focus-visible { opacity: 1; background: rgba(255, 250, 232, .5); outline: none; }
.arc-mute svg { display: block; }
.arc-mute .arc-mute-body { fill: #2b1d0e; }
.arc-mute .arc-mute-wave, .arc-mute .arc-mute-x { stroke: #2b1d0e; }
.arc-mute .arc-mute-x { display: none; }
.arc-muted .arc-mute .arc-mute-wave { display: none; }
.arc-muted .arc-mute .arc-mute-x { display: block; }
.arc-muted .arc-mute { opacity: .8; }
.arc-large .arc-mute { top: 40px; }
/* the head's X (the phone's; the desktop has the popup's own) and the pad (the phone's) */
.arc-close { display: none; }
.arc-pad { display: none; }
/* ---- THE RESULT CARD: the face with the arrow, the score in gold, the item, the skill, the difficulty ---- */
.arc-r-face { display: block; width: 120px; height: 120px; margin: 0 auto 4px; }
.arc-r-ring { color: var(--ink-2); font-size: 13px; margin-top: -2px; }
.arc-r-item small { color: var(--ink-2); font-weight: 400; }
.arc-r-diff { color: var(--muted); font-size: 12px; }
.arc-r-new { font-weight: 600; }
.arc-result .arc-btn[disabled] { opacity: .55; cursor: default; }
.arc-large .arc-r-face { width: 160px; height: 160px; }

/* ---- FULL SCREEN on a phone (760px and under; archery.js take() gives the frame the whole screen) ---- */
@media (max-width: 760px) {
  html, body { height: 100%; margin: 0; }
  body.popupFramebg { overflow: hidden; }
  .popupFrameWidth { max-width: none !important; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; transform: none; box-shadow: none; overflow: hidden; }
  .popupFrameWrapper { padding: 0; height: 100%; }
  .arc { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; padding: 6px 8px 4px; }
  .arc-view { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
  #arcViewRange { display: flex; flex-direction: column; overflow: hidden; padding: 0 0 2px; }
  #arcViewRange.arc-hide { display: none !important; }
  /* the head: two short rows, the X at the right */
  .arc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "titles touch close" "tabs tabs tabs"; gap: 0 8px; margin: 0 0 6px; padding: 0 0 4px; align-items: center; }
  .arc-titles { grid-area: titles; flex: none; }
  .arc-touch { grid-area: touch; font-size: 12px; }
  .arc-close { grid-area: close; display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; font: 30px/1 Georgia, serif; color: var(--muted); text-decoration: none; }
  .arc-tabs { grid-area: tabs; flex-wrap: wrap; margin-top: 2px; }
  .arc-h1 { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .arc-words { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .arc-tab { padding: 7px 10px; font-size: 12.5px; touch-action: manipulation; }
  .arc-nock .arc-btn { padding: 14px 32px; font-size: 20px; min-height: 56px; touch-action: manipulation; }
  .arc-foot { padding: 4px 2px; font-size: 11.5px; gap: 1px 10px; line-height: 1.3; }
  .arc-hint { font-size: 11px; }
  .arc-ladder { grid-template-columns: 1fr; }
  .arc-howto { padding-bottom: 12px; }
}
/* ---- THE TOUCH STAGE: .arc-touchui, set by archery.js on a coarse pointer or the first touch, on ANY stage (a tablet
   held sideways is wider than 760px): the pad is the finger's way to draw and shoot, the time bar sits above it ---- */
.arc-touchui .arc-time { bottom: 104px; left: 16px; right: 16px; height: 7px; }
.arc-touchui .arc-time-words { bottom: 116px; right: 18px; }
.arc-touchui .arc-pad { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 0 14px; border-radius: 14px;
                        background: linear-gradient(to top, rgba(20, 16, 10, .62), rgba(20, 16, 10, .38)); color: #fff5d6; font: 14px/1.25 'Jost', sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; transition: background .12s; }
.arc-touchui .arc-stage-wrap.arc-held .arc-pad { background: linear-gradient(to top, rgba(255, 204, 0, .42), rgba(255, 204, 0, .18)); }
.arc-touchui .arc-pad-text { flex: 1 1 auto; min-width: 0; }
.arc-touchui .arc-pad-btn { pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; flex: 0 0 auto; min-width: 128px; min-height: 58px; padding: 0 16px; border-radius: 30px; border: 2px solid rgba(255, 245, 210, .6); background: rgba(255, 204, 0, .28); color: #fff5d6; font: 600 16px/1 'Jost', sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.arc-touchui .arc-stage-wrap.arc-held .arc-pad-btn { background: rgba(255, 204, 0, .75); color: #2b1d0e; text-shadow: none; }
.arc-touchui .arc-stage-wrap.arc-idle .arc-pad, .arc-touchui .arc-stage-wrap.arc-done .arc-pad { display: none; }
.arc-touchui:not(.arc-phone) .arc-pad { left: auto; right: 16px; max-width: 420px; }
/* ---- THE PORTRAIT STAGE: .arc-phone, set by archery.js on a phone (full screen) and in the tall dialog ---- */
.arc-phone .arc-stage-wrap { flex: 1 1 auto; min-height: 220px; aspect-ratio: auto; }
.arc-phone .arc-stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.arc-phone .arc-mute { left: auto; right: 12px; top: 10px; width: 34px; height: 34px; }
.arc-phone .arc-target-name { top: 10px; left: 12px; right: 54px; font-size: 16px; }
.arc-phone .arc-target-name small { display: block; margin: 0; }
.arc-phone .arc-wind { top: 56px; right: 12px; left: auto; font-size: 12px; }
/* the result card: a sheet above the pad, the stage's width */
.arc-phone .arc-result { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-width: none; padding: 10px 12px; max-height: 70%; overflow: auto; display: grid; grid-template-columns: 110px 1fr; gap: 2px 10px; align-items: center; text-align: left; }
.arc-phone .arc-result > * { grid-column: 2; }
.arc-phone .arc-r-face { grid-column: 1; grid-row: 1 / span 6; width: 110px; height: 110px; margin: 0; }
.arc-phone .arc-result .arc-btn { grid-column: 1 / -1; margin-top: 6px; min-height: 44px; }
.arc-phone .arc-result.arc-r-nof { grid-template-columns: 1fr; }
.arc-phone .arc-result.arc-r-nof > * { grid-column: 1; }
.arc-phone .arc-r-big { font-size: 30px; }
/* ---- THE TALL DIALOG (a tablet held upright, wider than a phone): the paper takes the frame's height, the stage the rest ---- */
html.arc-tall .popupFrameWidth { height: calc(100vh - 12px); max-height: calc(100vh - 12px); max-width: calc(100vw - 24px); transform: none; overflow: hidden; }
html.arc-tall .popupFrameWrapper { height: 100%; box-sizing: border-box; }
html.arc-tall .arc { height: 100%; display: flex; flex-direction: column; }
html.arc-tall .arc-view { flex: 1 1 auto; min-height: 0; overflow: auto; }
html.arc-tall #arcViewRange { display: flex; flex-direction: column; overflow: hidden; }
html.arc-tall #arcViewRange.arc-hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { .arc-time-last .arc-time-fill { animation: none; } }

/* THE SKY (2026-11-05): the weather's chip, under the target's name; gold while it changes the shot */
.arc-sky { position: absolute; left: 10px; bottom: 16px; display: flex; align-items: center; gap: 6px; max-width: 58%; padding: 3px 9px 3px 4px; border-radius: 16px; background: rgba(255, 250, 232, .78); font-size: 12px; color: var(--ink-2); pointer-events: none; }
.arc-sky b { color: var(--ink); font-weight: 600; }
.arc-sky-icon { width: 26px; height: 26px; flex: none; }
.arc-sky-hard { box-shadow: 0 0 0 1px var(--gold); }
.arc-large .arc-sky { font-size: 15px; }
.arc-touchui .arc-sky { bottom: 116px; }
.arc-phone .arc-sky { max-width: calc(100% - 90px); }
/* the skill moved */
@keyframes arcFlash { 0% { color: var(--gold); text-shadow: 0 0 6px var(--gold-2); } 100% { color: inherit; text-shadow: none; } }
.arc-flash { animation: arcFlash 1.6s ease-out; }
.arc-touch-worse { color: var(--red); }
/* the reward's picture on the card, the target's picture on the ladder */
.arc-r-item { display: flex; align-items: center; gap: 8px; justify-content: center; }
.arc-r-itemart { width: 40px; height: 40px; flex: none; }
.arc-rung { grid-template-columns: 52px 24px 1fr auto; }
.arc-rung-art { grid-row: 1 / 3; width: 48px; height: 48px; object-fit: contain; align-self: center; }
.arc-rung-noart { display: block; border: 1px dashed var(--line); border-radius: 50%; }
.arc-rung-mech, .arc-rung-best { grid-column: 3 / 5; }
/* the How to: one picture, a few lines, the guide */
.arc-howto-pic { display: block; width: 100%; max-width: 560px; height: auto; margin: 2px 0 6px; }
.arc-howto-list { margin: 0 0 10px; padding-left: 18px; max-width: 70ch; }
.arc-howto-list li { margin: 2px 0; }
/* the words on the stage stay readable under a dark sky (2026-11-05) */
.arc-target-name { padding: 2px 8px; border-radius: 6px; background: rgba(255, 250, 232, .72); }
.arc-wind { padding: 2px 8px; border-radius: 6px; background: rgba(255, 250, 232, .72); }
.arc-time-words { padding: 1px 6px; border-radius: 6px; background: rgba(255, 250, 232, .72); }
/* the Proofs tab */
.arc-proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; padding: 0 2px 10px; }
.arc-proof { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.arc-proof-name { font-weight: 600; }
.arc-proof-name small { font-weight: 400; color: var(--ink-2); }
.arc-proof-left { color: var(--muted); font-size: 12px; white-space: nowrap; }
/* ---- THE COMPETITION LINE (session 5, fishing.css's shape): the running competition's title on the tab row; hover (a tap on a phone) opens the card ---- */
.arc-comp { position: relative; align-self: center; margin-left: 10px; padding: 0 6px; font: 12.5px 'Jost', sans-serif; color: var(--ink-2, #6b5a44); white-space: nowrap; cursor: help; max-width: 42%; }
.arc-comp[hidden] { display: none; }
.arc-comp-title { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; font-weight: 700; color: #463320; letter-spacing: .2px; }
.arc-comp-title::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #cc9900; margin: 0 6px 1px 0; box-shadow: 0 0 0 2px rgba(204,153,0,.25); animation: arc-comp-pulse 2.2s ease-in-out infinite; }
.arc-comp-note { color: #948567; font-weight: 400; margin-left: 4px; }
@keyframes arc-comp-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(204,153,0,.25); } 50% { box-shadow: 0 0 0 5px rgba(204,153,0,.08); } }
.arc-comp-card { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; min-width: 300px; max-width: 360px; padding: 9px 11px 8px; background: #fffdf5; border: 1px solid #d9cfb6; border-radius: 6px; box-shadow: 0 6px 18px rgba(40, 25, 5, .18); font-size: 12.5px; color: #463320; white-space: normal; cursor: default; }
.arc-comp.arc-open .arc-comp-card { display: block; }
@media (hover: hover) { .arc-comp:hover .arc-comp-card { display: block; } }
.arc-comp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 3px; }
.arc-comp-head b { font: 15px "Monotype Corsiva", Georgia, serif; letter-spacing: .5px; }
.arc-comp-head span { color: #948567; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; }
.arc-comp-rule { color: #948567; font-size: 11.5px; margin-bottom: 5px; }
.arc-comp-card table { width: 100%; border-collapse: collapse; }
.arc-comp-card td { padding: 2px 0; font-size: 12.5px; vertical-align: baseline; }
.arc-comp-card td.arc-comp-place { width: 28px; color: #948567; font-variant-numeric: tabular-nums; }
.arc-comp-card td.arc-comp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.arc-comp-card td.arc-comp-score { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.arc-comp-card td.arc-comp-score small { color: #948567; margin-left: 5px; }
.arc-comp-card tr.arc-comp-me td { color: #cc9900; font-weight: 600; }
.arc-comp-empty { color: #948567; }
.arc-comp-you { margin-top: 5px; color: #6b5a44; }
.arc-comp-left { margin-top: 6px; padding-top: 5px; border-top: 1px solid #ebe3cc; text-align: right; font: 600 13px Georgia, serif; font-variant-numeric: tabular-nums; color: #463320; }
.arc-r-comp { margin-top: 2px; font-size: 13px; color: #a8792a; font-weight: 600; }
.arc-r-comp.arc-r-excl { color: #948567; font-weight: 400; font-size: 12px; }
@media (max-width: 760px) {
  .arc-comp { position: static; max-width: none; margin-left: 4px; }
  .arc-comp-title { max-width: 72vw; }
  .arc-comp-card { left: 6px; right: 6px; top: auto; min-width: 0; max-width: none; margin-top: 4px; }
}

/* THE GEAR TAB (session 6, core/Archery/ArcheryGear.php; fishing's tab in the range's dress): slot cards, the sum, the gear carried, the tip */
.arc-r-gear { color: var(--muted); font-size: 12px; margin: 2px 0; }
.arc-gear-h { font: 19px/1.2 'Monotype Corsiva', 'Jost', cursive; color: var(--ink); margin: 10px 2px 4px; }
.arc-gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 0 2px 8px; }
.arc-gear-card { display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 253, 245, .55); text-align: center; }
.arc-gear-art { position: relative; width: 84px; height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.arc-gear-art img { max-width: 80px; max-height: 80px; }
.arc-gear-tipped { cursor: help; outline: none; border-radius: 6px; }
.arc-gear-tipped:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.arc-gear-i { position: absolute; right: -2px; bottom: 0; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--muted); background: #fffdf5; color: var(--ink-2); font: italic 11px/14px Georgia, serif; text-align: center; }
.arc-gear-tipsrc { display: none !important; }
.arc-gear-name { font-size: 13px; line-height: 1.2; color: var(--ink); margin-top: 4px; }
.arc-gear-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.arc-gear-note { font-size: 11.5px; color: var(--red); font-style: italic; margin-top: 3px; }
.arc-gear-act { margin-top: auto; padding-top: 8px; }
.arc-btn-sm { font-size: 12.5px; padding: 5px 12px; border-radius: 6px; }
.arc-btn[disabled] { opacity: .5; cursor: not-allowed; }
.arc-gear-over { opacity: .55; border-style: dotted; }
.arc-gear-free { border-style: dashed; background: transparent; }
.arc-gear-free .arc-gear-art { font: 46px 'Monotype Corsiva', Georgia, serif; color: var(--muted); }
.arc-gear-lines { list-style: none; margin: 6px 0 0; padding: 0; text-align: left; }
.arc-gear-lines li { position: relative; padding: 1px 0 1px 14px; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.arc-gear-lines li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #948567; }
.arc-gear-lines li.arc-gl-up::before { background: #336633; }
.arc-gear-lines li.arc-gl-down::before { background: #8f2a1e; }
.arc-gl-up { color: #336633 !important; }
.arc-gl-down { color: #8f2a1e !important; }
.arc-gear-sum { margin: 12px 2px 6px; padding: 8px 14px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 253, 245, .45); }
.arc-gear-sum .arc-gear-h { margin-top: 0; }
.arc-gear-bands { border-collapse: collapse; margin: 4px 0 6px; }
.arc-gear-bands th, .arc-gear-bands td { padding: 2px 10px; font-size: 12.5px; text-align: center; }
.arc-gear-bands th:first-child, .arc-gear-bands td:first-child { text-align: left; color: var(--muted); padding-left: 0; }
.arc-gear-bands th { font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.arc-gear-bands td { font-variant-numeric: tabular-nums; font-weight: 600; }
.arc-gear-lim { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.arc-gear-none { color: var(--muted); font-style: italic; font-size: 12.5px; margin: 0 2px 8px; }
.arc-gear-msg { margin: 0 2px 10px; padding: 6px 10px; border-radius: 6px; background: var(--gold-soft); color: var(--ink); font-size: 12.5px; }
.arc-gear-tip { position: fixed; z-index: 9000; display: none; max-width: 300px; padding: 8px 12px; background: #fffdf5; border: 1px solid #d9cfb6; border-radius: 8px; box-shadow: 0 4px 16px rgba(70, 51, 32, .25); color: #463320; font: 14px/1.4 'Jost', sans-serif; text-align: left; }
.arc-gear-tip-h { font: 17px/1.1 'Monotype Corsiva', Georgia, serif; color: #463320; margin-bottom: 2px; }
#arcViewGear { overflow-y: auto; }
/* the result card never runs off a short stage: a shot with gear prints one more line */
.arc-result { max-height: calc(100% - 50px); overflow-y: auto; }
/* A card taller than a short stage scrolls; Shoot again stays in sight at its foot, on a strip of paper so no line shows behind it. */
.arc-result .arc-btn { position: sticky; bottom: 0; box-shadow: 0 0 0 10px var(--paper); margin-top: 14px; }
.arc-phone .arc-result .arc-btn { margin-top: 12px; }
/* the ordinary dialog's stage is about 376px tall: a smaller face, so the whole card fits with no scroll */
.arc-stage-short .arc-r-face { width: 84px; height: 84px; }
.arc-stage-short .arc-result { top: 34px; padding-top: 6px; padding-bottom: 8px; line-height: 1.2; }
.arc-stage-short .arc-r-big { font-size: 28px; margin-bottom: 0; }
.arc-stage-short .arc-r-words { margin: 2px 0; }
