/* Copyright (c) 2026 Lavish Leaf Inc. All rights reserved. See LICENSE. */
/* File:       fairways.css
   Purpose:    The main stylesheet: the page, the board, the side panel, windows, alerts, the start screen, the rules window, and the phone layouts.
   Defines:    The colors and type of the whole game as custom properties on :root, and the classes fairways.js builds its screens from.
   Depends on: ../games.css (shared by every game), which comes first. The fonts and icons are loaded by index.html.
   Loaded:     2nd stylesheet in index.html. Many tests read this file as text, so add rules and comments but never reformat what is here. From
               "owner, 2026-11-02" on, the sections are in the order the work was asked for.
   Guide:      ARCHITECTURE.md (this folder). The notes below this header are the file's own history and design reasons. */
/* Fairways of the Blue and Green. Rewritten 2026-10-27 around the game's own theme (see FAIRWAYS.md, "Theme and tone"):
   a storybook sea chart, elegant and a little dangerous. Inky teal water, brass trim, parchment words, ember red for
   danger. The two sides keep their colors: Blue #4b97ff and Green #5be07d. The page does not need to match the
   rest of the site, but it stays dark and calm so the board is the brightest thing on the screen. */
/* ---------- colors and type and the page itself */
:root {
  --abyss: #060f14; --deep: #0b1b23; --sea: #12303d; --sea2: #19424f; --panel: #0f212a; --panel2: #15303b; --line: #2a4a58;
  --brass: #d3a64c; --brass-lt: #f0cf85; --brass-dk: #8a6d2f; --parch: #efe3c2; --parch-dim: #b9ae90; --muted: #93a9b2;
  --ember: #e5533d; --ember-lt: #ff9a82; --gold: #f2c75c; --ok: #7ee08f;
  --blue: #4b97ff; --green: #5be07d; --panel-w: 410px;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif; --ui: 'Alegreya', 'Nunito Sans', Georgia, serif; --plain: 'Nunito Sans', system-ui, sans-serif; --title: 'Cinzel Decorative', 'Cinzel', Georgia, serif; --story: 'IM Fell English', 'Cinzel', Georgia, serif;
}
/* the body lettering (owner, 2026-11-05): Alegreya, a book face with an old-world hand, in place of the plain sans; lining figures so every number in a line of text stands the same height */
.fw, .fw-modal { color: var(--parch); }
body.fw-page { font-variant-numeric: lining-nums; }
body.fw-page { background: radial-gradient(ellipse at 50% -10%, #12303d 0%, #0a1920 55%, #060f14 100%) fixed; font-family: var(--ui); }
.fw { max-width: 1760px; margin: 0 auto; padding: 8px 12px 14px; }
.fw h1, .fw h2, .fw h3, .fw p { margin: 0; }
.fw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.fw-back { color: var(--brass-lt); font-weight: 700; text-decoration: none; font-size: .9rem; }
.fw-back:hover { text-decoration: underline; }
.fw-title { flex: 1 1 280px; font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: .06em; text-align: center; color: var(--parch); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.fw-title .blue { color: var(--blue); } .fw-title .green { color: var(--green); }
.fw-title .of { font-weight: 400; font-size: .8em; color: var(--brass-lt); letter-spacing: .12em; }
.fw-bar-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.fw-btn { border: 0; background: linear-gradient(#e0b862, #c4953b); color: #2a1c05; font: 800 .95rem/1 var(--ui); padding: 12px 20px; border-radius: 999px; cursor: pointer; min-height: 44px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 0 #7a5a1c, 0 4px 10px rgba(0, 0, 0, .35); transition: filter .15s, transform .08s; }
.fw-btn:hover:not(:disabled) { background: linear-gradient(#efca78, #d6a443); }
.fw-btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.fw-btn:disabled { opacity: .42; cursor: default; box-shadow: none; }
.fw-btn.ghost { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--parch); box-shadow: none; }
.fw-btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .1); filter: none; }
.fw-btn.small { padding: 9px 14px; min-height: 36px; font-size: .85rem; }
.fw-btn.blue { background: linear-gradient(#7db6ff, #3b82e8); color: #06223f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 #1c4f9a; }
.fw-btn.green { background: linear-gradient(#8cf0a6, #3fc760); color: #06260f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 #1e7a38; }
.fw-btn.gold { background: linear-gradient(#ffe188, #f2c75c); color: #3a2a00; }
.fw-btn.danger { background: linear-gradient(#ff8b73, #d4452e); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 #8a2412; }
.fw-bar .fw-btn { min-height: 38px; padding: 9px 15px; }
.fw :focus-visible, .fw-modal :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- start screen */
.fw-start { background: radial-gradient(ellipse at 50% 0%, #1b4a5c 0%, #0f2c38 50%, #08171e 100%); border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px 34px; text-align: center; position: relative; overflow: hidden; box-shadow: inset 0 0 0 4px rgba(211, 166, 76, .08), 0 20px 50px rgba(0, 0, 0, .4); }
.fw-start .hero-art { width: min(720px, 94%); margin: 0 auto 10px; display: block; border-radius: 14px; box-shadow: 0 0 0 2px var(--brass-dk), 0 14px 34px rgba(0, 0, 0, .5); }
.fw-start h2 { font-family: var(--display); font-weight: 700; font-size: 2.2rem; letter-spacing: .05em; color: var(--parch); }
.fw-start .verse { font-family: var(--story); font-style: italic; font-size: 1.08em; color: var(--brass-lt); margin: 6px auto 4px; line-height: 1.55; max-width: 46ch; }
.fw-start .lede { color: #cfe0e6; max-width: 64ch; margin: 10px auto 22px; line-height: 1.55; }
.fw-opts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 22px; }
.fw-opt { background: rgba(0, 0, 0, .34); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 260px; text-align: left; }
.fw-opt h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brass-lt); margin-bottom: 10px; }
.fw-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-seg button { flex: 1 1 auto; border: 1px solid #35606f; background: transparent; color: #dff1f8; font: 700 .9rem/1 var(--ui); padding: 11px 12px; border-radius: 10px; cursor: pointer; min-height: 42px; }
.fw-seg button[aria-pressed="true"] { background: var(--parch); color: #1b1608; border-color: var(--parch); }
.fw-start .go { font-size: 1.1rem; padding: 15px 34px; }
.lvl-note { margin-top: 10px; color: #9fd0e6; font-size: .88rem; min-height: 1.2em; }
.hero-bob { animation: fwbob 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.hero-bob.b2 { animation-delay: -1.5s; }

/* ---------- game layout: the board takes everything the sidebar does not */
body.fw-page.ingame { overflow: hidden; height: 100vh; height: 100dvh; }
body.fw-page.ingame .fw { height: 100vh; height: 100dvh; max-width: none; padding: 6px 10px 8px; display: flex; flex-direction: column; }
body.fw-page.ingame .fw-bar { flex: 0 0 auto; margin-bottom: 6px; }
.fw-game { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); gap: 10px; align-items: stretch; flex: 1 1 auto; min-height: 0; }
.fw-boardwrap { position: relative; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 45%, #14495c 0%, #0b2a38 62%, #061820 100%); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; box-shadow: inset 0 0 0 3px rgba(211, 166, 76, .1); }
.fw-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.fw-board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transform-origin: 0 0; }
/* while the view is being pinched, dragged or glided the whole picture moves as one flat layer (see fairways-view.js) */
.fw-board.fw-gesture { will-change: transform; }
body.fw-panning .fw-board { cursor: grabbing; }

/* the turn banner: small, in the top right, never over the middle of the board */
.fw-banner { position: absolute; right: 10px; top: 10px; z-index: 4; display: flex; align-items: center; gap: 10px; background: rgba(6, 18, 24, .88); border: 2px solid var(--turn, #888); border-left-width: 6px; border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: .88rem; max-width: 46%; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.fw-banner .rp { display: inline-flex; gap: 3px; } .fw-banner .rp i { width: 8px; height: 8px; border-radius: 50%; background: #34505c; } .fw-banner .rp i.done { background: var(--brass); } .fw-banner .rp i.now { background: var(--turn, #fff); box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
.fw-banner .bt { line-height: 1.2; } .fw-banner small { display: block; font-weight: 700; color: var(--muted); font-size: .72rem; }

/* alerts: top left of the board */
.fw-alerts > * { pointer-events: auto; }
.fw-alert.out { opacity: 0; transform: translateX(-14px); }
.fw-alert.danger { border-color: var(--ember); } .fw-alert.danger i.fas { color: var(--ember-lt); }
.fw-alert.warn { border-color: var(--gold); } .fw-alert.warn i.fas { color: var(--gold); }
.fw-alert.good { border-color: #4fbf68; } .fw-alert.good i.fas { color: var(--ok); }
.fw-alert.info { border-color: #4f89a0; } .fw-alert.info i.fas { color: #8fd0ea; }
.fw-alert.sticky { animation: fwalertin .3s ease-out, fwalertpulse 2.6s ease-in-out .3s infinite; }
@keyframes fwalertin { from { opacity: 0; transform: translateX(-16px); } }
@keyframes fwalertpulse { 0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 0 0 rgba(var(--pc, 255, 140, 110), 0); } 50% { box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 0 5px rgba(var(--pc, 255, 140, 110), .38); } }
.fw-alert.sticky.warn { --pc: 242, 199, 92; } .fw-alert.sticky.good { --pc: 126, 224, 143; }
/* an alert about a side wears that side's color: Blue or Green (who captured it, who lost it) */
.fw-alert.danger.s0 i.fas, .fw-alert.danger.s1 i.fas { color: var(--ember-lt); }
.fw-alert-all { align-self: flex-start; border: 1px solid var(--line); background: rgba(8, 20, 27, .9); color: var(--muted); border-radius: 999px; padding: 4px 12px; font: 700 .74rem var(--ui); cursor: pointer; }

.fw-cam { position: absolute; right: 10px; bottom: 10px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.fw-cam button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 18, 24, .88); color: var(--parch); cursor: pointer; font-size: .95rem; transition: background .15s, transform .08s; }
.fw-cam button:hover { background: rgba(30, 70, 90, .95); }
.fw-cam button:active { transform: scale(.94); }
.fw-cam button[aria-pressed="true"] { background: #b8432d; border-color: var(--ember-lt); }

/* the legend: a strip under the board (it never covers it), with pictures big enough to read */
.fw-legend { flex: 0 0 auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 14px; padding: 4px 10px 5px; overflow-x: auto; scrollbar-width: none; background: rgba(4, 12, 17, .8); border-top: 1px solid var(--line); }
.fw-legend::-webkit-scrollbar { display: none; } .fw-legend > :first-child { margin-left: auto; } .fw-legend > :last-child { margin-right: auto; }
.fw-legend .lgi { display: inline-flex; flex: none; align-items: center; gap: 5px; font-size: .8rem; color: var(--parch); } .fw-legend .lgi b { font-weight: 700; white-space: nowrap; }
.fw-legend svg { flex: none; }

.fw-tip { position: absolute; z-index: 7; background: #0a171d; border: 1px solid var(--brass-dk); border-radius: 8px; padding: 6px 10px; font-size: .84rem; pointer-events: none; max-width: 260px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.fw-menu { position: absolute; z-index: 8; min-width: 210px; max-width: 320px; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: #0d1d25; border: 1px solid var(--brass-dk); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.fw-menu[hidden], .fw-route[hidden], .fw-tip[hidden] { display: none; }
.fw-menu .mh { padding: 2px 8px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brass-lt); }
.fw-menu .mn { padding: 2px 8px 6px; font-size: .78rem; color: var(--ember-lt); }
.fw-menu button { text-align: left; border: 0; border-radius: 8px; padding: 10px 12px; min-height: 44px; font: 700 .93rem var(--ui); background: #1e3b49; color: #fff; cursor: pointer; }
.fw-menu button:hover { background: #2f566a; }
.fw-menu button small { display: block; font-weight: 600; opacity: .85; font-size: .78rem; }
.fw-menu button.go { background: #3f9c34; color: #fff; } .fw-menu button.go:hover { background: #4ab73c; }
.fw-menu button.gold { background: #f2c75c; color: #3a2a00; } .fw-menu button.gold:hover { background: #ffe188; }
.fw-menu button.atk { background: #b8432d; color: #fff; } .fw-menu button.atk:hover { background: #d4513a; }
.fw-menu button.ghost { background: transparent; color: #b8d8e8; }
.fw-menu button.sd { background: #5a4220; color: #ffe7b0; } .fw-menu button.sd:hover { background: #75572b; }      /* round 53 (fourth list): Stand down from the board */

/* planning a route by hand */
.fw-route { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; background: rgba(6, 18, 24, .94); border: 2px solid var(--gold); border-radius: 14px; padding: 8px 14px; max-width: 92%; box-shadow: 0 8px 22px rgba(0, 0, 0, .55); }
.fw-route .rt { font-weight: 700; font-size: .9rem; } .fw-route .rt b { color: var(--gold); } .fw-route .rt .kd { color: var(--ember-lt); }
.fw-route .rb { display: flex; gap: 6px; }

/* ---------- board svg */
.hx { stroke: rgba(232, 246, 252, .62); stroke-width: 1.3; transition: fill .2s; }      /* whiter borders (owner, 2026-11-05), brighter again (owner, round 49: "a bit light in color so they are difficult to see at times") */
.hx.kr { fill: url(#gKraken); stroke: rgba(196, 150, 255, .5); }
.hx.gone { fill: #04100f; stroke: rgba(255, 255, 255, .04); }
.hx-hit { fill: transparent; }
.hx-hit:hover { fill: rgba(255, 255, 255, .08); }
.ov-reach { fill: rgba(255, 255, 255, .2); stroke: #fff; stroke-width: 1.6; pointer-events: none; animation: fwpulseB 1.8s ease-in-out infinite; }
.ov-atk { fill: rgba(255, 80, 60, .3); stroke: #ff6a55; stroke-width: 2.4; pointer-events: none; animation: fwpulseB 1s ease-in-out infinite; }
.ov-doom { fill: none; stroke: #ff9f7a; stroke-width: 2; stroke-dasharray: 5 4; pointer-events: none; opacity: .75; }
.ov-doom.now { stroke: #ff6a3d; stroke-width: 2.8; fill: rgba(255, 90, 40, .2); opacity: 1; animation: fwpulseB 1.2s ease-in-out infinite; }
.ov-sel { fill: rgba(255, 214, 90, .2); stroke: #ffd65a; stroke-width: 2.6; pointer-events: none; }
.ov-range { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.6; stroke-dasharray: 3 7; pointer-events: none; }
.ov-next { fill: rgba(255, 214, 90, .25); stroke: #ffd65a; stroke-width: 2.4; stroke-dasharray: 4 3; pointer-events: none; animation: fwpulseB 1s ease-in-out infinite; }
@keyframes fwpulse { 50% { opacity: .5; } }
@keyframes fwpulseB { 50% { --a-o: .5; } }
.coord { font: 800 12px var(--plain); fill: rgba(236, 248, 253, .93); text-anchor: middle; pointer-events: none; letter-spacing: .02em; }      /* no dark outline (owner, 2026-11-05) */
.tok { transition: transform .55s cubic-bezier(.4, .1, .2, 1); cursor: pointer; }
.ol * { fill: var(--olc); stroke: var(--olc); stroke-width: 3.4px; stroke-linejoin: round; }      /* thinner (owner, 2026-11-04; was 5.2) */
.ol.s0 { --olc: #4b97ff; } .ol.s1 { --olc: #5be07d; }
.tok .tshadow { fill: rgba(0, 0, 0, .38); pointer-events: none; }
.tok.sel .tshadow { fill: rgba(255, 214, 90, .75); }
.tok.done { opacity: .72; }
.tok.mine .tshadow { fill: rgba(255, 214, 90, .5); animation: fwidle 1.8s ease-in-out infinite; }
.tok:hover .ol * { stroke-width: 4.8px; }
@keyframes fwidle { 50% { --a-o: .45; } }
.tok-num { font: 800 11px var(--plain); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .7); stroke-width: 2.6px; pointer-events: none; }
.sc-hint { margin-top: 6px; color: #8fb8c6; font-size: .72rem; font-style: italic; }
.tok .ring-sel { fill: none; stroke: #fff04a; stroke-width: 3.2; stroke-dasharray: 5 3; animation: fwmarch 1.2s linear infinite; filter: drop-shadow(0 0 2.5px rgba(255, 245, 120, .95)) drop-shadow(0 0 1px rgba(0, 0, 0, .9)); }      /* round 40 (owner): a brighter yellow, so the selected fleet stands out, also beside another fleet in its hex */
@keyframes fwmarch { to { stroke-dashoffset: -14; } }
.tok .bobber { animation: fwbob 2.8s ease-in-out infinite; }
.tok:nth-child(2n) .bobber { animation-delay: -1.3s; }
@keyframes fwbob { 0%, 100% { --a-y: 0px; --a-r: -3deg; } 50% { --a-y: -1.6px; --a-r: 3deg; } }
.obj-pip { font: 800 9px var(--plain); text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .7); stroke-width: 2.2px; pointer-events: none; }
.obj-tag { font: 800 10px var(--plain); text-anchor: middle; fill: #f6f2dc; paint-order: stroke; stroke: rgba(0, 0, 0, .78); stroke-width: 2.4px; pointer-events: none; }
.flagtok { transition: transform 1s ease-in-out, opacity .8s; }
.fl-size { transition: transform .6s ease-out; }
.flagtok.sinking { animation: fwflagsink 1.6s ease-in forwards; }
@keyframes fwflagsink { 0% { filter: brightness(1.4); } 100% { transform: translate(var(--fx, 0), calc(var(--fy, 0) + 16px)) scale(.4) rotate(18deg); opacity: 0; } }
.fl-glow { animation: fwpulseB 1.8s ease-in-out infinite; }
.flagtok.waiting .fl-glow { animation-duration: .7s; }
/* the sea shimmer is 127 separate animations that repaint the whole board every frame: that is what made phones lag, so it runs only with a mouse (hover + fine pointer), and every ambient animation holds still while the board is being panned or zoomed */
@media (hover: hover) and (pointer: fine) { .hexin .wv { animation: fwwave 6s ease-in-out infinite alternate; } .hexin .wv.kw { animation-duration: 3.4s; } }
body.fw-moving .wv, body.fw-moving .bobber, body.fw-moving .kr-arms, body.fw-moving .rt-dash, body.fw-moving .as-line, body.fw-moving .ring-sel { animation-play-state: paused; }
@keyframes fwwave { from { transform: translateX(-2.2px); } to { transform: translateX(2.2px); } }
g.isgone .hxs, g.isgone .wv { display: none; }
g.sinking .hexin { transform-box: fill-box; transform-origin: center; animation: fwsink 1.4s ease-in forwards; }
@keyframes fwsink { 0% { filter: brightness(1.8) saturate(2); } 100% { --a-s: .5; --a-r: 28deg; --a-o: 0; } }
.kr-arms { transform-box: view-box; animation: fwtent 2.6s ease-in-out infinite alternate; transform-origin: 0 6px; }
@keyframes fwtent { from { --a-r: -5deg; } to { --a-r: 5deg; } }
.fx-float { font: 800 12px var(--plain); paint-order: stroke; stroke: rgba(0, 0, 0, .85); stroke-width: 3px; animation: fwfloat 1.8s ease-out forwards; }
.fx-float.big { font-size: 15px; }
@keyframes fwfloat { 0% { --a-o: 0; --a-y: 0px; } 14% { --a-o: 1; } 100% { --a-o: 0; --a-y: -38px; } }
.fx-part { animation: fwpart .9s ease-out forwards; }
@keyframes fwpart { from { --a-x: 0px; --a-y: 0px; --a-o: 1; } to { --a-x: var(--dx); --a-y: var(--dy); --a-o: 0; } }
.fx-ripple { transform-box: fill-box; transform-origin: center; animation: fwrip 1s ease-out forwards; }
@keyframes fwrip { from { --a-s: 1; --a-o: .9; } to { --a-s: 4.5; --a-o: 0; } }
.fw-boardwrap.shake { animation: fwshake2 .5s; }
@keyframes fwshake2 { 0%, 100% { transform: translate(0); } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -2px); } 80% { transform: translate(3px, 2px); } }
.war-ring { fill: none; stroke: #ff5a3c; stroke-width: 3; animation: fwpulseB .7s ease-in-out infinite; }
.hot-ring { fill: rgba(255, 214, 90, .16); stroke: #ffd65a; stroke-width: 2.6; stroke-dasharray: 5 4; animation: fwpulseB 1s ease-in-out infinite; }
.as-line { stroke-dasharray: 8 6; animation: fwdash 1s linear infinite; }
.rt-dash { animation: fwdash 2s linear infinite; }
@keyframes fwdash { to { stroke-dashoffset: -14; } }
/* on a touch screen the many reachable-hex tiles hold still (a pulse on each one repaints the board every frame); the idle ship bobbing and kraken arms hold still too (each running animation costs a repaint of the whole board, about 5 ms a frame on a PC and far more on a phone); the few that matter, attack targets and war rings, keep pulsing */
@media (hover: none), (pointer: coarse) { html:not(.motion) .ov-reach, html:not(.motion) .ov-next, html:not(.motion) .as-line, html:not(.motion) .rt-dash, html:not(.motion) .tok .ring-sel, html:not(.motion) .tok .bobber, html:not(.motion) .tok.mine .tshadow, html:not(.motion) .kr-arms { animation: none; }  }
.pv-line { fill: none; stroke: #fff; stroke-width: 3.2; stroke-dasharray: 1 8; stroke-linecap: round; opacity: .95; }
.pv-line.risky { stroke: #ffb0ff; }
.pv-end { fill: rgba(255, 255, 255, .25); stroke: #fff; stroke-width: 2; }
.pv-kr { fill: rgba(190, 120, 255, .35); stroke: #e0b0ff; stroke-width: 2; }
.pv-label { font: 800 13px var(--plain); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .9); stroke-width: 3.5px; }
.pv-label.odds { font-size: 12px; fill: #ffe9a8; } .pv-label.risk { fill: #ffc4ff; }
.rt-line { fill: none; stroke: #ffd65a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.rt-step { font: 800 11px var(--plain); fill: #2a1c05; text-anchor: middle; }
.dg-hex { fill: rgba(255, 70, 50, .17); stroke: rgba(255, 110, 85, .55); stroke-width: 1.6; }
.dg-n { font: 800 11px var(--plain); fill: #ffd0c4; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .8); stroke-width: 3px; }
.tr-line { fill: none; stroke-width: 3; stroke-dasharray: 6 7; stroke-linecap: round; opacity: .55; }
.tr-head { opacity: .7; }
.fx-flash { fill: rgba(255, 80, 60, .2); stroke: #ffd65a; stroke-width: 4.5; animation: fwflash .75s ease-in-out infinite alternate; }
@keyframes fwflash { from { --a-o: .35; stroke-width: 3; } to { --a-o: 1; stroke-width: 6; } }
.fx-flash-side { fill: none; stroke-width: 3.5; stroke-dasharray: 6 5; animation: fwdash 1s linear infinite; }
.fx-swords { transform-box: fill-box; transform-origin: center; animation: fwswing 1.1s ease-in-out infinite alternate; }
@keyframes fwswing { from { --a-r: -12deg; --a-s: 1; } to { --a-r: 12deg; --a-s: 1.15; } }
.fw-roundflash { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5; background: rgba(6, 18, 24, .94); border: 2px solid var(--brass); border-radius: 16px; padding: 14px 34px; font: 700 1.9rem var(--display); letter-spacing: .06em; text-align: center; pointer-events: none; animation: fwpop .5s ease-out; box-shadow: 0 10px 34px rgba(0, 0, 0, .6); }
.fw-roundflash div { font: 700 .95rem var(--ui); letter-spacing: 0; color: #cfe; margin-top: 4px; }
@keyframes fwpop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.fw-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }

/* ---------- the sidebar */
.fw-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; overflow-y: auto; padding-right: 3px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #35606f transparent; }
.fw-card { background: linear-gradient(var(--panel2), var(--panel)); border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.fw-card h3 { font: 700 .74rem var(--ui); text-transform: uppercase; letter-spacing: .14em; color: var(--brass-lt); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.fw-card h3 .grow { flex: 1; }
.fw-hint { color: var(--muted); font-size: .86rem; line-height: 1.45; }

.fw-turncard { border-radius: 14px; padding: 12px 14px; border: 2px solid var(--tc, var(--line)); background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .15)), var(--panel); display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; }
.fw-turncard.s0 { --tc: var(--blue); } .fw-turncard.s1 { --tc: var(--green); }
.fw-turncard .av { width: 54px; height: 58px; display: grid; place-items: center; background: rgba(0, 0, 0, .3); border-radius: 12px; }
.fw-turncard .tt { font: 700 1.12rem var(--display); letter-spacing: .04em; color: var(--tc); line-height: 1.15; }
.fw-turncard .ts { font-size: .84rem; color: #d3e1e6; line-height: 1.4; margin-top: 3px; }
.fw-turncard .rp { grid-column: 1 / 3; display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }
.fw-turncard .rp i { width: 22px; height: 7px; border-radius: 4px; background: #2c4854; } .fw-turncard .rp i.done { background: var(--brass-dk); } .fw-turncard .rp i.now { background: var(--tc); }
.fw-turncard .rp span { margin-left: auto; }
.youbadge { display: inline-block; font: 800 .7rem var(--ui); letter-spacing: .1em; padding: 2px 7px; border-radius: 999px; background: var(--parch); color: #1b1608; vertical-align: 2px; margin-left: 6px; }

.fw-actionbar { position: sticky; top: 0; z-index: 8; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; gap: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.fw-actionbar .fw-btn { min-height: 50px; flex: 1; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.fw-actionbar .ab-undo { flex: 0 0 36%; }
.fw-actionbar.review { flex-direction: column; gap: 8px; }
.rv-title { font-size: .92rem; color: var(--parch); line-height: 1.3; } .rv-title small { color: var(--muted); }
.fw-actionbar input[type=range] { width: 100%; accent-color: var(--brass); height: 28px; }
.rv-btns { display: flex; gap: 6px; flex-wrap: wrap; } .rv-btns .fw-btn { flex: 1 1 auto; justify-content: center; min-height: 40px; }

.fw-sea { border-radius: 12px; padding: 7px 12px; border: 2px solid var(--ember); background: linear-gradient(135deg, rgba(229, 83, 61, .28), rgba(120, 30, 20, .22)); display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; animation: fwseapulse 2.2s ease-in-out infinite; }
.fw-sea i { font-size: 1.25rem; color: var(--ember-lt); text-align: center; }
.fw-sea b { display: inline; font: 700 .95rem var(--display); letter-spacing: .02em; color: #ffd9cf; }
.fw-sea span { display: inline; font-size: .84rem; line-height: 1.35; color: #ffe7e0; }
.fw-sea .mine { color: #fff; font-weight: 800; }
@keyframes fwseapulse { 50% { box-shadow: 0 0 0 5px rgba(229, 83, 61, .3); } }
.fw-sea.calm { animation: none; border-color: var(--line); background: var(--panel); } .fw-sea.calm i { color: var(--muted); } .fw-sea.calm b { color: var(--parch); } .fw-sea.calm span { color: var(--muted); }

.fw-score { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fw-pl { border-radius: 12px; padding: 9px 10px; border: 2px solid transparent; background: #0b171d; display: grid; grid-template-columns: 38px 1fr; gap: 4px 8px; align-items: center; }
.fw-pl.s0 { border-color: rgba(75, 151, 255, .5); } .fw-pl.s1 { border-color: rgba(91, 224, 125, .5); }
.fw-pl.on { background: #16303b; }
.fw-pl .av { grid-row: 1 / 3; } .fw-pl .nm { font-weight: 800; font-size: .92rem; line-height: 1.15; }
.fw-pl .vp { font: 700 1.7rem var(--display); line-height: 1; } .fw-pl .vp small { font: 700 .7rem var(--ui); color: var(--muted); margin-left: 4px; }
.fw-pl .st { grid-column: 1 / 3; color: #fff; font-weight: 700; font-size: .8rem; line-height: 1.45; text-align: center; }      /* centered across the card, in white (owner, 2026-11-05) */
.fw-pl .bar { grid-column: 1 / 3; height: 6px; background: #223c47; border-radius: 3px; overflow: hidden; } .fw-pl .bar i { display: block; height: 100%; background: var(--c); border-radius: 3px; }
.fw-flagline { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.fl-ic { display: inline-block; vertical-align: -3px; margin-right: 3px; }

.fw-tabs { display: flex; gap: 6px; margin-bottom: 9px; }
.fw-tabs button { flex: 1; border: 2px solid var(--line); background: transparent; color: var(--parch); border-radius: 10px; padding: 8px 6px; font: 800 .86rem var(--ui); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; }
.fw-tabs button[aria-pressed="true"].s0 { background: rgba(75, 151, 255, .22); border-color: var(--blue); } .fw-tabs button[aria-pressed="true"].s1 { background: rgba(91, 224, 125, .2); border-color: var(--green); }
.fw-tabs button.you::after { content: 'you'; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: var(--parch); color: #1b1608; border-radius: 999px; padding: 1px 6px; }

.fl-item { border: 1px solid var(--line); border-radius: 12px; background: #0b171d; margin-bottom: 6px; overflow: hidden; }
.fl-item.s0 { border-left: 5px solid var(--blue); } .fl-item.s1 { border-left: 5px solid var(--green); }
.fl-item.sel { background: #1a3340; border-color: var(--gold); border-left-color: var(--gold); }
.fl-head { width: 100%; border: 0; background: transparent; color: var(--parch); display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; padding: 8px 10px; cursor: pointer; text-align: left; font: 700 .9rem var(--ui); min-height: 48px; }
.fl-head .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.fl-item.s0 .n { background: var(--blue); color: #06223f; } .fl-item.s1 .n { background: var(--green); color: #06260f; }
.fl-head .nm { line-height: 1.15; } .fl-head .nm small { display: block; color: var(--muted); font-weight: 600; font-size: .74rem; margin-top: 1px; }
.fl-head .car { color: var(--muted); transition: transform .15s; } .fl-item.open .fl-head .car { transform: rotate(180deg); }
.fl-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.chip { font: 800 .7rem var(--ui); letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #223c47; color: #cfe0e6; }
.chip.ok { background: #1f5a2c; color: #c6f6d0; } .chip.warn { background: #6a4e12; color: #ffe6a8; } .chip.bad { background: #7a2a1c; color: #ffd6cb; } .chip.done { background: #2b3338; color: #8a9aa3; } .chip.gold { background: #6a5518; color: #fff0b8; }
.fl-body { padding: 4px 10px 10px; border-top: 1px solid #1d3641; }
.fw-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .82rem; margin: 6px 0 4px; } .fw-stats b { color: var(--parch); }
.fw-ships { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 8px; }
.fw-ship { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; background: #101f27; border-radius: 8px; padding: 5px 8px; font-size: .84rem; }
.fw-ship.weak { background: #2c1d12; border-left: 3px solid var(--gold); }
.fw-ship .bar { height: 5px; border-radius: 3px; background: #2b4652; margin-top: 3px; overflow: hidden; } .fw-ship .bar i { display: block; height: 100%; background: var(--c, #4AB73C); }
.fw-ship .dc { font-weight: 800; color: var(--gold); white-space: nowrap; text-align: right; line-height: 1.2; } .fw-ship .dc small { display: block; color: var(--ember-lt); font-size: .68rem; font-weight: 800; }
.fw-ship .pen { color: #ffcf9a; font-size: .74rem; font-weight: 700; }
.fw-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-assault-now { background: #2c2815; border-left: 3px solid var(--gold); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .86rem; }
.fl-flag { padding: 8px 10px; border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 6px; font-size: .84rem; color: #cfe0e6; display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; line-height: 1.4; } .fl-flag b { color: var(--parch); } .fl-flag > div:only-child { grid-column: 1 / -1; }

.fw-prog { display: flex; flex-direction: column; gap: 5px; }
.ob-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; font-size: .84rem; }
.ob-row .ic { width: 26px; height: 26px; border-radius: 50%; background: #0a161c; border: 2px solid #4a5f68; display: grid; place-items: center; overflow: hidden; }
.ob-row .ic.s0 { border-color: var(--blue); } .ob-row .ic.s1 { border-color: var(--green); }
.ob-row .tr { height: 6px; border-radius: 3px; background: #223c47; margin-top: 3px; overflow: hidden; display: flex; } .ob-row .tr i { display: block; height: 100%; }
.ob-key { font-size: .8rem; color: var(--muted); margin: -2px 0 8px; line-height: 1.35; }
.ob-row .vpl { font-weight: 800; color: var(--gold); text-align: right; line-height: 1.15; } .ob-row .vpl small { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); } .ob-row.sunk { opacity: .45; text-decoration: line-through; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #666; flex: none; display: inline-block; } .dot.s0 { background: var(--blue); } .dot.s1 { background: var(--green); }

.log-filter { display: flex; gap: 5px; margin-bottom: 7px; flex-wrap: wrap; } .log-filter button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 11px; font: 700 .74rem var(--ui); cursor: pointer; } .log-filter button[aria-pressed="true"] { background: var(--parch); color: #1b1608; border-color: var(--parch); }
/* round 52: the log bottom up, newest line first in the page, so it rests on its newest line with no script (fairways.js fillLog) */
.fw-log { max-height: 340px; overflow: auto; font-size: .84rem; line-height: 1.45; display: flex; flex-direction: column-reverse; gap: 4px; scrollbar-width: thin; scrollbar-color: #35606f transparent; }
.fw-log .l { color: #d8e3e6; display: grid; grid-template-columns: 18px 1fr; gap: 7px; padding: 3px 6px 3px 7px; border-left: 3px solid #5d6f77; border-radius: 4px; background: rgba(255, 255, 255, .02); }
.fw-log .l.s0 { border-left-color: var(--blue); } .fw-log .l.s1 { border-left-color: var(--green); } .fw-log .l.n { border-left-color: var(--brass-dk); color: #ecdfb2; }
.fw-log .l.go { cursor: pointer; } .fw-log .l.go:hover { background: rgba(255, 255, 255, .07); }
.fw-log .l .li { color: var(--brass-lt); text-align: center; font-size: .78rem; margin-top: 2px; }
.fw-log .l.k-sink, .fw-log .l.k-hit { background: rgba(229, 83, 61, .1); } .fw-log .l.k-sink .li, .fw-log .l.k-hit .li { color: var(--ember-lt); }
.fw-log .l.k-turn { opacity: .6; font-size: .78rem; }
.fw-log .rd { font: 700 .9rem var(--display); color: var(--brass-lt); margin-top: 6px; letter-spacing: .06em; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.fw-actionbar.review ~ .fw-card .rd { cursor: pointer; }
.fw-opt-line { display: block; margin-top: 10px; color: var(--muted); font-size: .84rem; } .fw-opt-line input { margin-right: 6px; accent-color: var(--brass); }

.guide { border-radius: 14px; padding: 12px 14px; border: 2px dashed var(--gold); background: rgba(242, 199, 92, .08); font-size: .88rem; line-height: 1.5; color: #f6ecc8; }
.guide b { color: #fff; } .guide ol { margin: 6px 0 0 20px; padding: 0; } .guide li { margin: 3px 0; }
.guide .gx { float: right; border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; }

/* ---------- windows (battle, dice, notices): draggable, resizable, remembered */
.fw-modal { position: fixed; inset: 0; background: rgba(2, 8, 12, .72); z-index: 200; }
.fw-modal[hidden] { display: none; }
.fw-modal.dock { background: none; pointer-events: none; }
/* the reading window (Rules, Lore, Stats): a layer of its own over the game's windows, so nothing that happens on the board closes it (owner, 2026-11-05) */
.fw-reader { z-index: 240; }
.fw-reader .fw-dialog { left: 50%; top: 3vh; transform: translateX(-50%); max-height: 94vh; max-width: calc(100vw - 16px); }
.fw-reader .fw-dialog h2 { cursor: default; }
.fw-dialog { position: fixed; container: win / inline-size; display: flex; flex-direction: column; color: var(--parch); background: linear-gradient(#142b35, #0e1f27); border: 1px solid var(--brass-dk); border-radius: 16px; box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 22px 60px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(240, 207, 133, .12); overflow: hidden; pointer-events: auto; min-width: 300px; }
.fw-dialog.dragging { user-select: none; box-shadow: 0 0 0 3px rgba(242, 199, 92, .5), 0 28px 70px rgba(0, 0, 0, .7); }
.fw-grab { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 10px; background: linear-gradient(#1d3b48, #16303b); border-bottom: 1px solid var(--brass-dk); cursor: move; touch-action: none; user-select: none; }
.fw-grip-dots { width: 14px; height: 14px; background: radial-gradient(circle, var(--brass) 1.4px, transparent 1.7px) 0 0 / 5px 5px; opacity: .8; flex: none; }
.fw-grab-title { flex: 1; font: 700 .72rem var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-lt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-body { --px: 18px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; padding: 14px var(--px) 0; scrollbar-width: thin; scrollbar-color: #35606f transparent; }
.fw-body > :last-child:not(.foot) { margin-bottom: 16px; }
.fw-dialog h2 { font: 700 1.35rem var(--display); letter-spacing: .04em; margin-bottom: 4px; color: var(--parch); cursor: move; }
.fw-dialog .sub { color: #a9c7d6; margin-bottom: 12px; line-height: 1.45; font-size: .92rem; }
.fw-dialog .rules { line-height: 1.55; font-size: .93rem; color: #dbe7ec; }
.fw-dialog .rules h4 { margin: 14px 0 4px; color: var(--brass-lt); font: 700 1rem var(--display); letter-spacing: .04em; }
.fw-dialog .rules ul { margin: 4px 0 6px 18px; padding: 0; } .fw-dialog .rules li { margin: 3px 0; }
.fw-dialog .foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.fw-dialog .foot .fw-btn { flex: 1 1 auto; }
/* the buttons that move the game on (Roll, Continue, Skuttle) stay pinned to the bottom of the window, so nobody scrolls to find them */
.fw-dialog .fw-body > .foot, .fw-dialog .fw-body .foot:last-child { position: sticky; bottom: 0; z-index: 2; margin: 10px calc(-1 * var(--px)) 0; padding: 10px var(--px) 14px; background: linear-gradient(rgba(14, 31, 39, 0), #0e1f27 22%); }
.fw-dialog.sheet .fw-body > .foot, .fw-dialog.sheet .fw-body .foot:last-child { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.fw-btn.side0 { border-color: var(--blue); } .fw-btn.side1 { border-color: var(--green); }
.fw-dialog.hitflash { box-shadow: 0 0 0 3px #ff6a55, 0 20px 60px rgba(255, 80, 60, .45); }
.fw-dialog.sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; height: auto !important; max-height: 58vh !important; max-height: 58dvh !important; border-radius: 18px 18px 0 0; }
.fw-dialog.sheet .fw-grab { display: none; }
/* phone: a battle shows both fleets side by side and a smaller heading, so the dice and the Roll buttons fit in one view */
.fw-dialog.sheet .fw-body { --px: 12px; padding: 10px var(--px) 0; }
.fw-dialog.sheet h2 { font-size: 1.1rem; margin-bottom: 2px; } .fw-dialog.sheet .sub { font-size: .8rem; line-height: 1.35; margin-bottom: 6px; }
.fw-dialog.sheet .fw-bt { grid-template-columns: 1fr 1fr; gap: 6px; }
.fw-dialog.sheet .bt-side { padding: 6px 7px; } .fw-dialog.sheet .bt-side h4 { font-size: .8rem; margin-bottom: 4px; } .fw-dialog.sheet .bt-total { font-size: 1.1rem; }
.fw-dialog.sheet .bt-ship { flex-direction: column; align-items: flex-start; gap: 2px; padding: 3px 0; } .fw-dialog.sheet .bt-ship .nm { width: auto; font-size: .72rem; }
.fw-dialog.sheet .bt-ship .die { width: 22px; height: 22px; } .fw-dialog.sheet .bt-ship .dice { gap: 3px; }
.fw-dialog.sheet .bt-track { margin: 4px 0; } .fw-dialog.sheet .bt-note { margin: 4px 0 0; font-size: .88rem; }
.fw-dialog.sheet .fw-body > .foot, .fw-dialog.sheet .fw-body .foot:last-child { padding: 8px var(--px) calc(10px + env(safe-area-inset-bottom)); }
.rd-lab { font-weight: 800; margin-bottom: 6px; }
/* phone: a dice window (an approach, a kraken) stays short so it covers less of the board (owner, 2026-11-03): the rule's long version is left to the Rules,
   and each group's name sits beside its dice */
.fw-dialog.sheet .rd-more { display: none; }
.fw-dialog.sheet h2 .rd-at { font-size: .7em; }
.fw-dialog.sheet .rollbox { gap: 2px; padding: 0; }
.fw-dialog.sheet .rd-group { display: flex; align-items: center; justify-content: center; gap: 12px; } .fw-dialog.sheet .rd-lab { margin-bottom: 0; }
.fw-dialog.sheet .rollbox .die { width: 40px; height: 40px; }
.fw-dialog.sheet .rollbox .bt-note { min-height: 0; margin: 2px 0 0; }
.fw-dialog.sheet .rollbox + .foot { margin-top: 4px; }

/* a short screen (a Chromebook, a laptop with a tall toolbar, a phone on its side): the battle window shrinks so the dice and buttons fit without scrolling */
@media (max-height: 700px) {
  .fw-dialog .bt-sub { font-size: .8rem; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fw-dialog:not(.sheet) .fw-body { --px: 14px; padding: 8px var(--px) 0; } .fw-dialog:not(.sheet) h2 { font-size: 1.12rem; }
  .fw-dialog:not(.sheet) .bt-side { padding: 6px 10px; } .fw-dialog:not(.sheet) .bt-side h4 { margin-bottom: 4px; font-size: .9rem; }
  .fw-dialog:not(.sheet) .bt-ship { padding: 2px 0; } .fw-dialog:not(.sheet) .bt-ship .die { width: 26px; height: 26px; }
  .fw-dialog:not(.sheet) .bt-track { margin: 4px 0; } .fw-dialog:not(.sheet) .bt-note { margin: 4px 0 0; }
}
.dice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.die { width: clamp(30px, 8cqw, 52px); height: clamp(30px, 8cqw, 52px); display: block; }
.die.rolling { animation: none; }      /* round 59: a rolling die tumbles in steps, set by the game as it changes the face (fairways.js tumbleDie) */
.die.ones rect { fill: #ffd6cc; } .die.sixes rect { fill: #fff1b8; }
.rollbox { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 4px; } .rollbox .dice { justify-content: center; } .rollbox .die { width: clamp(40px, 11cqw, 60px); height: clamp(40px, 11cqw, 60px); }
.fw-bt { display: grid; grid-template-columns: 1fr; gap: 10px; }
@container win (min-width: 600px) { .fw-bt { grid-template-columns: 1fr 1fr; } }
.bt-side { background: #0b171d; border-radius: 12px; padding: 10px 12px; border: 2px solid transparent; }
.bt-side.s0 { border-color: rgba(75, 151, 255, .6); } .bt-side.s1 { border-color: rgba(91, 224, 125, .6); }
.bt-side.win { background: #173525; }
.bt-side h4 { margin: 0 0 8px; font-size: .98rem; display: flex; justify-content: space-between; gap: 8px; }
.bt-ship { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid #1d3641; flex-wrap: wrap; } .bt-ship:first-of-type { border-top: 0; }
.bt-ship .nm { width: 96px; font-size: .8rem; color: #cfe0e8; font-weight: 700; flex: none; } .bt-ship .nm small { color: #ffd65a; font-weight: 800; }
.bt-ship .die { width: clamp(24px, 6cqw, 38px); height: clamp(24px, 6cqw, 38px); }
.bt-ship.sunk { opacity: .5; text-decoration: line-through; } .bt-ship .tag { font-size: .72rem; font-weight: 800; color: #ff9f7a; } .bt-ship.hit { animation: fwpulse .5s 2; }
.bt-total { font: 700 1.45rem var(--display); }
.bt-track { display: flex; gap: 8px; justify-content: center; margin: 8px 0 6px; } .bt-pip { width: 38px; height: 12px; border-radius: 6px; background: #2b4652; } .bt-pip.s0 { background: var(--blue); } .bt-pip.s1 { background: var(--green); } .bt-pip.t { background: #aaa; }
.bt-note { text-align: center; color: #ecdca0; margin: 8px 0 0; min-height: 1.4em; font-weight: 700; }
.bt-fx { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; } .bt-fx div { background: #3b2323; border-left: 3px solid #ff6a55; padding: 6px 10px; border-radius: 6px; font-size: .85rem; }
.bt-assist { background: #232e1e; border-left: 3px solid #ffd65a; border-radius: 8px; padding: 7px 10px; margin: -2px 0 10px; font-size: .86rem; color: #e8e2b8; }
.nm-list { display: flex; flex-direction: column; gap: 8px; } .nm-row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; font-weight: 700; color: #cfe0e8; }
.nm-row input { background: #08141a; color: #fff; border: 1px solid #35606f; border-radius: 8px; padding: 10px 12px; font: 700 1rem var(--ui); min-height: 42px; } .nm-row input:focus { outline: 2px solid #ffd65a; }
.brief { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; margin-bottom: 8px; } .brief .av { width: 74px; height: 80px; display: grid; place-items: center; background: rgba(0, 0, 0, .3); border-radius: 14px; }
.brief ol { margin: 6px 0 0 18px; padding: 0; line-height: 1.5; font-size: .92rem; } .brief ol li { margin: 3px 0; }
.verse { font-family: var(--story); font-style: italic; font-size: 1.08em; color: var(--brass-lt); line-height: 1.5; }

/* sound menu */
.fw-sndmenu { position: fixed; z-index: 300; width: 262px; background: #0d1d25; border: 1px solid var(--brass-dk); border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, .55); color: var(--parch); }
.fw-sndmenu h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brass-lt); }
.fw-sndmenu label { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 700; font-size: .92rem; cursor: pointer; }
.fw-sndmenu input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brass); } .fw-sndmenu .vol { flex-direction: column; align-items: stretch; gap: 4px; } .fw-sndmenu input[type=range] { width: 100%; accent-color: var(--brass); }
.snd-state { font-size: .8rem; line-height: 1.35; margin: 0 0 8px; padding: 7px 9px; border-radius: 8px; background: #1e3b49; color: #cfe6f1; }
.snd-state.ok { background: #1f4a2a; color: #b9f0c4; } .snd-state.wait { background: #4a3d1a; color: #ffe9a8; } .snd-state.bad, .snd-state.off { background: #4a2a22; color: #ffc9b8; }
.snd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ffd65a; margin-left: 4px; animation: fwpulse 1s infinite; }

/* ---------- small screens */
@media (max-width: 1060px) {
  :root { --panel-w: 100%; }
  body.fw-page.ingame { overflow: auto; height: auto; }
  body.fw-page.ingame .fw { height: auto; display: block; }
  .fw-game { display: block; }
  .fw-boardwrap { height: min(calc(100vh - 150px), 120vw); height: min(calc(100dvh - 150px), 120vw); min-height: 360px; margin-bottom: 10px; }
  .fw-side { overflow: visible; padding-bottom: 16px; }
  /* Undo and End turn sit just under the turn card (owner, 2026-11-03: the bar was meant to be fixed to the bottom of the screen, but the side panel's
     contain rule made it the bottom of the whole panel, so a player scrolled past every card to end a turn) */
  .fw-turncard { order: -2; }
  .fw-actionbar:not(.review) { order: -1; position: static; z-index: auto; box-shadow: none; }
  .fw-legend { gap: 12px; padding: 4px 6px; } .fw-legend .lgi { font-size: .78rem; } .fw-legend svg:not(.wide) { width: 24px; height: 24px; }
  .fw-banner { max-width: 62%; font-size: .78rem; }
  .fw-alerts { width: min(300px, 70%); }
}
@media (max-width: 760px) { .fw-title { font-size: 1.2rem; flex-basis: 100%; order: 3; } .fw-bar-btns .fw-btn { padding: 8px 11px; font-size: .82rem; min-height: 38px; } .fw-start h2 { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { html:not(.motion) .tok, html:not(.motion) .flagtok { transition: none; } html:not(.motion) .ov-reach, html:not(.motion) .ov-atk, html:not(.motion) .tok .ring-sel, html:not(.motion) .die.rolling, html:not(.motion) .fw-alert.sticky, html:not(.motion) .fw-sea, html:not(.motion) .hero-bob, html:not(.motion) .tok .bobber, html:not(.motion) .kr-arms, html:not(.motion) .hexin .wv { animation: none; } html:not(.motion) .fw-alert.sticky { border-width: 3px; }  }

/* the hidden attribute always wins over a display rule */
.fw [hidden], .fw-modal[hidden] { display: none !important; }
.ov-next.kr { fill: rgba(190, 120, 255, .32); stroke: #e0b0ff; stroke-dasharray: none; }

/* ---------- phones: the controls become a row along the bottom of the board, the legend scrolls sideways */
@media (max-width: 760px) {
  .fw-cam { flex-direction: row; right: 6px; bottom: 6px; gap: 5px; }
  .fw-cam button { width: 36px; height: 36px; border-radius: 10px; font-size: .85rem; }
  #cam-keys, #cam-sel { display: none; }
  .fw-banner { right: 6px; top: 6px; padding: 5px 9px; font-size: .76rem; max-width: 70%; }
  .fw-banner .rp { display: none; }
  .fw-alerts { left: 6px; top: 6px; width: min(260px, 74%); }
  .fw-legend { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 14px; padding: 5px 10px; scrollbar-width: none; }
  .fw-legend .lgi { flex: none; font-size: .78rem; } .fw-legend svg:not(.wide) { width: 24px; height: 24px; }
  .fw-roundflash { font-size: 1.3rem; padding: 10px 20px; }
}


/* gun-to-gun duels under the dice (2026-10-29) */
.bt-duels{display:flex;flex-direction:column;gap:3px;margin:8px 0 2px;font-size:.84rem}
.bt-duel{display:grid;grid-template-columns:1fr 24px 1fr;align-items:center;padding:3px 8px;border-radius:6px;background:rgba(255,255,255,.04);color:#9ab}
.bt-duel i{font-style:normal;text-align:center;color:#d8c9a2}
.bt-duel span:last-child{text-align:right}
.bt-duel .won{color:#fff;font-weight:700}
.bt-duel .won.s0{color:#9cc6ff}.bt-duel .won.s1{color:#9ff0b4}
.bt-duel.tie{opacity:.8}
.bt-duel.spare,.bt-duel.special{display:block;text-align:center;font-style:italic}
.bt-duel.special.s0{color:#9cc6ff;background:rgba(75,151,255,.12)}.bt-duel.special.s1{color:#9ff0b4;background:rgba(91,224,125,.12)}

/* the stats window */
.st-wrap{overflow-x:auto;margin:4px 0 8px}
.fw-stats-tbl{border-collapse:collapse;width:100%;font-size:.82rem;white-space:nowrap}
.fw-stats-tbl th,.fw-stats-tbl td{padding:4px 8px;text-align:right;border-bottom:1px solid rgba(255,255,255,.08)}
.fw-stats-tbl th:first-child{text-align:left}
.fw-stats-tbl tr:first-child th{color:#d8c9a2;font-weight:600}
.ach-list{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.ach{padding:5px 9px;border-radius:7px;background:rgba(255,255,255,.04);color:#8fa3ab}
.ach.got{background:rgba(211,166,76,.16);color:#f3ead0}
.ach small{float:right;color:#d8c9a2}
.ach-earned{margin:10px 0;padding:8px 12px;border-radius:8px;background:rgba(211,166,76,.18);color:#f3ead0;text-align:center}

/* ---------- light effects (owner, 2026-10-30): for Chromebooks, older laptops, tablets and phones. The board stops animating by itself: no sea shimmer, no
   looping glows or pulses, lighter shadows, and the per-tile shading is not painted. Pieces still glide when they sail. */
.lite .hexin .wv, .lite .hxs, .lite .seapat { display: none; }
.lite .kr-arms, .lite .tok .bobber, .lite .ov-reach, .lite .ov-atk, .lite .ov-next, .lite .ov-doom.now, .lite .hot-ring, .lite .war-ring, .lite .as-line, .lite .rt-dash,
.lite .tok .ring-sel, .lite .tok.mine .tshadow, .lite .fl-glow, .lite .fx-swords, .lite .fx-flash, .lite .fx-flash-side, .lite .hero-bob, .lite .fw-sea, .lite .fw-alert.sticky { animation: none; }
.lite .tok.mine .tshadow { fill: rgba(255, 214, 90, .65); }
.lite .fw-dialog { box-shadow: 0 8px 22px rgba(0, 0, 0, .55); } .lite .fw-alert, .lite .fw-tip { box-shadow: none; }
.lite .tok { transition-duration: .4s; }

/* ---- ship cards (hover a fleet): captain, then one little card per ship */
.fw-shipcard { position: absolute; z-index: 9; width: 318px; max-width: calc(100% - 16px); max-height: min(78%, 520px); overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #35606f transparent; padding: 10px 12px 10px; border-radius: 14px; background: linear-gradient(#17323d, #0e1f27); border: 1px solid var(--brass-dk); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(240, 207, 133, .14); color: var(--parch); font-size: .84rem; line-height: 1.35; pointer-events: auto; }
.fw-shipcard[hidden] { display: none; }
.fw-carddock { display: none; }
@media (max-width: 1060px) {
  .fw-carddock { display: block; }
  .fw-carddock:has(.fw-shipcard:not([hidden])) { padding: 0 10px 12px; }
  .fw-shipcard.docked { position: relative; z-index: auto; width: auto; max-width: 520px; margin: 0 auto; max-height: none; overflow: visible; }
}
.fw-shipcard.pinned { box-shadow: 0 0 0 2px rgba(242, 199, 92, .55), 0 16px 40px rgba(0, 0, 0, .6); }
.sc-x { position: absolute; right: 8px; top: 4px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; } .sc-x:hover { color: #fff; }
.sc-head { display: flex; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sc-port { position: relative; flex: 0 0 64px; height: 68px; } .sc-port svg { width: 64px; height: 68px; display: block; } .sc-port svg + svg { position: absolute; left: 0; top: 0; }
.sc-fleet { font: 700 1.02rem var(--display); letter-spacing: .03em; } .sc-cap { color: var(--brass-lt); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; margin: 1px 0 3px; } .sc-bio { color: #b8cdd6; font-style: italic; font-size: .78rem; }
.sc-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 6px; } .sc-sum span { background: #0b171d; border: 1px solid var(--line); border-radius: 8px; padding: 3px 4px; text-align: center; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .sc-sum b { display: block; font-size: 1.02rem; color: var(--parch); letter-spacing: 0; }
.fw-shipcard .fl-chips { margin: 0 0 6px; }
.sc-ship { display: flex; gap: 9px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .07); } .sc-ship.hurt { background: linear-gradient(90deg, rgba(255, 106, 85, .10), transparent); }
.sc-pic { flex: 0 0 76px; } .sc-pic svg { width: 76px; height: auto; display: block; }
.sc-info { min-width: 0; flex: 1; } .sc-name b { font-size: .9rem; } .sc-name small { color: var(--brass-lt); margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.sc-stats { display: flex; flex-wrap: wrap; gap: 3px 10px; color: #cfe0e6; font-size: .76rem; margin: 2px 0 3px; } .sc-stats em { color: #ff9f7a; font-style: normal; }
.sc-info .bar { height: 5px; border-radius: 3px; background: #2b4652; overflow: hidden; } .sc-info .bar i { display: block; height: 100%; background: var(--c, #4AB73C); }
.sc-crew { color: var(--muted); font-size: .72rem; margin-top: 2px; } .sc-rec { color: #9fd3b0; font-size: .74rem; margin-top: 2px; } .sc-lore { color: #8fa8b2; font-size: .72rem; margin-top: 3px; } .sc-info .pen { color: #ff9f7a; font-size: .74rem; margin-top: 2px; }
.sc-foot { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; color: var(--muted); font-size: .76rem; } .sc-foot b { color: var(--parch); }

/* ---- the two limits of a round, always on the turn card */
.fw-turncard .lim { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; } .lim span { font: 800 .7rem var(--ui); letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #223c47; color: #cfe0e6; } .lim span.full { background: #7a2a1c; color: #ffd9cf; }

/* ---- battle: the skuttle die in the footer, duels that appear one at a time, guns that fired for nothing */
.fw-dialog .foot .sk-die { flex: 0 0 auto; display: inline-flex; align-items: center; } .fw-dialog .foot .sk-die .die { width: 44px; height: 44px; } .fw-dialog .foot .sk-wait { color: var(--muted); align-self: center; margin-right: auto; }
/* one die at a time: the two dice in play stand side by side in the window, Blue on the left and Green on the right (owner, 2026-10-31) */
.bt-stage { display: grid; grid-template-columns: 1fr 42px 1fr; gap: 6px; align-items: stretch; margin: 6px 0 8px; padding: 8px; border-radius: 12px; background: #08131a; border: 1px solid var(--line); }
.bt-stage .st-col { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; border-radius: 10px; border: 2px solid transparent; opacity: .75; }
.bt-stage .st-col.s0 { border-color: rgba(75, 151, 255, .45); } .bt-stage .st-col.s1 { border-color: rgba(91, 224, 125, .45); }
.bt-stage .st-col.cur { opacity: 1; box-shadow: 0 0 0 2px rgba(255, 214, 90, .55); }
.bt-stage .st-name { font: 800 .74rem var(--ui); text-transform: uppercase; letter-spacing: .1em; } .bt-stage .st-who { font: 700 .88rem var(--ui); color: #e8f1f5; }
.bt-stage .st-die { min-height: 62px; display: flex; align-items: center; justify-content: center; } .bt-stage .st-die .die { width: 58px; height: 58px; }
.bt-stage .face-down { opacity: .3; display: inline-flex; } .bt-stage .nodie { color: #9ab; font-style: italic; font-size: .8rem; } .bt-stage .st-note, .bt-stage .st-note2 { color: #9ab; font-size: .74rem; min-height: 1em; }
.bt-stage .st-vs { align-self: center; text-align: center; font: 800 .95rem var(--display); color: var(--brass-lt); }
.bt-stage.sk { grid-template-columns: 1.1fr 1fr; } .bt-stage.sk .st-col { opacity: 1; } .bt-stage .st-die.big { min-height: 76px; } .bt-stage .st-die.big .die { width: 72px; height: 72px; }
.sk-result { font-size: .95rem; line-height: 1.3; min-height: 2.4em; } .sk-result b { font: 800 1.2rem var(--display); letter-spacing: .04em; }
.sk-result.good { color: #9ff0b4; } .sk-result.bad { color: #ff9f7a; } .bt-stage.sk .sk-col:has(.sk-result.good) { border-color: #5be07d; background: rgba(91, 224, 125, .10); } .bt-stage.sk .sk-col:has(.sk-result.bad) { border-color: #ff6a55; background: rgba(255, 106, 85, .12); }
.qdie { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 3px dashed #5b7886; color: #9ab; font: 800 1.7rem var(--display); } .st-die.big .qdie { width: 72px; height: 72px; }
.gslot { display: inline-flex; border-radius: 6px; transition: opacity .2s; } .gslot .die { width: 26px; height: 26px; } .gslot.dim { opacity: .28; }
.gslot.cur { opacity: 1; outline: 2px solid #ffd65a; animation: fwpulse 1s ease-in-out infinite; } .gslot.won { outline: 2px solid #5be07d; } .gslot.lost { opacity: .45; } .gslot.tied { outline: 2px dashed #9ab; } .gslot.unopp { opacity: 1; outline: 2px dotted #5be07d; }
.bt-ship .nodie { display: inline-block; width: 24px; text-align: center; color: #9ab; }
.siege-ring { transform-box: fill-box; transform-origin: center; animation: fwspinB 7s linear infinite; } @keyframes fwspin { to { transform: rotate(360deg); } } @keyframes fwspinB { to { --a-r: 360deg; } }
.siege-tag { animation: fwpulseB 1.6s ease-in-out infinite; } .lite .siege-ring, .lite .siege-tag { animation: none; }
.bt-duels.live { min-height: 0; max-height: 7.4em; overflow-y: auto; } .bt-duel.scoutduel { border-left: 3px solid var(--brass); } .bt-duel .wasted { text-decoration: line-through; opacity: .55; } .bt-duel em { margin-left: 8px; color: #ffd65a; font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.bt-duels.live .bt-duel { animation: fwduelin .22s ease-out; } @keyframes fwduelin { from { opacity: 0; transform: translateY(-4px); } }
.lite .bt-duels.live .bt-duel { animation: none; }

/* Not enough men to storm a settlement, and the recombine window (owner, 2026-10-31) */
.fw-btn.short { background: linear-gradient(#ffb09f, #f08a74); color: #3a0d00; }
.pwr-short { display: block; color: #ff8a7a; font-weight: 700; margin-top: 2px; }
.rc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.rc-col { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.rc-col small { color: #93a9b2; display: block; margin-bottom: 2px; }
.rc-ship { justify-content: flex-start; text-align: left; }
@media (max-width: 560px) { .rc-pair { grid-template-columns: 1fr; } }


/* ---------- alerts: small icon chips in the top left of the board; rest the pointer on one (or tap it) for the details (owner, 2026-11-01) */
.fw-alerts { position: absolute; left: 8px; top: 8px; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: auto; pointer-events: none; }
.fw-alerts > * { pointer-events: auto; }
.fw-alert { position: relative; display: block; width: 40px; height: 40px; padding: 0; border: 2px solid #4a6a78; background: rgba(8, 20, 27, .94); color: var(--parch); border-radius: 11px; cursor: pointer; font: 600 .72rem/1.3 var(--ui); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); animation: fwalertin .3s ease-out; transition: opacity .2s, transform .2s; }
.fw-alert .ag { display: grid; place-items: center; width: 100%; height: 100%; }
.fw-alert .ag i.fas { font-size: 1.05rem; }
.fw-alert .ag svg { width: 32px; height: 28px; overflow: visible; }
.fw-alert .agm { position: absolute; left: -7px; top: -7px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #7a1f12; border: 1.5px solid #ffd9cf; }
.fw-alert .agm i.fas { font-size: .7rem; color: #fff; margin: 0; }
.fw-alert .atag { position: absolute; right: -5px; bottom: -6px; padding: 0 4px; border-radius: 6px; background: #0b171d; border: 1px solid var(--line); font: 800 .7rem/1.35 var(--ui); color: #fff; letter-spacing: .02em; }
.fw-alert .apop { display: none; position: absolute; left: calc(100% + 8px); top: -2px; width: 220px; text-align: left; padding: 6px 9px; border-radius: 10px; background: rgba(8, 20, 27, .97); border: 1px solid var(--brass-dk); box-shadow: 0 8px 22px rgba(0, 0, 0, .55); z-index: 8; font-size: .74rem; }
.fw-alert .apop b { display: block; font-size: .78rem; color: #fff; margin-bottom: 1px; }
.fw-alert .apop span { display: block; color: #d6e4e9; }
.fw-alert .apop em { display: block; margin-top: 3px; font-style: normal; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-lt); }
.fw-alert:hover .apop, .fw-alert:focus-visible .apop, .fw-alert.open .apop { display: block; }
.fw-alert.s0 { border-color: #4b97ff; background: rgba(9, 28, 60, .95); --pc: 75, 151, 255; } .fw-alert.s0 .ag > i.fas { color: #8bbcff; }
.fw-alert.s1 { border-color: #5be07d; background: rgba(9, 42, 24, .95); --pc: 91, 224, 125; } .fw-alert.s1 .ag > i.fas { color: #8cf0a5; }
.fw-alert .agm i.fas, .fw-alert.danger .agm i.fas { color: #fff; }
/* the badge of HOW a ship was lost: the same color and icon for every faction (owner, 2026-11-03) */
.fw-alert .agm.b-fire { background: #c0392b; border-color: #ffd0c4; } .fw-alert .agm.b-kraken { background: #5b2a86; border-color: #e2c8ff; } .fw-alert .agm.b-mael { background: #0f6b62; border-color: #b8fff2; }
.fw-alert .agm.b-alley { background: #6b4a22; border-color: #f4dcb4; } .fw-alert .agm.b-sea { background: #1d5fa8; border-color: #cfe6ff; } .fw-alert .agm.b-skuttle { background: #3a0f0a; border-color: #ff9a82; }
.fw-alert .agm.b-oops { background: #b8620e; border-color: #ffe0b8; } .fw-alert .agm.b-hit { background: #8a1c3c; border-color: #ffc6d6; } .fw-alert .agm.b-fleet { background: #111; border-color: #ddd; } .fw-alert .agm.b-wreck { background: #4a3a28; border-color: #e8d4b0; }
.sg-pow { font: 800 10.5px var(--plain); letter-spacing: .02em; } .sg-short { font: 900 9px var(--plain); fill: #ff7a6a; letter-spacing: .08em; text-transform: uppercase; paint-order: stroke; stroke: rgba(0, 0, 0, .8); stroke-width: 2.4px; }

/* the end-of-game window (owner, 2026-11-01) */
.go-h { margin: 14px 0 4px; color: var(--brass-lt); font: 700 1rem var(--display); letter-spacing: .04em; }
.go-line { color: #a9c7d6; font-size: .86rem; margin: 0 0 6px; }
.fw-stats-tbl.go { font-size: .95rem; } .fw-stats-tbl.go th, .fw-stats-tbl.go td { text-align: center; } .fw-stats-tbl.go td { color: #eef5f8; font-variant-numeric: lining-nums tabular-nums; }      /* larger, and easier to read (owner, 2026-11-05) */ .fw-stats-tbl.go th:first-child { text-align: left; color: #d8c9a2; font-weight: 600; }
.fw-stats-tbl.go td.hi { color: #ffe28a; font-weight: 800; }
/* victory points round by round (owner, 2026-11-05): every number in the game's own lettering (Cinzel, as on the faction cards), in its faction's color, all one size and one
   weight, in columns that line up; the round's leader is only shaded (a bolder or underlined number read as a different style) */
.st-wrap .fw-stats-tbl.go.go-vpr td { font: 700 .98rem/1.2 var(--display); letter-spacing: .02em; font-variant-numeric: lining-nums tabular-nums; }
.go-vpr td .vp-n { display: inline-block; min-width: 2.4ch; text-align: center; }

.go-vpr th:first-child { width: 1%; font-family: var(--display); font-variant-numeric: lining-nums tabular-nums; }
.go-vpr tr:nth-child(even) td, .go-vpr tr:nth-child(even) th { background-color: rgba(255, 255, 255, .025); }

/* ---------- the rules window: cards, steps, tables, and small diagrams (owner, 2026-11-01) */
.rules.ru { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }      /* one column no wider than the window: an auto column grew to its cards and cut the rules off on a phone */
.ru-pips { flex-wrap: wrap; }
@media (max-width: 520px) { .ru-table { font-size: .78rem; } .ru-table th, .ru-table td { padding: 4px 3px; } .ru-sec { overflow-x: auto; } }
.ru-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 1.05rem var(--display); letter-spacing: .04em; color: var(--brass-lt); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.ru-sec h3 i { width: 22px; text-align: center; font-size: .95rem; color: var(--gold); }
.ru-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.ru-grid.three { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ru-card { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; padding: 8px 10px; border-radius: 10px; background: #0b171d; border: 1px solid #1d3641; }
.ru-card.wide { grid-column: 1 / -1; }
.ru-card > i { font-size: 1.1rem; color: var(--gold); text-align: center; margin-top: 2px; }
.ru-card > div > b { display: block; color: #fff; font-size: .9rem; margin-bottom: 1px; } .ru-card span { color: #c7d8df; font-size: .84rem; line-height: 1.4; } .ru-card span b { color: #fff; }
.ru-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ru-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; padding: 8px 10px; border-radius: 10px; background: #0b171d; border: 1px solid #1d3641; font-size: .84rem; line-height: 1.4; color: #c7d8df; }
.ru-steps em { font: 800 .9rem var(--display); font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-dk); color: #fff; }
.ru-list { margin: 8px 0 0 18px; padding: 0; font-size: .86rem; line-height: 1.45; } .ru-list li { margin: 3px 0; }
.ru-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ru-table th, .ru-table td { padding: 4px 8px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ru-table tr:first-child th { color: #d8c9a2; font-weight: 600; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.ru-table th:nth-child(2) { text-align: left; color: #fff; } .ru-table td.pic { text-align: left; white-space: nowrap; } .ru-table td.pic svg { vertical-align: middle; }
.ru-pips { display: flex; gap: 8px; justify-content: center; margin: 4px 0; } .ru-pips span { width: 42px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 800 .85rem var(--display); background: #2b4652; color: #fff; }
.ru-pips span:nth-child(-n+3) { background: var(--blue); } .ru-pips span:nth-child(3) { background: linear-gradient(90deg, var(--blue), var(--blue)); }
.ru-cap { text-align: center; margin: 4px 0 10px; color: #c7d8df; font-size: .88rem; }
.ru-line { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; } .ru-line span { background: #0b171d; border: 1px solid #1d3641; border-radius: 10px; padding: 8px 10px; font-size: .84rem; line-height: 1.4; color: #c7d8df; } .ru-line span > b:first-child { display: block; color: var(--gold); margin-bottom: 2px; }
.ru-six { display: inline-grid; grid-template-columns: repeat(3, 30px); gap: 0 2px; vertical-align: middle; }
@media (max-width: 560px) { .ru-line { grid-template-columns: 1fr; } }

/* ---------- compact captain and fleet cards: every ship with its captain, no scrolling (owner, 2026-11-01) */
.fw-shipcard { width: 430px; max-height: none; overflow: visible; padding: 8px 10px 8px; font-size: .78rem; }
.fw-shipcard .sc-x { top: 2px; right: 6px; font-size: 1.5rem; z-index: 2; }
.sc-head { gap: 8px; padding-bottom: 5px; padding-right: 22px; }
.cp-btn { position: relative; flex: 0 0 auto; border: 0; padding: 0; background: none; cursor: pointer; display: block; }
.cp-btn:hover .cp, .cp-btn:focus-visible .cp { filter: brightness(1.15); }
.cp { position: relative; display: block; } .cp svg { display: block; width: 100%; height: 100%; } .cp svg + svg { position: absolute; left: 0; top: 0; }
.sc-ht { min-width: 0; flex: 1; }
.sc-fleet { border: 0; background: none; padding: 0; cursor: pointer; font: 700 .98rem var(--display); letter-spacing: .03em; text-align: left; } .sc-fleet:hover { text-decoration: underline; }
.sc-cap { margin: 0 0 3px; font-size: .68rem; }
.sc-sum { margin: 3px 0 0; gap: 3px; } .sc-sum span { padding: 1px 3px; font-size: .6rem; }
.fw-shipcard .fl-chips { margin: 0 0 3px; } .fw-shipcard .fl-chips:empty { display: none; }
.sc-ships { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.sc-ship { gap: 6px; padding: 4px 0; align-items: flex-start; }
.sc-pic { flex: 0 0 58px; } .sc-pic svg { width: 58px; }
.sc-ship .cp-btn { margin-top: 2px; }
.sc-name b { font-size: .8rem; } .sc-name small { font-size: .7rem; margin-left: 4px; }
.sc-capn { color: var(--brass-lt); font-size: .68rem; line-height: 1.25; } .sc-capn em { font-style: normal; color: var(--gold); font-weight: 700; margin-left: 3px; text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }
.sc-stats { gap: 1px 7px; font-size: .68rem; margin: 1px 0 2px; }
.sc-rec { font-size: .7rem; margin-top: 1px; } .sc-rec em { color: #ff9f7a; font-style: normal; }
.sc-ship.lead { background: linear-gradient(90deg, rgba(242, 199, 92, .09), transparent); }
.sc-foot { padding-top: 3px; margin-top: 1px; font-size: .68rem; }
@media (max-width: 1060px) { .fw-shipcard.docked { max-width: 560px; } }
@media (max-width: 520px) { .sc-ships { grid-template-columns: 1fr; } .fw-shipcard { width: auto; } }

/* the captain's bio, beside the card */
.fw-bio { position: absolute; z-index: 10; width: 300px; max-width: calc(100% - 16px); padding: 10px 12px; border-radius: 14px; background: linear-gradient(#17323d, #0e1f27); border: 1px solid var(--brass-dk); box-shadow: 0 14px 38px rgba(0, 0, 0, .6); font-size: .78rem; line-height: 1.4; color: #d6e4e9; }
.fw-bio[hidden] { display: none; }
.fw-bio.docked { position: relative; z-index: auto; margin: 6px auto 0; max-width: 560px; width: auto; }
.bio-x { position: absolute; right: 8px; top: 3px; border: 0; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; } .bio-x:hover { color: #fff; }
.bio-head { display: flex; gap: 10px; align-items: center; padding-right: 22px; margin-bottom: 6px; }
.bio-name { font: 700 1.02rem var(--display); letter-spacing: .03em; } .bio-ship { color: var(--brass-lt); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; } .bio-clan { color: #9fb4bd; font-style: italic; font-size: .72rem; }
.bio-text { margin: 4px 0 6px; } .bio-row { margin: 3px 0; } .bio-row b { color: var(--brass-lt); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; display: block; } .bio-row span { color: #c7d8df; }
.bio-motto { margin: 6px 0; font-family: var(--story); font-style: italic; font-size: 1.08em; color: var(--brass-lt); border-left: 2px solid var(--brass-dk); padding-left: 8px; }
.bio-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .bio-links button { border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--gold); border-radius: 999px; padding: 3px 10px; font: 700 .7rem var(--ui); cursor: pointer; } .bio-links button:hover { background: rgba(255, 255, 255, .08); }

/* the lore window */
.lore-tabs { display: flex; gap: 6px; margin: 2px 0 10px; } .lore-tabs button { border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--parch-dim); border-radius: 999px; padding: 5px 14px; font: 700 .8rem var(--ui); cursor: pointer; } .lore-tabs button.on { color: #1b1608; background: var(--brass); border-color: var(--brass); }
.lore-hero { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #0b171d; border: 1px solid #1d3641; }
.lore-title { font: 700 1.3rem var(--display); letter-spacing: .04em; } .lore-tag { color: #b8cdd6; font-style: italic; font-size: .88rem; }
.lore-face { flex: 0 0 auto; }
.rules.ru p { margin: 4px 0; line-height: 1.5; font-size: .88rem; }
.lore-tbl th { text-align: left; color: var(--brass-lt); width: 34%; font-weight: 700; } .lore-tbl td { text-align: left; color: #d6e4e9; }
.lore-h4 { margin: 10px 0 2px; color: var(--brass-lt); font: 700 .88rem var(--display); }
.lore-verse, .lore-motto { font-family: var(--story); font-style: italic; font-size: 1.08em; color: var(--brass-lt); line-height: 1.6; }
.lore-note { color: #9fb4bd; font-size: .8rem; }
.ru-card.clan.hot { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 199, 92, .35); }
.ru-card.clan span { display: block; margin: 2px 0; }

/* the sea will rise: a flashing strip on the board, never a window (owner, 2026-11-01) */
.fw-alert.seaflash { animation: fwseaflash 1.6s ease-in-out infinite alternate; }
@keyframes fwseaflash { from { border-color: #4a6a78; box-shadow: 0 0 0 0 rgba(120, 190, 255, 0), 0 6px 18px rgba(0, 0, 0, .5); } to { border-color: #9fd2ff; box-shadow: 0 0 0 5px rgba(120, 190, 255, .28), 0 0 18px rgba(120, 190, 255, .35), 0 6px 18px rgba(0, 0, 0, .5); } }      /* a light glow that asks to be looked at (owner, 2026-11-03), not an alarm */
@media (prefers-reduced-motion: reduce) { html:not(.motion) .fw-seawarn.flash { animation: none; border-width: 3px; background: rgba(150, 28, 18, .96); }  }
.fx-stage { pointer-events: none; }
.fw-bio { max-height: calc(100% - 16px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #35606f transparent; width: 330px; }
.ru-pips.ph { margin: 10px 0 2px; flex-wrap: wrap; } .ru-pips.ph span, .ru-pips.ph span:nth-child(-n+3) { width: auto; padding: 0 14px; background: #2b4652; color: #e8dcaa; letter-spacing: .14em; } .ru-pips.ph span b { color: #fff; margin-right: 8px; letter-spacing: 0; }

/* ---- owner, 2026-11-02 ---- */
/* more of the screen for the board: a thin header and a thin legend */
body.fw-page.ingame .fw-bar { margin-bottom: 3px; gap: 4px 10px; flex-wrap: nowrap; }
body.fw-page.ingame .fw-title { font-size: 1rem; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .03em; }
body.fw-page.ingame .fw-bar .fw-btn, body.fw-page.ingame .fw-back { min-height: 26px; padding: 3px 9px; font-size: .74rem; }
body.fw-page.ingame .fw-legend { gap: 10px; padding: 1px 8px; }
body.fw-page.ingame .fw-legend .lgi { font-size: .7rem; gap: 3px; }
body.fw-page.ingame .fw-legend svg { max-height: 17px; width: auto; }
.fw-title .of { font-size: 1em; letter-spacing: inherit; }
/* a fleet at anchor in an engagement phase */
.tok .anchored { display: none; pointer-events: none; }
.tok.held .anchored { display: block; }
.tok .anchored ellipse { fill: rgba(255, 214, 90, .1); stroke: #ffd65a; stroke-width: 2.2; stroke-dasharray: 2.5 3.2; stroke-linecap: round; }
.tok .anchored circle { fill: #0c171c; stroke: #ffd65a; stroke-width: 1.4; }
.tok .anchored path { fill: none; stroke: #ffd65a; stroke-width: 1.5; stroke-linecap: round; }
.tok.held .bobber { animation: none; }
/* the End turn button says where the round stands */
.ab-end { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; }
.ab-count { font-size: .7rem; font-weight: 600; opacity: .85; white-space: nowrap; }
/* guns */
.guns { display: inline-flex; flex-wrap: wrap; gap: 2px; align-items: center; vertical-align: middle; }
i.g { display: inline-block; width: 15px; height: 10px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M2 5 L22 3 V6 H27 V11 H22 V13 L2 13 Q0 9 2 5Z' fill='%23ffd65a' stroke='%23201808' stroke-width='1.4'/%3E%3Ccircle cx='9' cy='15' r='4' fill='%238a6d2f' stroke='%23201808' stroke-width='1.2'/%3E%3C/svg%3E"); }
i.g.lost { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M2 5 L22 3 V6 H27 V11 H22 V13 L2 13 Q0 9 2 5Z' fill='%23414a4f' stroke='%23201808' stroke-width='1.4'/%3E%3Cpath d='M6 2 L24 18 M24 2 L6 18' stroke='%23ff5a42' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
i.g.bonus { filter: hue-rotate(-30deg) saturate(1.6) brightness(1.15); }
i.g.empty { opacity: .18; filter: grayscale(1); }
.guns.big i.g { width: 18px; height: 12px; }
.sc-stats .guns { margin-right: 2px; }
/* the flagship's block on its card */
.sc-flag { margin: 6px 0; padding: 6px 8px; border: 1px solid var(--brass-dk); border-radius: 10px; background: rgba(211, 166, 76, .08); font-size: .78rem; }
.fb-row { display: flex; align-items: center; gap: 7px; margin: 2px 0; } .fb-row b { flex: 0 0 52px; color: var(--brass-lt); } .fb-row em { margin-left: auto; font-style: normal; color: var(--muted); }
.rs-list { display: inline-flex; gap: 5px; } .rs { display: inline-flex; } .rs.none { opacity: .22; filter: grayscale(1); }
.fb-note { color: var(--muted); margin-top: 3px; line-height: 1.3; }
.fw-dialog .foot .fw-btn { min-height: 32px; padding: 5px 10px; font-size: .84rem; }
.sunk { opacity: .42; } .lite .sunk { opacity: .36; }

.fw-alert.sticky.seaflash { animation: fwseaflash 1.6s ease-in-out infinite alternate; }
.ach-path { margin: 10px 0 3px; font: 700 .9rem var(--display); color: var(--parch); } .ach-path small { font: 600 .74rem var(--ui); color: var(--muted); }
.ach-t { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 0 5px; border-radius: 6px; margin-right: 6px; color: #15110a; opacity: .55; }
.ach.t1 .ach-t { background: #c98a55; } .ach.t2 .ach-t { background: #c7d0d6; } .ach.t3 .ach-t { background: #f0c85c; } .ach.got .ach-t { opacity: 1; }

/* speed on low-end machines */
.fw-side, .fw-log { contain: layout paint; }
.lite .tok .anchored ellipse { fill: none; } .lite .fw-alert.sticky.seaflash { animation: fwseafade 1s steps(2) infinite; } @keyframes fwseafade { from { opacity: 1; } to { opacity: .35; } }
.lite .sc-flag, .lite .ach { background: rgba(255, 255, 255, .03); }
/* phones and small windows: the thin header wraps instead of squeezing */
@media (max-width: 760px) { body.fw-page.ingame .fw-bar { flex-wrap: wrap; } body.fw-page.ingame .fw-title { flex: 1 1 100%; font-size: .9rem; order: 3; text-align: center; } body.fw-page.ingame .fw-bar-btns { gap: 4px; } body.fw-page.ingame .fw-bar .fw-btn { font-size: .68rem; padding: 3px 7px; } .fw-banner .bt { font-size: .68rem; } .ab-count { flex-basis: 100%; text-align: center; white-space: normal; } .fw-actionbar .fw-btn { min-width: 0; } }
@media (max-height: 480px) and (orientation: landscape) { body.fw-page.ingame .fw-title, body.fw-page.ingame .fw-legend { display: none; } }
@media (max-width: 760px) and (orientation: portrait) { .fw-boardwrap { height: min(calc(100dvh - 110px), 108vw); min-height: 320px; } .fw-board { touch-action: none; } body.fw-page.ingame .fw-bar .fw-bar-btns .fw-btn { font-size: 0; padding: 4px 9px; } body.fw-page.ingame .fw-bar .fw-bar-btns .fw-btn i { font-size: .9rem; } body.fw-page.ingame .fw-bar { flex-wrap: wrap; } .fw-cam button { width: 32px; height: 32px; } }
.fw-dialog.sheet .bt-ship { flex-direction: row; align-items: center; gap: 4px; padding: 1px 0; } .fw-dialog.sheet .bt-ship .die { width: 16px; height: 16px; }
.fw-exp-link { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-left: 8px; }
.fw-exp-tag { font: 800 .6rem var(--ui); letter-spacing: .08em; color: #15110a; background: #ffb340; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.fw-exp-opt { display: block; margin-top: 10px; }
.pf-card { padding: 8px 12px; border: 1px solid var(--brass-dk); border-radius: 10px; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; } .pf-card b { font: 700 1.05rem var(--display); color: var(--brass-lt); } .pf-card small { grid-column: 1 / -1; color: var(--muted); }
.pf-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #2b4652; overflow: hidden; } .pf-bar i { display: block; height: 100%; background: var(--brass-lt); }

/* the guns of a ship: gold for each gun, red and hollow for each one lost (owner, 2026-11-01) */
.gp { fill: #ffd65a; stroke: #05121b; stroke-width: .7; }
.gp.lost { fill: rgba(0, 0, 0, .5); stroke: #ff5a3c; stroke-width: 1; }

/* where each side stands, and the men it has rescued (owner, 2026-11-02) */
.fw-pl .av { position: relative; }
.fw-place { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); min-width: 32px; padding: 1px 5px; border-radius: 9px; border: 1px solid #15110a; font: 900 .84rem/1.2 var(--ui);      /* larger and easier to read (owner, 2026-11-05) */ text-align: center; color: #15110a; white-space: nowrap; }
.fw-place.p1 { background: linear-gradient(#ffe88a, #e0ac1e); } .fw-place.p2 { background: linear-gradient(#f4f6f8, #a9b3bc); } .fw-place.p3 { background: linear-gradient(#e9a86a, #a9662c); } .fw-place.p4 { background: linear-gradient(#d98a68, #8a4526); color: #fff3ea; }
.fw-pl .vprow { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.fw-pl .res { font-weight: 800; font-size: .95rem; color: var(--c); white-space: nowrap; } .fw-pl .res i { font-size: .72rem; margin-right: 3px; } .fw-pl .res small { font: 700 .7rem var(--ui); color: var(--muted); margin-left: 3px; }

/* ---- 2026-11-02, the owner's 27 items ---- */
/* Settings (item 2): one menu with Gameplay, Display, and Sound */
.fw-sndmenu { width: 304px; max-height: calc(100vh - 80px); overflow-y: auto; scrollbar-width: thin; }
.fw-sndmenu .set-title { margin: 0 0 8px; font: 700 1rem var(--display); color: var(--parch); display: flex; align-items: center; gap: 8px; }
.fw-sndmenu h4 { margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(211, 166, 76, .25); }
.fw-sndmenu h4:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.fw-sndmenu .set-row { align-items: flex-start; }
.fw-sndmenu .set-row span { display: flex; flex-direction: column; gap: 2px; }
.fw-sndmenu .set-row small { font-weight: 600; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.fw-sndmenu .set-row.seg { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; font-weight: 700; font-size: .92rem; }
.fw-seg.small button { min-height: 32px; padding: 7px 10px; font-size: .84rem; }
/* Tabletop dice (item 6): the faces a person taps after rolling real dice */
.tt-pad, .tt-row { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.tt-ask, .tt-row > span { font-size: .84rem; font-weight: 700; color: var(--parch); text-align: center; }
.tt-faces { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tt-face { width: 40px; height: 40px; padding: 3px; border-radius: 9px; border: 1px solid #35606f; background: #0d1d25; cursor: pointer; }
.tt-face:hover, .tt-face:focus-visible { border-color: var(--brass-lt); background: #16303b; outline: none; }
.tt-face .die { width: 100%; height: 100%; }
.tt-box { width: 100%; }
.die.tt-blank { opacity: .25; }
/* a parked flagship's line to its settlement (item 10) */
.fl-tether { stroke-width: 2; stroke-dasharray: 3 3; opacity: .8; fill: none; }
.flagtok[data-hold] .fl-tether { display: none; }
/* the wreck of a flagship, broken in two (item 21) */
.wreck .wk-half { filter: saturate(.35) brightness(.7); }
.wreck { animation: none; }
/* the hazards (item 5): a maelstrom in the north, a shipwreck alley in the south */
.hx.kr.kr-maelstrom { fill: url(#gMael); stroke: rgba(130, 228, 222, .55); }
.hx.kr.kr-wrecks { fill: url(#gWreck); stroke: rgba(222, 200, 145, .55); }
/* the legend under the board, bigger and taller (item 25) */
body.fw-page.ingame .fw-legend { gap: 14px; padding: 6px 10px; min-height: 34px; }
body.fw-page.ingame .fw-legend .lgi { font-size: .8rem; gap: 5px; }
body.fw-page.ingame .fw-legend svg { max-height: 24px; }
/* battle columns line up whatever the fleet names (item 14): one line for the name, the full name on hover */
.bt-side h4 { min-height: 1.35em; align-items: center; }
.bt-side h4 > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-stage .st-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* six sides in the standings */
.fw-score.six .fw-pl { padding: 6px 7px; } .fw-score.six .vp { font-size: 1.25rem; } .fw-score.six .st { font-size: .74rem; }
.fw-tabs.four { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
/* The start screen (items 4, 26, 27): game modes, the muster of the fleets, the rules, and the six peoples */
.st-hero { position: relative; }
.st-crest { display: flex; justify-content: center; gap: clamp(4px, 2vw, 18px); margin: -6px auto 8px; flex-wrap: wrap; }
.st-crest .st-ship { display: inline-flex; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 55%, transparent)); }
.st-sec { max-width: 980px; margin: 22px auto 0; text-align: left; }
.st-h { font: 700 1.05rem var(--display); letter-spacing: .08em; color: var(--brass-lt); margin: 0 0 10px; display: flex; align-items: center; gap: 9px; }
.st-h small { font: 600 .74rem var(--ui); letter-spacing: 0; color: var(--muted); }
.st-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.st-mode { display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; padding: 14px 16px 12px; border-radius: 16px; border: 1px solid #2a4a56; color: var(--parch);
  background: linear-gradient(160deg, rgba(27, 74, 92, .55), rgba(6, 18, 24, .85)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .15s, border-color .15s, box-shadow .15s; font: inherit; }
.st-mode:hover { transform: translateY(-2px); border-color: var(--brass-dk); }
.st-mode.on { border-color: var(--brass); box-shadow: 0 0 0 2px rgba(211, 166, 76, .35), 0 10px 26px rgba(0, 0, 0, .45); background: linear-gradient(160deg, rgba(64, 86, 50, .55), rgba(6, 18, 24, .9)); }
.st-mode .md-ships { display: flex; gap: 2px; min-height: 40px; align-items: flex-end; }
.st-mode .md-name { font: 700 1.2rem var(--display); letter-spacing: .04em; color: var(--brass-lt); }
.st-mode .md-line { font-weight: 800; font-size: .92rem; }
.st-mode .md-note { font-size: .82rem; color: #b8cdd5; line-height: 1.4; }
.st-mode .md-n { margin-top: auto; font: 800 .7rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.st-count { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 800; color: var(--parch); }
.st-count .fw-seg { flex: 0 1 300px; }
.st-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.st-slot { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid #23414c; border-left: 5px solid var(--c); }
.st-slot .sl-face { flex: none; }
.st-slot .sl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.st-slot .sl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-slot .sl-top b { font: 700 1.05rem var(--display); min-width: 74px; }
.st-slot .sl-ctl { flex: 0 1 auto; }
.st-slot .sl-ctl button { padding: 6px 9px; min-height: 30px; font-size: .78rem; }
.st-lvl { font-size: .8rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.st-lvl select { background: #0d1d25; color: var(--parch); border: 1px solid #35606f; border-radius: 8px; padding: 5px 6px; font: 700 .8rem var(--ui); }
.st-you { font: 800 .72rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #15110a; background: var(--gold); padding: 3px 8px; border-radius: 999px; }
.sl-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.st-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 3px; border-radius: 999px; border: 1px solid #2c4c58; background: rgba(0, 0, 0, .25); color: #cfe0e6; font: 700 .74rem var(--ui); cursor: pointer; }
.st-chip svg { width: 26px; height: 20px; }
.st-chip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); color: #fff; }
.st-chip.taken { opacity: .45; }
.st-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.st-rule { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid #23414c; }
.st-rule .rl-head { display: flex; align-items: center; gap: 8px; color: var(--brass-lt); margin-bottom: 8px; }
.st-rule p { margin: 8px 0 0; font-size: .8rem; color: #b8cdd5; line-height: 1.4; }
.st-rule .rl-tog { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.st-rule .rl-tog input { width: 18px; height: 18px; accent-color: var(--brass); }
.st-go { margin: 24px auto 4px; text-align: center; }
.st-sum { margin: 10px auto 0; max-width: 70ch; font-size: .84rem; color: var(--muted); }
.st-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 10px; }
.st-people { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(0, 0, 0, .3)); border: 1px solid color-mix(in srgb, var(--c) 40%, #23414c); }
.st-people .sp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-people .sp-txt b { font: 700 1rem var(--display); color: var(--c); }
.st-people .sp-txt span { font-size: .78rem; color: #b8cdd5; line-height: 1.35; }
.st-choose { flex-wrap: wrap; }
.lore-tabs { flex-wrap: wrap; } .lore-tabs button.on { border-color: var(--tc, var(--brass)); color: #fff; }
@media (max-width: 520px) { .st-slots, .st-roster, .st-modes { grid-template-columns: 1fr; } .st-slot .sl-top b { min-width: 0; } }

/* ---------- round 19 (owner, 2026-11-03): what each fleet is doing, lost fleets struck out */
.fl-do { display: flex; align-items: center; gap: 6px; margin-top: 3px; font: 700 .8rem/1.3 var(--ui); color: #cfe0e6; }
.fl-do i.fas { font-size: .78rem; width: 14px; text-align: center; color: var(--brass-lt); }
.fl-do.atk { color: #ffe3a0; } .fl-do.atk i.fas { color: #ffcf5c; } .fl-do.short { color: #ffb0a0; } .fl-do.short i.fas { color: #ff7a6a; }
.fl-do.def { color: #bfe8ff; } .fl-do.def i.fas { color: #7cc8ff; } .fl-do.ready i.fas { color: var(--ok); } .fl-do.done { color: var(--muted); } .fl-do.wait { color: var(--muted); }
.fw-tip .fl-do { margin-top: 4px; } .sc-do { margin: 6px 0 2px; }
.fl-item.gone { opacity: .62; } .fl-item.gone .fl-head { cursor: default; } .fl-item.gone s { text-decoration-thickness: 2px; text-decoration-color: rgba(255, 140, 120, .85); }
/* the action camera is gliding: the board ignores the pointer until it lands (owner, 2026-11-03) */
.fw-camlock .fw-stage::before { content: ""; position: absolute; inset: 0; z-index: 3; }      /* round 51: the board ignores the hand while the game moves the camera. A cover over it (under the banner, the alerts, and the camera buttons), not pointer-events on the board: pointer-events is inherited, so switching it restyled all of the board's ~4,000 elements at every camera move (measured on a slowed phone: about 1 s each) */ .rd-at { font: 600 .8em var(--ui); color: var(--muted); }

/* ---------- type (owner, 2026-11-03: "the fonts are too small and plain; make the text appealing, elegant, and easy to read, with size, weight, and underlines that mark what
   belongs together, and each faction its own style"). Titles in Cinzel Decorative, headings in Cinzel with a brass underline, verse and lore in IM Fell English, the rest in
   Nunito Sans one step larger, and every faction's name in its own face. */
.fw-html { font-size: 106.25%; }
.fw-title { font-family: var(--title); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: .04em; }
.fw-modal h2, .fw-dialog h2, .fw-h2 { font-family: var(--title); font-weight: 700; letter-spacing: .03em; }
.fw-card h3, .fw-modal h3, .rules h3, .rules h4, .fw-modal h4 { font-family: var(--display); font-weight: 700; letter-spacing: .06em; padding-bottom: 3px; background: linear-gradient(90deg, var(--brass), rgba(211, 166, 76, 0)) no-repeat left bottom / 70% 2px; }
.fw-card h3 { font-size: 1.08rem; color: var(--brass-lt); }
.fw .fw-btn, .fw-modal .fw-btn { letter-spacing: .02em; }
.fw-btn.go { font: 900 1.25rem/1 var(--display); letter-spacing: .08em; padding: 16px 34px; text-transform: uppercase; }
.fw-turncard .tt { font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: .03em; }
.fw-pl .vp { font-family: var(--display); font-weight: 900; }
.fw-log .rd { font-family: var(--display); letter-spacing: .08em; }
.fw-log .l { font-size: .84rem; }
.fn { font-weight: 700; }
/* the six faction fonts, sized so the names look the same size (owner, 2026-11-05: Cyborgs and Wolves read larger, Frogs smaller). Each factor is 58 over the square root of the
   font's mean height (x and capital) times its width per letter, measured at 100 px in the browser: Uncial 68.4, Pirata 51.8, Fell SC 56.4, Orbitron 66.2, Cormorant 44.2 (held at 1.2), Black Ops 62.4 */
.ff0 { font-family: 'Uncial Antiqua', var(--display); font-weight: 400; --ffk: .85; letter-spacing: .01em; }
.ff1 { font-family: 'Pirata One', var(--display); font-weight: 400; --ffk: 1.12; letter-spacing: .03em; }
.ff1.fn, b.ff1, span.ff1 { display: inline-block; }
/* the size factor multiplies whatever size the name's place gives it (--fs, set there), or the size of the text round it */
.ff0.ff0, .ff1.ff1, .ff2.ff2, .ff3.ff3, .ff4.ff4, .ff5.ff5 { font-size: calc(var(--fs, 1em) * var(--ffk, 1)); }
.ff1::first-letter { font-family: 'Cinzel Decorative', 'Cinzel', serif; font-weight: 900; font-size: .9em; letter-spacing: .02em; }      /* Pirata One's capital F reads as a small f: the initial is a clear capital (owner, 2026-11-05) */
.ff2 { font-family: 'IM Fell English SC', var(--display); font-weight: 400; --ffk: 1.03; }
.ff3 { font-family: 'Orbitron', var(--ui); font-weight: 800; --ffk: .84; letter-spacing: .03em; }
.ff4 { font-family: 'Cormorant Garamond', var(--display); font-style: italic; font-weight: 700; --ffk: 1.2; }
.ff5 { font-family: 'Black Ops One', var(--display); font-weight: 400; --ffk: .93; letter-spacing: .03em; }
.fw-log .fn, .fw-alert .fn, .fw-tip .fn { font-size: 1em; }

/* ---------- the start screen's new scene (owner, 2026-11-03: all six factions and a feel of the game) and the summary under Set Sail */
.st-scene { position: relative; width: min(1200px, 100%); height: clamp(300px, 42vw, 500px); margin: -6px auto 12px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 2px var(--brass-dk), 0 18px 40px rgba(0, 0, 0, .55); }
.st-scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st-scene-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; text-align: center; background: linear-gradient(180deg, rgba(5, 12, 16, 0), rgba(5, 12, 16, .82) 65%); pointer-events: none; }
.st-kicker { display: block; font: 800 .82rem var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-lt); text-shadow: 0 2px 6px #000; }
.fw-start .st-title { margin: 4px 0 0; font: 900 clamp(1.9rem, 4.4vw, 3.3rem)/1.05 var(--title); letter-spacing: .03em; color: #fff4d8; text-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 0 24px rgba(242, 199, 92, .35); }
.fw-start .st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fw-start .verse { font-size: 1.12rem; max-width: 52ch; }
.fw-start .lede { font-size: 1.04rem; }
.st-h { font: 800 1.2rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding-bottom: 5px; background: linear-gradient(90deg, var(--brass), rgba(211, 166, 76, 0)) no-repeat left bottom / 60% 2px; }
.st-go { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.st-sum { margin: 0 auto; max-width: 820px; text-align: center; color: var(--parch); }
.ss-mode { font: 900 clamp(1.15rem, 2.4vw, 1.55rem) var(--title); letter-spacing: .05em; color: var(--brass-lt); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.ss-fleets { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; margin: 8px 0 6px; }
.ss-chip { display: inline-flex; flex-direction: column; align-items: center; padding: 6px 12px 5px; border-radius: 12px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 14%, #0a1820); min-width: 84px; }
.ss-chip b { color: var(--c); --fs: 1.12rem; font-size: var(--fs); line-height: 1.1; } .ss-chip small { font: 800 .72rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ss-vs { font: italic 700 .95rem var(--story); color: var(--brass); padding: 0 2px; }
.ss-who { font: 600 .98rem var(--ui); color: #cfe0e6; }
@media (max-width: 560px) { .st-scene { height: 330px; border-radius: 12px; } .ss-chip { min-width: 70px; padding: 4px 8px; } }
.go-xp { text-align: center; margin: 8px 0 0; font: 700 1rem var(--display); color: var(--gold); letter-spacing: .03em; } .go-xp.practice { color: var(--ember-lt); font: 600 .9rem var(--ui); }

/* round 22 (owner, 2026-11-03): the menu verse in two columns of four lines on a wide screen, one column on a phone; the lore's homelands as verse */
.fw-start .st-verse { max-width: 760px; columns: 2 300px; column-gap: 36px; text-align: center; display: block; width: fit-content; }      /* centered (owner, 2026-11-04) */
.lore-poem { margin: 0 0 12px; padding-left: 12px; border-left: 2px solid rgba(217, 197, 138, .25); }
/* the three names of the game (owner, 2026-11-03): one game called three things in three corners of the world, so each name stands on its own, the home name
   largest, all three in the title face (owner, 2026-11-04), set apart by small brass compass points; a shorter bar */
.fw-title { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 12px; line-height: 1.1; }
.fw-title .nm { font-family: var(--title); font-style: normal; font-weight: 900; font-size: .85em; letter-spacing: .06em; color: var(--parch); white-space: nowrap; }      /* the same face and the same size as Fairways (owner, 2026-11-04: all three names one size) */
.fw-title .nm-main { font-family: var(--title); font-style: normal; font-weight: 900; font-size: .85em; white-space: nowrap; letter-spacing: .06em; color: var(--parch); }
.fw-title .nm-sep { width: 7px; height: 7px; flex: 0 0 7px; transform: rotate(45deg); background: var(--brass); box-shadow: 0 0 0 2px rgba(211, 166, 76, .22); }
.fw-bar { margin-bottom: 4px; } .fw-bar .fw-btn { min-height: 34px; padding: 6px 13px; }
body.fw-page.ingame .fw-title { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0 8px; }
body.fw-page.ingame .fw-title .nm-sep { width: 5px; height: 5px; flex-basis: 5px; }
@media (max-width: 760px) { .fw-title .nm, .fw-title .nm-main { font-size: .85em; } .fw-title { gap: 2px 9px; } }
/* ---------- round 22 board (owner, 2026-11-03) */
/* the table under the chart: dark wooden planks, lit from the middle */
/* each plank about 210 px wide (owner, 2026-11-05, third list: 340 was "a bit too large", the chart should look like a bigger map on the table; they were 160 before that), with a dark seam between them and a long grain that runs the length of the plank */
.fw-boardwrap { background: radial-gradient(ellipse at 50% 42%, rgba(255, 214, 160, .12), rgba(0, 0, 0, .5) 88%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 207px, rgba(18, 8, 2, .7) 207px 210px), repeating-linear-gradient(90.6deg, rgba(40, 20, 6, 0) 0 9px, rgba(40, 20, 6, .22) 9px 10px, rgba(40, 20, 6, 0) 10px 23px, rgba(255, 220, 170, .05) 23px 24px, rgba(40, 20, 6, 0) 24px 41px, rgba(40, 20, 6, .14) 41px 42px), repeating-linear-gradient(90deg, #6b4423 0 210px, #5b391c 210px 420px, #714729 420px 630px); }
/* a sunk hex is sunk, hazard or not (it outranks the hazard colors: a sunk Maelstrom or Shipwreck Alley hex stayed painted, in the game and in Review) */
.hexin .hx.gone, .hexin .hx.kr.gone { fill: #04100f; stroke: rgba(255, 255, 255, .04); }
g.isgone .hz-deco, g.isgone .hz-bub, g.isgone .hz-fog { display: none; }
/* the buildings */
.bd-win { fill: #ffd36b; } .bd-lamp { fill: #ffe9a0; }
.bd-smoke circle { fill: #ece6da; opacity: .4; } .bd-glow { fill: #ffd36b; }
/* the buildings hold still (owner, 2026-11-04: no animation on the settlements; each looping part also cost phones a repaint of the board every frame) */
/* the hazards: every hex of a hazard moves (owner, 2026-11-05; on 11-04 only the middle one did), each on its own clock (set in fairways-board-art.js). Off on the calm
   board, while the camera moves, and for reduce motion. */
.hz-arm { transform-box: fill-box; transform-origin: 50% 100%; animation: hzarm 3.2s ease-in-out infinite alternate; } @keyframes hzarm { 0% { --a-r: -12deg; --a-sy: .82; } 100% { --a-r: 10deg; --a-sy: 1.05; } }
.hz-swirl { transform-box: view-box; transform-origin: 0 0; animation: hzspin 12s linear infinite reverse; } @keyframes hzspin { to { --a-r: 360deg; } }
.hz-fog { animation: hzfog 12s ease-in-out infinite alternate; } .hz-fog.b { animation-name: hzfog2; }
@keyframes hzfog { 0% { --a-x: -6px; --a-o: .55; } 50% { --a-o: 1; } 100% { --a-x: 7px; --a-o: .7; } }
@keyframes hzfog2 { 0% { --a-x: 5px; --a-o: .9; } 100% { --a-x: -8px; --a-o: .45; } }
.hz-bub circle { fill: none; stroke: rgba(230, 210, 255, .55); stroke-width: .8; }
.hz-bub { animation: hzbub 4s ease-in infinite; } @keyframes hzbub { 0% { --a-y: 4px; --a-o: 0; } 30% { --a-o: 1; } 100% { --a-y: -8px; --a-o: 0; } }
/* the big pictures in the middle hexes are redrawn with every render; they keep the page's clock (--hzt, set in fairways.js) so a redraw never jumps them back */
#lObj .kr-arms, #lObj .hz-fog { animation-delay: var(--hzt, 0s) !important; }
/* swells on the open sea (owner, 2026-11-05): a crest rises, runs a few pixels with the wind, and falls back */
.sea-swell .sw { opacity: 0; animation: seaswell 9s ease-in-out infinite; }
@keyframes seaswell { 0% { --a-x: -5px; --a-y: 1.2px; --a-o: 0; } 30% { --a-o: .95; } 65% { --a-o: .75; } 100% { --a-x: 6px; --a-y: -1px; --a-o: 0; } }
g.isgone .sea-swell { display: none; }
/* the compass card settles, swinging a few degrees either way, and its dotted ring turns slowly (owner, 2026-11-05) */
/* the compass needle swings past north and settles, then the ship rolls and it swings again (owner, 2026-11-05: it should move like a real compass) */
.fw-rose .rose-needle { transform-box: view-box; transform-origin: 0 0; animation: roseneedle 11s ease-in-out infinite; }
@keyframes roseneedle { 0% { --a-r: -16deg; } 12% { --a-r: 11deg; } 24% { --a-r: -7deg; } 35% { --a-r: 4deg; } 46% { --a-r: -2deg; } 58% { --a-r: 1deg; } 70% { --a-r: -1deg; } 80% { --a-r: 6deg; } 90% { --a-r: -9deg; } 100% { --a-r: -16deg; } }

body.fw-moving .hz-arm, body.fw-moving .hz-swirl, body.fw-moving .hz-fog, body.fw-moving .hz-bub, body.fw-moving .sea-swell .sw, body.fw-moving .fw-rose .rose-needle { animation-play-state: paused; }
.lite .hz-bub { display: none; } .lite .sea-swell { display: none; } .lite .sea-swell .sw { opacity: 0; }
@media (prefers-reduced-motion: reduce) { html:not(.motion) .hz-arm, html:not(.motion) .hz-swirl, html:not(.motion) .hz-fog, html:not(.motion) .hz-bub, html:not(.motion) .sea-swell .sw, html:not(.motion) .fw-rose .rose-needle { animation: none; } html:not(.motion) .sea-swell { display: none; }  }
/* THE CALM BOARD STOPS EVERY LOOPING ANIMATION ON THE BOARD (owner, 2026-11-05: so every phone runs the game smoothly). One rule for the whole board, so nothing added later
   can slip past it: no animation in any layer of the board. Kept: the short one-time effects that show what just happened (a hex of the sea sinking, a flagship going
   down, and the battle effects in the effects layer), which end by themselves. */
html.lite #fw-board *:not(#lFx):not(#lFx *):not(.sinking):not(.sinking *), html.lite #fw-pieces *:not(.sinking):not(.sinking *) { animation: none !important; }


/* ---------- the battle window (owner, 2026-11-03: dice off the window, text missing, dice far smaller than before, and too wide on a computer). One set of rules for it:
   500 px wide, two fleets side by side, each under its captain, every ship with its icon and captain, dice 26 px that wrap onto a second line instead of running off. */
.fw-dialog.bt-win .fw-body { --px: 12px; padding: 6px var(--px) 0; }
.fw-dialog.bt-win .bt-h { display: none; }          /* the window's top bar already says "Battle: Fort F3, engagement 1 of 4" */
.fw-dialog.bt-win .bt-who { display: none; }
.fw-dialog.bt-win .bt-assist { font-size: .74rem; margin: 2px 0 4px; padding: 4px 8px; }
.fw-dialog.bt-win .bt-track { margin: 2px 0 4px; } .fw-dialog.bt-win .bt-pip { width: 30px; height: 9px; }
.fw-dialog.bt-win .fw-bt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.fw-dialog.bt-win .bt-side { padding: 5px 7px; min-width: 0; border-radius: 10px; }
.fw-dialog.bt-win .bt-head { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; min-width: 0; }
.fw-dialog.bt-win .bt-head .cp { flex: none; }
.fw-dialog.bt-win .bt-fn { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.fw-dialog.bt-win .bt-fn b, .fw-dialog.bt-win .bt-fn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-dialog.bt-win .bt-fn b { font-size: .8rem; } .fw-dialog.bt-win .bt-fn small { font-size: .68rem; color: var(--muted); }
.fw-dialog.bt-win .bt-total { flex: none; font: 700 1.5rem/1 var(--display); color: #fff; min-width: 1ch; text-align: right; }
.fw-dialog.bt-win .bt-ship { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; padding: 2px 0; border-top: 1px solid #1d3641; min-width: 0; }
.fw-dialog.bt-win .bt-ship .bi { flex: none; }
.fw-dialog.bt-win .bt-ship .nm { flex: 1 1 64px; min-width: 0; width: auto; display: flex; flex-direction: column; line-height: 1.1; }
.fw-dialog.bt-win .bt-ship .nm b { font-size: .74rem; color: #e8f1f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-dialog.bt-win .bt-ship .nm small { display: block; font-size: .64rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-dialog.bt-win .bt-ship .nm small.ally { display: inline-block; align-self: flex-start; padding: 0 4px; border-radius: 4px; background: #ffd65a; color: #15110a; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.fw-dialog.bt-win .bt-ship .dice { flex: 0 1 auto; max-width: 100%; margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.fw-dialog.bt-win .bt-ship .die { width: 26px; height: 26px; }
.fw-dialog.bt-win .bt-ship .nodie { width: 26px; } .fw-dialog.bt-win .nodice { color: #9ab; font-size: .7rem; }
.fw-dialog.bt-win .bt-ship .tag { flex: 1 1 100%; text-align: right; font-size: .66rem; }
.fw-dialog.bt-win .bt-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px; padding: 3px 5px; margin: 2px 0 4px; }
.fw-dialog.bt-win .bt-stage .st-col { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 6px; padding: 3px 6px; min-height: 0; text-align: left; }
.fw-dialog.bt-win .bt-stage .st-name { grid-column: 1; font-size: .66rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-dialog.bt-win .bt-stage .st-who { grid-column: 1; font-size: .74rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-dialog.bt-win .bt-stage .st-note { grid-column: 1; font-size: .64rem; margin: 0; }
.fw-dialog.bt-win .bt-stage .st-die { grid-column: 2; grid-row: 1 / span 3; min-height: 0; margin: 0; }
.fw-dialog.bt-win .bt-stage .die, .fw-dialog.bt-win .bt-stage .qdie { width: 40px; height: 40px; font-size: 1.2rem; }
.fw-dialog.bt-win .st-vs { font-size: .74rem; }
.fw-dialog.bt-win .bt-stage.sk { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .fw-dialog.bt-win .bt-stage.sk .st-col { display: flex; flex-direction: column; text-align: center; }
.fw-dialog.bt-win .bt-stage.sk .st-die.big .die, .fw-dialog.bt-win .bt-stage.sk .qdie { width: 46px; height: 46px; } .fw-dialog.bt-win .bt-stage .st-note2 { font-size: .72rem; }
.fw-dialog.bt-win .bt-duels.live { max-height: 3.9em; overflow-y: auto; font-size: .72rem; margin: 3px 0 0; }
.fw-dialog.bt-win .bt-note { margin: 3px 0 0; font-size: .84rem; } .fw-dialog.bt-win .bt-fx { margin-top: 4px; } .fw-dialog.bt-win .bt-fx div { padding: 3px 8px; font-size: .74rem; }
.fw-dialog.bt-win .foot { margin-top: 6px; } .fw-dialog.bt-win .foot .fw-btn { min-height: 32px; padding: 5px 12px; font-size: .84rem; }
/* phone: the same window as a sheet, a little smaller */
.fw-dialog.sheet.bt-win .bt-ship .die { width: 22px; height: 22px; } .fw-dialog.sheet.bt-win .bt-ship .bi { width: 20px; height: 17px; }
.fw-dialog.sheet.bt-win .bt-head .cp { transform: scale(.8); margin: -3px; } .fw-dialog.sheet.bt-win .bt-total { font-size: 1.2rem; }
.fw-dialog.sheet.bt-win .bt-ship { flex-direction: row; }
/* the docked dice windows (an approach, a hazard) on a computer: as compact as on a phone (owner, 2026-11-03: the approach window had room to spare and covered the board) */
.fw-dialog.rd-win .fw-body { --px: 12px; padding: 6px var(--px) 0; }
.fw-dialog.rd-win h2 { font-size: 1rem; margin-bottom: 2px; } .fw-dialog.rd-win h2 .rd-at { font-size: .72em; }
.fw-dialog.rd-win .sub { font-size: .8rem; line-height: 1.35; margin-bottom: 2px; }
.fw-dialog.rd-win .rd-more { display: none; }
.fw-dialog.rd-win .rollbox { gap: 2px; padding: 0; }
.fw-dialog.rd-win .rd-group { display: flex; align-items: center; justify-content: center; gap: 10px; } .fw-dialog.rd-win .rd-lab { margin-bottom: 0; font-size: .84rem; }
.fw-dialog.rd-win .rollbox .die { width: 42px; height: 42px; }
.fw-dialog.rd-win .rollbox .bt-note { min-height: 0; margin: 2px 0 0; font-size: .84rem; }
.fw-dialog.rd-win .foot { margin-top: 4px; } .fw-dialog.rd-win .foot .fw-btn { min-height: 32px; padding: 5px 14px; }
/* the side panel's faction cards (owner, 2026-11-03): the face sits a little higher, clear of the place badge under it, and the VP and rescued row a little lower, clear of
   "Computer" or "Player" */
.fw-pl .av { align-self: start; margin-top: -3px; padding-bottom: 7px; }
.fw-pl .fw-place { bottom: -9px; }
.fw-pl .vprow { margin-top: 4px; }

/* the round and phase banners (owner, 2026-11-03): a medallion, the round in large type, the phase pips, a line of verse, and who moves in what order */
.fw-roundflash { top: 46%; min-width: min(420px, 92%); max-width: 94%; padding: 26px 34px 16px; border-radius: 18px; background: radial-gradient(ellipse at 50% -10%, rgba(211, 166, 76, .32), rgba(211, 166, 76, 0) 62%), linear-gradient(#10242d, #071319);
  box-shadow: 0 0 0 4px rgba(6, 18, 24, .7), 0 0 0 5px rgba(211, 166, 76, .5), 0 22px 60px rgba(0, 0, 0, .75); animation: rfin .6s cubic-bezier(.2, 1.35, .4, 1), rfout .45s ease-in var(--out, 3150ms) forwards; }
@keyframes rfin { from { transform: translate(-50%, -50%) scale(.55, .2); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
@keyframes rfout { to { transform: translate(-50%, -64%); opacity: 0; } }
.fw-roundflash .rf-orn { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #f0d48a, #a77a2c); border: 2px solid #06121a; color: #15110a; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
.fw-roundflash .rf-kick { font: 700 .74rem var(--ui); letter-spacing: .32em; text-transform: uppercase; color: var(--brass-lt); margin: 0; }
.fw-roundflash .rf-big { font: 900 2.4rem/1.05 var(--title); letter-spacing: .04em; color: var(--parch); text-shadow: 0 3px 0 rgba(0, 0, 0, .5); margin: 2px 0 6px; } .fw-roundflash .rf-big small { font: 700 .9rem var(--display); color: var(--brass-lt); letter-spacing: .1em; }
.fw-roundflash .rf-pips { display: flex; gap: 6px; justify-content: center; margin: 0 0 8px; } .fw-roundflash .rf-pips span { width: 30px; height: 8px; border-radius: 4px; background: #24404b; }
.fw-roundflash .rf-pips span.done { background: var(--brass); } .fw-roundflash .rf-pips span.now { background: var(--brass-lt); box-shadow: 0 0 10px rgba(240, 200, 92, .7); }
.fw-roundflash .rf-line { font: italic 1.02rem/1.35 var(--story); color: #e8dcb4; letter-spacing: 0; margin: 0 auto 10px; max-width: 34ch; }
.fw-roundflash .rf-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; font-size: 1rem; letter-spacing: 0; margin: 0; }
.fw-roundflash .rf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 999px; border: 1px solid var(--c); background: rgba(0, 0, 0, .25); font-size: .82rem; }
.fw-roundflash .rf-chip b { color: var(--c); } .fw-roundflash .rf-chip small { font: 700 .62rem var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--brass-lt); }
.fw-roundflash .rf-chip.first { background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); }
.fw-roundflash .rf-then { font-size: .6rem; color: var(--muted); }
.fw-roundflash div { margin-top: 0; }
@media (max-width: 760px) { .fw-roundflash { padding: 22px 16px 12px; } .fw-roundflash .rf-big { font-size: 1.7rem; } .fw-roundflash .rf-line { font-size: .88rem; } .fw-roundflash .rf-chip { font-size: .72rem; } }
.lite .fw-roundflash { animation: none; }

/* the end of a game (owner, 2026-11-03: make it feel like a win): a crest with the winner's captain and a crown, a ribbon, rays in the winner's color, and a podium */
.fw-dialog.go-win .st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.go-hero { position: relative; text-align: center; padding: 18px 10px 6px; margin: -4px calc(-1 * var(--px, 18px)) 6px; overflow: hidden; border-radius: 12px 12px 0 0; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c, #d3a64c) 38%, transparent), transparent 70%); }
.go-hero h2 { position: relative; font-size: 1.35rem; margin: 6px 0 2px; } .go-hero .sub { position: relative; margin: 0; }
.go-rays { position: absolute; left: 50%; top: 58px; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: repeating-conic-gradient(color-mix(in srgb, var(--c, #d3a64c) 30%, transparent) 0 9deg, transparent 9deg 22deg); border-radius: 50%; opacity: .55; animation: goSpin 24s linear infinite; mask-image: radial-gradient(circle, #000 18%, transparent 62%); -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%); }
.go-hero.lost .go-rays, .go-hero.draw .go-rays { animation: none; opacity: .25; }
@keyframes goSpin { to { transform: rotate(360deg); } }
.go-crest { position: relative; display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #20404c, #071319); border: 3px solid var(--c, var(--brass)); box-shadow: 0 0 0 4px rgba(6, 18, 24, .8), 0 0 30px color-mix(in srgb, var(--c, #d3a64c) 60%, transparent); animation: goPop .7s cubic-bezier(.2, 1.5, .4, 1); }
.go-crest.draw { font-size: 2.2rem; color: var(--brass-lt); }
.go-crown { position: absolute; top: -20px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 1.7rem; color: #ffd65a; text-shadow: 0 2px 0 #6b4a12, 0 0 12px rgba(255, 214, 90, .8); animation: goCrown 1.4s ease-in-out infinite alternate; }
@keyframes goPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes goCrown { to { transform: translateX(-50%) rotate(8deg) translateY(-3px); } }
.go-ribbon { position: relative; margin: -12px auto 0; width: max-content; padding: 4px 30px; background: linear-gradient(var(--cl, #f0d48a), var(--c, #a77a2c)); color: #08131a; font: 900 1.25rem/1.2 var(--title); letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.go-hero.lost .go-ribbon { background: linear-gradient(#8a8f94, #4b5157); color: #f3ead0; } .go-hero.draw .go-ribbon { background: linear-gradient(#f0d48a, #a77a2c); }
.go-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin: 8px 0 4px; align-items: end; }
.go-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 4px 8px; border-radius: 12px 12px 6px 6px; background: linear-gradient(color-mix(in srgb, var(--c) 22%, #0b171d), #0b171d); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); text-align: center; min-width: 0; }
.go-step.p1 { padding-top: 24px; border-width: 2px; box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); } .go-step.me { outline: 2px dashed rgba(255, 255, 255, .35); outline-offset: 2px; }
.go-place { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); min-width: 46px; padding: 1px 10px; border-radius: 10px; border: 1px solid #15110a; font: 900 .98rem/1.35 var(--ui); color: #15110a; background: linear-gradient(#5d6970, #39434a); color: #e8f1f5; }
.go-step.p1 .go-place { background: linear-gradient(#ffe88a, #e0ac1e); color: #15110a; } .go-step.p2 .go-place { background: linear-gradient(#f4f6f8, #a9b3bc); color: #15110a; } .go-step.p3 .go-place { background: linear-gradient(#e9a86a, #a9662c); color: #15110a; }
.go-step b { --fs: 1rem; font-size: var(--fs); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c); }
.go-vp { font: 900 1.5rem/1 var(--display); color: #fff; } .go-vp small { font: 700 .66rem var(--ui); color: var(--muted); margin-left: 3px; } .go-step.p1 .go-vp { font-size: 1.9rem; color: #ffe08a; }
.go-st { font-size: .78rem; color: #c9d8df; }
/* the podium for the first three (owner, 2026-11-05): second, first, and third, each on a numbered plinth, the winner's tallest, gold, silver, and bronze */
.go-podium3 { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 18px 0 6px; }
.go-podium3 .go-step { flex: 0 1 190px; padding-bottom: 0; overflow: hidden; }
.go-step.pod .go-plinth { align-self: stretch; margin-top: 8px; display: grid; place-items: center; font: 900 1.6rem var(--display); color: rgba(21, 17, 10, .75); border-top: 1px solid rgba(0, 0, 0, .35); }
.go-step.pod1 { padding-top: 30px; border-width: 2px; } .go-step.pod1 .go-plinth { height: 64px; background: linear-gradient(#ffe88a, #c8961a); }
.go-step.pod2 .go-plinth { height: 44px; background: linear-gradient(#f4f6f8, #98a3ad); } .go-step.pod3 .go-plinth { height: 30px; background: linear-gradient(#e9a86a, #9a5a24); }
.go-step.pod2 { border-color: #cfd6dc; } .go-step.pod3 { border-color: #c98a50; } .go-step.pod1 { border-color: #ffd65a; box-shadow: 0 0 22px rgba(255, 214, 90, .35); }
.go-podium3 .go-vp { font-size: 1.8rem; } .go-podium3 .pod1 .go-vp { font-size: 2.3rem; }
.go-rest { margin-top: 12px; }
/* the round-by-round tabs */
.rr-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; } .rr-tabs button { font: 800 .86rem var(--ui); color: #c9d8df; background: #0b171d; border: 1px solid #2a4552; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.rr-tabs button[aria-selected="true"] { color: #15110a; background: linear-gradient(#ffe88a, #e0ac1e); border-color: #15110a; }
/* the Results button: gold, with a shine that sweeps across it */
.fw-btn.ab-trophy { position: relative; overflow: hidden; background: linear-gradient(#ffe08a, #d3a64c); color: #15110a; border-color: #8a6d2f; font-weight: 900; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, #d3a64c) 70%, transparent), 0 0 18px color-mix(in srgb, var(--c, #d3a64c) 55%, transparent); }
.fw-btn.ab-trophy::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); animation: goShine 2.6s ease-in-out infinite; }
.fw-btn.ab-trophy i { color: #6b4a12; }
@keyframes goShine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.lite .go-rays, .lite .go-crown, .lite .fw-btn.ab-trophy::after { animation: none; }
@media (prefers-reduced-motion: reduce) { html:not(.motion) .go-rays, html:not(.motion) .go-crown, html:not(.motion) .go-crest, html:not(.motion) .fw-btn.ab-trophy::after { animation: none; }  }

/* setup: Shuffle and the table's average rank (owner, 2026-11-03) */
.st-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 8px; }
.st-avg { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--brass-dk); background: rgba(211, 166, 76, .1); font-size: .86rem; color: #e8dcb4; }
.st-avg i { color: var(--brass-lt); } .st-avg b { font: 800 1rem var(--display); color: #fff; } .st-avg em { font-style: normal; font-weight: 800; color: var(--brass-lt); }
.st-r { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 8px; background: #0b171d; border: 1px solid #1d3641; font: 800 .74rem/1.6 var(--ui); color: #cfe0e8; }
/* the captain card (owner, 2026-11-03: text ran off the card): the two columns of ships never grow past half the card, and every line inside them wraps */
.sc-ships { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-ship { min-width: 0; } .sc-ship .sc-pic { flex: none; } .sc-ship .sc-pic svg { max-width: 46px; height: auto; } .sc-ship .cp-btn { flex: none; }
.sc-info { min-width: 0; overflow-wrap: anywhere; }
.sc-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; } .sc-name small { margin-left: 0; }
.sc-capn, .sc-rec, .sc-cap, .sc-do, .fb-note { overflow-wrap: anywhere; }
.sc-stats { min-width: 0; } .sc-stats .guns { max-width: 100%; }
.sc-head, .sc-ht { min-width: 0; } .sc-sum { flex-wrap: wrap; }
.fb-row { flex-wrap: wrap; } .fb-row em { margin-left: auto; }
@media (max-width: 520px) { .sc-ships { grid-template-columns: minmax(0, 1fr); } }
.go-podium.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .go-podium.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .go-podium.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.go-podium.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .go-podium.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.go-podium.n5 .go-st, .go-podium.n6 .go-st { display: none; }
@media (max-width: 560px) { .go-podium.n4, .go-podium.n5, .go-podium.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- the top buttons on a phone (owner, 2026-11-04): Settings, Rules, Lore, Stats, and New game in ONE row; Settings shows only its gear */
@media (max-width: 760px) { .fw-bar-btns { flex-wrap: nowrap; gap: 4px; flex: 1 1 100%; justify-content: center; } .fw-bar-btns .fw-btn { padding: 6px 8px; font-size: .7rem; white-space: nowrap; min-height: 34px; }
  #fw-sound .lbl { display: none; } #fw-sound { padding-left: 11px; padding-right: 11px; } .fw-bar-btns .fw-btn i { margin-right: 3px; } #fw-sound i { margin-right: 0; } }
@media (max-width: 380px) { .fw-bar-btns .fw-btn { padding: 5px 6px; font-size: .66rem; } .fw-bar-btns { gap: 3px; } }
/* the dice windows' groups; with three or more (the roll for seats) a phone shows them in a grid, every die in view (owner, 2026-11-04: on a phone the first two
   stood side by side and the rest each on a row of its own) */
.rd-groups { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; width: 100%; }
/* three or more factions roll in a grid, the same number in every row, on a computer as on a phone (owner, 2026-11-04): six as 2 rows of 3, four as 2 of 2 */
.rd-groups.many { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px 22px; }
.fw-dialog .rd-groups.many .rd-group { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.fw-dialog .rd-groups.many .rd-lab { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .rd-groups.many { gap: 10px 6px; }
  .fw-dialog .rd-groups.many .rd-lab { font-size: .74rem; }
  .fw-dialog .rd-groups.many .die { width: 40px; height: 40px; } }

/* The Settlements card folds to its title (owner, 2026-11-04) */
.fold-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.fold-btn span { flex: 1; }
.fold-btn i { font-size: .8rem; color: var(--brass); }
.fold-btn:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 3px; border-radius: 4px; }
.fw-card.folded h3 { margin-bottom: 0; }

/* ---- round 26 (owner, 2026-11-04) ---- */
/* the round and phase banner sits over every other layer of the board, the notices on the left included */
.fw-roundflash { z-index: 50; }
/* the sea's news at the foot of a new round's banner */
.fw-roundflash .rf-sea { display: flex; align-items: center; gap: 12px; margin: 12px -14px 0; padding: 9px 14px; border-radius: 12px; text-align: left; font: 600 .86rem/1.3 var(--ui); letter-spacing: 0; }
.fw-roundflash .rf-sea > i { font-size: 1.5rem; flex: 0 0 auto; }
.fw-roundflash .rf-sea b { display: block; font: 800 .98rem/1.2 var(--display); letter-spacing: .03em; }
.fw-roundflash .rf-sea span { display: block; margin-top: 1px; }
.fw-roundflash .rf-sea.fell { background: linear-gradient(100deg, rgba(120, 18, 14, .62), rgba(24, 8, 10, .82)); border: 1px solid #c4473a; color: #ffd8cf; box-shadow: 0 0 22px rgba(196, 71, 58, .35), inset 0 0 18px rgba(0, 0, 0, .5); }
.fw-roundflash .rf-sea.fell > i { color: #ff7a62; text-shadow: 0 0 10px rgba(255, 90, 60, .8); animation: fwseaheave 1.6s ease-in-out infinite; }
.fw-roundflash .rf-sea.held { background: linear-gradient(100deg, rgba(14, 58, 70, .55), rgba(6, 20, 26, .8)); border: 1px solid #3f8a99; color: #cfeef4; }
.fw-roundflash .rf-sea.held > i { color: #7fd2e0; }
@keyframes fwseaheave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.lite .fw-roundflash .rf-sea.fell > i { animation: none; }
@media (max-width: 760px) { .fw-roundflash .rf-sea { margin: 10px -6px 0; padding: 7px 10px; font-size: .78rem; } .fw-roundflash .rf-sea b { font-size: .86rem; } }
/* the scoring rule in play, under Undo and End turn */
.fw-actionbar:not(.review) { flex-wrap: wrap; }
.fw-actionbar .ab-mode { flex: 1 1 100%; text-align: center; font: 700 .76rem var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--brass-lt); margin: -2px 0 -1px; }
.fw-actionbar .ab-mode i { margin-right: 4px; }
/* the phone's header: the buttons sit on the same line as Dashboard, as icons, and the title sits close under them, so the header is shorter */
@media (max-width: 760px) {
  body.fw-page .fw-bar, body.fw-page.ingame .fw-bar { flex-wrap: wrap; align-items: center; row-gap: 0; column-gap: 6px; margin-bottom: 2px; }
  body.fw-page .fw-bar .fw-back { order: 1; flex: 0 0 auto; white-space: nowrap; }
  body.fw-page .fw-bar .fw-bar-btns, body.fw-page.ingame .fw-bar .fw-bar-btns { order: 2; flex: 0 1 auto; margin-left: auto; flex-wrap: nowrap; gap: 4px; justify-content: flex-end; }
  body.fw-page .fw-bar .fw-bar-btns .fw-btn, body.fw-page.ingame .fw-bar .fw-bar-btns .fw-btn { font-size: 0; min-height: 30px; padding: 4px 9px; }
  body.fw-page .fw-bar .fw-bar-btns .fw-btn i, body.fw-page.ingame .fw-bar .fw-bar-btns .fw-btn i { font-size: .86rem; margin: 0; }
  body.fw-page .fw-bar .fw-title, body.fw-page.ingame .fw-bar .fw-title { order: 3; flex: 1 1 100%; margin: 0; line-height: 1.05; }
}
.fw-roundflash .rf-sea > div { font: 600 .86rem/1.3 var(--ui); letter-spacing: 0; color: inherit; margin: 0; }      /* not the banner's general div rule: the second line sits under the heading, smaller */
@media (max-width: 760px) { .fw-roundflash .rf-sea > div { font-size: .78rem; } }
/* the same, named one by one, for a browser too old for the rule above */
.lite .hz-arm, .lite .hz-swirl, .lite .hz-fog, .lite .fw-rose .rose-needle, .lite #lObj .kr-arms, .lite .obj-hot, .lite .siege-ring, .lite .siege-tag { animation: none !important; }
/* round by round on a phone: six columns fit without scrolling sideways */
@media (max-width: 560px) { .st-wrap .fw-stats-tbl.go.go-vpr th, .st-wrap .fw-stats-tbl.go.go-vpr td { padding: 4px 3px; } .st-wrap .fw-stats-tbl.go.go-vpr td { font-size: .84rem; } .st-wrap .fw-stats-tbl.go.go-vpr tr:first-child th { font-size: .62rem; } .st-wrap .fw-stats-tbl.go.go-vpr th:first-child { font-size: .7rem; } }
/* "Take back a dice roll?" over an open dice or battle window (owner, 2026-11-05: Undo works while the dice window is up) */
.ud-ask { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(2, 8, 12, .62); }
.ud-ask .ud-card { width: min(440px, 100%); background: linear-gradient(#142b35, #0e1f27); border: 1px solid var(--brass-dk); border-radius: 14px; padding: 16px 18px; color: var(--parch); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); font-family: var(--ui); }
.ud-ask h3 { margin: 0 0 6px; font: 700 1.2rem var(--display); letter-spacing: .03em; color: var(--brass-lt); }
.ud-ask p { margin: 0 0 12px; color: #cfe0e6; line-height: 1.45; }
.ud-ask .foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ---- The setup menu (owner, 2026-11-05, third list: "a lot of the text is a bit small ... on a 17-inch monitor", and some of it in a plain face). Every line is a
   size or two larger, and set as the game sets its own text: Alegreya at its semi-bold and bold weights, with Cinzel for names, counts, and buttons. */
.fw-start .st-kicker { font-size: .98rem; }
.fw-start .lede { font-size: 1.16rem; font-weight: 600; color: #dcebf0; }
.st-h { font-size: 1.32rem; } .st-h small { font: 600 .92rem var(--ui); }
.st-mode .md-name { font-size: 1.36rem; }
.st-mode .md-line { font-size: 1.06rem; }
.st-mode .md-note { font-size: 1rem; font-weight: 600; color: #cfe0e6; }
.st-mode .md-n { font: 700 .86rem var(--display); letter-spacing: .1em; }
.st-count { font: 700 1.1rem var(--display); }
.fw-start .fw-seg button { font: 700 1rem/1 var(--display); }
.fw-start .fw-seg.small button { font-size: .95rem; }
.fw-start .fw-btn.small { font: 700 .98rem var(--display); }
.st-avg { font-size: .98rem; font-weight: 600; } .st-avg b { font-size: 1.1rem; }
.st-slot .sl-top b { font-size: 1.18rem; }
.st-slot .sl-ctl button { font: 700 .95rem var(--display); min-height: 34px; padding: 6px 11px; }
.st-you { font: 700 .86rem var(--display); letter-spacing: .06em; }
.st-r { font: 700 .86rem/1.6 var(--display); }
.st-lvl { font-size: .98rem; } .st-lvl select { font: 700 .98rem var(--ui); padding: 6px 8px; }
.st-chip { font: 700 .9rem var(--ui); padding: 3px 10px 3px 4px; } .st-chip svg { width: 30px; height: 23px; }
.st-rule .rl-head b { font: 700 1.12rem var(--display); }
.st-rule .rl-tog { font-size: 1rem; }
.st-rule p { font-size: .98rem; font-weight: 600; color: #cfe0e6; }
.st-people .sp-txt b { font-size: 1.14rem; }
.st-people .sp-txt span { font-size: .95rem; font-weight: 600; }
.ss-chip small { font: 700 .84rem var(--display); letter-spacing: .06em; }
.ss-who { font-size: 1.08rem; }
.st-sum { font-size: 1.02rem; font-weight: 600; }

/* ---- The rules page (owner, 2026-11-05, third list): the game's own type (Alegreya semi-bold, Cinzel titles), a little larger, and every row of cards even: a fixed
   number of columns that divides the cards (four steps in four, eight actions in four, six battle cards in three), two on a phone. */
.rules.ru p, .ru-list { font-size: .95rem; font-weight: 600; color: #d4e2e8; } .ru-list li { margin: 5px 0; }
.ru-cap { font-size: .95rem; font-weight: 600; }
.ru-grid, .ru-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ru-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ru-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ru-card { grid-template-columns: 26px 1fr; padding: 10px 11px; }
.ru-card > div > b { font: 700 1rem var(--display); letter-spacing: .02em; color: #fff4d8; margin-bottom: 3px; }
.ru-card span { font-size: .92rem; font-weight: 600; line-height: 1.38; }
.ru-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ru-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 12px 10px; font-size: .92rem; font-weight: 600; }
.ru-steps li > b { font: 700 1rem var(--display); color: #fff4d8; }
.ru-steps em { width: 30px; height: 30px; font-size: 1rem; }
.ru-table { font-size: .95rem; font-weight: 600; } .ru-table th:nth-child(2) { font: 700 1rem var(--display); } .ru-table th small { font: 600 .8rem var(--ui); color: #b8cdd5; }
@media (max-width: 640px) { .ru-grid, .ru-grid.three, .ru-grid.four, .ru-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ru-grid.three:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .ru-grid, .ru-grid.three, .ru-grid.four, .ru-grid.two, .ru-steps { grid-template-columns: 1fr; } }

/* The counters under a turn (owner, 2026-11-06: "2 of 2 looks like it says 1 of 1"): the numbers in the display type, whose figures are all full height, and larger */
.lim span { font-size: .78rem; padding: 3px 10px; display: inline-flex; align-items: center; gap: 4px; }
.lim span b.n { font: 900 1.05rem/1 var(--display); font-variant-numeric: lining-nums tabular-nums; color: #fff; letter-spacing: 0; }
.lim span.full b.n { color: #ffe9e2; }

/* ---------- the podium (owner, 2026-11-06: the places were cut off, and it was "sort of boring"): three columns, second, first, and third; each faction above a plinth of
   gold, silver, or bronze with its place cut into it; the plinths rise one after another and the winner comes last, crowned. Nothing is clipped: the medal sits inside. */
.go-stage { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 16px 0 4px; padding-top: 8px; }
.pd-col { flex: 0 1 200px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.pd-who { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 6px 4px 8px; opacity: 0; animation: pdWho .5s ease-out forwards; }
.pd-medal { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 1.05rem; color: #15110a; box-shadow: 0 3px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
.pd1 .pd-medal { width: 42px; height: 42px; font-size: 1.35rem; background: radial-gradient(circle at 35% 30%, #fff3b0, #e0ac1e 60%, #9a6c0c); }
.pd2 .pd-medal { background: radial-gradient(circle at 35% 30%, #fff, #b9c3cb 60%, #6c7780); } .pd3 .pd-medal { background: radial-gradient(circle at 35% 30%, #ffd2a6, #b5702f 60%, #6e3d12); }
.pd-face { display: grid; place-items: center; border-radius: 50%; padding: 4px; background: radial-gradient(circle at 35% 30%, #20404c, #071319); border: 3px solid var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.pd1 .pd-face { border-width: 4px; box-shadow: 0 0 0 3px #ffd65a, 0 0 30px rgba(255, 214, 90, .6); }
.pd-who b { font: 700 1.05rem/1.2 var(--display); color: var(--c); max-width: 100%; overflow-wrap: anywhere; } .pd-who b small { font: 600 .74rem var(--ui); color: #c9d8df; }
.pd-vp { font: 900 2rem/1 var(--display); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); } .pd1 .pd-vp { font-size: 2.6rem; color: #ffe08a; } .pd-vp small { font: 700 .72rem var(--ui); color: var(--muted); margin-left: 4px; }
.pd-st { font-size: .8rem; color: #c9d8df; }
.pd-block { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; border-radius: 8px 8px 0 0; overflow: hidden; transform-origin: bottom; animation: pdRise .6s cubic-bezier(.2, 1.3, .4, 1) both;
  border: 1px solid rgba(0, 0, 0, .45); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -10px 18px rgba(0, 0, 0, .25), 0 8px 18px rgba(0, 0, 0, .45); }
.pd-block::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); animation: goShine 3.4s ease-in-out 1.6s infinite; }
.pd-num { font: 900 2.4rem/1 var(--display); color: rgba(21, 17, 10, .78); text-shadow: 0 1px 0 rgba(255, 255, 255, .45); } .pd-word { font: 800 .78rem var(--ui); letter-spacing: .12em; text-transform: uppercase; color: rgba(21, 17, 10, .7); }
.pd1 .pd-block { height: 124px; background: linear-gradient(#ffe88a, #c8961a); } .pd1 .pd-num { font-size: 3rem; }
.pd2 .pd-block { height: 94px; background: linear-gradient(#f4f6f8, #98a3ad); } .pd3 .pd-block { height: 76px; background: linear-gradient(#efb47a, #9a5a24); }
.pd2 .pd-block { animation-delay: .15s; } .pd2 .pd-who { animation-delay: .5s; } .pd3 .pd-block { animation-delay: .35s; } .pd3 .pd-who { animation-delay: .7s; }
.pd1 .pd-block { animation-delay: .6s; } .pd1 .pd-who { animation: pdWin .7s cubic-bezier(.2, 1.5, .4, 1) 1s forwards; }
.pd-col.me .pd-block { outline: 2px dashed rgba(255, 255, 255, .55); outline-offset: 3px; }
@keyframes pdRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pdWho { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pdWin { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 100% { opacity: 1; transform: none; } }
.go-margin { text-align: center; margin: 10px 0 4px; font: 700 1rem var(--ui); color: #e8dcb4; } .go-margin i { color: var(--brass-lt); margin-right: 4px; }
.go-rest { margin-top: 22px; } .go-podium .go-step { margin-top: 12px; }
.go-stage.n2 .pd-col, .go-stage.n1 .pd-col { flex-basis: 220px; }
/* the honors of the voyage */
.go-honors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.hn-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px; border-radius: 12px; text-align: center; background: linear-gradient(#13262e, #0b171d); border: 1px solid #2f4b57; opacity: 0; animation: pdWho .45s ease-out forwards; }
.hn-card:nth-child(1) { animation-delay: 1.5s; } .hn-card:nth-child(2) { animation-delay: 1.65s; } .hn-card:nth-child(3) { animation-delay: 1.8s; } .hn-card:nth-child(4) { animation-delay: 1.95s; } .hn-card:nth-child(n+5) { animation-delay: 2.1s; }
.hn-card > i { font-size: 1.5rem; color: var(--brass-lt); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.hn-t { font: 700 1rem var(--display); color: #fff; } .hn-who { font: 700 .95rem var(--ui); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; } .hn-who em { font-style: normal; color: var(--muted); }
.hn-face { display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--c); background: #071319; }
.hn-v { font-size: .86rem; color: #c9d8df; }
.hn-card.me { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass-dk), 0 0 14px rgba(240, 207, 133, .22); }      /* round 53: an honor the player won (it counts for their achievements) */
.go-h i { color: var(--brass-lt); margin-right: 4px; }
@media (max-width: 520px) { .go-stage { gap: 5px; } .pd-vp { font-size: 1.5rem; } .pd1 .pd-vp { font-size: 1.9rem; } .pd-who b { font-size: .86rem; } .pd-st { display: none; } .pd1 .pd-block { height: 100px; } .pd2 .pd-block { height: 80px; } .pd3 .pd-block { height: 66px; } .pd-num { font-size: 2rem; } .pd1 .pd-num { font-size: 2.4rem; } }
.lite .pd-block, .lite .pd-who, .lite .hn-card, .lite .pd-block::after { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { html:not(.motion) .pd-block, html:not(.motion) .pd-who, html:not(.motion) .hn-card, html:not(.motion) .pd-block::after { animation: none !important; opacity: 1 !important; }  }
/* the places below the podium: centered cards of one width, however many (2026-11-06: a lone 4th stretched across the page) */
.go-podium.go-rest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.go-podium.go-rest .go-step { flex: 0 1 180px; }

/* Play a friend online (round 38) */
.st-online .on-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.st-online .on-or { color: var(--muted, #9ab); font-style: italic; }
.st-online #on-code { width: 7.5em; text-align: center; letter-spacing: .2em; font: 700 18px/1.2 var(--ui, sans-serif); text-transform: uppercase; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); color: #fff; }
.st-online .on-note { text-align: center; margin: 10px auto 0; max-width: 640px; color: var(--muted, #9ab); line-height: 1.6; }
.st-online .on-code { font-size: 1.35em; letter-spacing: .18em; color: #ffd27a; }
.st-online .on-link { width: min(100%, 420px); font-size: 12px; padding: 4px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); color: #dde; }
/* the online lobby (round 39): every seat of the host's setup, filled as friends join */
.st-online .on-seats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px auto 4px; padding: 0; max-width: 720px; }
.st-online .on-seats li { padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px dashed rgba(255,255,255,.25); color: var(--muted, #9ab); font-size: .92rem; }
.st-online .on-seats li.in { border-style: solid; border-color: rgba(111,214,95,.6); color: #e9f3e6; }
.st-online .on-seats li.ai { border-color: rgba(255,255,255,.2); color: var(--muted, #9ab); }
.st-online .on-seats b { color: #ffd27a; margin-right: 4px; }
.st-online .on-lobby .on-row { margin-top: 8px; }
/* round 40 (owner): online, a plain bold Roll your die (it was faction-colored text on the gold button); the rules page's per-round limits on two plain lines; the round 6 banner note */
.fw-btn.rb-net { font-weight: 900; font-size: 1.02rem; letter-spacing: .02em; color: #241703; text-shadow: none; }
.rb-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; border: 1.5px solid rgba(0, 0, 0, .55); }
.rr-note { display: block; width: 100%; margin-top: 6px; }
.ru-lines { display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.ru-lines span { display: block; }
.rf-r6 { margin-top: 6px; }
.bt-h .bt-at { font-weight: 600; opacity: .8; font-size: .85em; }
/* round by round, every measure at once (round 40) */
.rr-key { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin: 4px 0 8px; font-size: .82rem; color: var(--muted, #b8c2c8); }
.rr-key i { opacity: .85; margin-right: 2px; }
.rr-all td.rr-cell { padding: 6px 6px; text-align: center; vertical-align: middle; }
.rr-all .vp-n { display: block; font-weight: 900; font-size: 1.1rem; line-height: 1.1; }
.rr-all .vp-n small { font-size: .62em; margin-left: 2px; opacity: .75; font-weight: 700; }
.rr-all .rr-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px 8px; margin-top: 3px; font-size: .76rem; color: var(--muted, #c5ced3); white-space: nowrap; }
.rr-all .rr-sub i { font-size: .72rem; margin-right: 3px; opacity: .7; }
@media (max-width: 560px) { .rr-all .rr-sub { gap: 1px 5px; font-size: .7rem; } .rr-all td.rr-cell { padding: 5px 3px; } }
/* round 40: a person's captain name and rank on their faction card; a computer's rank in the card's top right corner */
.fw-pl { position: relative; }
.youbadge.pname.named { letter-spacing: .02em; text-transform: none; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: -1px; }
.pl-sub { color: var(--muted); font-weight: 600; display: block; font-size: .78rem; }
.pl-sub i { color: #ffd27a; font-size: .72rem; margin-right: 2px; }
.pl-rank { position: absolute; top: 7px; right: 9px; font: 900 1rem var(--ui); color: #ffd27a; line-height: 1.1; white-space: nowrap; }      /* round 44: the rank symbol and a larger number, no oval */
.pl-rank i { font-size: .8em; margin-right: 4px; opacity: .95; }
.pl-rank.un { font-size: .74rem; font-weight: 800; color: #e2d6b4; top: 9px; }
.pl-nm { display: block; padding-right: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.pl-who { color: #f1ead8; font-weight: 700; }
.pl-plan { display: block; color: #cfe3ea; font-weight: 700; font-size: .7rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.pl-plan i { color: #9fd7e8; font-size: .66rem; margin-right: 4px; }
.fw-pl .nm { min-width: 0; }
.fw-pl .vprow { grid-column: 1 / 3; margin-top: 2px; }      /* round 44: the points and rescued move down under the picture, so the card does not grow */
.fw-pl .av { grid-row: 1; }
.rr-ship { width: 1.15em; height: .95em; vertical-align: -1px; margin-right: 3px; fill: currentColor; color: inherit; opacity: .8; }
.rr-all .rr-sub { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 1px 10px; }      /* two by two: men and rescued, then fleets and ships */
.rr-all .rr-sub > span { text-align: left; }
/* the online chat (round 40): small, above the Fleets card, scrolls back through its history */
.fw-chat .ch-list { max-height: 92px; overflow-y: auto; margin: 4px 0 6px; padding: 4px 6px; background: rgba(0, 0, 0, .25); border-radius: 8px; font-size: .84rem; line-height: 1.35; }
.fw-chat .ch-line { margin: 0 0 2px; word-break: break-word; }
.fw-chat .ch-note { opacity: .75; font-style: italic; }      /* round 63: the spam limit tells only the sender */
.fw-chat .ch-form { display: flex; gap: 6px; }
.fw-chat .ch-in { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .3); color: #fff; font: 600 .85rem var(--ui); }
.fw-chat .fw-btn.small { min-height: 34px; padding: 6px 12px; }
.st-online .on-name { text-align: center; margin: 8px 0 0; color: var(--muted, #9ab); }
.st-online .on-name input { margin-left: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); color: #fff; font: 600 .9rem var(--ui); width: 12em; }
.fw-netdbg { position: fixed; left: 8px; bottom: 8px; z-index: 9500; max-width: calc(100vw - 16px); padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .78); color: #cfe; font: 600 12px/1.35 ui-monospace, Consolas, monospace; pointer-events: none; }
.fw-pl.ai .nm { padding-right: 0; }
/* Round 43 (owner, 2026-11-08): the Attack list in the Stronghold can be long, so the hex menu scrolls; how to win is chosen beside the game modes; the hexes of
   round 6 grow into their larger size instead of jumping */
.fw-menu { max-height: min(72vh, 540px); overflow-y: auto; overscroll-behavior: contain; }
.st-wins { margin-top: 12px; }
.st-wins .fw-seg { flex-wrap: wrap; }
#lHex > g, #lHit > polygon { transition: transform .9s ease; }

/* round 47 menu */
.st-rules { grid-template-columns: minmax(0, 1fr); }      /* the rules the full width of the page, one under the other (owner) */
.st-go { margin: 30px auto 12px; }
.st-sec.st-online { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(211, 166, 76, .22); }      /* more room between Set sail and Play friends online (owner) */
.st-online .on-name { margin: 12px 0 2px; }

/* round 47 sign-in */
#fw-signin.on { color: #ffd27a; border-color: rgba(211, 166, 76, .55); }
#fw-signin .lbl { max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
#si-box { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 6px 4px; }
@media (max-width: 760px) { #fw-signin .lbl { display: none; } }

/* round 47 plan */
.pl-plan span { opacity: .72; } .pl-plan span.now { opacity: 1; color: #ffe2a0; }
/* round 47: a long line (a playstyle, the men rescued) can no longer widen a card's column and push its bottom line off the card (owner: the Frogs' card in 4th place) */
.fw-pl { grid-template-columns: 38px minmax(0, 1fr); }
.fw-pl > div { min-width: 0; }
.fw-pl .res { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* round 47 (owner): "Engagements 0 of 3" centered on its own line above Settlement and Sea */
.fw-turncard .lim { justify-content: center; } .fw-turncard .lim .lim-br { flex-basis: 100%; height: 0; }

/* round 47 space: the Deep Space map */
body.map-space .hx.kr { fill: rgba(120, 100, 80, .16); stroke: rgba(225, 205, 175, .55); }
body.map-space .hx.kr.kr-maelstrom { fill: rgba(90, 60, 190, .2); stroke: rgba(185, 160, 255, .6); }
body.map-space .hx.kr.kr-wrecks { fill: rgba(140, 150, 170, .14); stroke: rgba(200, 212, 235, .55); }
body.map-space .hexin .hx { stroke: rgba(170, 195, 255, .42); stroke-width: 1.3; }
body.map-space .obj-tag { fill: #dfe6ff; }
.sp-tw { animation: spTw 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spTw { 0%, 100% { --a-o: .25; } 50% { --a-o: 1; } }
.sp-rock { animation: spRock 20s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spRock { to { --a-r: 360deg; } }
.sp-drift { animation: spDrift 8s ease-in-out infinite alternate; }
@keyframes spDrift { from { --a-x: -1.5px; --a-y: 1px; --a-r: -4deg; } to { --a-x: 1.5px; --a-y: -1px; --a-r: 4deg; } }
html.lite .sp-tw, html.lite .sp-rock, html.lite .sp-drift { animation: none; }
.st-maps { margin-top: 12px; }
body.map-space .fw-boardwrap { background: radial-gradient(ellipse at 50% 45%, rgba(90, 110, 220, .16), rgba(0, 0, 0, .55) 85%), radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 60%, #cfd8ff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 40% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 85% 20%, #fff 50%, transparent 51%), #04060f; background-size: 100% 100%, 173px 191px, 211px 157px, 263px 233px, 149px 181px, auto; }      /* round 47: Deep Space has no wooden table under the chart */
.st-legal { text-align: center; color: var(--muted, #9ab); font-size: .8rem; margin: 56px auto 14px; }      /* round 48 (owner): a little lower */
.st-legal a, .set-privacy a { color: var(--parch-dim, #cbb98f); text-decoration: underline; text-underline-offset: 2px; }
.st-legsep { margin: 0 .6em; }
.set-privacy { margin: 12px 0 0; text-align: center; font-size: .82rem; }
/* round 58 (owner): the Report window, from Settings */
.rp-kind { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.rp-kind button { flex: 1 1 45%; min-height: 40px; }
.rp-field { display: block; margin: 0 0 12px; font-weight: 600; }
.rp-field textarea, .rp-field input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 8px 10px; font: inherit; font-weight: 400; color: inherit; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; }
.rp-field textarea { resize: vertical; min-height: 110px; }
.rp-field small { display: block; margin-top: 4px; font-weight: 400; opacity: .75; }
.rp-dev { font-size: .8rem; opacity: .8; }
.rp-err { color: #ffb4a8; min-height: 1em; }
.rp-err a { color: inherit; text-decoration: underline; }      /* round 52 (owner): the privacy policy in Settings */
@media (max-width: 560px) { .st-h { flex-wrap: wrap; row-gap: 2px; } .st-h small { flex-basis: 100%; } }      /* round 47: on a phone a heading's note goes under it, not squeezed beside it */

/* Round 48 (owner's list): every gold line under a menu heading shows: room between the line and what follows */
.st-sec > .st-h { margin-bottom: 16px; }
/* Game modes' sub-headings (How to win, Rules of the sea, Tabletop Dice): smaller, under Game modes, not sections of their own */
.st-sub { font: 700 1rem var(--display); letter-spacing: .06em; color: var(--brass-lt); margin: 26px 0 10px; padding-left: 2px; display: flex; align-items: center; gap: 8px; }
.st-sub i { font-size: .9em; opacity: .85; }
.st-gm .st-wins { margin-top: 0; }
.st-mtools { justify-content: flex-start; }
/* Rules of the sea: room between Bounty and Dominion and the fleet battles below */
#st-bvp { margin-top: 22px; }
/* Round 48 (owner: "the bold white text is harder to read than if it isn't bold, so lets not use bold white"): the rules page's titles in brass, key numbers in gold,
   and plain weight text in a soft light color; no bold white anywhere on the page */
.rules.ru .ru-card > div > b, .rules.ru .ru-steps b { color: var(--brass-lt); font-weight: 700; }
.rules.ru .ru-card span, .rules.ru .ru-steps span, .rules.ru p, .rules.ru .ru-list { font-weight: 400; color: #cfdde3; }
.rules.ru b { color: inherit; font-weight: 600; }
.rules.ru mark.k { background: none; padding: 0; color: var(--gold, #f2c75c); font-weight: 500; }
.rules.ru .ru-table th:nth-child(2) { color: var(--brass-lt); font-weight: 600; }
.rules.ru .ru-list li { margin: 4px 0; }

/* round 49: the keyboard window, one shortcut a line (owner: "too wordy ... separate shortcuts by bullet points") */
.rules.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.kb-sec h3 { font-family: Cinzel, serif; color: var(--brass-lt); font-size: .95rem; font-weight: 700; margin: 6px 0 6px; display: flex; gap: 8px; align-items: center; }
.kb-list { list-style: none; margin: 0; padding: 0; }
.kb-list li { display: grid; grid-template-columns: minmax(118px, auto) 1fr; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .86rem; color: #cfe0e6; font-weight: 400; }
.kb-keys { display: flex; flex-wrap: wrap; gap: 3px; }
.kb-list kbd { font: 600 .74rem/1 system-ui, sans-serif; color: #f1d58c; background: rgba(211, 166, 76, .12); border: 1px solid rgba(211, 166, 76, .45); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; white-space: nowrap; }
@media (max-width: 640px) { .rules.kb { grid-template-columns: 1fr; } }
.ru-bld2 { display: inline-flex; gap: 2px; align-items: center; }
#st-mshuffle.spinning i { animation: fwspin .5s linear infinite; }
@keyframes fwspin { to { transform: rotate(360deg); } }
.ru-cap .ru-t { color: var(--brass-lt); font-weight: 700; }
/* round 49 (owner: "all of the hazard hexes still aren't falling completely as the last hex ring falls ... not appearing correctly while in Review Game"): a sunk hex is
   gone in the replay as it is in the game (the game hides it with its sinking animation; the replay has no animation, and the space map's hazard tints outranked the
   sunk color), so every part of it is hidden, the hazard pictures and tints included */
g.isgone .hexin { display: none; }

/* ---- Round 51 (owner, 2026-11-10) */
/* the title font (Cinzel Decorative) kerns a lowercase oo so tightly that the two letters run into each other (owner: the o's of "Choose a side" overlapping): no kerning
   wherever it is used. Measured: "oo" 51.8 px kerned, 70.3 px without, at 40 px */
.fp-ach-top, .fw-title, .fw-title .nm, .fw-modal h2, .fw-dialog h2, .fw-h2, .fw-start .st-title, .ss-mode, .fw-roundflash .rf-big, .go-ribbon { font-kerning: none; }
/* the version and the last update, small, centered, close under the line about the game and further from the challenges */
.fw-start .st-hero .lede { margin-bottom: 8px; }
.fw-start .st-hero .st-ver { margin: 0 auto 30px; text-align: center; font: 600 .82rem var(--plain); letter-spacing: .02em; color: #9fb4bc; }
.st-ver span { margin: 0 6px; color: var(--brass); }
.st-hero + .st-sec { margin-top: 0; }
/* the menu's explanations: plain weight in a soft light color, the name in brass, never bold white (owner: "the white bold actually makes this text more difficult to read") */
.st-mode .md-line { color: var(--brass-lt); font-weight: 600; }
.st-rule p, .st-mode .md-note { font-weight: 400; color: #d3dfe3; line-height: 1.55; letter-spacing: .005em; }
.st-rule p b { color: var(--brass-lt); font-weight: 700; }
.fw-start .lede { font-weight: 500; }
/* under Set sail: every fleet on one line on a computer, however many and whatever their levels; then every setting of the game */
.st-sum { max-width: 1000px; }
@media (min-width: 760px) {
  .ss-fleets { flex-wrap: nowrap; }
  .ss-fleets .ss-chip { min-width: 0; flex: 0 1 auto; }
  .ss-fleets.n5 .ss-chip, .ss-fleets.n6 .ss-chip { padding: 5px 9px 4px; }
  .ss-fleets.n6 .ss-chip b { --fs: 1rem; } .ss-fleets.n6 .ss-chip small { font-size: .74rem; letter-spacing: .03em; white-space: nowrap; }
  .ss-fleets.n6 .ss-vs { font-size: .85rem; padding: 0; }
}
.ss-opts { list-style: none; margin: 10px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; }
.ss-opts li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(211, 166, 76, .3); font: 400 .9rem var(--plain); color: #c6d6dc; }
.ss-opts li i { color: var(--brass); font-size: .85em; } .ss-opts li b { font-weight: 700; color: var(--brass-lt); }
/* the rank symbol is the crown of first place, in gold */
.pl-rank i.fa-crown, .st-avg i.fa-crown { color: #f2c75c; }
/* the results: the game time centered under the result line; the honors centered however many there are */
.go-hero .go-time { position: relative; margin: 4px 0 0; font-size: .92rem; color: #cfe0e6; text-align: center; }
.go-honors { display: flex; flex-wrap: wrap; justify-content: center; }
.go-honors .hn-card { flex: 0 1 172px; }
/* the legend under the board: larger, more room between its items, and every word in a light, solid color */
body.fw-page.ingame .fw-legend { gap: 26px; padding: 7px 12px; min-height: 42px; }
body.fw-page.ingame .fw-legend .lgi { font-size: .92rem; gap: 7px; color: #f4ead0; }
body.fw-page.ingame .fw-legend .lgi b { font-weight: 800; }
body.fw-page.ingame .fw-legend svg { max-height: 30px; }
/* the end of a round: the sea's looping animations rest while a ring sinks and the camera reframes; a sinking hex does not also fade its color */
#fw-board.fw-calm-now #lHex :is(.wv, .sw, .hxs, .seapat, .hz-arm, .hz-swirl, .hz-fog, .hz-bub, .sp-drift, .sp-rock, .sp-tw), #fw-board.fw-calm-now .fw-rose .rose-needle { animation-play-state: paused !important; }
/* Round 51 (phone lag, measured): a rule ending in * after a class the game switches on and off (fw-moving, at every change of turn; fw-calm-now) made the browser restyle every element
   under it, about 4,000, each time; naming the animated parts restyles only those. The compass needle is the only part of the compass that moves. */
g.sinking .hx { transition: none !important; }

/* Round 51 (owner, on his phone, 2026-11-11): "parts at the bottom ... are getting blocked by this bottom bar ... One of the things it's blocking is the close button
   on the stats page." On Android, vh is the screen's height with Chrome's bars hidden, so a window 94vh tall ran under the address bar and the navigation bar; dvh
   is the part actually showing (a browser without dvh keeps the vh line above). And "scrolling back up ... the page refresh[ed] and [I] lost my game": no pull to
   refresh while a game is on. */
.fw-reader .fw-dialog { top: 3dvh; max-height: 94dvh; }
.fw-sndmenu { max-height: calc(100dvh - 80px); }
.fw-menu { max-height: min(72dvh, 540px); }
html.fw-ingame, body.fw-page.ingame { overscroll-behavior-y: none; }      /* a class, not :has(): a :has() on the root was checked again after every change on the page (1,037 times in 40 s, measured) */
/* the side panel's cards each sit in a wrapper of their own, rebuilt only when that card changed (round 51, phone lag); the wrapper takes no part in the layout */
.fw-sp { display: contents; }
.fw-side.reviewing .fw-card .rd { cursor: pointer; }
/* the battle effects' own svg, laid exactly over the board (round 51, phone lag): it never takes a click or a touch */
.fw-board.fw-fxboard { pointer-events: none; cursor: default; background: none; }
/* round 52: the moving pieces' own svg over the board: only the fleets (and the flagships, by their own style) take the pointer */
.fw-board.fw-pieces { pointer-events: none; background: none; }
.fw-pieces #lTok { pointer-events: visiblePainted; }
/* round 52: the board and the pieces each on a layer of its own, so a moving fleet repaints only the pieces and the chart, the sea, and the hexes are kept as they
   were drawn (measured at phone speed, 6x CPU: 1,158 frames in 120 s -> 1,839, the same as with the still board not drawn at all; 1,402 -> 1,665 with Calm board) */
#fw-board, #fw-pieces { will-change: transform; }
/* Round 51 (owner: "flutters a lot"; measured: the turn banner was half of what still jumped on a phone): anchored on the right with only a maximum width, it
   grew and shrank with each faction's name and each status, so its left edge kept moving. On a phone it now has one width; longer words wrap inside it. */
@media (max-width: 760px) { .fw-banner { width: min(70%, 300px); max-width: none; } }
/* and the dice and battle windows start at about the height they will reach, so filling in their dice and results does not push the sheet up (round 51, phone) */
@media (max-width: 760px) { .fw-dialog.sheet.bt-win { min-height: 50dvh; } }
/* Round 58 (owner: on a phone the start roll, approach roll, and hazard roll windows "looks elongated as in there is space below the die"): the dice windows no longer
   start at a third of the screen (round 51's 34dvh, which left empty room under small rolls); they fit what they hold, and the line under the dice keeps room for
   two lines from the start, so the result still fills in without pushing the sheet up. The rows of dice sit closer together. */
@media (max-width: 760px) { .fw-dialog.sheet .rollbox .bt-note { min-height: 2.5em; } .fw-dialog.sheet .rd-groups { gap: 6px 16px; } .fw-dialog.sheet .st-choose { gap: 8px; } }
/* Round 51 (owner: "during engagements, it flutters a lot"; measured: what still moved on a phone was inside the battle window): the rows of dice now take their
   full room from the start, the note under them has room for two lines, and the dice stage keeps its height when it empties (fairways.js), so a battle fills in
   without pushing the rest of the window about. */
@media (max-width: 760px) { .fw-dialog.sheet.bt-win .bt-duels.live { min-height: 3.9em; } .fw-dialog.sheet.bt-win .bt-note { min-height: 2.4em; } }
/* Round 51 (owner, 2026-11-11: "make the leaderboard/stats page to be able to fill the screen on pc"): the stats window fills the screen, on a phone too, and the
   leaderboard's table takes the height it is given; the game modes (All, 1 vs 1, 4 Factions Frenzy, Grand Armada) stay on one row on a computer. */
.fw-reader .fw-dialog.full { width: calc(100vw - 16px); max-width: none; height: 94vh; height: 94dvh; }
.fw-reader .fw-dialog.full .fp-bwrap { max-height: calc(94vh - 250px); max-height: calc(94dvh - 250px); }
@media (min-width: 761px) { .fp-tabs.fp-bsize { flex-wrap: nowrap; } .fp-tabs.fp-bsize button { white-space: nowrap; } }
/* the turn order at the foot of the turn card (round 51, owner): the faction at the helm lit in its color, the others dim, one with no fleets faint */
.fw-turncard .to-row { grid-column: 1 / 3; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.fw-turncard .to-f { line-height: 0; border-radius: 50%; padding: 2px; border: 2px solid transparent; opacity: .45; }
.fw-turncard .to-f.now { opacity: 1; border-color: var(--c); box-shadow: 0 0 8px var(--c); }
.fw-turncard .to-f.out { opacity: .15; filter: grayscale(1); }
.fw-turncard .to-ar { color: #5d7a86; font-size: .7rem; }
/* the turn order badges (round 51): a faction's initial in a small round badge in its color */
.fw-turncard .to-f { font: 800 .74rem/1 var(--plain); box-sizing: border-box; width: 24px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center; text-align: center; color: #0b1a20; background: var(--c); }      /* round 52 (owner: the letters were not centered): the font shorthand had reset the line height; now the letter is centered by flex, the border inside the 24 px */
/* Round 51 (owner: "quite a bit of laggyness at the end/start of phases and rounds"; measured at phone speed: what was left was the frame after a big change, the
   page restyled and laid out whole). The side panel's cards off the screen (on a phone, most of them, under the board) are skipped until they scroll into
   view, each remembering its last height so nothing jumps; and the board's stage is its own layout and paint, so a change inside it never lays out the page. */
#fw-side > .fw-sp > * { content-visibility: auto; contain-intrinsic-size: auto 220px; }
.fw-stage { contain: layout paint style; }

/* ---- Round 53 */
/* Round 53 (owner): the men held in a settlement, shown in the rules as on the board (a number in each faction's color) */
.ru-men { display: inline-flex; gap: 4px; vertical-align: middle; } .ru-men b { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 3px; border-radius: 5px; background: #0b171d; border: 1px solid #1d3641; font: 900 .78rem var(--plain); }
/* Round 53 (owner: "Privacy opens the privacy policy in a closable popup window, not a new URL"): a reading window above every other window, moved by its bar */
.fw-ppwin { z-index: 260; }
.fw-ppwin .fw-dialog { width: min(760px, calc(100vw - 16px)); }
.fw-ppwin .fw-grab { cursor: move; }
.pp-body { font-size: .95rem; line-height: 1.55; color: #d4e2e8; }
.pp-body h3 { margin: 18px 0 6px; font: 700 1.02rem var(--display); color: var(--brass-lt); }
.pp-body p, .pp-body ul { margin: 6px 0; } .pp-body ul { padding-left: 1.3em; } .pp-body li + li { margin-top: 5px; }
.pp-body b { color: var(--parch); } .pp-body a { color: var(--brass-lt); }
.pp-body .when { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.pp-body .short { background: #0b171d; border: 1px solid #1d3641; border-radius: 10px; padding: 8px 14px; }
.pp-body footer { margin-top: 18px; color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .fw-ppwin .fw-dialog { left: 8px !important; right: 8px; top: 3dvh !important; transform: none !important; width: auto; } .fw-ppwin .fw-grab { cursor: default; } }
/* ---- Rounds 56 and 57 */
/* ROUND 56 (owner's phone video, 2026-11-13: "still flashing/fluttering even without zooming"; its frames show whole blocks of the board missing for a few frames at a
   time). Chrome hands every opacity or transform animation on a piece inside the board's svg to the graphics chip as a layer of its own, and everything drawn above
   such a piece must then go on further layers: with every animation on, the space board sat on about 255 layers (about 570 MB of graphics memory), each redrawn 10 to
   13 times a second, more than a phone holds, so it dropped blocks of the board (measured on a Pixel 3 XL screen, scratchpad idleload.mjs). The board's looping
   animations (and the short battle effects) now move these registered properties instead, which Chrome keeps on the main thread: the pieces are redrawn in place on
   the board's own layer, with the same look. inherits: false, so a piece's children never take its value. */
@property --a-o { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --a-x { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --a-y { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --a-r { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --a-s { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --a-sy { syntax: '<number>'; inherits: false; initial-value: 1; }
.ov-reach, .ov-atk, .ov-doom.now, .ov-next, .fl-glow, .war-ring, .hot-ring, .siege-tag, .tok.mine .tshadow, .sp-tw, .hz-fog, .hz-bub, .fx-flash, .fx-float, .fx-part, .fx-ripple, g.sinking .hexin { opacity: var(--a-o); }
.sea-swell .sw { --a-o: 0; opacity: var(--a-o); }
/* translate, rotate, and scale on their own (not transform), so a piece's own place (its transform attribute) is kept under the movement */
.tok .bobber, .hero-bob, .kr-arms, .sp-rock, .sp-drift, .hz-swirl, .hz-arm, .hz-fog, .hz-bub, .sea-swell .sw, .fw-rose .rose-needle, .siege-ring, g.sinking .hexin, .fx-float, .fx-part, .fx-ripple, .fx-swords { translate: var(--a-x) var(--a-y); rotate: var(--a-r); scale: var(--a-s) calc(var(--a-s) * var(--a-sy)); }
/* and the alerts that pulse (their glow is a box-shadow, redrawn every frame) each on a small layer of their own: drawn with the page, each pulse redrew a layer the
   length of the whole page (412 x 3,600 px on the phone; measured 6.3 times a second -> 0.2) */
.fw-alert.sticky, .fw-alert.seaflash, .fw-sea { will-change: transform; }
/* round 56: while a phase resolves (fairways.js, hush) the board's looping animations hold still, so the phone's processor goes to the game and its sounds; a hex
   sinking and a flagship going down still play */
/* round 59: that was a class on the body with a rule ending in *, and switching it restyled every element of the board (about 4,700; 67 to 93 ms on a computer, at
   every phase end). The game now pauses and resumes the animations themselves (fairways.js, hush): there is no rule here any more. */
/* round 56: the legend's little pictures hold still. Its hazard icon carries the kraken's arms, and their swing made Chrome lay out the whole board again every frame
   (the board's gradients, which the icon shares, were marked changed): 53 ms a frame at phone speed (6x), 2.7 ms with the legend still. The board's own hazards
   still move. */
.fw-legend svg, .fw-legend svg * { animation: none !important; }
/* round 57: a ship is a picture (fairways.js, sprite) with its hover twin, the thicker outline it shows under the pointer (was .tok:hover .ol *) */
.glyph image.hv { display: none; }
.tok:hover .glyph image.hv { display: inline; } .tok:hover .glyph image.nv { display: none; }
/* ---- Rounds 58 to 60 */
/* Round 58 (owner: "On mobile, the results page/window should cover up the majority of the screen, on my phone the results page only takes up about half of the
   screen"): every phone sheet stops at 58% of the screen so the board stays in view during a turn; the results come after the game, so their sheet takes nearly the
   whole screen (and starts there, so the tables do not open in a short window). */
.fw-dialog.sheet.go-win { max-height: 94vh !important; max-height: 94dvh !important; min-height: 80vh !important; min-height: 80dvh !important; }      /* !important: a sheet keeps its tallest height inline (fairways-win.js holdTall) */
/* Round 58 (owner: on a phone "there are still sounds being cutoff and the game is a bit laggy ... Engagements are still flashing the dice"; measured in an Android
   emulator's Chrome): an element that moves by animation lifts everything drawn after it that its movement might reach into layers of its own, and with no clip
   that was the whole side panel. The board shakes inside its own clip (fairways.js shakeBoard), and the scoreboard's cards, which glide to their new places at the
   end of a phase, are drawn last (z-index): Chrome lifts out what is drawn after a moving element, whatever its clip, so nothing is drawn after them. */
.fw-boardwrap { z-index: 2; } .fw-score { position: relative; z-index: 2; }
/* Round 58 (owner: on a phone "Engagements are still flashing the dice a lot"): a rolling die shook by transform, which Chrome runs on a layer of its own, made and
   thrown away for every roll of every die (each battle window rolled a dozen at once). It now shakes by the registered properties above, redrawn in place with the
   battle window: the same shake, no layer coming and going. */
/* Round 59 (owner: "Dice roll still flutter"): that shake asked the page for a new frame every 16 ms while it was also rebuilding every die every 80 ms, and at a
   phone's speed the screen showed 7 frames a second. A rolling die is now one element that tips the other way with each new face (fairways.js tumbleDie): no animation. */
/* Round 60 (measured on a Pixel 3 XL: focusing a game window's main button cost about 75 ms a window, the window itself 0.2 ms). While the player uses touch or a
   mouse the window takes the focus and shows no ring (fairways.js quietFocus); the first key pressed takes this class off. */
.fw .fw-quietfocus:focus-visible, .fw-modal .fw-quietfocus:focus-visible, .fw-quietfocus:focus { outline: none; }
/* Round 60 (measured on a Pixel 3 XL: a pinch that began on a game window or the header, not on the board, made the browser zoom the whole page, up to 5 times;
   with the board itself zoomed in, the board then stood undrawn for 6 s). During a game the browser no longer zooms the page: the board has its own zoom, and the
   page still scrolls. The menu and every other page zoom as before. */
html.fw-ingame, html.fw-ingame body { touch-action: pan-x pan-y; }
/* Round 62 (owner, 2026-11-22): Where you play (This Device, Private Online, Public Online), Ranked or Unranked, chat on or off; the host's table under Start Game;
   the public lobby window. While a game is being hosted, the choices above the button are locked so the table cannot change under the people who joined. */
.st-play .st-rule + .st-rule { margin-top: 10px; }
.st-play .fw-seg { flex-wrap: wrap; }
.st-hosting .st-gm, .st-hosting #st-muster, .st-hosting .st-play { pointer-events: none; opacity: .55; }
#st-host:empty { display: none; }
#st-host { width: min(100%, 760px); padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(211, 166, 76, .35); }
#st-host .on-row, .fw-lobby .on-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
#st-host .on-note, .fw-lobby .on-note { text-align: center; margin: 10px auto 0; color: var(--muted, #9ab); line-height: 1.6; }
#st-host .on-code { font-size: 1.35em; letter-spacing: .18em; color: #ffd27a; }
#st-host .on-link { width: min(100%, 420px); font-size: 12px; padding: 4px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); color: #dde; }
#st-host .on-seats, .fw-lobby .on-seats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px auto 4px; padding: 0; }
#st-host .on-seats li, .fw-lobby .on-seats li { padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px dashed rgba(255,255,255,.25); color: var(--muted, #9ab); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
#st-host .on-seats li.in, .fw-lobby .on-seats li.in { border-style: solid; border-color: rgba(111,214,95,.6); color: #e9f3e6; }
.st-online .on-lobby .on-seats li { display: inline-flex; align-items: center; gap: 6px; }
.st-online .on-private { margin-top: 12px; }
.st-online .on-lab { color: #e9dcbf; font-weight: 700; }
.fw-lobby .lb-game { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; margin: 8px 0; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid #23414c; }
.fw-lobby .lb-game > button { grid-column: 2; grid-row: 1 / span 3; }
.fw-lobby .lb-main b { color: #ffd27a; }
.fw-lobby .lb-main span, .fw-lobby .lb-sub { color: #cfe0e6; font-size: .88rem; }
.fw-lobby .lb-seats { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-lobby .lb-seat { font-size: .78rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); }
.fw-lobby .lb-seat.taken { background: var(--c); color: #10202a; }
@media (max-width: 520px) { .fw-lobby .lb-game { grid-template-columns: 1fr; } .fw-lobby .lb-game > button { grid-column: 1; grid-row: auto; justify-self: start; } }

/* Round 66 (owner): Join Public Game and Join Private Game sit in their own box at the foot of Where you play, side by side and centered, above the Start button */
.st-play .st-join { margin-top: 10px; }
.st-join .rl-head { justify-content: center; }
.st-join .on-two { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 12px; margin-top: 8px; }
.st-join .on-half { flex: 1 1 240px; max-width: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(211, 166, 76, .25); text-align: center; }
.st-join .on-half.on-private { margin-top: 0; }
.st-join .on-half small { color: var(--muted, #9ab); line-height: 1.4; }
.st-join .on-half .on-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: nowrap; }
.st-join .on-lab { font-weight: 700; color: #ffd27a; }
.st-join .on-note { margin-top: 8px; }
@media (max-width: 560px) { .st-join .on-half { flex-basis: 100%; max-width: none; } }
