
.fb { max-width: 44rem; }
.fb [hidden] { display: none !important; }
.fb-side + .fb-side { margin-top: 12px; }
.fb-pick { display: block; width: 100%; }
.fb-paste, .fb-find, .fb-idrow, .fb-scanrow, .fb-one { margin-top: 8px; }
.fb-idrow input { font-family: inherit; }
.fb-who:empty { display: none; }
.fb-find { position: relative; }
.fb-find .fb-res { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; background: var(--panel);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); max-height: 60vh; overflow: auto; }
.fb-one.fb-wait { min-height: 920px; }
.fb-one.fb-wait.fb-mine { min-height: 810px; }
@media (min-width: 640px) { .fb-one.fb-wait { min-height: 700px; } .fb-one.fb-wait.fb-mine { min-height: 590px; } }
.fb .f6-mode { margin: 14px 0 10px; }
.fb-go { width: 100%; min-height: 44px; }
.fb-st { margin: 6px 0 0; min-height: 1.45em; }   
.fb-prog { margin-inline-start: .3em; }
.fb-prog:empty { display: none; }
@media (max-width: 639px) { .fb-st { min-height: 2.9em; } }   
.fb-out { min-height: 212px; padding-top: 6px; }
@media (max-width: 340px) { .fb-out { min-height: 236px; } }   
.fb-out .f6-wdl-k { gap: 6px; }
.fb-out .f6-wdl-k span { white-space: nowrap; }
.fb-out .f6-card { margin-top: 0; }
.fb-out.fb-busy { opacity: .45; transition: opacity .2s; }   
.fb-out .calc-note { margin: 6px 0 0; }
.fb-view { position: relative; max-width: 420px; margin: 12px auto 0; }
.fb-canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: #0bb864; }
.fb-end { position: absolute; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start;
  gap: 6px; padding: 8px 6px 6px; box-sizing: border-box; }
