/* Achievements, titles, badges and binder likes. Loaded after the theme files so each look's
   rules below win: Classic (default) draws die-cut stickers, Pixel World 16-bit sprite medals and
   Blossom stitched patches. A visited profile applies its owner's look to <body>, so badges and
   titles follow the profile without any script. */

/* ---------- Profile name row ---------- */
html body.site .profile-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
html body.site .profile-name-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
html body.site .profile-name-meta > p { margin: 0; }
html body.site .profile-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html body.site .profile-badges-more {
  min-height: 30px; padding: 0 10px; border: 2px solid var(--ink); border-radius: var(--pill, 999px);
  background: var(--chrome-3, #2a2d3b); color: var(--text); font: 800 13px/1 var(--sans); cursor: pointer;
}

/* ---------- Title chip ---------- */
html body.site .ach-title {
  display: inline-block; rotate: -3deg; padding: 3px 11px; border: 3px solid #0d0e14; border-radius: 10px;
  background: var(--sun, #ffc93c); color: #0d0e14; box-shadow: 2px 2px 0 #0d0e14; font: 800 14px/1.3 var(--sans); white-space: nowrap;
}
html body.site .ach-title > span { display: block; }
/* Pixel World: a gold RPG ribbon with notched ends, outlined in ink like the badges. */
html body.site.pixel-theme .ach-title {
  rotate: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  filter: drop-shadow(2px 0 0 #1a1c2c) drop-shadow(-2px 0 0 #1a1c2c) drop-shadow(0 2px 0 #1a1c2c) drop-shadow(0 -2px 0 #1a1c2c) drop-shadow(0 3px 0 #1a1c2c);
}
html body.site.pixel-theme .ach-title > span {
  padding: 8px 18px 6px; background: linear-gradient(180deg, #fff3b0 0 28%, #ffcd75 28% 68%, #e39a3b 68%);
  color: #1a1c2c; font: 400 15px/1.2 var(--pixel-display); letter-spacing: 0; text-shadow: 2px 2px 0 #fff3b0;
  clip-path: polygon(0 0, 100% 0, 100% 30%, calc(100% - 6px) 30%, calc(100% - 6px) 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 6px 70%, 6px 30%, 0 30%);
}
/* Blossom: a satin sash with white stitching and a sakura flower. */
html body.site.theme-blossom .ach-title {
  rotate: -2deg; padding: 0; border: 0; border-radius: 999px; background: none;
  box-shadow: 0 2px 0 #c76a92, 0 5px 12px rgba(176, 72, 112, .32);
}
html body.site.theme-blossom .ach-title > span {
  display: flex; align-items: center; gap: 6px; padding: 4px 15px 4px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #ffe1ea 0%, #f9b6cd 55%, #f39abb 100%); color: #6e2347;
  outline: 1.5px dashed rgba(255, 255, 255, .95); outline-offset: -4px; font: 700 15px/1.3 var(--hand);
}
html body.site.theme-blossom .ach-title > span::before { content: '\273F'; color: #ffffff; font-size: 14px; line-height: 1; text-shadow: 0 1px 0 #c76a92; }

/* ---------- Badge: Classic sticker ---------- */
html body.site .ach-badge {
  --size: 34px; --rim: #ffffff; --pad: 3px;
  position: relative; display: inline-flex; flex: none; width: var(--size); height: var(--size); min-width: 0; min-height: 0;
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: #0d0e14; rotate: var(--tilt, 0deg); cursor: pointer;
  transition: translate .12s;
}
html body.site span.ach-badge { cursor: default; }
html body.site .ach-badge.ach-medium { --size: 40px; }
html body.site .ach-badge.ach-large { --size: 76px; --pad: 6px; }
html body.site .ach-badge-rim {
  display: block; box-sizing: border-box; width: 100%; height: 100%; padding: var(--pad); border-radius: 50%; background: var(--rim);
  filter: drop-shadow(1px 0 0 #0d0e14) drop-shadow(-1px 0 0 #0d0e14) drop-shadow(0 1px 0 #0d0e14) drop-shadow(0 -1px 0 #0d0e14) drop-shadow(2px 3px 0 #0d0e14);
}
html body.site .ach-badge-face {
  position: relative; display: flex; box-sizing: border-box; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: 50%; background: var(--ach);
}
/* A doodled shine, not a real one: one white bean in the corner. */
html body.site .ach-badge-face::before {
  content: ''; position: absolute; top: 14%; left: 19%; width: 24%; height: 13%; border-radius: 999px; background: rgba(255, 255, 255, .8); rotate: -38deg;
}
html body.site .ach-badge-face svg { position: relative; width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
/* Level is a flat paper edge (bronze, silver, gold) plus cartoon sparkles: none, one white, one gold. */
html body.site .ach-badge.tier-1 { --rim: #f0a46c; }
html body.site .ach-badge.tier-2 { --rim: #dfe4ee; }
html body.site .ach-badge.tier-3 { --rim: #ffd23f; }
html body.site .ach-badge:is(.tier-2, .tier-3)::after {
  content: ''; position: absolute; top: -9%; right: -11%; width: 40%; height: 40%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.8 5 2.5 7.2 8 10-5.5 2.8-7.2 5-8 10-.8-5-2.5-7.2-8-10 5.5-2.8 7.2-5 8-10Z' fill='%23ffffff' stroke='%230d0e14' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none;
}
html body.site .ach-badge.tier-3::after { width: 48%; height: 48%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.8 5 2.5 7.2 8 10-5.5 2.8-7.2 5-8 10-.8-5-2.5-7.2-8-10 5.5-2.8 7.2-5 8-10Z' fill='%23ffd23f' stroke='%230d0e14' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html body.site .ach-badge.is-locked { --rim: #ffffff; color: #6a6470; }
html body.site .ach-badge.is-locked::after,
html body.site .ach-badge.is-locked .ach-badge-face::before { content: none; }
html body.site .ach-badge.is-locked .ach-badge-rim { filter: drop-shadow(1px 0 0 #b9b2a6) drop-shadow(-1px 0 0 #b9b2a6) drop-shadow(0 1px 0 #b9b2a6) drop-shadow(0 -1px 0 #b9b2a6); }
html body.site button.ach-badge:hover { translate: 0 -2px; }
html body.site button.ach-badge:focus-visible { outline: 3px solid var(--sky, #2f6fd8); outline-offset: 3px; }

/* ---------- Badge: Pixel World sprite medal ---------- */
html body.site.pixel-theme .ach-badge { --rim: #1a1c2c; color: #1a1c2c; rotate: none; }
html body.site.pixel-theme .ach-badge-rim,
html body.site.pixel-theme .ach-badge-face {
  border-radius: 0;
  clip-path: polygon(25% 0,75% 0,75% 8%,88% 8%,88% 16%,92% 16%,92% 25%,100% 25%,100% 75%,92% 75%,92% 84%,88% 84%,88% 92%,75% 92%,75% 100%,25% 100%,25% 92%,12% 92%,12% 84%,8% 84%,8% 75%,0 75%,0 25%,8% 25%,8% 16%,12% 16%,12% 8%,25% 8%);
}
html body.site.pixel-theme .ach-badge-rim { filter: none; }
html body.site:is(.pixel-theme, .theme-blossom) .ach-badge::after,
html body.site:is(.pixel-theme, .theme-blossom) .ach-badge-face::before { content: none; }
html body.site.pixel-theme .ach-badge { filter: drop-shadow(0 3px 0 #1a1c2c); }
html body.site.pixel-theme .ach-badge-face { background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0 24%, rgba(255, 255, 255, 0) 24% 70%, rgba(0, 0, 0, .24) 70%), var(--ach); }
html body.site.pixel-theme .ach-badge-face svg { stroke-linecap: square; stroke-linejoin: miter; shape-rendering: crispEdges; }
/* Level is the metal rim: bronze, silver, gold. */
html body.site.pixel-theme .ach-badge.tier-1 { --rim: #9a5a26; }
html body.site.pixel-theme .ach-badge.tier-2 { --rim: #6d7385; }
html body.site.pixel-theme .ach-badge.tier-3 { --rim: #b8860b; }
html body.site.pixel-theme .ach-badge.is-locked { --rim: #6d7385; color: #4c5970; filter: none; }

/* ---------- Badge: Blossom stitched patch ---------- */
html body.site.theme-blossom .ach-badge { --rim: #ffffff; --stitch: rgba(122, 46, 82, .6); color: #7a2e52; rotate: none; }
html body.site.theme-blossom .ach-badge-rim { filter: drop-shadow(0 2px 3px rgba(176, 72, 112, .35)); }
html body.site.theme-blossom .ach-badge-face { background: linear-gradient(rgba(255, 255, 255, .38), rgba(255, 255, 255, .38)), var(--ach); border: 1.5px dashed var(--stitch); }
/* Level is the thread: bronze, silver, gold. */
html body.site.theme-blossom .ach-badge.tier-1 { --stitch: #a8632e; }
html body.site.theme-blossom .ach-badge.tier-2 { --stitch: #8d94a3; }
html body.site.theme-blossom .ach-badge.tier-3 { --stitch: #c9952a; }
html body.site.theme-blossom .ach-badge.tier-3 .ach-badge-face { border-width: 2px; }
html body.site.theme-blossom .ach-badge.is-locked { --stitch: #c9b3bd; color: #9a7d8a; }

/* ---------- Badge name on hover, keyboard focus or tap ---------- */
html body.site .ach-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 30; translate: -50% 0; rotate: calc(var(--tilt, 0deg) * -1);
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: max-content; max-width: 220px; padding: 6px 10px;
  border: 2px solid #0d0e14; border-radius: 10px; background: #fff8ec; color: #0d0e14; box-shadow: 2px 2px 0 #0d0e14;
  font: 800 13px/1.35 var(--sans); text-align: center; opacity: 0; pointer-events: none; transition: opacity .12s;
}
html body.site .ach-tip small { font-weight: 500; font-size: 12px; }
html body.site .ach-badge:is(:focus-visible, .is-open) .ach-tip { opacity: 1; }
/* Touch screens keep :hover after a tap, so only a real pointer shows names on hover. */
@media (hover: hover) { html body.site .ach-badge:hover .ach-tip { opacity: 1; } }
html body.site.pixel-theme .ach-tip {
  rotate: none; border: 3px solid #1a1c2c; border-radius: 0; background: #ffffff; color: #1a1c2c; box-shadow: inset 0 0 0 2px #9bbce0;
  font: 400 9px/1.6 var(--pixel-display); letter-spacing: 0;
}
html body.site.pixel-theme .ach-tip small { font: 400 9px/1.6 var(--pixel-ui); }
html body.site.theme-blossom .ach-tip {
  rotate: none; border: 1.5px dashed #e58fb0; border-radius: 14px; background: #fff5f8; color: #7a2e52; box-shadow: 0 3px 8px rgba(176, 72, 112, .25);
  font: 700 14px/1.35 var(--hand);
}
html body.site.theme-blossom .ach-tip small { font: 500 13px/1.35 var(--read, var(--hand)); }

/* ---------- Profile stats: Likes, then Binders Value ---------- */
html body.site .profile-stats > div.profile-stat-likes { background: var(--tomato, #ff5a3c); }
html body.site .profile-stats > div.profile-stat-value { background: var(--mint, #5fd4a8); }
@media (max-width: 760px) {
  html body.site .profile-stats > div.profile-stat-likes { grid-column: auto; }
}

/* ---------- Binder likes ---------- */
/* Grey until you like it; then a sun pill with a filled heart. Owners and signed-out visitors see grey. */
html body.site .binder-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; flex: none; }
html body.site .binder-like[aria-pressed="true"] svg { fill: var(--tomato, #ff5a3c); stroke: #0d0e14; }
html body.site .profile-binder-like {
  position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; margin: 0;
  padding: 0 10px 0 7px; border: 3px solid #0d0e14; border-radius: var(--pill, 999px); background: #e7e3dc; color: #5f5a52;
  box-shadow: 2px 2px 0 #0d0e14; font: 800 13px/1 var(--sans); font-variant-numeric: tabular-nums;
}
html body.site button.profile-binder-like { cursor: pointer; }
html body.site button.profile-binder-like[aria-pressed="true"] { background: var(--sun, #ffc93c); color: #0d0e14; }
html body.site button.profile-binder-like:hover { translate: 0 -1px; }
html body.site button.profile-binder-like:disabled { opacity: .7; cursor: progress; }
html body.public-view #likeBinderBtn[hidden] { display: none !important; }
html body.site #likeBinderBtn { gap: 6px; font-variant-numeric: tabular-nums; }
html body.site #likeBinderBtn[aria-pressed="true"] { background: var(--sun, #ffc93c); color: #0d0e14; }
html body.site #likeBinderBtn:disabled { opacity: 1; cursor: default; }
html body.site.pixel-theme .profile-binder-like { border-radius: 0; border-color: #1a1c2c; box-shadow: 0 3px 0 #1a1c2c; font: 400 10px/1 var(--pixel-display); }
html body.site.pixel-theme button.profile-binder-like[aria-pressed="true"] { background: #ffcd75; }
html body.site.theme-blossom .profile-binder-like { border: 1.5px dashed #b9aab0; background: #f3eef0; color: #6f6468; box-shadow: 0 2px 6px rgba(176, 72, 112, .25); font: 700 14px/1 var(--hand); }
html body.site.theme-blossom button.profile-binder-like[aria-pressed="true"] { border-color: #e58fb0; background: #ffd1e0; color: #7a2e52; }
html body.site.theme-blossom .binder-like[aria-pressed="true"] svg { fill: #e4577f; stroke: #7a2e52; }

/* ---------- Achievements book ---------- */
/* The dialog box steps aside and the book is the dialog: Classic a collector's case (velvet pins,
   lining page), Pixel World a leather badge bag on grass, Blossom a stamp-rally pass with a berry
   cover. Left page = every badge, right page = the picked one. */
html body.site #modalRoot .modal.achievements-modal {
  width: min(1120px, calc(100vw - 24px)); padding: 0 !important; border: 0; border-radius: 0; background: none; box-shadow: none; color: #0d0e14;
}
html body.site .modal.achievements-modal::before { content: none; }
html body.site #modalRoot .modal.achievements-modal > .modal-close { position: absolute; top: 12px; right: 12px; float: none; margin: 0; z-index: 6; }
html body.site .ach-book {
  display: flex; align-items: stretch; box-sizing: border-box; min-height: 620px; padding: 18px;
  animation: achBookOpen .45s cubic-bezier(.2, 1.35, .4, 1) both;
}
@keyframes achBookOpen { from { opacity: 0; transform: translateY(22px) scale(.93) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
html body.site .ach-book-page { position: relative; flex: 1 1 0; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; }
html body.site .ach-book :is(p, h3) { margin: 0; }
html body.site .ach-detail-content { display: contents; }
html body.site .ach-book h3 { position: static; padding: 0; background: none; color: inherit; }
html body.site .ach-book-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html body.site .ach-book-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
html body.site .ach-book :is(.ach-tab, .ach-go, .ach-cmd, .ach-piece) {
  min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; cursor: pointer; text-transform: none; letter-spacing: 0;
}
html body.site .ach-book :is(.ach-go, .ach-cmd):disabled { opacity: .45; cursor: not-allowed; }
html body.site .ach-book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html body.site .ach-book-grid > li { position: relative; display: flex; align-items: center; justify-content: center; }
html body.site .ach-book .ach-piece { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex: none; width: 72px; height: 72px; }
html body.site .ach-book .ach-piece:focus-visible { outline: none; }
html body.site .ach-book .ach-art-icon { position: relative; width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
html body.site .ach-book-status { min-height: 0; font-size: 13px; font-weight: 700; }
html body.site .ach-book-status:empty { display: none; }
html body.site .ach-book-actions { display: flex; gap: 12px; flex-wrap: wrap; }
html body.site .ach-book-bar-track { display: block; overflow: hidden; }
html body.site .ach-book-bar-track > span { display: block; height: 100%; transition: width .5s cubic-bezier(.3, 1.4, .5, 1); }
html body.site .ach-steps { display: flex; gap: 6px; flex-wrap: wrap; }
@keyframes achPop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: none; } }

/* Classic: a collector's case. Pins sit in velvet wells and lift out on hover with their name plaque. */
html body.site .ach-book.look-classic {
  border: 4px solid #0d0e14; border-radius: 34px; background: #ff5a3c; box-shadow: 10px 12px 0 #0d0e14; color: #0d0e14; font-family: var(--sans);
}
html body.site .look-classic .ach-book-eyebrow { font: 700 12px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #8a6a2a; }
html body.site .look-classic .ach-book-shelf {
  border: 4px solid #0d0e14; border-radius: 20px 6px 6px 20px; color: #ffffff;
  background-color: #1f3a5c; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 6px 6px;
}
html body.site .look-classic .ach-book-shelf .ach-book-eyebrow { color: #e9c46a; }
html body.site .look-classic h3 { margin-top: 8px; font: 800 34px/1 var(--sans); }
html body.site .look-classic .ach-book-count { margin-top: 8px; font: 600 13px/1.3 var(--sans); color: rgba(255, 255, 255, .78); }
html body.site .look-classic .ach-tab { min-height: 36px; padding: 0 12px; border: 3px solid #0d0e14; border-radius: 10px; background: #ffffff; box-shadow: 0 3px 0 #0d0e14; color: #0d0e14; font: 800 13px/1 var(--sans); }
html body.site .look-classic .ach-tab[aria-pressed="true"] { background: #ffd23f; }
html body.site .look-classic :is(.ach-tab, .ach-go):active { translate: 0 3px; box-shadow: 0 1px 0 #0d0e14; }
html body.site .look-classic .ach-book-grid > li { min-height: 104px; }
html body.site .look-classic .ach-hole { position: absolute; width: 84px; height: 84px; border-radius: 50%; background: #132741; box-shadow: inset 0 6px 0 rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .12); }
html body.site .look-classic .ach-hole.is-empty { box-sizing: border-box; border: 2px dashed rgba(255, 255, 255, .22); background: transparent; box-shadow: none; }
html body.site .look-classic .ach-pin { display: block; box-sizing: border-box; width: 100%; height: 100%; padding: 6px; border: 3px solid #0d0e14; border-radius: 50%; background: var(--rim); }
html body.site .look-classic .ach-pin-face {
  position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 100%;
  border: 2px solid #0d0e14; border-radius: 50%; background: var(--face); color: #0d0e14;
}
html body.site .look-classic .ach-pin-face::before { content: ''; position: absolute; top: 13%; left: 18%; width: 24%; height: 12%; border-radius: 99px; background: #ffffff; opacity: .85; rotate: -38deg; }
html body.site .look-classic .ach-pin.is-locked { padding: 0; border: 0; background: none; }
html body.site .look-classic .ach-pin.is-locked .ach-pin-face { border: 0; background: none; color: rgba(255, 255, 255, .35); transition: color .15s; }
html body.site .look-classic .ach-pin.is-locked .ach-pin-face::before { content: none; }
html body.site .look-classic .ach-pin.is-locked .ach-art-icon { width: 36%; height: 36%; }
html body.site .look-classic .ach-book-grid .ach-piece { transition: transform .34s cubic-bezier(.25, 1.9, .45, 1), filter .2s; }
html body.site .look-classic .ach-piece.is-picked .ach-pin:not(.is-locked) { box-shadow: 0 0 0 4px #1f3a5c, 0 0 0 7px #ffd23f; }
html body.site .look-classic .ach-piece.is-picked .ach-pin.is-locked .ach-pin-face,
html body.site .look-classic .ach-piece:focus-visible .ach-pin.is-locked .ach-pin-face { color: #ffd23f; }
html body.site .look-classic .ach-piece:focus-visible:has(.ach-pin:not(.is-locked)) { z-index: 3; transform: translateY(-22px) scale(1.2) rotate(6deg); filter: drop-shadow(0 22px 6px rgba(0, 0, 0, .45)); }
html body.site .look-classic .ach-plaque {
  position: absolute; left: 50%; bottom: -6px; z-index: 4; translate: -50% 0; padding: 3px 10px; border: 2px solid #0d0e14; border-radius: 4px;
  background: #e9c46a; box-shadow: 0 2px 0 #0d0e14; color: #2a1d05; font: 700 11px/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace; white-space: nowrap;
  opacity: 0; transform: translateY(-8px) scaleY(.6); transition: opacity .15s, transform .22s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none;
}
html body.site .look-classic .ach-well:has(.ach-piece:focus-visible) .ach-plaque { opacity: 1; transform: none; }
@media (hover: hover) {
  html body.site .look-classic .ach-piece:hover:has(.ach-pin:not(.is-locked)) { z-index: 3; transform: translateY(-22px) scale(1.2) rotate(6deg); filter: drop-shadow(0 22px 6px rgba(0, 0, 0, .45)); }
  html body.site .look-classic .ach-piece:hover .ach-pin.is-locked .ach-pin-face { color: #ffd23f; }
  html body.site .look-classic .ach-piece:hover:has(.ach-pin.is-locked) { transform: scale(1.1); }
  html body.site .look-classic .ach-well:hover .ach-plaque { opacity: 1; transform: none; }
}
html body.site .look-classic .ach-book-spine { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: space-around; width: 22px; margin: 0 -4px; }
html body.site .look-classic .ach-book-spine span { width: 16px; height: 60px; box-sizing: border-box; border: 3px solid #0d0e14; border-radius: 6px; background: #c9a24b; }
html body.site .look-classic .ach-book-detail {
  gap: 18px; padding: 30px 34px 26px; border: 4px solid #0d0e14; border-radius: 6px 20px 20px 6px;
  background-color: #f6ead2; background-image: repeating-linear-gradient(45deg, transparent 0 22px, rgba(160, 120, 60, .16) 22px 24px), repeating-linear-gradient(-45deg, transparent 0 22px, rgba(160, 120, 60, .16) 22px 24px);
}
html body.site .look-classic .ach-detail-card {
  position: relative; display: flex; gap: 22px; align-items: flex-start; padding: 26px 26px 22px; border: 3px solid #0d0e14; border-radius: 8px; background: #fffdf7; box-shadow: 0 5px 0 #0d0e14;
}
html body.site .look-classic .ach-detail-clip { position: absolute; top: -18px; right: 40px; width: 18px; height: 44px; box-sizing: border-box; border: 3px solid #0d0e14; border-radius: 9px; background: #dfe4ee; }
html body.site .look-classic .ach-detail-art { flex: none; display: flex; align-items: center; justify-content: center; width: 118px; height: 118px; box-sizing: border-box; border: 3px solid #0d0e14; border-radius: 50%; background: #1f3a5c; }
html body.site .look-classic .ach-detail-art .ach-pin { width: 92px; height: 92px; padding: 8px; }
html body.site .look-classic .ach-detail-art .ach-pin.is-locked .ach-pin-face { color: #e9c46a; }
html body.site .look-classic .ach-detail-art .ach-pin.is-locked .ach-art-icon { width: 44%; height: 44%; }
html body.site .look-classic .ach-detail-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
html body.site .look-classic .ach-detail-name { font: 800 30px/1.05 var(--sans); }
html body.site .look-classic .ach-detail-how { font: 500 15px/1.4 var(--sans); }
html body.site .look-classic .ach-step { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border: 2px solid #0d0e14; border-radius: 999px; background: #ffffff; color: #8a7f6a; font: 800 12px/1 var(--sans); }
html body.site .look-classic .ach-step i { display: block; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid #0d0e14; border-radius: 50%; background: #ffffff; }
html body.site .look-classic .ach-step.is-done { color: #0d0e14; }
html body.site .look-classic .ach-step.is-done i { background: var(--metal); }
html body.site .look-classic .ach-book-bar { margin-top: 4px; }
html body.site .look-classic .ach-book-bar .ach-book-bar-track { height: 14px; box-sizing: border-box; border: 3px solid #0d0e14; border-radius: 4px; background: #ffffff; }
html body.site .look-classic .ach-book-bar-track > span { background: #ff5a3c; }
html body.site .look-classic .ach-book-bar small { display: block; margin-top: 6px; font: 700 12px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; }
html body.site .look-classic .ach-go { min-height: 44px; padding: 0 18px; border: 3px solid #0d0e14; border-radius: 10px; background: #ffffff; box-shadow: 0 4px 0 #0d0e14; color: #0d0e14; font: 800 15px/1 var(--sans); }
html body.site .look-classic .ach-go[aria-pressed="true"] { background: #ffd23f; }
html body.site .look-classic .ach-book-status { color: #5b4a2a; }
html body.site .look-classic .ach-book-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding: 18px 20px;
  border: 3px solid #0d0e14; border-radius: 8px; background: #1f3a5c; color: #ffffff;
}
html body.site .look-classic .ach-book-footer .ach-book-eyebrow { color: #e9c46a; }
html body.site .look-classic .ach-book-footer p:last-child { margin-top: 6px; font: 500 14px/1.3 var(--sans); }
html body.site .look-classic .ach-slots { display: flex; gap: 10px; }
html body.site .look-classic .ach-slot { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; box-sizing: border-box; border: 3px dashed #b99a62; border-radius: 50%; }
html body.site .look-classic .ach-slot .ach-pin { width: 54px; height: 54px; padding: 4px; }
html body.site .look-classic .ach-slot.is-new .ach-pin { animation: achPop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes achPinDrop { 0% { transform: translateY(-34px) scale(.5) rotate(-24deg); opacity: 0; } 60% { transform: translateY(4px) scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: none; } }
html body.site .look-classic .ach-book-detail.is-fresh .ach-detail-art .ach-pin { animation: achPinDrop .5s cubic-bezier(.3, 1.4, .5, 1) both; }

/* Pixel World: a leather badge bag on the grass. Medals spin on hover and a hand points at them. */
html body.site #modalRoot .modal.achievements-modal:has(.look-pixel) {
  padding: 26px !important;
  background-color: #6cc04a; background-image: linear-gradient(45deg, #62b442 25%, transparent 25%, transparent 75%, #62b442 75%), linear-gradient(45deg, #62b442 25%, transparent 25%, transparent 75%, #62b442 75%);
  background-size: 32px 32px; background-position: 0 0, 16px 16px; border: 4px solid #1a1c2c; border-radius: 0;
}
html body.site .ach-book.look-pixel {
  min-height: 0; padding: 16px; border: 4px solid #1a1c2c; background: #8a4f2b; box-shadow: 8px 8px 0 #1a1c2c; color: #1a1c2c; font-family: var(--pixel-ui);
}
html body.site .look-pixel :is(.ach-book-shelf, .ach-win) {
  box-sizing: border-box; border: 4px solid #1a1c2c;
  background-color: #f6e7bf; background-image: repeating-linear-gradient(0deg, transparent 0 30px, #efe0b6 30px 32px); box-shadow: inset 0 0 0 4px #fff6dc, inset 0 0 0 8px #c79a5b;
}
html body.site .look-pixel .ach-book-shelf { padding: 26px 28px 24px; }
html body.site .look-pixel h3 { font: 400 22px/1.3 var(--pixel-display); text-transform: uppercase; }
html body.site .look-pixel .ach-book-head { align-items: center; }
html body.site .look-pixel .ach-tab { display: flex; align-items: center; justify-content: center; width: 56px; height: 48px; box-sizing: border-box; border: 4px solid #1a1c2c; background: #c79a5b; }
html body.site .look-pixel .ach-tab svg { width: 24px; height: 24px; fill: none; stroke: #1a1c2c; stroke-width: 3; stroke-linecap: square; }
html body.site .look-pixel .ach-tab[aria-pressed="true"] { background: #ffcd3a; }
html body.site .look-pixel .ach-book-tabname { font: 400 13px/1.2 var(--pixel-display); color: #5b3f12; text-transform: uppercase; }
html body.site .look-pixel .ach-book-count { font: 500 17px/1.2 var(--pixel-ui); color: #3d2a0c; }
html body.site .look-pixel .ach-book-grid { gap: 10px; }
html body.site .look-pixel .ach-tile { min-height: 92px; box-sizing: border-box; border: 4px solid #1a1c2c; background: #ead59a; box-shadow: inset 4px 4px 0 #d6bd78; }
html body.site .look-pixel .ach-tile.is-picked { background: #ffe9a8; box-shadow: inset 0 0 0 4px #e43b44; }
html body.site .look-pixel .ach-piece { width: 64px; height: 64px; }
html body.site .look-pixel :is(.ach-medal, .ach-medal-band, .ach-medal-face) {
  display: block; box-sizing: border-box; width: 100%; height: 100%;
  clip-path: polygon(25% 0,75% 0,75% 8%,88% 8%,88% 16%,92% 16%,92% 25%,100% 25%,100% 75%,92% 75%,92% 84%,88% 84%,88% 92%,75% 92%,75% 100%,25% 100%,25% 92%,12% 92%,12% 84%,8% 84%,8% 75%,0 75%,0 25%,8% 25%,8% 16%,12% 16%,12% 8%,25% 8%);
}
html body.site .look-pixel .ach-medal { padding: 5px; background: #1a1c2c; }
html body.site .look-pixel .ach-medal-band { padding: 4px; background: var(--rim); }
html body.site .look-pixel .ach-medal-face {
  display: flex; align-items: center; justify-content: center; color: #1a1c2c;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0 22%, transparent 22% 72%, rgba(0, 0, 0, .25) 72%), var(--face);
}
html body.site .look-pixel .ach-art-icon { width: 48%; height: 48%; stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; }
html body.site .look-pixel .ach-book-grid .ach-medal.is-locked { opacity: .75; }
html body.site .look-pixel .ach-tile:has(.ach-medal.is-locked) { background: #dfca8e; }
html body.site .look-pixel .ach-book-grid .ach-piece { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
html body.site .look-pixel .ach-tile { transition: background-color .12s; }
html body.site .look-pixel .ach-hand {
  position: absolute; left: -6px; top: 50%; z-index: 4; width: 22px; height: 16px; margin-top: -8px; background: #ffffff;
  clip-path: polygon(0 30%, 60% 30%, 60% 0, 100% 50%, 60% 100%, 60% 70%, 0 70%); filter: drop-shadow(0 2px 0 #1a1c2c); opacity: 0; pointer-events: none; transition: opacity .12s;
}
@keyframes achHandBob { from { translate: 0 0; } to { translate: -4px 0; } }
html body.site .look-pixel .ach-tile.is-picked .ach-piece { transform: translateY(-4px); }
html body.site .look-pixel .ach-piece:focus-visible { transform: translateY(-6px) scale(1.08); }
html body.site .look-pixel .ach-tile:has(.ach-piece:focus-visible) { background: #fff3c4; }
html body.site .look-pixel .ach-tile:is(.is-picked, :has(.ach-piece:focus-visible)) .ach-hand { opacity: 1; animation: achHandBob .5s ease-in-out infinite alternate; }
@media (hover: hover) {
  html body.site .look-pixel .ach-tile:hover { background: #fff3c4; }
  html body.site .look-pixel .ach-tile:hover .ach-piece { transform: translateY(-6px) scale(1.08); }
  html body.site .look-pixel .ach-tile:hover .ach-hand { opacity: 1; animation: achHandBob .5s ease-in-out infinite alternate; }
}
html body.site .look-pixel .ach-book-spine { width: 24px; box-sizing: border-box; border-top: 4px solid #1a1c2c; border-bottom: 4px solid #1a1c2c; background: #5b321b; }
html body.site .look-pixel .ach-book-detail { padding: 0; gap: 14px; }
html body.site .look-pixel .ach-detail-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: center; padding: 26px 28px; }
html body.site .look-pixel .ach-detail-head > div { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 10px; }
html body.site .look-pixel .ach-detail-art { grid-column: 1; grid-row: 1; justify-self: center; display: block; width: 104px; height: 104px; }
html body.site .look-pixel .ach-detail-art .ach-medal { padding: 7px; }
html body.site .look-pixel .ach-detail-art .ach-medal-band { padding: 6px; }
html body.site .look-pixel .ach-pedestal { grid-column: 1; grid-row: 2; display: block; width: 120px; height: 22px; margin-top: 6px; box-sizing: border-box; border: 4px solid #1a1c2c; background: #9fd4ff; box-shadow: inset 0 -8px 0 #6cc04a; }
html body.site .look-pixel .ach-detail-name { font: 400 19px/1.4 var(--pixel-display); text-transform: uppercase; overflow-wrap: anywhere; }
html body.site .look-pixel .ach-detail-tier { font: 700 17px/1.3 var(--pixel-ui); color: #b13e53; text-transform: uppercase; }
html body.site .look-pixel .ach-detail-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; }
html body.site .look-pixel .ach-detail-how { font: 500 21px/1.35 var(--pixel-ui); }
html body.site .look-pixel .ach-level-bar { display: grid; grid-template-columns: 124px minmax(0, 1fr) 110px; gap: 12px; align-items: center; color: #1a1c2c; font: 600 17px/1 var(--pixel-ui); }
html body.site .look-pixel .ach-level-name { display: flex; align-items: center; gap: 8px; }
html body.site .look-pixel .ach-level-name i { flex: none; width: 14px; height: 14px; box-sizing: border-box; border: 3px solid #1a1c2c; }
html body.site .look-pixel .ach-level-bar:not(.is-done) .ach-level-name { color: #6d5426; }
html body.site .look-pixel .ach-level-count { text-align: right; }
html body.site .look-pixel .ach-level-bar .ach-book-bar-track { height: 14px; box-sizing: border-box; border: 3px solid #1a1c2c; background: #ffffff; }
html body.site .look-pixel .ach-book-bar-track > span { background: #38b764; box-shadow: inset 0 -4px 0 #257953; }
html body.site .look-pixel .ach-detail-cmds { padding: 12px 18px; }
html body.site .look-pixel .ach-cmd { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 10px; color: #1a1c2c; font: 500 19px/1.2 var(--pixel-ui); text-align: left; transition: background-color .12s; }
html body.site .look-pixel .ach-cmd:is(:hover, :focus-visible):not(:disabled) { background: #ffe9a8; }
html body.site .look-pixel .ach-cmd::before { content: ''; flex: none; width: 0; height: 0; border-left: 12px solid transparent; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
html body.site .look-pixel .ach-cmd:is(:hover, :focus-visible):not(:disabled)::before { border-left-color: #1a1c2c; }
html body.site .look-pixel .ach-cmd:focus-visible { outline: none; }
html body.site .look-pixel .ach-cmd-value {
  margin-left: auto; min-width: 58px; box-sizing: border-box; padding: 7px 8px 6px; border: 3px solid #1a1c2c; background: #d9cfb4; color: #1a1c2c;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); font: 700 16px/1 var(--pixel-ui); text-align: center; text-transform: uppercase;
}
html body.site .look-pixel .ach-cmd[aria-pressed="true"] .ach-cmd-value { background: #38b764; color: #ffffff; text-shadow: 1px 1px 0 #1a1c2c; }
html body.site .look-pixel .ach-book-status { padding: 6px 10px 2px; font: 500 15px/1.3 var(--pixel-ui); color: #b13e53; }
@keyframes achMedalFresh { 0% { transform: translateY(-20px) scale(.7); opacity: 0; } 60% { transform: translateY(3px) scale(1.06); opacity: 1; } 100% { transform: none; } }
html body.site .look-pixel .ach-book-detail.is-fresh .ach-detail-art .ach-medal { animation: achMedalFresh .4s cubic-bezier(.3, 1.4, .5, 1) both; }

/* Blossom: a stamp-rally pass. Berry cover with white waves, washi pages, rubber stamps that a
   wooden handle presses on hover, a hanko count seal and a cherry branch on the right page. */
html body.site .ach-book.look-blossom {
  border-radius: 16px; color: #26303b; font-family: var(--read, var(--hand));
  background-color: #a3345f; background-size: 50px 25px;
  background-image: radial-gradient(circle at 50% 100%, transparent 13px, rgba(255, 255, 255, .13) 14px, rgba(255, 255, 255, .13) 16px, transparent 17px, transparent 21px, rgba(255, 255, 255, .09) 22px, rgba(255, 255, 255, .09) 24px, transparent 25px);
  box-shadow: 0 16px 36px rgba(74, 29, 56, .32); outline: 2px dashed rgba(255, 255, 255, .75); outline-offset: -8px;
}
html body.site .look-blossom .ach-book-page {
  background-color: #f8f3e6; background-image: radial-gradient(rgba(160, 140, 100, .12) 1px, transparent 1.2px), radial-gradient(rgba(160, 140, 100, .08) 1px, transparent 1.2px);
  background-size: 13px 17px, 23px 19px; background-position: 0 0, 7px 9px;
}
html body.site .look-blossom .ach-book-shelf { gap: 10px; padding: 26px 30px 22px; border-radius: 8px 3px 3px 8px; }
html body.site .look-blossom .ach-book-detail { gap: 16px; padding: 26px 36px; border-radius: 3px 8px 8px 3px; overflow: hidden; }
html body.site .look-blossom .ach-book-spine { width: 10px; background: #6b2c50; }
html body.site .look-blossom .ach-book-eyebrow { font: 900 11px/1.2 var(--read, var(--hand)); letter-spacing: .16em; text-transform: uppercase; color: #7a1840; }
html body.site .look-blossom h3 { margin-top: 6px; font: 700 32px/1 var(--hand); color: #26303b; }
html body.site .look-blossom .ach-book-count { margin-top: 6px; font: 600 13px/1.3 var(--read, var(--hand)); color: #6b5d63; }
html body.site .look-blossom .ach-seal {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 62px; height: 62px; border-radius: 8px;
  background: #c8402f; color: #f8f3e6; rotate: 6deg; box-shadow: inset 0 0 0 3px #c8402f, inset 0 0 0 5px #f8f3e6;
  font: 900 9px/1 var(--read, var(--hand)); letter-spacing: .08em; text-transform: uppercase;
}
html body.site .look-blossom .ach-seal b { display: block; margin-bottom: 3px; color: #f8f3e6; font-size: 18px; letter-spacing: 0; }
html body.site .look-blossom .ach-book-grid { gap: 2px 10px; padding-top: 14px; }
html body.site .look-blossom .ach-spot { flex-direction: column; gap: 5px; min-height: 124px; }
html body.site .look-blossom .ach-spot-name { max-width: 120px; color: #4a5562; font: 700 12px/1.15 var(--read, var(--hand)); text-align: center; }
html body.site .look-blossom .ach-piece { width: 88px; height: 88px; }
html body.site .look-blossom .ach-stamp { position: relative; display: block; width: 100%; height: 100%; color: var(--metal); rotate: var(--tilt, 0deg); opacity: .86; }
html body.site .look-blossom .ach-stamp-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
html body.site .look-blossom .ach-stamp-frame path { fill: none; stroke: currentColor; stroke-linejoin: round; }
html body.site .look-blossom .ach-stamp .ach-art-icon { position: absolute; left: 50%; top: 44%; width: 38%; height: 38%; translate: -50% -50%; stroke-width: 2.4; }
html body.site .look-blossom .ach-stamp-tier { position: absolute; left: 0; right: 0; top: 66%; font: 900 8px/1 var(--read, var(--hand)); letter-spacing: .1em; text-align: center; text-transform: uppercase; }
html body.site .look-blossom .ach-book-grid :is(.ach-stamp-frame, .ach-stamp .ach-art-icon) { transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); }
html body.site .look-blossom .ach-handle {
  position: absolute; left: 50%; top: -42px; z-index: 4; width: 30px; height: 42px; margin-left: -15px; opacity: 0; transform: translateY(-14px);
  transition: opacity .15s, transform .2s cubic-bezier(.3, 1.8, .5, 1); pointer-events: none;
}
html body.site .look-blossom .ach-handle::before { content: ''; position: absolute; left: 5px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #b98a55; box-shadow: inset -4px -3px 0 rgba(0, 0, 0, .15); }
html body.site .look-blossom .ach-handle::after { content: ''; position: absolute; left: 8px; top: 16px; width: 14px; height: 24px; border-radius: 4px 4px 2px 2px; background: #8f6538; }
html body.site .look-blossom .ach-piece:focus-visible .ach-handle { opacity: 1; transform: none; }
html body.site .look-blossom .ach-piece:focus-visible :is(.ach-stamp-frame, .ach-stamp .ach-art-icon) { transform: scale(1.1); }
@media (hover: hover) {
  html body.site .look-blossom .ach-piece:hover .ach-handle { opacity: 1; transform: none; }
  html body.site .look-blossom .ach-piece:hover :is(.ach-stamp-frame, .ach-stamp .ach-art-icon) { transform: scale(1.1); }
  html body.site .look-blossom .ach-piece:hover .ach-blank { border-color: #7a1840; color: #7a1840; }
}
html body.site .look-blossom .ach-piece.is-picked:has(.ach-stamp)::after { content: ''; position: absolute; inset: -7px; border: 2px dashed #7a1840; border-radius: 50%; }
html body.site .look-blossom .ach-blank {
  display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; box-sizing: border-box; border: 2px dashed #cbc3ae; border-radius: 50%;
  color: #a69c84; font: 700 13px/1.1 var(--read, var(--hand)); transition: border-color .15s, color .15s;
}
html body.site .look-blossom .ach-piece:focus-visible .ach-blank { border-color: #7a1840; color: #7a1840; }
html body.site .look-blossom .ach-piece.is-picked .ach-blank { border-style: solid; border-color: #7a1840; }
html body.site .look-blossom .ach-sakura { position: absolute; right: -10px; top: 26px; z-index: 2; width: 260px; height: 120px; pointer-events: none; will-change: transform; }
@keyframes achSakuraSway { 0%, 100% { rotate: 0deg; } 50% { rotate: -1.6deg; } }
@keyframes achSakuraFall { 0% { opacity: 0; transform: translate(0, -18px) rotate(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-26px, 40px) rotate(140deg); } }
html body.site .look-blossom .ach-sakura-sway { transform-box: view-box; transform-origin: 260px 10px; animation: achSakuraSway 9s ease-in-out infinite; }
html body.site .look-blossom .ach-sakura-fall { transform-box: fill-box; transform-origin: center; animation: achSakuraFall 7s linear infinite; }
html body.site .look-blossom .ach-sakura-fall.is-late { animation-delay: -3.5s; }
html body.site .look-blossom .ach-book-tabs { position: relative; }
html body.site .look-blossom .ach-tab { min-height: 38px; padding: 0 14px; border: 2px solid #7a1840; border-radius: 8px; background: rgba(248, 243, 230, .85); color: #7a1840; font: 700 14px/1 var(--read, var(--hand)); }
html body.site .look-blossom .ach-tab[aria-pressed="true"] { background: #7a1840; color: #ffffff; }
html body.site .look-blossom .ach-detail-card {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; margin-top: 6px; padding: 24px 24px 20px; border-radius: 12px; background: #fffdf8;
  box-shadow: 0 3px 0 #eadcc6, 0 12px 24px rgba(74, 29, 56, .12); outline: 1.5px dashed #e2b6c4; outline-offset: -8px;
}
html body.site .look-blossom .ach-detail-tape {
  position: absolute; top: -11px; left: 36px; width: 86px; height: 22px; rotate: -4deg; box-shadow: 0 1px 2px rgba(74, 29, 56, .15);
  background: repeating-linear-gradient(45deg, rgba(163, 52, 95, .28) 0 7px, rgba(255, 255, 255, .6) 7px 13px);
}
html body.site .look-blossom .ach-detail-head { position: relative; display: flex; gap: 26px; align-items: center; }
html body.site .look-blossom .ach-detail-head > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
html body.site .look-blossom .ach-detail-art { flex: none; display: block; width: 150px; height: 150px; }
html body.site .look-blossom .ach-detail-art .ach-stamp { rotate: -8deg; opacity: .9; }
html body.site .look-blossom .ach-detail-art .ach-stamp-frame path:first-child { stroke-width: 3.5; }
html body.site .look-blossom .ach-detail-art .ach-art-icon { top: 42%; width: 36%; height: 36%; stroke-width: 2.2; }
html body.site .look-blossom .ach-detail-art .ach-stamp-tier { top: 68%; font-size: 11px; }
html body.site .look-blossom .ach-detail-name { font: 700 32px/1.05 var(--hand); color: #26303b; }
html body.site .look-blossom .ach-detail-how { font: 500 17px/1.5 var(--read, var(--hand)); }
html body.site .look-blossom .ach-steps { gap: 22px; }
html body.site .look-blossom .ach-step { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #a69c84; font: 900 11px/1 var(--read, var(--hand)); letter-spacing: .06em; text-transform: uppercase; }
html body.site .look-blossom .ach-step i { display: block; width: 40px; height: 40px; box-sizing: border-box; border: 2px dashed #cbc3ae; border-radius: 50%; }
html body.site .look-blossom .ach-step.is-done { color: var(--metal); }
html body.site .look-blossom .ach-step.is-done i { border: 3px solid currentColor; box-shadow: inset 0 0 0 3px #fffdf8, inset 0 0 0 4.5px currentColor; }
html body.site .look-blossom .ach-book-note { font: 700 16px/1.2 var(--hand); color: #7a1840; }
html body.site .look-blossom .ach-book-actions { margin-top: auto; }
html body.site .look-blossom .ach-go {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid #7a1840; border-radius: 10px;
  background: #fffdf8; color: #7a1840; box-shadow: 0 3px 0 #7a1840; font: 700 15px/1 var(--read, var(--hand)); transition: background-color .15s, color .15s;
}
html body.site .look-blossom .ach-go[aria-pressed="true"] { background: #7a1840; color: #ffffff; outline: 1.5px dashed rgba(255, 255, 255, .7); outline-offset: -6px; box-shadow: 0 3px 0 #4a1d38; }
html body.site .look-blossom .ach-go[aria-pressed="true"]::before { content: ''; width: 11px; height: 6px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; rotate: -45deg; translate: 0 -2px; }
html body.site .look-blossom .ach-go:active { translate: 0 3px; box-shadow: 0 1px 0 #4a1d38; }
html body.site .look-blossom .ach-go:focus-visible { outline: 3px solid #26303b; outline-offset: 2px; }
html body.site .look-blossom .ach-book-status { color: #7a1840; }
@keyframes achStampThud { 0% { transform: scale(1.6); opacity: 0; } 55% { transform: scale(.92); opacity: 1; } 75% { transform: scale(1.04); } 100% { transform: none; } }
html body.site .look-blossom .ach-book-detail.is-fresh .ach-detail-art .ach-stamp { animation: achStampThud .45s cubic-bezier(.3, 1.2, .5, 1) both; }

/* Phones: the pages stack, the case/bag/pass keeps its look. */
@media (max-width: 760px) {
  html body.site #modalRoot .modal.achievements-modal { width: calc(100vw - 16px); }
  html body.site #modalRoot .modal.achievements-modal:has(.look-pixel) { padding: 10px !important; }
  html body.site #modalRoot .modal.achievements-modal > .modal-close { top: 8px; right: 8px; }
  html body.site .ach-book { flex-direction: column; min-height: 0; padding: 10px; }
  html body.site .ach-book.look-classic { border-radius: 24px; box-shadow: 5px 6px 0 #0d0e14; }
  html body.site .ach-book-page { flex: none; padding: 18px 14px; }
  html body.site .ach-book-head { padding-right: 44px; }
  html body.site .ach-book-grid { gap: 4px; }
  html body.site .look-classic .ach-book-shelf { border-radius: 16px 16px 6px 6px; }
  html body.site .look-classic .ach-book-detail { padding: 22px 14px 16px; border-radius: 6px 6px 16px 16px; }
  html body.site .look-classic .ach-book-spine { flex-direction: row; width: auto; height: 22px; margin: -4px 0; }
  html body.site .look-classic .ach-book-spine span { width: 60px; height: 16px; }
  html body.site .look-classic h3 { font-size: 28px; }
  html body.site .look-classic .ach-book-grid > li { min-height: 80px; }
  html body.site .look-classic .ach-hole { width: 66px; height: 66px; }
  html body.site .look-classic .ach-book-grid .ach-piece { width: 56px; height: 56px; }
  html body.site .look-classic .ach-pin { padding: 4px; }
  html body.site .look-classic .ach-detail-card { flex-direction: column; align-items: center; padding: 22px 16px 18px; text-align: center; }
  html body.site .look-classic .ach-detail-text { align-items: center; }
  html body.site .look-classic .ach-detail-name { font-size: 26px; }
  html body.site .look-classic .ach-book-footer { flex-direction: column; align-items: flex-start; }
  html body.site .look-pixel .ach-book-shelf { padding: 18px 14px; }
  html body.site .look-pixel .ach-book-spine { width: auto; height: 14px; border: 0; border-left: 4px solid #1a1c2c; border-right: 4px solid #1a1c2c; }
  html body.site .look-pixel h3 { font-size: 15px; }
  html body.site .look-pixel .ach-tab { width: 44px; height: 40px; }
  html body.site .look-pixel .ach-tile { min-height: 68px; }
  html body.site .look-pixel .ach-piece { width: 50px; height: 50px; }
  html body.site .look-pixel .ach-detail-head { padding: 18px 16px; column-gap: 14px; }
  html body.site .look-pixel .ach-detail-art { width: 80px; height: 80px; }
  html body.site .look-pixel .ach-pedestal { width: 92px; }
  html body.site .look-pixel .ach-detail-body { padding: 18px 16px; }
  html body.site .look-pixel .ach-detail-how { font-size: 18px; }
  html body.site .look-pixel .ach-level-bar { grid-template-columns: 76px minmax(0, 1fr) 76px; gap: 8px; font-size: 15px; }
  html body.site .look-pixel .ach-cmd { font-size: 16px; }
  html body.site .look-blossom .ach-book-shelf { border-radius: 8px 8px 3px 3px; }
  html body.site .look-blossom .ach-book-detail { padding: 74px 16px 22px; border-radius: 3px 3px 8px 8px; }
  html body.site .look-blossom .ach-book-spine { width: auto; height: 10px; }
  html body.site .look-blossom .ach-spot { min-height: 100px; }
  html body.site .look-blossom .ach-piece { width: 64px; height: 64px; }
  html body.site .look-blossom .ach-blank { width: 58px; height: 58px; font-size: 11px; }
  html body.site .look-blossom .ach-stamp-tier { font-size: 7px; }
  html body.site .look-blossom .ach-spot-name { font-size: 11px; }
  html body.site .look-blossom .ach-sakura { top: 4px; width: 190px; height: 88px; }
  html body.site .look-blossom .ach-detail-head { gap: 16px; }
  html body.site .look-blossom .ach-detail-card { padding: 20px 16px 16px; }
  html body.site .look-blossom .ach-detail-art { width: 108px; height: 108px; }
  html body.site .look-blossom .ach-detail-name { font-size: 26px; }
  html body.site .look-blossom .ach-steps { gap: 14px; }
}
html body.site.motion-off :is(.ach-book, .ach-book *) { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { html body.site :is(.ach-book, .ach-book *) { animation: none !important; transition: none !important; } }

/* ---------- Public badge list and unlock moment ---------- */
html body.site .ach-public-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
html body.site .ach-public-list li { display: flex; align-items: center; gap: 14px; }
html body.site .ach-public-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
html body.site .ach-unlock { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
html body.site .ach-unlock h3 { margin: 0; padding: 0 44px; }
html body.site .ach-unlock .modal-copy { margin: 0; }
html body.site .ach-unlock #achUnlockStatus:empty { display: none; }
html body.site .ach-unlock .modal-actions { justify-content: center; }
html body.site .ach-unlock-eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cream-muted, var(--muted)); }
html body.site .ach-unlock-badge { perspective: 400px; padding-top: 6px; }
@keyframes achCoinDrop { 0% { transform: translateY(-14px) rotateY(0); } 60% { transform: translateY(2px) rotateY(540deg); } 100% { transform: translateY(0) rotateY(720deg); } }
html body.site .ach-unlock-badge .ach-badge { animation: achCoinDrop 1.2s ease-out 1; }
html body.site.motion-off .ach-unlock-badge .ach-badge { animation: none; }
@media (prefers-reduced-motion: reduce) { html body.site .ach-unlock-badge .ach-badge { animation: none; } }
