:root {
  color-scheme: light;
  --rg-wine-950: #260101;
  --rg-wine-850: #520505;
  --rg-red-700: #a70d08;
  --rg-red-600: #c91b10;
  --rg-gold-500: #d99a24;
  --rg-gold-300: #f6d47a;
  --rg-ivory-100: #fff7df;
  --rg-ivory-050: #fffdf4;
  --rg-ink-900: #241006;
  --rg-jade-600: #1f8a66;
  --rg-blue-600: #2365c8;
  --rg-radius: 8px;
  --accent: var(--rg-red-700);
  --accent-soft: #fff1c2;
  --blue: var(--rg-blue-600);
  --focus: rgba(217, 154, 36, 0.34);
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-data: "SFMono-Regular", "Cascadia Mono", "Liberation Mono", Menlo, Consolas, monospace;
  --font-display: "Songti SC", STSong, "Noto Serif CJK SC", "PingFang SC", serif;
  --gold: var(--rg-gold-500);
  --ink: var(--rg-ink-900);
  --line: #e2c47d;
  --line-strong: #c69632;
  --muted: #77522a;
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --paper: #2b0101;
  --red: var(--rg-red-600);
  --surface: var(--rg-ivory-050);
  --shadow: 0 18px 44px rgba(38, 1, 1, 0.18);
  --tap-size: 44px;
  --rg-ui-gold-text: #ffe59c;
  --rg-ui-icon-gold: #ffd86a;
  --rg-ui-icon-glow: rgba(255, 216, 106, 0.34);
  --rg-ui-red-text: #790000;
  --rg-ui-red-text-hover: #5c0000;
  --rg-ui-dark-pill: rgba(70, 0, 0, 0.42);
  --rg-ui-dark-control: rgba(53, 0, 0, 0.38);
  --rg-ui-ivory-panel: #fff8e8;
  --rg-ui-line-gold: #e7c57a;
  --rg-ui-row-line: #ead6ad;
  --rg-ui-post-title-marker: #bf1308;
  --rg-ui-post-copy: #5b3217;
  --rg-ui-tag-text: #7a0000;
  --rg-ui-reward-text: #b00000;
  --rg-result-won-bg: #fff0ed;
  --rg-result-won-border: color-mix(in srgb, var(--red) 34%, var(--gold));
  --rg-result-won-text: var(--red);
  --rg-result-lost-bg: #eef5ff;
  --rg-result-lost-border: color-mix(in srgb, var(--blue) 30%, var(--line));
  --rg-result-lost-text: #20538f;
  --rg-result-neutral-bg: color-mix(in srgb, var(--gold) 14%, #fff);
  --rg-result-neutral-border: color-mix(in srgb, var(--gold) 34%, var(--line));
  --rg-result-neutral-text: var(--accent);
  --rg-action-gold-bg: linear-gradient(180deg, #fff3aa 0%, #f2c24a 48%, #d9860e 100%);
  --rg-action-gold-border: rgba(255, 226, 132, 0.76);
  --rg-action-gold-shadow: inset 0 1px 0 rgba(255, 255, 230, 0.7), 0 6px 16px rgba(42, 0, 0, 0.24);
  --rg-post-filter-columns: minmax(280px, 1fr) minmax(140px, 0.35fr) minmax(120px, 0.3fr) max-content;
  --rg-post-filter-gap: 12px;
  --rg-post-filter-action-gap: 10px;
  --rg-post-filter-padding: 12px 16px 14px;
  --rg-post-card-head-height: 54px;
  --rg-post-list-gap: 12px;
  --rg-post-list-padding: 8px 14px;
  --rg-post-list-first-padding: 10px;
  --rg-post-meta-gap: 9px 12px;
  --rg-post-detail-block-gap: 18px;
  --rg-post-detail-block-padding: 16px;
  --rg-post-content-gap: 8px;
  --rg-post-content-padding: 10px 14px;
  --rg-float-nav-size: 66px;
  --rg-float-nav-size-compact: 54px;
  --rg-brand-watermark: "龍";
  --rg-icon-home: "⌂";
  --rg-icon-draws: "●";
  --rg-icon-gallery: "▣";
  --rg-icon-posts: "◆";
  --rg-icon-me: "◎";
}

* {
  box-sizing: border-box;
}

html {
  background: var(--rg-wine-950);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, rgba(246, 212, 122, 0.16), transparent 25rem),
    radial-gradient(circle at 90% 8%, rgba(201, 27, 16, 0.18), transparent 26rem),
    linear-gradient(180deg, var(--rg-wine-950) 0%, #3b0302 46%, #1b0101 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

button,
input,
select,
textarea,
summary {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  box-shadow: 0 0 0 4px var(--focus);
  outline: 0;
}

button:not(:disabled):hover,
summary:hover,
.admin-head a:hover,
.admin-module a:hover,
.admin-access-state a:hover,
.admin-next-link:hover,
.admin-post-edit-primary:hover,
.home-utility-actions a:hover,
.brand-stage-actions a:hover {
  transform: translateY(-1px);
}

.site-header {
  background:
    linear-gradient(90deg, rgba(38, 1, 1, 0.98), rgba(100, 5, 3, 0.97) 48%, rgba(38, 1, 1, 0.98));
  border-bottom: 1px solid rgba(246, 212, 122, 0.48);
  box-shadow: 0 10px 28px rgba(28, 0, 0, 0.28);
}

.topline {
  align-items: center;
  border-bottom: 1px solid rgba(246, 212, 122, 0.28);
  color: #ffe7a5;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  gap: 12px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 38px;
  padding: 6px 16px;
}

.topline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.topline a {
  border: 1px solid rgba(246, 212, 122, 0.38);
  border-radius: var(--radius-sm);
  color: #fff4c6;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 28px;
  padding: 5px 8px;
}

.topline a:hover,
.topline a:focus-visible {
  background: rgba(246, 212, 122, 0.15);
  color: #fff7d6;
}

.site-header-inner {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 54px;
  padding: 7px 16px;
  width: 100%;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-height: 30px;
  min-width: 0;
}

.brand-mark {
  color: var(--rg-gold-300);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.brand-sub,
.site-nav a,
.empty-copy {
  color: var(--muted);
}

.brand-sub {
  border-left: 1px solid rgba(246, 212, 122, 0.36);
  color: #ffe7a5;
  font-size: 12px;
  line-height: 1.2;
  padding-left: 7px;
  white-space: nowrap;
}

.site-nav,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  align-items: center;
  border-radius: var(--radius-sm);
  color: #ffe8aa;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  min-height: 30px;
  padding: 4px 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: linear-gradient(180deg, var(--rg-gold-300), var(--rg-gold-500));
  color: #5a0702;
}

.site-nav a[aria-current="page"] {
  box-shadow: 0 0 0 1px rgba(255, 246, 191, 0.45), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.brand-stage {
  align-items: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(246, 212, 122, 0.22), transparent 16rem),
    linear-gradient(180deg, rgba(134, 8, 4, 0.78), rgba(71, 2, 1, 0.86));
  border-top: 1px solid rgba(246, 212, 122, 0.22);
  color: #fff2bd;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 16px 20px;
}

.brand-stage .kicker {
  color: var(--rg-gold-300);
}

.brand-stage h1 {
  color: var(--rg-gold-300);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  margin: 0 0 8px;
}

.brand-stage p {
  color: #ffe7a5;
  font-weight: 820;
  line-height: 1.65;
  margin: 0;
}

.brand-stage-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
}

.brand-stage-actions a {
  align-items: center;
  background: linear-gradient(180deg, var(--rg-gold-300), var(--rg-gold-500));
  border: 1px solid rgba(255, 246, 191, 0.48);
  border-radius: var(--radius-md);
  color: #5a0702;
  display: inline-flex;
  font-size: 14px;
  font-weight: 950;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  text-align: center;
}

.mobile-bottom-nav {
  display: none;
}

body.home-content-index {
  --home-ball-min-height: 50px;
  --home-ball-size: 42px;
  --home-draw-gap: 5px;
  --home-draw-pad-x: 10px;
  --home-draw-pad-y: 8px;
  --home-max-width: 980px;
  --home-row-pad: 11px;
  overflow-x: hidden;
}

body.home-content-index .site-header-inner,
body.home-content-index .home-content-shell {
  max-width: var(--home-max-width);
}

body.home-content-index .home-content-shell {
  display: grid;
  gap: 12px;
}

body.home-content-index .home-draw-panel,
body.home-content-index .home-posts-panel,
body.home-content-index .home-quick-panel,
body.home-content-index .home-utility-card {
  border-radius: var(--radius-lg);
}

body.home-content-index .home-draw-panel {
  box-shadow: var(--shadow);
  border-top: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  padding: var(--home-draw-pad-y) var(--home-draw-pad-x) calc(var(--home-draw-pad-y) + 1px);
}

body.home-content-index .home-draw-panel .draw-strip-head {
  align-items: center;
  border-bottom: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 5px;
}

body.home-content-index .home-draw-panel .draw-title {
  min-width: 0;
}

body.home-content-index .home-draw-panel .draw-title h1 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-content-index .home-draw-panel .kicker,
body.home-content-index .home-posts-panel .kicker {
  font-size: 11px;
  margin-bottom: 2px;
}

body.home-content-index .home-draw-panel .draw-meta {
  gap: 8px;
  justify-content: end;
}

body.home-content-index .home-draw-panel .draw-meta div {
  border-left: 0;
  border-top: 2px solid var(--gold);
  padding-left: 0;
  padding-top: 3px;
}

body.home-content-index .home-draw-panel .draw-meta dt {
  display: none;
}

body.home-content-index .home-draw-panel .draw-meta dd {
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
}

body.home-content-index .home-draw-panel .draw-line {
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

body.home-content-index .home-draw-panel .draw-ball-list {
  gap: var(--home-draw-gap);
}

body.home-content-index .home-draw-panel .draw-ball {
  background: var(--wave-bg);
  border-color: color-mix(in srgb, var(--wave-color) 38%, var(--line));
  border-radius: var(--radius-md);
  box-shadow: none;
  grid-template-columns: var(--home-ball-size);
  min-height: var(--home-ball-min-height);
  padding: 3px;
}

body.home-content-index .home-draw-panel .draw-ball-special {
  background: color-mix(in srgb, var(--gold) 9%, #fff);
  border-color: color-mix(in srgb, var(--gold) 46%, var(--line));
}

body.home-content-index .home-draw-panel .number-ball {
  width: var(--home-ball-size);
}

body.home-content-index .home-posts-panel {
  padding: 10px 12px;
}

body.home-content-index .home-quick-panel {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-quick-item {
  align-items: center;
  background:
    linear-gradient(180deg, #b9140c, #670301);
  border: 1px solid rgba(246, 212, 122, 0.46);
  box-shadow: inset 0 0 14px rgba(246, 212, 122, 0.12), 0 10px 22px rgba(28, 0, 0, 0.18);
  color: #ffe7a5;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 86px;
  padding: 10px 8px;
  text-align: center;
}

.home-quick-item span {
  align-items: center;
  background: radial-gradient(circle at 50% 30%, #fff2a8, var(--rg-gold-500));
  border-radius: 50%;
  color: #6f0900;
  display: inline-flex;
  font-size: 20px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.home-quick-item strong {
  font-size: 15px;
  line-height: 1.2;
}

.home-quick-item small {
  color: #ffd989;
  font-size: 12px;
  font-weight: 800;
}

.home-quick-item:hover,
.home-quick-item:focus-visible {
  transform: translateY(-2px);
}

.home-contact-panel {
  background: linear-gradient(180deg, var(--rg-ivory-050), var(--rg-ivory-100));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 12px 14px;
}

.home-contact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
}

.home-contact-card {
  align-items: center;
  background: #fffdf8;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  border-radius: var(--radius-md);
  display: grid;
  grid-template-areas:
    "icon label action"
    "icon value action";
  grid-template-columns: 38px minmax(0, 1fr) max-content;
  column-gap: 10px;
  row-gap: 4px;
  min-width: 0;
  padding: 12px;
}

.home-contact-card > span {
  align-items: center;
  background: radial-gradient(circle at 50% 28%, #fff4bd, var(--rg-gold-500));
  border-radius: 50%;
  color: #6f0900;
  display: inline-flex;
  font-size: 16px;
  font-weight: 950;
  grid-area: icon;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.home-contact-card strong {
  color: var(--accent);
  font-size: 15px;
  grid-area: label;
  line-height: 1.25;
}

.home-contact-card small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  grid-area: value;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-contact-card a,
.home-contact-card button {
  align-items: center;
  background: linear-gradient(180deg, var(--rg-gold-300), var(--rg-gold-500));
  border: 1px solid color-mix(in srgb, var(--gold) 58%, var(--line));
  border-radius: var(--radius-sm);
  color: #6b0702;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  grid-area: action;
  justify-content: center;
  min-height: 34px;
  padding: 6px 9px;
  white-space: nowrap;
  width: fit-content;
}

.home-utility-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-utility-card {
  background: linear-gradient(180deg, var(--rg-ivory-050), var(--rg-ivory-100));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 14px 16px;
}

.home-utility-card h2 {
  color: #6f0900;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 950;
  margin-bottom: 7px;
}

.home-utility-card p {
  color: var(--muted);
  line-height: 1.65;
}

.home-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.home-utility-actions a {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--gold));
  border-radius: var(--radius-md);
  color: var(--accent);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  padding: 7px 11px;
}

.home-utility-actions a:first-child {
  background: linear-gradient(180deg, var(--rg-red-600), var(--rg-red-700));
  color: #fff7d6;
}

body.home-content-index .home-posts-panel .section-heading {
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  margin-bottom: 0;
  padding-bottom: 7px;
}

body.home-content-index .home-posts-panel h2 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 850;
  margin-bottom: 0;
}

body.home-content-index .home-post-row {
  padding: 0;
}

body.home-content-index .home-post-row .post-row-link {
  gap: 12px;
  min-height: 62px;
  padding: var(--home-row-pad) 0;
}

body.home-content-index .home-posts-more {
  border-top: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

body.home-content-index .home-post-row h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.34;
  margin-bottom: 0;
}

body.home-content-index .post-tags {
  gap: 6px;
}

body.home-content-index .post-tags span {
  background: #fff8df;
  border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
  color: var(--muted);
  padding: 3px 6px;
}

.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  margin: 0 0 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
}

h1 {
  font-size: 24px;
  margin-bottom: 0;
}

h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.draw-strip,
.posts-panel {
  background: linear-gradient(180deg, var(--rg-ivory-050), var(--rg-ivory-100));
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.draw-strip {
  min-width: 0;
  padding: 10px 12px;
}

.draw-detail-panel,
.draw-history-panel {
  background: linear-gradient(180deg, var(--rg-ivory-050), var(--rg-ivory-100));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 14px 16px;
}

.draw-detail-panel {
  border-top: 3px solid var(--gold);
  display: grid;
  gap: 12px;
}

.draw-detail-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.draw-detail-head h2 {
  margin-bottom: 0;
}

.draw-ball-list-detail {
  gap: 8px;
}

.draw-ball-list-detail .draw-ball {
  min-height: 64px;
}

.draw-attribute-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.draw-attribute-item {
  --wave-color: var(--accent);
  --wave-bg: rgba(10, 115, 87, 0.07);
  background: linear-gradient(180deg, #fffdf8, var(--wave-bg));
  border: 1px solid color-mix(in srgb, var(--wave-color) 28%, var(--line));
  border-radius: var(--radius-sm);
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 7px;
}

.draw-attribute-item strong {
  color: var(--wave-color);
  font-family: var(--font-data);
  font-size: 16px;
  line-height: 1.1;
}

.draw-attribute-item span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.draw-attribute-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.draw-history-list {
  display: grid;
  gap: 0;
}

.history-draw-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 58px;
  padding: 10px 0;
}

.history-draw-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.history-draw-meta {
  display: grid;
  gap: 4px;
}

.history-draw-meta strong {
  font-size: 15px;
  line-height: 1.25;
}

.history-draw-meta time {
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 850;
}

.history-ball-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-ball {
  --wave-color: var(--accent);
  --wave-bg: rgba(10, 115, 87, 0.07);
  align-items: center;
  background: linear-gradient(180deg, #fffdf8, var(--wave-bg));
  border: 1px solid color-mix(in srgb, var(--wave-color) 22%, var(--line));
  border-radius: var(--radius-sm);
  display: flex;
  gap: 4px;
  justify-content: center;
  min-height: 40px;
  min-width: 0;
  padding: 4px;
}

.history-ball img {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(18, 26, 23, 0.10));
  height: auto;
  width: 30px;
}

.history-ball span:not(.ball):not(.num-label) {
  color: var(--wave-color);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 850;
}

.draw-history-loader {
  border-top: 1px solid var(--line);
  color: var(--muted);
  cursor: default;
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
  padding: 13px 0 2px;
  text-align: center;
}

.draw-history-loader.is-error {
  color: var(--red);
  cursor: pointer;
}

.draw-history-loader.is-loading {
  color: var(--accent);
}

.draw-strip-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding-bottom: 8px;
}

.draw-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.draw-meta div {
  border-left: 3px solid var(--gold);
  padding-left: 8px;
}

.draw-meta dt {
  color: var(--muted);
  font-size: 11px;
}

.draw-meta dd {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 850;
  margin: 2px 0 0;
}

.draw-line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 8px;
}

.draw-ball-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.draw-ball {
  --wave-color: var(--accent);
  --wave-bg: rgba(10, 115, 87, 0.07);
  align-items: center;
  background: linear-gradient(180deg, #fffdf8, var(--wave-bg));
  border: 1px solid color-mix(in srgb, var(--wave-color) 36%, var(--line));
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 4px;
  grid-template-columns: 46px;
  justify-content: center;
  min-height: 58px;
  min-width: 0;
  padding: 4px 5px;
}

.wave-red {
  --wave-color: var(--red);
  --wave-bg: rgba(214, 66, 56, 0.07);
}

.wave-blue {
  --wave-color: var(--blue);
  --wave-bg: rgba(23, 108, 183, 0.07);
}

.wave-green {
  --wave-color: var(--accent);
  --wave-bg: rgba(10, 115, 87, 0.07);
}

.number-ball {
  aspect-ratio: 1;
  display: block;
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(18, 26, 23, 0.12));
  width: 46px;
}

.draw-ball-special {
  background: linear-gradient(180deg, #fff8d8, rgba(217, 154, 36, 0.16));
  border-color: color-mix(in srgb, var(--gold) 48%, var(--line));
}

.posts-panel {
  min-width: 0;
  padding: 14px 16px;
}

.post-tags span {
  background: #fff4cf;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 6px;
}

.empty-copy {
  line-height: 1.7;
  margin-bottom: 0;
}

.content-shell,
.post-detail-shell {
  margin: 0 auto;
  max-width: 980px;
  padding: 10px 16px 28px;
}

.post-detail-shell {
  max-width: 820px;
}

.content-heading {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.98), rgba(255, 247, 223, 0.96));
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 10px;
  padding: 8px 10px;
}

.content-heading h1,
.post-detail-head h1 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 0;
  text-wrap: balance;
}

.content-heading h1 {
  font-family: var(--font-body);
  font-weight: 950;
  white-space: nowrap;
  color: #6f0900;
}

.content-heading p,
.post-detail-head p,
.restricted-head p,
.access-notice p,
.pagination-note {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.content-heading p {
  font-size: 13px;
  line-height: 1.45;
  max-width: none;
}

.post-filter-bar {
  align-items: end;
  background: linear-gradient(180deg, var(--rg-ivory-050), var(--rg-ivory-100));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(38, 1, 1, 0.10);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) 128px 112px auto;
  margin: 10px 0 10px;
  padding: 8px;
}

.post-filter-bar label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.post-filter-bar label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.post-filter-bar input,
.post-filter-bar select {
  background: #fffdf8;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  min-height: 36px;
  min-width: 0;
  padding: 6px 8px;
}

.post-filter-bar button,
.filter-reset,
.back-link,
.access-notice a,
.access-purchase-form button {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 74%, var(--gold));
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--accent);
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  justify-content: center;
  min-height: 36px;
  padding: 6px 10px;
}

