/* Assets Under Construction page (index.html is written by scripts/asset-status.py; the code is auc.js) */
[hidden] { display: none !important; }
:root { --paper:#f7f1e1; --card:#fffdf6; --ink:#2b2233; --soft:#6b5f73; --mari:#f2b233; --lilac:#b9a3e3; --red:#d9483b; --green:#3f8f5a; }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.5 "Trebuchet MS", system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 0 0; font-size: 15px; }
.top a { text-decoration: none; border-bottom: 2px solid var(--mari); padding: 10px 0; }
.tape { height: 22px; margin: 14px 0 0; background: repeating-linear-gradient(135deg, var(--mari) 0 22px, var(--ink) 22px 44px); border-block: 3px solid var(--ink); }
.hero { position: relative; text-align: center; padding: 28px 16px 18px; }
.hero h1 { font-size: clamp(32px, 7vw, 60px); line-height: 1.02; margin: 0 0 10px; text-transform: uppercase; }
.hero h1 span { display: inline-block; background: var(--mari); padding: 0 .18em; border: 3px solid var(--ink); border-radius: 10px; transform: rotate(-1.5deg); box-shadow: 5px 5px 0 var(--ink); }
.hero p { max-width: 640px; margin: 10px auto; }
.big { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 6px; }
.stat { background: var(--card); border: 3px solid var(--ink); border-radius: 16px; padding: 12px 22px; box-shadow: 6px 6px 0 var(--ink); min-width: 200px; }
.stat b { display: block; font-size: 50px; line-height: 1; }
.stat.todo b { color: var(--red); }
.meter { max-width: 720px; margin: 20px auto 6px; height: 30px; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; display: flex; background: repeating-linear-gradient(135deg, var(--mari) 0 14px, var(--ink) 14px 28px); }
.meter i { display: block; background: var(--lilac); border-right: 3px solid var(--ink); transition: width .6s; }
.legend { font-size: 15px; color: var(--soft); }
.pal { position: absolute; width: 70px; height: 70px; object-fit: contain; pointer-events: none; animation: bob 2.6s ease-in-out infinite alternate; }
.p0 { left: 0; top: 24px; } .p1 { right: 2%; top: 20px; animation-delay: .4s; } .p2 { left: 4%; bottom: 6px; animation-delay: .8s; } .p3 { right: 5%; bottom: 24px; animation-delay: 1.2s; }
@keyframes bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .pal, .meter i { animation: none; transition: none; } }
@media (max-width: 700px) { .pal { width: 44px; height: 44px; } .p0, .p1 { top: 0; } }

