/* Lake cards and net tokens. Shared by the game and (later) the print pack.
   A card is 148 x 105 (A6 landscape). Its size comes from its width; everything inside is in %. */
:root {
  --fish-filter: saturate(1.1) contrast(1.04);
  --c-blue: #2f7fd6;
  --c-red: #d8433a;
  --c-green: #3aa457;
  --c-yellow: #f2c230;
  --c-pink: #e86fb0;
  --c-brown: #8a5a35;
}

.card {
  position: relative;
  aspect-ratio: 148 / 105;
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}
.card .flip {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.3, .1, .2, 1.3);
}
.card.revealed .flip { transform: rotateY(180deg); }
.card .face {
  position: absolute; inset: 0;
  border-radius: 6% / 8.5%;
  overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 0 0 2px var(--keyline);
}
.card.shore { --keyline: #146b91; }
.card.deep  { --keyline: #083f73; }
.card .back { background: center / cover no-repeat; }
.card.shore .back { background-image: url(../assets/web/shore_back.jpg); }
.card.deep  .back { background-image: url(../assets/web/deep_back.jpg); }
.card .front { transform: rotateY(180deg); background: center / cover no-repeat; }
.card.shore .front { background-image: url(../assets/web/shore_front.jpg); background-position: center 65%; }
.card.deep  .front { background-image: url(../assets/web/deep_front.jpg);  background-position: center 63%; }

/* fish: left/top are the fish centre, width is % of card width */
.card .fish {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  filter: var(--fish-filter) drop-shadow(0 2px 2px rgba(0, 20, 40, 0.45));
  user-select: none; -webkit-user-select: none; pointer-events: none;
}

/* Net token: a round net for the small net, a rounded square with x2 for the big net. */
.net {
  position: relative;
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  background: url(../assets/web/net.png) center / 112% no-repeat, #1c5a9a;
  border: 0.5em solid var(--pc, #fff);
  box-shadow: 0 0 0 0.22em #fff, 0 4px 8px 0.2em rgba(0, 0, 0, 0.45);
}
.net.big { border-radius: 26%; border-width: 0.6em; }
.net .boat {
  position: absolute; width: 72%; left: -22%; bottom: -26%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
.net .x2 {
  position: absolute; right: -16%; top: -16%;
  min-width: 52%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff; color: #10324a;
  border: 0.14em solid var(--pc, #10324a);
  font: 800 0.95em / 1 "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.p-blue   { --pc: var(--c-blue); }
.p-red    { --pc: var(--c-red); }
.p-green  { --pc: var(--c-green); }
.p-yellow { --pc: var(--c-yellow); }
.p-pink   { --pc: var(--c-pink); }
.p-brown  { --pc: var(--c-brown); }
