/* Nunito ships with the game (SIL OFL, see fonts/OFL-Nunito.txt) so it looks the same on every PC and on Steam Deck. */
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url("../fonts/nunito-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --bg1: #ffe3f1;
  --bg2: #e6dcff;
  --pink: #ff5fa2;
  --pink-d: #e03e86;
  --purple: #8a63ff;
  --purple-d: #6a45e0;
  --ink: #4a2a5c;
  --muted: #6b5280;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(138, 99, 255, 0.18);
  --hc: #ff7eb6;
  --hc2: #ffd1e8;
  --radius: 20px;
  --shadow: 0 8px 28px rgba(138, 99, 255, 0.18);
  font-family: "Nunito", "Quicksand", "Comic Sans MS", "Segoe UI Rounded", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  color: var(--ink);
  background: radial-gradient(circle at 15% 10%, #fff0f8 0, transparent 45%), radial-gradient(circle at 85% 90%, #efe6ff 0, transparent 45%), linear-gradient(160deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  overflow-x: hidden;
}
.hidden { display: none !important; }
/* Themed scrollbars (Chromium): thin pink pill, no arrow buttons, inset so it stays inside rounded corners */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--pink) 45%, transparent); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--pink) 70%, transparent); }
::-webkit-scrollbar-corner { background: transparent; }
.modal::-webkit-scrollbar-track { margin: 22px 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); font-size: 0.85em; }
h2, h3 { margin: 0 0 8px; }
small { color: var(--muted); }

