.journal-room { padding:23px 26px 27px; min-height:510px; }
.journal-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:8px 18px; }
.book-shelf h3 { display:flex; align-items:baseline; gap:12px; margin-top:17px; font-size:1rem; }
.book-shelf h3:first-child { color:#f0c895; }
.book-shelf h3 span { color:#d8af96; font-size:.8rem; }
.collections { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:7px 0 9px; }
.book-cover { position:relative; isolation:isolate; min-width:0; width:min(100%,150px); justify-self:center; --cover-ink:#f5d4a9; }
.book-cover[data-rarity=legendary] { --cover-ink:#ffe0a4; }
.book-cover .collection-title { position:relative; isolation:isolate; display:grid; justify-items:start; align-content:end; gap:2px; width:100%; min-height:205px; padding:9px 10px 13px 16px; border-radius:6px 14px 14px 6px; text-align:left; color:var(--cover-ink); background:#26151a; box-shadow:0 3px #4a3b30,0 5px #28211e,0 9px 15px #090608b8; }
.book-cover .collection-title:hover:not(:disabled) { translate:0 -2px; }
.book-cover .collection-title strong { font-size:1rem; line-height:1.25; overflow-wrap:anywhere; }
.cover-image { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:fill; border-radius:inherit; }
.book-cover .collection-title::before {
  content:""; position:absolute; pointer-events:none; inset:0; z-index:-1; border-radius:inherit;
  background:linear-gradient(180deg,#180c1490 0%,transparent 24%,transparent 51%,#160d10ed 94%);
}
.book-cover .collection-title strong { text-shadow:0 1px 4px #000; }
.book-cover small { color:#dbc2ab; font-size:.76rem; }
.cover-rarity { position:absolute; top:10px; left:19px; font-size:.69rem; color:var(--cover-ink); }
.book-cover[data-reward-state=ready] .collection-title {
  box-shadow:-3px 1px 7px -1px #e1ac6d8a,0 3px #846449,0 5px #493528;
  animation:book-ready 2.7s ease-in-out infinite;
}
@keyframes book-ready {
  0%,48%,100% { translate:0 0; }
  15% { translate:0 -4px; box-shadow:-4px 1px 10px -1px #e1ac6dc0,0 3px #846449,0 5px #493528; }
  27% { translate:0 0; }
  35% { translate:0 -2px; }
}
@media (prefers-reduced-motion:reduce) { .book-cover[data-reward-state=ready] .collection-title { animation:none; } }
.book-back { font-size:.83rem; min-height:30px; margin-bottom:6px; }
.book-reward {
  position:relative;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 15px;
  min-width:min(100%,276px); padding:8px 9px 8px 14px; border-radius:22px;
  background:radial-gradient(ellipse at 80% 55%,#b493640c,transparent 74%);
}
.book-reward[data-reward-state=ready] { background:radial-gradient(ellipse at 80% 55%,#b4936415,transparent 76%); }
.book-reward[data-arriving]::after {
  content:""; position:absolute; pointer-events:none; height:2px; inset:auto 9px 3px 9px; opacity:0;
  background:linear-gradient(90deg,transparent 32%,#bf915d 47%,#ffe1a9 51%,transparent 67%) 100% 0/230% 100%;
  animation:fishing-reward-arrive .65s ease-out .15s;
}
@keyframes fishing-reward-arrive {
  from { background-position:100% 0; opacity:0; }
  28%,76% { opacity:1; }
  to { background-position:0 0; opacity:0; }
}
.reward-detail { display:grid; gap:1px; color:#f0d9c9; font-size:.87rem; }
.reward-detail small { color:#cfac93; font-size:.72rem; }
.reward-detail b { color:#e6bf88; margin-left:3px; }
.journal-open[data-rarity=legendary] .journal-grid { box-shadow:0 3px #684331,0 6px #1e1417,0 9px #906542,0 15px 20px #08050785; }
.collection-notice { color:#ecbd89; font-size:.83rem; margin:0 0 7px; }
.reward-chest { display:flex; align-items:center; justify-content:center; min-height:37px; gap:7px; padding:5px 11px; font-size:.77rem; font-weight:600; line-height:1.15; border-radius:22px; color:#e2cdc5; background:#191416ed; z-index:2; }
.reward-chest:disabled { opacity:1; }
.reward-chest[data-reward-state=locked] { color:#b8aba8; background:#171517; }
.reward-chest[data-reward-state=claimed] .reward-label { color:#dcbc8d; text-shadow:0 1px #090709; }
[data-revealing=true] .reward-label { animation:fishing-reward-stamp .32s ease-out .31s both; }
@keyframes fishing-reward-stamp {
  from { opacity:0; transform:rotate(-7deg) scale(1.55); }
  62% { opacity:1; transform:rotate(-3deg) scale(.94); }
  to { opacity:1; transform:none; }
}
.chest-art { position:relative; display:block; flex:none; width:26px; height:17px; color:#8d7570; }
.chest-art::before { content:""; position:absolute; inset:7px 1px 0; border:1px solid currentColor; border-radius:0 0 3px 3px; background:linear-gradient(180deg,#63504b,#2f2423); }
.chest-lid { position:absolute; inset:1px 0 auto; height:7px; border:1px solid currentColor; border-radius:5px 5px 1px 1px; background:linear-gradient(#786058,#392928); transform-origin:center bottom; }
.chest-lock { position:absolute; left:10px; top:8px; width:6px; height:6px; border:1px solid currentColor; border-radius:1px; background:#312220; }
.chest-lock::before { content:""; position:absolute; inset:-4px 0 auto; height:3px; border:1px solid currentColor; border-bottom:0; border-radius:4px 4px 0 0; }
[data-reward-state=ready].reward-chest { color:#fff; background:var(--red); }
[data-reward-state=ready].reward-chest:hover { background:#fa1b3e; }
[data-reward-state=ready] .chest-art { color:#e7b678; }
[data-reward-state=ready] .chest-art::before { background:linear-gradient(#bd8649,#76402b); }
[data-reward-state=ready] .chest-lid { background:linear-gradient(#e7b775,#8f492b); }
[data-reward-state=claimed] .chest-lid { transform:translateY(-4px) skewX(-15deg); background:#584039; }
[data-reward-state=claimed] .chest-lock { left:10px; top:8px; height:5px; width:8px; border:solid #dfc58b; border-width:0 0 1.5px 1.5px; transform:rotate(-45deg); border-radius:0; background:none; }
[data-reward-state=claimed] .chest-lock::before { display:none; }
.chest-sparks { position:absolute; pointer-events:none; inset:-10px -14px; opacity:0; background:radial-gradient(circle at 25% 32%,#fff0a5 0 1px,transparent 2px),radial-gradient(circle at 76% 28%,#ffd086 0 1.5px,transparent 2.5px),radial-gradient(circle at 58% 3%,#fff2b0 0 1px,transparent 2px),radial-gradient(ellipse,#ffe18aab,transparent 65%); }
[data-revealing=true] .chest-sparks { animation:chest-reveal .78s ease-out both; }
[data-revealing=true] .chest-lid { animation:chest-open .42s ease-out; }
@keyframes chest-open { 0% { transform:none; } 65% { transform:translateY(-7px) skewX(-22deg); } }
@keyframes chest-reveal { 0% { opacity:0; scale:.35; } 25% { opacity:1; } 100% { opacity:0; scale:1.35; translate:0 -8px; } }
.journal-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); margin-top:14px; border:0; border-radius:14px 14px 30px 30px; overflow:hidden; background:#151417; box-shadow:0 3px #272125,0 6px #151215,0 9px #332931,0 15px 20px #08050785; }
.journal-room .journal-detail,.species-index { min-width:0; padding:13px 16px 15px; margin:0; align-content:start; }
.journal-room .journal-detail { border:0; background:linear-gradient(94deg,#171619,#1c191a 65%,#151216); gap:6px; }
.species-index { position:relative; isolation:isolate; padding-bottom:47px; background:linear-gradient(90deg,#100e11,#171518 18%,#171618 94%,#151416); }
.species-index::after {
  content:""; position:absolute; bottom:9px; right:14px; width:66px; height:24px;
  background:url("assets/arthan-roleplay.jpg") center/contain no-repeat; opacity:.21; mix-blend-mode:screen;
  filter:grayscale(1) sepia(.65); pointer-events:none; z-index:-1;
}
.leaf-caption { color:#e0b88b; font-size:.76rem; background:var(--section-rule) bottom / 100% 1px no-repeat; padding-bottom:5px; }
.specimen-image { min-height:143px; display:grid; place-items:center; isolation:isolate; position:relative; background:radial-gradient(ellipse,#b4936420,transparent 65%); }
.specimen-image img { width:min(91%,290px); height:145px; object-fit:contain; filter:drop-shadow(0 9px 6px #100a09aa); animation:fish-arrive .42s ease-out both; }
.specimen-title,.species-index h3 { display:flex; justify-content:space-between; align-items:baseline; gap:8px; color:#f6ded0; overflow-wrap:anywhere; }
.specimen-title { flex-wrap:wrap; }
.specimen-title { background:var(--section-rule) bottom / 100% 1px no-repeat; padding:4px 0 5px; }
.specimen-title h3 { font-size:1.19rem; }
.specimen-title span,.species-index h3 span { color:#f0bf87; white-space:nowrap; font-size:.82rem; }
.species-index h3 { font-size:1.03rem; min-height:27px; margin-bottom:6px; }
.show-all { min-height:25px; padding:2px 7px; font-size:.74rem; white-space:nowrap; }
.journal-room .species-grid { grid-template-columns:minmax(0,1fr); gap:2px; max-height:258px; overflow:auto; padding-right:6px; scrollbar-color:#996859 #33221f; }
.journal-room .species-grid button { display:grid; grid-template-columns:35px minmax(0,1fr) auto; align-items:center; text-align:left; gap:6px; min-height:37px; padding:3px 6px; border-radius:7px; border:0; background:transparent; font-size:.83rem; overflow-wrap:anywhere; }
.species-grid img { width:33px; height:29px; object-fit:contain; }
.species-grid button[data-known=false] img { opacity:.58; filter:saturate(.5); }
.journal-room .species-grid button[aria-pressed=true] { background:linear-gradient(90deg,#e5092c20,transparent); }
.species-grid button small { color:#e2c1ad; font-size:.67rem; }
.journal-room .figures { gap:7px 13px; }
@media (max-width:850px) { .collections { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:780px) { .journal-room { padding-inline:14px; } }
@media (max-width:590px) {
  .journal-grid { grid-template-columns:minmax(0,1fr); }
  .collections { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
}
.journal-open .species-index { transform-origin:left center; }
.specimen-image[data-silhouette=true] img { filter:brightness(0) drop-shadow(0 0 1px #b49364) opacity(.65); }
.species-grid button[data-known=false] img { filter:brightness(0) drop-shadow(0 0 1px #b49364); }
.journal-open[data-rarity=legendary] .species-grid button img { opacity:1; filter:none; }
.journal-seal,.specimen-title .journal-seal {
  width:max-content; max-width:100%; display:inline-flex; align-items:center; gap:4px;
  border:1px solid #9f4b55;
  border-radius:4px 6px 4px 6px; padding:1px 6px;
  background:#2e1a1e; color:#f1c5bf; font-size:.71rem; font-weight:700;
  line-height:1.35; white-space:normal; transform:rotate(-3deg);
}
.journal-seal i { flex:none; font-style:normal; font-size:.8em; }
.journal-seal[data-seal=ready] { border-color:#c29861; color:#f5d9a6; background:#302219; }
.journal-seal[data-seal=claimed] { border-color:#826951; color:#d8bf9f; background:#231d18; }
.book-cover .journal-seal { margin-bottom:4px; }
.reward-detail .journal-seal { margin-bottom:4px; }
.journal-seal[data-stamping] { animation:journal-stamp .43s cubic-bezier(.21,.75,.27,1) both; }
.journal-seal[data-seal=claimed][data-stamping] { animation-delay:.24s; }
@keyframes journal-stamp {
  0% { opacity:0; transform:rotate(-8deg) translateY(-5px) scale(1.21); }
  62% { opacity:1; transform:rotate(-3deg) scale(.97); }
  100% { opacity:1; transform:rotate(-3deg) scale(1); }
}
@media (max-width:590px) { .journal-open .species-index { transform-origin:center top; } }
