/* Game Kebun: tampilan. Aturan: window.KEBUN (kebun.js). Gambar: window.KB_SVG[id] (svg-kebun.js, svg-kebun2.js). */
.kb { --kb-ink: #0f172a; --ok2: #047857; --bad2: #be123c; }
.kb-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: clamp(5px, .8vw, 10px); overflow: hidden; background: linear-gradient(180deg, #ecfccb, #f8fafc 55%); position: relative; }
.kb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kb-fb { display: grid; place-items: center; width: 100%; height: 100%; font: 800 1.4em var(--font); color: #1f2937; background: #e5e7eb; border-radius: 50%; }

/* HUD */
.kb-hud { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 14px; }
.kb-tim { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; min-width: 0; background: #fff; border: 3px solid var(--t); border-radius: 14px; padding: 3px 12px; }
.kb-tim.t1 { justify-content: flex-end; }
.kb-nm { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: clamp(15px, 1.4vw, 24px); color: var(--t); min-width: 0; }
.kb-nm .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--t); flex: none; }
.kb-nm .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.kb-nm .bm { font-size: .72em; font-weight: 700; color: #475569; background: #f1f5f9; border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.kb-en { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: clamp(17px, 1.7vw, 30px); color: var(--kb-ink); font-variant-numeric: tabular-nums; }
.kb-en .ei { width: 1.3em; height: 1.3em; display: block; }
.kb-en .ei svg, .kb-hp .hi svg { width: 100%; height: 100%; display: block; }
.kb-en.naik b { animation: kb-pop .3s ease-out; }
.kb-hp { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: clamp(15px, 1.4vw, 24px); color: var(--kb-ink); font-variant-numeric: tabular-nums; flex: 1 1 110px; min-width: 90px; }
.kb-hp .hi { width: 1.2em; height: 1.2em; flex: none; }
.kb-hp .bar { flex: 1; height: 14px; border-radius: 99px; background: #e2e8f0; overflow: hidden; border: 2px solid #1f2937; min-width: 40px; }
.kb-hp .bar i { display: block; height: 100%; background: #22c55e; transform-origin: left; width: 100%; transition: transform .2s linear; }
.kb-tim.t1 .kb-hp .bar i { transform-origin: right; }
.kb-hp .bar.low i { background: #ef4444; }
.kb-hp b { min-width: 2.4ch; text-align: right; }
.kb-clock { font: 800 clamp(22px, 2.8vw, 44px) var(--font); font-variant-numeric: tabular-nums; background: #0f172a; color: #fff; border-radius: 14px; padding: 0 16px; line-height: 1.4; min-width: 92px; text-align: center; }
.kb-clock.low { background: #be123c; animation: kb-blink 1s steps(2) infinite; }
.kb-tim.t1 .nm { order: 0; }

/* papan */
.kb-boardarea { flex: none; position: relative; }
.kb-scroll { width: 100%; height: 100%; overflow: hidden; border-radius: 14px; }
.kb-board { position: relative; margin: 0 auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; border-radius: 14px; background: #bde0a2; }
.kb-board.cabut0, .kb-board.cabut1 { cursor: crosshair; }
.kb-langit { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(180deg, #bae6fd, #e0f2fe); border-radius: 14px 14px 0 0; pointer-events: none; }
.kb-zona { position: absolute; background: linear-gradient(to bottom, var(--c1) 0 33.34%, var(--c2) 33.34% 66.67%, var(--c1) 66.67% 100%); pointer-events: none; overflow: hidden; }
.kb-zona::before { content: ''; position: absolute; inset: 0; background-image: var(--tile, none); background-size: var(--tw) 33.334%; background-repeat: repeat; opacity: .5; }
.kb-zona::after { content: ''; position: absolute; inset: 0; background: conic-gradient(rgba(255, 255, 255, .22) 25%, transparent 0 50%, rgba(255, 255, 255, .22) 0 75%, transparent 0) 0 0 / calc(var(--tw, 20%) * 2) 66.668%; }
.kb-zona.zn::after { background: conic-gradient(rgba(255, 255, 255, .25) 25%, transparent 0 50%, rgba(255, 255, 255, .25) 0 75%, transparent 0) 0 0 / calc(100% / 3) 66.668%; }
.kb-batas { position: absolute; width: 0; border-left: 3px dashed rgba(31, 41, 55, .5); pointer-events: none; z-index: 1; }
.kb-fort { position: absolute; pointer-events: none; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kb-fort .fi { width: 100%; flex: 1; min-height: 0; display: block; }
.kb-fort .fi svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.kb-fort.t1 .fi svg { transform: scaleX(-1); }
.kb-fort .fh { position: absolute; left: 8%; right: 8%; top: 0; height: 7px; border-radius: 99px; background: #e2e8f0; border: 2px solid #1f2937; overflow: hidden; }
.kb-fort .fh i { display: block; height: 100%; background: #22c55e; transform-origin: left; width: 100%; transition: transform .2s linear; }
.kb-fort.low .fh i { background: #ef4444; }
.kb-fort.hit .fi { animation: kb-shake .4s; }
.kb-ly { position: absolute; inset: 0; pointer-events: none; }
.kb-ly-it { z-index: 8; }
.kb-ly-an { z-index: 5; }
.kb-ly-pel { z-index: 6; }
.kb-ly-fx { z-index: 7; }

/* tanaman, hewan */
.kb-pl, .kb-hw { position: absolute; width: var(--s); height: var(--s); transform: translate(-50%, -50%); }
.kb-pl .g, .kb-hw .g { position: absolute; inset: 0; display: block; transform-origin: 50% 90%; }
.kb-pl .g svg, .kb-hw .g svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); overflow: visible; }
.kb-pl.ti1 .g { transform: scale(.95); } .kb-pl.ti2 .g { transform: scale(1.05); } .kb-pl.ti3 .g { transform: scale(1.15); }
.kb-hw.ti1 .g { transform: scale(.9); } .kb-hw.ti2 .g { transform: scale(1.02); } .kb-hw.ti3 .g { transform: scale(1.15); }
.kb-hw.t1 .g { transform: scaleX(-1); }
.kb-hw.t1.ti1 .g { transform: scaleX(-1) scale(.9); } .kb-hw.t1.ti2 .g { transform: scaleX(-1) scale(1.02); } .kb-hw.t1.ti3 .g { transform: scaleX(-1) scale(1.15); }
.kb-hw { transition: left .12s linear; }
.kb-hw.jalan .g { animation: kb-hop .45s ease-in-out infinite; }
.kb-hw.makan .g { animation: kb-chomp .35s ease-in-out infinite; }
.kb-pl .g { animation: kb-sway 3.2s ease-in-out infinite; }
.kb-pl.p-penahan .g, .kb-pl.p-khusus .g { animation: none; }
.kb-pl.muncul .g { animation: kb-grow .35s ease-out; }
.kb-pl.kena .g, .kb-hw.kena .g { filter: brightness(1.7) saturate(.6); }
.kb-pl .hp, .kb-hw .hp { position: absolute; left: 14%; right: 14%; top: -3px; height: 5px; border-radius: 99px; background: rgba(15, 23, 42, .3); overflow: hidden; visibility: hidden; }
.kb-pl .hp i, .kb-hw .hp i { display: block; height: 100%; width: 100%; background: #22c55e; transform-origin: left; }
.kb-pl .hp.low i { background: #ef4444; }
.kb-hw.t0 .hp i { background: #f97316; } .kb-hw.t1 .hp i { background: #a855f7; }
.kb-pe { position: absolute; width: calc(var(--s) * .42); height: calc(var(--s) * .42); transform: translate(-50%, -50%); }
.kb-pe svg { width: 100%; height: 100%; display: block; }
.kb-pe.t1 svg { transform: scaleX(-1); }

/* ikon energi dan kotak bibit */
.kb-it { position: absolute; width: var(--is); height: var(--is); transform: translate(-50%, -50%); border: 0; background: transparent; padding: 0; margin: 0; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.kb-it svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.kb-it.en { animation: kb-bob 1.1s ease-in-out infinite; }
.kb-it.en .nl { position: absolute; right: -4px; bottom: -2px; background: #fff; border: 2px solid #1f2937; border-radius: 99px; font: 800 12px/1.2 var(--font); padding: 0 4px; color: #0f172a; }
.kb-it.kt { width: calc(var(--is) * 1.05); height: calc(var(--is) * 1.05); animation: kb-wiggle 1.4s ease-in-out infinite; }
.kb-it.kt.emas { filter: drop-shadow(0 0 6px #fbbf24); }
.kb-it.kt.perak { filter: drop-shadow(0 0 5px #e2e8f0); }
.kb-it.kt .tm { position: absolute; left: 8%; right: 8%; bottom: -5px; height: 5px; border-radius: 99px; background: rgba(15, 23, 42, .45); overflow: hidden; }
.kb-it.kt .tm i { display: block; height: 100%; background: #fbbf24; transform-origin: left; }
.kb-it.akhir { opacity: .6; animation: kb-blink .5s steps(2) infinite; }
.kb-it:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 50%; }
.kb-it.muncul { animation: kb-drop .4s ease-out; }

/* efek */
.kb-fx { position: absolute; width: var(--s); height: var(--s); transform: translate(-50%, -50%); pointer-events: none; }
.kb-fx svg { width: 100%; height: 100%; display: block; }
.kb-fx.ledak { animation: kb-boom .5s ease-out forwards; }
.kb-fx.cabut { animation: kb-boom .6s ease-out forwards; }
.kb-fx.tanam i { position: absolute; inset: 15%; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .9); animation: kb-ring .5s ease-out forwards; }
.kb-fx.teks { width: auto; height: auto; font: 800 var(--fs) var(--font); font-size: max(15px, var(--fs)); color: #fff; text-shadow: 0 0 3px #0f172a, 0 0 3px #0f172a, 0 1px 3px #0f172a; animation: kb-float .8s ease-out forwards; white-space: nowrap; }

/* panel dek */
.kb-decks { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); }
.kb-decks.satu { grid-template-columns: minmax(0, 1fr); max-width: 1100px; width: 100%; margin: 0 auto; }
.kb-deck { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 4px solid var(--t); border-radius: 16px; padding: 5px 6px; overflow: hidden; }
.kb-deck.bot-hidden { display: none; }
.kb-deck.shake { animation: kb-shake .35s; }
.kb-dh { flex: none; display: flex; align-items: center; gap: 8px; min-height: 36px; }
.kb-dn { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--t); font-size: clamp(15px, 1.4vw, 22px); min-width: 0; flex: 1; }
.kb-dn .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--t); flex: none; }
.kb-dn .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-dk { font-weight: 700; font-size: clamp(13px, 1.1vw, 16px); color: #475569; white-space: nowrap; }
.kb-sekop { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 48px; border-radius: 12px; border: 3px solid #94a3b8; background: #fff; color: #334155; font: 800 15px var(--font); padding: 0 10px; cursor: pointer; touch-action: manipulation; }
.kb-sekop .si { width: 28px; height: 28px; display: block; }
.kb-sekop .si svg { width: 100%; height: 100%; display: block; }
.kb-sekop[aria-pressed="true"] { background: #fee2e2; border-color: #be123c; color: #be123c; }
.kb-dtab { flex: none; display: flex; gap: 6px; }
.kb-dtab button { flex: 1; min-height: 48px; border-radius: 10px; border: 3px solid #cbd5e1; background: #f8fafc; color: #334155; font: 800 clamp(14px, 1.2vw, 18px) var(--font); cursor: pointer; touch-action: manipulation; }
.kb-dtab button[aria-selected="true"] { background: var(--t); border-color: var(--t); color: #fff; }
.kb-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(64px, 1fr); gap: 5px; align-content: stretch; }
.kb-card { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1px; padding: 3px 2px 2px; border-radius: 12px; border: 3px solid #cbd5e1; background: #fff; color: var(--kb-ink); cursor: pointer; touch-action: manipulation; font-family: var(--font); overflow: hidden; }
.kb-card.ti2 { border-color: #94a3b8; } .kb-card.ti3 { border-color: #f59e0b; }
.kb-card .im { flex: 1; min-height: 0; width: 100%; display: block; }
.kb-card .im svg { width: 100%; height: 100%; display: block; }
.kb-card .nm { font-weight: 800; font-size: clamp(11px, 1vw, 15px); line-height: 1.1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kb-card .bi { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: clamp(13px, 1.2vw, 18px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.kb-card .bi .ei { width: 1.15em; height: 1.15em; display: block; }
.kb-card .bi .ei svg { width: 100%; height: 100%; display: block; }
.kb-card .bi.lk { width: 1.5em; height: 1.5em; }
.kb-card .bi.lk svg { width: 100%; height: 100%; display: block; }
.kb-card.sel { border-color: var(--t); background: #fef9c3; box-shadow: 0 0 0 3px var(--t); }
.kb-card.mahal .bi { color: #be123c; }
.kb-card.mahal .im { opacity: .55; }
.kb-card.jeda .im { opacity: .5; }
.kb-card .cd { position: absolute; inset: 0; pointer-events: none; display: none; align-items: center; justify-content: center; }
.kb-card.jeda .cd { display: flex; }
.kb-card .cd i { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, .4); height: 0; }
.kb-card .cd b { position: relative; font: 800 clamp(16px, 1.6vw, 24px) var(--font); color: #fff; text-shadow: 0 0 3px #0f172a, 0 0 3px #0f172a; }
.kb-card.kunci { background: #e5e7eb; border-color: #d1d5db; cursor: default; color: #6b7280; }
.kb-card.kunci .im { filter: grayscale(1); opacity: .35; }
.kb-card.baru { animation: kb-glow 1s ease-in-out 3; border-color: #16a34a; }
.kb-card:focus-visible, .kb-dtab button:focus-visible, .kb-sekop:focus-visible, .kb-o:focus-visible, .kb-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.kb-info { flex: none; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.3; color: #334155; font-weight: 700; min-height: 2.6em; overflow: hidden; }
.kb-info b { color: var(--kb-ink); }
.kb-info .pr { background: #f1f5f9; border-radius: 99px; padding: 0 8px; font-size: .9em; }
.kb-info .ft, .kb-info .hl { display: block; font-weight: 600; color: #475569; }
.kb-toast { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 30; max-width: 92%; background: var(--c, #0f766e); color: #fff; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); padding: 4px 14px; font-weight: 800; font-size: clamp(14px, 1.3vw, 19px); text-align: center; pointer-events: none; animation: kb-popx .25s ease-out; }
.kb-toast[hidden] { display: none; }

/* modal soal */
.kb-modal { position: absolute; inset: 0; z-index: 20; background: rgba(15, 23, 42, .5); display: flex; align-items: stretch; justify-content: center; padding: 4px; }
.kb-modal[hidden] { display: none; }
.kb-box { width: 100%; max-height: 100%; overflow-y: auto; background: #fff; border: 4px solid #a16207; border-radius: 14px; padding: clamp(6px, 1vw, 14px); text-align: left; display: flex; flex-direction: column; gap: 6px; }
.kb-box.perak { border-color: #94a3b8; } .kb-box.emas { border-color: #f59e0b; background: #fffbeb; } .kb-box.cokelat { border-color: #a16207; }
.kb-qh { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--kb-ink); font-size: clamp(15px, 1.4vw, 21px); }
.kb-qi { width: 34px; height: 34px; flex: none; display: block; }
.kb-qi svg { width: 100%; height: 100%; display: block; }
.kb-qk { margin-left: auto; font-size: .78em; font-weight: 700; color: #475569; background: #f1f5f9; border-radius: 99px; padding: 0 10px; }
.kb-timer { flex: none; height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.kb-timer i { display: block; height: 100%; width: 100%; background: #22c55e; transform-origin: left; }
.kb-timer.low i { background: #ef4444; }
.kb-q { font-weight: 800; color: var(--kb-ink); font-size: clamp(16px, 1.7vw, 26px); line-height: 1.35; overflow-wrap: anywhere; }
.kb-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.kb-o { min-height: 52px; border: 3px solid #bae6fd; background: #f0f9ff; color: var(--kb-ink); border-radius: 12px; font: 800 clamp(15px, 1.5vw, 24px) var(--font); padding: 4px 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; touch-action: manipulation; font-variant-numeric: tabular-nums; }
.kb-o .l { width: 1.6em; height: 1.6em; border-radius: 50%; background: #0ea5e9; color: #fff; display: grid; place-items: center; font-size: .75em; flex: none; }
.kb-o:disabled { cursor: default; }
.kb-o.ok { background: #dcfce7; border-color: #16a34a; } .kb-o.bad { background: #ffe4e6; border-color: #e11d48; }
.kb-fb2 { border-radius: 12px; padding: 6px 10px; font-weight: 700; font-size: clamp(13px, 1.15vw, 17px); line-height: 1.35; color: var(--kb-ink); background: #f1f5f9; }
.kb-fb2.ok { background: #dcfce7; } .kb-fb2.bad { background: #ffe4e6; }
.kb-fb2 .r { display: block; font-size: 1.15em; }
.kb-fb2.ok .r { color: var(--ok2); } .kb-fb2.bad .r { color: var(--bad2); }
.kb-fb2 .pb { display: block; font-weight: 600; margin-top: 2px; }
.kb-fb2 .kc { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.kb-fb2 .kci { width: 48px; height: 48px; flex: none; display: block; }
.kb-fb2 .kci svg { width: 100%; height: 100%; display: block; }
.kb-fb2 small { display: block; font-weight: 600; font-size: .9em; color: #475569; }
.kb-row { display: flex; justify-content: center; }
.kb-btn { min-height: 48px; min-width: 120px; padding: 0 26px; border-radius: 999px; border: 0; background: #059669; color: #fff; font: 800 clamp(16px, 1.5vw, 21px) var(--font); cursor: pointer; box-shadow: 0 4px 0 #047857; touch-action: manipulation; }

/* pengaturan dan hasil */
.kb-names { display: grid; gap: 6px; }
.kb-names input { font: 700 16px var(--font); padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; min-width: 0; width: 100%; box-sizing: border-box; text-align: center; min-height: 44px; }
.kb-names input[hidden] { display: none; }
.kb-biomrow { display: grid; gap: 4px; margin-bottom: 6px; }
.kb-bl { font-weight: 800; font-size: 14px; color: #334155; }
.kb-biomrow .opt { min-height: 44px; padding: 0 10px; }
.kb-how { margin: 8px 0 0; text-align: left; font-size: 14px; font-weight: 600; color: #334155; }
.kb-how summary { cursor: pointer; font-weight: 800; min-height: 32px; }
.kb-how ol { margin: 4px 0 0; padding-left: 20px; }
.kb-res { width: min(1040px, 100%); max-width: 1040px; }
.kb-tblw { overflow-x: auto; margin: 8px 0; }
.kb-tbl { border-collapse: collapse; width: 100%; font-size: clamp(13px, 1.3vw, 16px); font-weight: 700; color: var(--kb-ink); }
.kb-tbl th, .kb-tbl td { border: 2px solid #e2e8f0; padding: 4px 6px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kb-tbl th:first-child, .kb-tbl td:first-child, .kb-tbl td:nth-child(2) { text-align: left; }
.kb-tbl thead th { background: #f1f5f9; }
.kb-tbl tr.win td, .kb-tbl tr.win th { background: #fef9c3; }

/* layar sempit: potret */
.rotate-hint[hidden] { display: none; }
@media (max-width: 700px) and (orientation: portrait) {
  .kb-wrap { overflow-y: auto; overflow-x: hidden; }
  .kb-hud { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px; }
  .kb-tim { padding: 2px 6px; gap: 2px 8px; }
  .kb-nm .bm { display: none; }
  .kb-nm .nm { max-width: 8ch; }
  .kb-hp { flex-basis: 70px; min-width: 70px; }
  .kb-hp .bar { height: 10px; min-width: 20px; }
  .kb-clock { font-size: 22px; min-width: 66px; padding: 0 8px; }
  .kb-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .kb-board { margin: 0; }
  .kb-boardarea { height: auto !important; }
  .kb-decks { flex: none; grid-template-columns: minmax(0, 1fr); }
  .kb-deck { min-height: 300px; }
  .kb-grid { grid-auto-rows: minmax(76px, 76px); }
  .kb-modal { position: fixed; inset: 0; z-index: 50; padding: 6px; align-items: flex-end; }
  .kb-box { max-height: 88vh; }
  .kb-sekop .sl { display: none; }
  .kb-opts { grid-template-columns: 1fr; }
}

/* HP landscape (layar pendek): HUD di bilah atas, papan di atas, dek di bawah, soal menutupi separuh layar milik tim */
@media (max-height: 560px) {
  .stage { --gap: 3px; }
  .game { border-width: 2px; border-radius: 14px; }
  .topbar .title { display: block; flex: 1; visibility: hidden; }
  .kb-wrap { padding: 3px 4px 4px; gap: 3px; overflow: hidden; }
  .kb-hud { position: fixed; z-index: 15; top: calc(3px + 2px + 3px); left: 56px; right: 190px; height: 40px; gap: 4px; }
  .kb-tim { padding: 1px 8px; gap: 0 8px; border-width: 2px; border-radius: 10px; height: 38px; flex-wrap: nowrap; align-items: center; overflow: hidden; }
  .kb-nm { font-size: 13px; }
  .kb-nm .nm, .kb-nm .bm { display: none; }
  .kb-nm .dot { width: 12px; height: 12px; }
  .kb-en { font-size: 17px; }
  .kb-hp { font-size: 15px; flex: 1 1 60px; min-width: 56px; gap: 4px; }
  .kb-hp .bar { height: 10px; min-width: 24px; }
  .kb-clock { font-size: 20px; line-height: 1.5; min-width: 62px; padding: 0 8px; border-radius: 10px; }
  .kb-deck { border-width: 3px; padding: 3px 4px; gap: 3px; border-radius: 12px; flex-direction: column; }
  .kb-dh { min-height: 0; }
  .kb-dh .kb-dk { display: none; }
  .kb-info { display: none; }
  .kb-dtab button { min-height: 44px; border-width: 2px; font-size: 13px; }
  .kb-dh { position: absolute; z-index: 3; right: 4px; top: 3px; }
  .kb-dn { display: none; }
  .kb-dtab { padding-right: 62px; }
  .kb-sekop { min-height: 44px; min-width: 52px; padding: 0 4px; border-width: 2px; }
  .kb-sekop .sl { display: none; }
  .kb-sekop .si { width: 24px; height: 24px; }
  .kb-grid { gap: 3px; grid-auto-rows: minmax(44px, 1fr); }
  .kb-card { border-width: 2px; border-radius: 9px; padding: 1px; }
  .kb-card .nm { display: none; }
  .kb-card .bi { font-size: 12px; }
  .kb-decks.satu .kb-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .kb-modal { position: fixed; z-index: 60; top: var(--kbtop, 50px); bottom: 3px; left: 3px; right: 52%; padding: 0; }
  .kb-deck.t1 .kb-modal { left: 52%; right: 3px; }
  .kb-decks.satu .kb-modal { right: 30%; }
  .kb-box { border-width: 3px; padding: 5px 8px; gap: 3px; border-radius: 10px; }
  .kb-qi { width: 24px; height: 24px; }
  .kb-qh { font-size: 14px; }
  .kb-q { font-size: 15px; line-height: 1.25; }
  .kb-o { min-height: 40px; font-size: 15px; border-width: 2px; }
  .kb-opts { gap: 4px; }
  .kb-fb2 { font-size: 13px; padding: 3px 8px; }
  .kb-fb2 .kci { width: 34px; height: 34px; }
  .kb-fb2 small { display: none; }
  .kb-box.hasil .kb-opts { display: none; }
  .kb-btn { min-height: 44px; font-size: 16px; }
  .kb-toast { top: 40px; font-size: 13px; padding: 2px 10px; }
  .kb-it.en .nl { font-size: 11px; }
}
@media (max-height: 560px) and (max-width: 760px) {
  .kb-hud { right: 188px; }
}

@keyframes kb-pop { 50% { transform: scale(1.35); } }
@keyframes kb-popx { from { transform: translateX(-50%) scale(.7); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes kb-blink { 50% { opacity: .55; } }
@keyframes kb-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes kb-hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6%; } }
@keyframes kb-chomp { 0%, 100% { rotate: 0deg; } 50% { rotate: -9deg; } }
@keyframes kb-sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
@keyframes kb-grow { from { scale: .2; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes kb-bob { 50% { margin-top: -4px; } }
@keyframes kb-wiggle { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes kb-drop { from { margin-top: -20px; opacity: 0; } to { margin-top: 0; opacity: 1; } }
@keyframes kb-boom { from { scale: .5; opacity: 1; } to { scale: 1.3; opacity: 0; } }
@keyframes kb-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes kb-float { from { margin-top: 0; opacity: 1; } to { margin-top: -34px; opacity: 0; } }
@keyframes kb-glow { 50% { box-shadow: 0 0 0 4px #86efac; } }
@media (prefers-reduced-motion: reduce) {
  .kb-hw.jalan .g, .kb-hw.makan .g, .kb-pl .g, .kb-pl.muncul .g, .kb-it, .kb-it.en, .kb-it.kt, .kb-it.muncul, .kb-clock.low, .kb-card.baru, .kb-fort.hit .fi, .kb-deck.shake, .kb-toast { animation: none; }
  .kb-fx.ledak, .kb-fx.cabut, .kb-fx.tanam i, .kb-fx.teks { animation-duration: .01s; }
  .kb-hw { transition: none; }
}
