:root {
  color-scheme: light dark;
  --bg: #F6F7F4; --card: #FFFFFF; --ink: #15201B; --muted: #5E6B64; --line: #E2E6E0;
  --brand: #0E3B2E; --accent: #C8F169; --accent-ink: #0E3B2E; --ok: #1F8A4C; --warn: #B7791F; --bad: #C0392B;
  --r: 14px; --shadow: 0 1px 2px rgba(16, 32, 24, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1411; --card: #151F1A; --ink: #E8EEE9; --muted: #98A69E; --line: #26332C;
    --brand: #C8F169; --accent: #C8F169; --accent-ink: #0E3B2E; --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--bg); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 16px; letter-spacing: -.01em; }
.mark { width: 32px; height: 32px; flex: none; }
/* Chữ logo: Lexend (có đủ dấu tiếng Việt); "Score" vàng cúp */
.logo .wm { font-family: "Lexend", "Be Vietnam Pro", sans-serif; font-weight: 400; font-size: 17px; letter-spacing: -.01em; }
.logo .wm b { font-weight: 700; color: #CA8A04; }
@media (prefers-color-scheme: dark) { .logo .wm b { color: #FACC15; } }
.top-r { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 9px 12px; min-width: 40px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang button.on { background: var(--brand); color: var(--bg); }
.who { font-size: 14px; font-weight: 600; text-decoration: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { max-width: 640px; margin: 0 auto; padding: 16px; }
.pad { padding: 16px 0; }
h1 { font-size: 24px; line-height: 1.25; margin: 4px 0 12px; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 12px; box-shadow: var(--shadow); }
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--line); font-size: 13px; font-weight: 500; }
.badge { display: inline-block; white-space: nowrap; flex: none; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--muted); }
.badge.owner, .badge.admin { background: var(--accent); color: var(--accent-ink); }
.badge.pending { background: #FDF0D5; color: #8A5A00; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn.nowrap, .nowrap { white-space: nowrap; flex: none; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }

label.f { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=number], input[type=time], select {
  font-size: 16px;  /* < 16px thì iPhone tự phóng to trang khi chạm vào ô */
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
input:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hint.ok { color: var(--ok); } .hint.bad { color: var(--bad); }
.code-in { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.dev { background: #FFF6D6; color: #6B4E00; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.or { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0; }

.sports { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sports label { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--card); }
.sports input { position: absolute; opacity: 0; pointer-events: none; }
.sports label:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.sports .ic { font-size: 22px; display: block; }
.sports b { font-size: 14px; }

.glist a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 0; border-top: 1px solid var(--line); }
.glist a:first-child { border-top: 0; padding-top: 0; }
.gic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--line); font-size: 20px; flex: none; }

.ghead { display: flex; gap: 12px; align-items: center; margin: 4px 0 12px; }
.ghead h1 { margin: 0; font-size: 21px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.tabs a.on { background: var(--brand); color: var(--bg); }

.people > div { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.people > div:first-child { border-top: 0; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 700; font-size: 13px; flex: none; }
.people .nm { font-weight: 600; }
.people select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13px; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-size: 13px; }
ul.rules { margin: 0; padding-left: 18px; } ul.rules li + li { margin-top: 6px; }
.slot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-bottom: 14px; }
.slot select { grid-column: 1 / 3; }
.slot input[type=time] { min-width: 0; }
.slot .place { grid-column: 1 / -1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.danger-zone { border-color: #F1C9C4; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: #15201B; color: #fff; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.empty { text-align: center; padding: 24px 8px; color: var(--muted); }

.card.hl { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.qr { margin-top: 12px; text-align: center; }
.qr svg { width: 220px; height: 220px; background: #fff; border-radius: 12px; }
ol.steps { margin: 8px 0 14px; padding-left: 22px; font-size: 14px; }
ol.steps li + li { margin-top: 4px; }
ol.steps li.done { color: var(--muted); text-decoration: line-through; }

/* trận */
h3.day { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 16px 0 6px; }
.mlist { padding: 4px 16px; }
.match { padding: 12px 0; border-top: 1px solid var(--line); position: relative; }
.match:first-child { border-top: 0; }
.mrow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.side { font-size: 14px; line-height: 1.3; }
.side.r { text-align: right; }
.side.win { font-weight: 700; }
.side.lose { color: var(--muted); }
.sc { text-align: center; min-width: 64px; }
.sc b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sc small { display: block; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.deltas { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; margin-top: 4px; }
.deltas span:last-child { text-align: right; }
.up { color: var(--ok); } .down { color: var(--bad); }
.mmeta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.macts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge.bad { background: #FBE3E0; color: #9B2C20; }
.badge.blow { background: #2B1D0E; color: #FFD27A; }
.bad-ink { color: var(--bad); margin-top: 4px; }
.match.is-blow .sc b { color: #B7791F; }
/* ghi trận */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; margin-bottom: 12px; background: var(--card); }
.seg a { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--muted); }
.seg a.on { background: var(--brand); color: var(--bg); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; }
.vs .col { display: grid; gap: 6px; }
.vs .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vsx { padding-top: 30px; font-weight: 700; color: var(--muted); }
.setrow { display: grid; grid-template-columns: 52px 1fr auto 1fr 40px; gap: 8px; align-items: center; }
.setrow input { text-align: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.blowfx { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(10, 16, 13, .72); animation: fxfade 2.2s ease forwards; pointer-events: none; }
.blowfx > div { text-align: center; color: #FFD27A; animation: fxpop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.blowfx .ic { font-size: 84px; animation: fxshake .6s .4s ease 2; }
.blowfx b { display: block; font-size: 40px; letter-spacing: .04em; text-transform: uppercase; }
@keyframes fxpop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fxshake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes fxfade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blowfx, .blowfx > div, .blowfx .ic { animation: none; } }
/* xếp hạng */
.tbl { padding: 4px 8px; overflow-x: auto; }
table.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rank th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; font-weight: 600; padding: 8px 6px; }
table.rank td { padding: 9px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
table.rank .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.rank td.n { width: 24px; color: var(--muted); font-weight: 700; }
table.rank tr.me td { background: color-mix(in srgb, var(--accent) 22%, transparent); }
table.rank tr.zero td { color: var(--muted); }
table.rank small { font-size: 11px; }
td.form { white-space: nowrap; }
i.f { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; margin-right: 2px; }
i.f.W { background: var(--ok); } i.f.L { background: var(--bad); } i.f.D { background: #8A948E; }
.hr { text-align: right; font-size: 14px; white-space: nowrap; }
.linkbtn { margin-left: auto; border: 0; background: none; padding: 2px 4px; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* buổi chơi */
.sess.compact { padding: 12px 16px; }
.rsvp .btn.on-no { background: #FBE3E0; border-color: #F1C9C4; color: #9B2C20; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; min-height: 34px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pchip.go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pchip.no { color: var(--muted); text-decoration: line-through; }
.pchip:disabled { cursor: default; }
.seg.wrap { display: flex; flex-wrap: wrap; border-radius: 14px; }
span.f { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.mynext { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 30%, transparent); font-size: 14px; }
.rounds { padding: 4px 16px; }
.round { padding: 10px 0; border-top: 1px solid var(--line); }
.round:first-child { border-top: 0; }
.round.cur .rhead { color: var(--brand); }
.rhead { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.rhead .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pgame { display: grid; grid-template-columns: auto 1fr auto 1fr; grid-template-areas: "c a v b" "x x x x"; gap: 4px 8px; align-items: center; padding: 6px 0; font-size: 14px; }
.pgame .cno { grid-area: c; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pgame .pt { grid-area: a; } .pgame .pt.r { grid-area: b; text-align: right; }
.pgame .vsx { grid-area: v; padding: 0; text-align: center; min-width: 40px; font-size: 12px; }
.pgame .pacts { grid-area: x; display: flex; gap: 6px; justify-content: flex-end; }
.pt.win { font-weight: 700; } .pt.lose { color: var(--muted); }
.psc { font-weight: 700; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.psc.pend { color: var(--warn); }
.meName { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.subp { margin: 4px 0 8px; padding: 10px; border-radius: 10px; background: var(--bg); }

/* chat */
.tabs a { position: relative; }
.tabs i.dot { position: absolute; top: 6px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 220px); min-height: 380px; }
.chatlist { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 8px; }
.msg { max-width: 86%; }
.msg .who { white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 2px 4px; }
.msg .bub { background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-size: 14.5px; line-height: 1.45; word-wrap: break-word; }
.msg.mine { align-self: flex-end; }
.msg.mine .bub { background: var(--brand); color: var(--bg); border-color: var(--brand); border-radius: 16px 16px 4px 16px; }
.msg .tm { font-size: 11px; color: var(--muted); font-weight: 400; }
.msg .tm.r { text-align: right; margin: 2px 4px 0 0; }
.msg.bot .bub { background: color-mix(in srgb, var(--accent) 20%, var(--card)); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.msg.bot ol, .msg.bot ul { margin: 4px 0; padding-left: 20px; }
.msg.ev { align-self: center; max-width: 96%; text-align: center; font-size: 13px; color: var(--ink); background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 6px 12px; }
.msg.ev .tm { margin-left: 6px; }
.msg.ev .win { font-weight: 700; } .msg.ev .lose { color: var(--muted); }
.evd { font-size: 11.5px; margin-top: 2px; } .evd span { margin: 0 3px; }
.evs { font-size: 11px; color: var(--muted); }
.sc2 { margin: 0 4px; font-variant-numeric: tabular-nums; }
.qchips { margin: 6px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.qchips .pchip { flex: none; font-size: 13px; min-height: 36px; }
.composer { display: flex; gap: 8px; padding-top: 4px; }
.composer input { flex: 1; border-radius: 22px; }
.composer .btn { width: 44px; min-height: 44px; border-radius: 50%; padding: 0; font-size: 16px; }

/* góp ý */
.foot { max-width: 640px; margin: 8px auto 24px; padding: 0 16px; text-align: center; font-size: 13px; }
.foot a { color: var(--muted); }
textarea { font-size: 16px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; color: inherit; resize: vertical; }
.fblist { padding: 4px 16px; }
.fb { padding: 12px 0; border-top: 1px solid var(--line); }
.fblist .fb:first-child { border-top: 0; }
form.fb { padding: 16px; border-top: 1px solid var(--line); }
.fbtext { white-space: pre-wrap; margin: 6px 0; font-size: 14.5px; }
.fbreply { background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.badge.st-planned { background: #E3EEFD; color: #1D4E89; } .badge.st-done { background: #DDF3E4; color: #1F6B3A; } .badge.st-wontfix { background: var(--line); }

/* tổng quan: bắt đầu, top 3 */
.setup .srow { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.setup .srow:first-child { border-top: 0; padding-top: 0; }
.chev { font-size: 22px; color: var(--muted); }
ol.top3 { margin: 8px 0; padding-left: 22px; } ol.top3 li { padding: 3px 0; } ol.top3 li > * { display: inline; }
ol.top3 li { display: list-item; } ol.top3 li b { float: right; } ol.top3 li.me { font-weight: 700; }
/* luật: thuật ngữ */
.qbtn { width: 34px; padding: 0; border-radius: 50%; font-weight: 700; }
.glossbox { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--bg); }
dl.gloss { margin: 6px 0 0; } dl.gloss dt { font-weight: 700; margin-top: 8px; } dl.gloss dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
ol.steps2 { padding-left: 20px; } table.rx td { font-size: 13px; } table.rx td:first-child { max-width: 130px; }
/* thành viên: tên chờ duyệt */
.linkbtn.edit { margin-left: 4px; text-decoration: none; font-size: 15px; }
.pendname { color: var(--warn); }
/* chat */
.bothint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pchip.help { border-color: var(--brand); }

.ibtn { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; vertical-align: middle; padding: 0; }
.ipop { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 6px 10px; margin: 4px 0 6px; }
.foot .legal { display: block; margin-top: 6px; font-size: 12px; }

/* Đóng hòm / tặng hoa (giống Bonafifa): hòm / vòng hoa bay vòng cung từ người thắng, rơi bịch xuống cạnh người thua */
.match.k-box, .match.k-flower { overflow: hidden; }
.match.k-box .sc, .match.k-flower .sc { overflow: visible; min-width: 76px; }
.klabel { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; line-height: 1; margin-bottom: 3px; }
.k-box .klabel { color: #C08A55; } .k-flower .klabel { color: #B7791F; }
.match.k-box .sc small, .match.k-flower .sc small { font-weight: 700; color: var(--muted); }
.kicon { line-height: 1; display: inline-block; }
.ico-coffin { width: 1.2em; height: 1.5em; vertical-align: -.4em; display: inline-block; overflow: visible; }
.ico-wreath { width: 1.25em; height: 1.6em; vertical-align: -.45em; display: inline-block; overflow: visible; }
.kicon .ico-coffin { width: 28px; height: 36px; } .kicon .ico-wreath { width: 36px; height: 47px; }
.kthrow { position: relative; z-index: 2; }
.kthrow.to-r { transform: translateX(56px); } .kthrow.to-l { transform: translateX(-56px); }
.kthrow .ico-coffin, .kthrow .c-lid { animation: none !important; }
.blowfx .kicon .ico-coffin { width: 84px; height: 109px; } .blowfx .kicon .ico-wreath { width: 96px; height: 124px; }
.blowfx > div { position: relative; }
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blowfx .petals { inset: -40px -60px; }
.pt { position: absolute; top: -10px; width: 3px; height: 9px; border-radius: 50%; opacity: 0; }
.pt1 { left: 12%; background: #fff; } .pt2 { left: 30%; background: #fff; } .pt3 { left: 48%; background: #F4D35E; }
.pt4 { left: 63%; background: #fff; } .pt5 { left: 78%; background: #C9B8E8; } .pt6 { left: 90%; background: #fff; }
.match .pt1, .match .pt2, .match .pt4, .match .pt6 { background: #E4E0D4; }
@media (prefers-reduced-motion: no-preference) {
  .kthrow.to-r { animation: throwR 3.8s cubic-bezier(.35, .1, .35, 1) infinite; }
  .kthrow.to-l { animation: throwL 3.8s cubic-bezier(.35, .1, .35, 1) infinite; }
  .kicon .c-lid { transform-box: fill-box; transform-origin: 0% 100%; animation: lid 3.2s cubic-bezier(.5, 0, .2, 1) infinite; }
  .kicon .ico-coffin { animation: thud 3.2s ease-in infinite; transform-origin: 50% 100%; }
  .kicon .c-dust { opacity: 0; animation: dust 3.2s ease-out infinite; }
  .kicon .w-ring { transform-box: view-box; transform-origin: 24px 19px; animation: turn 30s linear infinite; }
  .kicon .w-fl { animation: bloom 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .kicon .w-tail { transform-box: view-box; transform-origin: 24px 33px; animation: flutter 3.2s ease-in-out infinite; }
  .pt { animation: fall 5.5s linear infinite; }
  .pt2 { animation-delay: .9s; } .pt3 { animation-delay: 2.1s; } .pt4 { animation-delay: 3s; } .pt5 { animation-delay: 3.8s; } .pt6 { animation-delay: 4.6s; }
}
@keyframes throwR { 0% { transform: translate(-64px, 10px) rotate(-25deg) scale(.55); opacity: 0; } 6% { opacity: 1; }
  30% { transform: translate(-8px, -6px) rotate(150deg) scale(.8); } 52% { transform: translate(56px, 2px) rotate(345deg) scale(1); }
  56% { transform: translate(56px, 4px) rotate(360deg) scale(1.12, .82); } 61%, 90% { transform: translate(56px, 0) rotate(360deg) scale(1); opacity: 1; } 100% { transform: translate(56px, 0) rotate(360deg); opacity: 0; } }
@keyframes throwL { 0% { transform: translate(64px, 10px) rotate(25deg) scale(.55); opacity: 0; } 6% { opacity: 1; }
  30% { transform: translate(8px, -6px) rotate(-150deg) scale(.8); } 52% { transform: translate(-56px, 2px) rotate(-345deg) scale(1); }
  56% { transform: translate(-56px, 4px) rotate(-360deg) scale(1.12, .82); } 61%, 90% { transform: translate(-56px, 0) rotate(-360deg) scale(1); opacity: 1; } 100% { transform: translate(-56px, 0) rotate(-360deg); opacity: 0; } }
@keyframes lid { 0%, 30% { transform: rotate(0); } 48% { transform: translate(-1px, -4px) rotate(-16deg); } 62% { transform: translate(-1px, -4px) rotate(-16deg); } 70%, 100% { transform: rotate(0); } }
@keyframes thud { 0%, 69% { transform: translateY(0); } 72% { transform: translateY(1.5px) scaleY(.96); } 76%, 100% { transform: translateY(0); } }
@keyframes dust { 0%, 69% { opacity: 0; transform: translateY(0) scale(.6); } 74% { opacity: .9; } 90%, 100% { opacity: 0; transform: translateY(-4px) scale(1.4); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes bloom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes flutter { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes fall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: .95; } 85% { opacity: .8; } 100% { opacity: 0; transform: translateY(120px) translateX(-18px) rotate(260deg); } }
