.readable-card {
  position: relative;
  display: inline-grid;
  flex: none;
  width: var(--readable-width, 5rem);
  aspect-ratio: 5 / 7;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #b08b61;
  border-radius: .42rem;
  background: #f4e6cc;
  color: #231b1d;
  box-shadow: 0 .25rem .85rem #10080ebd;
}
.readable-card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.readable-card strong {
  align-self: end;
  justify-self: stretch;
  padding: .08em .12em .14em;
  background: #fff3d9;
  color: inherit;
  border-top: 1px solid #ac8a64;
  text-align: center;
  font: 800 var(--readable-index, 1.65rem)/1 Georgia,serif;
  white-space: nowrap;
}
.readable-card-red { color: #a01631; }
.readable-card-hidden {
  place-items: center;
  background: repeating-linear-gradient(45deg,#2d1b28,#2d1b28 4px,#4c2937 4px,#4c2937 6px);
  color: #d1a879;
}
#card-reading {
  width: min(94vw,39rem);
  max-width: none;
  padding: clamp(.8rem,3vw,1.5rem);
  border: 1px solid #c29762;
  background: #251a23;
  color: #f9e8c6;
  text-align: center;
}
#card-reading::backdrop { background: #120a16a8; }
#card-reading h2 { margin: 0 0 .75rem; font-size: 1.18rem; }
#card-reading form { margin-top: 1rem; }
.card-reading-faces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .42rem;
  --readable-width: clamp(2.9rem, 14vw, 6.1rem);
  --readable-index: clamp(1.15rem,4.2vw,2rem);
}
.card-reading-faces:has(.readable-card:nth-child(5)) { --readable-width: clamp(2.65rem, 13.5vw, 5.4rem); }
.whisper-vision {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 19;
  display: grid;
  justify-items: center;
  gap: .55rem;
  pointer-events: none;
  --readable-width: clamp(5rem,17vw,9rem);
  --readable-index: clamp(1.65rem,6vw,2.8rem);
  animation: private-card-flight 2.5s ease-in-out both;
}
.whisper-vision > b {
  max-width: 80vw;
  padding: .45em .7em;
  border: 1px solid #bf935d;
  background: #1b101cf2;
  color: #ffdfab;
  text-align: center;
  overflow-wrap: anywhere;
}
.power-memory .readable-card { --readable-width: 2.7rem; --readable-index: .9rem; }
.whisper-result {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 19;
  transform: translate(-50%,-50%);
  box-sizing: border-box;
  width: max-content;
  max-width: min(86vw,32rem);
  padding: .72rem clamp(1rem,4vw,2.4rem) .9rem;
  border-block: 1px solid #bc905b;
  background: radial-gradient(ellipse at center,#322127,#170e18fa 76%);
  box-shadow: 0 .45rem 1.8rem #120917a0;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  animation: whisper-result-in .2s ease-out both;
}
.whisper-result strong {color:#ffdfab;font:700 clamp(1.2rem,3vw,1.8rem)/1.25 var(--serif,serif)}
.whisper-result p {margin:.35rem 0 0;color:#fff2db;font-size:clamp(1rem,2.5vw,1.2rem);line-height:1.5}
.whisper-result-faces {display:flex;justify-content:center;gap:.45rem;margin-top:.55rem}
.whisper-result-faces > b {
  display:grid;place-items:center;
  width:clamp(2rem,6vw,3rem);aspect-ratio:1;
  border:1px solid #aa8456;border-radius:.3rem;background:#f5e6ca;
  color:#2c2227;font:bold clamp(1.25rem,4vw,2rem)/1 Georgia,serif;
}
.whisper-result-faces > .red-suit {color:#a01631}
.whisper-result-card .whisper-result-faces {
  --readable-width:clamp(3rem,12vw,5.4rem);
  --readable-index:clamp(1.1rem,3vw,1.75rem);
}
.activation-player {display:flex;align-items:center;justify-content:center;gap:.42rem}
.activation-avatar {width:2rem;aspect-ratio:1;object-fit:cover;border-radius:50%;border:1px solid #ac835c}
.whisper-extra {
  display:grid;
  justify-items:center;
  color:#f2d5a9;
  --readable-width:2.15rem;
  --readable-index:.82rem;
}
.whisper-extra small {font-size:.64rem;white-space:nowrap}
#sealed-river {
  position:fixed;z-index:3;
  transform:translate(-50%,-50%);
  padding:.38rem .22rem;
  border:1px solid #bc905b;
  color:#ffdfa0;
  background:#271926f5;
  font-size:clamp(.62rem,1.3vw,.9rem);
  writing-mode:vertical-rl;
  pointer-events:none;
}
#inverted-pot,#whisper-order {color:#ffce8d}
#inverted-pot {display:flex;align-items:center;gap:.2rem;white-space:nowrap}
#inverted-pot svg {width:1.2rem;--emblem-light:#e9ccff;--emblem-shadow:#abafe9}
.whisper-chip-motion {
  position:fixed;z-index:17;pointer-events:none;
  display:flex;align-items:center;gap:.24rem;
  color:#ffe2a5;border:1px solid #be915e;background:#221620ef;
  padding:.28rem .55rem;border-radius:2rem;
  animation:whisper-chip-flight 1.2s ease both;
}
.whisper-chip-motion img {width:1.3rem;aspect-ratio:1;object-fit:contain}
@keyframes whisper-chip-flight {
  0% {transform:translate(-50%,-50%);opacity:0}
  14%,72% {opacity:1}
  100% {transform:translate(calc(-50% + var(--chip-x)),calc(-50% + var(--chip-y)));opacity:0}
}
#whisper-public-cards {
  position: fixed;
  top: max(.55rem,env(safe-area-inset-top));
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .3rem;
  width: max-content;
  max-width: min(60vw,36rem);
  pointer-events: none;
}
.public-whisper-card {
  display: flex;
  align-items: center;
  gap: .34rem;
  padding: .22rem .38rem;
  border: 1px solid #aa8456;
  background: #20151ef2;
  color: #f7dfb5;
  --readable-width: clamp(1.4rem,3.6vw,2rem);
  --readable-index: .72rem;
}
.public-whisper-avatar {width:1.45rem;aspect-ratio:1;object-fit:cover;border:1px solid #98734d;border-radius:50%}
.public-whisper-player {display:grid;text-align:left;min-width:0;font-size:clamp(.64rem,1.5vw,.86rem);overflow-wrap:anywhere}
.public-whisper-player small {color:#d9ae78}
.whisper-activation-cards {display:flex;justify-content:center;gap:.35rem}
.whisper-activation-cards,.activation-card-options {
  --readable-width:clamp(2.45rem,min(16vw,16dvh),5.25rem);
  --readable-index:clamp(.95rem,3vw,1.48rem);
}
#veil.whisper-activating #powers.activation-card-options {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
}
#powers .activation-poker-card {display:grid;padding:.22rem;background:#251a23}
#powers .activation-poker-card[aria-pressed="true"] {
  border-color:#ffdda1;
  box-shadow:0 0 .7rem #db985d9c;
  transform:translateY(-.22rem);
}
@media(max-height:480px) {
  #veil.whisper-activating:has(.activation-card-options) .active-whisper-face,
  #veil.whisper-activating:has(.whisper-activation-cards:not([hidden])) .active-whisper-face {width:5rem}
  #whisper-public-cards {max-width:48vw}
}
@keyframes whisper-result-in {
  from {opacity:0;transform:translate(-50%,-42%)}
}
.power-memory .readable-card img { width: 100%; height: 100%; }
@keyframes private-card-flight {
  0%,100% { opacity: 0; transform: translate(calc(-50% + var(--return-x)),calc(-50% + var(--return-y))) scale(.18) rotate(-15deg); }
  16%,82% { opacity: 1; transform: translate(-50%,-50%); }
}
@media (prefers-reduced-motion:reduce) {
  .whisper-vision { animation: none; transform: translate(-50%,-50%); }
  .whisper-result { animation: none; }
  .whisper-chip-motion {animation:none;transform:translate(-50%,-50%)}
}
