.topic-managed-image { display:block;width:100%;max-height:380px;object-fit:contain; }
.topic-rows .topic-image-row td { padding:0; }
.topic-rows,.topic-sublines {
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
  font-variant-numeric:tabular-nums;
}
.topic-heading {
  container-type:inline-size;
  margin-block-end:6px;
  background:#fffcf6;
  border:1px solid var(--edition-line);
  border-radius:9px;
}
.topic-heading>.section-head {
  padding:9px 13px;
  background:#fffcf6;
  border-bottom:1px solid var(--edition-line);
}
.topic-heading>.section-head h2 {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--edition-dark);
  font-size:1.08rem;
  line-height:1.2;
}
.topic-heading>.section-head h2::before {
  content:"";
  width:3px;
  height:1em;
  border-radius:4px;
  background:#bc914f;
}
.topic-heading .section-head a {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:32px;
  padding:3px 8px;
  border-radius:5px;
  color:var(--edition-dark);
  font-size:.81rem;
  font-weight:710;
}
.topic-heading .section-head a::after {
  content:"";
  width:5px;
  height:5px;
  border-block-start:1.5px solid currentColor;
  border-inline-end:1.5px solid currentColor;
  transform:rotate(45deg);
}
.topic-tabs {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  padding:8px;
  background:#fffcf6;
}
.topic-tabs button {
  min-width:0;
  min-height:40px;
  padding:4px;
  border:1px solid transparent;
  border-radius:5px;
  background:#f4eee2;
  color:var(--edition-ink);
  font-size:.86rem;
  font-weight:660;
  line-height:1.25;
}
.topic-tabs button[aria-pressed=true] {
  border-color:var(--edition-dark);
  background:var(--edition-dark);
  color:#fff6e1;
  font-weight:760;
}
@container (min-width:360px) {
  .topic-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@container (min-width:460px) {
  .topic-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@container (min-width:550px) {
  .topic-tabs { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@container (min-width:650px) {
  .topic-tabs { grid-template-columns:repeat(7,minmax(0,1fr)); }
  .topic-tabs button { min-height:36px; }
}
@media(hover:hover) {
  .topic-tabs button[aria-pressed=false]:hover { border-color:#d6c6aa;background:#eee4d2; }
  .topic-heading .section-head a:hover { background:#f4eee2;text-decoration:none; }
}
.ball-red { --ball-light:#e96663; --ball-color:#b92234; --ball-shade:#6a1022; }
.ball-blue { --ball-light:#69a9dd; --ball-color:#256bbc; --ball-shade:#173971; }
.ball-green { --ball-light:#67b98f; --ball-color:#197551; --ball-shade:#124635; }
.ball:not(.ball-empty),.draw-card .ball:not(.ball-empty) {
  border-radius:50%;
  background:radial-gradient(circle at 29% 19%,#fff9 0%,#fff0 35%),
    radial-gradient(circle at 38% 32%,var(--ball-light),var(--ball-color) 59%,var(--ball-shade) 96%);
  box-shadow:inset 0 -2px 5px #22100b36,0 2px 3px #38271645;
}
.ball-value {
  display:grid;
  place-items:center;
  width:62%;
  aspect-ratio:1;
  color:#241c17;
  font-size:.78em;
  line-height:1;
  text-shadow:none;
  border-radius:50%;
  background:linear-gradient(#fffdf5,#eadfc5);
  box-shadow:inset 0 0 0 1px #fff9,0 1px 2px #4322165e;
}
.number-chip { width:1.64rem;flex:none;display:inline-grid;font-size:.88rem;vertical-align:middle; }
.number-chip.number-hit { outline:2px solid #e0a538;outline-offset:1px; }
.draw-card .ball-pair,.draw-card .ball-pair:has(.ball-red,.ball-blue,.ball-green) {
  background:transparent;
  box-shadow:none;
  padding:3px 0 4px;
}
.draw-card .ball-pair.special { outline:0; }
.draw-card .ball,.draw-card .special .ball {
  width:min(100%,57px);
  min-height:0;
  aspect-ratio:1;
  border-radius:50%;
  font-size:clamp(1.12rem,5.1vw,1.8rem);
}
.draw-card .special .ball { outline:2px solid #c8a655;outline-offset:1px; }
.draw-card .ball.ball-empty { background:#f1e7d5;color:#73634d;border:1px solid #dac6a5; }
.draw-card .ball-pair .ball-attributes { background:#f6eedc; }
.animal-label {
  --animal-size:1.58em;
  position:relative;
  isolation:isolate;
  display:inline-grid;
  place-items:center;
  box-sizing:border-box;
  width:var(--animal-size);
  height:var(--animal-size);
  vertical-align:middle;
  overflow:hidden;
  border-radius:50%;
  color:#23170d;
  background:#f6ead3;
}
.animal-label img,.zodiac-switch .animal-label img,.zodiac-seal .animal-label img,
.draw-card .ball-attributes .animal-label img,.compact .animal-label img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  opacity:.71;
  object-fit:cover;
}
.animal-character {
  position:relative;
  z-index:1;
  line-height:1;
  font-weight:850;
  text-shadow:-1px 0 #fff3d9,1px 0 #fff3d9,0 -1px #fff3d9,0 1px #fff3d9,0 0 3px #fff5de;
}
.zodiac-switch .animal-label { --animal-size:1.8em;font-size:1.18rem; }
.zodiac-switch button[aria-pressed=true] .animal-label { outline:2px solid #e4bb67; }
.zodiac-seal .animal-label { border-radius:4px; }
.zodiac-caption .zodiac-caption-numbers { display:flex;flex-wrap:wrap;gap:6px; }
.zodiac-fact .ball { width:min(100%,43px);font-size:1.17rem; }
.period-board[data-topic-category] > header { justify-content:center; }
body[data-edition=hall] [data-topic-category="绝杀二肖"] > header {
  position:relative;
  isolation:isolate;
  min-height:clamp(68px,11vw,86px);
  overflow:hidden;
  border-block:1px solid #bc9056;
  color:#fff0c8;
  background:
    linear-gradient(110deg,transparent 40%,#ffe1a329 51%,transparent 63%) 100% 50% / 270% 100% no-repeat,
    repeating-radial-gradient(ellipse at 50% 140%,transparent 0 15px,#e9b87913 16px 17px,transparent 18px 30px),
    linear-gradient(105deg,#3b101b,#731f2b 51%,#3b101b);
  animation:zodiac-title-light 7s ease-in-out infinite;
}
body[data-edition=hall] [data-topic-category="绝杀二肖"] > header::before,
body[data-edition=hall] [data-topic-category="绝杀二肖"] > header::after {
  content:"";
  position:absolute;
  inset-block-start:50%;
  width:clamp(44px,8vw,58px);
  aspect-ratio:1;
  translate:0 -50%;
  border:1px solid #e9bb76;
  border-radius:50%;
  outline:1px solid #d7a35f;
  outline-offset:3px;
  background:linear-gradient(145deg,#e9be7c38,#57251e3d),var(--zodiac-emblem) center / cover;
  filter:grayscale(.75) sepia(.7);
  opacity:.68;
  pointer-events:none;
}
body[data-edition=hall] [data-topic-category="绝杀二肖"] > header::before {
  --zodiac-emblem:url('/zodiac-dragon-icon.jpg');
  inset-inline-start:clamp(20px,10%,84px);
}
body[data-edition=hall] [data-topic-category="绝杀二肖"] > header::after {
  --zodiac-emblem:url('/zodiac-tiger-icon.jpg');
  inset-inline-end:clamp(20px,10%,84px);
}
body[data-edition=hall] [data-topic-category="绝杀二肖"] > header h3 {
  position:relative;
  z-index:1;
  font-size:clamp(1.42rem,3.6vw,1.92rem);
  letter-spacing:.12em;
  color:#fff0c8;
  text-shadow:0 2px 4px #2d0712;
  animation:zodiac-title-pulse 1.8s ease-in-out infinite;
}
@keyframes zodiac-title-light {
  0%,17% { background-position:100% 50%,0 0,0 0; }
  72%,100% { background-position:0% 50%,0 0,0 0; }
}
@keyframes zodiac-title-pulse {
  0%,100% { transform:scale(1);text-shadow:0 2px 4px #2d0712; }
  50% { transform:scale(1.08);text-shadow:0 2px 4px #2d0712,0 0 9px #ffd89299; }
}
@media(prefers-reduced-motion:reduce) {
  body[data-edition=hall] [data-topic-category="绝杀二肖"] > header,
  body[data-edition=hall] [data-topic-category="绝杀二肖"] > header h3 { animation:none; }
}
.topic-rows tr:nth-child(odd),.topic-sublines tr:nth-child(odd) { background:#faf4e8; }
.topic-rows th,.topic-rows td,.topic-sublines th,.topic-sublines td {
  text-align:center;
  padding:8px 6px;
  border-bottom:1px solid #e7ddcb;
  vertical-align:middle;
}
.topic-rows tbody th,.topic-sublines th { width:18%; font-weight:740; overflow-wrap:anywhere; }
.topic-rows thead th { background:#eee2cc; color:#543d1c; }
.topic-rows thead th:first-child { width:18%; }
.topic-rows thead th:last-child,.topic-result { width:26%; }
.topic-result { color:#3d362f; font-size:.96rem; }
.topic-pending,.topic-verdict { display:inline-block; }
.topic-result-ball { display:inline-flex;align-items:center;gap:3px;white-space:nowrap;vertical-align:middle; }
.topic-verdict { margin-inline-start:.24em; }
.topic-correct { color:#17603d; }
.topic-wrong { color:#a02724; }
.topic-pending { color:#695741; font-weight:700; }
.topic-retro { display:block;color:#695741;font-size:.67rem; }
.topic-issue-link { text-decoration:underline; text-underline-offset:.18em; }
.topic-selection,.topic-sublines td:nth-child(2) { color:#832920; font-weight:780; }
.topic-selection small,.topic-pair-row small { color:#60513b; }
.topic-rows tbody tr:last-child > *,.topic-sublines tbody tr:last-child > * { border-bottom:0; }
.topic-tokens { display:inline-flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.18em .26em; max-width:100%; vertical-align:middle; }
.topic-tokens i { font-style:normal;opacity:.6; }
.topic-numbers,.topic-number-grid { letter-spacing:.025em; font-variant-numeric:tabular-nums; }
.topic-numbers { column-gap:.4em; }
.topic-hit { background:#ffdf7d; color:#752519; border-radius:2px; padding-inline:.1em; }
.topic-animal-hit { border-radius:50%;padding:0;box-shadow:0 0 0 2px #e0a538; }
.topic-stack,.topic-issue-block,.topic-pair-row { min-width:0; }
.topic-stack { display:grid; justify-items:center; gap:3px; }
.topic-stack > div,.topic-stack > span { min-width:0; max-width:100%; }
.topic-guide,.topic-block-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:4px 16px;
  padding:6px 8px;
  background:#efe5d0;
  color:#5b4528;
  border-bottom:1px solid #ddd0b6;
  font-size:.78rem;
}
.topic-guide { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));font-size:1.02rem;gap:6px; }
.topic-guide-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.topic-guide-item,.topic-guide-item>span { display:flex;align-items:center;justify-content:center;gap:3px;flex-wrap:wrap; }
.topic-guide-item { min-width:0;background:#fff8eab3;border:1px solid #e5d6b8;border-radius:6px;padding:4px; }
.topic-guide-item b { margin-inline-end:4px;color:#543b22; }
.topic-block-heading { justify-content:space-between; padding-inline:12px; font-size:.86rem; font-weight:750; }
.topic-issue-block+.topic-issue-block { border-top:2px solid var(--edition-line); }
.topic-edition-5858 .topic-selection { color:#184e75; }
.topic-edition-6868 .topic-selection { color:#194e3c; }
.topic-pair-row,.topic-feature-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.22fr) minmax(0,1.3fr);
  align-items:center;
  justify-items:center;
  gap:5px;
  padding:5px 6px;
  text-align:center;
  border-bottom:1px solid #e7ddcb;
}
.topic-pair-row:nth-child(odd) { background:#faf4e8; }
.topic-feature-row { grid-template-columns:1fr 1fr; color:#8b2a37; font-weight:760; }
.topic-pairs,.topic-number-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
.topic-style-pair-grid .topic-pairs { grid-template-columns:repeat(2,minmax(0,1fr)); }
.topic-pair { white-space:nowrap; }
.topic-number-grid { grid-template-columns:repeat(12,minmax(0,1fr)); justify-items:center;gap:4px; }
.topic-issue-block .topic-result { width:27%; }
.topic-history { border-top:1px solid var(--edition-line); }
.topic-history summary {
  display:flex;
  align-items:center;
  gap:.42rem;
  min-height:42px;
  padding:6px 12px;
  color:var(--edition-dark);
  font-weight:740;
  cursor:pointer;
  list-style:none;
}
.topic-history summary::-webkit-details-marker { display:none; }
.topic-history summary::before {
  content:"";
  width:.45rem;
  height:.45rem;
  border-inline-end:2px solid currentColor;
  border-block-end:2px solid currentColor;
  transform:rotate(-45deg);
  margin-inline-end:.2rem;
  flex:none;
}
.topic-history details[open]>summary::before,.topic-history[open]>summary::before { transform:rotate(45deg); }
.topic-history>summary { background:#f1e8d7; }
.topic-history>summary>span,.topic-history-result { margin-inline-start:auto; }
.topic-history>summary>span { font-size:.82rem;color:#5d4b34; }
.topic-history-issue { border-top:1px solid #e7ddcb; }
.topic-history-issue>summary { padding-inline:15px; font-size:.85rem; }
.topic-history-issue[open]>summary { background:#faf4e8; }
.topic-history-result { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.35em; }
.topic-history-issue .topic-block-heading { padding-block:5px; }
.zodiac-date-control { display:flex; align-items:center; flex-wrap:wrap; gap:5px; font-size:.8rem; }
.zodiac-date-control input { color:#2f271b; background:#fff8e8; border:1px solid #dfc38a; border-radius:4px; padding:3px 5px; min-width:0; }
.zodiac-fact .zodiac-half-wave { white-space:nowrap; }
@media(max-width:550px) {
  .topic-heading>.section-head { padding:6px 9px; }
  .topic-tabs button { font-size:.82rem; }
  .topic-rows,.topic-sublines,.topic-pair-row,.topic-feature-row { font-size:.94rem; }
  .topic-rows th,.topic-rows td,.topic-sublines th,.topic-sublines td { padding:6px 2px; }
  .topic-result { font-size:.87rem; }
  .topic-choice-label { font-size:.83rem; }
  .topic-number-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .number-chip { width:1.48rem;font-size:.78rem; }
  .topic-pairs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .topic-guide,.topic-guide-4 { grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px 4px; }
}
@media(max-width:365px) {
  .topic-pairs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .topic-tokens { column-gap:.16em; }
  .zodiac-date-control { font-size:.72rem; }
}
.category-intro { padding:10px 14px; white-space:pre-line; overflow-wrap:anywhere; }