.post-filter-bar button {
  background: linear-gradient(180deg, var(--rg-red-600), var(--rg-red-700));
  color: #fff7d6;
}

.post-filter-actions {
  align-items: end;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.access-purchase-form {
  display: grid;
  gap: 6px;
  margin-top: 0;
}

.access-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.access-purchase-form button {
  background: linear-gradient(180deg, var(--rg-red-600), var(--rg-red-700));
  color: #fff7d6;
}

.access-purchase-form button:disabled {
  background: #f1f2ed;
  border-color: var(--line);
  color: var(--muted);
  cursor: wait;
}

.post-purchase-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
  min-height: 20px;
}

.post-purchase-balance {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 0;
}

.post-purchase-status.is-error {
  color: var(--red);
}

.post-purchase-status.is-success {
  color: var(--accent);
}

.post-list-panel,
.post-detail,
.gallery-panel,
.panel-notice {
  background: linear-gradient(180deg, var(--rg-ivory-050), var(--rg-ivory-100));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.post-list-panel,
.post-detail,
.gallery-panel {
  padding: 14px 16px;
}

.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.gallery-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
  padding: 8px;
}

.gallery-card figcaption {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  min-height: 38px;
  overflow-wrap: anywhere;
}

.gallery-card figcaption span,
.gallery-card figcaption small {
  display: block;
}

