/* Display face: Elgharib "Hayyakum Allah" Taweel (SIL Open Font License) */
@font-face {
  font-family: 'Hayyakum';
  src: url('fonts/hayyakum.woff') format('woff'), url('fonts/hayyakum.ttf') format('truetype');
  font-weight: 400 700; font-display: swap;
}
/* ===== Base ===== */
:root {
  --brand: #6B3F24;
  --ink: #1d1a17;
  --muted: #7a716a;
  --bg: #f6f2ee;
  --card: #ffffff;
  --line: #e8e0d8;
  --ok: #1f8f55;
  --warn: #c2410c;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Hayyakum', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
h2 { font-size: 1.25rem; }
a { color: var(--brand); }
code { background: #f1ebe5; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--brand); color: #fff; border: 0; border-radius: 12px;
  padding: .7em 1.2em; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.big { font-size: 1.15rem; padding: .9em 1.4em; width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn.ok { background: var(--ok); }
.btn.white { background: #fff; color: var(--brand); }
.btn.small-btn { padding: .4em .8em; font-size: .9rem; border-radius: 10px; }
.btn.icon { padding: .5em .8em; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 50% { box-shadow: 0 0 0 14px transparent; } }

/* ===== Cards, forms, flash ===== */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(60,30,10,.06); margin-bottom: 16px; }
.card.narrow { max-width: 440px; width: 100%; }
.form { display: grid; gap: 12px; }
.form h3 { margin: 10px 0 0; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form label.check { display: flex; align-items: center; gap: 8px; }
input, select, textarea {
  font: inherit; padding: .65em .8em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); }
input[type=color] { padding: 2px; height: 44px; }
input[type=checkbox] { width: auto; }
.flash { padding: 12px 16px; border-radius: 12px; margin: 12px auto; max-width: 1200px; background: #e7f6ee; color: #11603a; font-weight: 500; }
.flash.err { background: #fdecea; color: #9b1c1c; }
.pill { display: inline-block; background: #f1ebe5; color: var(--brand); border-radius: 999px; padding: 0 10px; font-size: .85rem; font-weight: 700; }
.badge { display: inline-block; border-radius: 8px; padding: 2px 8px; font-size: .85rem; background: #eef1f5; color: #334; }
.badge.ok { background: #e2f5ea; color: #11603a; }
.badge.warn { background: #fff1e6; color: var(--warn); }
.badge.ring { background: #fff6d6; color: #8a5a00; animation: blink 1s infinite; }
.badge.muted { background: #f3f1ef; color: var(--muted); }
@keyframes blink { 50% { opacity: .45; } }

.center-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.logo-word { color: var(--brand); font-weight: 800; letter-spacing: -.5px; }

/* ===== Staff layout ===== */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.topbar .brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 10px; font-weight: 500; }
.topbar nav a.on { background: var(--brand); color: #fff; }
.topbar nav a.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-form { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: end; }
.grid-form .span2 { grid-column: span 2; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } .grid-form .span2 { grid-column: auto; } }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.tbl th, .tbl td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: .85rem; color: var(--muted); font-weight: 500; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline select, form.inline input { width: auto; padding: .35em .5em; }
.inline-details { display: inline-block; }
.inline-details summary { list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] form { margin-top: 6px; }
.logo-prev { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kpi { display: grid; text-align: center; }
.kpi span { font-size: 2rem; font-weight: 800; color: var(--brand); }
.kpi small { color: var(--muted); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 160px; direction: ltr; }
.hbar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.hbar i { display: block; width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.hbar small { font-size: .7rem; color: var(--muted); }
.fb { padding: 8px 0; border-bottom: 1px solid var(--line); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

/* ===== Cashier ===== */
.cashier-top { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.add-form { display: flex; gap: 8px; flex: 1; min-width: 280px; max-width: 520px; }
.add-form input { font-size: 1.3rem; font-weight: 700; }
.add-form .btn { white-space: nowrap; }
.stats { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.stats div { display: grid; text-align: center; }
.stats span { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.stats small { color: var(--muted); font-size: .8rem; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } }
.col h2 { display: flex; align-items: center; gap: 8px; }
.cards { display: grid; gap: 10px; }
.ocard { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num meta" "act act"; gap: 8px 14px; background: #fff; border-radius: 14px; padding: 14px; border-inline-start: 6px solid #d9cfc5; box-shadow: 0 2px 10px rgba(60,30,10,.06); }
.ocard.ready { border-inline-start-color: var(--ok); }
.onum { grid-area: num; font-size: 2.2rem; font-weight: 800; line-height: 1; min-width: 70px; align-self: center; }
.ometa { grid-area: meta; display: grid; gap: 4px; align-content: center; }
.oact { grid-area: act; display: flex; gap: 8px; flex-wrap: wrap; }
.big-act { flex: 1; font-size: 1.05rem; }
.empty { padding: 24px; text-align: center; color: var(--muted); background: #fff; border-radius: 14px; border: 2px dashed var(--line); }
.help { margin-top: 24px; }

/* ===== Customer: the receipt ticket ===== */
/* The page wears the cafe's own color; the order sits on a paper ticket like the receipt in their hand. */
body.customer {
  --paper: #fffdf9;
  --paper-ink: #2b221d;
  --paper-mute: #8a7d73;
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(130% 70% at 50% -10%, color-mix(in srgb, var(--brand) 78%, #fff) 0%, transparent 60%),
    var(--brand);
  color: var(--on-brand);
}
.cx { max-width: 440px; margin: 0 auto; padding: 28px 20px 8px; }
.cx-brand { text-align: center; margin-bottom: 22px; }
.cx-brand img { width: 76px; height: 76px; border-radius: 22px; object-fit: cover; display: block; margin: 0 auto 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cx-brand h1 { font-family: 'Hayyakum', 'IBM Plex Sans Arabic', sans-serif; font-weight: 600; font-size: 1.7rem; margin: 0; letter-spacing: 0; }
.cx-brand p { margin: 6px 0 0; opacity: .8; }
.cx-brand.compact { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.cx-brand.compact img { width: 40px; height: 40px; border-radius: 12px; margin: 0; box-shadow: none; }
.cx-brand.compact h1 { font-size: 1.15rem; }

.ticket {
  position: relative; background: var(--paper); color: var(--paper-ink);
  border-radius: 20px; padding: 26px 24px 22px; text-align: center;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.04);
  margin-bottom: 18px;
}
.ticket-label { color: var(--paper-mute); font-size: .95rem; }
.ticket-num {
  font-family: 'Hayyakum', 'IBM Plex Sans Arabic', sans-serif; font-weight: 700;
  font-size: clamp(5rem, 30vw, 7.5rem); line-height: 1; color: var(--accent);
  margin: 10px 0 4px; font-variant-numeric: tabular-nums;
}
/* Tear line with punched notches, like a receipt stub */
.perf { position: relative; height: 0; border-top: 2px dashed #e6ddd3; margin: 20px -24px; }
.perf::before, .perf::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); }
.perf::before { right: -11px; } .perf::after { left: -11px; }
.ticket-status { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.3rem; font-weight: 600; }
.ticket-sub { color: var(--paper-mute); margin-top: 4px; min-height: 1.5em; }
.ticket-note { margin: 0; font-size: 1.05rem; }
.ticket-error { color: #b42318; margin: 10px 0 0; font-weight: 500; }
.ticket-foot { color: var(--paper-mute); font-size: .85rem; margin: 12px 0 0; }

.brew-dot { width: 12px; height: 12px; border-radius: 50%; background: #d9a441; box-shadow: 0 0 0 0 rgba(217,164,65,.5); animation: brew 2.4s ease-in-out infinite; }
.brew-dot.is-ready { background: #1f9d5c; animation: none; box-shadow: 0 0 0 5px rgba(31,157,92,.2); }
.brew-dot.is-acked, .brew-dot.is-done { background: #1f9d5c; animation: none; }
.brew-dot.is-cancelled { background: #b42318; animation: none; }
@keyframes brew { 50% { box-shadow: 0 0 0 9px rgba(217,164,65,0); transform: scale(.85); } }

.entry-ticket { display: grid; gap: 4px; }
.num-input {
  font-family: 'Hayyakum', 'IBM Plex Sans Arabic', sans-serif; font-weight: 700;
  font-size: 3.6rem; text-align: center; color: var(--accent); background: transparent;
  border: 0; border-bottom: 2px solid #e6ddd3; border-radius: 0; padding: 6px 0 2px; margin-top: 6px;
}
.num-input::placeholder { color: #e2d8cd; }
.num-input:focus { border-bottom-color: var(--accent); outline: none; }

.btn-brand, .btn-light {
  display: flex; align-items: center; justify-content: center; width: 100%;
  font: inherit; font-weight: 700; font-size: 1.1rem; border: 0; border-radius: 14px;
  padding: 16px 18px; cursor: pointer; text-decoration: none; transition: transform .1s;
}
.btn-brand { background: var(--accent); color: var(--on-accent); }
.btn-light { background: var(--on-brand); color: var(--brand); }
.btn-brand:active, .btn-light:active { transform: scale(.98); }
.btn-light.big { font-size: 1.35rem; padding: 18px; }
:is(.btn-brand, .btn-light, .link-btn):focus-visible { outline: 3px solid color-mix(in srgb, var(--on-brand) 70%, transparent); outline-offset: 3px; }

.alert-cta { text-align: center; margin-bottom: 18px; }
.alert-cta p { margin: 10px 0 0; opacity: .8; font-size: .92rem; }
.alert-on { border: 1px solid color-mix(in srgb, var(--on-brand) 28%, transparent); border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; }
.alert-on p { margin: 0 0 6px; }
.link-btn { background: none; border: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 0; cursor: pointer; opacity: .9; }

.rate .stars { margin: 10px 0 4px; }
.stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; direction: ltr; }
.stars button { font-size: 2.5rem; background: none; border: 0; color: #e4dad0; cursor: pointer; padding: 0 2px; line-height: 1; }
.stars button.on { color: #e3a325; }
.fb-box { display: grid; gap: 10px; margin-top: 10px; }
.fb-box textarea { background: #fff; }

.cx-extras { border-top: 1px solid color-mix(in srgb, var(--on-brand) 22%, transparent); margin-top: 6px; }
.extra-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid color-mix(in srgb, var(--on-brand) 22%, transparent); color: inherit; text-decoration: none; }
.extra-row span { opacity: .75; }
.cx-powered { text-align: center; font-size: .78rem; padding: 18px; color: var(--on-brand); opacity: .55; }

.ready-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; text-align: center;
  background: var(--brand); color: var(--on-brand); animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { background: color-mix(in srgb, var(--brand) 62%, #000); } }
.ready-inner { display: grid; gap: 12px; justify-items: center; width: 100%; max-width: 400px; }
.ready-title { font-family: 'Hayyakum', 'IBM Plex Sans Arabic', sans-serif; font-size: 2.4rem; font-weight: 600; }
.ready-num { font-family: 'Hayyakum', 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; font-size: clamp(7rem, 45vw, 10rem); line-height: 1; }
.ready-sub { font-size: 1.15rem; opacity: .9; margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .ready-overlay, .brew-dot { animation: none; } }

/* ===== TV ===== */
body.tv { background: #111; color: #fff; overflow: hidden; }
.tv-wrap { height: 100vh; display: grid; grid-template-rows: auto 1fr; padding: 2vh 3vw; }
.tv-head { display: flex; align-items: center; gap: 2vw; }
.tv-head img { width: 9vh; height: 9vh; border-radius: 2vh; object-fit: cover; }
.tv-head h1 { font-size: 5vh; margin: 0; flex: 1; }
.tv-qr { display: grid; justify-items: center; gap: 4px; background: #fff; color: #111; padding: 8px; border-radius: 12px; }
.tv-qr svg { width: 14vh; height: 14vh; }
.tv-qr small { font-size: 1.6vh; }
.tv-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3vw; margin-top: 3vh; min-height: 0; }
.tv-col { background: #1d1d1d; border-radius: 2vh; padding: 2vh 2vw; overflow: hidden; }
.tv-col h2 { font-size: 4vh; color: #bbb; }
.tv-col.ready { background: var(--brand); }
.tv-col.ready h2 { color: #fff; }
.tv-nums { display: flex; flex-wrap: wrap; gap: 1.5vh 2vw; direction: ltr; justify-content: flex-end; }
.tv-nums span { font-size: 7vh; font-weight: 800; min-width: 2.2em; text-align: center; }
.tv-col:not(.ready) .tv-nums span { font-size: 5vh; color: #ccc; }
.tv-nums .fresh { animation: pop .6s; }
@keyframes pop { from { transform: scale(1.5); } }
.tv-sound { position: fixed; bottom: 16px; left: 16px; background: #333; color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; cursor: pointer; }

/* ===== Poster ===== */
.poster { background: #fff; max-width: 148mm; margin: 0 auto; padding: 12mm; text-align: center; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.08); border-top: 14px solid var(--brand); }
.poster-logo { width: 90px; height: 90px; border-radius: 20px; object-fit: cover; }
.poster h1 { font-size: 2rem; margin: 10px 0; }
.poster-big { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.poster-qr svg { width: 70mm; height: 70mm; }
.poster-steps { text-align: right; font-size: 1.15rem; display: inline-block; margin: 8px auto; }
.poster-foot { color: var(--muted); }
@media print {
  .no-print, .topbar, .flash { display: none !important; }
  body { background: #fff; }
  .wrap { padding: 0; }
  .poster { box-shadow: none; border-radius: 0; }
  @page { size: A5; margin: 0; }
}

/* ===== Landing ===== */
body.landing { background: linear-gradient(180deg, #f3e7dc, var(--bg) 420px); }
.land-top { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 20px; font-size: 1.4rem; }
.land { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }
.hero { text-align: center; padding: 40px 0; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.hero h1 span { color: var(--brand); }
.hero p { font-size: 1.15rem; color: #4a423c; }
.hero .btn.big { width: auto; margin-top: 10px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* ===== Cashier: dark tablet board ===== */
body.cashier-dark {
  --bd-bg: #1a1d22; --bd-surface: #23272e; --bd-raise: #2c313a; --bd-line: #353b45;
  --bd-text: #eef0f3; --bd-mute: #9aa3af;
  --st-wait: #e9b44c; --st-ready: #34c27a; --st-warn: #f2865e;
  background: var(--bd-bg); color: var(--bd-text);
}
.cashier-dark .topbar { background: var(--bd-surface); border-bottom-color: var(--bd-line); }
.cashier-dark .topbar nav a { color: var(--bd-text); }
.cashier-dark .topbar nav a.muted { color: var(--bd-mute); }
.cashier-dark .muted { color: var(--bd-mute); }
.cashier-dark .wrap { max-width: 1400px; }
.cashier-dark .add-form input { background: var(--bd-surface); border-color: var(--bd-line); color: var(--bd-text); font-size: 1.6rem; padding: .5em .8em; }
.cashier-dark .add-form input::placeholder { color: #6b7380; font-weight: 500; font-size: 1.1rem; }
.cashier-dark .add-form input:focus { border-color: var(--st-ready); }
.cashier-dark .add-form .btn { background: var(--bd-raise); color: var(--bd-text); font-size: 1.05rem; padding: 0 1.3em; }
.cashier-dark .stats span { color: var(--bd-text); font-variant-numeric: tabular-nums; }
.cashier-dark .stats small { color: var(--bd-mute); }
.cashier-dark .btn.ghost { color: var(--bd-text); box-shadow: inset 0 0 0 1.5px var(--bd-line); }
.cashier-dark .col h2 { font-size: 1.1rem; font-weight: 600; color: var(--bd-mute); }
.cashier-dark .col h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--st-wait); }
.cashier-dark .col.ready-col h2::before { background: var(--st-ready); }
.cashier-dark .pill { background: var(--bd-raise); color: var(--bd-text); }
.cashier-dark .ocard { background: var(--bd-surface); border-inline-start: 6px solid var(--st-wait); box-shadow: none; padding: 16px 18px; gap: 10px 18px; }
.cashier-dark .ocard.ready { border-inline-start-color: var(--st-ready); }
.cashier-dark .ocard.needs-voice { border-inline-start-color: var(--st-warn); }
.cashier-dark .onum { font-family: 'Hayyakum', 'IBM Plex Sans Arabic', sans-serif; font-size: 3rem; font-variant-numeric: tabular-nums; min-width: 90px; }
.cashier-dark .ometa .small { color: var(--bd-mute); font-size: .9rem; }
.cashier-dark .badge { background: var(--bd-raise); color: var(--bd-text); font-size: .9rem; padding: 4px 10px; }
.cashier-dark .badge.ok { background: rgba(52,194,122,.16); color: #7fe0ad; }
.cashier-dark .badge.warn { background: rgba(242,134,94,.16); color: #ffb08f; }
.cashier-dark .badge.ring { background: rgba(233,180,76,.16); color: #f5cf7d; }
.cashier-dark .badge.muted { background: transparent; color: var(--bd-mute); padding-inline: 0; }
.cashier-dark .btn.ok { background: var(--st-ready); color: #0f2a1c; }
.cashier-dark .ocard.ready .big-act { background: var(--bd-text); color: var(--bd-bg); }
.cashier-dark .big-act { min-height: 56px; font-size: 1.15rem; border-radius: 12px; }
.cashier-dark .oact .btn { min-height: 56px; border-radius: 12px; }
.cashier-dark .empty { background: transparent; border-color: var(--bd-line); color: var(--bd-mute); }
.cashier-dark .flash.err { background: rgba(242,134,94,.15); color: #ffb08f; }
.cashier-dark .help { color: var(--bd-mute); }
.cashier-dark :is(.btn, input):focus-visible { outline: 3px solid var(--st-ready); outline-offset: 2px; }

/* Language switch */
.lang-btn { position: absolute; top: 14px; inset-inline-end: 16px; font: 500 .85rem 'IBM Plex Sans Arabic', system-ui, sans-serif; color: var(--on-brand); text-decoration: none; border: 1px solid color-mix(in srgb, var(--on-brand) 35%, transparent); border-radius: 999px; padding: 5px 12px; }
.cx { position: relative; padding-top: 56px; }
.topbar .lang-link { border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px; font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; }
html[lang="en"] body { font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* "Keep this page open" notice: the one thing customers must not miss */
.keep-open { display: flex; gap: 12px; align-items: flex-start; background: #fff4d6; color: #5a3d00; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; text-align: start; }
.keep-open svg { flex: none; margin-top: 2px; }
.keep-open strong { display: block; font-size: 1rem; line-height: 1.5; }
.keep-open span { display: block; font-size: .88rem; opacity: .85; margin-top: 2px; }
.came-back { position: fixed; inset-inline: 16px; bottom: 18px; z-index: 40; background: #fff4d6; color: #5a3d00; border-radius: 14px; padding: 12px 16px; text-align: center; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); }

.poster-keep { display: flex; gap: 12px; align-items: center; text-align: start; background: #fff4d6; color: #5a3d00; border: 2px solid #f0d58a; border-radius: 14px; padding: 12px 16px; margin: 14px auto 6px; max-width: 115mm; }
.poster-keep svg { flex: none; }
.poster-keep strong { display: block; font-size: 1.15rem; }
.poster-keep span { display: block; font-size: .95rem; margin-top: 2px; }
@media print { .poster-keep { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

.sound-hint { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(233,180,76,.14); color: #f5cf7d; font-weight: 600; text-align: center; }
.sound-hint[hidden] { display: none; }