.tabs { display: flex; gap: 10px; margin-top: 18px; border-bottom: 3px solid var(--ink); }
.tab { border: 3px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; background: #ece3cc; padding: 10px 18px; min-height: 48px; cursor: pointer; font-weight: bold; margin-bottom: -3px; }
.tab[aria-selected="true"] { background: var(--card); }
.tab.her { background: var(--mari); font-size: 18px; }
.tab.her[aria-selected="true"] { background: #ffd56b; }
h2 { font-size: 26px; margin: 34px 0 8px; }

.lockbox, .herhi { background: var(--card); border: 3px dashed var(--ink); border-radius: 14px; padding: 14px 16px; margin: 18px 0 8px; }
.lockbox form { display: flex; gap: 10px; flex-wrap: wrap; }
.lockbox input { flex: 1 1 200px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; min-height: 48px; background: #fff; }
.lockbox button, .more button { padding: 10px 18px; min-height: 48px; border: 2px solid var(--ink); border-radius: 12px; background: var(--red); color: #fff; font-weight: bold; cursor: pointer; }
.msg { color: var(--red); margin: 8px 0 0; min-height: 1em; }
.progress { margin: 12px 0 4px; font-weight: bold; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 44px; background: var(--card); cursor: pointer; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 6px 0 14px; }
.tools input[type="search"] { flex: 1 1 220px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); min-height: 48px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--green); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.card.done { opacity: .62; box-shadow: 2px 2px 0 var(--ink); }
.before { position: relative; height: 128px; background: #efe7d2; display: grid; place-items: center; border-bottom: 2px solid var(--ink); overflow: hidden; }
.before .tag { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font-size: 13px; border-radius: 99px; padding: 1px 9px; }
.before .glyph { font-size: 72px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.before .font { font-size: 44px; line-height: 1.1; text-align: center; }
.before .font small { display: block; font-size: 15px; }
.before img.shot { width: 100%; height: 100%; object-fit: cover; }
.before .sw { display: flex; width: 100%; height: 100%; }
.before .sw i { flex: 1; }
.before svg { width: 96px; height: 96px; }
.body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.body .name { font-weight: bold; font-size: 17px; }
.body .where { font-size: 14px; color: var(--soft); }
.body .where b { color: var(--ink); }
.body .note2 { font-size: 14px; color: var(--soft); }
.tick { margin-top: auto; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; background: #fff; }
.tick input { width: 26px; height: 26px; accent-color: var(--green); flex: none; }
.card.done .tick { background: #dcefe0; }
.tick.locked { cursor: not-allowed; color: var(--soft); }
.more { text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 12px; box-shadow: 4px 4px 0 var(--ink); }
.tile b { font-size: 30px; display: block; }
.tile span { font-weight: bold; display: block; }
.tile small { color: var(--soft); font-size: 14px; display: block; margin-top: 4px; }
.game { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; margin: 10px 0; box-shadow: 4px 4px 0 var(--ink); }
.game summary { cursor: pointer; padding: 12px 16px; display: grid; grid-template-columns: 1fr 170px; gap: 4px 14px; align-items: center; list-style: none; min-height: 48px; }
.game summary::-webkit-details-marker { display: none; }
.gt { font-weight: bold; font-size: 18px; }
.gt::before { content: "+"; display: inline-block; width: 22px; color: var(--red); }
.game[open] .gt::before { content: "\2212"; }
.bar { height: 14px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--mari) 0 8px, var(--ink) 8px 16px); display: flex; }
.bar i { background: var(--lilac); }
.gp { font-size: 15px; } .gp b { color: var(--red); }
.gc { font-size: 14px; color: var(--soft); text-align: right; }
@media (max-width: 640px) { .game summary { grid-template-columns: 1fr; } .gc { text-align: left; } }
.gbody { padding: 4px 16px 16px; border-top: 2px dashed #cfc4b0; }
.gbody .shots { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.gbody .shots img { height: 120px; border: 2px solid var(--ink); border-radius: 8px; }
.gbody h4 { margin: 12px 0 6px; font-size: 16px; }
.lst { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lst li { border: 1.5px solid var(--ink); border-radius: 99px; padding: 2px 10px; font-size: 14px; background: #fff; }
.lst li.done { background: #dcefe0; text-decoration: line-through; }
.lst.emoji li { font-size: 20px; padding: 0 8px; }
.gbody .play { display: inline-block; margin-top: 14px; background: var(--red); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 12px; border: 2px solid var(--ink); font-weight: bold; }
.note { background: var(--card); border: 2px dashed var(--ink); border-radius: 14px; padding: 14px 18px; color: var(--soft); font-size: 16px; }
footer { text-align: center; color: var(--soft); font-size: 14px; padding: 30px 0 60px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 10; max-width: 90vw; }

.swap { display: flex; align-items: center; gap: 10px; }
.swap .glyph { font-size: 52px; }
.swap .arrow { font-size: 28px; font-weight: bold; }
.swap img.hers { width: 84px; height: 84px; object-fit: contain; }
.before .tag.ok { background: var(--green); }
.chip.havechip { border-color: var(--green); }

/* tap a card -> pictures + how to draw it */
.before { cursor: pointer; }
.crop { position: relative; border-radius: 10px; border: 2px solid var(--ink); background-color: #efe7d2; overflow: hidden; }
.crop.fill { width: 100%; height: 100%; border: 0; border-radius: 0; }
.redbox { position: absolute; border: 3px solid #e0201b; border-radius: 6px; box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(224, 32, 27, .55); pointer-events: none; }
.openb { align-self: flex-start; border: 2px solid var(--ink); border-radius: 999px; background: #fff; padding: 8px 14px; min-height: 44px; font-size: 15px; font-weight: bold; cursor: pointer; }
.openb:hover { background: #fff3cf; }
.guide { background: #fff8e1; border: 3px solid var(--ink); border-radius: 14px; padding: 4px 16px; margin: 12px 0; box-shadow: 4px 4px 0 var(--ink); }
.guide summary { cursor: pointer; font-weight: bold; font-size: 18px; min-height: 48px; display: flex; align-items: center; }
.guide ol { margin: 4px 0 14px; padding-left: 22px; }
.guide li { margin: 6px 0; }
body.noscroll { overflow: hidden; }
.detail { position: fixed; inset: 0; background: rgba(43, 34, 51, .55); z-index: 20; overflow-y: auto; padding: 16px; }
.dcard { position: relative; max-width: 640px; margin: 0 auto 40px; background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 18px 18px 22px; }
.dclose { position: sticky; top: 0; float: right; z-index: 2; border: 2px solid var(--ink); border-radius: 999px; background: var(--mari); padding: 8px 14px; min-height: 44px; font-weight: bold; cursor: pointer; }
.dcard h2 { margin: 6px 0 4px; font-size: 26px; }
.dtag { display: inline-block; background: var(--ink); color: #fff; border-radius: 99px; padding: 2px 10px; font-size: 14px; }
.dsec { margin-top: 16px; }
.dsec h3 { margin: 0 0 6px; font-size: 18px; }
.lead2 { font-size: 17px; margin: 4px 0; }
.small { font-size: 15px; color: var(--soft); margin: 4px 0; }
.how { margin: 0; padding-left: 4px; list-style: none; }
.how li { margin: 6px 0; }
.bigglyph { font-size: 96px; line-height: 1.1; text-align: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.shotfig { margin: 10px 0 14px; }
.shotfig .holder { cursor: zoom-in; display: inline-block; max-width: 100%; }
.shotfig figcaption { font-size: 15px; color: var(--soft); margin-top: 4px; }
.hersrow { display: flex; gap: 12px; flex-wrap: wrap; }
.hersrow figure { margin: 0; text-align: center; }
.hersrow img { width: 110px; height: 110px; object-fit: contain; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.hersrow figcaption { font-size: 14px; max-width: 110px; }
.tip { margin: 6px 0; font-size: 16px; }
.tick.big { margin-top: 18px; font-size: 18px; }

.before .crop { border-width: 1px; }

.vers { margin: 4px 0; padding-left: 20px; }
.vers li { margin: 3px 0; }
