/* The ferry ticket and the dusk sea behind it: the start screen (index.html), the gate (gate.html, 404.html)
   and the sea behind the passenger card (js/creator.js) all draw from this one file, so they always match.
   CSS and tiny inline SVG only (paper grain, ink, the guilloche band, the water lines): no image files.

   Layers of the sea, back to front:
     .start-sea        the sky (the game's dusk gradient), its afterglow, a few stars, the lamp's path on the water
     ::before          far hills on the horizon, hazy
     .sea-fog          a mist bank, and (::after) a fainter one drifting the other way
     .sea-isle         the near island with the lighthouse (inline SVG in the page)
     .sea-beam         the lighthouse's slow sweep
     .sea-swell        the water: lines closer together the further away, glints; (::before) low mist on the
                       horizon; (::after) the near swell rolling in
     ::after           the lamp itself, flaring as the beam comes round */

/* ---------- the sea at dusk ---------- */
.start-sea {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 85% 75% at 50% 46%, transparent 58%, rgba(4, 9, 16, .42)),
    radial-gradient(1.3px 1.3px at 13% 12%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 31% 22%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.2px 1.2px at 58% 9%, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1px 1px at 84% 17%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1px 1px at 92% 6%, rgba(255, 255, 255, .55), transparent),
    linear-gradient(rgba(10, 17, 30, .5), transparent 40%),
    radial-gradient(46% 13% at 24% 56%, rgba(236, 170, 118, .26), transparent 72%),
    radial-gradient(40% 7% at 24% 57.5%, rgba(236, 170, 118, .12), transparent 72%),
    radial-gradient(1.4% 20% at 86.25% 57%, rgba(255, 228, 168, .2), transparent 75%),
    linear-gradient(transparent calc(56% - 1px), rgba(214, 220, 230, .32) 56%, transparent calc(56% + 2px)),
    linear-gradient(#22344a 0%, #4b5d74 45%, #8a8f98 56%, #3e5266 57%, #22313f 100%);
}
/* far hills, pale with distance (the near island is the dark one) */
.start-sea::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(56% - 22px); height: 23px; opacity: .9;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 23' preserveAspectRatio='none'><path fill='%233b4b5f' d='M0 23V15c40-3 70-9 110-8 30-6 64-7 96-2 34-5 70-4 104 2 40-4 74 0 110 6l60 10zM1210 23c40-7 84-11 132-10 34-2 66 1 98 4v6z'/></svg>") 0 100% / 100% 100% no-repeat;
}
/* the lamp at the top of the lighthouse (the tower is in .sea-isle's drawing, at 86.25% across) */
.start-sea::after {
  content: ""; position: absolute; left: 86.25%; top: calc(56% - 37.5px); width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: radial-gradient(circle, #fff7e0 0 1.5px, rgba(255, 232, 170, .62) 3px, rgba(255, 220, 150, .16) 11px, transparent 35px);
  mix-blend-mode: screen; animation: sea-lamp 12s ease-in-out infinite;
}
@keyframes sea-lamp { 0%, 100% { opacity: .55; transform: scale(.9); } 3% { opacity: 1; transform: scale(1.4); } 14% { opacity: .68; transform: scale(1); } }

.sea-fog {
  position: absolute; left: -10%; right: -10%; top: 46%; height: 120px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(200, 204, 211, .5), rgba(200, 204, 211, .2) 50%, transparent 74%);
  animation: fog-drift 18s ease-in-out infinite alternate;
}
.sea-fog::after {
  content: ""; position: absolute; left: 18%; right: -24%; top: 62%; height: 60%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(214, 218, 226, .3), transparent 72%);
  animation: fog-drift-back 31s ease-in-out infinite alternate;
}
@keyframes fog-drift { to { transform: translateX(4%); } }
@keyframes fog-drift-back { to { transform: translateX(-9%); } }