#app { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.page-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.page-bg .bg-layer { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(18px) brightness(0.6); opacity: 0; transition: opacity 0.35s ease; }
.page-bg .bg-layer.on { opacity: 0.55; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  flex: none; padding: 8px 20px; background: linear-gradient(90deg, #ff8cc3, #a98bff); color: #fff;
  box-shadow: 0 4px 18px rgba(138, 99, 255, 0.3);
}
.logo { font-size: 1.6rem; font-weight: 800; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); letter-spacing: 0.5px; }
.topnav { display: flex; gap: 8px; flex-wrap: wrap; }
.topnav button, .btn {
  border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; background: rgba(255, 255, 255, 0.9); color: var(--purple-d);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12); transition: transform 0.08s, box-shadow 0.08s;
}
.topnav button:hover, .btn:hover { transform: translateY(-1px); }
.topnav button:active, .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); }
.topnav button.accent, .btn.accent { background: linear-gradient(180deg, #ff82b8, var(--pink)); color: #fff; }
.topnav button.accent.ready { animation: pulse 1.4s infinite; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.btn { background: #fff; border: 2px solid var(--line); }

.layout {
  flex: 1; display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 14px; padding: 12px 20px; min-height: 0; overflow: hidden;
}
.panel { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); border: 2px solid rgba(255, 255, 255, 0.8); padding: 14px; overflow-y: auto; backdrop-filter: blur(6px); min-height: 0; }

/* shop */
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tab { flex: 1; border: 0; border-radius: 14px; padding: 9px; font-weight: 800; background: rgba(138, 99, 255, 0.1); color: var(--purple-d); }
.tab.active { background: linear-gradient(180deg, #a98bff, var(--purple)); color: #fff; }
.badge { background: var(--pink); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 0.75rem; margin-left: 4px; }
.amounts { display: flex; gap: 6px; margin-bottom: 10px; }
.amounts button { flex: 1; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 4px; font-weight: 700; }
.amounts button.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.shop-list { display: flex; flex-direction: column; gap: 8px; }
.shop-row {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 9px 12px; opacity: 0.6; transition: transform 0.08s, opacity 0.15s;
}
.shop-row.afford { opacity: 1; border-color: var(--pink); box-shadow: 0 3px 0 rgba(255, 95, 162, 0.25); }
.shop-row.afford:hover { transform: translateY(-2px); }
.shop-row.afford:active { transform: translateY(1px); }
.shop-row.mystery { filter: grayscale(1); opacity: 0.5; cursor: default; }
.sr-ico { position: relative; flex: none; width: 44px; height: 44px; }
.sr-ico img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.ico-badge { position: absolute; right: -4px; bottom: -3px; font-style: normal; font-size: 0.7rem; font-weight: 900; line-height: 1; color: #fff; background: var(--pink); border: 2px solid #fff; border-radius: 999px; padding: 1px 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.shop-row.mystery .sr-ico img { filter: brightness(0); opacity: 0.35; }
.shop-row.mystery .ico-badge { display: none; }
.mem-row { cursor: default; align-items: center; }
.mem-row.afford { cursor: default; }
.mem-row.afford:hover, .mem-row.afford:active { transform: none; }
.mem-row { opacity: 0.88; }
.mem-row.maxed { opacity: 0.75; }
.mem-emoji { display: grid; place-items: center; font-size: 1.9rem; }
.mem-buy { flex: none; }
.mem-sum { margin: 4px 0 12px; }
.topnav button .badge { margin-left: 2px; }
.mem-ico { display: inline-block; vertical-align: middle; width: 22px; height: 22px; margin-right: 4px; }
.mem-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.heart-img { width: 0.9em; height: 0.9em; object-fit: contain; vertical-align: -0.1em; animation: beat 1.2s infinite; }
.sr-main { flex: 1; min-width: 0; }
.sr-name { font-weight: 800; }
.sr-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.25; }
.sr-cost { font-weight: 800; color: var(--pink-d); font-size: 0.92rem; margin-top: 2px; }
.sr-owned { font-size: 1.6rem; font-weight: 900; color: rgba(138, 99, 255, 0.45); min-width: 34px; text-align: right; }
.empty { color: var(--muted); text-align: center; padding: 20px 8px; }
.owned-charms { margin-top: 10px; padding: 10px; background: rgba(255, 255, 255, 0.7); border: 2px dashed var(--line); border-radius: 16px; }
.oc-head { font-weight: 800; margin-bottom: 8px; }
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.oc-tile { aspect-ratio: 1; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 4px; display: grid; place-items: center; }
.oc-tile:hover, .oc-tile.sel { border-color: var(--pink); }
.oc-ico { position: relative; width: 100%; height: 100%; }
.oc-ico img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.oc-ico .ico-badge { font-size: 0.6rem; right: -6px; bottom: -6px; }
.oc-info { margin-top: 8px; font-size: 0.85rem; min-height: 2.4em; }

/* stage */
.stage { display: flex; flex-direction: column; align-items: center; min-height: 0; min-width: 0; overflow: hidden; text-align: center; gap: 4px; }
.stage > * { flex: none; max-width: 100%; }
.counter .hearts { line-height: 1.1; }
.counter .hearts { font-size: clamp(1.8rem, 4.5vh, 3rem); font-weight: 900; color: var(--pink-d); text-shadow: 0 3px 0 #fff, 0 6px 14px rgba(255, 95, 162, 0.3); }
.heart-ico { display: inline-block; animation: beat 1.2s infinite; }
.hps { color: var(--muted); font-weight: 700; display: inline-block; background: rgba(255,255,255,0.85); border-radius: 999px; padding: 1px 12px; }
.hps b { color: var(--purple-d); }
.heroine-name { font-size: 1.2rem; font-weight: 800; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 0; max-width: 100%; }
.pill { font-size: 0.8rem; background: #fff; border-radius: 999px; padding: 2px 10px; color: var(--purple-d); border: 2px solid var(--line); margin-left: 6px; vertical-align: middle; }
.click-area {
  position: relative; flex: 1 1 0 !important; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; outline: none;
}
.stage-art { height: 100%; aspect-ratio: 2 / 3; max-width: 100%; min-height: 0; }
/* Only the heroine squashes on click; the card and background stay still. Origin = her feet. */
.stage-art .art-img, .stage-art .ph-svg { transform-origin: 50% 97%; }
.stage-art.bounce .art-img, .stage-art.bounce .ph-svg { animation: bounce 0.28s ease-out; }
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; } /* above the stage art layers and speech bubble */
.floater { position: absolute; font-weight: 900; font-size: 1.4rem; color: #fff; text-shadow: 0 0 6px var(--pink), 0 2px 0 var(--pink-d), 0 0 2px #000; animation: floatup 0.95s ease-out forwards; white-space: nowrap; transform: translateX(-50%); }
.bubble {
  position: absolute; top: 4%; left: 50%; transform: translateX(-50%); max-width: 88%; background: #fff; border: 3px solid var(--hc); border-radius: 18px; padding: 10px 16px;
  font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); pointer-events: none; animation: pop 0.25s ease-out; z-index: 3;
}
.bubble::after { content: ""; position: absolute; bottom: -12px; left: 50%; margin-left: -10px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
.outfits { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 700; }
.chip.active { background: var(--hc); color: #fff; border-color: var(--hc); }
.chip.locked { opacity: 0.5; cursor: default; }
.stage-hint { font-size: 0.8rem; color: var(--muted); }

/* art */
.art { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 26px rgba(138, 99, 255, 0.28); border: 3px solid #fff; background: linear-gradient(180deg, var(--hc2), var(--hc)); }
.art-inner { position: absolute; inset: 0; z-index: 1; }
.art > .bg-layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.18s ease; }
.art > .bg-layer.on { opacity: 1; }
.ph-svg { width: 100%; height: 100%; display: block; }
.ph-svg .sil path, .ph-svg .sil ellipse, .ph-svg .sil rect { fill: color-mix(in srgb, var(--c) 45%, #3a1f55); }
.ph-svg .sil .hairback * { fill: color-mix(in srgb, var(--c) 55%, #2a1440); }
.ph-svg .sil .hairfront * { fill: color-mix(in srgb, var(--c) 55%, #2a1440); }
.ph-svg .sil .hi { fill: #fff; opacity: 0.9; }
.ph-svg .sil .dk { fill: color-mix(in srgb, var(--c) 40%, #2a1440); }
.ph-svg .sil .eye { fill: #fff; }
.ph-svg .sil .mouth { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.art-img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.art.has-img { background: linear-gradient(180deg, var(--hc2), var(--hc)); }
.art-label { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; pointer-events: none; z-index: 2; }
.art-label b { display: inline-block; background: rgba(255, 255, 255, 0.92); color: var(--ink); border-radius: 999px; padding: 3px 14px; font-size: 0.85rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.art-locked .art-label { color: #fff; font-weight: 900; font-size: 1.1rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); bottom: 14px; }
.art.art-locked, .g-cell.art-locked { background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--hc) 45%, #2a1a3d), #1c1029 75%); overflow: hidden; }
/* locked art: her real outfit as a dark silhouette with a soft rim glow in her color */
.art-locked .sil-img { filter: brightness(0) drop-shadow(0 0 1px color-mix(in srgb, var(--hc) 80%, #fff)) drop-shadow(0 0 10px color-mix(in srgb, var(--hc) 70%, transparent)); opacity: 0.92; }
.art-locked::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 10px, transparent 10px 20px); }
.art-lock { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 2.6em; height: 2.6em; display: grid; place-items: center; border-radius: 50%; font-size: 1.4rem; color: #fff; background: color-mix(in srgb, var(--hc) 65%, #1c1029); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 4px 14px rgba(0, 0, 0, 0.45); pointer-events: none; }
.g-cell .art-lock { font-size: 0.95rem; }
.art-locked .art-label { z-index: 3; text-shadow: none; }
.lock-pill { display: inline-block; background: rgba(24, 12, 36, 0.78); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; font-weight: 800; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.g-cell .lock-pill { font-size: 0.65rem; padding: 2px 8px; }
.art-locked .ph-svg rect:first-of-type { opacity: 0.3; }
.art-locked .ph-svg .sil * { fill: #3d2e4f !important; }
.art-q { position: absolute; top: 38%; left: 0; right: 0; text-align: center; font-size: 3rem; font-weight: 900; color: rgba(255, 255, 255, 0.85); }
.pheart { position: absolute; bottom: -20px; color: rgba(255, 255, 255, 0.85); animation: rise linear infinite; pointer-events: none; }

/* side */
.side h3 { margin-top: 0; }
.heroine-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.hcard { display: flex; gap: 10px; align-items: center; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 8px 10px; width: 100%; }
.hcard.active { border-color: var(--hc); box-shadow: 0 0 0 3px var(--hc2); }
.hcard.locked { opacity: 0.55; cursor: default; filter: grayscale(0.6); }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; color: #fff; background: linear-gradient(180deg, var(--hc2), var(--hc)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1); }
.hc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hc-text small { font-size: 0.74rem; }
.hc-tier { color: var(--purple-d) !important; font-weight: 700; }
.affection-box { background: #fff; border-radius: 16px; padding: 12px; border: 2px solid var(--line); }
.affection-box h3 { margin: 0 0 4px; }
.bio { margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); }
.dots { display: flex; gap: 6px; margin-bottom: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(138, 99, 255, 0.15); }
.dot.on { background: var(--pink); box-shadow: 0 0 6px var(--pink); }
.bar { height: 14px; border-radius: 999px; background: rgba(138, 99, 255, 0.15); overflow: hidden; margin-bottom: 6px; }
.bar > div { height: 100%; background: linear-gradient(90deg, #ff9fcb, var(--pink)); border-radius: 999px; transition: width 0.3s; }
.memory-box { margin-top: 12px; font-size: 0.9rem; line-height: 1.5; }

/* modals */
.modal-root { position: fixed; inset: 0; background: rgba(60, 20, 90, 0.45); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(3px); }
.modal { position: relative; background: #fff7fc; border-radius: 24px; padding: 22px; max-width: 520px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(60, 20, 90, 0.4); border: 3px solid #fff; animation: pop 0.2s ease-out; }
.modal.wide { max-width: 860px; }
.modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: rgba(138, 99, 255, 0.12); border-radius: 50%; width: 32px; height: 32px; font-weight: 900; color: var(--purple-d); z-index: 5; }
.big { font-size: 1.6rem; font-weight: 900; color: var(--pink-d); }
.kicker { font-weight: 900; color: var(--pink-d); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }
.say { font-style: italic; font-size: 1.05rem; }
.viewer { display: flex; gap: 20px; align-items: center; }
.viewer-art { flex: none; width: min(300px, 42vw); aspect-ratio: 2 / 3; }
.viewer-cap { flex: 1; min-width: 0; }
.gallery h2 { margin-bottom: 12px; }
.g-row { margin-bottom: 16px; }
.g-row h3 small { font-weight: 400; }
.g-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.g-cell { aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; border-radius: 14px; position: relative; display: block; width: 100%; font-size: 0.7em; }
.g-cell:not(.locked):hover { transform: translateY(-3px) scale(1.02); }
.g-cell.locked { cursor: default; }
.g-cell .art-label b { font-size: 0.65rem; padding: 2px 8px; }
.g-cell .art-q { font-size: 1.8rem; }
.ach-list { display: grid; gap: 8px; margin-top: 10px; }
.ach { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: #fff; border: 2px solid var(--line); opacity: 0.6; }
.ach.got { opacity: 1; border-color: #ffd36b; background: #fffbe9; }
.ach small { display: block; }
.ach-ico { font-size: 1.4rem; }
.settings label { display: block; margin: 12px 0; font-weight: 700; }
.settings label.row { display: flex; gap: 8px; align-items: center; }
.settings select, .settings textarea, .settings input[type=range] { width: 100%; margin-top: 4px; font: inherit; border-radius: 10px; border: 2px solid var(--line); padding: 6px; }
.settings input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--pink); }

.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: #fff; border-left: 6px solid var(--pink); border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow); animation: slidein 0.3s ease-out; max-width: 300px; }
.toast.out { opacity: 0; transform: translateX(30px); transition: 0.5s; }
.toast small { color: var(--muted); }

.topnav button.icon-btn { padding: 8px 12px; font-size: 1.05rem; line-height: 1; }
.topnav button.icon-btn.active { background: linear-gradient(180deg, #ff82b8, var(--pink)); color: #fff; }

/* settings: segmented Display selector */
.seg-row { margin: 12px 0; }
.seg-label { font-weight: 700; margin-bottom: 4px; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; font-weight: 700; color: var(--purple-d); }
.seg button.active { background: var(--pink); color: #fff; border-color: var(--pink); }

/* achievement popups: bottom-right, above modals, only the cards take clicks */
.ach-popups { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; width: 340px; max-width: calc(100vw - 32px); }
.ach-pop {
  pointer-events: auto; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 12px 16px;
  border: 3px solid transparent; border-radius: 18px;
  background: linear-gradient(#fffaf0, #fff0f7) padding-box, linear-gradient(135deg, #ffd34d, #ff6fae) border-box;
  box-shadow: 0 10px 28px rgba(255, 111, 174, 0.45), 0 0 0 1px rgba(255, 211, 77, 0.5);
  /* smooth fade in (with a slight rise) and a slow, even fade out (with a slight drift down) */
  animation: achin 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition-property: opacity, transform; transition-duration: 1.8s; transition-timing-function: ease-in-out;
}
.ach-pop.out { opacity: 0; transform: translateY(10px); pointer-events: none; }
@keyframes achin { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
@keyframes achfade { 0% { opacity: 0; } 100% { opacity: 1; } }
/* narrow strip beside the heroine card: stack trophy over centered text */
.ach-popups.compact .ach-pop { flex-direction: column; text-align: center; gap: 4px; padding: 10px 10px; }
.ach-popups.compact .ach-trophy { font-size: 1.8rem; }
.ach-popups.compact .ach-head { font-size: 0.62rem; letter-spacing: 0.5px; }
.ach-popups.compact .ach-name { font-size: 0.9rem; line-height: 1.15; }
.ach-popups.compact .ach-desc { font-size: 0.74rem; line-height: 1.2; }
.ach-trophy { font-size: 2.4rem; line-height: 1; flex: none; filter: drop-shadow(0 2px 3px rgba(200, 120, 0, 0.4)); }
.ach-head { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #d9488f; }
.ach-name { font-weight: 800; font-size: 1.05rem; color: var(--purple-d); }
.ach-desc { font-size: 0.82rem; color: var(--muted); }
@keyframes achup { 0% { transform: translateY(80px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.devpanel { position: fixed; left: 8px; bottom: 8px; background: rgba(30, 10, 50, 0.9); color: #fff; padding: 8px 10px; border-radius: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; z-index: 80; font-size: 0.8rem; max-width: 95vw; }
.devpanel button { border: 0; border-radius: 8px; padding: 4px 8px; background: #a98bff; color: #fff; font-weight: 700; }
.devpanel button.danger { background: #e0405e; }
.fatal { margin: 40px auto; max-width: 620px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
code { background: #f1e9ff; padding: 2px 6px; border-radius: 6px; }

@keyframes bounce { 0% { transform: scale(1); } 35% { transform: scale(1.045, 0.96) translateY(4px); } 100% { transform: scale(1); } }
@keyframes floatup { 0% { opacity: 1; transform: translate(-50%, 0) scale(0.8); } 15% { transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(255, 255, 255, 0.8); } 50% { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12), 0 0 0 8px rgba(255, 255, 255, 0); } }
@keyframes rise { 0% { transform: translateY(0) rotate(-10deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-420px) rotate(15deg); opacity: 0; } }
@keyframes pop { 0% { transform: translateX(-50%) scale(0.85); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
.modal { --pop: 1; }
.modal { animation-name: mpop; }
@keyframes mpop { 0% { transform: scale(0.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slidein { 0% { transform: translateX(40px); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (max-width: 1023px) {
  html, body { overflow: auto; }
  #app { height: auto; min-height: 100vh; overflow: visible; }
  .layout { overflow: visible; }
  .click-area { min-height: 420px; }
  .layout { grid-template-columns: 1fr; }
  .stage { order: -1; }
  .panel { max-height: 60vh; }
}
@media (max-width: 640px) {
  .viewer { flex-direction: column; }
  .g-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) and (max-height: 680px) { .stage-hint { display: none; } }
.settings .credits { margin-top: 18px; padding-top: 10px; border-top: 2px dashed var(--line); font-size: 0.9em; }
.settings .credits h3 { margin: 0 0 6px; }
.settings .credits p { margin: 6px 0; }
.settings input[type=range] { accent-color: var(--pink); border: 0; padding: 0; }
/* in-game confirm dialog (replaces the OS confirm popup) */
.confirm-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(60, 20, 90, 0.35); }
.confirm { background: #fff7fc; border: 3px solid #fff; border-radius: 22px; padding: 20px 22px 16px; max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(60, 20, 90, 0.45); animation: mpop 0.18s ease-out; }
.confirm p { margin: 0 0 14px; font-weight: 700; line-height: 1.4; }
.confirm .btnrow { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn.danger { background: linear-gradient(180deg, #ff7a8f, #e0405e); color: #fff; border-color: transparent; }

/* ---- layout fixes (playtest): face-safe bubble, pinned affection box, one-row chips ---- */
/* reaction bubble sits low over her outfit as a caption, never over the face */
.bubble {
  top: auto; bottom: 12%; max-width: min(88%, 380px); width: max-content; padding: 7px 14px;
  font-size: clamp(0.78rem, 2.2vh, 0.98rem); line-height: 1.3; text-wrap: balance;
}
.bubble::after { top: -11px; bottom: auto; border: 10px solid transparent; border-bottom-color: #fff; border-top: 0; }
/* side panel: only the heroine list scrolls, the affection box stays in view */
.panel.side { display: flex; flex-direction: column; overflow: hidden; }
.panel.side > * { flex: none; }
.panel.side .heroine-list { flex: 1 1 auto; min-height: 96px; overflow-y: auto; padding: 4px; margin: -4px -4px 8px; gap: 6px; }
.hcard { padding: 6px 8px; }
.avatar { width: 36px; height: 36px; font-size: 1.05rem; }
.memory-box { margin-top: 10px; }
@media (max-height: 800px) {
  .hc-arch { display: none; }
  .affection-box { padding: 10px; }
  .bio { font-size: 0.8rem; margin-bottom: 6px; }
}
@media (min-width: 1024px) and (max-height: 640px) { .bio { display: none; } }
/* outfit chips: always one row; long names shorten (full name on hover), the shown outfit never does */
.outfits { flex-wrap: nowrap; width: 100%; }
.chip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; padding: 3px 10px; }
.chip.active { flex-shrink: 0; }
/* shop: feedback when a buy is not affordable */
.shop-row.deny { animation: deny 0.32s ease-out; }
.shop-row.deny .sr-cost { color: #e0405e; }
@keyframes deny { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
/* settings: export/import text with its Copy button and hint beside it */
.save-io { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 10px; }
.save-io textarea { flex: 1; min-width: 0; margin-top: 0 !important; }
.save-io-side { flex: none; width: 150px; display: flex; flex-direction: column; gap: 6px; }
.save-io-side p { margin: 0; }
.outfits { gap: 4px; }
.chip { font-size: 0.72rem; padding: 3px 9px; }
.pill { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1180px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr) 240px; gap: 10px; padding: 10px 12px; }
  .heroine-name { font-size: 1.05rem; }
  .pill { font-size: 0.72rem; padding: 1px 8px; }
}
.tab { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1180px) {
  .panel { padding: 10px; }
  .shop-row { gap: 8px; padding: 7px 8px; }
  .sr-ico { width: 36px; height: 36px; }
  .sr-owned { min-width: 22px; font-size: 1.3rem; }
  .sr-desc { font-size: 0.74rem; }
  .hcard { gap: 8px; }
}
/* very narrow strip (e.g. 1280x720): trophy + name only */
.ach-popups.tiny .ach-pop { padding: 8px 6px; border-width: 2px; border-radius: 14px; }
.ach-popups.tiny .ach-trophy { font-size: 1.5rem; }
.ach-popups.tiny .ach-head { font-size: 0.55rem; letter-spacing: 0; }
.ach-popups.tiny .ach-name { font-size: 0.8rem; }
.ach-popups.tiny .ach-desc { display: none; }

/* ================= UX pass: scale, accessibility, onboarding, unlock moments ================= */
#ui-root { display: contents; }
.ui-scaled #ui-root {
  display: block; position: relative; overflow: hidden; z-index: 1;
  width: calc(100vw / var(--ui-scale)); height: calc(100vh / var(--ui-scale));
  transform: scale(var(--ui-scale)); transform-origin: 0 0;
}
html.large-text { font-size: 112.5%; }

/* readable small text (>= 14px) and stronger contrast */
.muted { font-size: max(0.875rem, 0.85em); }
.sr-desc, .stage-hint, .hc-text small, .bio, .ach-desc, .oc-info, .toast small, .credits { font-size: 0.875rem; }
.sr-desc { color: var(--muted); }
.stage-hint { color: #5d4472; }
.sr-owned { color: rgba(106, 69, 224, 0.6); }
.pill { font-size: 0.8125rem; }
.badge { font-size: 0.8125rem; }

/* touch / controller sized targets */
.topnav button, .btn, .tab, .amounts button, .seg button, .chip { min-height: 40px; }
.chip { display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: visible; font-size: 0.8125rem; padding: 4px 9px; }
.chip-t { min-width: 2.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close { width: 40px; height: 40px; font-size: 1.1rem; }
.hcard { min-height: 46px; position: relative; }
.oc-tile { min-width: 44px; min-height: 44px; }
.settings label.row { min-height: 40px; }
.settings input[type=checkbox] { width: 22px; height: 22px; }
.settings select { min-height: 40px; }
.settings input[type=range] { min-height: 32px; }

/* focus ring: keyboard and gamepad. Dark ring with a white halo so it reads on pink, white and photos */
button:focus-visible, [tabindex]:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible,
.nav-mode :focus:not([tabindex="-1"]):not(body) {
  outline: 4px solid #2d1b5e; outline-offset: 2px; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.95);
}
.modal:focus, .modal:focus-visible { outline: none; box-shadow: 0 20px 60px rgba(60, 20, 90, 0.4); }
.click-area:focus-visible, .nav-mode .click-area:focus { outline-offset: -6px; box-shadow: none; border-radius: 18px; }

/* idle life for the stage sprite: breathing + slow sway on the wrapper, so the click squash on the image still plays */
.stage-art .art-inner { transform-origin: 50% 97%; animation: breathe 4.6s ease-in-out infinite, sway 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.002 1.007; } }
@keyframes sway { 0%, 100% { rotate: -0.25deg; } 50% { rotate: 0.25deg; } }

/* reduce motion (setting or OS preference) */
.reduce-motion .stage-art .art-inner, .reduce-motion .heart-ico, .reduce-motion .heart-img, .reduce-motion .topnav button.accent.ready,
.reduce-motion .tut-hint, .reduce-motion .tut-target, .reduce-motion .dot-new, .reduce-motion .intro-art-wrap, .reduce-motion .intro-art .art-inner,
.reduce-motion .viewer-art.reveal .art-inner, .reduce-motion .stage-art.bounce .art-img, .reduce-motion .stage-art.bounce .ph-svg { animation: none !important; }
.reduce-motion .pheart { display: none; }
.reduce-motion .modal, .reduce-motion .confirm, .reduce-motion .bubble, .reduce-motion .toast { animation-duration: 0.01ms !important; }
/* reduce motion: keep the achievement fades, drop the movement */
.reduce-motion .ach-pop { animation-name: achfade !important; }
.reduce-motion .ach-pop.out { transform: none !important; }
.reduce-motion * { transition-duration: 0.01ms !important; }
.reduce-motion .floater { animation-duration: 0.5s; }

/* NEW markers and dots */
.new-tag { font-style: normal; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.5px; color: #fff; background: linear-gradient(180deg, #ff82b8, #e03e86); border-radius: 999px; padding: 1px 7px; line-height: 1.35; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); pointer-events: none; }
.new-tag.corner { position: absolute; top: -7px; right: -5px; z-index: 6; }
.g-cell .new-tag.corner { top: 8px; right: 8px; }
.hcard .new-tag.corner { top: -3px; right: 8px; }
.new-tag.inline { margin-left: 4px; vertical-align: middle; }
.dot-new { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #ffd23f; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--pink); margin-left: 5px; vertical-align: middle; animation: beat 1.2s infinite; }

/* shop empty state */
.shop-row.mystery.placeholder { filter: none; opacity: 1; cursor: default; border-style: dashed; background: rgba(255, 255, 255, 0.75); }
.shop-row.mystery.placeholder .sr-name { color: var(--purple-d); }
.shop-row.mystery.placeholder .sr-cost { color: var(--pink-d); }

/* next heroine progress */
.next-heroine { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px 10px 8px; margin-bottom: 8px; font-size: 0.875rem; line-height: 1.25; }
.nh-sub { color: var(--muted); }
.bar.thin { height: 8px; margin: 5px 0 0; }

/* shop-heroine teasers (dark silhouette) */
.teasers { display: grid; gap: 8px; margin: 0 0 12px; }
.teaser-head { margin: 14px 0 8px; }
.teaser { display: flex; gap: 12px; align-items: center; background: #fff; border: 2px dashed var(--line); border-radius: 16px; padding: 8px 12px; }
.teaser-art, .teaser-art.art { flex: none; width: 52px; aspect-ratio: 2 / 3; background: none; border: 0; box-shadow: none; overflow: visible; filter: brightness(0) drop-shadow(0 0 6px var(--hc)); opacity: 0.85; }
.teaser-art .ph-svg > rect { display: none; }
.teaser-text b { display: block; color: var(--purple-d); }
.teaser-text span { color: var(--muted); font-size: 0.875rem; }

/* new outfit reveal: short zoom + flash */
.viewer-art.reveal .art-inner { animation: revealZoom 0.75s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(circle at 50% 45%, #fff, #ffd1e8 55%, rgba(255, 209, 232, 0)); animation: flashOut 0.9s ease-out forwards; }
@keyframes revealZoom { 0% { transform: scale(1.2); filter: brightness(2.6); } 55% { filter: brightness(1.25); } 100% { transform: none; filter: none; } }
@keyframes flashOut { 0% { opacity: 1; } 100% { opacity: 0; } }

/* full-screen heroine introduction */
.modal-root.full { padding: 0; background: #1e0f33; backdrop-filter: none; }
.modal.full { max-width: none; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; padding: 0; background: transparent; overflow: hidden; box-shadow: none; animation: introFade 0.5s ease-out; }
.modal.full .modal-close { top: 16px; right: 16px; z-index: 10; background: rgba(255, 255, 255, 0.3); color: #fff; }
.intro-card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4vw; padding: 4vh 6vw; color: #fff; }
.intro-bg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--hc2), var(--hc)); background-size: cover; background-position: center; }
.intro-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 8, 40, 0.1) 0%, rgba(20, 8, 40, 0.72) 70%); }
.intro-art-wrap { position: relative; flex: none; height: 100%; aspect-ratio: 2 / 3; max-width: 46%; animation: introIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.intro-art, .intro-art.art { width: 100%; height: 100%; background: none; border: 0; box-shadow: none; overflow: visible; }
.intro-art .art-img { filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.55)); }
.intro-art .art-inner { animation: revealZoom 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.intro-text { position: relative; flex: 0 1 520px; min-width: 0; text-align: left; }
.intro-card .kicker { color: #ffd1e8; font-size: 0.95rem; }
.intro-name { font-size: clamp(2rem, 7vh, 3.8rem); line-height: 1.05; margin: 6px 0; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 255, 255, 0.35); }
.intro-meta { font-size: 1.1rem; opacity: 0.95; margin-bottom: 14px; }
.intro-say { font-size: clamp(1.1rem, 3.2vh, 1.6rem); font-style: italic; line-height: 1.4; min-height: 6em; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); cursor: pointer; }
.big-btn { font-size: 1.2rem; padding: 12px 30px; margin-top: 6px; }
@keyframes introIn { 0% { opacity: 0; transform: translateX(-40px) scale(0.95); } 100% { opacity: 1; transform: none; } }
@keyframes introFade { 0% { opacity: 0; } 100% { opacity: 1; } }
@media (max-width: 760px) { .intro-card { flex-direction: column; justify-content: flex-start; } .intro-art-wrap { height: 50%; } }

/* tutorial hints */
.tutorial-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.tut-hint { position: absolute; display: flex; align-items: center; gap: 12px; max-width: 320px; background: #fff; border: 3px solid var(--pink); border-radius: 16px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(224, 62, 134, 0.4); animation: tutbob 1.4s ease-in-out infinite; }
.tut-text { display: flex; flex-direction: column; line-height: 1.25; }
.tut-text b { color: var(--pink-d); font-size: 1.05rem; }
.tut-text span { color: var(--muted); font-size: 0.875rem; }
.tut-x { pointer-events: auto; flex: none; border: 2px solid var(--line); background: #fff7fc; color: var(--purple-d); border-radius: 999px; padding: 4px 12px; font-weight: 800; min-height: 40px; }
.tut-arrow { position: absolute; width: 0; height: 0; border: 11px solid transparent; }
.arrow-up .tut-arrow { top: -14px; left: var(--tip, 50%); margin-left: -11px; border-top: 0; border-bottom-color: var(--pink); }
.arrow-left .tut-arrow { left: -14px; top: var(--tip, 50%); margin-top: -11px; border-left: 0; border-right-color: var(--pink); }
.tut-target { outline: 3px solid var(--pink); outline-offset: 3px; animation: tutpulse 1.3s ease-in-out infinite; }
@keyframes tutbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.arrow-left.tut-hint { animation-name: tutbobx; }
@keyframes tutbobx { 0%, 100% { translate: 0 0; } 50% { translate: 4px 0; } }
@keyframes tutpulse { 0%, 100% { outline-color: rgba(255, 95, 162, 1); outline-offset: 3px; } 50% { outline-color: rgba(255, 95, 162, 0.3); outline-offset: 8px; } }

/* settings extras */
.controls-help { margin-top: 14px; padding-top: 10px; border-top: 2px dashed var(--line); font-size: 0.875rem; }
.controls-help h3 { margin: 0 0 6px; }
.controls-help p { margin: 4px 0; }
.g-cell:disabled { opacity: 1; cursor: default; color: inherit; }

/* achievement popups sit in the corner while a full-screen intro card is up */
.modal-root.full ~ .ach-popups { left: auto !important; right: 16px !important; bottom: 16px !important; width: 240px !important; }

/* narrow effective width (large UI scale on a 1280 screen): tighter top bar so it stays on one row */
html.compact .logo { font-size: 1.15rem; }
html.compact .topbar { padding: 6px 12px; gap: 8px; }
html.compact .topnav { gap: 5px; }
html.compact .topnav button { padding: 6px 10px; font-size: 0.9rem; }

/* achievements: hidden ones stay a mystery until earned; burst summary popup */
.ach.secret { border-style: dashed; background: rgba(255, 255, 255, 0.6); }
.ach.secret .ach-ico { filter: grayscale(0.4); }
.ach-pop.summary .ach-name { font-size: 1em; overflow-wrap: anywhere; }
.sem-bonus, .sem-fresh { margin: 8px 0; }
.sem-fresh { background: #eaf6ff; border: 2px solid #9bd6ff; border-radius: 12px; padding: 6px 10px; }

/* heroine cards keep their natural height (the list scrolls) instead of squashing and overlapping text */
.heroine-list > .hcard { flex: none; }

/* ---------- demo build ---------- */
.demo-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fff; color: #d6336c; font-size: 0.6em; font-weight: 800; vertical-align: middle; letter-spacing: 1px; }
.hcard.fullgame { opacity: 0.8; cursor: default; background: linear-gradient(135deg, #fff, #ffeaf4); border-style: dashed; }
/* round face portrait (art/<id>/face.png); letter fallback if the image is missing */
.avatar.has-face { padding: 0; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--hc), 0 2px 6px rgba(0, 0, 0, 0.18); }
.avatar-face { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; pointer-events: none; }
.avatar.no-face::after { content: attr(data-letter); }
.hcard.fullgame .avatar { background: #ffd6e8; color: #d6336c; }
.g-fullgame { margin: 14px 0 4px; padding: 16px; border: 2px dashed var(--line); border-radius: 16px; text-align: center; background: #fff7fb; }
.g-fullgame b { display: block; font-size: 1.05em; margin-bottom: 4px; }
.demo-end { text-align: center; max-width: 520px; margin: 0 auto; }
.demo-end h2 { margin: 4px 0 10px; }
.demo-end .de-heart { font-size: 3rem; color: #ff5fa2; line-height: 1; }
.demo-end .de-cta { margin-top: 14px; font-size: 1.05em; }
.demo-end .btnrow { justify-content: center; margin-top: 12px; }
.demo-end .de-studio { margin-top: 14px; font-size: 0.8em; }
.settings .about { margin-top: 18px; padding-top: 10px; border-top: 2px dashed var(--line); font-size: 0.9em; }
.settings .about h3 { margin: 0 0 6px; }
.settings .about p { margin: 4px 0; }
/* free web version: 18+ notice before the game loads, and the "Full game" button */
.age-gate { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(40, 14, 52, 0.82); backdrop-filter: blur(6px); }
.age-card { max-width: 440px; padding: 26px 24px; border-radius: var(--radius); background: #fff; text-align: center; box-shadow: var(--shadow); }
.age-card h2 { margin: 4px 0 10px; }
.age-card .de-heart { font-size: 3rem; color: var(--pink); line-height: 1; }
.age-card .btnrow { justify-content: center; margin-top: 14px; }
.topnav .fullgame-btn { color: var(--pink-d); font-weight: 800; }
.topnav .home-btn { background: rgba(255, 255, 255, 0.55); color: var(--purple-d); }

/* Banner ad (free web version only, src/ads.js) */
.ad-bar { flex: none; position: relative; display: flex; justify-content: center; align-items: center; padding: 4px 8px 6px; }
.ad-bar iframe { display: block; max-width: 100%; border-radius: 6px; background: rgba(255, 255, 255, 0.5); }
.ad-label { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 0.7rem; font-weight: 700; color: var(--muted); opacity: 0.8; }
@media (max-width: 1023px) { .ad-label { position: static; transform: none; margin-right: 6px; } }
/* Until the ad page reports a rendered ad: loads off-screen, takes no space. */
.ad-bar.pending { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; padding: 0; }
