/* Mama Loreng (Tuan Putri 2026-10-28): daily line card + mood room. Uses the arcade theme variables (light and night). */
.loreng-wrap { width: min(980px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 0 16px; overflow-x: hidden; overflow-y: auto; }
.loreng-wrap > * { min-width: 0; }
/* Centered hero (Tuan Putri 2026-10-28): big Mama Loreng in the middle, her daily line in a speech bubble under her. */
.loreng-hero { display: grid; justify-items: center; gap: 4px; text-align: center; padding-top: 4px; }
.loreng-cat { width: clamp(190px, 30vw, 270px); height: auto; filter: drop-shadow(0 16px 22px rgba(232, 30, 120, .3)); animation: loreng-bob 3.2s ease-in-out infinite; }
.loreng-today { position: relative; width: min(680px, 100%); box-sizing: border-box; margin-top: 14px; background: var(--arc-card); border: 2px solid var(--arc-line); border-radius: 26px; padding: 18px 22px 16px; box-shadow: 0 14px 30px rgba(125, 45, 252, .12); }
.loreng-today::before { content: ""; position: absolute; left: 50%; top: -12px; width: 20px; height: 20px; margin-left: -10px; background: inherit; border-left: 2px solid var(--arc-line); border-top: 2px solid var(--arc-line); transform: rotate(45deg); }
.loreng-tag { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--arc-accent); }
.loreng-quote { margin: 0; font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; line-height: 1.4; color: var(--arc-ink); text-align: center; }
.loreng-kind { margin: 10px 0 12px; font-size: 12px; color: var(--arc-muted); font-weight: 700; text-align: center; }
.loreng-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.loreng-lobby { display: flex; justify-content: center; margin-top: 10px; }
.loreng-lobby[hidden] { display: none; }
/* One chat button (Tuan Putri 2026-11-09), no mood picker. */
.loreng-start { display: grid; justify-items: center; gap: 6px; width: min(360px, 100%); padding: 14px 24px; border: 0; border-radius: 22px; background: linear-gradient(135deg, #7d2dfc, #fb05c4); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 12px 26px rgba(251, 5, 196, .3); transition: transform .15s, box-shadow .15s; }
.loreng-start:hover, .loreng-start:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(251, 5, 196, .42); }
.loreng-start:focus-visible { outline: 3px solid #fed535; outline-offset: 3px; }
.loreng-start b { font-size: 18px; font-weight: 800; }
.loreng-start small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: #412402; background: #fed535; border-radius: 99px; padding: 3px 11px 3px 4px; }
.loreng-start small img { flex: none; }
.loreng-start small img[hidden] { display: none; }
.loreng-start.is-paid small { color: #04342c; background: #5ee6c4; padding: 3px 11px; }
@media (prefers-reduced-motion: reduce) { .loreng-start { transition: none; } .loreng-start:hover, .loreng-start:focus-visible { transform: none; } }
@keyframes loreng-bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .loreng-cat { animation: none; } }
.loreng-room { background: var(--arc-card); border: 2px solid var(--arc-line); border-radius: 22px; padding: 16px 18px; }
.loreng-room[hidden] { display: none; }
.loreng-sim { margin: 12px 0 0; font-size: 12px; color: var(--arc-muted); background: var(--arc-card-2); border-radius: 12px; padding: 8px 10px; }
.loreng-room { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.loreng-room > * { min-width: 0; }
.loreng-room__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.loreng-room__head img { border-radius: 50%; background: #fff3e4; flex: none; }
.loreng-room__head div { flex: 1 1 150px; min-width: 0; display: grid; gap: 2px; }
.loreng-room__head .arcade-btn { white-space: nowrap; }
.loreng-room__head h2 { margin: 0; font-size: 17px; color: var(--arc-ink); }
.loreng-log { list-style: none; margin: 0; padding: 4px; min-height: 240px; max-height: 46vh; overflow-y: auto; display: grid; align-content: start; gap: 8px; }
.loreng-msg { display: flex; }
.loreng-msg p { margin: 0; max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.loreng-msg--mama p { background: #fff3e4; color: #4a2508; border-bottom-left-radius: 6px; }
.loreng-msg--me { justify-content: flex-end; }
.loreng-msg--me p { background: #0066ff; color: #fff; border-bottom-right-radius: 6px; }
.loreng-typing p { font-style: italic; opacity: .7; }
.loreng-msg--note { justify-content: center; }
.loreng-msg--note p { max-width: 100%; font-size: 12px; font-weight: 800; color: #04342c; background: #c9f7e6; border-radius: 99px; padding: 4px 12px; }
.loreng-form { display: flex; gap: 8px; }
.loreng-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; border: 2px solid var(--arc-line); border-radius: 99px; padding: 10px 14px; background: var(--arc-card-2); color: var(--arc-ink); }
.loreng-safe { margin: 0; font-size: 12px; color: var(--arc-muted); }
.loreng-dialog p { color: var(--arc-ink, #101d59); line-height: 1.5; }
@media (max-width: 640px) {
    .loreng-msg p { max-width: 88%; }
}

/* Kata Hari Ini page (Tuan Putri 2026-11-13): the line is locked until 100 poin are exchanged; the confirm buttons sit lower. */
.loreng-locked { display: grid; justify-items: center; gap: 14px; padding: 6px 0 4px; text-align: center; }
.loreng-locked[hidden], .loreng--kata [data-open][hidden] { display: none; }
.loreng-locked p { margin: 0; max-width: 46ch; color: var(--arc-ink); font-size: 15px; line-height: 1.5; }
.loreng-until { margin: -4px 0 12px; font-size: 12px; font-weight: 700; color: var(--arc-muted); text-align: center; }
.loreng-actions--confirm { margin-top: 22px; }
