/* GENERATED by tools/build_ominous.py from tools/ominous.template.css - edit those, not this file. */
/* =====================================================================================
   "The storm isn't here yet." A bruised night sky with slow clouds and fog, a sickly glow on the horizon and
   distant lightning behind the cloud; a sea that is not rough but not calm; every box is dark ship's timber
   with iron edges and rivets, lit by one swinging lantern. Loaded last, so it re-skins theme.css / table.css.
   The cream playing cards stay cream - they are the things on the table.
===================================================================================== */
:root {
  --abyss: #04080c; --night: #0a131a;
  --brass: #a3843a; --brass-hi: #d6bb76; --brass-lo: #5b4417;
  --paper: #0a131a;
  --wood: #2b1e15; --iron: #15110e;
}
html { background: var(--abyss); }
meta[name=theme-color] { content: #0c0805; }

/* ---------------------------------------------------------------- the sky and the sea beyond */
.backdrop {
  background:
    radial-gradient(ellipse 85% 24% at 50% 61%, rgba(160, 168, 72, .20), rgba(160, 168, 72, 0) 72%),   /* a sickly glow where the storm hides */
    radial-gradient(ellipse 70% 50% at 10% -10%, rgba(140, 160, 172, .12), transparent 70%),            /* a veiled moon */
    radial-gradient(ellipse 60% 45% at 94% 108%, rgba(222, 142, 58, .13), transparent 70%),             /* the lantern's spill */
    linear-gradient(180deg, #04070d 0%, #0a111b 26%, #142027 55%, #101b1f 63%, #0a1418 80%, #04090c 100%);
}
.backdrop::before { content: ""; position: absolute; left: 0; top: 0; width: 200%; height: 66%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='640'%3E %3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0032 .0085' numOctaves='5' seed='11' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .21 0 0 0 0 .26 1.95 0 0 0 -.78'/%3E%3C/filter%3E %3Crect width='1600' height='640' filter='url(%23c)'/%3E%3C/svg%3E") repeat-x; background-size: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent);
  animation: bd-swell 320s linear infinite; opacity: .95; }
.bd-rose { opacity: .06; } .bd-rose.small { opacity: .035; }
.bd-vignette { background: radial-gradient(ellipse 120% 90% at 50% 42%, transparent 48%, rgba(0, 0, 0, .68)); }
.bd-waves i { filter: saturate(.4) hue-rotate(-16deg) brightness(.72); }
.bd-glints { inset: auto; left: 0; bottom: 5vh; width: 200%; height: 42vh; animation: bd-swell 170s linear infinite;
  background-size: 50% 100%; background-repeat: repeat-x;
  background-image:
    radial-gradient(ellipse 20% 38% at 12% 62%, rgba(150, 166, 150, .13), transparent),
    radial-gradient(ellipse 26% 34% at 40% 72%, rgba(150, 166, 150, .10), transparent),
    radial-gradient(ellipse 18% 40% at 66% 56%, rgba(150, 166, 150, .12), transparent),
    radial-gradient(ellipse 24% 32% at 90% 70%, rgba(150, 166, 150, .09), transparent); }
.bd-flash { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 38% at var(--lx, 62%) 16%, rgba(205, 218, 235, .5), rgba(120, 140, 172, .16) 42%, transparent 72%); }
/* one lantern lights the whole table, and it never quite holds still */
body::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 65% 55% at 7% 3%, rgba(255, 172, 84, .13), transparent 70%);
  animation: pd-lantern 7s ease-in-out infinite; }
@keyframes pd-lantern { 0%, 100% { opacity: .85; } 7% { opacity: .66; } 13% { opacity: .98; } 21% { opacity: .74; } 33% { opacity: .92; } 46% { opacity: .68; } 55% { opacity: .9; } 70% { opacity: .78; } 84% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .backdrop::before, .bd-glints, body::after { animation: none; } }

