/* Player web app. Look taken from the self-order kiosk references: product photos on
   white cards, one orange accent, detail sheet sliding up from the bottom. */
:root {
  --bg: #f7f4f0;
  --kartu: #fff;
  --teks: #1c1917;
  --redup: #78716c;
  --garis: #ebe5de;
  --oranye: #ea580c;
  --oranye-tua: #c2410c;
  --oranye-bg: #fff1e6;
  --hijau: #15803d;
  --hijau-bg: #dcfce7;
  --abu: #a8a29e;
  --gelap: #1c1917;
  --merah: #b91c1c;
  --radius: 18px;
  --bayang: 0 1px 2px rgb(28 25 23 / 0.06), 0 8px 24px rgb(28 25 23 / 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--teks);
  font: 15px/1.5 Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.redup { color: var(--redup); }
.kecil { font-size: 12.5px; }
.tengah { text-align: center; }
[hidden] { display: none !important; }

.wadah { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  background: #f1ece6; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--teks);
  transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
/* Waiting on the network: a spinner, and the button stays bright so it does not look dead */
.btn.memuat:disabled { opacity: .85; }
.btn.memuat::before {
  content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: putar .7s linear infinite;
}
@keyframes putar { to { transform: rotate(360deg); } }
.btn.utama { background: var(--oranye); color: #fff; box-shadow: 0 6px 16px rgb(234 88 12 / .28); }
.btn.utama:hover:not(:disabled) { filter: brightness(1.06); }
.btn.hijau { background: var(--hijau); color: #fff; box-shadow: 0 6px 16px rgb(21 128 61 / .28); }
.btn.garis { background: transparent; border: 1.5px solid var(--garis); }
.btn.kecil { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn.penuh { width: 100%; }
.btn:focus-visible, .kartu:focus-visible, .chip:focus-visible { outline: 3px solid rgb(234 88 12 / .45); outline-offset: 2px; }

/* ---------- koin: gold coin with a rim and a star (same drawing in styles.css) ---------- */
.koin {
  display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.2em; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23fff7c2'/%3E%3Cstop offset='.45' stop-color='%23fbbf24'/%3E%3Cstop offset='1' stop-color='%23d97706'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='15.5' fill='%23b45309'/%3E%3Ccircle cx='16' cy='16' r='13.5' fill='url(%23g)'/%3E%3Ccircle cx='16' cy='16' r='10.6' fill='none' stroke='%23d97706' stroke-width='1.2'/%3E%3Cpath d='M16 9.8 17.59 14.22 22.28 14.36 18.57 17.23 19.88 21.74 16 19.1 12.12 21.74 13.43 17.23 9.72 14.36 14.41 14.22Z' fill='%23b45309'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Line icons drawn in SVG: emoji look different on every phone */
.ikon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header (dark, sits on the stage below) ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgb(12 10 9 / .9); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.merek { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fafaf9; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.merek b { color: var(--oranye); font-weight: 800; }
.akun { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.saldo {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 999px; background: #fff; border: 1px solid var(--garis); font-weight: 700; font-size: 14px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: #292524; color: #fff; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
}

/* ---------- panggung: esports-style stage with the banner and two promo videos ----------
   Phone: banner, the two videos side by side, then the text.
   Wider: video | banner over text | video. */
.panggung {
  color: #fafaf9;
  background: radial-gradient(70% 90% at 50% 0%, rgb(234 88 12 / .2), transparent 70%), linear-gradient(#0c0a09, #1c1917);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); /* angled edge into the page */
  padding: 16px 0 52px;
}
.panggung-isi {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
  grid-template-areas: "banner banner" "kiri kanan" "hero hero";
}
/* No frame: the logo (transparent) or the admin's banner sits straight on the stage, whole */
.banner { grid-area: banner; aspect-ratio: var(--rasio, 1300 / 433); }
.banner img { display: block; width: 100%; height: 100%; object-fit: contain; }
.video.kiri { grid-area: kiri; }
.video.kanan { grid-area: kanan; }
.video { aspect-ratio: 3 / 4; }
@media (min-width: 760px) {
  .panggung { padding: 28px 0 64px; }
  .panggung-isi {
    gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "kiri banner kanan" "kiri hero kanan";
  }
  .video { aspect-ratio: 9 / 16; }
}

/* Gaming-UI frame: chamfered corners with a 2px orange edge (the gradient behind shows as the edge) */
.bingkai {
  --potong: 16px;
  position: relative;
  background: linear-gradient(var(--sudut, 135deg), var(--oranye), rgb(234 88 12 / .15) 35%, rgb(255 255 255 / .16) 65%, var(--oranye));
  clip-path: polygon(var(--potong) 0, 100% 0, 100% calc(100% - var(--potong)), calc(100% - var(--potong)) 100%, 0 100%, 0 var(--potong));
}
.bingkai > * {
  position: absolute; top: 2px; left: 2px; width: calc(100% - 4px); height: calc(100% - 4px);
  display: block; object-fit: cover; background: #0c0a09;
  clip-path: polygon(calc(var(--potong) - 1px) 0, 100% 0, 100% calc(100% - var(--potong) + 1px), calc(100% - var(--potong) + 1px) 100%, 0 100%, 0 calc(var(--potong) - 1px));
}
/* right frame: the same cut, mirrored */
.bingkai.kanan {
  --sudut: 225deg;
  clip-path: polygon(0 0, calc(100% - var(--potong)) 0, 100% var(--potong), 100% 100%, var(--potong) 100%, 0 calc(100% - var(--potong)));
}
.bingkai.kanan > * {
  clip-path: polygon(0 0, calc(100% - var(--potong) + 1px) 0, 100% calc(var(--potong) - 1px), 100% 100%, calc(var(--potong) - 1px) 100%, 0 calc(100% - var(--potong) + 1px));
}
.video video { object-position: 50% 65%; }

/* ---------- hero ---------- */
.hero { grid-area: hero; align-self: center; padding: 4px 0; }
.hero h1 { font-size: clamp(22px, 5.6vw, 36px); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; }
.hero p { margin: 8px 0 18px; color: #a8a29e; max-width: 520px; }

/* ---------- booking saya ---------- */
.booking-saya { margin: 18px 0 4px; display: grid; gap: 10px; }
.bk {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius);
  background: var(--gelap); color: #fff; box-shadow: var(--bayang);
}
.bk.siap { background: linear-gradient(135deg, #15803d, #166534); }
.bk img, .bk .ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: #44403c; }
.bk .teks { flex: 1; min-width: 0; }
.bk .teks b { display: block; font-size: 15px; }
.bk .teks span { display: block; font-size: 13px; opacity: .8; }
.bk .hitung { font-variant-numeric: tabular-nums; font-weight: 700; opacity: 1 !important; color: #fed7aa; }
.bk.siap .hitung { color: #bbf7d0; }
.bk .btn { flex: none; }
.bk .btn.putih { background: #fff; color: var(--hijau); font-weight: 800; letter-spacing: .02em; animation: denyut 1.4s ease-in-out infinite; }
.bk .btn.samar { background: rgb(255 255 255 / .12); color: #fff; }
@keyframes denyut { 50% { box-shadow: 0 0 0 8px rgb(255 255 255 / .18); } }
/* unpaid top-up */
.bk.tu { background: linear-gradient(135deg, #c2410c, #9a3412); }
.bk.tu .btn.putih { color: var(--oranye-tua); animation: none; }
.koin.besar { width: 36px; height: 36px; margin: 0 4px; }
.bk .x { flex: none; width: 28px; height: 44px; margin-left: -6px; border: 0; background: none; color: #fff; opacity: .7; font-size: 22px; cursor: pointer; }
.pengingat {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--oranye-bg); color: var(--oranye-tua); font-size: 13.5px; font-weight: 600;
}
.pengingat .btn { margin-left: auto; }

/* ---------- grid mobil ---------- */
.judul-bagian { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; scroll-margin-top: 72px; }
.judul-bagian h2 { font-size: 20px; font-weight: 800; }
.legenda { display: flex; gap: 12px; font-size: 12px; color: var(--redup); margin-left: auto; }
.legenda span { display: inline-flex; align-items: center; gap: 5px; }
.titik { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.t-ready { background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / .2); }
.t-playing { background: var(--abu); }
.t-booked { background: var(--oranye); }
.t-off { background: #d6d3d1; }

.info-siaran {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--gelap); color: #fafaf9;
  font-size: 13.5px; font-weight: 600;
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 32px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.kartu {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 0;
  background: var(--kartu); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--bayang); transition: transform .15s ease, box-shadow .15s ease;
}
.kartu:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(28 25 23 / .06), 0 14px 32px rgb(28 25 23 / .1); }
.kartu:disabled { cursor: default; }
.kartu .foto { position: relative; aspect-ratio: 4 / 3; background: #f3efe9; overflow: hidden; }
.kartu .foto img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease; }
.kartu .info { padding: 10px 12px 12px; display: grid; gap: 2px; }
.kartu .nama { font-weight: 700; font-size: 15px; line-height: 1.25; }
.kartu .sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--redup); }
.kartu .mulai { font-size: 12.5px; font-weight: 600; color: var(--oranye-tua); display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.pita {
  position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgb(28 25 23 / .82); color: #fff;
}
.pita.oranye { background: var(--oranye); }
.pita.hijau { background: var(--hijau); animation: denyut 1.4s ease-in-out infinite; }
.label-profil {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 7px;
  font-size: 10.5px; font-weight: 700; background: rgb(255 255 255 / .9); color: var(--teks);
}

/* Car in use: grey, like a sold-out menu item */
.kartu.s-playing .foto img, .kartu.s-off .foto img, .kartu.s-playing .ph, .kartu.s-off .ph { filter: grayscale(1) contrast(.9) brightness(1.03); }
.kartu.s-playing .nama, .kartu.s-off .nama { color: #57534e; }
.kartu.s-off { opacity: .6; }
/* The player's own car at their turn stays in colour */
.kartu.milik .foto img, .kartu.milik .ph { filter: none; }
.kartu.milik .nama { color: var(--teks); }

/* No photo yet: a drawn car on a tinted card */
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--ph, #f3efe9); }
.ph svg { width: 62%; height: auto; color: var(--ph-ink, #a8a29e); }

/* ---------- lembar (dialog) ---------- */
dialog { color: var(--teks); }
dialog.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 24px 24px 0 0; background: #fff; overflow: auto; overscroll-behavior: contain;
}
dialog.sheet[open] { animation: naik .24s cubic-bezier(.2, .8, .2, 1); }
dialog::backdrop { background: rgb(28 25 23 / .45); backdrop-filter: blur(2px); }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 24px; } }
@keyframes naik { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open], .pita.hijau, .bk .btn.putih { animation: none; } }
.isi { position: relative; }
.isi.pad { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
.isi h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.tutup {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgb(255 255 255 / .92); font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / .12);
}
.tutup.terang { background: rgb(255 255 255 / .15); color: #fff; box-shadow: none; }

/* galeri geser */
.galeri { position: relative; background: #f3efe9; }
.galeri .rel, .foto-penuh .rel {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.galeri .rel::-webkit-scrollbar, .foto-penuh .rel::-webkit-scrollbar { display: none; }
.galeri .rel > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.galeri .rel img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.galeri .titik-titik { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.galeri .titik-titik span { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / .55); transition: width .2s ease; }
.galeri .titik-titik span.aktif { width: 18px; border-radius: 4px; background: #fff; }
.galeri .jumlah { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgb(0 0 0 / .45); padding: 2px 8px; border-radius: 999px; }
.det-badan { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); }
.det-status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--redup); margin-bottom: 12px; }
.spek { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.spek li { padding: 5px 10px; border-radius: 9px; background: #f5f1ec; font-size: 12.5px; font-weight: 500; }
.lbl { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.durasi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip {
  display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--garis); background: #fff; font-weight: 700; font-size: 15px;
}
.chip small { font-weight: 500; font-size: 12px; color: var(--redup); display: inline-flex; align-items: center; gap: 4px; }
.chip[aria-pressed="true"] { border-color: var(--oranye); background: var(--oranye-bg); color: var(--oranye-tua); }
.ringkas { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: #faf8f5; font-size: 13.5px; display: grid; gap: 4px; }
.ringkas div { display: flex; justify-content: space-between; gap: 10px; }
.ringkas b { font-variant-numeric: tabular-nums; }

/* formulir */
input[type=text], input[type=password], input[type=email], input[type=number], input:not([type]) {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--garis);
  background: #fff; font-size: 16px; /* 16px stops iOS zooming in */
}
input:focus { outline: none; border-color: var(--oranye); box-shadow: 0 0 0 3px rgb(234 88 12 / .15); }
.input-at { display: flex; align-items: center; border: 1.5px solid var(--garis); border-radius: 12px; background: #fff; }
.input-at:focus-within { border-color: var(--oranye); box-shadow: 0 0 0 3px rgb(234 88 12 / .15); }
.input-at span { padding: 0 2px 0 14px; color: var(--redup); font-weight: 600; }
.input-at input { border: 0; box-shadow: none !important; padding-left: 4px; }
.baris-input { display: flex; gap: 8px; }
.tab { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 10px 0 4px; border-radius: 12px; background: #f3efe9; }
.tab button { height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; cursor: pointer; color: var(--redup); }
.tab button[aria-selected="true"] { background: #fff; color: var(--teks); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.pesan { min-height: 0; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--merah); }
.pesan:empty { display: none; }
.pesan.ok { color: var(--hijau); }
#auth-kirim, #tu-bayar, #akun-keluar { margin-top: 16px; }

/* top up */
/* Rupiah amounts are wide: two per row on a phone, four from tablet width */
.pilih-koin { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .pilih-koin { grid-template-columns: repeat(4, 1fr); } }
.pilih-koin .chip { font-size: 17px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--garis); }
.total b { font-size: 22px; font-weight: 800; }
.cara-bayar { margin: 14px 0 6px; padding-left: 20px; display: grid; gap: 2px; font-size: 12.5px; color: var(--redup); }

/* berhasil */
.centang {
  width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--oranye); color: var(--oranye); font-size: 30px; font-weight: 800;
}
#ok-isi { color: var(--redup); margin: 4px 0 14px; }
#ok-push:not(:empty), #akun-push:not(:empty) { margin: 12px 0; }
.langkah { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0 18px; }

/* foto layar penuh */
dialog.foto-penuh {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000;
}
dialog.foto-penuh::backdrop { background: #000; }
.foto-penuh .rel { height: 100%; }
.foto-penuh .rel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 14px;
  background: var(--gelap); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgb(0 0 0 / .25);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.tampil { opacity: 1; transform: translate(-50%, 0); }

/* footer */
.kaki { margin-top: 12px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); background: #efe9e2; font-size: 13.5px; color: #57534e; }
.kaki h3 { font-size: 14px; color: var(--teks); margin: 16px 0 6px; }
.kaki h3:first-child { margin-top: 0; }
.kaki ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.kaki p { margin: 0; white-space: pre-line; }
.kaki .hak { margin-top: 18px; font-size: 12px; color: var(--redup); }
.kaki .btn { margin-top: 10px; }

/* ---------- chat dengan admin ---------- */
.chat-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--oranye); color: #fff; box-shadow: 0 8px 24px rgb(234 88 12 / .4);
}
.chat-fab .ikon { width: 26px; height: 26px; }
.chat-angka {
  position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 2px #fff;
}
dialog.chat .isi { display: flex; flex-direction: column; height: min(80dvh, 640px); }
.chat-pesan {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 8px 0 10px; padding: 10px;
  display: flex; flex-direction: column; gap: 8px; border-radius: 14px; background: #faf8f5;
}
.gel { max-width: 82%; padding: 8px 12px; border-radius: 16px; font-size: 14px; }
.gel p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.gel time { display: block; margin-top: 2px; font-size: 11px; opacity: .7; text-align: right; }
.gel.aku { align-self: flex-end; background: var(--oranye); color: #fff; border-bottom-right-radius: 4px; }
.gel.dia { align-self: flex-start; background: #fff; border: 1px solid var(--garis); border-bottom-left-radius: 4px; }
.chat-kosong { margin: auto; padding: 24px; text-align: center; color: var(--redup); font-size: 13.5px; }
.chat-tulis { display: flex; gap: 8px; align-items: flex-end; }
.chat-tulis textarea {
  flex: 1; min-height: 46px; max-height: 120px; resize: none; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--garis); background: #fff; font: inherit; font-size: 16px; /* 16px: no iOS zoom */
}
.chat-tulis textarea:focus { outline: none; border-color: var(--oranye); box-shadow: 0 0 0 3px rgb(234 88 12 / .15); }

/* kerangka saat memuat */
.kartu.muat .foto { background: linear-gradient(90deg, #f3efe9, #fbf9f6, #f3efe9); background-size: 200% 100%; animation: kilau 1.2s linear infinite; }
.kartu.muat .info div { height: 12px; border-radius: 6px; background: #f3efe9; }
@keyframes kilau { to { background-position: -200% 0; } }