.gallery-card figcaption small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.gallery-image-link {
  border-radius: var(--radius-sm);
  display: block;
}

.gallery-image-placeholder {
  cursor: default;
}

.gallery-image-frame {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--surface) 78%, var(--accent-soft));
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gallery-image {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.gallery-card-unavailable .gallery-image-frame {
  background: color-mix(in srgb, var(--surface) 62%, var(--accent-soft));
  border: 1px dashed color-mix(in srgb, var(--accent) 24%, var(--line));
}

.gallery-image-logo {
  height: 46px;
  opacity: 0.62;
  width: 46px;
}

.gallery-status-badge {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  padding: 4px 6px;
  position: absolute;
  right: 7px;
  top: 7px;
}

.gallery-viewer {
  align-items: center;
  background: rgba(11, 18, 15, 0.82);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 60;
}

.gallery-viewer[hidden] {
  display: none;
}

.gallery-viewer-panel {
  display: grid;
  gap: 10px;
  max-height: min(92vh, 820px);
  max-width: min(94vw, 980px);
  width: 100%;
}

.gallery-viewer-head {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.gallery-viewer-title {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.gallery-viewer-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  justify-content: center;
  min-height: 36px;
  padding: 6px 10px;
}

.gallery-viewer-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.42);
  outline-offset: 3px;
}

