/* Gift Hunt Studio - Lena's style sheet (E26): kraft paper, ribbon, sticker shadows. No fonts or images are downloaded. */
:root { --paper:#FFF6E5; --kraft:#E9D3AE; --ink:#3A1E19; --red:#B3202A; --pine:#1F5A3D; --gold:#F2B544; --card:#fff; --focus:#0B57D0; --error:#8F1D1D; --border:#3A1E19; }
body.theme-plain { --red:#1F6F78; --pine:#3F4A8A; --gold:#F6C85F; --paper:#FFF9EF; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--paper); }
h1, h2, h3, button, .btn, .badge, .lbl, label { font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; }
h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 12px; font-weight: 800; }
h2 { font-size: 22px; line-height: 1.25; margin: 16px 0 8px; font-weight: 800; }
h3 { font-size: 18px; margin: 12px 0 6px; font-weight: 800; }
p { margin: 8px 0; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.help { font-size: 14px; margin: 4px 0; }
.small { min-height: 44px; font-size: 16px; }
.center { text-align: center; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.pad { padding: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ribbon { height: 12px; background: var(--red); border-bottom: 2px solid var(--gold); }
.err { color: var(--error); font-weight: 800; display: flex; gap: 6px; align-items: flex-start; }
.err svg { flex: none; margin-top: 3px; }
.demo-note { margin: 0; padding: 8px 20px; background: var(--gold); font-size: 14px; font-weight: 800; text-align: center; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.card { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 16px; margin: 16px 0; }
.card.gold { background: var(--gold); }
.card.empty { text-align: center; }
.card.errbox { background: #fff; border-color: var(--error); }
.btn, button { min-height: 52px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font-size: 18px; font-weight: 800; padding: 0 24px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.p { background: var(--red); color: #fff; min-height: 56px; }
.btn.full { display: flex; width: 100%; margin: 12px 0; }
.btn.danger, .danger { color: var(--error); }
.btn:active, button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
button[disabled], .btn[disabled] { opacity: 1; background: var(--kraft); color: #5b4a3f; box-shadow: none; cursor: not-allowed; }
.btn.choice { display: flex; width: 100%; justify-content: flex-start; text-align: left; min-height: 56px; margin: 10px 0; }
.btn.choice.sel { background: var(--gold); }
.mini { min-height: 48px; min-width: 48px; padding: 0 10px; box-shadow: 0 3px 0 var(--ink); }

label, .lbl { display: block; font-weight: 800; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=datetime-local], textarea { width: 100%; min-height: 52px; border: 3px solid var(--ink); border-radius: 14px; padding: 8px 14px; font: inherit; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
input[type=radio] { width: 28px; height: 28px; accent-color: var(--pine); flex: none; }
input[type=file] { width: 100%; padding: 8px 0; font: inherit; }
.field { margin: 8px 0; }
.inline { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.inline input[type=text] { flex: 1; min-width: 0; }

.row { display: flex; align-items: center; gap: 8px; min-height: 64px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 6px 10px; margin: 10px 0; }
.row.gold { background: var(--gold); }
.row .t { flex: 1; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.row .t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 14px; }
.seal { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); display: inline-grid; place-items: center; font: 800 20px ui-rounded, system-ui, sans-serif; background: var(--paper); }
.seal.cur { background: var(--gold); }
.seal.ok { background: var(--pine); color: #fff; }
.seal.lock { background: var(--kraft); }
.trail { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0; }
.trail li { display: flex; align-items: center; }
.trail li + li::before { content: ""; width: 14px; border-top: 3px dashed var(--ink); margin-right: 8px; }
.trail.dense .seal { width: 34px; height: 34px; font-size: 16px; }
.trail.dense li + li::before { width: 6px; margin-right: 4px; }
.bar { position: sticky; bottom: 0; display: flex; gap: 12px; background: var(--kraft); border-top: 3px solid var(--ink); padding: 10px 16px; margin: 16px -20px -20px; }
.bar .btn { flex: 1; padding: 0 8px; font-size: 16px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 3px solid var(--ink); border-radius: 14px; background: #fff; padding: 10px; min-height: 56px; font-weight: 800; box-shadow: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; font-size: 16px; }
.tile.sel { background: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 4px; background: var(--pine); color: #fff; border-radius: 999px; padding: 2px 12px; font-weight: 800; font-size: 14px; }
.chip { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 10px; font-size: 14px; font-weight: 800; }
.hand { font-family: "Segoe Print", "Bradley Hand", Georgia, serif; font-style: italic; }
.hand.big { font-size: 20px; }
.toast { display: inline-flex; gap: 6px; align-items: center; background: var(--pine); color: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 800; }
.hint { background: var(--paper); border: 3px dashed var(--ink); border-radius: 14px; padding: 8px 12px; margin: 12px 0; }
.count { font: 800 24px ui-rounded, system-ui, sans-serif; margin: 12px 0; }
.pic, .thumb { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 3px solid var(--ink); margin: 8px 0; background: var(--kraft); }
.thumb { max-height: 160px; }
.codes { font: 800 18px ui-monospace, Consolas, monospace; }
.bow { text-align: center; color: var(--red); }
.bow svg { width: 56px; height: 56px; }
.preview-banner { background: var(--gold); text-align: center; font-weight: 800; font-size: 14px; border-bottom: 3px solid var(--ink); letter-spacing: 0; }
.previewbar { background: var(--kraft); border: 3px dashed var(--ink); border-radius: 14px; padding: 8px 12px; margin-bottom: 12px; }
.phone { border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; margin-top: 12px; background: var(--paper); }
.stamp .badge { vertical-align: middle; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -16px; width: 10px; height: 16px; background: var(--red); animation: fall 2.5s linear forwards; }
.confetti i.c1 { background: var(--gold); } .confetti i.c2 { background: var(--pine); } .confetti i.c3 { background: #fff; border: 1px solid var(--ink); }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
.bow svg { animation: wiggle 2s ease-in-out 3; }
@keyframes wiggle { 50% { transform: rotate(6deg); } }
.stamp .seal, .stamp { animation: stampin .25s ease-out; }
@keyframes stampin { from { transform: scale(1.3); opacity: 0; } }
.shake { animation: shake .3s 1; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.flipping { animation: flipin .3s 1; }
@keyframes flipin { from { transform: rotateY(90deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .confetti { display: none; }
}

/* clue cards: A4 sheet, 2 x 4 cards of 90 x 66 mm */
.cardsheet { display: grid; grid-template-columns: repeat(2, 90mm); grid-auto-rows: 66mm; gap: 0; justify-content: center; margin: 16px 0; }
.cc { border: 1px dashed #000; padding: 6mm; position: relative; overflow: hidden; background: #fff; color: #000; }
.cseal { position: absolute; top: 4mm; right: 4mm; width: 9mm; height: 9mm; border: 1.5px solid #000; border-radius: 50%; display: grid; place-items: center; font: 800 12pt sans-serif; }
.chint { font-size: 14pt; line-height: 1.25; margin: 0 0 4mm; max-height: 5.2em; overflow: hidden; padding-right: 10mm; }
.ccode { display: inline-block; font: 800 24pt ui-monospace, Consolas, monospace; border: 2px solid #000; padding: 1mm 3mm; }
.tiny { position: absolute; bottom: 3mm; left: 6mm; font-size: 7pt; margin: 0; }
@media print {
  @page { size: A4; margin: 12mm; }
  .no-print, .ribbon, .demo-note { display: none !important; }
  body { background: #fff; }
  #app { max-width: none; }
  .pad { padding: 0; }
  .cardsheet { margin: 0; }
}
@media (min-width: 700px) { #app { border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); } }
