/* Tiny Tycoon app layout. Cards sit at the right or the bottom so the chosen shop (screen centre) stays visible. */
@font-face { font-family: 'Bangers'; src: url('assets/fonts/Bangers-Regular.woff2') format('woff2'); font-display: swap; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #9fd3e6; color: var(--ink);
  font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-tap-highlight-color: transparent; user-select: none; }
#world { position: fixed; inset: 0; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * > *, #hud > * { pointer-events: auto; }
#screen { position: absolute; inset: 0; pointer-events: none; }
#screen > * { pointer-events: auto; }
.pos-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 90vw); }
.pos-bottom { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(980px, 94vw); display: flex; flex-direction: column; gap: 12px; }
.pos-right { position: absolute; right: 18px; top: 96px; bottom: 18px; width: min(400px, 40vw); display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.pos-right > .tt-card { overflow-y: auto; max-height: 100%; box-sizing: border-box; flex: 0 1 auto; }
body[data-screen=title] .pos-center { top: 58%; }
.title-card { text-align: center; padding: 28px 30px 30px; }
.logo { font-family: 'Bangers', ui-rounded, system-ui, sans-serif; font-size: 76px; line-height: .95; color: var(--accent); letter-spacing: .03em; text-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.sub { font-size: 21px; margin: 10px 0 22px; color: var(--soft); }
.title-card .tt-btn { font-size: 24px; min-height: 68px; padding: 0 40px; }
.muted { color: var(--soft); margin: 0 0 6px; }
.hint { color: var(--soft); font-size: 16px; margin: 12px 0 8px; }
.faces { display: flex; gap: 12px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 12px; }
.kv b { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.row.end { justify-content: flex-end; }
.row .tt-primary { flex: 1; }
.lbl { display: block; font-weight: 800; font-size: 16px; color: var(--soft); margin-bottom: 6px; }
.name-in { width: 100%; box-sizing: border-box; min-height: 56px; font-family: inherit; font-weight: 800; font-size: 22px; line-height: 1; border: 3px solid var(--line); border-radius: 14px; padding: 0 14px; user-select: text; }
.name-in:focus { outline: none; border-color: var(--accent); }
.defaults { list-style: none; padding: 0; margin: 14px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.defaults li { display: flex; align-items: center; gap: 12px; }
.defaults li b { margin-left: auto; }
/* Arrow glyphs drawn with CSS (no emoji, no icon font). */
.i-prev, .i-next, .i-up, .i-down { display: inline-block; width: 14px; height: 14px; border: solid currentColor; border-width: 0 4px 4px 0; }
.i-prev { transform: rotate(135deg); margin-left: 6px; } .i-next { transform: rotate(-45deg); margin-right: 6px; }
.i-down { transform: rotate(45deg); width: 10px; height: 10px; border-width: 0 3px 3px 0; margin-top: -4px; } .i-up { transform: rotate(-135deg); width: 10px; height: 10px; border-width: 0 3px 3px 0; margin-top: 4px; }
.i-pause { width: 16px; height: 20px; border-left: 6px solid currentColor; border-right: 6px solid currentColor; box-sizing: border-box; }
/* HUD */
#hud { position: absolute; inset: 0 0 auto; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; pointer-events: none; }
#hud[hidden] { display: none; }
.hud-left { justify-self: start; } .hud-mid { justify-self: center; } .hud-right { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-right: 0; }
.hud-left, .hud-mid, .hud-right { pointer-events: auto; }
.hud-clock { background: var(--paper); border-radius: 999px; box-shadow: var(--shadow); padding: 6px 18px; display: flex; align-items: center; gap: 12px; font-size: 26px; min-height: 56px; box-sizing: border-box; }
.hud-day { font-size: 15px; font-weight: 800; color: var(--soft); text-transform: uppercase; }
.hud-sun { width: 60px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #ffd66b calc(var(--p) * 100%), #e6e0d2 0); }
.hud-speed { display: flex; gap: 8px; }
.hud-speed .tt-btn { padding: 0 18px; font-size: 18px; white-space: nowrap; }
.hud-speed .is-on { background: var(--accent); color: #fff; }
.hud-today { position: fixed; left: 18px; bottom: 18px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 16px; display: flex; gap: 18px; align-items: center; font-size: 18px; pointer-events: auto; }
.hud-today > span { display: inline-flex; align-items: center; gap: 6px; }
.hud-today b { font-size: 24px; }
.hud-today-l { font-weight: 900; color: var(--accent); text-transform: uppercase; font-size: 14px; }
[hidden] { display: none !important; }
#toasts { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
body[data-screen=day] #toasts { top: auto; bottom: 96px; }
body[data-screen=plan] #toasts, body[data-screen=report] #toasts, body[data-screen=spot2] #toasts { left: calc((100% - min(400px, 40vw)) / 2); }
#corner { position: absolute; right: 18px; top: 18px; display: flex; gap: 8px; pointer-events: auto; }
body[data-screen=day] #corner { top: auto; bottom: 18px; }
#corner .tt-btn { font-size: 15px; padding: 0 14px; }
#corner .tt-btn:has(.i-sound) { padding: 0; width: 56px; }
body:not([data-screen=day]) #hud { padding-right: 190px; } /* the corner buttons sit top right outside the day */
.i-sound { position: relative; width: 24px; height: 22px; } .i-sound::before { content: ''; position: absolute; inset: 0; background: currentColor; clip-path: polygon(0 32%, 32% 32%, 72% 0, 72% 100%, 32% 68%, 0 68%); }
.i-sound.is-off::after { content: ''; position: absolute; left: 10px; top: -3px; width: 4px; height: 28px; background: var(--bad); border-radius: 2px; transform: rotate(-45deg); }
/* Report */
.rep-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rep-head h2 { margin: 0; font-size: 24px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 8px; }
.tile { background: #f7f2e7; border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.tile span { font-size: 15px; font-weight: 800; color: var(--soft); }
.tile b { font-size: 30px; display: flex; align-items: center; gap: 6px; }
.tile-note { font-size: 14px; font-weight: 700; color: var(--soft); line-height: 1.25; }
.pos { color: var(--good); } .neg { color: var(--bad); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 2px solid #f1ece2; color: var(--ink); }
.lines li:last-child { border-bottom: 0; }
.lines li small { display: block; color: var(--soft); font-size: 15px; }
.lines li.pos b { color: var(--good); } .lines li.neg b { color: var(--bad); }
.report h3 { font-size: 17px; color: var(--soft); margin: 12px 0 2px; }
.reason { display: flex; align-items: center; gap: 12px; margin-top: 12px; background: #fff1ee; border-radius: 14px; padding: 8px 12px; }
.reason span { display: flex; flex-direction: column; font-size: 15px; color: var(--soft); } .reason b { font-size: 19px; color: var(--ink); }
.lesson { position: relative; margin-top: 20px; background: #fff8dc; border-radius: 16px; padding: 18px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.lesson b { font-size: 22px; }
/* Chapter + planning */
.goal-line { font-size: 20px; margin: 4px 0 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #fff8dc; border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tabs .tt-btn { flex: 1; }
.plan-list { display: flex; flex-direction: column; gap: 8px; }
.plan-sec { border: 3px solid var(--line); border-radius: 16px; overflow: hidden; }
.plan-sec.is-new { border-color: var(--accent); box-shadow: inset 8px 0 0 var(--accent); }
.plan-sec.is-new .plan-name { color: var(--accent); padding-left: 6px; }
.plan-row { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px; background: #fff; border: 0; font: inherit; font-size: 19px; padding: 0 14px; cursor: pointer; color: var(--ink); text-align: left; }
/* v1.4 fit: name and value wrap to two lines (FR: "Louer ou acheter", "En location"), never an ellipsis */
.plan-row b { margin-left: auto; min-width: 0; flex: 0 1 auto; max-width: 48%; text-align: right; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.plan-name { line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.plan-name { font-weight: 800; }
.new { background: var(--accent); color: #fff; border-radius: 99px; font-size: 13px; font-weight: 900; padding: 2px 8px; text-transform: uppercase; }
.plan-body { padding: 0; }
.plan .tt-card { padding-top: 22px; }
.plan-body .tt-choices { flex-direction: column; gap: 8px; }
.plan-body .tt-choice { flex: none; padding: 12px 12px 10px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.plan-body .tt-choice-bar { inset: 0 auto 0 0; width: 8px; height: auto; }
.plan-body .tt-choice-blurb { flex-basis: 100%; font-size: 16px; }
.sup-meta { display: flex; gap: 10px; align-items: center; margin-left: auto; font-size: 16px; }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.menu-it { min-height: 84px; border: 3px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1.1; padding: 4px 2px; cursor: pointer; color: var(--soft); opacity: .6; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.menu-it.is-on { border-color: var(--accent); opacity: 1; color: var(--ink); background: #fffaf2; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.chart-box { margin: 8px 0; }
.proj-line { font-weight: 800; margin: 6px 0; }
/* Boot */
#boot { position: fixed; inset: 0; background: #bfe4f0; display: grid; place-content: center; gap: 18px; transition: opacity .5s; z-index: 10; }
#boot.is-gone { opacity: 0; pointer-events: none; }
.boot-logo { font-family: 'Bangers', system-ui, sans-serif; font-size: 72px; color: #d9412b; }
.boot-bar { width: 280px; height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: #d9412b; border-radius: 99px; animation: boot 1.2s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.boot-err { color: #a33; max-width: 60ch; }
@media (max-height: 800px) { .pos-right { top: 84px; } .tt-card { padding: 16px 18px; } .tt-card h2 { font-size: 23px; } .tt-mentor-face { width: 60px; height: 60px; } .tt-mentor-bubble { font-size: 18px; } }
.plan .row.end, .report .row { position: sticky; bottom: -20px; background: var(--paper); margin: 10px -22px -20px; padding: 12px 22px 18px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 -8px 16px -10px rgba(0, 0, 0, .15); }
@media (max-height: 800px) { .plan .row.end, .report .row { bottom: -16px; margin: 10px -18px -16px; padding: 10px 18px 14px; } }
.pos-right > .tt-card > .tt-tag { position: static; display: inline-block; margin-bottom: 6px; }
.tt-range:focus { outline: none; }
.tt-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(0, 0, 0, .12), 0 3px 8px rgba(0, 0, 0, .3); }
.spot-title { display: inline-flex; align-items: center; gap: 10px; }
.pin { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; background: #ffc933; color: var(--ink); font-size: 20px; font-weight: 900; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.near { font-weight: 800; margin: 12px 0 0; }
.plan .row.end .tt-btn { padding: 0 16px; flex: 1 0 auto; white-space: nowrap; }
.plan .row.end .tt-btn:first-child:has(.i-prev) { flex: none; }
.plan .row.end { flex-wrap: wrap; }
/* "My pizzeria" button, nudges and the live drawer (contract v1.1). The drawer sits right; the world slides left. */
.hud-left { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.shop-btn { padding: 0 20px 0 8px; font-size: 19px; }
.shop-btn.is-glow { background: #fff3c4; animation: glow 1.1s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 4px #ffc933, 0 2px 8px rgba(0, 0, 0, .15); } 50% { box-shadow: 0 0 0 8px #ffc933, 0 0 30px 10px rgba(255, 190, 30, .85); transform: scale(1.05); } }
.nudge-tip { display: flex; align-items: center; gap: 10px; max-width: 320px; min-height: 56px; background: #fff8dc; border: 0; border-radius: 18px; padding: 6px 16px 6px 8px;
  font: inherit; font-weight: 800; font-size: 18px; color: var(--ink); text-align: left; box-shadow: var(--shadow); cursor: pointer; animation: tt-in .3s ease; }
#drawer { position: absolute; right: 18px; top: 150px; bottom: 84px; width: min(400px, 40vw); display: flex; flex-direction: column; pointer-events: none; }
#drawer > .tt-card { overflow-y: auto; max-height: 100%; box-sizing: border-box; animation: drawer-in .25s ease; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(30px); } }
#world { transition: left .5s ease; left: 0; }
body.drawer-open #world, body[data-screen=report] #world, body[data-screen=report-detail] #world { left: -240px; }
body.drawer-open #toasts { left: calc((100% - min(400px, 40vw)) / 2); }
.panel .tt-mentor { margin: 0 0 10px; } .panel .tt-mentor-face { width: 56px; height: 56px; } .panel .tt-mentor-bubble { font-size: 17px; }
.panel h2 { padding-right: 60px; }
.panel > [data-step=panel-close] { position: absolute; right: 12px; top: 12px; padding: 0; }
.panel-title { display: inline-flex; align-items: center; gap: 10px; }
.i-x { position: relative; width: 20px; height: 20px; } .i-x::before, .i-x::after { content: ''; position: absolute; left: 8px; top: -2px; width: 4px; height: 24px; background: currentColor; border-radius: 2px; transform: rotate(45deg); } .i-x::after { transform: rotate(-45deg); }
.plan-row .tt-icon { margin-left: -4px; }
.when { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.when-now { background: #dff5e6; color: #17803f; } .when-tomorrow { background: #e8eefc; color: #3656b3; }
.plan-sec.is-open { border-color: var(--accent); }
.plan-sec.is-nudge { border-color: #f0b400; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 196, 40, .55); } }
.live-body { padding: 4px 14px 14px; background: #fffdf8; }
.live-body .tt-choices { flex-direction: column; gap: 8px; }
.live-body .tt-choice { flex: none; padding: 10px 12px 8px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.live-body .tt-choice-bar { inset: 0 auto 0 0; width: 8px; height: auto; }
.live-note { color: var(--soft); font-size: 17px; margin: 6px 0; display: flex; flex-direction: column; gap: 2px; }
.live-note div:first-child { color: var(--ink); font-weight: 700; }
.delta { font-weight: 900; font-size: 18px; } .delta.pos { color: var(--good); } .delta.neg { color: var(--bad); }
.rush-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rush-btn { min-height: 96px; border: 3px solid var(--line); border-radius: 16px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; cursor: pointer; color: var(--ink); padding: 6px 4px; } .rush-btn b { font-size: 22px; } .rush-btn .delta { font-size: 14px; text-align: center; line-height: 1.1; }
.rush-btn:active { transform: scale(.97); }
.cook-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .cook-row .tt-btn { font-size: 30px; width: 56px; padding: 0; }
.flyers-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .flyers-row .tt-btn { flex: 0 1 auto; white-space: nowrap; padding: 0 22px; }
.cook-n { display: inline-flex; align-items: center; gap: 6px; font-size: 26px; }
/* Evening recap: big result with a stamp, sections with icons, lost customers as bubbles. Fits 1024x768 for one shop. */
.recap.pos-right, .detail.pos-right { width: min(460px, 45vw); }
.recap .tt-card { padding-top: 16px; }
.big { position: relative; display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 8px 14px; margin: 8px 0 4px; background: #e9f8ee; overflow: hidden; }
.big.is-loss { background: #fdecea; }
.big-txt { display: flex; flex-direction: column; line-height: 1; }
.big-n { font-size: 50px; font-weight: 900; letter-spacing: -.02em; color: var(--good); font-variant-numeric: tabular-nums; }
.is-loss .big-n { color: var(--bad); }
.big-txt span { font-size: 16px; font-weight: 800; color: var(--soft); margin-top: 2px; }
.stamp { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(-12deg) scale(2.2); opacity: 0; border: 4px solid var(--good); color: var(--good); border-radius: 10px;
  padding: 4px 12px; font-weight: 900; font-size: 24px; text-transform: uppercase; letter-spacing: .06em; }
.is-loss .stamp { border-color: var(--bad); color: var(--bad); }
.stamp.is-in { opacity: .9; transform: translateY(-50%) rotate(-12deg) scale(1); transition: transform .22s cubic-bezier(.3, 1.6, .5, 1), opacity .15s; }
/* Three calm sections (contract v1.2): coloured title + total over a thin rule, small-icon sub-lines, lots of air. */
.r-secs { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 4px; }
.r-sec { --c: var(--ink); }
.r-sec.in { --c: #2f9a4f; } .r-sec.out { --c: #d2463a; } .r-sec.moves { --c: #7b7f86; }
.r-sec h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; padding: 0 2px 5px; font-size: 19px; font-weight: 900; color: var(--c); border-bottom: 2px solid var(--c); text-transform: none; letter-spacing: 0; }
.r-sec h3 b { margin-left: auto; font-size: 20px; font-variant-numeric: tabular-nums; }
.r-lines { list-style: none; margin: 0; padding: 0 2px 0 14px; }
.r-lines li { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 17px; font-weight: 700; color: #4d5058; border-radius: 10px; padding: 0 6px; margin: 0 -6px; cursor: help; outline: none; }
.r-lines li:hover, .r-lines li.is-tip, .r-lines li:focus-visible { background: #f4f1ea; }
.r-lines li .tt-icon { flex: none; }
.r-lines li .r-txt { flex: 1; min-width: 0; }
.r-lines li b { font-size: 17px; white-space: nowrap; color: var(--c); font-weight: 800; font-variant-numeric: tabular-nums; }
.r-tip { position: fixed; z-index: 60; max-width: 330px; background: #2e3138; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; padding: 9px 13px; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); pointer-events: none; }
.r-tip[hidden] { display: none; }
.r-tip.is-side::after { content: ''; position: absolute; right: -7px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right: 0; border-left-color: #2e3138; }
.r-lost { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; background: #fff1ee; border-radius: 14px; padding: 6px 12px; }
.r-lost-l { font-size: 15px; font-weight: 800; color: var(--soft); }
.r-bub { display: inline-flex; align-items: center; gap: 2px; } .r-bub b { font-size: 20px; }
.recap .lesson { margin-top: 10px; padding: 8px 14px; gap: 0 8px; flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.recap .lesson .tt-tag { position: static; font-size: 13px; padding: 2px 10px; }
.recap .lesson > span:last-child { flex-basis: 100%; } .recap .lesson b { font-size: 20px; } .recap .lesson > span:last-child { font-size: 16px; }
.report .row.end .tt-btn { flex: 1 1 auto; padding: 0 16px; white-space: nowrap; }
.report .row.end .tt-btn:has(.i-prev) { flex: none; }
.r-foot { align-items: center; }
.r-link { flex: none; min-height: 56px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 800; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 6px; }
@media (max-height: 800px) {
  .recap .tt-card { padding-top: 12px; } .recap .rep-head h2 { font-size: 21px; }
  .recap .big { padding: 4px 12px; margin: 6px 0 2px; } .big-n { font-size: 40px; }
  .r-secs { gap: 8px; margin-top: 8px; } .r-sec h3 { font-size: 17px; padding-bottom: 3px; margin-bottom: 2px; }
  .r-lines li { min-height: 29px; font-size: 16px; } .r-lines li b { font-size: 16px; }
  .r-lost { margin-top: 8px; padding: 2px 10px; } .r-bub .tt-icon { --s: 30px !important; }
  .recap .lesson { margin-top: 8px; padding: 5px 12px; }
  .recap .tt-mentor { display: none; }
}
/* Detail view */
.dt { width: 100%; border-collapse: collapse; font-size: 16px; margin-bottom: 8px; }
.dt th { font-size: 14px; color: var(--soft); font-weight: 800; text-align: right; padding: 2px 4px; } .dt th:first-child { text-align: left; }
.dt th .tt-icon { vertical-align: middle; }
.dt td { text-align: right; padding: 3px 4px; border-top: 2px solid #f1ece2; font-weight: 800; white-space: nowrap; }
.dt td.pos { color: var(--good); } .dt td.neg { color: var(--bad); }
.dt-name { text-align: left !important; display: flex; align-items: center; gap: 8px; font-weight: 700 !important; white-space: normal !important; }
.dt-name span { display: flex; flex-direction: column; line-height: 1.1; } .dt-name small { color: var(--soft); font-size: 13px; }
.dt-shops td:first-child { text-align: left; font-weight: 700; }
.tl h3 { margin: 10px 0 0; font-size: 17px; }
.tl-bar { position: relative; height: 10px; margin: 62px 50px 34px; border-radius: 99px; background: linear-gradient(90deg, #ffd66b, #ff9a5a 70%, #5b5f9a); }
.tl-end { position: absolute; top: -4px; font-size: 13px; font-weight: 800; color: var(--soft); } .tl-a { right: calc(100% + 6px); } .tl-b { left: calc(100% + 6px); }
.tl-dot { position: absolute; bottom: 4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 13px; line-height: 1.1; }
.tl-dot b { background: #fff; border-radius: 8px; padding: 0 5px; font-size: 13px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.tl-dot::after { content: ''; width: 4px; height: 8px; background: var(--ink); border-radius: 2px; }
.tl-dot.is-low { bottom: auto; top: 6px; flex-direction: column-reverse; }
.tl-bar.is-two { margin-bottom: 64px; }
.tl-t { position: absolute; top: 14px; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--soft); }
/* 1024 px and French: the chip sits under the row name, the nudge tip floats free of the HUD column, the stamp stays small. */
.row-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1 1 auto; padding: 6px 0; }
.row-name .when { font-size: 12px; padding: 1px 8px; }
@media (max-width: 1100px) { .tt-goal-text { font-size: 16px; line-height: 1.2; } .tt-goal { grid-template-columns: minmax(0, 1fr); padding: 6px 14px 8px; } .tt-goal-title { font-size: 13px; } }
.shop-btn { white-space: nowrap; }
.nudge-tip { position: absolute; left: 18px; top: 148px; width: max-content; max-width: min(360px, 34vw); }
.big-txt span { white-space: nowrap; }
.stamp { font-size: 20px; right: 10px; padding: 3px 10px; }
/* v1.3 root: progressive fit when a busy evening does not fit one screen (capabilities add lines). */
.recap.fit-1 .lesson > span:last-child { display: none; }
.recap.fit-1 .lesson { cursor: help; }
.recap.fit-2 .r-secs { gap: 8px; margin-top: 10px; } .recap.fit-2 .r-lines li { min-height: 30px; }
.recap.fit-2 .r-sec h3 { padding-bottom: 3px; margin-bottom: 2px; }
.recap.fit-3 .r-lost { display: none; }
.recap.fit-4 .r-lines li { min-height: 26px; font-size: 16px; } .recap.fit-4 .big { margin: 2px 0 0; }
.recap.fit-5 [data-step=recap-pizzas], .recap.fit-5 [data-step=recap-quest]:not(.is-done) { display: none; }
.recap.fit-6 .lesson { display: none; }
