#recordBook { --cream:#fff3d5; color:var(--cream); background:none; border:0; padding:0; width:min(870px,calc(100vw - 24px)); max-height:calc(100dvh - 28px); overflow:visible; font-family:'Chakra Petch',system-ui,sans-serif }
#recordBook::backdrop { background:rgba(9,17,28,.78) }
.recordCover { background:linear-gradient(145deg,#153c36,#102827 70%); border:2px solid #ceab6e; border-radius:17px; box-shadow:0 12px 60px #000a,inset 0 0 0 4px #18332e; padding:clamp(14px,3vw,30px); max-height:calc(100dvh - 28px); box-sizing:border-box; display:flex; flex-direction:column }
.recordCover[hidden],#dDifficulty[hidden] {display:none}
.recordCover header {display:flex;align-items:center;justify-content:space-between;gap:12px}
.postLabel {margin:0 0 3px;color:#e7cb89;text-transform:uppercase;letter-spacing:.15em;font-size:11px;font-weight:700}
#recordTitle {font-family:Fraunces,Georgia,serif}
#recordTitle {font-size:clamp(26px,4vw,44px);line-height:1;margin:0}
.recordClose {border:1px solid #ad966b;border-radius:50%;background:#fff2ce;color:#573b25;font:600 23px/1 system-ui;width:42px;height:42px;flex:none;cursor:pointer}
.recordStatus {margin:8px 0 14px;color:#e8dfc4;font-size:14px}
.recordGrid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(135px,42%),1fr));gap:10px;overflow-y:auto;min-height:0;padding:5px;overscroll-behavior:contain;align-content:start}
.recordCard {border:1px solid #bea572;border-radius:9px;padding:5px 5px 9px;background:linear-gradient(#fff7de,#ead7ac);color:#33281c;display:flex;flex-direction:column;text-align:left;font-family:inherit;cursor:pointer;box-shadow:0 3px 0 #061c1a}
.recordCard strong,.recordCard small {margin:5px 4px 0;line-height:1.15}
.recordCard strong {font:700 clamp(14px,2vw,18px)/1.12 Fraunces,Georgia,serif}
.recordCard small {font-size:11px;line-height:1.25;color:#615036}
.recordCard:disabled {background:#c6c2b6;color:#494a45;cursor:default}
.recordCard:disabled img {filter:saturate(.2);opacity:.58}
.recordStamp {position:relative;display:block;width:100%;aspect-ratio:2/1;overflow:hidden;border-radius:4px;background:#293b39}
.recordStamp img {width:100%;height:100%;object-fit:cover;display:block}
.recordDay {position:absolute;left:4px;bottom:4px;padding:2px 6px;background:#17362feb;color:#fff3d1;border-radius:9px;font:700 11px/1.3 'Chakra Petch',sans-serif}
.recordCard:not(:disabled):hover {background:#fff6da}
.recordCard:focus-visible,.recordClose:focus-visible {outline:3px solid #ffcf56;outline-offset:2px}
#records svg {width:69%;height:69%;filter:drop-shadow(0 2px 1px #392516)}
#recordBook:has(.hs-overlay) {position:fixed;inset:0;width:100%;height:100%;max-height:none;max-width:none;margin:0}
#dDifficulty {text-align:left;background:#fbefd0;border:1px dashed #a48050;border-radius:9px;padding:8px 10px;color:#412e23;font:600 14px/1.25 'Chakra Petch',sans-serif;grid-area:pitch}
#dDifficulty strong {font:700 18px/1.1 Fraunces,Georgia,serif}
#dDifficulty dl {display:grid;grid-template-columns:max-content 1fr;gap:3px 8px;margin:5px 0}
#dDifficulty dt {font-weight:700;color:#7d201b}#dDifficulty dd {margin:0}#dDifficulty small {font-size:12px}
#dispatch.withGuide :is(.dPitch,.dProg) {display:none}
#dispatch.withGuide .dStamp {max-height:14vh;overflow:hidden}
@media (max-width:620px) {
  #hud .tools {max-width:50vw;gap:4px}
  #hud .tools .round {--s:clamp(36px,10vw,46px)}
  .recordCover{padding:12px}.recordGrid{gap:7px}.recordCard strong{font-size:15px}
}
@media (max-height:520px) and (orientation:landscape) {
  .recordCover{padding:10px 16px}.recordStamp{aspect-ratio:3/1}
  #dispatch.withGuide .dStamp {display:none}
}

/* The longest row has six brass-rimmed circles. Give fullscreen a gold face of its own: a clear icon in the circle and
   its name on a small ribbon hung just below it, so the words never have to squeeze inside the circle. */
#full:not([hidden]) {position:relative;overflow:visible;background:radial-gradient(circle at 50% 32%,#fff6c4,#f7c55c 55%,#d9933a);color:#3a2418;border-color:#fff0a6}
#full svg {width:58%;height:58%}
#full::after {content:'Full screen';position:absolute;left:50%;top:calc(100% - 5px);transform:translateX(-50%);padding:3px 8px 4px;border-radius:9px;
  font:700 clamp(9px,.75vw,11px)/1 'Chakra Petch',sans-serif;letter-spacing:.02em;white-space:nowrap;color:#ffe9a0;background:#1d1640;border:1px solid #ffd67b;
  box-shadow:0 2px 6px #0008;pointer-events:none}
#full.isOff::after {content:'Exit full screen'}
@media (max-aspect-ratio:4/5) {#full::after {display:none}}   /* portrait phones: the Wishes counter sits right under the row */