/* ---------------------------------------------------------------- the top bar: dark timber, tarnished brass rail */
.topbar {
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .5)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='192'%3E %3Cdefs%3E %3Cfilter id='dk' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .26' numOctaves='4' seed='3' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .03 0 0 0 0 .02 0 0 0 0 .01 1.0 0 0 0 -.40'/%3E%3C/filter%3E %3Cfilter id='lt' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .34' numOctaves='3' seed='9' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .40 0 0 0 0 .22 0 1.0 0 0 -.52'/%3E%3C/filter%3E %3C/defs%3E %3Crect width='640' height='192' filter='url(%23lt)'/%3E %3Crect width='640' height='192' filter='url(%23dk)'/%3E %3Crect y='0' width='640' height='64' fill='%23fff' fill-opacity='.015'/%3E%3Crect y='64' width='640' height='64' fill='%23000' fill-opacity='.07'/%3E%3Crect y='128' width='640' height='64' fill='%23fff' fill-opacity='.03'/%3E %3Cg stroke='%230a0604' stroke-opacity='.5' stroke-width='1.4'%3E%3Cpath d='M0 .8H640M0 64.8H640M0 128.8H640'/%3E%3C/g%3E %3Cg stroke='%23ffd9a0' stroke-opacity='.035' stroke-width='1.2'%3E%3Cpath d='M0 2.4H640M0 66.4H640M0 130.4H640'/%3E%3C/g%3E %3Cg stroke='%230a0604' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M214 0V64M470 64V128M70 128V192M560 128V192'/%3E%3C/g%3E %3Cg fill='%230a0604' fill-opacity='.28'%3E%3Ccircle cx='222' cy='9' r='1.6'/%3E%3Ccircle cx='222' cy='55' r='1.6'/%3E%3Ccircle cx='478' cy='73' r='1.6'/%3E%3Ccircle cx='478' cy='119' r='1.6'/%3E%3Ccircle cx='78' cy='137' r='1.6'/%3E%3Ccircle cx='78' cy='183' r='1.6'/%3E%3Ccircle cx='568' cy='137' r='1.6'/%3E%3Ccircle cx='568' cy='183' r='1.6'/%3E%3C/g%3E %3C/svg%3E"), #1a120c;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(0, 0, 0, .6);
}
.brand { color: var(--brass-hi); text-shadow: 0 1px 0 #000, 0 0 16px rgba(214, 187, 118, .18); }
.acctnav a, .acctnav .linkbtn, .turninfo { color: #e3d6b6; }
.topbtn { background: rgba(214, 187, 118, .07); border-color: rgba(214, 187, 118, .4); color: #f0e4c4; }
.topbtn:hover, .topbtn:focus-visible, .topbtn[aria-expanded="true"] { background: rgba(214, 187, 118, .18); }

/* ---------------------------------------------------------------- panels: dark timber, iron edge, rivets */
.panel, .dockrow .handcol, .optpanel {
  --ink: #eadfc3; --muted: #b8a888; --line: rgba(205, 170, 100, .26); --accent: #e0c27a; --sea: #96c6bf; --panel: #2b1e15;
  --good: #92d6a2; --vessel: #e88472; --treasure: #e0b04a; --port: #7fc9b9; --home: #a9aed6;
  color: var(--ink);
  background-color: var(--wood);
  background-image: radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px),
    radial-gradient(ellipse 100% 70% at 10% -12%, rgba(255, 184, 100, .15), transparent 65%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .3)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='192'%3E %3Cdefs%3E %3Cfilter id='dk' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .26' numOctaves='4' seed='3' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .03 0 0 0 0 .02 0 0 0 0 .01 1.0 0 0 0 -.40'/%3E%3C/filter%3E %3Cfilter id='lt' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .34' numOctaves='3' seed='9' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .40 0 0 0 0 .22 0 1.0 0 0 -.52'/%3E%3C/filter%3E %3C/defs%3E %3Crect width='640' height='192' filter='url(%23lt)'/%3E %3Crect width='640' height='192' filter='url(%23dk)'/%3E %3Crect y='0' width='640' height='64' fill='%23fff' fill-opacity='.015'/%3E%3Crect y='64' width='640' height='64' fill='%23000' fill-opacity='.07'/%3E%3Crect y='128' width='640' height='64' fill='%23fff' fill-opacity='.03'/%3E %3Cg stroke='%230a0604' stroke-opacity='.5' stroke-width='1.4'%3E%3Cpath d='M0 .8H640M0 64.8H640M0 128.8H640'/%3E%3C/g%3E %3Cg stroke='%23ffd9a0' stroke-opacity='.035' stroke-width='1.2'%3E%3Cpath d='M0 2.4H640M0 66.4H640M0 130.4H640'/%3E%3C/g%3E %3Cg stroke='%230a0604' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M214 0V64M470 64V128M70 128V192M560 128V192'/%3E%3C/g%3E %3Cg fill='%230a0604' fill-opacity='.28'%3E%3Ccircle cx='222' cy='9' r='1.6'/%3E%3Ccircle cx='222' cy='55' r='1.6'/%3E%3Ccircle cx='478' cy='73' r='1.6'/%3E%3Ccircle cx='478' cy='119' r='1.6'/%3E%3Ccircle cx='78' cy='137' r='1.6'/%3E%3Ccircle cx='78' cy='183' r='1.6'/%3E%3Ccircle cx='568' cy='137' r='1.6'/%3E%3Ccircle cx='568' cy='183' r='1.6'/%3E%3C/g%3E %3C/svg%3E");
  background-position: 0 0, 100% 0, 0 100%, 100% 100%, 0 0, 0 0, 0 0;
  background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, 100% 100%, 100% 100%, 640px 192px;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  border: 3px solid var(--iron); border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(200, 178, 130, .2), inset 0 0 26px rgba(0, 0, 0, .55), 0 0 0 1px rgba(160, 145, 118, .16), 0 14px 30px rgba(0, 0, 0, .6);
}
.panel h1, .panel h2, .optpanel h2 { color: var(--accent); text-shadow: 0 -1px 0 rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 222, 160, .1); letter-spacing: .01em; }
.panel h3 { color: var(--sea); }
.panel a { color: #9ed0c8; }
.panel.yourmove {
  border: 3px solid #b3402a;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 120, .22), inset 0 0 26px rgba(0, 0, 0, .5),
              0 0 0 3px rgba(214, 150, 66, .55), 0 0 34px 6px rgba(255, 160, 70, .22), 0 14px 32px rgba(0, 0, 0, .6);
  animation: pd-beckon-dark 3.4s ease-in-out infinite alternate;
}
@keyframes pd-beckon-dark { to { box-shadow: inset 0 0 0 1px rgba(255, 190, 120, .3), inset 0 0 26px rgba(0, 0, 0, .5),
              0 0 0 3px rgba(226, 168, 84, .8), 0 0 48px 10px rgba(255, 160, 70, .34), 0 14px 32px rgba(0, 0, 0, .6); } }
@media (prefers-reduced-motion: reduce) { .panel.yourmove { animation: none; } }
.panel.waiting { border-left: 6px solid var(--brass); }
.yourmove-tag { background: linear-gradient(180deg, #a63a28, #6e1c14); color: #fff2d8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 3px rgba(0, 0, 0, .6); }
.muted { color: var(--muted); }

/* the cream playing cards (and anything else that is a "paper thing" on the table) keep their own light surface */
.cardface, .tile, .choice, .actioncard, .sabotage, .statbox, input, select, textarea, .cat, .upddlg {
  --ink: #1d1712; --muted: #6b6155; --line: #d9c9a3; --accent: #8b1e1e; --sea: #1c4e63; --panel: #f3e9cc;
  --good: #2d6a4f; --vessel: #9b2226; --treasure: #a87400; --port: #1c6e63; --home: #3d405b;
}
.cardface { background-color: #f0e5c6; }
button.cardface { background: #f0e5c6; }
.cardface .info { background: #f3e9cc; }
.cardface, button.cardface:not(:disabled):hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
button.cardface:not(:disabled):hover { box-shadow: 0 14px 26px rgba(0, 0, 0, .6), 0 0 0 2px rgba(214, 187, 118, .5); }

/* bits inside the dark panels */
table.standings tr.you td, table.standings tr.you.upnow td { background: rgba(214, 170, 80, .16); color: #f6e5b4; }
table.standings th { color: var(--muted); }
.sailpill { background: #1b130d; border-color: rgba(214, 187, 118, .55); color: var(--brass-hi); }
.sailpill.first { background: #e0b04a; border-color: #8a5f10; color: #2c1c02; }
.hpbar { background: #0e0a07; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8); }
.tag { background: #1d140d; color: var(--muted); }
.qhelp { color: #3d2a06; }
.qtext { background: #3a2a1b; border: 1px solid rgba(214, 187, 118, .35); border-left: 4px solid var(--brass); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.logmode { background: rgba(0, 0, 0, .35); border-color: rgba(214, 187, 118, .4); }
.logmode button[aria-pressed="true"] { background: linear-gradient(180deg, #b8923e, #7c5a1c) !important; color: #fff7e0; }
.log summary { color: #9ed0c8; }
.ev-win { color: #8fd8a0; } .ev-sunk { color: #ff8f7c; } .ev-fight { color: #f0b868; } .ev-action { color: #9cc9d8; } .ev-note { color: #c8aef2; }
.log p.mine { border-left-color: rgba(214, 187, 118, .75); }
.flash { background: #3a2a1b; border-color: var(--brass); color: #f3e7c6; }
.moments li::before { color: #2b1d04; }

/* ---------------------------------------------------------------- the board: a restless slate sea in a timber frame */
.board {
  border: 9px solid transparent; border-radius: 10px;
  background-color: #14222a;
  background-image: radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='84'%3E %3Cg fill='none' stroke='%23c9ddd8' stroke-linecap='round'%3E %3Cpath d='M10 24q8-6 16 0t16 0' stroke-opacity='.075' stroke-width='1.3'/%3E%3Cpath d='M92 58q8-6 16 0t16 0' stroke-opacity='.06' stroke-width='1.3'/%3E %3Cpath d='M118 14q5-4 10 0' stroke-opacity='.06' stroke-width='1.1'/%3E%3Cpath d='M40 70q5-4 10 0' stroke-opacity='.05' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 60% at 50% -12%, rgba(168, 176, 92, .13), transparent 70%),
    radial-gradient(ellipse 80% 55% at 12% -8%, rgba(255, 178, 92, .08), transparent 65%),
    linear-gradient(180deg, #27403f 0%, #1c3238 46%, #11222a 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='192'%3E %3Cdefs%3E %3Cfilter id='dk' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .26' numOctaves='4' seed='3' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .03 0 0 0 0 .02 0 0 0 0 .01 1.0 0 0 0 -.40'/%3E%3C/filter%3E %3Cfilter id='lt' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .34' numOctaves='3' seed='9' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .40 0 0 0 0 .22 0 1.0 0 0 -.52'/%3E%3C/filter%3E %3C/defs%3E %3Crect width='640' height='192' filter='url(%23lt)'/%3E %3Crect width='640' height='192' filter='url(%23dk)'/%3E %3Crect y='0' width='640' height='64' fill='%23fff' fill-opacity='.015'/%3E%3Crect y='64' width='640' height='64' fill='%23000' fill-opacity='.07'/%3E%3Crect y='128' width='640' height='64' fill='%23fff' fill-opacity='.03'/%3E %3Cg stroke='%230a0604' stroke-opacity='.5' stroke-width='1.4'%3E%3Cpath d='M0 .8H640M0 64.8H640M0 128.8H640'/%3E%3C/g%3E %3Cg stroke='%23ffd9a0' stroke-opacity='.035' stroke-width='1.2'%3E%3Cpath d='M0 2.4H640M0 66.4H640M0 130.4H640'/%3E%3C/g%3E %3Cg stroke='%230a0604' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M214 0V64M470 64V128M70 128V192M560 128V192'/%3E%3C/g%3E %3Cg fill='%230a0604' fill-opacity='.28'%3E%3Ccircle cx='222' cy='9' r='1.6'/%3E%3Ccircle cx='222' cy='55' r='1.6'/%3E%3Ccircle cx='478' cy='73' r='1.6'/%3E%3Ccircle cx='478' cy='119' r='1.6'/%3E%3Ccircle cx='78' cy='137' r='1.6'/%3E%3Ccircle cx='78' cy='183' r='1.6'/%3E%3Ccircle cx='568' cy='137' r='1.6'/%3E%3Ccircle cx='568' cy='183' r='1.6'/%3E%3C/g%3E %3C/svg%3E");
  background-clip: border-box, border-box, border-box, border-box, padding-box, padding-box, padding-box, padding-box, border-box;
  background-origin: border-box, border-box, border-box, border-box, padding-box, padding-box, padding-box, padding-box, border-box;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, 160px 84px, 100% 100%, 100% 100%, 100% 100%, 640px 192px;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat, no-repeat, no-repeat, repeat;
  box-shadow: inset 0 0 0 2px #0e0a07, inset 0 0 0 3px rgba(190, 170, 130, .18), inset 0 0 80px rgba(0, 0, 0, .62), 0 0 0 2px var(--iron), 0 14px 34px rgba(0, 0, 0, .6);
}
html.tbl body.gamepage .board { border: 9px solid transparent; padding: 10px 12px 6px; border-radius: 10px;
  box-shadow: inset 0 0 0 2px #0e0a07, inset 0 0 0 3px rgba(190, 170, 130, .18), inset 0 0 80px rgba(0, 0, 0, .62), 0 0 0 2px var(--iron), 0 14px 34px rgba(0, 0, 0, .6); }
/* two swells slide under the cards, in opposite directions, rising and falling a little */
html.tbl body.gamepage .board::before, html.tbl body.gamepage .board::after {
  content: ""; display: block; position: absolute; left: 0; width: 200%; pointer-events: none; opacity: 1; right: auto; top: auto;
  background-repeat: repeat-x; background-size: 50% 100%; will-change: transform; }
html.tbl body.gamepage .board::before { bottom: 0; height: 64%; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 240' preserveAspectRatio='none'%3E %3Cpath d='M0 127.9 L8 131.6 L16 133.7 L24 134.1 L32 132.9 L40 130.8 L48 128.7 L56 127.2 L64 126.7 L72 127.4 L80 128.8 L88 130.4 L96 131.6 L104 132.1 L112 131.8 L120 131.0 L128 130.3 L136 130.3 L144 131.3 L152 133.4 L160 136.2 L168 138.9 L176 140.7 L184 141.0 L192 139.5 L200 136.2 L208 131.8 L216 127.1 L224 122.7 L232 119.2 L240 116.8 L248 115.2 L256 113.9 L264 112.4 L272 110.3 L280 107.6 L288 104.6 L296 102.0 L304 100.4 L312 100.4 L320 101.8 L328 104.6 L336 107.9 L344 111.0 L352 113.1 L360 113.7 L368 113.0 L376 111.2 L384 109.0 L392 107.3 L400 106.4 L408 106.5 L416 107.5 L424 108.8 L432 109.8 L440 110.2 L448 110.0 L456 109.3 L464 108.8 L472 109.2 L480 111.1 L488 114.5 L496 119.3 L504 124.8 L512 130.3 L520 134.7 L528 137.7 L536 139.0 L544 139.0 L552 138.2 L560 137.4 L568 136.9 L576 137.0 L584 137.5 L592 137.9 L600 137.7 L608 136.5 L616 134.1 L624 130.8 L632 127.4 L640 124.5 L648 122.8 L656 122.6 L664 123.9 L672 126.1 L680 128.5 L688 130.3 L696 130.9 L704 130.0 L712 127.9 L720 125.2 L728 122.4 L736 120.1 L744 118.4 L752 117.4 L760 116.4 L768 115.0 L776 112.7 L784 109.3 L792 105.1 L800 100.7 L808 96.9 L816 94.6 L824 94.0 L832 95.3 L840 98.1 L848 101.6 L856 105.1 L864 107.9 L872 109.7 L880 110.5 L888 111.0 L896 111.5 L904 112.6 L912 114.5 L920 117.0 L928 119.7 L936 121.8 L944 122.8 L952 122.5 L960 121.0 L968 118.9 L976 117.0 L984 115.9 L992 116.4 L1000 118.4 L1008 121.8 L1016 125.9 L1024 130.0 L1032 133.2 L1040 135.4 L1048 136.6 L1056 137.0 L1064 137.4 L1072 138.0 L1080 139.3 L1088 141.0 L1096 142.6 L1104 143.5 L1112 143.0 L1120 140.9 L1128 137.2 L1136 132.4 L1144 127.2 L1152 122.6 L1160 119.2 L1168 117.4 L1176 116.9 L1184 117.3 L1192 117.9 L1200 118.0 L1208 117.4 L1216 116.1 L1224 114.4 L1232 112.8 L1240 112.0 L1248 112.2 L1256 113.2 L1264 114.6 L1272 115.7 L1280 115.9 L1288 114.6 L1296 111.9 L1304 108.0 L1312 103.8 L1320 100.1 L1328 97.7 L1336 96.8 L1344 97.4 L1352 99.2 L1360 101.5 L1368 103.7 L1376 105.4 L1384 106.5 L1392 107.5 L1400 108.7 L1408 110.9 L1416 114.1 L1424 118.4 L1432 123.2 L1440 127.9 L1440 240 L0 240 Z' fill='%23a9c2bb' fill-opacity='0.11'/%3E %3Cpath d='M0 127.9 L8 131.6 L16 133.7 L24 134.1 L32 132.9 L40 130.8 L48 128.7 L56 127.2 L64 126.7 L72 127.4 L80 128.8 L88 130.4 L96 131.6 L104 132.1 L112 131.8 L120 131.0 L128 130.3 L136 130.3 L144 131.3 L152 133.4 L160 136.2 L168 138.9 L176 140.7 L184 141.0 L192 139.5 L200 136.2 L208 131.8 L216 127.1 L224 122.7 L232 119.2 L240 116.8 L248 115.2 L256 113.9 L264 112.4 L272 110.3 L280 107.6 L288 104.6 L296 102.0 L304 100.4 L312 100.4 L320 101.8 L328 104.6 L336 107.9 L344 111.0 L352 113.1 L360 113.7 L368 113.0 L376 111.2 L384 109.0 L392 107.3 L400 106.4 L408 106.5 L416 107.5 L424 108.8 L432 109.8 L440 110.2 L448 110.0 L456 109.3 L464 108.8 L472 109.2 L480 111.1 L488 114.5 L496 119.3 L504 124.8 L512 130.3 L520 134.7 L528 137.7 L536 139.0 L544 139.0 L552 138.2 L560 137.4 L568 136.9 L576 137.0 L584 137.5 L592 137.9 L600 137.7 L608 136.5 L616 134.1 L624 130.8 L632 127.4 L640 124.5 L648 122.8 L656 122.6 L664 123.9 L672 126.1 L680 128.5 L688 130.3 L696 130.9 L704 130.0 L712 127.9 L720 125.2 L728 122.4 L736 120.1 L744 118.4 L752 117.4 L760 116.4 L768 115.0 L776 112.7 L784 109.3 L792 105.1 L800 100.7 L808 96.9 L816 94.6 L824 94.0 L832 95.3 L840 98.1 L848 101.6 L856 105.1 L864 107.9 L872 109.7 L880 110.5 L888 111.0 L896 111.5 L904 112.6 L912 114.5 L920 117.0 L928 119.7 L936 121.8 L944 122.8 L952 122.5 L960 121.0 L968 118.9 L976 117.0 L984 115.9 L992 116.4 L1000 118.4 L1008 121.8 L1016 125.9 L1024 130.0 L1032 133.2 L1040 135.4 L1048 136.6 L1056 137.0 L1064 137.4 L1072 138.0 L1080 139.3 L1088 141.0 L1096 142.6 L1104 143.5 L1112 143.0 L1120 140.9 L1128 137.2 L1136 132.4 L1144 127.2 L1152 122.6 L1160 119.2 L1168 117.4 L1176 116.9 L1184 117.3 L1192 117.9 L1200 118.0 L1208 117.4 L1216 116.1 L1224 114.4 L1232 112.8 L1240 112.0 L1248 112.2 L1256 113.2 L1264 114.6 L1272 115.7 L1280 115.9 L1288 114.6 L1296 111.9 L1304 108.0 L1312 103.8 L1320 100.1 L1328 97.7 L1336 96.8 L1344 97.4 L1352 99.2 L1360 101.5 L1368 103.7 L1376 105.4 L1384 106.5 L1392 107.5 L1400 108.7 L1408 110.9 L1416 114.1 L1424 118.4 L1432 123.2 L1440 127.9' fill='none' stroke='%23d6e8e1' stroke-opacity='0.22' stroke-width='2'/%3E%3C/svg%3E"); animation: pd-swell-a 110s linear infinite; }
html.tbl body.gamepage .board::after { bottom: 0; height: 40%; z-index: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E %3Cpath d='M0 113.7 L8 114.6 L16 113.3 L24 110.4 L32 107.2 L40 104.6 L48 102.7 L56 100.9 L64 98.5 L72 94.8 L80 90.3 L88 86.2 L96 83.7 L104 83.7 L112 86.0 L120 89.3 L128 92.3 L136 94.0 L144 94.4 L152 94.3 L160 94.6 L168 96.0 L176 98.2 L184 100.2 L192 101.0 L200 100.4 L208 99.0 L216 98.1 L224 98.8 L232 101.5 L240 105.7 L248 110.0 L256 113.2 L264 114.5 L272 114.2 L280 113.3 L288 112.5 L296 112.3 L304 112.0 L312 110.6 L320 107.4 L328 102.6 L336 97.1 L344 92.5 L352 89.9 L360 89.5 L368 90.7 L376 92.1 L384 92.8 L392 92.3 L400 91.4 L408 91.0 L416 91.7 L424 93.4 L432 95.2 L440 96.0 L448 95.3 L456 93.3 L464 91.3 L472 90.5 L480 92.0 L488 95.5 L496 99.9 L504 104.1 L512 107.0 L520 108.7 L528 109.8 L536 111.3 L544 113.5 L552 115.8 L560 117.1 L568 116.4 L576 113.4 L584 108.7 L592 103.9 L600 100.2 L608 98.4 L616 98.1 L624 98.4 L632 98.1 L640 96.8 L648 95.0 L656 93.5 L664 93.2 L672 94.2 L680 95.6 L688 96.3 L696 95.2 L704 92.5 L712 89.0 L720 86.3 L728 85.4 L736 86.7 L744 89.6 L752 92.8 L760 95.4 L768 97.3 L776 99.1 L784 101.5 L792 105.2 L800 109.7 L808 113.8 L816 116.3 L824 116.3 L832 114.0 L840 110.7 L848 107.7 L856 106.0 L864 105.6 L872 105.7 L880 105.4 L888 104.0 L896 101.8 L904 99.8 L912 99.0 L920 99.6 L928 101.0 L936 101.9 L944 101.2 L952 98.5 L960 94.3 L968 90.0 L976 86.8 L984 85.5 L992 85.8 L1000 86.7 L1008 87.5 L1016 87.7 L1024 88.0 L1032 89.4 L1040 92.6 L1048 97.4 L1056 102.9 L1064 107.5 L1072 110.1 L1080 110.5 L1088 109.3 L1096 107.9 L1104 107.2 L1112 107.7 L1120 108.6 L1128 109.0 L1136 108.3 L1144 106.6 L1152 104.8 L1160 104.0 L1168 104.7 L1176 106.7 L1184 108.7 L1192 109.5 L1200 108.0 L1208 104.5 L1216 100.1 L1224 95.9 L1232 93.0 L1240 91.3 L1248 90.2 L1256 88.7 L1264 86.5 L1272 84.2 L1280 82.9 L1288 83.6 L1296 86.6 L1304 91.3 L1312 96.1 L1320 99.8 L1328 101.6 L1336 101.9 L1344 101.6 L1352 101.9 L1360 103.2 L1368 105.0 L1376 106.5 L1384 106.8 L1392 105.8 L1400 104.4 L1408 103.7 L1416 104.8 L1424 107.5 L1432 111.0 L1440 113.7 L1440 200 L0 200 Z' fill='%23050b0d' fill-opacity='0.16'/%3E %3Cpath d='M0 113.7 L8 114.6 L16 113.3 L24 110.4 L32 107.2 L40 104.6 L48 102.7 L56 100.9 L64 98.5 L72 94.8 L80 90.3 L88 86.2 L96 83.7 L104 83.7 L112 86.0 L120 89.3 L128 92.3 L136 94.0 L144 94.4 L152 94.3 L160 94.6 L168 96.0 L176 98.2 L184 100.2 L192 101.0 L200 100.4 L208 99.0 L216 98.1 L224 98.8 L232 101.5 L240 105.7 L248 110.0 L256 113.2 L264 114.5 L272 114.2 L280 113.3 L288 112.5 L296 112.3 L304 112.0 L312 110.6 L320 107.4 L328 102.6 L336 97.1 L344 92.5 L352 89.9 L360 89.5 L368 90.7 L376 92.1 L384 92.8 L392 92.3 L400 91.4 L408 91.0 L416 91.7 L424 93.4 L432 95.2 L440 96.0 L448 95.3 L456 93.3 L464 91.3 L472 90.5 L480 92.0 L488 95.5 L496 99.9 L504 104.1 L512 107.0 L520 108.7 L528 109.8 L536 111.3 L544 113.5 L552 115.8 L560 117.1 L568 116.4 L576 113.4 L584 108.7 L592 103.9 L600 100.2 L608 98.4 L616 98.1 L624 98.4 L632 98.1 L640 96.8 L648 95.0 L656 93.5 L664 93.2 L672 94.2 L680 95.6 L688 96.3 L696 95.2 L704 92.5 L712 89.0 L720 86.3 L728 85.4 L736 86.7 L744 89.6 L752 92.8 L760 95.4 L768 97.3 L776 99.1 L784 101.5 L792 105.2 L800 109.7 L808 113.8 L816 116.3 L824 116.3 L832 114.0 L840 110.7 L848 107.7 L856 106.0 L864 105.6 L872 105.7 L880 105.4 L888 104.0 L896 101.8 L904 99.8 L912 99.0 L920 99.6 L928 101.0 L936 101.9 L944 101.2 L952 98.5 L960 94.3 L968 90.0 L976 86.8 L984 85.5 L992 85.8 L1000 86.7 L1008 87.5 L1016 87.7 L1024 88.0 L1032 89.4 L1040 92.6 L1048 97.4 L1056 102.9 L1064 107.5 L1072 110.1 L1080 110.5 L1088 109.3 L1096 107.9 L1104 107.2 L1112 107.7 L1120 108.6 L1128 109.0 L1136 108.3 L1144 106.6 L1152 104.8 L1160 104.0 L1168 104.7 L1176 106.7 L1184 108.7 L1192 109.5 L1200 108.0 L1208 104.5 L1216 100.1 L1224 95.9 L1232 93.0 L1240 91.3 L1248 90.2 L1256 88.7 L1264 86.5 L1272 84.2 L1280 82.9 L1288 83.6 L1296 86.6 L1304 91.3 L1312 96.1 L1320 99.8 L1328 101.6 L1336 101.9 L1344 101.6 L1352 101.9 L1360 103.2 L1368 105.0 L1376 106.5 L1384 106.8 L1392 105.8 L1400 104.4 L1408 103.7 L1416 104.8 L1424 107.5 L1432 111.0 L1440 113.7' fill='none' stroke='%23c4dbd4' stroke-opacity='0.16' stroke-width='2'/%3E%3C/svg%3E"); animation: pd-swell-b 68s linear infinite; }
@keyframes pd-swell-a { 0% { transform: translate(0, 0); } 25% { transform: translate(-12.5%, 5px); } 50% { transform: translate(-25%, 0); } 75% { transform: translate(-37.5%, -4px); } 100% { transform: translate(-50%, 0); } }
@keyframes pd-swell-b { 0% { transform: translate(-50%, 0); } 30% { transform: translate(-33%, -6px); } 60% { transform: translate(-16%, 3px); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { html.tbl body.gamepage .board::before, html.tbl body.gamepage .board::after { animation: none; } }
html.tbl body.gamepage .board .boardslot { position: relative; z-index: 2; }
.board::before, .board::after { background: repeating-linear-gradient(115deg, #3a2c1a 0 5px, #6b5426 5px 8px, #8a6e30 8px 10px); opacity: .8; }
.board-top { background: linear-gradient(90deg, transparent, rgba(214, 187, 118, .3), transparent) bottom / 100% 1px no-repeat; }
.orderbar { color: #cdd8d4; }
.orderbar .obi em { color: #eef3f0; }
.orderbar .obi.first em { color: var(--brass-hi); }
.dockrow { background: transparent; }

/* table mode: the Modifier strip and the log drawer button, in the same timber */
html.tbl body.gamepage .modstrip {
  background-color: #1d140e;
  background-image: radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), radial-gradient(circle at 5px 5px, #cfc6b0 0 .7px, #8c8674 1.3px 2.1px, #1d1915 2.8px 3.7px, transparent 4.1px), linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .35)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='192'%3E %3Cdefs%3E %3Cfilter id='dk' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .26' numOctaves='4' seed='3' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .03 0 0 0 0 .02 0 0 0 0 .01 1.0 0 0 0 -.40'/%3E%3C/filter%3E %3Cfilter id='lt' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .34' numOctaves='3' seed='9' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .40 0 0 0 0 .22 0 1.0 0 0 -.52'/%3E%3C/filter%3E %3C/defs%3E %3Crect width='640' height='192' filter='url(%23lt)'/%3E %3Crect width='640' height='192' filter='url(%23dk)'/%3E %3Crect y='0' width='640' height='64' fill='%23fff' fill-opacity='.015'/%3E%3Crect y='64' width='640' height='64' fill='%23000' fill-opacity='.07'/%3E%3Crect y='128' width='640' height='64' fill='%23fff' fill-opacity='.03'/%3E %3Cg stroke='%230a0604' stroke-opacity='.5' stroke-width='1.4'%3E%3Cpath d='M0 .8H640M0 64.8H640M0 128.8H640'/%3E%3C/g%3E %3Cg stroke='%23ffd9a0' stroke-opacity='.035' stroke-width='1.2'%3E%3Cpath d='M0 2.4H640M0 66.4H640M0 130.4H640'/%3E%3C/g%3E %3Cg stroke='%230a0604' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M214 0V64M470 64V128M70 128V192M560 128V192'/%3E%3C/g%3E %3Cg fill='%230a0604' fill-opacity='.28'%3E%3Ccircle cx='222' cy='9' r='1.6'/%3E%3Ccircle cx='222' cy='55' r='1.6'/%3E%3Ccircle cx='478' cy='73' r='1.6'/%3E%3Ccircle cx='478' cy='119' r='1.6'/%3E%3Ccircle cx='78' cy='137' r='1.6'/%3E%3Ccircle cx='78' cy='183' r='1.6'/%3E%3Ccircle cx='568' cy='137' r='1.6'/%3E%3Ccircle cx='568' cy='183' r='1.6'/%3E%3C/g%3E %3C/svg%3E");
  background-position: 0 0, 100% 0, 0 100%, 100% 100%, 0 0, 0 0;
  background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, 100% 100%, 640px 192px;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  border: 3px solid var(--iron); border-radius: 7px; box-shadow: inset 0 0 26px rgba(0, 0, 0, .6), 0 0 0 1px rgba(160, 145, 118, .16), 0 14px 30px rgba(0, 0, 0, .6); }
html.tbl body.gamepage .modstrip h2 { color: #e0c27a; text-shadow: 0 -1px 0 #000; }
html.tbl body.gamepage .modtext { color: #e6dabd; }
html.tbl body.gamepage .logexpand { background: linear-gradient(180deg, #b8923e, #7c5a1c); color: #fff4d6; border-color: #3b2a0c; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
html.tbl body.gamepage .logexpand:hover { background: linear-gradient(180deg, #caa54a, #8c6824); }
html.tbl body.gamepage .logpanel.open { box-shadow: 0 0 0 2px rgba(214, 187, 118, .7), 0 18px 46px rgba(0, 0, 0, .75); }
html.tbl body.gamepage .wrap:has(> .panel.yourmove.decide) .board { filter: brightness(.5) saturate(.7); }

/* buttons: oxblood lacquer */
button, .btn { background: linear-gradient(180deg, #8f2a22, #62170f); }
button.secondary, .btn.secondary { background: linear-gradient(180deg, #5c5144, #40372d); }
button:disabled { background: #4a4238; color: #9a8f7e; }
