/* F-S4: Settings' grouped index, its pages, the You page's Ember card,
 * and this phone's privacy. Ported from design/settings/ (Main.dc.html,
 * Month.dc.html, You.dc.html); the sizes are app.css's type scale (--t-*), and
 * every margin and padding stays on its 4, 8, 12, 16, 24, 32 px scale
 * (the mock-ups' 22 px became 24). Nothing on Ember's card is amber or red.
 * Every page wraps and never cuts text off. */

/* ---- the index ---- */

.settings .youcard {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 12px;
  border: 0; border-radius: 8px; background: rgb(var(--fg) / .06); color: var(--cream);
  font: inherit; text-align: left; cursor: pointer;
}
.settings .youcard svg { flex: none; }
.settings .youcard .yt { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.settings .youcard .yn { font-family: var(--body-face); font-weight: 600; font-size: var(--t-title); line-height: var(--lh-title); letter-spacing: normal; }
.settings .youcard .ys { font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: rgb(var(--fg) / .8); overflow-wrap: anywhere; }
.settings .youcard .ya {
  flex: none; width: .5em; height: .5em; margin-right: 4px;
  border: solid var(--peach); border-width: 2px 2px 0 0; transform: rotate(45deg);
}

/* Needs you: setup that's waiting on the owner. Cream, like CHECK THIS:
 * a setup warning isn't money, so it isn't the money colour (F-S2). */
.settings .needs {
  margin: 16px 0 0; padding: 12px; border: 1px solid rgb(var(--fg) / .45); border-radius: 8px;
  background: rgb(var(--fg) / .06);
}
.settings .needs .nh { font-family: var(--body-face); font-weight: 700; font-size: var(--t-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--cream); margin: 0 0 4px; }
.settings .needs .warn { border: 0; padding: 0; margin: 4px 0 8px; background: none; }
.settings .igrp { font-family: var(--body-face); font-weight: 700; font-size: var(--t-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: rgb(var(--fg2)); margin: 24px 0 0; }

/* ---- a page ---- */

.settings.spage h2 { margin-top: 8px; }

/* ---- the You page ---- */

.settings .greet { margin: 0 0 12px; color: rgb(var(--fg) / .8); }
.settings .embercard {
  display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 12px; background: var(--wall);
}
.settings .ectop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.settings .ewin { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; min-width: 0; }
.settings .eframe { border: 4px solid var(--brickD); border-radius: 2px; line-height: 0; width: max-content; }
/* Sized from room.js' SHEETS by you.js. */
.settings .esky { background-repeat: no-repeat; image-rendering: pixelated; }
.settings .ecap { font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: rgb(var(--fg) / .8); }
.settings .etap { flex: none; padding: 0 8px 0 0; margin: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
@keyframes emberbob { from { background-position-x: 0; } to { background-position-x: var(--frame-run, -400px); } }
/* Sized from room.js' SHEETS by you.js. */
.settings .esprite {
  background-repeat: no-repeat; image-rendering: pixelated;
  animation: emberbob 1.4s steps(4) infinite;
}
.settings .esprite.still { animation: none; }
.settings .esay {
  display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 8px 12px;
  border: 2px solid var(--cream); border-radius: 4px; background: var(--dark);
}
.settings .eline { font-family: var(--body-face); font-weight: 600; font-size: var(--t-title); line-height: var(--lh-title); letter-spacing: normal; color: var(--cream); overflow-wrap: anywhere; }
.settings .ewhy { font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: rgb(var(--fg) / .8); }
.settings .ygrp { font-family: var(--body-face); font-weight: 700; font-size: var(--t-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: rgb(var(--fg2)); margin: 24px 0 4px; }
.settings .stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; padding: 8px 0 4px; }
.settings .gstage { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .3; text-align: center; }
.settings .gstage.got { opacity: 1; }
.settings .gstage span { font-family: var(--body-face); font-weight: 600; font-size: var(--t-small); line-height: var(--lh-small); letter-spacing: normal; color: rgb(var(--fg) / .8); }
.settings .gstage.got span { color: var(--cream); }
.settings .stages + .note { margin-top: 4px; margin-bottom: 12px; } /* 12, not the 1em a p has by default (F-TY1: 13 at 13 px) */
.settings .keeps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.settings .keep {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px;
  border-radius: 8px; background: rgb(var(--fg) / .05); text-align: center;
}
.settings .keep b { font-family: var(--body-face); font-weight: 600; font-size: var(--t-body); line-height: var(--lh-body); letter-spacing: normal; }
.settings .keep span { font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: rgb(var(--fg) / .8); }
.settings .emberyou .pref:first-child { border-top: 0; }

/* ---- Up, About ---- */

.settings .v.bad { color: var(--red); }
.settings .help p { margin: 8px 0 0; font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: rgb(var(--fg) / .8); }
.settings .lede a { color: var(--peach); }

/* ---- blur in the app switcher (privacy.js) ----
 * While the page is hidden, a cover over everything: the snapshot the app
 * switcher takes shows no figures. */
html.veiled body::after {
  content: ''; position: fixed; inset: 0; z-index: 1000;
  background: rgba(28, 20, 18, .9);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}

/* ---- Her sound (F-SND1): Settings → Ember ---- */
.settings .hersound .ygrp { margin-top: 24px; }
.settings .herhint { margin: 4px 0 8px; }
.settings .herhint button.alink {
  position: relative; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--peach);
  text-decoration: underline; cursor: pointer; min-height: 0;
}
/* A 44 px target, the line's height unchanged. */
.settings .herhint button.alink::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; bottom: -12px; }
.settings .hlevel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 12px; }
.settings .hlevel .hk {
  font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: rgb(var(--fg) / .8);
}
.settings .hlevel input[type="range"] { flex: 1 1 140px; min-width: 0; min-height: 44px; margin: 0; accent-color: var(--peach); }
.settings .hlevel input[type="range"]:disabled { opacity: .45; }
.settings .hlevel .hv {
  flex: 1 0 100%; font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: rgb(var(--fg) / .8);
}