.fb-end button { min-height: 44px; }
.fb-end.tight { gap: 4px; padding-top: 4px; }
.fb-end.tight button { min-height: 36px; padding: 4px 10px 7px; font-size: 13.5px; }
.fb-ctl { justify-content: center; margin-top: 10px; }
.fb-ctl .fb-play, .fb-ctl .fb-next, .fb-end .fb-again, .fb-end .fb-next2 { min-width: 8.5rem; justify-content: center; }
.fb-play { display: inline-grid; }
.fb-play > span { grid-area: 1 / 1; }
.fb-play > span { visibility: hidden; }
.fb-play[data-on="0"] .fb-p1, .fb-play[data-on="1"] .fb-p2, .fb-play[data-on="2"] .fb-p3 { visibility: visible; }
.fb-snd { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  cursor: pointer; display: grid; place-items: center; }
.fb-snd::before { content: ""; position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; border: 2px solid #000; border-radius: 50%; background: #3e4b64;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .28); box-sizing: border-box; }
.fb-snd svg { position: relative; margin-top: -2px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fb-snd .spk { fill: #fff; }
.fb-snd .on { display: none; }
.fb-snd[aria-pressed="true"]::before { background: #00a3ff; }
.fb-snd[aria-pressed="true"] .on { display: inline; }
.fb-snd[aria-pressed="true"] .off { display: none; }
.fb-snd:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-radius: 50%; }
:root { --fd-a: #0a74c4; --fd-b: #d4252c; --fd-track: #e3e6ec; --fd-good: #097b38;
  --fd-num: "DIN Alternate", "Bahnschrift", "Roboto Condensed", "Ubuntu Sans", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fd-a: #5cb8ff; --fd-b: #ff7a7a; --fd-track: #2f3545; --fd-good: #6fdc95; } }
:root[data-theme="dark"] { --fd-a: #5cb8ff; --fd-b: #ff7a7a; --fd-track: #2f3545; --fd-good: #6fdc95; }
.fd { max-width: 420px; margin: 14px auto 0; border: 2px solid var(--frame); border-radius: 14px; background: var(--panel);
  box-shadow: 0 4px 0 var(--drop); }
.fd [hidden] { display: none !important; }
.fd > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 0 10px; align-items: center;
  min-height: 48px; padding: 10px 14px 12px; cursor: pointer; }
.fd > summary::-webkit-details-marker { display: none; }
.fd > summary::after { content: ""; justify-self: center; width: 10px; height: 10px; border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.fd[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fd > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.fd-k { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fd-hs { display: block; min-height: calc(2 * 17px * 1.25 + 2 * 14px * 1.35); }
.fd-hs.fit { min-height: 0; }
.fd-h1 { display: block; font: 400 17px/1.25 var(--game); }
.fd-h2 { display: block; font-size: 14px; line-height: 1.35; color: var(--muted); }
.fd bdi.a { color: var(--fd-a); } .fd bdi.b { color: var(--fd-b); }
.fd-n, .fd-s, .fd-dh .tot, .fd-chips b, .fd-read b, .fd-helps .p, .fd-all b, .fd-heal .r span:last-child { font-family: var(--fd-num); font-variant-numeric: tabular-nums; }
.fd-n, .fd-s { display: inline-block; text-align: left; line-height: 1; }
.fd-n { min-width: 2.75em; } .fd-s { min-width: 2.3em; }
.fd-body { padding: 0 14px 14px; }
.fd h3 { font: 400 16px/1.2 var(--game); margin: 0 0 6px; }
.fd-sec { padding: 12px 0; border-top: 1px solid var(--line); }
.fd-sec.fd-first { padding-top: 4px; border-top: 0; }
.fd-facts.wait .fd-fact.end, .fd-facts.wait .fd-chips { visibility: hidden; }
.fd-split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 2px 0 6px; background: var(--fd-track); }
.fd-split b { display: block; height: 100%; }
.fd-split .a { background: var(--fd-a); } .fd-split .d { background: var(--muted); opacity: .45; } .fd-split .b { background: var(--fd-b); }
.fd-say { margin: 0; font-size: 14px; }
.fd-say .a, .fd-say .b { font-weight: 700; }
.fd-dmg + .fd-dmg { margin-top: 10px; }
.fd-dh { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.fd-dh .n { font: 400 15px var(--game); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.fd-dmg.a .fd-dh .n { color: var(--fd-a); } .fd-dmg.b .fd-dh .n { color: var(--fd-b); }
.fd-dh .top { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.fd-dh .tot { margin-left: auto; font-weight: 700; }
.fd-bar { position: relative; height: 32px; margin: 4px 0 0; border-radius: 9px; background: var(--fd-track); }
.fd-fill { display: flex; height: 100%; clip-path: inset(0 0 0 0 round 9px); transition: clip-path .45s cubic-bezier(.2, .7, .3, 1); }
.fd-bars.pre .fd-fill { clip-path: inset(0 100% 0 0 round 9px); transition: none; }
.fd-seg { position: relative; flex: none; height: 100%; padding: 0; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--c); overflow: hidden; }
.fd-seg + .fd-seg { box-shadow: inset 2px 0 0 var(--panel); }
.fd-seg::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }   
.fd-seg img { width: 22px; height: 22px; object-fit: contain; pointer-events: none; }
.fd-seg[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: -3px; z-index: 1; border-radius: 6px; }
.fd-seg:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; z-index: 1; }
.fd-dmg.a { --s: var(--fd-a); } .fd-dmg.b { --s: var(--fd-b); }
.fd-seg.k0 { --c: var(--s); }
.fd-seg.k1 { --c: color-mix(in srgb, var(--s) 70%, var(--panel)); }
.fd-seg.k2 { --c: color-mix(in srgb, var(--s) 45%, var(--panel)); }
.fd-seg.k3 { --c: color-mix(in srgb, var(--s) 30%, var(--panel)); }
.fd-seg.kr { --c: repeating-linear-gradient(135deg, color-mix(in srgb, var(--s) 35%, var(--panel)) 0 5px, var(--panel) 5px 9px); }
.fd-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.fd-chips li { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); background: var(--code); }
.fd-chips b, .fd-read b { color: var(--ink); font-weight: 400; }
.fd-read { height: 22px; margin: 8px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; }
.fd-read img { width: 20px; height: 20px; object-fit: contain; }
@media (max-width: 560px) { .fd-read { height: 36px; line-height: 18px; white-space: normal; } }
.fd-helps { list-style: none; margin: 0; padding: 0; display: grid; }
.fd-helps li { height: 46px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 0 10px; align-items: center; padding: 4px 8px; }
.fd-helps li + li { border-top: 1px solid var(--line); }
.fd-helps li.best { background: var(--accent-soft); outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; border-top-color: transparent; }
.fd-helps li.best + li { border-top-color: transparent; }
.fd-helps img { width: 32px; height: 32px; object-fit: contain; }
.fd-helps .t { font: 400 15px/1.15 var(--game); overflow: hidden; }
.fd-helps .p { text-align: right; white-space: nowrap; font-size: 15px; }
.fd-helps .p .was { color: var(--muted); }
.fd-helps .p b { color: var(--fd-good); font-weight: 400; }
@media (max-width: 359px) { .fd-helps .p .was { display: none; } }
.fd-hbox { min-height: 46px; display: grid; align-items: center; }
.fd-hgo { width: 100%; min-height: 44px; }
.fd-hrun { margin: 0; font-size: 14px; color: var(--muted); }
.fd-all { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.fd-all li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 34px; border-top: 1px solid var(--line); }
.fd-all img { width: 22px; height: 22px; object-fit: contain; }
.fd-all b { text-align: right; font-weight: 400; white-space: nowrap; }
.fd-key { display: flex; gap: 14px; margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.fd-key i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.fd-key .a i { background: var(--fd-a); } .fd-key .b i { background: var(--fd-b); }
.fd-key span { color: var(--muted); }
.fd-chart { position: relative; height: 210px; touch-action: manipulation; cursor: crosshair; border-radius: 8px; }
.fd-chart:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fd-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fd-chart .grid, .fd-chart .grid-mid { stroke: var(--line); stroke-width: 1; }
.fd-chart .grid-mid { stroke-dasharray: 3 3; }
.fd-chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fd-chart .halo { fill: none; stroke: var(--panel); stroke-width: 5.5; stroke-linejoin: round; stroke-linecap: round; }
.fd-chart .ln.a { stroke: var(--fd-a); } .fd-chart .ln.b { stroke: var(--fd-b); }
.fd-ic { display: none; }
.fd-ic.on { display: inline; }
.fd-ic circle { fill: var(--panel); stroke-width: 2; }
.fd-ic .stalk { stroke-width: 1.5; stroke-dasharray: 2 2; }
.fd-ic.a .stalk, .fd-ic.a circle { stroke: var(--fd-a); } .fd-ic.b .stalk, .fd-ic.b circle { stroke: var(--fd-b); }
.fd-ic > g { transform-box: fill-box; transform-origin: center; }
.fd-ic.on.pop > g { animation: fd-pop .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes fd-pop { from { transform: scale(0); } }
.fd-mk { display: none; pointer-events: none; }
.fd-mk.on { display: inline; }
.fd-mk line { stroke: var(--ink); stroke-width: 1.5; }
.fd-mk rect { fill: var(--ink); }
.fd-mk text { fill: var(--panel); font: 700 11px var(--font); }
.fd-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
.fd-hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); min-height: 1.4em; }
.fd-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--frame);
  border-radius: 12px; background: #fff; color: #16181d; font: 400 15px var(--game); box-shadow: inset 0 -4px 0 #c3c7cf; cursor: pointer; }
.fd-more::after { content: ""; width: 7px; height: 7px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px); }
.fd-more[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-1px, -1px); }
.fd-more:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fd-mb > .fd-sec:first-child { border-top: 0; padding-top: 4px; }
.fd-heal { display: grid; gap: 10px; }
@media (min-width: 560px) { .fd-heal { grid-template-columns: 1fr 1fr; } }
.fd-heal h4 { margin: 0 0 2px; font: 400 15px var(--game); }
.fd-heal .a h4 { color: var(--fd-a); } .fd-heal .b h4 { color: var(--fd-b); }
.fd-heal .r { display: flex; justify-content: space-between; gap: 8px; min-height: 28px; align-items: center; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .fd-ic.on.pop > g { animation: none; }
  .fd-fill { transition: none; }
  .fd > summary::after { transition: none; }
}
