.journal-shell { display: grid; gap: 22px; padding-bottom: 32px; }
html[data-page-transition="active"] .page-transition-root:has(.journal-play-stage.is-active) { view-transition-name: none !important; }
.page-transition-root:has(.journal-play-stage.is-active)::before { content: ""; position: fixed; inset: 0; z-index: 14; background: rgba(45, 24, 16, .52); pointer-events: none; }
.page-transition-root:has(.journal-play-stage.is-active) .journal-play-stage.is-active { position: relative; z-index: 16; }
.page-transition-root:has(.journal-play-stage.is-active) .journal-challenge.card:hover { transform: none; box-shadow: 4px 4px 0 #6b2e14; }
.journal-play-stage { scroll-margin-top: 88px; scroll-margin-bottom: 24px; }
.journal-play-board { position: relative; width: min(100%, 800px, calc(100dvh - 20rem), calc(100vw - 2.5rem)); max-width: 100%; margin: 18px auto; }
.journal-play-board .journal-maze,
.journal-play-board .journal-dodge,
.journal-play-board .journal-whack { width: 100%; max-width: 100%; margin: 0; }
.journal-play-board .journal-maze,
.journal-play-board .journal-dodge,
.journal-play-board .journal-whack { aspect-ratio: 1; height: auto; }
.journal-play-gate { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(255, 250, 244, .78); }
.journal-play-saving { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(255, 250, 244, .78); pointer-events: none; }
.journal-play-board:has(.journal-maze, .journal-dodge, .journal-whack) .journal-play-saving { background: rgba(0, 0, 0, .45); }
.journal-play-stage.is-active .journal-play-gate { display: none; }
.journal-play-start { min-height: 52px; padding: 14px 32px; border: 3px solid #6b2e14; border-radius: 14px; background: linear-gradient(135deg, #f3cfb5, #d47848); color: #6b2e14; font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 5px 5px 0 #8f644b; cursor: pointer; }
.journal-play-start:hover { filter: brightness(1.03); }
.journal-play-start:focus-visible { outline: 3px solid #d47848; outline-offset: 4px; }
.journal-shell h1, .journal-shell h2, .journal-shell h3 { line-height: 1.2; }
.journal-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(20px, 4vw, 36px); }
.journal-intro h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 16px 0; letter-spacing: -.025em; }
.journal-intro p, .journal-challenge-lead { color: #6a5248; margin: 0; }
.journal-book { display: grid; place-items: center; flex: 0 0 110px; height: 110px; border: 3px solid #6b2e14; border-radius: 22px; background: linear-gradient(135deg, #f3cfb5, #d47848); color: #6b2e14; font-size: 3rem; box-shadow: 6px 6px 0 #8f644b; transform: rotate(8deg); }
.journal-content { display: grid; gap: 22px; }
.journal-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 2px solid #8f644b; border-radius: 14px; overflow: hidden; background: #fff8f0; }
.journal-boards { display: grid; gap: 16px; }
@media (min-width: 800px) { .journal-boards { grid-template-columns: 1fr 1fr; } }
.journal-board { padding: 18px; }
.journal-board h2 { margin: 8px 0 0; font-size: 1.2rem; }
.journal-board ol { list-style: none; padding: 0; margin: 14px 0 0; }
.journal-board li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #e6d3c4; }
.journal-board a { color: #6b2e14; font-weight: 800; text-decoration: none; }
.journal-board-empty { color: #6a5248; margin: 14px 0 0; }
.journal-overview > div { display: flex; flex-direction: column; gap: 5px; padding: 18px; }
.journal-overview > div + div { border-left: 1px solid #d7bca7; }
.journal-overview strong { font-size: clamp(1.05rem, 2vw, 1.4rem); color: #6b2e14; }
.journal-overview span { font-size: .8rem; color: #6a5248; }
.journal-kicker { font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #8c3919; }
.journal-challenge, .journal-atlas, .journal-guest { padding: clamp(18px, 3vw, 28px); }
.journal-challenge-heading, .journal-atlas-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.journal-date, .journal-atlas-heading > span { color: #6a5248; font-size: .83rem; white-space: nowrap; }
.journal-challenge h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 12px 0; }
.journal-maze { display: grid; grid-template-columns: repeat(var(--journal-maze-w, 12), minmax(0, 1fr)); grid-auto-rows: 1fr; aspect-ratio: 1; width: min(100%, 800px); margin: 18px auto; border: 4px solid #fff; background: repeating-conic-gradient(#5d9b3c 0 25%, #67a845 0 50%) 0 0 / calc(200% / var(--journal-maze-w, 12)) calc(200% / var(--journal-maze-w, 12)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35); touch-action: none; }
.journal-maze:focus-visible { outline: 3px solid #d47848; outline-offset: 3px; }
.journal-challenge h3 { margin: 0 0 8px; font-size: 1.15rem; }
.journal-cleared { margin: 0 0 14px; color: #42613b; font-weight: 800; }
.journal-dodge { --journal-dodge-pad: 22%; --journal-dodge-band: 20%; --journal-dodge-rim: 20px; position: relative; width: min(100%, 800px); aspect-ratio: 1; margin: 18px auto; border: 4px solid #1d1d1d; background: linear-gradient(#8b8b8b, #8b8b8b) center / 20% 20% no-repeat, repeating-conic-gradient(#5d9b3c 0 25%, #67a845 0 50%) 0 0 / 12.5% 12.5%; background-origin: border-box; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18); touch-action: none; overflow: hidden; }
.journal-dodge:focus-visible { outline: 3px solid #d47848; outline-offset: 3px; }
.journal-dodge-player { position: absolute; z-index: 2; left: 50%; top: 50%; width: 14%; aspect-ratio: 1; transform: translate(-50%, -50%); background: #c4a484 center / cover no-repeat; background-image: var(--journal-player); image-rendering: pixelated; box-shadow: 0 0 0 3px #1d1d1d, 0 8px 0 rgba(0, 0, 0, .22); animation: journal-dodge-idle 1.1s ease-in-out infinite; }
.journal-dodge-hazard { position: absolute; z-index: 2; display: grid; place-items: center; width: 16%; aspect-ratio: 1; background: linear-gradient(#d23a2a 0 30%, #ece6da 30% 70%, #d23a2a 70%); border: 3px solid #1d1d1d; box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .25), inset 4px 4px 0 rgba(255, 255, 255, .25); color: #1d1d1d; font-size: clamp(1.2rem, 4vw, 2rem); font-weight: 900; line-height: 1; }
.journal-dodge-hazard::before { content: "•"; }
.journal-dodge-hazard.is-from-U { left: 42%; top: 22%; }
.journal-dodge-hazard.is-from-D { left: 42%; top: 62%; }
.journal-dodge-hazard.is-from-L { left: 22%; top: 42%; }
.journal-dodge-hazard.is-from-R { left: 62%; top: 42%; }
.journal-dodge-hazard.is-from-U::before { content: "↓"; }
.journal-dodge-hazard.is-from-D::before { content: "↑"; }
.journal-dodge-hazard.is-from-L::before { content: "→"; }
.journal-dodge-hazard.is-from-R::before { content: "←"; }
.journal-dodge.is-live::after { content: ""; position: absolute; z-index: 0; pointer-events: none; background: repeating-linear-gradient(45deg, rgba(210, 58, 42, .38) 0 10px, rgba(210, 58, 42, .18) 10px 20px); animation: journal-dodge-lane .7s ease; }
.journal-dodge.is-live.is-from-U::after { left: 38%; right: 38%; top: 0; height: 46%; }
.journal-dodge.is-live.is-from-D::after { left: 38%; right: 38%; bottom: 0; height: 46%; }
.journal-dodge.is-live.is-from-L::after { top: 38%; bottom: 38%; left: 0; width: 46%; }
.journal-dodge.is-live.is-from-R::after { top: 38%; bottom: 38%; right: 0; width: 46%; }
.journal-dodge.is-live .journal-dodge-hazard { animation-duration: 2200ms; animation-timing-function: linear; animation-fill-mode: forwards; }
.journal-dodge.is-live .journal-dodge-hazard.is-from-U { animation-name: journal-dodge-from-u; }
.journal-dodge.is-live .journal-dodge-hazard.is-from-D { animation-name: journal-dodge-from-d; }
.journal-dodge.is-live .journal-dodge-hazard.is-from-L { animation-name: journal-dodge-from-l; }
.journal-dodge.is-live .journal-dodge-hazard.is-from-R { animation-name: journal-dodge-from-r; }
.journal-dodge-cue { position: absolute; z-index: 4; left: 50%; top: 24%; transform: translateX(-50%); color: #fff; font-size: clamp(1rem, 3vw, 1.35rem); font-weight: 800; white-space: nowrap; pointer-events: none; text-shadow: 2px 2px 0 #3f3f3f; }
.journal-dodge-combo { position: absolute; top: 10px; right: 12px; z-index: 4; color: #ffff55; font-size: 1.4rem; font-weight: 800; text-shadow: 2px 2px 0 #3f3f15; pointer-events: none; }
.journal-dodge-pips { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4; display: grid; gap: 2px; padding: 2px; background: #1d1d1d; pointer-events: none; }
.journal-dodge-pips i { display: block; height: 8px; background: #3b3b3b; }
.journal-dodge-pips i.is-hit { background: #80ff20; box-shadow: inset 0 -3px 0 #4caf10; }
.journal-dodge .journal-pad { position: absolute; inset: 0; z-index: 3; display: block; width: auto; margin: 0; }
.journal-dodge .journal-pad a { position: absolute; display: flex; align-items: center; justify-content: center; min-height: 0; border: 0; background: transparent; }
.journal-maze ~ .journal-play-gate, .journal-dodge ~ .journal-play-gate, .journal-whack ~ .journal-play-gate { background: rgba(0, 0, 0, .45); }
.journal-maze ~ .journal-play-gate .journal-play-start, .journal-dodge ~ .journal-play-gate .journal-play-start, .journal-whack ~ .journal-play-gate .journal-play-start { width: auto; min-width: min(60%, 260px); border: 3px solid #1d1d1d; border-radius: 0; background: #8b8b8b; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; box-shadow: inset -4px -4px 0 #555, inset 4px 4px 0 #c6c6c6; }
.journal-maze ~ .journal-play-gate .journal-play-start:hover, .journal-dodge ~ .journal-play-gate .journal-play-start:hover, .journal-whack ~ .journal-play-gate .journal-play-start:hover { background: #7e8fd0; box-shadow: inset -4px -4px 0 #4a5590, inset 4px 4px 0 #b5c2f0; filter: none; }
.journal-dodge .journal-pad a[data-journal-move="U"] { top: 0; left: var(--journal-dodge-pad); right: var(--journal-dodge-pad); height: var(--journal-dodge-band); }
.journal-dodge .journal-pad a[data-journal-move="D"] { bottom: var(--journal-dodge-rim); left: var(--journal-dodge-pad); right: var(--journal-dodge-pad); height: var(--journal-dodge-band); }
.journal-dodge .journal-pad a[data-journal-move="L"] { top: var(--journal-dodge-pad); bottom: max(var(--journal-dodge-pad), var(--journal-dodge-rim)); left: 0; width: var(--journal-dodge-band); }
.journal-dodge .journal-pad a[data-journal-move="R"] { top: var(--journal-dodge-pad); bottom: max(var(--journal-dodge-pad), var(--journal-dodge-rim)); right: 0; width: var(--journal-dodge-band); }
.journal-dodge.is-hit .journal-dodge-hazard { opacity: 0; }
.journal-dodge.is-hop-U .journal-dodge-player { animation: journal-dodge-hop-u 320ms ease; }
.journal-dodge.is-hop-D .journal-dodge-player { animation: journal-dodge-hop-d 320ms ease; }
.journal-dodge.is-hop-L .journal-dodge-player { animation: journal-dodge-hop-l 320ms ease; }
.journal-dodge.is-hop-R .journal-dodge-player { animation: journal-dodge-hop-r 320ms ease; }
.journal-dodge.is-miss { animation: journal-dodge-shake 280ms linear; }
.journal-dodge.is-miss .journal-dodge-hazard { left: 42%; top: 42%; background: #fff; transform: scale(1.4); opacity: .85; }
.journal-dodge.is-miss .journal-dodge-player { filter: sepia(1) saturate(8) hue-rotate(-40deg) brightness(.9); }
@keyframes journal-dodge-from-u { 0% { top: 22%; transform: scale(.7); } 30% { top: 22%; transform: scale(1.22); } 100% { top: 40%; transform: scale(1); } }
@keyframes journal-dodge-from-d { 0% { top: 62%; transform: scale(.7); } 30% { top: 62%; transform: scale(1.22); } 100% { top: 42%; transform: scale(1); } }
@keyframes journal-dodge-from-l { 0% { left: 22%; transform: scale(.7); } 30% { left: 22%; transform: scale(1.22); } 100% { left: 40%; transform: scale(1); } }
@keyframes journal-dodge-from-r { 0% { left: 62%; transform: scale(.7); } 30% { left: 62%; transform: scale(1.22); } 100% { left: 42%; transform: scale(1); } }
@keyframes journal-dodge-lane { from { opacity: 0; } 40% { opacity: 1; } to { opacity: .15; } }
@keyframes journal-dodge-idle { 50% { transform: translate(-50%, calc(-50% - 18%)); } }
@keyframes journal-dodge-hop-u { 45% { transform: translate(-50%, calc(-50% - 130%)) scale(1.08); } to { transform: translate(-50%, -50%); } }
@keyframes journal-dodge-hop-d { 45% { transform: translate(-50%, calc(-50% + 130%)) scale(1.08); } to { transform: translate(-50%, -50%); } }
@keyframes journal-dodge-hop-l { 45% { transform: translate(calc(-50% - 130%), -50%) scale(1.08); } to { transform: translate(-50%, -50%); } }
@keyframes journal-dodge-hop-r { 45% { transform: translate(calc(-50% + 130%), -50%) scale(1.08); } to { transform: translate(-50%, -50%); } }
@keyframes journal-dodge-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.journal-whack { position: relative; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 4%; width: min(100%, 800px); aspect-ratio: 1; margin: 18px auto; padding: 8% 6% 11%; border: 4px solid #1d1d1d; background: repeating-conic-gradient(#5d9b3c 0 25%, #67a845 0 50%) 0 0 / 12.5% 12.5%; background-origin: border-box; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18); touch-action: manipulation; overflow: hidden; }
.journal-whack:focus-visible { outline: 3px solid #d47848; outline-offset: 3px; }
.journal-whack-hole { position: relative; display: block; min-width: 0; overflow: hidden; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.journal-whack-hole::before { content: ""; position: absolute; z-index: 0; left: 4%; right: 4%; bottom: 4%; height: 34%; border-radius: 50%; background: #2b1d12; box-shadow: inset 0 6px 0 rgba(0, 0, 0, .35); }
.journal-whack-hole::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 22%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: #7a5434; box-shadow: inset 0 4px 0 #8f6641; }
.journal-whack-hole:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.journal-whack-mob { position: absolute; z-index: 1; left: 19%; bottom: 14%; width: 62%; aspect-ratio: 1; border: 3px solid #1d1d1d; transform: translateY(125%); transition: transform 90ms ease-out; background: linear-gradient(#1d1d1d, #1d1d1d) 16.667% 33.333% / 25% 25% no-repeat, linear-gradient(#1d1d1d, #1d1d1d) 83.333% 33.333% / 25% 25% no-repeat, linear-gradient(#1d1d1d, #1d1d1d) 50% 66.667% / 25% 25% no-repeat, linear-gradient(#1d1d1d, #1d1d1d) 28.571% 83.333% / 12.5% 25% no-repeat, linear-gradient(#1d1d1d, #1d1d1d) 71.429% 83.333% / 12.5% 25% no-repeat, #4fae2e; box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .22), inset 4px 4px 0 rgba(255, 255, 255, .2); image-rendering: pixelated; }
.journal-whack-hole.is-decoy .journal-whack-mob { background: linear-gradient(#4a3a2a, #4a3a2a) 50% 28.571% / 75% 12.5% no-repeat, linear-gradient(#1d1d1d, #1d1d1d) 28.571% 42.857% / 12.5% 12.5% no-repeat, linear-gradient(#1d1d1d, #1d1d1d) 71.429% 42.857% / 12.5% 12.5% no-repeat, linear-gradient(#a8714f, #a8714f) 50% 60% / 25% 37.5% no-repeat, #c8946a; }
.journal-whack-hole.is-up .journal-whack-mob { transform: translateY(0); }
.journal-whack-hole.is-up:not(.is-decoy) .journal-whack-mob { animation: journal-whack-fuse var(--journal-whack-ms, 1200ms) linear forwards; }
.journal-whack-hole.is-up.is-bonk .journal-whack-mob { animation: journal-whack-bonk 220ms ease-out forwards; }
.journal-whack-hole.is-up.is-boom .journal-whack-mob { animation: none; transform: translateY(0) scale(1.35); background: #fff; filter: brightness(1.4); }
.journal-whack.is-miss { animation: journal-dodge-shake 280ms linear; }
@keyframes journal-whack-fuse { 0%, 60% { filter: none; } 70%, 90% { filter: brightness(1.9); } 80%, 100% { filter: none; } }
@keyframes journal-whack-bonk { 40% { transform: translateY(0) scale(1.25, .6); filter: brightness(1.8); } to { transform: translateY(125%) scale(1); } }
.journal-cell { position: relative; min-width: 0; min-height: 0; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.journal-cell.is-open-e, .journal-cell.is-edge-e { border-right-color: transparent; }
.journal-cell.is-open-s, .journal-cell.is-edge-s { border-bottom-color: transparent; }
.journal-cell.is-end { background: #e6b325; box-shadow: inset 0 0 0 2px #1d1d1d; }
.journal-cell.is-player::after { content: ""; position: absolute; inset: 10%; background: #c4a484 center / cover no-repeat; background-image: var(--journal-player); image-rendering: pixelated; box-shadow: 0 0 0 2px #1d1d1d, 0 2px 0 rgba(0, 0, 0, .22); }
.journal-pad { display: grid; grid-template-columns: repeat(3, clamp(40px, 11vw, 56px)); grid-template-areas: ". up ." "left down right"; justify-content: center; gap: 8px; margin: 8px 0 16px; }
.journal-pad a { display: grid; place-items: center; border: 0; background: transparent; color: #fff; font-size: 0; font-weight: 900; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.journal-pad a::before { display: grid; place-items: center; width: clamp(40px, 11vw, 56px); aspect-ratio: 1; border: 2px solid #1d1d1d; background: #8b8b8b; box-shadow: inset -3px -3px 0 #555, inset 3px 3px 0 #c6c6c6; font-size: clamp(1.1rem, 4vw, 1.5rem); font-weight: 900; line-height: 1; text-shadow: 2px 2px 0 #3f3f3f; }
.journal-pad a[data-journal-move="U"]::before { content: "↑"; }
.journal-pad a[data-journal-move="D"]::before { content: "↓"; }
.journal-pad a[data-journal-move="L"]::before { content: "←"; }
.journal-pad a[data-journal-move="R"]::before { content: "→"; }
.journal-pad a:hover::before { background: #7e8fd0; box-shadow: inset -3px -3px 0 #4a5590, inset 3px 3px 0 #b5c2f0; }
.journal-pad a:active::before { box-shadow: inset 3px 3px 0 #555, inset -3px -3px 0 #c6c6c6; }
.journal-pad a[data-journal-move="U"] { grid-area: up; }
.journal-pad a[data-journal-move="L"] { grid-area: left; }
.journal-pad a[data-journal-move="D"] { grid-area: down; }
.journal-pad a[data-journal-move="R"] { grid-area: right; }
.journal-pad a:focus-visible { outline: 0; }
.journal-pad a:focus-visible::before { outline: 3px solid #fff; outline-offset: 2px; }
.journal-form-actions { display: flex; align-items: center; gap: 18px; }
.journal-form-actions > button { width: auto; margin: 0; min-height: 48px; }
.journal-form-actions > span { font-size: .8rem; color: #6a5248; }
.journal-feedback { margin: 14px 0 0; color: #773819; font-size: .9rem; }
.journal-feedback:empty { display: none; }
.journal-feedback a { color: #773819; font-weight: 800; }
.journal-reveal { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 28px; padding: 28px; overflow: hidden; }
.journal-reveal h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 12px 0; }
.journal-reveal-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; border-radius: 24px; border: 2px solid var(--journal-ink, #6b2e14); background: var(--journal-paper, #f3cfb5); }
.journal-seal { --stamp-hole: 2px; --stamp-step: 7px; position: relative; display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 2px; background: linear-gradient(145deg, rgba(255,255,255,.45), transparent 50%), var(--journal-paper, #f3cfb5); color: var(--journal-ink, #6b2e14); font-size: 1.5rem; box-shadow: inset 0 0 0 1.5px currentColor; filter: drop-shadow(1px 2px 0 var(--journal-shadow, #c4a58e)); -webkit-mask: radial-gradient(circle at var(--stamp-hole) var(--stamp-hole), #0000 var(--stamp-hole), #000 calc(var(--stamp-hole) + .5px)) calc(-1 * var(--stamp-hole)) calc(-1 * var(--stamp-hole)) / var(--stamp-step) var(--stamp-step), linear-gradient(#000 0 0); -webkit-mask-composite: source-in; mask: radial-gradient(circle at var(--stamp-hole) var(--stamp-hole), #0000 var(--stamp-hole), #000 calc(var(--stamp-hole) + .5px)) calc(-1 * var(--stamp-hole)) calc(-1 * var(--stamp-hole)) / var(--stamp-step) var(--stamp-step), linear-gradient(#000 0 0); mask-composite: intersect; }
.journal-reveal-art .journal-seal { z-index: 1; width: 100px; height: 100px; --stamp-hole: 2.5px; --stamp-step: 9px; font-size: 3rem; background: linear-gradient(145deg, rgba(255,255,255,.55), transparent 50%), var(--journal-paper, #f3cfb5); transform: rotate(-8deg); }
.journal-reveal-ring { position: absolute; width: 80%; height: 80%; border: 1px dashed var(--journal-ink, #6b2e14); border-radius: 50%; opacity: .5; }
.journal-theme-grove { --journal-paper: #e1ead6; --journal-ink: #42613b; --journal-shadow: #9aaf87; }
.journal-theme-dunes { --journal-paper: #f5dfae; --journal-ink: #855622; --journal-shadow: #c7a467; }
.journal-theme-tides { --journal-paper: #dae9e9; --journal-ink: #3c696a; --journal-shadow: #8eafad; }
.journal-theme-stars { --journal-paper: #e7dfed; --journal-ink: #685079; --journal-shadow: #b3a0c2; }
.journal-story { color: #4a342c; font-size: 1.08rem; line-height: 1.5; margin: 8px 0; }
.journal-fineprint { color: #6a5248; font-size: .8rem; line-height: 1.55; }
.journal-next { font-size: .88rem; color: #4a342c; line-height: 1.6; }
.journal-next > span { color: #6a5248; font-size: .78rem; }
.journal-text-link, .journal-next a { color: #8c3919; font-size: .85rem; font-weight: 700; }
.journal-title-unlock { padding: 12px; background: #f5dfae; border: 1px solid #a27b32; border-radius: 10px; color: #6b451b; font-weight: 700; font-size: .9rem; }
.journal-milestone { display: flex; gap: 18px; align-items: center; padding: 20px; }
.journal-milestone > div { flex: 1; min-width: 0; }
.journal-milestone-icon { font-size: 1.8rem; color: #8c3919; }
.journal-milestone h2 { margin: 0 0 6px; font-size: 1.05rem; }
.journal-milestone p { color: #6a5248; font-size: .85rem; margin: 0 0 12px; }
.journal-milestone progress { display: block; width: 100%; height: 8px; accent-color: #b75b30; border-radius: 99px; }
.journal-atlas h2 { margin: 8px 0 0; font-size: 1.4rem; }
.journal-sets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.journal-sets a { min-height: 36px; padding: 6px 10px; border: 2px solid #cbb7a6; border-radius: 999px; color: #6b2e14; font-size: .78rem; font-weight: 800; text-decoration: none; }
.journal-sets a.is-current { border-color: #6b2e14; background: #fffaf4; }
.journal-sets a:focus-visible { outline: 3px solid #d47848; outline-offset: 3px; }
.journal-stamps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 22px 0 0; }
.journal-stamp { position: relative; padding: 14px 10px; border: 2px solid #cbb7a6; border-radius: 12px; text-align: center; background: #eee5db; min-width: 0; content-visibility: auto; contain-intrinsic-size: auto 140px; contain: layout style paint; }
.journal-stamp .journal-seal { position: relative; margin: 8px auto 14px; width: 48px; height: 48px; font-size: 1.25rem; transform: rotate(-5deg); border-radius: 3px; -webkit-mask: none; mask: none; filter: none; box-shadow: inset 0 0 0 1.5px currentColor, 1px 2px 0 var(--journal-shadow, #c4a58e); }
.journal-stamp:nth-child(3n+2) .journal-seal { transform: rotate(6deg); }
.journal-stamp:nth-child(3n) .journal-seal { transform: rotate(-8deg); }
.journal-stamp strong { display: block; font-size: .76rem; line-height: 1.3; overflow-wrap: anywhere; }
.journal-stamp-number { display: block; font-size: .65rem; opacity: .7; text-align: left; }
.journal-stamp.is-owned { background: var(--journal-paper); border-color: var(--journal-ink); color: var(--journal-ink); box-shadow: 2px 2px 0 var(--journal-shadow); }
.journal-stamp.is-locked { border-style: dashed; background: color-mix(in srgb, var(--journal-paper) 42%, #eee5db); border-color: color-mix(in srgb, var(--journal-ink) 38%, #cbb7a6); color: color-mix(in srgb, var(--journal-ink) 72%, #8c7a6e); box-shadow: none; }
.journal-stamp.is-preview { border-style: dashed; background: #fffaf4; color: var(--journal-ink); }
.journal-stamp.is-partial { background: var(--journal-paper); border-color: var(--journal-ink); color: var(--journal-ink); }
.journal-stamp-meter { display: block; height: 6px; margin: 8px 8px 0; background: rgba(107,46,20,.15); border-radius: 99px; overflow: hidden; }
.journal-stamp-meter > span { display: block; height: 100%; width: calc(var(--stamp-part) * 100% / var(--stamp-pace)); background: currentColor; }
[data-journal-reset] { margin-top: 16px; }
[data-journal-reset] button { width: auto; min-height: 48px; }
.journal-stamp.is-locked .journal-seal { opacity: .55; }
.journal-seal-lock { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #8c7a6e; background: #f7efe6; color: #6a5248; font-size: .48rem; box-shadow: 0 1px 0 rgba(74, 52, 44, .12); transform: rotate(8deg); }
.journal-stamp.is-locked strong { opacity: .82; }
.journal-stamp-hint--locked { text-decoration: none; font-style: italic; opacity: .85; }
.journal-stamp summary { cursor: pointer; list-style: none; }
.journal-stamp summary::-webkit-details-marker { display: none; }
.journal-stamp summary:focus-visible { outline: 3px solid #d47848; outline-offset: 5px; border-radius: 6px; }
.journal-stamp details p { font-size: .78rem; line-height: 1.5; margin: 12px 0 8px; }
.journal-stamp-hint { display: block; margin-top: 7px; font-size: .65rem; text-decoration: underline; }
.journal-stamp.is-new { outline: 3px solid #d47848; outline-offset: 3px; }
.journal-atlas-complete { font-weight: 700; color: #42613b; margin: 20px 0 0; }
.journal-past-volumes { margin-top: 22px; border-top: 1px solid #c4a58e; padding-top: 18px; font-size: .88rem; line-height: 1.5; }
.journal-past-volumes summary { cursor: pointer; font-weight: 700; color: #6b2e14; }
.journal-past-volumes li { margin: 8px 0; }
.journal-footer-note { color: #6a5248; font-size: .78rem; line-height: 1.6; margin: 0; text-align: center; padding: 0 14px; }
.journal-guest h2 { font-size: 1.6rem; }
.journal-guest > p { max-width: 700px; line-height: 1.6; }
.journal-guest > .home-cta-btn { display: inline-flex; width: auto; }
.journal-guest-stamps { display: flex; gap: 14px; margin: 28px 0; }
.journal-guest-stamps .journal-seal:nth-child(even) { transform: rotate(8deg); }
.journal-guest-stamps .journal-seal:nth-child(odd) { transform: rotate(-8deg); }
.journal-invite { display: flex; align-items: flex-start; gap: 14px; padding: 20px 16px; }
.journal-invite-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; background: #f3cfb5; border: 2px solid #8f644b; border-radius: 12px; color: #6b2e14; font-size: 1.2rem; }
.journal-invite h3 { margin: 7px 0 8px; font-size: 1.05rem; }
.journal-invite p { margin: 0 0 12px; font-size: .85rem; color: #6a5248; }
.journal-invite a { display: inline-block; min-height: 28px; color: #8c3919; font-size: .9rem; font-weight: 800; }
.journal-invite-meta { display: block; margin-top: 5px; font-size: .75rem; color: #6a5248; }
.journal-profile-title { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; padding: 8px 12px; background: #f5dfae; border: 2px solid #8f644b; border-radius: 10px; color: #6b451b; font-size: .9rem; font-weight: 800; }
.journal-profile-title-origin { font-size: .65rem; font-weight: 600; opacity: .8; }
.journal-door { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; color: #6b2e14; border: 2px dashed #b48a6e; border-radius: 12px; background: #f4e6d7; text-decoration: none; }
.journal-door > span:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.journal-door strong { font-size: .95rem; }
.journal-door > span:nth-child(2) > span { font-size: .8rem; font-weight: 400; color: #6a5248; }
.journal-door-icon { font-size: 1.4rem; }
.journal-door:focus-visible, .journal-invite a:focus-visible { outline: 3px solid #d47848; outline-offset: 4px; }
.journal-content--new .journal-reveal-art .journal-seal { animation: journal-stamp-in 650ms cubic-bezier(.2,.75,.25,1) both; }
.journal-content--new .journal-stamp.is-new { animation: journal-card-in 450ms 180ms ease both; }
@keyframes journal-stamp-in { 0% { opacity: 0; transform: rotate(-24deg) scale(1.5); } 65% { opacity: 1; transform: rotate(-5deg) scale(.94); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes journal-card-in { from { transform: translateY(10px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 1000px) { .journal-stamps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .journal-book { flex-basis: 56px; height: 66px; font-size: 1.7rem; border-radius: 12px; box-shadow: 3px 3px 0 #8f644b; }
  .journal-intro { gap: 14px; align-items: flex-start; }
  .journal-intro h1 { font-size: 1.55rem; }
  .journal-intro p { font-size: .9rem; }
  .journal-overview { grid-template-columns: 1fr 1fr; }
  .journal-overview > div { padding: 14px; }
  .journal-form-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .journal-reveal { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .journal-reveal-art { width: 150px; justify-self: center; }
  .journal-reveal-art .journal-seal { width: 82px; height: 82px; font-size: 2.3rem; }
  .journal-stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .journal-stamp { padding: 10px 6px; }
  .journal-stamp .journal-seal { width: 38px; height: 38px; font-size: 1rem; }
  .journal-stamp strong { font-size: .68rem; }
  .journal-atlas-heading { align-items: flex-end; }
  .journal-atlas-heading > span { font-size: .73rem; }
  .journal-milestone { align-items: flex-start; gap: 12px; padding: 18px; }
  .journal-guest-stamps { gap: 10px; }
  .journal-guest-stamps .journal-seal { width: 48px; height: 48px; font-size: 1.3rem; }
}

/* Sıralama: warm paper, medal colors, and compact score rows. */
.leaderboard-shell { --lb-ink: #4c291b; --lb-muted: #755f52; gap: 24px; }
.leaderboard-shell [hidden] { display: none !important; }
.leaderboard-shell .card { transform: none; }
.leaderboard-shell .card::before, .leaderboard-shell .card::after { display: none; }
.leaderboard-shell .card:hover { transform: none; box-shadow: 4px 4px 0 #6b2e14; }
.leaderboard-shell .leaderboard-hero { padding: clamp(22px, 4vw, 40px); background: radial-gradient(ellipse at top right, #f2d3a0, transparent 65%), #fff8ed; }
.leaderboard-hero-body { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.leaderboard-hero-info { max-width: 740px; min-width: 0; }
.leaderboard-hero h1 { margin: 16px 0 12px; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.04em; color: var(--lb-ink); }
.leaderboard-hero h1 > i { display: none; }
.leaderboard-hero-desc { margin: 0; max-width: 60ch; color: var(--lb-muted); line-height: 1.65; }
.leaderboard-meta-group { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.leaderboard-meta-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--lb-muted); }
.leaderboard-hero-actions { display: grid; gap: 10px; flex-shrink: 0; }
.leaderboard-hero-actions a { justify-content: center; }
.leaderboard-shell .leaderboard-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; background: #fffaf4; }
.leaderboard-tabs { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.leaderboard-tab-btn { width: auto; margin: 0; box-shadow: none; transform: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--lb-muted); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.leaderboard-tab-btn:hover, .leaderboard-tab-btn:active { transform: none; box-shadow: none; }
.leaderboard-tab-btn:hover { background: #f1e4d5; color: var(--lb-ink); }
.leaderboard-tab-btn.is-active { background: #6b2e14; color: #fff8ed; border-color: #6b2e14; }
.leaderboard-search { display: flex; align-items: center; gap: 10px; min-width: 180px; max-width: 300px; flex: 1; padding: 0 12px; border: 1px solid #c8ac93; border-radius: 7px; background: #fff; color: var(--lb-muted); }
.leaderboard-search input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--lb-ink); font: inherit; font-size: .95rem; }
.leaderboard-search:focus-within { outline: 3px solid #be753e; outline-offset: 2px; }
.leaderboard-search input:focus { outline: none; box-shadow: none; }
.leaderboard-shell button:focus-visible, .leaderboard-shell a:focus-visible { outline: 3px solid #be753e; outline-offset: 3px; }
.leaderboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.leaderboard-shell .leaderboard-board-card { min-width: 0; padding: 24px; background: #fffaf4; }
.leaderboard-board-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.leaderboard-board-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 10px; font-size: 1.2rem; background: #ede7d8; color: #695138; }
.leaderboard-board-icon.color-emerald { background: #e2eddf; color: #3b653c; }
.leaderboard-board-icon.color-fire { background: #fbe3d5; color: #a54223; }
.leaderboard-board-icon.color-indigo { background: #e9e5f5; color: #645294; }
.leaderboard-board-icon.color-gold { background: #faecc6; color: #89661d; }
.leaderboard-board-icon.color-blue { background: #e0eaf0; color: #38667f; }
.leaderboard-board-icon.color-purple { background: #eee2ef; color: #825389; }
.leaderboard-board-header-text { min-width: 0; }
.leaderboard-board-header h2 { margin: 0 0 6px; font-size: 1.2rem; color: var(--lb-ink); }
.leaderboard-board-header p { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--lb-muted); }
.leaderboard-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; padding-top: 12px; }
.podium-item { --medal: #9a7862; --medal-bg: #f4e8de; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; padding: 24px 8px 16px; border: 1px solid #decbbb; border-radius: 10px; background: var(--medal-bg); }
.podium-item--1 { --medal: #916717; --medal-bg: #fcf0ce; border-color: #cfab5b; }
.podium-item--2 { --medal: #63707b; --medal-bg: #edf0f1; border-color: #b5bfc6; }
.podium-item--3 { --medal: #99613d; --medal-bg: #f5e5d8; border-color: #d6af90; }
.podium-crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); padding: 0 5px; color: #a57818; font-size: 1.3rem; }
.podium-rank-badge { position: absolute; left: 9px; top: 8px; font-size: .75rem; font-weight: 800; color: var(--medal); }
.podium-rank-badge::before { content: '#'; }
.podium-avatar { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--medal); border-radius: 12px; background: #fffcf5; color: var(--medal); font-size: 1.4rem; font-weight: 800; }
.podium-name { max-width: 100%; color: var(--lb-ink); font-size: .88rem; font-weight: 800; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.podium-value { margin-top: auto; color: var(--medal); font-size: .86rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.leaderboard-list { list-style: none; margin: 18px 0 0; padding: 0; }
.leaderboard-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px; border-top: 1px solid #e9dacc; }
.leaderboard-player-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.leaderboard-rank-num { flex-shrink: 0; min-width: 26px; color: var(--lb-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.leaderboard-player-link { min-width: 0; color: var(--lb-ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.leaderboard-shell a.podium-name:hover, .leaderboard-shell a.leaderboard-player-link:hover { text-decoration: underline; }
.leaderboard-value-badge { flex-shrink: 0; color: var(--lb-ink); font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; }
.leaderboard-me-tag { display: inline-block; padding: 1px 5px; border-radius: 4px; background: #41633c; color: #fff; font-size: .65rem; vertical-align: middle; }
.leaderboard-shell .is-me { outline: 2px solid #668660; outline-offset: -2px; border-radius: 8px; }
.leaderboard-row.is-me { padding-inline: 8px; background: #edf3e9; }
.leaderboard-empty-state { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 145px; margin: 0; padding: 24px 16px; border: 1px dashed #d5bda6; border-radius: 10px; background: #f7efe5; color: var(--lb-muted); text-align: center; line-height: 1.6; }
.leaderboard-no-results { margin: 0; padding: 36px; text-align: center; color: var(--lb-muted); }
.leaderboard-search-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .leaderboard-hero-body { align-items: flex-start; flex-direction: column; gap: 24px; }
  .leaderboard-hero-actions { display: flex; flex-wrap: wrap; }
  .leaderboard-shell .leaderboard-controls { align-items: stretch; flex-direction: column; }
  .leaderboard-search { max-width: none; }
}
@media (max-width: 650px) {
  .leaderboard-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .leaderboard-shell .leaderboard-board-card { padding: 18px; }
  .leaderboard-tabs { display: grid; grid-template-columns: minmax(0, 1fr); }
  .leaderboard-tab-btn { justify-content: flex-start; }
  .leaderboard-podium { gap: 6px; }
  .podium-item { padding-inline: 5px; }
  .podium-name, .podium-value { font-size: .8rem; }
  .leaderboard-row { gap: 8px; }
  .leaderboard-value-badge { max-width: 40%; text-align: right; overflow-wrap: anywhere; }
}