.sea-isle { position: absolute; left: 0; width: 100%; top: calc(56% - 46px); height: 48px; fill: #1a2532; }

.sea-beam {
  position: absolute; left: 86.25%; top: calc(56% - 37.5px); width: 900px; height: 64px; margin-top: -32px; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 246, 208, .62), rgba(255, 240, 200, .16) 45%, transparent 75%);
  clip-path: polygon(0 47%, 100% 0, 100% 100%, 0 53%); filter: blur(2px); opacity: 0;
  animation: beam 12s linear infinite;
}
@keyframes beam { 0% { transform: rotate(-200deg); opacity: 0; } 6% { opacity: 1; } 40% { opacity: .9; } 50% { transform: rotate(-140deg); opacity: 0; } 100% { transform: rotate(-140deg); opacity: 0; } }

/* the water, from the horizon down: lines closer together the further off, a few glints */
.sea-swell {
  position: absolute; left: -3%; right: -3%; top: 56%; bottom: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='80'><g stroke='white' stroke-linecap='round' fill='none'><path stroke-opacity='.08' stroke-width='1.1' d='M14 9h16M152 15h22M84 33h9M196 47h13M36 55h18M118 68h24M222 74h7M62 25h5'/><path stroke-opacity='.04' d='M100 4h10M8 40h7M170 34h12M140 52h6M58 77h10'/></g></svg>") 0 18px / 240px 80px,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'><g fill='none' stroke='white' stroke-width='1' stroke-linecap='round' vector-effect='non-scaling-stroke'><path d='M-333 .6q62.5 -.16 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.032' stroke-dasharray='140 40 70 30 110 50' stroke-dashoffset='57'/><path d='M-416 2.2q62.5 -.18 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.035' stroke-dasharray='60 20 120 35 200 40' stroke-dashoffset='114'/><path d='M-499 4.7q62.5 -.21 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.037' stroke-dasharray='110 45 80 25 150 30' stroke-dashoffset='171'/><path d='M-332 8.1q62.5 -.26 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.039' stroke-dasharray='90 30 160 45 60 25' stroke-dashoffset='28'/><path d='M-415 12.4q62.5 -.33 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.042' stroke-dasharray='140 40 70 30 110 50' stroke-dashoffset='85'/><path d='M-498 17.5q62.5 -.41 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.044' stroke-dasharray='60 20 120 35 200 40' stroke-dashoffset='142'/><path d='M-331 23.5q62.5 -.5 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.046' stroke-dasharray='110 45 80 25 150 30' stroke-dashoffset='199'/><path d='M-414 30.3q62.5 -.61 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.049' stroke-dasharray='90 30 160 45 60 25' stroke-dashoffset='56'/><path d='M-497 37.9q62.5 -.73 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.051' stroke-dasharray='140 40 70 30 110 50' stroke-dashoffset='113'/><path d='M-330 46.3q62.5 -.86 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.053' stroke-dasharray='60 20 120 35 200 40' stroke-dashoffset='170'/><path d='M-413 55.5q62.5 -1.01 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.056' stroke-dasharray='110 45 80 25 150 30' stroke-dashoffset='27'/><path d='M-496 65.4q62.5 -1.17 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.058' stroke-dasharray='90 30 160 45 60 25' stroke-dashoffset='84'/><path d='M-329 76.2q62.5 -1.35 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.06' stroke-dasharray='140 40 70 30 110 50' stroke-dashoffset='141'/><path d='M-412 87.7q62.5 -1.54 125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0t125 0' stroke-opacity='.063' stroke-dasharray='60 20 120 35 200 40' stroke-dashoffset='198'/></g></svg>") 0 0 / 100% 100% no-repeat;
  animation: sea-sway 17s ease-in-out infinite alternate, sea-breathe 7s ease-in-out infinite alternate;
}
@keyframes sea-sway { from { transform: translateX(-1.2%); } to { transform: translateX(1.2%); } }
@keyframes sea-breathe { to { translate: 0 2px; } }
/* low mist lying on the water, in front of the island */
.sea-swell::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -26px; height: 52px;
  background: radial-gradient(ellipse 34% 50% at 30% 50%, rgba(206, 212, 222, .22), transparent 70%), radial-gradient(ellipse 30% 46% at 78% 50%, rgba(206, 212, 222, .18), transparent 70%);
  animation: fog-drift 26s ease-in-out infinite alternate-reverse;
}
/* the near swell, rolling in slowly */
.sea-swell::after {
  content: ""; position: absolute; left: -600px; right: 0; bottom: 0; height: 48%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='70' preserveAspectRatio='none'><path d='M0 34C90 18 160 18 300 34S510 50 600 34V70H0Z' fill='%23071019' fill-opacity='.24'/><path d='M0 34C90 18 160 18 300 34S510 50 600 34' fill='none' stroke='white' stroke-opacity='.07'/></svg>") 0 100% / 600px 72px repeat-x,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='70' preserveAspectRatio='none'><path d='M0 34C90 18 160 18 300 34S510 50 600 34V70H0Z' fill='%23071019' fill-opacity='.18'/><path d='M0 34C90 18 160 18 300 34S510 50 600 34' fill='none' stroke='white' stroke-opacity='.05'/></svg>") 220px calc(100% - 58px) / 600px 40px repeat-x;
  animation: sea-roll 70s linear infinite;
}
@keyframes sea-roll { to { transform: translateX(600px); } }

