/* The skin. Everything the player touches is made of something: slabs of dark stone in frames of
   beaten bronze, studs and plaques to press, and parchment for whatever is written out to be read.
   Nothing here is a card, a pill or a link. This sheet dresses what the others lay out: it is
   loaded after them (and before touch.css, which has the last word on a touch screen), and it
   changes how things look, never where they are or what they do.
   All of it is drawn here, in gradients and a little noise: there are no pictures to load. */

/* The capitals are Cinzel, by Natanael Gama (the Cinzel Project Authors), which comes with the
   game under the SIL Open Font License: vendor/fonts/cinzel/OFL.txt. One file holds every weight. */
@font-face {
  font-family: 'Cinzel';
  src: url('../vendor/fonts/cinzel/Cinzel-Variable.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Lettering: capitals cut in stone for names and buttons, and a flared hand for the small print. */
  --display: 'Cinzel', 'Trajan Pro 3', 'Trajan Pro', Copperplate, 'Copperplate Gothic Bold', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: Optima, Candara, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  /* The grain of the stone, and the fibre of the parchment. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.1 0 0 0 -0.5'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.09' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.27 0 0 0 0 0.08 1.4 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
  --stone-top: #2f3846;
  --stone-foot: #171c25;
  --bronze: linear-gradient(180deg, #f8e2a2 0%, #d6a74b 26%, #8a601f 54%, #c4953d 78%, #f3d78d 100%);
  --bronze-lit: linear-gradient(180deg, #fff6d0 0%, #f0c466 30%, #b07f2c 56%, #e2b556 80%, #fff0bb 100%);
  --parch-top: #f4e9ca;
  --parch-foot: #dfcd9d;
  --quill: #2b2012; /* ink on parchment */
  --rubric: #8a2f12; /* the red a scribe keeps for headings */
  /* What used to be glass is stone, and stone does not blur what is behind it. */
  --glass: var(--grain), linear-gradient(180deg, var(--stone-top), var(--stone-foot));
  --glass-solid: var(--grain), linear-gradient(180deg, var(--stone-top), var(--stone-foot));
  --blur: none;
  --radius: 6px;
  --line: rgba(214, 167, 75, 0.26);
  --line-2: rgba(214, 167, 75, 0.6);
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  --rivet: radial-gradient(circle, #fff0bd 0 1.6px, #c4953d 2.2px 3.2px, #2b1d08 3.8px 4.6px, rgba(0, 0, 0, 0) 5.2px);
}

* { scrollbar-color: #b08430 rgba(0, 0, 0, 0.35); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.35); }
::-webkit-scrollbar-thumb { border-radius: 5px; background: linear-gradient(90deg, #d6a74b, #8a601f); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5); }

h2 { font-family: var(--display); letter-spacing: 0.035em; color: #f7dc94; text-shadow: 0 1px 0 #000, 0 0 14px rgba(240, 190, 90, 0.18); }
h3 { font: 700 11.5px/1 var(--display); letter-spacing: 0.16em; }
h3::before { content: ''; width: 6px; height: 6px; flex: none; transform: rotate(45deg); background: var(--bronze); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
h3::after { height: 2px; background: linear-gradient(90deg, rgba(214, 167, 75, 0.7), rgba(214, 167, 75, 0)); border-top: 1px solid rgba(0, 0, 0, 0.5); }
kbd { border: 0; border-radius: 3px; padding: 3px 6px 4px; background: linear-gradient(180deg, #4a5565, #232a34); color: #f6e7b8; box-shadow: 0 0 0 1px #000, 0 2px 0 #0b0e13, inset 0 1px 0 rgba(255, 255, 255, 0.2); }

/* ---------------------------------------------------------------- things to press */

/* A button is a plaque of stone in a bronze rim. It stands proud until it is pressed. */
.btn {
  border: 2px solid transparent;
  border-radius: 5px;
  background: linear-gradient(180deg, #4b5667, #2b323e 58%, #21272f) padding-box, var(--bronze) border-box;
  color: #f6e7b8;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.045em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5);
}
.btn:hover:not(:disabled) { background: linear-gradient(180deg, #5c697c, #343d4b 58%, #272e38) padding-box, var(--bronze-lit) border-box; border-color: transparent; color: #fff6d6; }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.75); }
.btn:disabled { opacity: 0.45; filter: grayscale(0.6); }
/* The one that begins things is enamelled red. */
.btn.primary { background: linear-gradient(180deg, #dd5c31, #a9381a 58%, #86280f) padding-box, var(--bronze) border-box; border-color: transparent; color: #fff4d8; text-shadow: 0 1px 0 rgba(60, 12, 0, 0.8); box-shadow: inset 0 1px 0 rgba(255, 220, 190, 0.45), inset 0 -2px 0 rgba(60, 12, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.75), 0 4px 12px rgba(0, 0, 0, 0.55); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #f06d3f, #bd4421 58%, #962f13) padding-box, var(--bronze-lit) border-box; border-color: transparent; }
/* A quieter one is only lettering, cut straight into whatever it stands on. */
.btn.ghost { background: none; border-color: transparent; box-shadow: none; color: #ead9a4; text-decoration: none; text-shadow: 0 1px 2px #000; }
.btn.ghost:hover:not(:disabled) { background: none; border-color: transparent; color: #fff1bd; text-shadow: 0 1px 2px #000, 0 0 12px rgba(255, 214, 120, 0.75); }
/* (On a sheet's head and among the title's plaques it wears a lozenge either side.) */
.sheet-head .btn.ghost::before, .sheet-head .btn.ghost::after, .title-actions .btn.ghost::before, .title-actions .btn.ghost::after { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px; transform: rotate(45deg); background: currentColor; opacity: 0.55; }
.btn.small { border-radius: 4px; font-size: 12px; }
.btn.big { border-radius: 6px; border-width: 3px; padding: 11px 24px; font-size: 16px; }
.btn.on, .btn.on:hover:not(:disabled) { background: var(--brass) padding-box, var(--bronze-lit) border-box; border-color: transparent; color: var(--ink-dark); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); }
.title-actions .btn { backdrop-filter: none; -webkit-backdrop-filter: none; }
.title-actions .btn:not(.primary):not(.ghost) { background: linear-gradient(180deg, #4b5667, #2b323e 58%, #21272f) padding-box, var(--bronze) border-box; }
.title-actions .btn:not(.primary):not(.ghost):hover { background: linear-gradient(180deg, #5c697c, #343d4b 58%, #272e38) padding-box, var(--bronze-lit) border-box; }
.title-actions .btn.primary { box-shadow: inset 0 1px 0 rgba(255, 220, 190, 0.45), inset 0 -2px 0 rgba(60, 12, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.75), 0 6px 22px rgba(0, 0, 0, 0.6), 0 0 26px rgba(232, 104, 60, 0.4); }
.title-card .btn.ghost:hover, .title-actions .btn.ghost:hover { background: none; }

.icon-btn { border: 2px solid transparent; border-radius: 5px; background: linear-gradient(180deg, #4b5667, #262d38) padding-box, var(--bronze) border-box; color: #f6e7b8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.5); }
.icon-btn:hover { background: linear-gradient(180deg, #5c697c, #2e3642) padding-box, var(--bronze-lit) border-box; border-color: transparent; }
.icon-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.75); }

/* The camera's one button, and the others where they show: studs. */
.cam-pad button { border: 2px solid transparent; background: radial-gradient(circle at 40% 30%, #56627a, #222935 75%) padding-box, var(--bronze) border-box; color: #f6e7b8; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75), 0 4px 9px rgba(0, 0, 0, 0.55); backdrop-filter: none; -webkit-backdrop-filter: none; }
.cam-pad button:hover { border-color: transparent; background: radial-gradient(circle at 40% 30%, #6a7791, #2a323f 75%) padding-box, var(--bronze-lit) border-box; color: #fff6d6; }

/* ---------------------------------------------------------------- the frame round the island */

/* The bar and the panel are not laid over the island: they are the frame it is seen through, and
   run to the edges of the screen. */
.game { gap: 0; }
#stage-area { margin: 8px; }
#topbar {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 6px 12px;
  background: var(--grain) padding-box, linear-gradient(180deg, #343e4d, #1b212b) padding-box, var(--bronze) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.7), 0 1px 0 #000, 0 8px 18px rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 2;
}
#panel-right {
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: var(--grain) padding-box, linear-gradient(180deg, #2a323f, #141920) padding-box, var(--bronze) border-box;
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.7), inset 2px 0 0 rgba(255, 255, 255, 0.06), -1px 0 0 #000, -8px 0 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (max-width: 640px) {
  #panel-right { border-left: 0; border-top: 3px solid transparent; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.7), 0 -1px 0 #000, 0 -8px 18px rgba(0, 0, 0, 0.45); }
}

/* On the bar: the island's name cut in capitals, its age on a bronze tag, and what is in store
   in sockets sunk into the stone. */
.where strong { font: 700 17px/1 var(--display); letter-spacing: 0.05em; color: #f7dc94; text-shadow: 0 1px 0 #000; }
.pill { border-radius: 3px; padding: 4px 12px 3px; background: linear-gradient(180deg, #f8e2a2, #d6a74b 45%, #b98a2e); color: #2b1d08; font: 700 11.5px/1.2 var(--display); letter-spacing: 0.06em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px #2b1d08, 0 2px 3px rgba(0, 0, 0, 0.5); clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 7px 100%, 0 50%); padding-inline: 14px; }
.mat, .study-chip, .weather-chip, .dep { border: 0; border-radius: 4px; background: linear-gradient(180deg, #0b0e13, #141922); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.09); }
.mat img, .dep img, .lab-dep img { box-shadow: 0 0 0 1.5px #c4953d, 0 0 0 2.5px #2b1d08, 0 1px 3px rgba(0, 0, 0, 0.6); }
.mat b { font-size: 14.5px; color: #fff3cf; }
.study-chip:hover, .weather-chip:hover { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), inset 0 0 0 1px #c4953d, 0 1px 0 rgba(255, 255, 255, 0.09); }
.study-chip.warn { background: linear-gradient(180deg, #2a0f0b, #3a1711); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 122, 102, 0.7), 0 1px 0 rgba(255, 255, 255, 0.09); }
.weather-chip.bad { background: linear-gradient(180deg, #0c1826, #142538); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(134, 190, 240, 0.7), 0 1px 0 rgba(255, 255, 255, 0.09); }
.day-chip.bad { background: linear-gradient(180deg, #11122a, #1b1d3d); }
.stat b { font-size: 16px; color: #fff3cf; }
/* How fast time runs: a switch with four positions, the one it is at lit. */
.speed { border: 0; border-radius: 5px; padding: 2px; gap: 2px; background: #0b0e13; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 0 1px #000, 0 0 0 2px #8a601f, 0 0 0 3px #000; }
.speed button { border-radius: 3px; background: linear-gradient(180deg, #3d4756, #232a34); color: #cfc7ad; font-family: var(--sans); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
.speed button + button { border-left: 0; }
.speed button:hover { background: linear-gradient(180deg, #4d596b, #2b333f); color: #fff6d6; }
.speed button.on { background: var(--brass); color: var(--ink-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 10px rgba(255, 214, 110, 0.5); }

/* ---------------------------------------------------------------- the panel */

.sel-name h2 { font-size: 20px; }
.sel-sub { font-size: 13.5px; }
/* A page is a tray sunk into the slab. */
.page, .voyage { border: 0; border-radius: 6px; background: var(--grain), linear-gradient(180deg, #12171e, #0d1117); box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.08); }
.eq, .r-now, .lode, .work, .party, .quote, .rules-strip, .tally div { border-radius: 5px; }
.eq { background: rgba(0, 0, 0, 0.42); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.06); }
.eq-out { border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px #2b1d08, 0 2px 5px rgba(0, 0, 0, 0.5); }
.popline b { font-family: var(--display); color: #f7dc94; }
.meter { height: 9px; border-radius: 3px; background: #07090c; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px #000, 0 1px 0 1px rgba(255, 255, 255, 0.08); }
.meter i { border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.2); }

/* A picture to press is a block of stone with the picture set into it. */
.tile {
  border: 1px solid #07090c;
  border-radius: 7px;
  background: linear-gradient(180deg, #3d4756, #272e39 55%, #1e242d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), inset 0 -3px 0 rgba(0, 0, 0, 0.32), 0 2px 5px rgba(0, 0, 0, 0.55);
}
.tile:hover { border-color: #07090c; background: linear-gradient(180deg, #4c586a, #303846 55%, #252c36); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.32), 0 0 0 2px #d6a74b, 0 0 14px rgba(239, 198, 107, 0.35); }
.tile:active { transform: translateY(2px); box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.7), 0 0 0 2px #d6a74b; }
.tile-cap { font-size: 11.5px; }
.tile-n { border-radius: 4px; background: linear-gradient(180deg, #f8e2a2, #d6a74b 55%, #b98a2e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 0 1px #2b1d08, 0 1px 3px rgba(0, 0, 0, 0.6); }
.tile.zero .tile-n { background: #0b0e13; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(214, 167, 75, 0.35); }
.tile.on { border-color: #2b1d08; background: linear-gradient(180deg, #fbe7ad, #dcab48 55%, #b98a2e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -3px 0 rgba(90, 60, 10, 0.35), 0 0 0 2px #fff1c4, 0 0 16px rgba(239, 198, 107, 0.45); }
.tile.primary { border-color: #2a0d05; background: linear-gradient(180deg, #dd5c31, #a9381a 55%, #86280f); box-shadow: inset 0 1px 0 rgba(255, 220, 190, 0.45), inset 0 -3px 0 rgba(60, 12, 0, 0.45), 0 0 0 2px #c4953d, 0 2px 6px rgba(0, 0, 0, 0.55); }
.tile.primary .tile-cap { color: #fff0d8; }
.tile.primary:hover { border-color: #2a0d05; background: linear-gradient(180deg, #f06d3f, #bd4421 55%, #962f13); }
.tile.danger { background: linear-gradient(180deg, #6a1c17, #3d0f10 55%, #2b0a0c); box-shadow: inset 0 1px 0 rgba(255, 170, 150, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 122, 102, 0.7), 0 2px 5px rgba(0, 0, 0, 0.55); }
.tile.gold { background: linear-gradient(180deg, #7a5f22, #4d3b14 55%, #3a2c0e); box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 0 0 2px #ffe08f, 0 0 16px rgba(255, 214, 110, 0.35); }
.tile.still, .tile.still:hover { background: transparent; border: 1px dashed var(--line-2); box-shadow: none; }
.r-tile.is-known, .r-tile.is-known:hover { background: rgba(0, 0, 0, 0.25); border: 1px dashed var(--line-2); box-shadow: none; }
.r-tile.is-queued { border-color: #2a0d05; background: linear-gradient(180deg, #8e3a1c, #5a2412 55%, #40190c); box-shadow: inset 0 1px 0 rgba(255, 200, 160, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 0 0 2px var(--accent), 0 0 14px rgba(232, 104, 60, 0.35); }
.r-tile .tile-n { border-radius: 4px; }
/* The jobs on the wheel are medallions, and the name under each a bronze plate screwed on. */
.tile.node { border: 3px solid transparent; background: radial-gradient(circle at 50% 30%, #3f536d, #121b28 74%) padding-box, var(--bronze) border-box; box-shadow: 0 0 0 1px #000, inset 0 2px 0 rgba(255, 255, 255, 0.15), inset 0 -7px 11px rgba(0, 0, 0, 0.4), 0 5px 10px rgba(0, 0, 0, 0.6); }
.tile.node:hover { border-color: transparent; background: radial-gradient(circle at 50% 30%, #4d6685, #18263a 74%) padding-box, var(--bronze-lit) border-box; box-shadow: 0 0 0 1px #000, 0 0 16px rgba(239, 198, 107, 0.5), 0 5px 10px rgba(0, 0, 0, 0.6); }
.tile.node .tile-n, .tile.node.mid .tile-n { border-radius: 999px; }
.tile.node.locked { border: 2px dashed var(--line-2); background: radial-gradient(circle at 50% 30%, #2a3442, #121820 74%); }
.hub::before { background: radial-gradient(circle, rgba(255, 226, 150, 0.1), rgba(255, 226, 150, 0.03) 46%, transparent 71%); border: 2px solid rgba(196, 149, 61, 0.35); box-shadow: inset 0 0 0 26px rgba(0, 0, 0, 0.2), inset 0 0 0 27px rgba(196, 149, 61, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.6); }
.plate { border: 0; border-radius: 3px; padding: 5px 8px 4px 10px; background: linear-gradient(180deg, #6b5226, #40300f); color: #f6dfa0; font: 700 10px/1 var(--display); letter-spacing: 0.1em; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8); box-shadow: inset 0 1px 0 rgba(255, 235, 170, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px #000, 0 3px 5px rgba(0, 0, 0, 0.6); }
.plate:hover { color: #fff6d6; background: linear-gradient(180deg, #826530, #4f3b13); }
.plate.on { background: linear-gradient(180deg, #fbe7ad, #dcab48 55%, #b98a2e); color: #2b1d08; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 0 1px #2b1d08, 0 0 12px rgba(239, 198, 107, 0.5); }
.plate.locked { filter: grayscale(0.7); }
/* Rows: a seam in the ground, a building's walls, a place on the list. */
.lode, .work { border: 0; background: linear-gradient(180deg, #232a35, #1a2029); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 0 1px #07090c; }
.lode.out, .lode.lying { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.lode.deep { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 0 1px #07090c, 0 0 0 2px #c4953d; }
.own-item { border: 0; border-radius: 5px; padding: 8px 11px; background: linear-gradient(180deg, #343e4c, #222932 60%, #1b2129); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 0 0 1px #07090c, 0 2px 4px rgba(0, 0, 0, 0.45); }
.own-item:hover { background: linear-gradient(180deg, #414c5d, #2a323d 60%, #20272f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 2px #d6a74b, 0 0 12px rgba(239, 198, 107, 0.3); }
.own-item:active { transform: translateY(1px); }
.own-item > span > b:first-child, .own-item b:first-child { font-family: var(--display); letter-spacing: 0.03em; color: #f7dc94; }
.tribe { border-radius: 5px; }
.alarm { border-radius: 5px; }

/* The line at the foot of the panel is written out on a strip of parchment. */
.tipline { background: var(--fibre), linear-gradient(180deg, var(--parch-top), var(--parch-foot)); color: var(--quill); border-top: 0; font-family: var(--serif); font-size: 13.5px; box-shadow: 0 -1px 0 #2b1d08, 0 -3px 0 #c4953d, 0 -4px 0 #2b1d08, 0 -12px 16px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(120, 80, 20, 0.25); }
.tipline b { color: var(--rubric); font-family: var(--display); font-size: 13px; letter-spacing: 0.03em; margin-right: 4px; }
.tipline.idle { color: #6d5a36; }

/* ---------------------------------------------------------------- over the island */

/* The little map hangs in a frame. */
.sector { border: 3px solid transparent; border-radius: 6px; background: var(--grain) padding-box, linear-gradient(180deg, #2a323f, #141920) padding-box, var(--bronze) border-box; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 10px 22px rgba(0, 0, 0, 0.55); backdrop-filter: none; -webkit-backdrop-filter: none; }
.sector canvas { border-radius: 3px; box-shadow: 0 0 0 1px #000, inset 0 0 12px rgba(0, 0, 0, 0.6); }
.sector-shield { border-radius: 4px; font-family: var(--sans); }

/* What is said across the top of the map, and the notices at its foot, are parchment too. */
.banner, .stage-mid .banner { border: 0; border-radius: 4px; background: var(--fibre), linear-gradient(180deg, var(--parch-top), var(--parch-foot)); color: var(--quill); font: 600 14.5px/1.35 var(--serif); box-shadow: 0 0 0 1px #2b1d08, 0 0 0 3px #c4953d, 0 0 0 4px #2b1d08, 0 10px 20px rgba(0, 0, 0, 0.5); backdrop-filter: none; -webkit-backdrop-filter: none; }
.banner-back { border: 0; border-radius: 4px; background: linear-gradient(180deg, #dd5c31, #a9381a 58%, #86280f); color: #fff4d8; font-family: var(--display); letter-spacing: 0.04em; box-shadow: inset 0 1px 0 rgba(255, 220, 190, 0.45), 0 0 0 1px #2b1d08, 0 2px 4px rgba(0, 0, 0, 0.4); }
.toast { border: 0; border-left: 6px solid #6d5a36; border-radius: 3px; padding: 7px 12px; background: var(--fibre), linear-gradient(180deg, var(--parch-top), var(--parch-foot)); color: var(--quill); font: 14px/1.35 var(--serif); box-shadow: 0 0 0 1px #2b1d08, 0 5px 12px rgba(0, 0, 0, 0.5); }
.toast.good { border-left-color: #3f8a2c; }
.toast.bad { border-left-color: #b3311c; }
.toast.wx { border-left-color: #2f6fa8; }
.toast.wx.fair { border-left-color: #d49a1c; }
.toast.go:hover { box-shadow: 0 0 0 1px #2b1d08, 0 0 0 3px #d6a74b, 0 5px 12px rgba(0, 0, 0, 0.5); }
/* The guide to the first island is a scroll. */
.guide { border: 0; border-radius: 4px; background: var(--fibre), linear-gradient(180deg, var(--parch-top), var(--parch-foot)); color: var(--quill); box-shadow: 0 0 0 1px #2b1d08, 0 0 0 3px #c4953d, 0 0 0 4px #2b1d08, 0 12px 24px rgba(0, 0, 0, 0.55), inset 0 0 22px rgba(120, 80, 20, 0.22); backdrop-filter: none; -webkit-backdrop-filter: none; }
.guide p { color: var(--quill); }
.guide .muted { color: #6d5a36; }
.guide .btn.ghost { color: var(--rubric); text-shadow: none; }
.guide .btn.ghost:hover:not(:disabled) { color: #b3311c; text-shadow: none; }
/* Whatever is in hand is a tag tied to the pointer. */
.hand { border: 0; border-radius: 4px; background: var(--fibre), linear-gradient(180deg, var(--parch-top), var(--parch-foot)); box-shadow: 0 0 0 1px #2b1d08, 0 0 0 2px #c4953d, 0 0 0 3px #2b1d08, 0 5px 12px rgba(0, 0, 0, 0.55); }
.hand b { color: var(--quill); }
.hand span { color: var(--rubric); border-left-color: rgba(43, 32, 18, 0.35); }
.hand span.no { color: #6d5a36; }

/* A god speaking: the painting in a gilt frame, on a slab. */
.speech { border: 3px solid transparent; border-left-width: 7px; border-radius: 6px; background: var(--grain) padding-box, linear-gradient(180deg, #2a323f, #141920) padding-box, linear-gradient(90deg, var(--who, #d6a74b) 0 7px, rgba(0, 0, 0, 0) 7px) border-box, var(--bronze) border-box; box-shadow: 0 0 0 1px #000, 0 12px 26px rgba(0, 0, 0, 0.6); backdrop-filter: none; -webkit-backdrop-filter: none; }
.speech canvas { border-radius: 3px; box-shadow: 0 0 0 2px #d6a74b, 0 0 0 3px #2b1d08, 0 0 0 5px #8a601f, 0 0 0 6px #000; }
.speech-body b { font: 700 15px/1.2 var(--display); letter-spacing: 0.05em; color: #f7dc94; }
/* An attack on the way, or a monument going up: a plaque nobody can miss. */
.omen { border: 2px solid transparent; border-left-width: 7px; border-radius: 5px; background: var(--grain) padding-box, linear-gradient(180deg, #3a1a17, #200d0d) padding-box, linear-gradient(90deg, var(--who, #d6a74b) 0 7px, rgba(0, 0, 0, 0) 7px) border-box, linear-gradient(180deg, #ff9c8a, #a8321f) border-box; box-shadow: 0 0 0 1px #000, 0 10px 20px rgba(0, 0, 0, 0.55); backdrop-filter: none; -webkit-backdrop-filter: none; }
.omen.mine { background: var(--grain) padding-box, linear-gradient(180deg, #2a323f, #141920) padding-box, linear-gradient(90deg, var(--who, #d6a74b) 0 7px, rgba(0, 0, 0, 0) 7px) border-box, var(--bronze) border-box; border-color: transparent; }
.omen:hover { border-color: transparent; filter: brightness(1.15); }
.omen b { font-family: var(--display); letter-spacing: 0.03em; }
/* The numbers that stand over the island are tags, not bubbles. */
.lab-pill { border-radius: 4px; font-family: var(--sans); box-shadow: 0 0 0 1.5px #07090c, 0 3px 8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.18); }

/* ---------------------------------------------------------------- sheets: the menus */

/* A menu is a tablet: stone, a bronze rim, a rivet at each corner. */
.sheet {
  border: 4px solid transparent;
  border-radius: 8px;
  background:
    var(--rivet) left 6px top 6px / 12px 12px no-repeat padding-box,
    var(--rivet) right 6px top 6px / 12px 12px no-repeat padding-box,
    var(--rivet) left 6px bottom 6px / 12px 12px no-repeat padding-box,
    var(--rivet) right 6px bottom 6px / 12px 12px no-repeat padding-box,
    var(--grain) padding-box,
    linear-gradient(180deg, #2c3441, #151a22) padding-box,
    var(--bronze) border-box;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(0, 0, 0, 0.75), inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 26px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sheet-head { border-bottom: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.18)); box-shadow: 0 1px 0 #000, 0 3px 0 #a87a2a, 0 4px 0 #000; }
.sheet-head h2 { font-size: 25px; letter-spacing: 0.08em; }
.modal { backdrop-filter: none; -webkit-backdrop-filter: none; background: radial-gradient(ellipse at center, rgba(2, 8, 14, 0.62), rgba(2, 8, 14, 0.86)); }
.modal-card h2 { font-size: 26px; letter-spacing: 0.06em; }
.brief { border-left: 0; background: rgba(0, 0, 0, 0.3); box-shadow: inset 3px 0 0 rgba(0, 0, 0, 0.6), inset 4px 0 0 rgba(196, 149, 61, 0.45), inset 12px 0 16px -8px rgba(0, 0, 0, 0.6); }
.brief > .btn { box-shadow: inset 0 1px 0 rgba(255, 220, 190, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.75), 0 0 0 7px #131820, 0 -16px 16px 4px rgba(19, 24, 32, 0.9); }
.voyage-head h3 { font: 700 16px/1.2 var(--display); letter-spacing: 0.06em; color: #f7dc94; }
.voyage-head h3::before { display: none; }
.voyage.current { box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(196, 149, 61, 0.6); }
/* An island on the chart is a painted tile set into the tray. */
.isle { border: 0; border-radius: 6px; padding: 7px; background: linear-gradient(180deg, #3a4452, #252c37 55%, #1d232c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -3px 0 rgba(0, 0, 0, 0.32), 0 0 0 1px #07090c, 0 3px 6px rgba(0, 0, 0, 0.5); }
.isle:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 2px #d6a74b, 0 0 14px rgba(239, 198, 107, 0.35); }
.isle.sel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 3px #f3d78d, 0 0 0 4px #2b1d08, 0 0 22px rgba(239, 198, 107, 0.5); }
.isle canvas { border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #8a601f, 0 0 0 3px #000; margin: 3px; width: calc(100% - 6px); }
.isle-name { font: 700 14px/1.2 var(--display); letter-spacing: 0.03em; color: #f7dc94; }
.leader { border-radius: 6px; }
/* Who you are, on the chart and on the sheet where an island is made to order: a tray, with your colour down its edge. */
:root .leader-strip, :root .sk-leader { border-radius: 5px; background: rgba(0, 0, 0, 0.36); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.07); }
.leader-strip .face, .rival .face, .tribe .face { box-shadow: 0 0 0 1.5px #c4953d, 0 0 0 2.5px #2b1d08, 0 2px 4px rgba(0, 0, 0, 0.6); }
/* Dials and drawers on the sheet where an island is made to order. */
.fields label { font-family: var(--display); letter-spacing: 0.05em; font-size: 12px; color: #e0d2a6; }
.fields select, .fields input[type='number'] { appearance: none; -webkit-appearance: none; border: 0; border-radius: 4px; padding: 8px 10px; background: linear-gradient(180deg, #0b0e13, #141922); color: #fff3cf; font-family: var(--sans); font-size: 15px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 0 1px #000, 0 0 0 2px #8a601f, 0 0 0 3px #000; }
.fields select { padding-right: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 6 5-6z' fill='%23d6a74b' stroke='%232b1d08'/%3E%3C/svg%3E") right 10px center / 12px 8px no-repeat, linear-gradient(180deg, #0b0e13, #141922); }
.fields input[type='range'] { appearance: none; -webkit-appearance: none; height: 24px; background: transparent; }
.fields input[type='range']::-webkit-slider-runnable-track { height: 7px; border-radius: 4px; background: #07090c; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px #000, 0 1px 0 1px rgba(255, 255, 255, 0.1); }
.fields input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #d6a74b 48%, #7a5417); box-shadow: 0 0 0 1px #2b1d08, 0 2px 5px rgba(0, 0, 0, 0.65); }
.fields input[type='range']::-moz-range-track { height: 7px; border-radius: 4px; background: #07090c; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px #000; }
.fields input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #d6a74b 48%, #7a5417); box-shadow: 0 0 0 1px #2b1d08, 0 2px 5px rgba(0, 0, 0, 0.65); }
.fields output { font-family: var(--display); }
.preview canvas { border: 0; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 3px #a87a2a, 0 0 0 4px #000, 0 8px 20px rgba(0, 0, 0, 0.5); }
.code-form input { border: 0; border-radius: 4px; background: linear-gradient(180deg, #0b0e13, #141922); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 0 1px #000, 0 0 0 2px #8a601f, 0 0 0 3px #000; }
.modal-card.wide .actions { background: linear-gradient(180deg, rgba(21, 26, 34, 0), rgba(21, 26, 34, 0.98) 34%); }
.sk-leader .face { box-shadow: 0 0 0 1.5px #c4953d, 0 0 0 2.5px #2b1d08, 0 2px 4px rgba(0, 0, 0, 0.6); }
/* (Your own advisers report from a warmer slab than a rival speaks from.) */
:root .speech.own { background: var(--grain) padding-box, linear-gradient(180deg, #3b3019, #1d180c) padding-box, linear-gradient(90deg, var(--who, #d6a74b) 0 7px, rgba(0, 0, 0, 0) 7px) border-box, var(--bronze) border-box; }

/* ---------------------------------------------------------------- the rest of the sheets */

/* Choosing a god: four paintings in gilt frames, each on a plaque in its god's colour. */
:root .leader { border: 0; border-top: 5px solid var(--who, #d6a74b); border-radius: 6px; background: linear-gradient(180deg, #343e4c, #20262f 60%, #191e26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 0 0 1px #07090c, 0 4px 8px rgba(0, 0, 0, 0.5); }
:root .leader:hover { border-color: var(--who, #d6a74b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 2px #d6a74b, 0 0 18px rgba(239, 198, 107, 0.4), 0 10px 20px rgba(0, 0, 0, 0.5); }
:root .leader.sel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 3px #f3d78d, 0 0 0 4px #2b1d08, 0 0 22px rgba(239, 198, 107, 0.5); }
:root .leader b { font: 700 16px/1.15 var(--display); letter-spacing: 0.05em; color: #f7dc94; }
.leader em { font-family: var(--display); letter-spacing: 0.06em; }
.leader .leader-art .leader-pic, .hail-pic { border-radius: 3px; box-shadow: 0 0 0 2px #e9c877, 0 0 0 3px #2b1d08, 0 0 0 6px #a87a2a, 0 0 0 7px #000, 0 10px 22px rgba(0, 0, 0, 0.55); }
.leader .leader-art { margin-top: 5px; }
/* Being hailed for an island taken, and how it went. */
.modal-card .hail-word { font-family: var(--display); }
.modal-card .hail-rank { font-family: var(--display); letter-spacing: 0.04em; text-shadow: 0 2px 0 #000, 0 0 22px rgba(240, 190, 90, 0.35); }
.tally div, .rules-strip, .recap { border: 0; border-radius: 5px; background: rgba(0, 0, 0, 0.36); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.07); }
.rules-strip.news { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.75), 0 0 0 1px #c4953d; }
.tally b { font-family: var(--display); color: #f7dc94; }
.result-stars .got { filter: drop-shadow(0 0 8px rgba(239, 198, 107, 0.65)) drop-shadow(0 1px 0 #000); }
.quote { border: 0; background: rgba(0, 0, 0, 0.36); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.07); }
.quote img { border-radius: 3px; box-shadow: 0 0 0 2px #d6a74b, 0 0 0 3px #2b1d08; }
.quote b { font-family: var(--display); letter-spacing: 0.04em; }
