/* Ocarina of Time 100% Checklist */

:root {
  --ink: #0c1013;
  --surface: #151c20;
  --surface-2: #1a2327;
  --surface-3: #212c31;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --text: #ecebe4;
  --text-2: #c2c5bb;
  --muted: #8d968f;

  --gold: #d6b25e;
  --gold-deep: #b8913f;
  --green: #7fb08a;
  --green-deep: #4f8461;
  --red: #d9847c;
  --child: #a9c6e0;
  --adult: #e0b593;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .28);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.55 var(--font-body);
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(74, 112, 92, .30), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(150, 116, 56, .16), transparent 58%),
    linear-gradient(180deg, #141b1e 0%, #0f1518 42%, #0b0f12 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 2px; }
a:hover { color: #e6c987; }
code { font: 13px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text-2); }

.wrap { max-width: 1120px; margin: 0 auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- botões e campos ---------- */
button {
  font: 500 14px/1.2 var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
button:hover { border-color: rgba(214, 178, 94, .55); }
button.primary { background: linear-gradient(180deg, #3d6a4b, #335a40); border-color: #4b7c5a; color: #f1f5ee; }
button.primary:hover { border-color: #6a9c78; }
button.danger { color: #e4a9a3; border-color: rgba(217, 132, 124, .35); }
button.danger:hover { border-color: rgba(217, 132, 124, .7); }
button.linklike { background: none; border: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
button.linklike:hover { color: var(--text); }

input[type=search], input[type=email], input[type=password], select, textarea {
  font: 14px/1.3 var(--font-body);
  color: var(--text);
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}
input::placeholder, textarea::placeholder { color: #737c76; }
select { padding-right: 28px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(214, 178, 94, .6); box-shadow: 0 0 0 3px rgba(214, 178, 94, .12); }

/* caixa de seleção desenhada */
input[type=checkbox] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0; flex: none;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 5px;
  background: rgba(0, 0, 0, .3) center / 14px 14px no-repeat;
  cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
input[type=checkbox]:hover { border-color: var(--green); }
input[type=checkbox]:checked {
  border-color: var(--green-deep);
  background-color: var(--green-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.6' fill='none' stroke='%23f3f6ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- cabeçalho ---------- */
header { padding: 22px 20px 4px; }
.top { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.top h1 {
  margin: 0; flex: 1;
  font: 600 28px/1.15 var(--font-display);
  letter-spacing: .2px;
}
.top h1 .logo { height: 78px; width: auto; margin: -6px 12px -6px -4px; vertical-align: middle; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .6)) drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); }
.top h1 .ttl-text { font-weight: 600; vertical-align: middle; }
.top h1 span {
  display: inline-block; margin-left: 10px; padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font: 600 13px/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  vertical-align: middle;
}
.top h1 .by { margin-left: 12px; font: italic 400 15px/1 var(--font-display); letter-spacing: .2px; color: var(--muted); white-space: nowrap; vertical-align: middle; }
.top h1 .by a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.top h1 .by a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.account { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.account b { color: var(--text); font-weight: 600; }
.account button { padding: 6px 12px; font-size: 13px; }
.account button.linklike { padding: 0; font-size: 12px; }

.langs, .tabs { display: inline-flex; padding: 3px; gap: 2px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 8px; }
.langs button { padding: 4px 9px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: none; border-color: transparent; border-radius: 5px; }
.langs button.active { color: var(--text); background: var(--surface-3); border-color: var(--line-strong); }

.switch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; font-size: 13px; color: var(--text-2); }
.switch .knob { position: relative; width: 28px; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .15s; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #cfd3c9; transition: transform .15s; }
.switch[aria-pressed=true] { color: var(--text); border-color: rgba(127, 176, 138, .5); }
.switch[aria-pressed=true] .knob { background: var(--green-deep); }
.switch[aria-pressed=true] .knob::after { transform: translateX(12px); background: #fff; }

/* ---------- faixa de jogos ---------- */
.games { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 auto 20px; padding-bottom: 20px; max-width: 1120px; border-bottom: 1px solid var(--line); }
.games .lbl { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.games .game { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; line-height: 1.2; color: var(--text-2); background: rgba(0, 0, 0, .22); text-decoration: none; white-space: nowrap; }
.games a.game:hover { border-color: rgba(214, 178, 94, .55); color: var(--text); }
.games .game.current { color: var(--text); border-color: rgba(214, 178, 94, .5); background: rgba(214, 178, 94, .1); font-weight: 600; }
.games .game.soon { color: var(--muted); border-style: dashed; cursor: default; }
.games .soon-lbl { margin-left: 10px; white-space: nowrap; }
.games .game.logo { padding: 5px 10px; border-radius: var(--radius-sm); }
.games .game.logo img { display: block; height: 40px; width: auto; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)); }
.games .game.logo.soon img { filter: grayscale(1) brightness(1.05) drop-shadow(0 0 1px rgba(255, 255, 255, .45)); opacity: .5; transition: opacity .15s, filter .15s; }
.games .game.logo.soon:hover img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)); opacity: .9; }

/* ---------- painéis do resumo ---------- */
.panel, .hearts, .stat, .inv, .chapter, .eta {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.summary { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }

.hearts { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hearts .big { font: 600 26px/1 var(--font-display); white-space: nowrap; }
.hearts .big .ico { color: var(--red); font-size: 20px; margin-right: 4px; }
.hearts .big small { font: 400 13px/1 var(--font-body); color: var(--muted); margin-left: 4px; }
.hearts .row-hearts { display: grid; grid-template-columns: repeat(10, 28px); gap: 4px; align-items: center; justify-items: center; }
.heart-img { width: 28px; height: 27px; object-fit: contain; display: block; }
.hearts .detail { color: var(--muted); font-size: 13px; line-height: 1.55; }
.hearts .detail b { color: var(--text); font-weight: 600; }
.heart { position: relative; width: 22px; height: 20px; --h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M10 17.5 1.6 9.2C-.5 7-.4 3.6 1.7 1.6 3.8-.4 7.1 1.9 10 3.8 12.9-.1 16.2-.4 18.3 1.6 20.4 3.6 20.5 7 18.4 9.2Z'/%3E%3C/svg%3E"); }
.heart::before, .heart i { content: ""; position: absolute; inset: 0; -webkit-mask: var(--h) left center / 22px 20px no-repeat; mask: var(--h) left center / 22px 20px no-repeat; }
.heart::before { background: rgba(255, 255, 255, .1); }
.heart i { background: #d9635b; width: var(--f, 0%); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.stat .lbl { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat .val { font: 600 22px/1.2 var(--font-display); margin-top: 6px; }
.stat .val small { font: 400 13px/1 var(--font-body); color: var(--muted); }
.bar { height: 5px; background: rgba(0, 0, 0, .4); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green-deep), var(--green) 60%, var(--gold)); transition: width .3s; }

/* ---------- tempo restante ---------- */
.eta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 12px 18px; margin-bottom: 12px; }
.eta .ttl { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eta .num { display: flex; align-items: baseline; gap: 8px; }
.eta .num b { font: 600 22px/1 var(--font-display); color: var(--text); }
.eta .num span { font-size: 13px; color: var(--text-2); }
.eta .num small { font-size: 12px; color: var(--muted); }
.eta .sp { flex: 1; }
.eta .src { font-size: 12px; color: var(--muted); }
.eta .seg { display: inline-flex; padding: 3px; gap: 2px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 8px; }
.eta .seg button { padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted); background: none; border-color: transparent; border-radius: 5px; }
.eta .seg button.active { color: var(--text); background: var(--surface-3); border-color: var(--line-strong); }

/* ---------- inventário ---------- */
.inv { padding: 12px 16px 14px; margin-bottom: 14px; --slot: 46px; }
.inv-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.inv-head .ttl { background: none; border: none; padding: 2px 0; font: 600 18px/1.2 var(--font-display); color: var(--text); }
.inv-head .ttl:hover { color: var(--gold); }
.inv-head .cnt-all { color: var(--muted); font-size: 13px; }
.inv-head .sp { flex: 1; }
.inv-head button.sm { padding: 5px 11px; font-size: 12px; }
.inv-head .hint { color: var(--muted); font-size: 12px; flex: 1 1 100%; }
.inv.closed .inv-body, .inv.closed .inv-head .sm, .inv.closed .inv-head .hint, .inv.closed .legend { display: none; }
.inv-body { display: flex; flex-wrap: wrap; gap: 16px 26px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.inv-group h4 { margin: 0 0 7px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.inv-group h4 small { color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.inv-grid { display: grid; gap: 5px; }

.slot { position: relative; width: var(--slot); height: var(--slot); border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; user-select: none; transition: border-color .12s, transform .12s; }
.slot:hover { border-color: rgba(214, 178, 94, .6); }
.slot img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; }
.slot .txt { font-size: 9px; line-height: 1.15; text-align: center; padding: 2px; word-break: break-word; color: var(--text-2); }
.slot.own { border-color: rgba(127, 176, 138, .45); background: linear-gradient(180deg, rgba(127, 176, 138, .14), rgba(127, 176, 138, .05)); }
.slot.miss img { filter: grayscale(1) brightness(.65); opacity: .38; }
.slot.miss .txt { color: #5d6660; }
.slot.traded { border-color: rgba(184, 145, 63, .45); background: linear-gradient(180deg, rgba(184, 145, 63, .14), rgba(184, 145, 63, .04)); }
.slot.traded img { filter: grayscale(1) sepia(1) saturate(2) hue-rotate(-12deg) brightness(.8); opacity: .55; }
.slot.traded .txt { color: #a9925f; }
.slot.traded::after { content: "⇄"; position: absolute; right: 3px; top: 0; font-size: 10px; line-height: 12px; color: var(--gold); text-shadow: 0 0 3px #000, 0 0 3px #000; }
.slot.manual::before { content: ""; position: absolute; left: 4px; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #8a938c; box-shadow: 0 0 2px #000; }
.slot.spacer { visibility: hidden; pointer-events: none; }
.slot.secret { cursor: default; border-style: dashed; color: #57605a; font: 600 16px/1 var(--font-display); }
.slot.secret:hover { border-color: var(--line); }
.slot .bdg { position: absolute; right: 3px; bottom: 1px; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.slot .stg { position: absolute; left: 3px; top: 1px; font-size: 9px; color: var(--gold); text-shadow: 0 0 3px #000, 0 0 3px #000; }
.slot.counter { width: 156px; justify-content: flex-start; gap: 6px; padding: 0 10px 0 4px; }
.slot.counter img { max-width: 38px; flex: none; }
.slot.counter .txt { text-align: left; font-size: 10px; color: var(--muted); }
.slot.counter .cnt { font-weight: 600; font-size: 13px; margin-left: auto; white-space: nowrap; }
.inv.editing .inv-group { flex: 1 1 100%; }
.inv.editing .inv-grid { grid-template-columns: repeat(auto-fill, 92px) !important; }
.slot.edit { width: 92px; height: 92px; flex-direction: column; justify-content: flex-end; border-style: dashed; }
.slot.edit img { max-height: 56px; }
.slot.edit .txt { font-size: 10px; flex: 1; display: flex; align-items: center; color: var(--muted); }
.slot.edit .fname { font-size: 9px; color: var(--muted); padding: 2px 3px 3px; width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .35); }
.slot.edit.own { border-style: solid; }

/* dungeons, uma por uma */
.dungeons { flex: 1 1 100%; }
.dng-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.dng { padding: 9px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .22); }
.dng.complete { border-color: rgba(127, 176, 138, .4); }
.dng-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 600 14px/1.2 var(--font-display); color: var(--text); }
.dng-name .n { flex: none; min-width: 22px; height: 22px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(214, 178, 94, .4); border-radius: 5px; color: var(--gold); font-size: 12px; background: rgba(214, 178, 94, .07); }
.dng.complete .dng-name .n { border-color: rgba(127, 176, 138, .5); color: var(--green); background: rgba(127, 176, 138, .08); }
.dng.locked .dng-name { color: var(--muted); font-style: italic; }
.dng.locked .dng-name .n { border-color: var(--line-strong); color: var(--muted); background: none; }
.dng-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; --slot: 38px; }
.dng-count { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 9px 0 5px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, .3); color: var(--text-2); font-size: 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.dng-count:hover { border-color: rgba(214, 178, 94, .6); }
.dng-count img, .dng-count svg { width: 24px; height: 24px; object-fit: contain; flex: none; }
.dng-count svg { color: #b08d57; }
.dng-count b { color: var(--text); font-weight: 600; }
.dng-count.full { border-color: rgba(127, 176, 138, .45); background: linear-gradient(180deg, rgba(127, 176, 138, .14), rgba(127, 176, 138, .05)); }
.dng-count.none img, .dng-count.none svg { filter: grayscale(1) brightness(.7); opacity: .5; }

.legend { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 12px; align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid; margin-right: 5px; vertical-align: -1px; }
.legend i.own { background: rgba(127, 176, 138, .3); border-color: var(--green); }
.legend i.traded { background: rgba(184, 145, 63, .3); border-color: var(--gold-deep); }
.legend i.miss { background: rgba(0, 0, 0, .3); border-color: rgba(255, 255, 255, .2); }
.legend i.dot { width: 6px; height: 6px; border-radius: 50%; background: #8a938c; border: none; vertical-align: 1px; }

/* ---------- barra de filtros ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  padding: 12px 20px 0;
  background: rgba(12, 16, 19, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.controls input[type=search] { flex: 1 1 240px; min-width: 160px; }
.controls label.chk { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; cursor: pointer; padding: 0 4px; }
.controls label.chk input { width: 18px; height: 18px; }
.status { font-size: 12px; color: var(--muted); margin-left: auto; }
.status.err { color: var(--red); }
.tabs { margin: 12px 0 12px; }
.tabs button { background: none; border-color: transparent; color: var(--muted); padding: 6px 14px; font-size: 13px; border-radius: 5px; }
.tabs button:hover { color: var(--text); border-color: transparent; }
.tabs button.active { color: var(--text); background: var(--surface-3); border-color: var(--line-strong); box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------- lista ---------- */
main { padding: 18px 20px 8px; }
.chapter { margin-bottom: 14px; overflow: hidden; }
.chapter > .head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; user-select: none; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); }
.chapter > .head:hover h2 { color: #fff; }
.chapter > .head .num { flex: none; min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(214, 178, 94, .4); border-radius: var(--radius-sm); color: var(--gold); font: 600 14px/1 var(--font-display); background: rgba(214, 178, 94, .07); }
.chapter > .head h2 { margin: 0; flex: 1; font: 600 18px/1.25 var(--font-display); letter-spacing: .1px; }
.chapter > .head .count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chapter > .head .bar { width: 130px; margin: 0; }
.chapter > .head .caret { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.chapter.collapsed > .head .caret { transform: rotate(-45deg); }
.chapter.collapsed > .body { display: none; }
.chapter.complete > .head .num { border-color: rgba(127, 176, 138, .5); color: var(--green); background: rgba(127, 176, 138, .08); }

.chapter.locked > .head { cursor: default; }
.chapter.locked > .head h2 { color: var(--muted); font-style: italic; }
.chapter.locked > .head .num { border-color: var(--line-strong); color: var(--muted); background: none; }
.chapter.locked .lock { flex: none; width: 14px; height: 14px; color: var(--muted); }
.chapter.locked .reveal { padding: 5px 11px; font-size: 12px; }

.section { padding: 4px 16px 10px; border-top: 1px solid var(--line); }
.section h3 { margin: 12px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--green); }
.section h3 .sid { color: var(--muted); margin-right: 6px; }
.section h3 small { color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.hidden-note { color: var(--muted); font-size: 13px; font-style: italic; padding: 8px 2px 2px; }

.item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 8px; margin: 0 -8px; border-radius: var(--radius-sm); align-items: start; }
.item + .item { border-top: 1px solid rgba(255, 255, 255, .045); }
.item:hover { background: rgba(255, 255, 255, .03); }
.item > input[type=checkbox] { margin-top: 2px; }
.item .line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.item .name { font-weight: 600; color: var(--text); }
.item .area { color: var(--muted); font-size: 13px; }
.item .how { color: var(--text-2); font-size: 14px; line-height: 1.55; margin-top: 3px; max-width: 78ch; }
.item .notes { color: #d8c48d; font-size: 13px; line-height: 1.5; margin-top: 7px; padding: 6px 10px; border-left: 2px solid var(--gold-deep); background: rgba(214, 178, 94, .06); border-radius: 0 4px 4px 0; max-width: 78ch; }
.item .note-user { color: #b5d2bc; font-size: 13px; margin-top: 7px; padding: 6px 10px; border-left: 2px solid var(--green-deep); background: rgba(127, 176, 138, .06); border-radius: 0 4px 4px 0; max-width: 78ch; }
.item .when { color: var(--muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item .tools { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.item .tools button { padding: 3px 9px; font-size: 12px; color: var(--muted); background: none; border-color: var(--line); }
.item .tools button:hover { color: var(--text); }
.item.done .name { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.item.done .how, .item.done .notes, .item.done .badges { opacity: .5; }
.item.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: rgba(214, 178, 94, .35); } 100% { background: transparent; } }

.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.badge { font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 4px; color: var(--text-2); background: rgba(255, 255, 255, .06); white-space: nowrap; }
.badge.type-skulltula { color: #e0c988; background: rgba(214, 178, 94, .13); }
.badge.type-heart_piece, .badge.type-heart_container { color: #e6aaa3; background: rgba(217, 132, 124, .13); }
.badge.era-child { color: var(--child); background: rgba(143, 180, 214, .12); }
.badge.era-adult { color: var(--adult); background: rgba(217, 162, 122, .12); }
.badge.era-both { color: #cbbbe0; background: rgba(170, 150, 210, .12); }
.badge.time-night { color: #bcbde6; background: rgba(150, 152, 220, .13); }
.badge.req { color: #add0b5; background: rgba(127, 176, 138, .11); white-space: normal; line-height: 1.3; }

.cat .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 5px; margin: 12px 0 8px; }
.cell { text-align: center; font-size: 12px; padding: 7px 0; border-radius: 5px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--text-2); cursor: pointer; user-select: none; font-variant-numeric: tabular-nums; }
.cell.done { background: rgba(79, 132, 97, .55); border-color: rgba(127, 176, 138, .55); color: #eef4ec; }
.cell:hover { border-color: rgba(214, 178, 94, .6); }
.cat > .head { cursor: default; }
.empty { color: var(--muted); padding: 32px 20px; text-align: center; }

/* ---------- rodapé e janelas ---------- */
footer { color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; padding: 22px 20px 34px; margin-top: 10px; border-top: 1px solid var(--line); }
footer p { margin: 0 auto 6px; max-width: 760px; }
footer a + a { margin-left: 16px; }

dialog { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 22px; max-width: 480px; width: 92vw; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
dialog::backdrop { background: rgba(6, 9, 11, .7); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
dialog h3 { margin: 0 0 6px; font: 600 20px/1.2 var(--font-display); }
dialog p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
dialog textarea { width: 100%; min-height: 96px; }
dialog label.f { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); margin-bottom: 10px; }
dialog label.f input { display: block; width: 100%; margin-top: 5px; font-weight: 400; letter-spacing: 0; }
dialog .msg { min-height: 18px; font-size: 13px; color: var(--gold); margin: 0 0 4px; }
dialog .msg.err { color: var(--red); }
dialog .providers { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
dialog .providers:empty { display: none; }
dialog button.linklike { color: var(--gold); margin-top: 10px; }
.row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

dialog.welcome { max-width: 620px; padding: 26px; }
.welcome-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.welcome-top h3 { flex: 1; font-size: 23px; margin: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 14px; }
.choice { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; padding: 16px; border-radius: var(--radius); white-space: normal; }
.choice strong { font: 600 18px/1.2 var(--font-display); color: var(--text); }
.choice span { font-size: 13px; line-height: 1.5; color: var(--text-2); font-weight: 400; }
.choice[data-choice=free] { border-color: rgba(127, 176, 138, .45); background: linear-gradient(180deg, rgba(127, 176, 138, .14), rgba(127, 176, 138, .04)); }
.choice[data-choice=free]:hover { border-color: var(--green); }
.choice[data-choice=full]:hover { border-color: rgba(214, 178, 94, .7); }
dialog .fine { font-size: 12px; margin: 0; }
.choices.one { grid-template-columns: 1fr; margin: 4px 0 8px; }
.choices.one .choice { flex-direction: row; align-items: baseline; gap: 12px; padding: 12px 14px; }
.choices.one .choice strong { font-size: 16px; }
dialog .steps { margin: 0 0 12px; padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ---------- página de texto (privacidade) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 26px 20px 60px; font-size: 16px; line-height: 1.65; }
.prose h1 { font: 600 30px/1.2 var(--font-display); margin: 0 0 6px; }
.prose h2 { font: 600 19px/1.3 var(--font-display); margin: 30px 0 6px; color: var(--text); }
.prose p, .prose li { color: var(--text-2); }
.prose .lead { color: var(--muted); font-size: 15px; }
.prose .top a { flex: 1; }

/* ---------- telas menores ---------- */
@media (max-width: 900px) {
  .summary { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  header { padding: 14px 12px 2px; }
  main { padding: 12px 12px 4px; }
  .toolbar { position: static; padding: 12px 12px 0; -webkit-backdrop-filter: none; backdrop-filter: none; background: none; }
  .top { margin-bottom: 12px; }
  .top h1 { font-size: 22px; flex: 1 1 100%; }
  .top h1 span { font-size: 11px; }
  .top h1 .logo { height: 60px; }
  .games .game.logo img { height: 32px; }
  .games { gap: 5px; padding-bottom: 16px; margin-bottom: 16px; }
  .games .lbl { flex: 1 1 100%; text-align: center; margin: 0 0 4px; }
  .top h1 .by { font-size: 13px; margin-left: 8px; }
  .hearts { padding: 14px; }
  .hearts .row-hearts { grid-template-columns: repeat(10, minmax(0, 28px)); }
  .heart-img { width: 100%; height: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .inv { --slot: 42px; padding: 10px 12px; }
  .inv-body { gap: 12px 16px; }
  .controls input[type=search] { flex: 1 1 100%; }
  .controls select { flex: 1 1 40%; min-width: 0; }
  .status { flex: 1 1 100%; margin-left: 0; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 7px 6px; }
  .chapter > .head { padding: 12px; gap: 10px; }
  .chapter > .head h2 { font-size: 16px; }
  .chapter > .head .bar { display: none; }
  .section { padding: 4px 12px 8px; }
  .item { grid-template-columns: 22px minmax(0, 1fr); }
  .item .tools { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; margin-top: 4px; }
  dialog.welcome { padding: 20px; }
  .welcome-top h3 { font-size: 20px; }
  .choices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