/* ---------- the ticket: printed card, its stub, torn along punched holes ---------- */
.tk {
  --tk-ink: #1d3557;
  --tk-paper:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .34 0 0 0 0 .25 0 0 0 0 .12 .9 0 0 0 -.46'/></filter><rect width='180' height='180' filter='url(%23g)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.03 .5' numOctaves='2' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .18 1.5 0 0 0 -1'/></filter><rect width='320' height='320' filter='url(%23f)'/></svg>"),
    radial-gradient(ellipse at 20% 16%, rgba(255, 251, 240, .9), transparent 58%),
    radial-gradient(ellipse at 96% 108%, rgba(150, 116, 62, .16), transparent 52%),
    linear-gradient(#f3e8cd, #e8d9b4);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; width: min(790px, calc(100vw - 40px));
  transform: rotate(-2deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}
.tk-main, .tk-stub {
  position: relative; min-width: 0; color: var(--tk-ink); background: var(--tk-paper);
  box-shadow: inset 0 0 0 1px rgba(120, 92, 48, .12), inset 0 0 28px rgba(150, 115, 60, .15);
}
/* the holes: half on each part's torn edge, so together they're punched right through */
.tk-main {
  min-height: 300px; padding: 30px 36px 64px; border-radius: 10px 0 0 10px;
  -webkit-mask: radial-gradient(circle 12px at 100% 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 98%, #000) bottom right / 100% 51% no-repeat;
  mask: radial-gradient(circle 2.6px at 100% 50%, transparent 90%, #000) 0 0 / 100% 11px repeat-y, radial-gradient(circle 12px at 100% 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 98%, #000) bottom right / 100% 51% no-repeat;
  mask-composite: intersect, add, add;
}
.tk-stub {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 26px 22px 22px 30px; border-radius: 0 10px 10px 0;
  box-shadow: inset 1px 0 0 rgba(120, 92, 48, .2), inset 0 0 0 1px rgba(120, 92, 48, .12), inset 0 0 28px rgba(150, 115, 60, .15);
  -webkit-mask: radial-gradient(circle 12px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat;
  mask: radial-gradient(circle 2.6px at 0 50%, transparent 90%, #000) 0 0 / 100% 11px repeat-y, radial-gradient(circle 12px at 0 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, transparent 98%, #000) bottom left / 100% 51% no-repeat;
  mask-composite: intersect, add, add;
}
/* the printed border: a fine double rule */
.tk-main::before, .tk-stub::before {
  content: ""; position: absolute; inset: 10px 18px 10px 10px; border: 1px solid rgba(29, 53, 87, .26); border-radius: 5px;
  outline: 1px solid rgba(29, 53, 87, .14); outline-offset: -4px; pointer-events: none;
}
.tk-stub::before { inset: 10px 10px 10px 18px; }
/* handled: a soft fold across the card, the top corner worn white with a crease, a thumb-darkened corner */
.tk-main::after, .tk-stub::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tk-main::after {
  background:
    linear-gradient(135deg, rgba(255, 251, 240, .5) 0 11px, rgba(124, 94, 48, .2) 11.6px, rgba(124, 94, 48, 0) 15px),
    linear-gradient(90deg, transparent calc(42% - 16px), rgba(110, 84, 40, .05) calc(42% - 1px), rgba(255, 253, 244, .34) 42%, rgba(110, 84, 40, .07) calc(42% + 1.5px), transparent calc(42% + 18px)),
    radial-gradient(ellipse 28% 24% at 0 100%, rgba(120, 90, 45, .12), transparent 72%);
}
.tk-stub::after { background: radial-gradient(ellipse 40% 22% at 100% 100%, rgba(120, 90, 45, .12), transparent 72%); }

/* ---------- printing ---------- */
/* letterpress: the ink sits a little into the paper and bleeds a hair */
.tk-co, .tk-route, .tk-fine, .tk-k { text-shadow: 0 0 .6px rgba(29, 53, 87, .5), 0 .5px 0 rgba(255, 252, 240, .5); }
.tk-co { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font: 700 13px "Courier Prime", ui-monospace, monospace; letter-spacing: .18em; }
/* the guilloché band under the company's name, as on real tickets */
.tk-co::after {
  content: ""; flex: 0 0 100%; height: 10px; border-block: 1px solid rgba(29, 53, 87, .26);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='8'><defs><path id='w' d='M-24 4c3-3.4 9-3.4 12 0s9 3.4 12 0 9-3.4 12 0 9 3.4 12 0 9-3.4 12 0 9 3.4 12 0'/></defs><g fill='none' stroke='%231d3557' stroke-width='.5' stroke-opacity='.42'><use href='%23w'/><use href='%23w' x='6'/><use href='%23w' x='12'/><use href='%23w' x='18'/></g></svg>") 0 50% / 24px 8px repeat-x;
}
/* the serial number, in the numbering machine's red */
.tk-no { color: #a3241c; text-shadow: 0 0 .6px rgba(163, 36, 28, .55); letter-spacing: .16em; }
.tk-route { margin: 12px 0 6px; font: 400 14px "Courier Prime", ui-monospace, monospace; letter-spacing: .1em; color: #5a5040; }
.tk-title {
  margin: 0; display: flex; flex-direction: column; font: 400 clamp(40px, 7.4vw, 66px)/.98 "Alfa Slab One", Georgia, serif; color: var(--tk-ink); letter-spacing: .5px;
  text-shadow: 0 1px 0 rgba(255, 252, 240, .45), 0 0 1px rgba(29, 53, 87, .45);
  /* uneven ink: the big type never takes the colour quite evenly */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='i'><feTurbulence type='fractalNoise' baseFrequency='.07' numOctaves='3' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 1.64'/></filter><rect width='260' height='260' filter='url(%23i)'/></svg>") 0 0 / 260px 260px;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='i'><feTurbulence type='fractalNoise' baseFrequency='.07' numOctaves='3' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 1.64'/></filter><rect width='260' height='260' filter='url(%23i)'/></svg>") 0 0 / 260px 260px;
}
.tk-fine { position: absolute; left: 36px; right: 36px; bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 400 12px "Courier Prime", ui-monospace, monospace; color: #6b6052; letter-spacing: .06em; }
.tk-k { font: 700 11px "Courier Prime", ui-monospace, monospace; letter-spacing: .2em; color: var(--tk-ink); }
.tk-name { margin-top: -4px; font: 400 28px/1 "Reenie Beanie", cursive; color: #1f2233; min-height: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- stamps: rubber, so the ink never covers evenly ---------- */
.tk-stamp {
  position: absolute; right: 38px; bottom: 60px; padding: 7px 14px; border: 4px solid currentColor; border-radius: 6px;
  color: #c62828; font: 400 23px/1 "Special Elite", ui-monospace, monospace; letter-spacing: .06em; white-space: nowrap;
  transform: rotate(-14deg); opacity: .86; mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/></filter><rect width='120' height='60' filter='url(%23n)'/></svg>");
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/></filter><rect width='120' height='60' filter='url(%23n)'/></svg>");
}
/* the date stamp at the booking office: violet ink, a double rule, pressed a little crooked */
.tk-date {
  display: inline-block; padding: 4px 9px 3px; border: 1.5px solid currentColor; border-radius: 3px; outline: 1px solid currentColor; outline-offset: 2px;
  color: #4f3d8a; font: 700 11.5px/1.1 "Courier Prime", ui-monospace, monospace; letter-spacing: .12em; white-space: nowrap;
  transform: rotate(-4deg) translateY(-2px); opacity: .84; mix-blend-mode: multiply; text-shadow: 0 0 .7px rgba(79, 61, 138, .6);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='40'><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 0 0 0 2.5'/></filter><rect width='90' height='40' filter='url(%23d)'/></svg>") 0 0 / 90px 40px;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='40'><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 0 0 0 2.5'/></filter><rect width='90' height='40' filter='url(%23d)'/></svg>") 0 0 / 90px 40px;
}

/* ---------- a phone: the stub under the card, torn along the top ---------- */
@media (max-width: 640px) {
  .tk { grid-template-columns: minmax(0, 1fr); transform: rotate(-1deg); }
  .tk-main {
    min-height: 0; padding: 22px 22px 84px; border-radius: 10px 10px 0 0;
    -webkit-mask: radial-gradient(circle 12px at 0 100%, transparent 98%, #000) bottom left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 98%, #000) bottom right / 51% 100% no-repeat;
    mask: radial-gradient(circle 2.6px at 50% 100%, transparent 90%, #000) 0 0 / 11px 100% repeat-x, radial-gradient(circle 12px at 0 100%, transparent 98%, #000) bottom left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 98%, #000) bottom right / 51% 100% no-repeat;
    mask-composite: intersect, add, add;
  }
  .tk-stub {
    padding: 26px 22px 20px; border-radius: 0 0 10px 10px;
    box-shadow: inset 0 1px 0 rgba(120, 92, 48, .2), inset 0 0 0 1px rgba(120, 92, 48, .12), inset 0 0 28px rgba(150, 115, 60, .15);
    -webkit-mask: radial-gradient(circle 12px at 0 0, transparent 98%, #000) top left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, transparent 98%, #000) top right / 51% 100% no-repeat;
    mask: radial-gradient(circle 2.6px at 50% 0, transparent 90%, #000) 0 0 / 11px 100% repeat-x, radial-gradient(circle 12px at 0 0, transparent 98%, #000) top left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, transparent 98%, #000) top right / 51% 100% no-repeat;
    mask-composite: intersect, add, add;
  }
  .tk-main::before { inset: 8px 8px 16px 8px; }
  .tk-stub::before { inset: 16px 8px 8px 8px; }
  .tk-main::after { background: linear-gradient(135deg, rgba(255, 251, 240, .5) 0 10px, rgba(124, 94, 48, .2) 10.6px, rgba(124, 94, 48, 0) 14px), radial-gradient(ellipse 28% 24% at 0 100%, rgba(120, 90, 45, .1), transparent 72%); }
  .tk-co span:last-child { display: none; }
  .tk-route { font-size: 11px; }
  .tk-stamp { right: 14px; bottom: 62px; font-size: 14px; padding: 5px 9px; border-width: 3px; }
  .tk-fine { left: 22px; right: 22px; bottom: 18px; font-size: 10.5px; }
  .tk-fine > span:last-child:not(:first-child) { display: none; }     /* (the second line of small print: no room) */
  .tk-date { font-size: 10px; padding: 3px 6px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .start-sea::after, .sea-fog, .sea-fog::after, .sea-swell, .sea-swell::before, .sea-swell::after { animation: none; }
  .sea-beam { animation: none; transform: rotate(-165deg); opacity: .5; }
}
