:root {
  --br: #5b3a29;
  --b2: #7a5039;
  --ink: #1d1d1d;
  --s1: #8a5733;
  --s2: #18a0e0;
  --s3: #f58a0b;
  --sky: #a6dcff;
  --pat: url(/img/104979017682801/700);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100vh;
  font: 500 16px Fredoka, system-ui, sans-serif;
  color: var(--ink);
  background: var(--sky);
}
#sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#sky i { position: absolute; left: 0; width: 190px; height: 58px; background: #fff; border-radius: 58px; animation: drift 90s linear infinite; }
#sky i::before, #sky i::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
#sky i::before { left: 28px; top: -44px; width: 88px; height: 88px; }
#sky i::after { left: 100px; top: -28px; width: 66px; height: 66px; }
#sky i:nth-child(1) { top: 56px; animation-delay: -20s; }
#sky i:nth-child(2) { top: 28px; --k: .55; animation-duration: 70s; animation-delay: -45s; }
#sky i:nth-child(3) { top: 190px; --k: 1.2; animation-duration: 170s; animation-delay: -120s; }
#sky i:nth-child(4) { top: 330px; --k: .9; animation-duration: 150s; animation-delay: -40s; }
#sky i:nth-child(5) { top: 470px; --k: 1.1; animation-duration: 190s; animation-delay: -160s; }
@keyframes drift {
  from { transform: translateX(-220px) scale(var(--k, 1)); }
  to { transform: translateX(calc(100vw + 220px)) scale(var(--k, 1)); }
}
.t, h1, h2 {
  color: #fff;
  font-weight: 700;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
}
h1, h2 { margin: 18px 0 8px; font-size: 26px; }
h1:first-child { margin-top: 0; }
header { display: flex; align-items: flex-end; max-width: 1000px; min-height: 130px; margin: 14px auto 0; padding: 0 8px; }
.tab {
  display: inline-block;
  margin: 0 0 -16px;
  padding: 6px 22px;
  font-size: 26px;
  background: var(--br);
  border: 4px solid var(--ink);
  border-radius: 18px;
  position: relative;
  z-index: 2;
}
main {
  width: calc(100% - 16px);
  max-width: 1000px;
  margin: 0 auto 24px;
  padding: 30px 16px 20px;
  background: #fff;
  border: 5px solid var(--ink);
  border-radius: 26px;
}
nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
nav a, .pill, .ddb, .ddo, .card, .chip, .tab { -webkit-user-select: none; user-select: none; }
nav a, .pill {
  padding: 4px 14px;
  background: var(--b2);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  font: 700 15px Fredoka, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
nav a.on { background: #5cd65c; color: var(--ink); }
input {
  max-width: 100%;
  padding: 5px 12px;
  font: inherit;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  outline: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #ffd45a; outline-offset: 2px; }
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.bar input { flex: 1; min-width: 150px; }
.fld {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px 3px 14px;
  font-weight: 700;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 22px;
}
.dd { position: relative; }
.ddb {
  position: relative;
  padding: 2px 28px 2px 14px;
  font: 700 15px Fredoka, system-ui, sans-serif;
  color: #fff;
  background: #5cd65c;
  border: 3px solid var(--ink);
  border-radius: 16px;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  cursor: pointer;
}
.ddb::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -3px;
  border: 6px solid transparent;
  border-top-color: #fff;
}
.ddl {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  max-height: 260px;
  overflow: auto;
  padding: 4px;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 16px;
}
.dd.open .ddl { display: block; }
.ddo { padding: 6px 12px; border-radius: 10px; white-space: nowrap; cursor: pointer; }
.ddo.on { background: #5cd65c; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.sm { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  --tl: 38px;
  --sb: 24px;
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--c);
  border: 4px solid var(--ink);
  border-radius: 16px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .14;
  -webkit-mask: var(--pat) 0 0 / 360px;
  mask: var(--pat) 0 0 / 360px;
  pointer-events: none;
}
.card b {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--tl);
  padding: 4px 4px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
.card > img {
  position: absolute;
  left: 4px;
  top: var(--tl);
  width: calc(100% - 8px);
  height: calc(100% - var(--tl) - var(--sb));
  object-fit: contain;
}
.sm .card { --tl: 30px; --sb: 18px; }
.sm .card b { font-size: 11px; }
.big { --tl: 48px; --sb: 28px; width: 210px; flex: none; }
.big b { font-size: 16px; }
.rw .card { --tl: 0px; --sb: 20px; flex: none; width: 90px; aspect-ratio: 1; }
.card.sel { outline: 5px solid #5cd65c; }
.s1 { --c: var(--s1); }
.s2 { --c: var(--s2); }
.s3 { --c: var(--s3); }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; color: #ffc21a; }
.stars img { width: 18px; height: 18px; flex: none; }
.card .stars { position: absolute; left: 0; right: 0; bottom: 2px; justify-content: center; }
.sm .card .stars img { width: 14px; height: 14px; }
.box { margin-bottom: 14px; padding: 14px; color: #fff; background: var(--br); border: 4px solid var(--ink); border-radius: 18px; }
.box h3 { margin: 0 0 10px; padding-bottom: 6px; font-size: 20px; border-bottom: 3px dashed #ffffff40; }
.box p { margin: 4px 0; }
.box ul { margin: 4px 0; padding-left: 20px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.acard {
  position: relative;
  flex: none;
  width: 170px;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  background: #3b2417;
  border: 4px solid var(--ink);
  border-radius: 16px;
}
.acard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acard b, .acard span {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 20px;
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}
.acard b { top: 8px; }
.acard span { bottom: 8px; color: #5cf05c; font-weight: 700; }
.detail { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.info { flex: 1; min-width: 220px; }
.bubble { padding: 12px 16px; font-size: 18px; background: #fff; border: 4px solid var(--ink); border-radius: 18px; }
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  padding: 6px 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: var(--b2);
  border: 3px solid var(--ink);
  border-radius: 14px;
}
.chip small { display: block; font-size: 13px; font-weight: 500; }
.th { flex: none; width: 56px; height: 56px; object-fit: cover; border: 3px solid var(--ink); border-radius: 10px; }
.paw { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.paw img { width: 20px; height: 20px; }
.reqs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reqs .card { width: 110px; }
.reqs em { font-size: 28px; font-style: normal; font-weight: 700; color: #fff; }
.rw { margin: 0; flex-wrap: nowrap; color: #fff; text-decoration: none; }
.rw h3 { border: 0; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.pg { position: relative; height: 22px; margin: 4px 0 8px; overflow: hidden; background: #3b2417; border: 3px solid var(--ink); border-radius: 10px; }
.pg div { height: 100%; background: #5cd65c; }
.pg span { position: absolute; inset: 0; font-size: 13px; line-height: 16px; text-align: center; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
table { width: 100%; border-collapse: collapse; }
td { padding: 3px 6px; border-bottom: 2px solid #0004; }
summary { font-weight: 700; cursor: pointer; }
a { color: #ffd45a; }
main > #app > ul a, main > #app > p a { color: #7a3f12; }
.muted { margin: 4px 2px; opacity: .7; }
#ld { position: fixed; inset: 0; z-index: 99; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--sky); }
.ldb { width: 100%; max-width: 420px; padding: 16px; text-align: center; background: var(--br); border: 4px solid var(--ink); border-radius: 18px; }
.ldb .t { margin: 0 0 12px; font-size: 22px; }
.ldb .pg { margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 #ffb13b00; } 50% { box-shadow: 0 0 14px 2px #ffb13bcc; } }
@keyframes ddin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#app > * { animation: rise .35s ease backwards; }
.grid .card:nth-child(-n+30) { animation: pop .4s ease backwards; }
.grid .card:nth-child(3n+2) { animation-delay: .05s; }
.grid .card:nth-child(3n) { animation-delay: .1s; }
.card.s3 { animation: glow 3s ease-in-out infinite; }
.tab { animation: bob 4s ease-in-out infinite; }
a.card, nav a, .pill, .chip, .ddb { transition: transform .15s ease; }
a.card:hover { transform: translateY(-4px) rotate(-1deg); }
nav a:hover, .pill:hover, .chip:hover { transform: translateY(-2px); }
a.card:active, nav a:active, .pill:active, .chip:active, .ddb:active { transform: scale(.96); }
.ddl { animation: ddin .15s ease; }
.pg div { transition: width .25s ease; }
@media (max-width: 640px) {
  main { padding: 26px 10px 14px; border-width: 4px; }
  header { min-height: 120px; }
  .tab { padding: 4px 16px; font-size: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
  .big { width: 150px; --tl: 40px; }
  .info { min-width: 100%; }
  .fld { width: 100%; justify-content: space-between; }
  .reqs .card { width: 88px; }
  .wide { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }