:root {
  --bg: #f6f1e6; --bg2: #efe7d6; --ink: #1d1a14; --ink2: #4a4436; --ink3: #7a725f; --line: #e2d8c3; --card: #fffdf8;
  --accent: #e76f51; --accent2: #f4a261; --good: #2a9d8f; --bad: #d1495b;
  --blue: #3b82f6; --blue-d: #1e40af; --red: #ef4444; --red-d: #991b1b;
  --grass: #79bf5f; --grass2: #6cb453; --sand: #e9c46a; --water: #38b6e8; --water2: #1f8fd0;
  --chrome: 300px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15130f; --bg2: #1d1a15; --ink: #f1ebdd; --ink2: #cfc6b3; --ink3: #9a917e; --line: #34302a; --card: #221f1a; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", sans-serif; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.emoji, .face, .rules-art, .vs-av, .result-icon, .choice-icon, .paws { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* ---------- top bar ---------- */
.ac-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ac-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; font-size: 17px; }
.ac-brand .emoji { font-size: 22px; }
.ac-top-right { display: flex; align-items: center; gap: 8px; }
.ac-online { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.ac-online i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: live 2s infinite; }
.ac-online b { color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.ac-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 16px; }
.ac-lang { font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }

/* ---------- hero ---------- */
.ac-hero { text-align: center; padding: 10px 16px 4px; }
.ac-hero h1 { margin: 0; font-size: clamp(22px, 5.2vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 850; }
.ac-hero p { margin: 2px 0 0; color: var(--ink3); font-size: 14px; }

/* ---------- stage ---------- */
.ac-stage { --w: min(100%, calc((100svh - var(--chrome)) * 7 / 9), 560px); width: var(--w); margin: 6px auto 0; padding: 0 0 8px; position: relative; }
@media (max-width: 600px) { .ac-stage { --w: min(calc(100vw - 20px), calc((100svh - var(--chrome)) * 7 / 9)); } }
/* Short portrait screens: smaller title so the board, both bars and the buttons stay on one screen. */
@media (max-height: 760px) and (orientation: portrait), (max-height: 760px) and (min-width: 900px) {
  :root { --chrome: 268px; }
  .ac-hero { padding: 4px 16px 0; }
  .ac-hero h1 { font-size: 20px; }
  .ac-hero p { display: none; }
  .ac-bar { height: 40px; margin: 4px 0; }
  .ac-actions { margin-top: 2px; }
  .ac-actions button { min-height: 34px; }
}
/* Landscape phones: board on the left, players and buttons on the right. */
@media (orientation: landscape) and (max-height: 560px) {
  .ac-top { height: 44px; }
  .ac-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
  .ac-stage { --bw: calc((100svh - 58px) * 7 / 9); width: auto; margin: 6px auto 0; display: grid; grid-template-columns: var(--bw) minmax(200px, 260px); grid-template-rows: auto auto 1fr auto; gap: 0 14px; justify-content: center; }
  .ac-stage > .ac-boardwrap { grid-column: 1; grid-row: 1 / span 4; width: var(--bw); }
  #bar-opp { grid-column: 2; grid-row: 1; }
  #banner { grid-column: 2; grid-row: 2; }
  #bar-me { grid-column: 2; grid-row: 3; align-self: end; }
  .ac-actions { grid-column: 2; grid-row: 4; justify-content: stretch; }
  .ac-actions button { flex: 1; }
  .panel { padding: 14px 14px 12px; }
  .panel h2 { font-size: 17px; }
  .rules-art { font-size: 26px; margin: 6px 0 2px; }
  .panel p { font-size: 13px; margin-bottom: 6px; }
  .choice { padding: 8px 10px; margin-top: 6px; }
  .choice-icon { font-size: 22px; width: 30px; }
  .btn { min-height: 38px; font-size: 14px; }
}
.ac-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; margin: 6px 0; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.ac-bar .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #fff; font-weight: 800; flex: none; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",Inter,sans-serif; }
.ac-bar[data-side="0"] .av { background: linear-gradient(145deg, #60a5fa, var(--blue-d)); }
.ac-bar[data-side="1"] .av { background: linear-gradient(145deg, #f87171, var(--red-d)); }
.ac-bar .who { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ac-bar .name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-bar .color { font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.ac-bar .taken { flex: 1; text-align: right; font-size: 15px; letter-spacing: -2px; overflow: hidden; white-space: nowrap; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.ac-bar .thinking { display: inline-flex; gap: 3px; }
.ac-bar .thinking[hidden] { display: none; }
.ac-bar .thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink3); animation: dot 1.1s infinite; }
.ac-bar .thinking i:nth-child(2) { animation-delay: .15s; } .ac-bar .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ac-bar .clock { font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 6px 8px; border-radius: 8px; background: var(--bg2); font-variant-numeric: tabular-nums; }
.ac-bar .clock.is-low { background: var(--bad); color: #fff; animation: pulse .8s infinite; }
.ac-bar.is-active[data-side="0"] { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.ac-bar.is-active[data-side="1"] { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent); }
@keyframes pulse { 50% { transform: scale(1.06); } }

.ac-boardwrap { position: relative; width: 100%; aspect-ratio: 7 / 9; }
.ac-board { position: absolute; inset: 0; container-type: inline-size; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 5px #3d5a2a, 0 0 0 7px #2b4220, 0 18px 40px rgba(30, 40, 20, .35); background: var(--grass); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
#cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(9, 1fr); }
.cell { position: relative; background:
  radial-gradient(circle at 30% 25%, rgba(255,255,255,.10) 0 18%, transparent 19%),
  radial-gradient(circle at 70% 80%, rgba(0,0,0,.05) 0 14%, transparent 15%), var(--grass); }
.cell.alt { background-color: var(--grass2); background-image: radial-gradient(circle at 65% 30%, rgba(255,255,255,.08) 0 16%, transparent 17%), radial-gradient(circle at 25% 75%, rgba(0,0,0,.06) 0 12%, transparent 13%); }
.cell.water { background: linear-gradient(115deg, var(--water) 0%, #5fd0f5 25%, var(--water) 45%, var(--water2) 75%, var(--water) 100%); background-size: 300% 300%; animation: flow 7s linear infinite; box-shadow: inset 0 0 0 0 transparent; }
.cell.water::after { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.18) 0 2px, transparent 3px 14px); opacity: .55; animation: shimmer 3.5s ease-in-out infinite alternate; }
.cell.water.wt { box-shadow: inset 0 4px 0 rgba(255,255,255,.35); }
.cell.water.wt.wl { border-top-left-radius: 22%; } .cell.water.wt.wr { border-top-right-radius: 22%; }
.cell.water.wb.wl { border-bottom-left-radius: 22%; } .cell.water.wb.wr { border-bottom-right-radius: 22%; }
@keyframes flow { to { background-position: 300% 0; } }
@keyframes shimmer { from { transform: translate(-3%, -2%); } to { transform: translate(3%, 2%); } }
.cell.trap { background: var(--sand); }
.cell.trap .trap-mark { position: absolute; inset: 14%; border-radius: 22%; background: repeating-linear-gradient(45deg, rgba(120, 80, 30, .45) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgba(120, 80, 30, .45) 0 2px, transparent 2px 9px); }
.cell.trap.side-0 { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--blue) 45%, transparent); }
.cell.trap.side-1 { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--red) 45%, transparent); }
.cell.den { background: radial-gradient(circle at 50% 62%, #1d140e 0 30%, #5b4130 31% 56%, #8a6a4c 57%); }
.cell.den .den-mark { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6cqw; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.cell.den.side-0 { box-shadow: inset 0 0 0 4px var(--blue); } .cell.den.side-1 { box-shadow: inset 0 0 0 4px var(--red); }
.cell.last-from::before { content: ''; position: absolute; inset: 30%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .7); }
.cell.last-to::before { content: ''; position: absolute; inset: 0; background: rgba(255, 236, 120, .35); }

/* ---------- pieces ---------- */
#pieces, #hints { position: absolute; inset: 0; pointer-events: none; }
.piece, .hint { pointer-events: auto; }
.piece { position: absolute; left: 0; top: 0; width: calc(100% / 7); height: calc(100% / 9); transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%)); display: grid; place-items: center; z-index: 1; }
.piece.is-moving { z-index: 5; }
.disc { position: relative; width: 84%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 28%, #fffef9 0 30%, #f3e8cf 70%, #e2d2ad); transition: transform .18s cubic-bezier(.2,.8,.3,1.4), box-shadow .2s, opacity .3s, filter .3s; }
.side-0 .disc { border: .9cqw solid var(--blue); box-shadow: 0 .7cqw 0 var(--blue-d), 0 1.6cqw 2.4cqw rgba(0,0,0,.28); }
.side-1 .disc { border: .9cqw solid var(--red); box-shadow: 0 .7cqw 0 var(--red-d), 0 1.6cqw 2.4cqw rgba(0,0,0,.28); }
.face { font-size: 6.6cqw; line-height: 1; transform: translateY(2%); filter: drop-shadow(0 1px 0 rgba(0,0,0,.12)); }
.side-1 .face { transform: translateY(2%) scaleX(-1); }
.rank { position: absolute; right: -3%; bottom: -3%; min-width: 3.9cqw; height: 3.9cqw; padding: 0 .6cqw; border-radius: 99px; display: grid; place-items: center; font: 800 2.5cqw/1 Inter, system-ui, sans-serif; color: #fff; border: .4cqw solid #fffdf6; }
.side-0 .rank { background: var(--blue-d); } .side-1 .rank { background: var(--red-d); }
.piece.can-move .disc { animation: ready 1.8s ease-in-out infinite; }
@keyframes ready { 50% { filter: brightness(1.08) drop-shadow(0 0 1.2cqw rgba(255, 245, 160, .95)); } }
.piece.is-selected { z-index: 4; }
.piece.is-selected .disc { transform: translateY(-9%) scale(1.1); animation: none; filter: drop-shadow(0 0 1.6cqw rgba(255, 220, 90, 1)); }
.piece.is-trapped .disc { filter: saturate(.55) brightness(.92); }
.piece.is-trapped .disc::after { content: ''; position: absolute; inset: -4%; border-radius: 50%; background: repeating-linear-gradient(45deg, rgba(90, 60, 20, .55) 0 2px, transparent 2px 8px), repeating-linear-gradient(-45deg, rgba(90, 60, 20, .55) 0 2px, transparent 2px 8px); pointer-events: none; }
.piece.is-trapped .rank { background: #b91c1c; }
.piece.trap-snap .disc::after { animation: net .45s ease-out; }
@keyframes net { from { transform: translateY(-60%) scale(1.4); opacity: 0; } to { transform: none; opacity: 1; } }
.piece.is-doomed .disc { transform: scale(.3) rotate(-25deg); opacity: 0; filter: brightness(2); transition: transform .2s ease-in, opacity .2s ease-in, filter .1s; }

/* ---------- hints ---------- */
#hints { z-index: 3; }
.hint { position: absolute; left: 0; top: 0; width: calc(100% / 7); height: calc(100% / 9); transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%)); display: grid; place-items: center; cursor: pointer; }
.hint i { display: block; border-radius: 50%; }
.hint--move i, .hint--swim i { width: 30%; aspect-ratio: 1; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); animation: pop .25s cubic-bezier(.2,.8,.3,1.5); }
.hint--swim i { background: #e0f7ff; box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 2px 6px rgba(0,0,0,.3); }
.hint--capture i { width: 90%; aspect-ratio: 1; border: 1.1cqw solid rgba(239, 68, 68, .95); box-shadow: 0 0 1.6cqw rgba(239, 68, 68, .8), inset 0 0 1.2cqw rgba(239, 68, 68, .6); animation: ring 1s ease-in-out infinite; }
.hint--den i { width: 62%; aspect-ratio: 1; background: radial-gradient(circle, #fff6c2, #ffd23f 60%, rgba(255, 210, 63, 0) 72%); box-shadow: 0 0 2.4cqw #ffd23f; animation: ring .9s ease-in-out infinite; }
.hint--den i::after { content: '★'; display: grid; place-items: center; height: 100%; color: #8a5a00; font-size: 4.2cqw; }
@keyframes pop { from { transform: scale(0); } }
@keyframes ring { 50% { transform: scale(1.08); } }

/* ---------- fx, toast, screens ---------- */
.ac-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.ac-toast { position: absolute; left: 50%; top: 10px; transform: translate(-50%, -12px); opacity: 0; z-index: 7; max-width: 92%; padding: 8px 14px; border-radius: 99px; background: rgba(20, 18, 14, .86); color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.ac-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ac-toast.good { background: rgba(21, 128, 61, .92); } .ac-toast.bad { background: rgba(185, 28, 28, .92); }
.ac-banner { margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: #fff4d6; color: #7a4e00; font-size: 13.5px; font-weight: 600; text-align: center; }
.ac-screen { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 12px; border-radius: 16px; background: rgba(20, 26, 14, .42); backdrop-filter: blur(5px) saturate(1.1); -webkit-backdrop-filter: blur(5px); animation: fade .25s; }
.ac-screen[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.panel { position: relative; width: min(100%, 380px); max-height: 100%; overflow: auto; padding: 22px 20px 18px; border-radius: 22px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: rise .35s cubic-bezier(.2,.8,.3,1.2); }
@keyframes rise { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.panel h2 { margin: 6px 0 6px; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.panel p { margin: 0 0 12px; color: var(--ink2); font-size: 15px; }
.panel .muted { color: var(--ink3); }
.row { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.btn { flex: 1; min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #f08a6c, var(--accent)); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 4px 0 #b9533a; transition: transform .1s, box-shadow .1s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9533a; }
.btn--ghost { background: var(--bg2); color: var(--ink); box-shadow: 0 4px 0 var(--line); }
.btn--ghost:active { box-shadow: 0 1px 0 var(--line); }
.skip { position: absolute; top: 10px; right: 10px; border: 0; background: var(--bg2); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.rules-art { font-size: 40px; line-height: 1.25; margin: 14px 0 4px; letter-spacing: 2px; }
.rules-art small { display: block; font: 700 12px/1.4 Inter, system-ui, sans-serif; color: var(--ink3); letter-spacing: .02em; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: width .2s; }
.dots i.on { width: 20px; border-radius: 99px; background: var(--accent); }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 0; padding: 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--bg); text-align: left; flex-wrap: wrap; }
button.choice:hover, button.choice:focus-visible { border-color: var(--accent); }
.choice--online { background: linear-gradient(135deg, #fff1e8, #ffe0cf); border-color: #f6b79f; }
@media (prefers-color-scheme: dark) { .choice--online { background: linear-gradient(135deg, #3a2419, #4a2a1c); border-color: #7a4430; } }
.choice-icon { font-size: 30px; width: 44px; text-align: center; }
.choice b { display: block; font-size: 17px; } .choice small { display: block; color: var(--ink3); font-size: 13px; }
.levels { display: flex; gap: 6px; width: 100%; margin-top: 4px; }
.lvl { flex: 1; min-height: 40px; border-radius: 12px; border: 0; background: var(--card); box-shadow: 0 3px 0 var(--line); font-weight: 700; }
.lvl:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.link { margin-top: 12px; border: 0; background: none; color: var(--ink3); text-decoration: underline; font-size: 13.5px; }
.paws { font-size: 26px; display: flex; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.paws span { animation: walk 1.2s infinite; } .paws span:nth-child(2) { animation-delay: .2s; } .paws span:nth-child(3) { animation-delay: .4s; }
@keyframes walk { 0%, 100% { opacity: .2; transform: translateY(4px) rotate(-12deg); } 50% { opacity: 1; transform: translateY(-4px) rotate(8deg); } }
.vs-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 12px; }
.vs-p { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; animation: slideL .5s cubic-bezier(.2,.8,.3,1.3); }
.vs-p:last-child { animation-name: slideR; }
.vs-p b { font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-av { font-size: 38px; }
.vs-x { font-size: 26px; font-weight: 900; font-style: italic; color: var(--accent); animation: boom .5s .25s both cubic-bezier(.2,.8,.3,1.8); }
@keyframes slideL { from { transform: translateX(-40px); opacity: 0; } } @keyframes slideR { from { transform: translateX(40px); opacity: 0; } }
@keyframes boom { from { transform: scale(2.4); opacity: 0; } }
.result-icon { font-size: 58px; line-height: 1; margin-top: 4px; animation: boom .6s cubic-bezier(.2,.8,.3,1.6); }
.panel--result.is-win h2 { color: #c47f00; } .panel--result.is-lose h2 { color: var(--bad); }
.ac-stage.is-lost .ac-board { filter: grayscale(.55) brightness(.85); transition: filter 1s; }
.ac-stage.is-won .ac-board { animation: glow 1.4s ease-out; }
@keyframes glow { 30% { box-shadow: 0 0 0 5px #3d5a2a, 0 0 0 7px #2b4220, 0 0 60px rgba(255, 210, 63, .9); } }

.ac-actions { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.ac-actions button { min-height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; color: var(--ink2); }

/* ---------- dialogs ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; max-width: min(92vw, 520px); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(10, 10, 8, .5); }
.dlg { padding: 20px; }
.dlg h2 { margin: 0 0 8px; font-size: 20px; }
.dlg ul { padding-left: 20px; margin: 0; } .dlg li { margin: 4px 0; }
.dlg .row { margin-top: 16px; }

/* ---------- content ---------- */
.ac-content { max-width: 760px; margin: 28px auto 0; padding: 0 18px 40px; }
.ac-content h2 { font-size: 24px; letter-spacing: -0.01em; margin: 36px 0 10px; line-height: 1.25; }
.ac-content h3 { font-size: 18px; margin: 22px 0 6px; }
.ac-content p, .ac-content li { color: var(--ink2); }
.ac-content table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.ac-content th, .ac-content td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.ac-content th { color: var(--ink3); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.ac-content td.e { font-size: 22px; width: 44px; }
.ac-content details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0; background: var(--card); }
.ac-content summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.ac-content details p { margin: 8px 0 0; }
.ac-content .note { font-size: 14px; color: var(--ink3); }
.ac-cta { display: inline-block; margin-top: 6px; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.ac-foot { border-top: 1px solid var(--line); padding: 22px 18px 36px; text-align: center; color: var(--ink3); font-size: 13.5px; }
.ac-foot a { color: var(--ink2); }
.ac-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.noscript { padding: 16px; text-align: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
