@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:wght@600;700;800&display=swap");
/* =========================================================
   M418-01 (17/11/2026): khối "Bảng xếp hạng" trang chủ — chọn máy chủ (mặc định máy chủ mở mới nhất),
   tab Cấp độ (top 50, top 3 nổi bật) + tab Đua top cấp 99 (đúng bảng 10 suất trong game).
   M418-04 (17/11/2026): phần bảng làm lại theo phong cách kiếm hiệp — "bảng vàng" khung sơn mài đỏ son + chỉ vàng,
   góc hoa văn chữ hồi, nền giấy dó, biển hiệu treo; top 3 = dòng trong bảng (cùng cỡ hạng 4–10) Kim / Ngân / Đồng + hiệu ứng (M418-08); phần thưởng = cuộn trục.
   Dữ liệu: GET /api/bxh?sv=<id> (web Go internal/web/bxh.go). Hành vi: assets/trang-chu/m418.js. Nạp SAU style.css / m406.css.
   ========================================================= */
.rk-sec {
  --rk-serif: "Noto Serif", "Times New Roman", Georgia, serif;
  --rk-paper: #f8f0dc; --rk-paper-2: #efe1c0; --rk-paper-3: #fffaf0;
  --rk-ink: #2b1d12; --rk-ink-2: #5b4632; --rk-muted: #8a7357;
  --rk-lacquer: #7a2216; --rk-lacquer-2: #4f150d; --rk-cinnabar: #b5301c;
  --rk-gold: #c3923a; --rk-gold-2: #e8cd86; --rk-gold-3: #8f6524;
  --rk-line: rgba(122, 76, 28, .2);
  padding: clamp(56px, 8vw, 110px) 0 0;
}
.rk-sec .sec-head { align-items: center; }
.rk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rk-sv { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font: 600 15px/1.2 var(--font-title); font-stretch: 104%; }
.rk-sv select { min-width: 168px; height: 42px; padding: 0 38px 0 14px; border: 1.5px solid rgba(19, 35, 63, .28); border-radius: 10px; color: var(--ink); cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2334445f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  -webkit-appearance: none; appearance: none; font: 600 16px/1 var(--font-title); font-stretch: 104%; transition: border-color .2s, box-shadow .2s; }
.rk-sv select:hover { border-color: var(--azure); }
.rk-sv select:focus-visible { outline: 0; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(47, 102, 245, .2); }
.rk-time { color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }

.rk { max-width: var(--wrap); margin: 34px auto 0; padding: 0 var(--gut); }
.rk-head { display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line); }
.rk-tabs { display: flex; gap: clamp(8px, 2vw, 26px); min-width: 0; }
.rk-tab { position: relative; padding: 6px 4px 14px; border: 0; background: none; color: var(--ink-2); cursor: pointer; white-space: nowrap; font: 600 19px/1.2 var(--font-title); font-stretch: 104%; transition: color .2s; }
.rk-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.rk-tab:hover { color: var(--azure-2); }
.rk-tab[aria-selected="true"] { color: var(--ink); }
.rk-tab[aria-selected="true"]::after { transform: scaleX(1); }
.rk-tab:focus-visible { outline-offset: -2px; }
.rk-panel { padding-top: 44px; }
.rk-panel[hidden] { display: none; }
.rk-note { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.rk-msg { margin: 26px 0; padding: 26px; border: 1px dashed #c9d6e4; border-radius: var(--r); background: var(--surface); color: var(--ink-2); text-align: center; }

/* ---------- khung "bảng vàng" ---------- */
/* M418-06: viền gỗ sơn mài dày có vân + chỉ vàng trong/ngoài, góc bọc đồng đinh tán, dải sóng mây trên/dưới, sơn thuỷ mờ ở đáy giấy */
.rk-frame { position: relative; margin-top: 8px; padding: 62px clamp(16px, 2.8vw, 42px) clamp(34px, 3.2vw, 48px); border: 11px solid #6a1a0f; color: var(--rk-ink);
  border-image: linear-gradient(135deg, #470f08 0%, #8c2716 16%, #5c160c 33%, #972d1a 50%, #58140b 67%, #882515 84%, #420e07 100%) 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .27 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0 220V150Q70 104 140 132T290 116Q360 58 440 112T600 100Q690 46 770 106T940 116Q1030 70 1100 122T1200 128V220Z' fill='%237a4c1c' fill-opacity='.07'/%3E%3Cpath d='M0 220V178Q110 146 210 166T440 156Q550 124 650 160T870 154Q990 132 1070 164T1200 170V220Z' fill='%237a4c1c' fill-opacity='.09'/%3E%3C/svg%3E") no-repeat center bottom / 100% 150px,
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 252, 240, .9), rgba(255, 252, 240, 0) 70%),
    linear-gradient(180deg, var(--rk-paper) 0%, var(--rk-paper-2) 100%);
  box-shadow: 0 0 0 1.5px var(--rk-gold), 0 0 0 5px rgba(122, 34, 22, .1), inset 0 0 0 2px var(--rk-gold), inset 0 0 0 6px var(--rk-paper), inset 0 0 0 7px rgba(195, 146, 58, .8),
    inset 0 0 54px rgba(122, 76, 28, .2), 0 34px 64px -36px rgba(64, 30, 8, .7); }
.rk-frame::before, .rk-frame::after { content: ""; position: absolute; left: 64px; right: 64px; height: 12px; pointer-events: none; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12'%3E%3Cpath d='M0 6C5 0 10 0 10 6S15 12 20 6 25 0 30 6 35 12 40 6' fill='none' stroke='%23b4852f' stroke-width='1.4'/%3E%3Ccircle cx='10' cy='6' r='1.6' fill='%23b4852f'/%3E%3Ccircle cx='30' cy='6' r='1.6' fill='%23b4852f'/%3E%3C/svg%3E") repeat-x center / 40px 12px; }
.rk-frame::before { top: 16px; }
.rk-frame::after { bottom: 16px; }
.rk-corner { position: absolute; width: 40px; height: 40px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23b4852f' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M3 43V3h40'/%3E%3Cpath d='M9 34V9h25'/%3E%3Cpath d='M15 27V15h12v8h-6v-3'/%3E%3C/g%3E%3Ccircle cx='3.2' cy='3.2' r='2.6' fill='%239c2a1a'/%3E%3C/svg%3E") no-repeat center / contain; }
.rk-corner.tl { top: 11px; left: 11px; }
.rk-corner.tr { top: 11px; right: 11px; transform: scaleX(-1); }
.rk-corner.bl { bottom: 11px; left: 11px; transform: scaleY(-1); }
.rk-corner.br { bottom: 11px; right: 11px; transform: scale(-1, -1); }
.rk-brass { position: absolute; z-index: 1; width: 46px; height: 46px; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(40, 14, 4, .45));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f6e09a'/%3E%3Cstop offset='.45' stop-color='%23c99a3e'/%3E%3Cstop offset='1' stop-color='%23805719'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M1.5 1.5h43v13h-28c-1 0-2 1-2 2v28h-13z' fill='url(%23g)' stroke='%235c3b0f' stroke-width='1.2'/%3E%3Cpath d='M5 5h36M5 5v36' stroke='%23fff3c4' stroke-opacity='.55' stroke-width='1'/%3E%3Ccircle cx='8.5' cy='8.5' r='2.8' fill='%235c3b0f'/%3E%3Ccircle cx='8' cy='8' r='1.2' fill='%23f6e09a'/%3E%3Ccircle cx='36' cy='8' r='2' fill='%235c3b0f'/%3E%3Ccircle cx='8' cy='36' r='2' fill='%235c3b0f'/%3E%3C/svg%3E") no-repeat center / contain; }
.rk-brass.tl { top: -16px; left: -16px; }
.rk-brass.tr { top: -16px; right: -16px; transform: scaleX(-1); }
.rk-brass.bl { bottom: -16px; left: -16px; transform: scaleY(-1); }
.rk-brass.br { bottom: -16px; right: -16px; transform: scale(-1, -1); }
.rk-plaque { position: absolute; top: -5px; left: 50%; z-index: 2; display: flex; align-items: center; transform: translate(-50%, -50%); filter: drop-shadow(0 7px 10px rgba(64, 20, 8, .4)); }
.rk-plaque::before, .rk-plaque::after { content: ""; flex: none; width: 52px; height: 30px; margin: 0 -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 30'%3E%3Cg fill='none' stroke='%23c99a3e' stroke-linecap='round'%3E%3Cpath d='M51 13H27C18 13 14 6 19 3s10 3 6 6c-3 2-6-1-4-3' stroke-width='2.6'/%3E%3Cpath d='M51 18H24c-9 0-15 4-12 9 2 3 7 1 5-2' stroke-width='2.2'/%3E%3Cpath d='M15 13C9 13 4 10 3 6' stroke-width='1.8'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
.rk-plaque::after { transform: scaleX(-1); }
.rk-plaque-in { position: relative; padding: 2px; background: linear-gradient(180deg, #f3d98f, var(--rk-gold) 50%, #8f6524);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%); }
.rk-plaque-in span { display: block; padding: 10px 40px 11px; white-space: nowrap; color: var(--rk-gold-2); text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0 50%);
  background: radial-gradient(ellipse at 50% 0%, #a3321f, var(--rk-lacquer) 55%, var(--rk-lacquer-2)); font: 700 clamp(16px, 1.5vw, 19px)/1.2 var(--rk-serif); letter-spacing: .14em; text-transform: uppercase; }
.rk-plaque-in span::before, .rk-plaque-in span::after { content: "◆"; margin: 0 12px; color: var(--rk-gold); font-size: .62em; vertical-align: .22em; letter-spacing: 0; }

/* ---------- top 3 (M418-08): nằm TRONG bảng, cùng cỡ dòng hạng 4–10; Kim / Ngân / Đồng + hiệu ứng ----------
   nền dòng nhuộm màu + vệt sáng lướt ngang (lớp nền thứ nhất của <tr>, chạy bằng background-position — không dùng giả phần tử trên tr),
   dấu triện hạng 1 có vòng sáng toả, tên hạng 1 vệt ánh kim hẹp, sao lấp lánh quanh tên (vị trí cố định ở m418.js). */
.rk-table tr.rk-top { --tone: 214, 164, 58; --sheen: rgba(255, 242, 196, .9); --rowbg: none;
  background: linear-gradient(105deg, transparent 40%, var(--sheen) 49%, #fff 50%, var(--sheen) 51%, transparent 60%) 160% 0 / 260% 100% no-repeat, var(--rowbg);
  animation: rk-sheen-row 5.5s ease-in-out infinite; }
.rk-table tbody tr.rk-top td, .rk-table tbody tr.rk-top:hover td { background: transparent; border-bottom-color: rgba(var(--tone), .5); }
.rk-table tr.rk-top-1 { --rowbg: linear-gradient(90deg, rgba(240, 192, 80, .45) 0%, rgba(240, 192, 80, .18) 55%, rgba(240, 192, 80, .32) 100%); }
.rk-table tr.rk-top-2 { --tone: 150, 162, 178; --sheen: rgba(255, 255, 255, .95); animation-delay: .7s;
  --rowbg: linear-gradient(90deg, rgba(160, 174, 194, .4) 0%, rgba(160, 174, 194, .14) 55%, rgba(160, 174, 194, .28) 100%); }
.rk-table tr.rk-top-3 { --tone: 176, 112, 60; --sheen: rgba(255, 226, 196, .92); animation-delay: 1.4s;
  --rowbg: linear-gradient(90deg, rgba(212, 136, 74, .34) 0%, rgba(212, 136, 74, .1) 55%, rgba(212, 136, 74, .24) 100%); }
.rk-table tr.rk-top .c-name { position: relative; }
.rk-nm { position: relative; z-index: 1; display: inline-block; max-width: 100%; }
.rk-top-1 .rk-nm { color: #7a4a0c; background: linear-gradient(90deg, #6b3f08 0%, #7e4f0e 38%, #b9821a 45%, #f3c65a 50%, #b9821a 55%, #7e4f0e 62%, #6b3f08 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rk-gold 4s linear infinite; }
.rk-top-2 .rk-nm { color: #2e3a4f; }
.rk-top-3 .rk-nm { color: #6a3a16; }
.rk-r.is-1 { position: relative; box-shadow: inset 0 0 0 2px var(--c), inset 0 0 0 3.2px rgba(251, 239, 216, .8), 0 0 10px rgba(240, 180, 60, .65); }
.rk-r.is-1::after { content: ""; position: absolute; inset: -4px; border: 2px solid #e3aa3a; border-radius: 8px; box-shadow: 0 0 8px rgba(240, 180, 60, .8); animation: rk-ring 2.4s ease-out infinite; }

/* sao lấp lánh */
.rk-spark { position: absolute; z-index: 2; width: calc(var(--s, 10px) * 1.3); height: calc(var(--s, 10px) * 1.3); pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0 12%, var(--sc, #f5c242) 30%, var(--sc, #f5c242) 100%);
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%); filter: drop-shadow(0 0 4px var(--sg, rgba(245, 180, 40, .95))) drop-shadow(0 0 7px var(--sg, rgba(245, 180, 40, .65)));
  animation: rk-twinkle var(--d, 2.6s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.rk-top-2 .rk-spark { --sc: #8fa3bf; --sg: rgba(110, 140, 190, .85); }
.rk-top-3 .rk-spark { --sc: #d9803a; --sg: rgba(210, 120, 50, .85); }

@keyframes rk-sheen-row { 0%, 58% { background-position: 160% 0, 0 0; } 90%, 100% { background-position: -60% 0, 0 0; } }
@keyframes rk-ring { 0% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes rk-gold { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes rk-twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 40%, 60% { opacity: 1; transform: scale(1) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) {
  .rk-table tr.rk-top, .rk-nm, .rk-r.is-1::after, .rk-spark { animation: none !important; }
  .rk-table tr.rk-top { background: var(--rowbg); }
}
html[data-motion="off"] .rk-table tr.rk-top, html[data-motion="off"] .rk-nm, html[data-motion="off"] .rk-r.is-1::after, html[data-motion="off"] .rk-spark { animation: none !important; }
html[data-motion="off"] .rk-table tr.rk-top { background: var(--rowbg); }

/* ---------- bảng ---------- */
.rk-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.rk-table th { padding: 12px 12px; border-bottom: 2px solid var(--rk-gold); background: linear-gradient(180deg, #3d2a18 0%, #2a1b0e 100%); color: var(--rk-gold-2); text-align: left; white-space: nowrap;
  font: 700 14.5px/1.3 var(--rk-serif); letter-spacing: .06em; }
.rk-table th:first-child { border-radius: 4px 0 0 0; }
.rk-table th:last-child { border-radius: 0 4px 0 0; }
.rk-table td { padding: 11px 12px; border-bottom: 1px solid var(--rk-line); color: var(--rk-ink); font-size: 16px; transition: background-color .15s; }
.rk-table tbody tr:nth-child(even) td { background: rgba(195, 146, 58, .08); }
.rk-table tbody tr:hover td { background: rgba(181, 48, 28, .07); }
.rk-table tbody tr:last-child td { border-bottom: 2px solid rgba(195, 146, 58, .6); }
.rk-table .c-rank { width: 72px; }
.rk-table .c-lv { width: 90px; text-align: right; color: var(--rk-cinnabar); font: 800 18px/1 var(--rk-serif); font-variant-numeric: lining-nums tabular-nums; }
.rk-table th.c-lv { text-align: right; color: var(--rk-gold-2); font: 700 14.5px/1.3 var(--rk-serif); }
.rk-table .c-name { font: 700 16.5px/1.35 var(--rk-serif); overflow-wrap: anywhere; }
.rk-table .c-sub { color: var(--rk-ink-2); }
.rk-table .c-empty { color: var(--rk-muted); font: italic 600 15.5px/1.35 var(--rk-serif); letter-spacing: .04em; }
.rk-table .c-empty::before, .rk-table .c-empty::after { content: "—"; margin: 0 8px; opacity: .55; font-style: normal; }
.rk-table .c-empty::before { margin-left: 0; }
.rk-r { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 1.5px solid rgba(122, 76, 28, .45); border-radius: 50%; background: var(--rk-paper-3);
  box-shadow: inset 0 0 0 2.5px var(--rk-paper-3), inset 0 0 0 3.5px rgba(195, 146, 58, .55); color: var(--rk-ink); font: 700 15px/1 var(--rk-serif); font-variant-numeric: lining-nums tabular-nums; }
.rk-r.is-1, .rk-r.is-2, .rk-r.is-3 { border: 0; border-radius: 5px; color: #fbefd8; transform: rotate(-5deg); box-shadow: inset 0 0 0 2px var(--c), inset 0 0 0 3.2px rgba(251, 239, 216, .8); background: var(--c); }
.rk-r.is-1 { --c: var(--rk-cinnabar); }
.rk-r.is-2 { --c: #3d4a63; }
.rk-r.is-3 { --c: #8a4f22; }
.rk-table tr.rk-more { display: none; }
.rk-table.is-open tr.rk-more { display: table-row; }
.rk-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px auto 0; padding: 11px 26px; border: 1.5px solid var(--rk-gold); border-radius: 4px;
  background: linear-gradient(180deg, #8d2a1a, var(--rk-lacquer) 60%, var(--rk-lacquer-2)); color: var(--rk-gold-2); cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--rk-lacquer), inset 0 0 0 3px rgba(232, 205, 134, .45), 0 10px 18px -12px rgba(64, 20, 8, .8);
  font: 700 15px/1.2 var(--rk-serif); letter-spacing: .06em; transition: filter .2s, transform .2s; }
.rk-toggle:hover, .rk-toggle:focus-visible { filter: brightness(1.12); transform: translateY(-1px); }
.rk-toggle svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.rk-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.rk-st { display: inline-block; padding: 2px 10px; border: 1px solid currentColor; border-radius: 3px; white-space: nowrap; font: 700 13px/1.5 var(--rk-serif); letter-spacing: .03em; }
.rk-st.is-ok { background: rgba(31, 107, 78, .08); color: #1f6b4e; }
.rk-st.is-wait { background: rgba(195, 146, 58, .12); color: #7a4f10; }

/* ---------- đua top: giới thiệu + thưởng (cuộn trục) ---------- */
.rk-race { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.rk-intro { margin: 0 0 40px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.rk-badge { display: inline-block; margin-left: 8px; padding: 1px 10px; border: 1.5px solid var(--rk-cinnabar); border-radius: 3px; background: rgba(181, 48, 28, .06); color: var(--rk-cinnabar); vertical-align: 2px;
  transform: rotate(-2deg); font: 700 13px/1.5 var(--rk-serif); letter-spacing: .04em; }
.rk-gift { position: relative; margin: 14px 14px 14px; padding: 26px 24px 22px; border-left: 1px solid rgba(122, 76, 28, .28); border-right: 1px solid rgba(122, 76, 28, .28); color: var(--rk-ink);
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 252, 240, .9), rgba(255, 252, 240, 0) 70%), linear-gradient(180deg, var(--rk-paper) 0%, var(--rk-paper-2) 100%);
  box-shadow: inset 0 14px 18px -16px rgba(64, 30, 8, .5), inset 0 -14px 18px -16px rgba(64, 30, 8, .5), 0 20px 40px -30px rgba(64, 30, 8, .6); }
.rk-gift::before, .rk-gift::after { content: ""; position: absolute; left: -14px; right: -14px; height: 14px; border-radius: 7px;
  background: linear-gradient(180deg, #6b3a1c 0%, #3a1d0c 55%, #24120a 100%); box-shadow: 0 3px 6px -2px rgba(40, 18, 6, .55), inset 0 1px 0 rgba(255, 220, 160, .35); }
.rk-gift::before { top: -12px; }
.rk-gift::after { bottom: -12px; }
.rk-gift h3 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--rk-gold); color: var(--rk-lacquer); text-align: center; font: 800 21px/1.2 var(--rk-serif); letter-spacing: .12em; text-transform: uppercase; }
.rk-gift ul { margin: 0; padding: 0; list-style: none; }
.rk-gift li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(122, 76, 28, .3); font-size: 15px; line-height: 1.55; }
.rk-gift li:last-child { border-bottom: 0; }
.rk-gift li b { color: var(--rk-cinnabar); font: 800 15px/1.55 var(--rk-serif); white-space: nowrap; }
.rk-gift p { margin: 12px 0 0; color: var(--rk-ink-2); font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
  .rk-race { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rk-tools { width: 100%; justify-content: space-between; }
  .rk-sv select { min-width: 140px; }
  .rk-frame { padding: 50px 8px 30px; border-width: 8px; }
  .rk-frame::before, .rk-frame::after { left: 34px; right: 34px; }
  .rk-frame::before { top: 12px; } .rk-frame::after { bottom: 10px; }
  .rk-corner { width: 26px; height: 26px; }
  .rk-corner.tl, .rk-corner.tr { top: 8px; } .rk-corner.bl, .rk-corner.br { bottom: 8px; }
  .rk-corner.tl, .rk-corner.bl { left: 8px; } .rk-corner.tr, .rk-corner.br { right: 8px; }
  .rk-brass { width: 32px; height: 32px; }
  .rk-brass.tl { top: -11px; left: -11px; } .rk-brass.tr { top: -11px; right: -11px; }
  .rk-brass.bl { bottom: -11px; left: -11px; } .rk-brass.br { bottom: -11px; right: -11px; }
  .rk-plaque { top: -4px; }
  .rk-plaque::before, .rk-plaque::after { width: 30px; height: 20px; margin: 0 -4px; }
  .rk-plaque-in span { padding: 8px 24px 9px; font-size: 15px; letter-spacing: .1em; }
  .rk-plaque-in span::before, .rk-plaque-in span::after { margin: 0 6px; }
  .rk-table th, .rk-table td { padding: 10px 6px; font-size: 15px; }
  .rk-table th { font-size: 13.5px; letter-spacing: .03em; }
  .rk-table .c-name { font-size: 15.5px; }
  .rk-table .c-rank { width: 46px; }
  .rk-table .c-lv { width: 52px; }
  .rk-table .c-hide-sm { display: none; }
  .rk-r { min-width: 30px; height: 30px; font-size: 14px; }
  .rk-tab { font-size: 17px; }
  .rk-gift { margin-left: 10px; margin-right: 10px; padding: 24px 14px 20px; }
  .rk-gift::before, .rk-gift::after { left: -10px; right: -10px; }
  .rk-gift li { grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
}
html[data-motion="off"] .rk-tab::after, html[data-motion="off"] .rk-toggle { transition: none; }