.gallery-viewer-image {
  align-self: center;
  background: #fff;
  border-radius: var(--radius-md);
  display: block;
  justify-self: center;
  margin: 0 auto;
  max-height: calc(92vh - 70px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.panel-notice {
  margin: 12px 0;
  padding: 14px 16px;
}

.panel-notice h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.account-shell {
  max-width: 920px;
}

.account-access-panel,
.account-summary-panel,
.account-panel,
.account-link-panel {
  background: linear-gradient(180deg, var(--rg-ivory-050), var(--rg-ivory-100));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.account-access-panel,
.account-summary-panel {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
}

.account-access-panel {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
}

.account-access-copy h2,
.account-identity h2,
.account-panel h2,
.account-link-panel h2 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.account-access-copy p,
.account-identity p,
.account-panel p,
.account-link-list span {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.account-summary-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.account-logout-form {
  margin: 0;
}

.account-logout-form button {
  align-items: center;
  background: #fff8df;
  border: 1px solid color-mix(in srgb, var(--gold) 52%, var(--line));
  border-radius: var(--radius-md);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  justify-content: center;
  min-height: var(--tap-size);
  padding: 8px 12px;
  white-space: nowrap;
}

.account-logout-form button:hover,
.account-logout-form button:focus-visible {
  background: #fff1ef;
  border-color: color-mix(in srgb, var(--red) 36%, var(--line));
  color: var(--red);
}

.account-logout-form button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.account-logout-form button:disabled {
  background: #f1f2ed;
  border-color: var(--line);
  color: var(--muted);
  cursor: wait;
}

.account-actions a,
.account-actions button,
.auth-form button {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 74%, var(--gold));
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  font: inherit;
  justify-content: center;
  min-height: var(--tap-size);
  padding: 8px 12px;
}

.account-actions a:first-child,
.account-actions button:first-child,
.auth-form button {
  background: linear-gradient(180deg, var(--rg-red-600), var(--rg-red-700));
  color: #fff7d6;
}

.account-actions button:disabled {
  background: #f1f2ed;
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.account-actions a:last-child {
  color: var(--accent);
}

.account-identity {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px minmax(0, 1fr);
}

.account-avatar {
  align-items: center;
  background: radial-gradient(circle at 50% 28%, #fff4bd, var(--rg-gold-500));
  border: 1px solid color-mix(in srgb, var(--gold) 64%, var(--line));
  border-radius: 50%;
  color: #6f0900;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.account-status-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-access-panel .account-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-metric {
  background: #fffdf8;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: var(--radius-md);
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 10px;
}

.account-metric span,
.account-metric small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.account-metric strong {
  color: #7f0b03;
  font-family: var(--font-data);
  font-size: 22px;
  line-height: 1.1;
}

.account-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.account-panel,
.account-link-panel {
  padding: 14px 16px;
}

.account-panel-active {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}

.account-panel-warning {
  border-color: color-mix(in srgb, var(--red) 32%, var(--line));
}

.account-panel-muted {
  border-color: var(--line);
}

.account-panel-cta {
  align-items: center;
  background: linear-gradient(180deg, var(--rg-gold-300), var(--rg-gold-500));
  border: 1px solid color-mix(in srgb, var(--gold) 64%, var(--line));
  border-radius: var(--radius-md);
  color: #5a0702;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  margin-top: 10px;
  min-height: 36px;
  padding: 7px 11px;
  width: fit-content;
}

.account-link-panel {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.account-link-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-link-list a {
  background: #fffdf8;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: var(--radius-md);
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px;
}

.account-link-list a:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--gold));
  box-shadow: 0 8px 18px rgba(38, 1, 1, 0.10);
}

.account-link-list strong {
  color: var(--ink);
  font-size: 15px;
}

.auth-shell {
  max-width: 760px;
}

.auth-panel {
  background: linear-gradient(180deg, var(--rg-ivory-050), var(--rg-ivory-100));
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  margin-top: 14px;
  padding: 16px;
}

.auth-copy h2 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.auth-copy p,
.auth-switch,
.auth-message {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 5px;
}

.auth-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  background: #fffdf8;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  min-height: var(--tap-size);
  min-width: 0;
  padding: 8px 9px;
}

.auth-form textarea {
  line-height: 1.55;
  min-height: 104px;
  resize: vertical;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  outline: 2px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

.auth-form button {
  cursor: pointer;
  font: inherit;
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-message {
  min-height: 22px;
}

.auth-message.is-error {
  color: var(--red);
}

.auth-message.is-success {
  color: var(--accent);
}

.auth-switch {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 12px;
}

.auth-switch a {
  color: var(--accent);
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  min-height: 28px;
}

.account-settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.account-settings-nav a {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: var(--radius-md);
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 820;
  min-height: 38px;
  padding: 7px 11px;
}

.account-settings-nav a.is-active,
.account-settings-nav a:hover {
  background: linear-gradient(180deg, var(--rg-gold-300), var(--rg-gold-500));
  border-color: color-mix(in srgb, var(--gold) 64%, var(--line));
  color: #5a0702;
}

.account-settings-panel {
  margin-top: 12px;
}

.support-shell {
  max-width: 880px;
}

.support-panel,
.account-privacy-form-panel {
  align-items: start;
}

.front-workflow-form .front-workflow-wide {
  grid-column: 1 / -1;
}

.account-workflow-panel {
  margin-top: 12px;
}

.account-workflow-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.account-points-summary {
  align-items: center;
}

.account-checkin-hero {
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 219, 119, 0.22), transparent 16rem),
    linear-gradient(180deg, rgba(190, 13, 7, 0.96), rgba(102, 0, 0, 0.98));
  border: 1px solid rgba(255, 211, 101, 0.62);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(68, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 246, 192, 0.12);
  color: #fff4c7;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  padding: 18px;
}

.account-checkin-main,
.account-checkin-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.account-checkin-hero .account-avatar {
  background: radial-gradient(circle at 50% 28%, #fff4bd, #f2b42e);
  border-color: rgba(255, 246, 191, 0.72);
  box-shadow: 0 0 22px rgba(255, 213, 102, 0.24);
}

.account-checkin-hero h2 {
  color: #fff2b8;
  font-size: 28px;
  line-height: 1.22;
  margin: 0;
}

.account-checkin-hero p,
.account-checkin-hero .kicker,
.account-checkin-verify {
  color: #ffe6a5;
}

.account-checkin-action-panel {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-checkin-action-panel button,
.account-checkin-action-panel a {
  align-items: center;
  border-radius: var(--radius-md);
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
}

.account-checkin-action-panel button {
  background: linear-gradient(180deg, #fff2a8, #e6a22a);
  border: 1px solid rgba(255, 244, 189, 0.76);
  color: #6c0700;
  cursor: pointer;
  min-width: 156px;
}

.account-checkin-action-panel button:disabled {
  background: linear-gradient(180deg, rgba(255, 248, 221, 0.36), rgba(202, 150, 50, 0.24));
  border-color: rgba(255, 229, 151, 0.42);
  color: rgba(255, 238, 193, 0.7);
  cursor: wait;
}

.account-checkin-action-panel button[data-checkin-complete="true"] {
  cursor: default;
}

.account-checkin-action-panel a {
  border: 1px solid rgba(255, 229, 151, 0.48);
  color: #fff0b8;
}

.account-checkin-verify {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.account-checkin-balance {
  background: rgba(255, 248, 222, 0.1);
  border: 1px solid rgba(255, 211, 101, 0.36);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  min-height: 98px;
  padding: 13px;
}

.account-checkin-balance span,
.account-checkin-balance small {
  color: #ffe6a5;
  font-size: 12px;
  font-weight: 850;
}

.account-checkin-balance strong {
  color: #fff8dd;
  font-family: var(--font-data);
  font-size: 38px;
  font-weight: 1000;
  line-height: 1;
}

.account-checkin-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-checkin-metrics .account-metric {
  background: rgba(255, 248, 222, 0.94);
  min-height: 78px;
}

.account-checkin-hero .auth-turnstile {
  grid-column: 1 / -1;
}

.account-checkin-hero .auth-message {
  color: #ffe6a5;
  grid-column: 1 / -1;
}

.account-checkin-hero .auth-message.is-error {
  color: #ffd1a8;
}

.account-checkin-hero .auth-message.is-success {
  color: #fff6bf;
}

.point-ledger-filter {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.point-ledger-filter label {
  display: grid;
  gap: 4px;
}

.point-ledger-filter label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.point-ledger-filter select {
  background: #fffdf8;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  min-height: 38px;
  min-width: 150px;
  padding: 7px 9px;
}

.point-ledger-filter button,
.front-more-button {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 74%, var(--gold));
  border-radius: var(--radius-md);
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
}

.front-more-button {
  background: linear-gradient(180deg, #fff1a8, #e7a52d);
  border-color: rgba(255, 230, 155, 0.72);
  box-shadow: 0 8px 18px rgba(91, 7, 0, 0.16);
  color: #6b0702;
  justify-self: start;
  margin-top: 10px;
}

.front-more-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.account-workflow-head button,
.front-row-actions button,
.front-row-actions a {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  white-space: nowrap;
}

.account-workflow-head button {
  background: linear-gradient(180deg, var(--rg-red-600), var(--rg-red-700));
  color: #fff7d6;
}

.front-row-actions button:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.front-list {
  display: grid;
  gap: 0;
}

.front-list-row {
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 12px 0;
}

.front-list-row:first-child {
  border-top: 0;
}

.front-list-row strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.front-list-row span,
.front-list-row p,
.front-list-row small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.notification-row.is-unread strong {
  color: var(--accent);
}

.front-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.front-status-badge {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 7px;
  white-space: nowrap;
}

.session-list {
  display: grid;
  gap: 0;
}

.session-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 116px;
  min-height: 58px;
  padding: 10px 0;
}

.session-row:first-child {
  border-top: 0;
}

.session-row strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.session-row span,
.session-row small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.session-row button {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--red) 30%, var(--line));
  border-radius: var(--radius-md);
  color: var(--red);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  min-height: 38px;
  padding: 7px 10px;
}

.session-row button:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.post-list {
  display: grid;
  gap: 0;
}

.post-row {
  align-items: start;
  border-top: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  display: block;
  padding: 0;
}

.post-row:first-child {
  border-top: 0;
}

.post-row:first-child .post-row-link {
  padding-top: 0;
}

.post-row-link {
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 74px;
  padding: 12px 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.post-row h3,
.restricted-block h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 5px;
}

.post-row-link:hover h3,
.post-row-link:focus-visible h3,
.post-detail a:hover {
  color: #8f0c04;
}

.post-row-link:focus-visible {
  border-radius: var(--radius-md);
  outline: 2px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 2px;
}

.post-row-meta,
.post-detail-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 750;
  gap: 8px;
  margin-bottom: 5px;
}

.post-row-meta > *,
.post-detail-meta > * {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.post-row-meta > *::before,
.post-detail-meta > *::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 5px;
  opacity: 0.72;
  width: 5px;
}

.post-row-meta time,
.post-detail-meta time {
  color: #9a620d;
  font-family: var(--font-data);
  font-weight: 850;
}

.post-row-side {
  align-content: start;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 12px;
  justify-items: end;
  min-width: 42px;
}

.post-card-label {
  background: #fff1bf;
  border: 1px solid color-mix(in srgb, var(--gold) 44%, var(--line));
  border-radius: var(--radius-sm);
  color: #6d1404;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 5px 7px;
  white-space: nowrap;
}

.forum-stat-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 2px;
}

.forum-stat {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  display: inline-flex;
  gap: 5px;
  line-height: 1.15;
  padding: 4px 6px;
}

.forum-stat b {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 12px;
}

.forum-stat small {
  font-size: 11px;
  font-weight: 800;
}

.forum-stat-hit {
  background: #fff4ee;
  border-color: color-mix(in srgb, var(--red) 22%, var(--line));
}

.forum-stat-hit b {
  color: var(--red);
}

.forum-stat-miss {
  background: color-mix(in srgb, var(--line) 18%, #fff);
}

.forum-stat-strip-detail {
  background: color-mix(in srgb, var(--accent-soft) 58%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: var(--radius-md);
  gap: 7px;
  margin-top: 4px;
  padding: 8px;
}

.forum-purchase-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.forum-purchase-count {
  color: var(--red);
}

.access-badge {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: var(--radius-sm);
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  padding: 5px 7px;
  white-space: nowrap;
}

.access-free {
  background: var(--accent-soft);
  color: #7a1800;
}

.access-membership {
  background: #fff6e1;
  border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
  color: #6d1404;
}

.access-points,
.access-mixed {
  background: #fcebea;
  border-color: color-mix(in srgb, var(--red) 26%, var(--line));
  color: #7a1800;
}

.post-detail-head {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
}

.post-detail-topline {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.back-link {
  justify-self: start;
  min-height: 36px;
  padding: 6px 10px;
}

.post-detail-summary {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0;
}

.post-lead-block {
  background: color-mix(in srgb, var(--accent-soft) 58%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: var(--radius-md);
  margin-top: 12px;
  padding: 12px;
}

.post-lead-block p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

.post-content-block {
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
}

.post-detail-head + .post-content-block,
.post-detail-head + .post-lead-block + .post-content-block {
  border-top: 0;
}

.post-section-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.post-section-head h2 {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 0;
}

.post-section-head[data-ui-icon] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: initial;
}

.post-section-head[data-ui-icon]::before {
  color: var(--gold);
  content: attr(data-ui-icon);
  font-size: 14px;
  line-height: 1;
}

.post-section-head span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 850;
}

.share-source-stamp {
  align-items: center;
  border-top: 1px dashed color-mix(in srgb, var(--gold) 42%, var(--line));
  color: color-mix(in srgb, var(--gold) 62%, var(--muted));
  display: flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: flex-end;
  line-height: 1.45;
  margin-top: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-top: 8px;
  text-align: right;
  text-decoration: none;
}

.share-source-stamp:hover,
.share-source-stamp:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.current-issue-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.current-issue-copy .share-source-stamp {
  justify-content: flex-start;
  margin-top: 4px;
  padding-top: 6px;
  text-align: left;
}

.content-block-list {
  display: grid;
  gap: 0;
}

.restricted-block {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding: 12px 0;
}

.restricted-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.issue-block {
  gap: 10px;
}

.post-history-trust-panel {
  align-items: stretch;
  background: linear-gradient(180deg, #fff8de, #ffe9ae);
  border: 1px solid color-mix(in srgb, var(--gold) 52%, var(--line));
  border-radius: var(--radius-md);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  margin-bottom: 10px;
  padding: 8px;
}

.post-history-trust-metric {
  align-content: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 7px 9px;
}

.post-history-trust-metric strong {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 19px;
  line-height: 1;
}

.post-history-trust-metric small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.post-history-trust-hit strong {
  color: var(--red);
}

.post-history-trust-miss strong {
  color: var(--muted);
}

.post-history-trust-pending strong {
  color: var(--accent);
}

.post-history-trust-note {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: var(--radius-sm);
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.25;
  min-height: 50px;
  padding: 7px 9px;
  text-align: center;
}

.issue-highlight {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
}

.issue-highlight-won {
  background: linear-gradient(90deg, #fff0ed 0%, #fff7d6 100%);
  border-color: color-mix(in srgb, var(--red) 42%, var(--gold));
  box-shadow: inset 3px 0 0 var(--red);
}

.issue-highlight-lost {
  background: color-mix(in srgb, var(--line) 22%, #fff);
  border-color: color-mix(in srgb, var(--line-strong) 42%, var(--line));
}

.issue-highlight-pending {
  background: color-mix(in srgb, var(--accent-soft) 68%, #fff);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}

.post-history-rich-panel {
  background: #fffdf5;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-history-rich-list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-history-rich-item {
  align-items: start;
  border-top: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  display: grid;
  gap: 18px;
  grid-template-columns: 118px minmax(0, 1fr) 126px;
  min-width: 0;
  padding: 22px 24px;
}

.post-history-rich-item:first-child {
  border-top: 0;
}

.post-history-rich-empty {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.6;
  list-style: none;
  padding: 12px;
}

.post-history-rich-expect {
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 26px;
  font-weight: 1000;
  line-height: 1.25;
  white-space: nowrap;
}

.post-history-rich-main {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  min-width: 0;
}

.post-history-rich-line {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
}

.post-history-rich-line b {
  background: color-mix(in srgb, var(--gold) 18%, #fff);
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
  padding: 6px 10px;
}

.post-history-rich-line span,
.post-history-rich-copy span {
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.post-history-rich-line [data-issue-highlight-detail] {
  font-family: var(--font-data);
  font-weight: 950;
}

.post-history-rich-line .post-history-rich-draw,
.post-history-rich-draw {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.post-history-rich-line .post-history-rich-draw-main,
.post-history-rich-draw-main {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.5;
}

.post-history-rich-line .post-history-rich-draw > span[aria-hidden="true"],
.post-history-rich-draw > span[aria-hidden="true"] {
  color: var(--accent);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.5;
}

.post-history-rich-line .post-history-rich-draw-special,
.post-history-rich-draw-special {
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 19px;
  font-weight: 1000;
  line-height: 1.5;
}

.post-history-rich-line .post-history-rich-detail {
  align-items: center;
  border: 1px solid var(--rg-result-neutral-border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 18px;
  gap: 4px;
  font-weight: 950;
  line-height: 1.35;
  padding: 6px 10px;
}

.result-opened-number,
.result-hit-value {
  color: var(--accent);
  font-size: 1em;
  font-weight: 950;
  line-height: inherit;
  margin: 0 1px;
}
.contact-copy-fallback {
  left: -9999px;
  position: fixed;
}
