/* Encyclopedia and ingredient sheets: quiet surfaces around the original artwork.
   Layout, minimum touch sizes and short-screen fitting stay in the base rules. */
.card {
  border: 1px solid #d4e4e6;
  border-radius: 18px;
  background: #fffdf7;
  box-shadow: 0 6px 18px #173e5010;
  color: #173e50;
}
.card[data-state="met"] {
  border-color: #acd9df;
  background: linear-gradient(160deg, #fffefa, #edf8f9);
  box-shadow: 0 6px 18px #173e5010;
}
.card[data-state="eaten"] {
  border-color: #ead49b;
  background: linear-gradient(160deg, #fffefa, #fff5d8);
  box-shadow: 0 6px 18px #173e5010;
}
.card[data-state="locked"] {
  border-color: #b19a60;
  background: radial-gradient(ellipse at 50% 0, #365b6a, #173e50 80%);
  box-shadow: 0 6px 18px #173e501c;
}
.card__band { height: 3px; opacity: .85; }
.card__no { background: #edf3f1; }
.card__frame { display: none; }
.card__stars, .sht-stars { text-shadow: none; }
.card[data-rare="4"] .card__stars,
.sht-meta[data-rare="4"] .sht-stars { text-shadow: none; color: #997214; }
.card[data-state="locked"] .card__stars { color: #ffd568; }
.card__seal { border-width: 1px; transform: none; }
.card__seal--met { background: #e7f5f6; color: #147d92; }
.card__seal--eaten { background: #ffefb9; color: #856015; }
.card__mark { border-width: 1px; border-color: #d4e4e6; box-shadow: 0 2px 7px #173e5012; }
.card__mark--lock { border: 0; box-shadow: none; }
.card__mark--fresh { transform: none; box-shadow: 0 2px 7px #173e5012; }
.card--mini { border-radius: 16px; }
.card:active { transform: scale(.98); box-shadow: 0 2px 8px #173e5014; }
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 9px 22px #173e501c; }
  .card:active { transform: scale(.98); }
}

/* Filters remain in their tested grid, with one clear selected state. */
.zk-h, .zk-meter__n { color: #173e50; }
.zk-meter__bar { border: 0; background: #dce9e8; }
.zk-meter__bar > i { background: linear-gradient(90deg, #147d92, #e4b94e); border-radius: inherit; }
.zk-search__in {
  border: 1px solid #c8dcdf;
  border-radius: 16px;
  background: #fffdf7;
  color: #173e50;
  box-shadow: 0 2px 8px #173e5007;
}
.zk-search__ic { color: #5e7e88; }
.zk-search__in:focus-visible { outline: 3px solid #147d9238; outline-offset: 2px; border-color: #147d92; }
.c-chip.zk-chip {
  border: 1px solid #d4e4e6;
  background: #fffdf7;
  color: var(--c-deep, #173e50);
  box-shadow: 0 2px 6px #173e5006;
}
.c-chip.zk-chip[aria-pressed="true"] {
  border-color: var(--c-deep, #147d92);
  background: var(--c-deep, #147d92);
  color: #fff;
  box-shadow: 0 3px 9px #173e5018;
}
.zk-chip__n { opacity: .76; }
.zk-chip[aria-pressed="true"] .zk-chip__n { opacity: .9; }
.zk-state { border: 1px solid #d4e4e6; border-radius: 16px; background: #f0f6f5; }
.zk-state__btn { color: #42616c; }
.zk-state__btn + .zk-state__btn { border-left: 1px solid #d4e4e6; }
.zk-state__btn[aria-checked="true"] { background: #173e50; color: #fff; }
.zk-state__btn--met[aria-checked="true"] { background: #147d92; }
.zk-state__btn--eaten[aria-checked="true"] { background: #98701c; }
@media (orientation: landscape) and (max-height: 499px) {
  .zk-state__btn + .zk-state__btn { border-left: 0; }
  .zk-state__btn:nth-child(2n) { border-left: 1px solid #d4e4e6; }
  .zk-state__btn:nth-child(n+3) { border-top: 1px solid #d4e4e6; }
}
.zk-sech {
  border: 1px solid #d4e4e6;
  border-radius: 14px;
  background: linear-gradient(100deg, var(--c-tint), #fffdf7);
  box-shadow: 0 3px 10px #173e5008;
}
.zk-sech::before { width: 3px; }
.zk-sech__comp { border: 1px solid #ead49b; background: #fff1bf; transform: none; }
.zk-empty__say {
  border: 1px solid #d4e4e6;
  border-radius: 18px;
  background: #fffdf7;
  color: #173e50;
  box-shadow: 0 6px 18px #173e500b;
}
.zk-empty__say::before { border-width: 1px; border-color: #d4e4e6; background: #fffdf7; }
.zk-fnote { border: 1px solid #d4e4e6; border-radius: 16px; background: #eef6f6; color: #42616c; }

/* The ingredient illustration gets a single, soft colour field. */
.sht-stage {
  background: radial-gradient(circle at 38% 30%, #fffefa 0 26%, var(--c-tint) 85%);
  box-shadow: inset 0 0 0 1px #173e5010, 0 8px 24px #173e5008;
}
.sht-hero[data-rare="3"] .sht-stage,
.sht-hero[data-rare="4"] .sht-stage { box-shadow: inset 0 0 0 1px #d4b86e, 0 8px 24px #b28b2412; }
.sht-hero[data-locked="1"] .sht-stage {
  background: radial-gradient(circle at 40% 30%, #54717a, #173e50 82%);
  box-shadow: inset 0 0 0 1px #bba061, 0 8px 24px #173e5014;
}
@media (orientation: landscape) and (max-height: 359px) {
  /* Both original stamps stay legible when fitSide reduces the illustration. */
  .sht-stamp--mikke:not(:only-child) { left: -46px; right: auto; top: 50%; margin-top: -24px; }
  .sht-stamp--tabeta:not(:only-child) { top: 50%; bottom: auto; margin-top: -24px; }
}
.sht-stage::before { background: #173e500d; }
.sht-mark { border: 1px solid #d4e4e6; box-shadow: 0 3px 10px #173e5014; }
.sht-name, .sht-name--locked .sht-name__nm { color: #173e50; }
.sht-cat { border-width: 1px; border-color: var(--c-tint); }
.sht-region { border: 1px solid #b9d9de; background: #eaf6f7; color: #146e80; }
.sht-season { border: 1px solid #d4e4e6; background: #fffdf7; color: #173e50; }
.sht-badge { border: 1px solid #ead49b; background: #fff4d1; color: #856015; }
.sht-solved { border-width: 1px; border-color: #d8d0eb; background: #f2eef9; }
.sht-seek { border: 1px solid #d4e4e6; background: #f3f7f5; }
.sht-catch {
  border: 1px solid #d4e4e6;
  border-radius: 18px;
  background: #fffdf7;
  color: #173e50;
  box-shadow: 0 4px 14px #173e5008;
}
.sht-catch::before { border-width: 1px; border-color: #d4e4e6; background: #fffdf7; }
.sht-memo { border: 1px solid #d4e4e6; border-radius: 18px; background: #fffdf7; box-shadow: 0 6px 18px #173e5008; }
.sht-memo__h { border-bottom: 1px solid #e0eae7; }
.sht-memo__safe { border-top-style: solid; border-color: #e0eae7; }
.sht-links__chip { border: 1px solid #d4e4e6; background: #f0f7f6; color: #285f6d; box-shadow: none; }
.sht-links__chip[aria-expanded="true"] { border-color: #147d92; background: #147d92; color: #fff; }
.sht-maff {
  border: 1px solid #c9e0e3;
  border-radius: 18px;
  background: #edf7f7;
  box-shadow: 0 4px 14px #173e5008;
  color: #206879;
}
.sht-maff__ic { background: #147d92; }
.sht-maff:active { transform: translateY(1px); box-shadow: 0 2px 6px #173e5010; }
.sht-met { border-top: 1px solid #d4e4e6; }
.sht-flagbtn, .sht-morebtn { border: 1px solid #d4e4e6; background: #fffdf7; }
.sht-flagbtn[aria-pressed="true"] { border-color: #d99b9b; background: #fff0ec; }
.sht-morebtn[aria-expanded="true"] { border-color: #91b9c2; background: #eaf6f7; }
.sht-ask { border-width: 1px; border-color: #e3b2a8; border-radius: 16px; }
.sht-lockcard { border: 1px solid #ead49b; border-radius: 18px; background: #fff7dd; box-shadow: 0 6px 18px #173e5008; }

/* Recording: strong action colours, a quieter checked state and a clear undo. */
.sht-rec {
  border: 1px solid #9bcbd3;
  border-radius: 16px;
  color: #173e50;
  box-shadow: inset 0 1px 0 #ffffffa6, 0 4px 12px #173e5014;
}
.sht-rec--mikke { background: linear-gradient(180deg, #e9f9fa, #ccecf0); }
.sht-rec--tabeta { border-color: #e3ba50; background: linear-gradient(180deg, #ffdf83, #ffd568); }
.sht-rec__seal { border: 1px solid currentColor; background: #ffffffae; transform: none; }
.sht-rec--mikke .sht-rec__seal { color: #147d92; }
.sht-rec--tabeta .sht-rec__seal { color: #8a671f; }
.sht-rec:active { transform: translateY(1px) scale(.99); box-shadow: inset 0 1px 3px #173e5012; }
.sht-rec.is-done { transform: none; box-shadow: none; }
.sht-rec--mikke.is-done { background: #eff7f7; border-color: #c7dddf; color: #3d747f; }
.sht-rec--tabeta.is-done { background: #fff7de; border-color: #e7d8ae; color: #866821; }
.sht-rec.is-done .sht-rec__seal { border-color: transparent; background: transparent; }
.sht-rec.is-done:active { transform: none; }
.sht-undo { border: 1px solid #bad4d9; background: #fffdf7; color: #285f6d; box-shadow: 0 2px 6px #173e5008; }
.sht-undo:active { transform: translateY(1px); box-shadow: none; }
@media (hover: hover) {
  .sht-rec--mikke:not([aria-disabled="true"]):hover { background: linear-gradient(180deg, #f1fcfc, #d8f1f4); }
  .sht-rec--tabeta:not([aria-disabled="true"]):hover { background: linear-gradient(180deg, #ffe59a, #ffda78); }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .card:active, .sht-rec:active, .sht-undo:active, .sht-maff:active { transform: none; }
}
[data-motion="reduced"] .card:hover,
[data-motion="reduced"] .card:active,
[data-motion="reduced"] .sht-rec:active,
[data-motion="reduced"] .sht-undo:active,
[data-motion="reduced"] .sht-maff:active { transform: none; }
