.tkx-members-page {
  --tkxmem-black: #070707;
  --tkxmem-ink: #171717;
  --tkxmem-panel: #151516;
  --tkxmem-red: #d20a16;
  --tkxmem-red-dark: #760008;
  --tkxmem-gold: #d5b15b;
  --tkxmem-paper: #f2efe9;
  --tkxmem-line: #d7d2ca;
  --tkxmem-white: #fff;
  --tkxmem-muted: #6e6e73;
  --tkxmem-green: #147a4d;
}

.tkx-members-page #content,
.tkx-members-page #main,
.tkx-members-page .content-in,
.tkx-members-page .main,
.tkx-members-page article.page,
.tkx-members-page .entry-content,
.tkxmem-template-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tkx-members-page .entry-title,
.tkx-members-page .article-header,
.tkx-members-page .article-footer,
.tkx-members-page .breadcrumb,
.tkx-members-page .sidebar,
.tkx-members-page .sns-share,
.tkx-members-page .sns-follow,
.tkx-members-page .author-info,
.tkx-members-page .date-tags,
.tkx-members-page .toc {
  display: none !important;
}

.tkxmem {
  overflow: hidden;
  background: var(--tkxmem-paper);
  color: var(--tkxmem-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", sans-serif;
}

.tkxmem *,
.tkxmem *::before,
.tkxmem *::after {
  box-sizing: border-box;
}

.tkxmem a {
  text-decoration: none;
}

.tkxmem button,
.tkxmem input,
.tkxmem select,
.tkxmem textarea {
  font: inherit;
}

.tkxmem h1,
.tkxmem h2,
.tkxmem h3 {
  margin-top: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.tkxmem h1::before,
.tkxmem h1::after,
.tkxmem h2::before,
.tkxmem h2::after,
.tkxmem h3::before,
.tkxmem h3::after {
  display: none !important;
}

.tkxmem-wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.tkxmem-kicker {
  margin: 0 0 12px;
  color: var(--tkxmem-red);
  font: 900 11px/1.2 Arial, sans-serif;
  letter-spacing: .2em;
}

.tkxmem-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 40%, rgba(210, 10, 22, .35), transparent 27%),
    linear-gradient(120deg, #050505 0 55%, #2b060a 55% 73%, #080808 73%);
  color: var(--tkxmem-white);
}

.tkxmem-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .2;
  background: repeating-linear-gradient(106deg, transparent 0 38px, rgba(255, 255, 255, .06) 39px 40px);
  pointer-events: none;
}

.tkxmem-hero .tkxmem-wrap {
  position: relative;
  z-index: 1;
  padding-block: 80px;
}

.tkxmem-hero .tkxmem-kicker {
  color: var(--tkxmem-gold);
}

.tkxmem-hero h1 {
  max-width: 940px;
  margin-bottom: 22px;
  color: #fff !important;
  font-size: clamp(45px, 7vw, 82px);
  font-weight: 1000;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.tkxmem-hero > .tkxmem-wrap > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #d0d0d4;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.95;
}

.tkxmem-section {
  padding: 84px 0 100px;
}

.tkxmem-auth-grid,
.tkxmem-dashboard-grid,
.tkxmem-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: start;
  gap: 28px;
}

.tkxmem-panel,
.tkxmem-side-card,
.tkxmem-empty {
  border: 1px solid var(--tkxmem-line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(25, 20, 15, .08);
}

.tkxmem-panel {
  padding: 42px;
}

.tkxmem-panel > h2,
.tkxmem-side-card > h2,
.tkxmem-section-head h2,
.tkxmem-account-head h2,
.tkxmem-method h2,
.tkxmem-ranking-summary h2 {
  margin-bottom: 14px;
  color: #111 !important;
  font-size: clamp(27px, 3vw, 40px) !important;
  font-weight: 950;
  letter-spacing: -.035em;
}

.tkxmem-panel > p,
.tkxmem-side-card > p,
.tkxmem-empty > p {
  color: var(--tkxmem-muted);
  line-height: 1.85;
}

.tkxmem-side-card {
  position: sticky;
  top: 30px;
  padding: 42px;
  border-color: #37373b;
  background: linear-gradient(145deg, #1b1b1d, #090909);
  color: #fff;
}

.admin-bar .tkxmem-side-card {
  top: 62px;
}

.tkxmem-side-card > h2 {
  color: #fff !important;
}

.tkxmem-side-card > p {
  color: #bbbcc1;
}

.tkxmem-side-card ol,
.tkxmem-check-list {
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.tkxmem-side-card ol li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #36363a;
}

.tkxmem-side-card ol b {
  color: var(--tkxmem-gold);
  font: 1000 23px/1 Arial, sans-serif;
}

.tkxmem-side-card ol strong,
.tkxmem-side-card ol span {
  display: block;
}

.tkxmem-side-card ol strong {
  margin-bottom: 6px;
  color: #fff;
}

.tkxmem-side-card ol span {
  color: #a9a9ae;
  font-size: 12px;
  line-height: 1.7;
}

.tkxmem-check-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid #353539;
  color: #d1d1d4;
  font-size: 13px;
}

.tkxmem-check-list li::before {
  position: absolute;
  left: 0;
  color: var(--tkxmem-gold);
  content: "✓";
  font-weight: 900;
}

.tkxmem-form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.tkxmem-form label > span,
.tkxmem-fieldset legend,
.tkxmem-scope-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #242426;
  font-size: 12px;
  font-weight: 900;
}

.tkxmem-form input[type="text"],
.tkxmem-form input[type="email"],
.tkxmem-form input[type="password"],
.tkxmem-form input:not([type]),
.tkxmem-form select,
.tkxmem-form textarea,
.tkxmem-fieldset input,
.tkxmem-scope-form input,
.tkxmem-scope-form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #bdb8b0;
  border-radius: 0;
  background: #fff;
  color: #151515;
  box-shadow: none;
}

.tkxmem-form textarea {
  min-height: 180px;
  resize: vertical;
}

.tkxmem-form input:focus,
.tkxmem-form select:focus,
.tkxmem-form textarea:focus,
.tkxmem-scope-form input:focus,
.tkxmem-scope-form select:focus {
  border-color: var(--tkxmem-red);
  outline: 3px solid rgba(210, 10, 22, .14);
}

.tkxmem-form label > small {
  display: block;
  margin-top: 7px;
  color: #77777c;
  font-size: 11px;
  line-height: 1.6;
}

.tkxmem-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.tkxmem-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--tkxmem-red);
}

.tkxmem-check span {
  margin: 0 !important;
  color: #3c3c40 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.55;
}

.tkxmem-check a,
.tkxmem-auth-link a,
.tkxmem-small a,
.tkxmem-legal a {
  color: var(--tkxmem-red) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tkxmem-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

.tkxmem-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  color: #fff !important;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  transition: transform .18s ease, filter .18s ease;
}

.tkxmem-btn:hover,
.tkxmem-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.tkxmem-btn--red {
  background: linear-gradient(135deg, var(--tkxmem-red), var(--tkxmem-red-dark));
}

.tkxmem-btn--dark {
  background: #181819;
}

.tkxmem-text-link {
  color: var(--tkxmem-red) !important;
  font-size: 13px;
  font-weight: 900;
}

.tkxmem-auth-link,
.tkxmem-small {
  margin: 24px 0 0;
  color: #68686d;
  font-size: 12px;
  line-height: 1.9;
}

.tkxmem-notice {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 5px solid #777;
  background: #f4f4f4;
  color: #222;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.tkxmem-notice--success {
  border-color: var(--tkxmem-green);
  background: #ecf8f2;
}

.tkxmem-notice--error {
  border-color: var(--tkxmem-red);
  background: #fff0f1;
}

.tkxmem-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.tkxmem-empty {
  padding: 40px;
  border-left: 5px solid var(--tkxmem-red);
}

.tkxmem-empty h1,
.tkxmem-empty h2 {
  margin-bottom: 12px;
  color: #151515 !important;
  font-size: clamp(27px, 4vw, 42px) !important;
}

.tkxmem-empty .tkxmem-btn {
  margin-top: 16px;
}

.tkxmem-empty--small {
  padding: 26px;
  border: 0;
  background: #f4f2ee;
  box-shadow: none;
}

.tkxmem-account-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--tkxmem-line);
}

.tkxmem-account-head p {
  margin: 0;
  color: #747479;
  font-size: 12px;
}

.tkxmem-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 30px;
  background: #333;
}

.tkxmem-stat-grid article {
  min-width: 0;
  padding: 28px;
  background: #111112;
  color: #fff;
}

.tkxmem-stat-grid small,
.tkxmem-stat-grid strong,
.tkxmem-stat-grid span {
  display: block;
}

.tkxmem-stat-grid small {
  min-height: 25px;
  color: var(--tkxmem-gold);
  font: 900 10px/1.3 Arial, sans-serif;
  letter-spacing: .13em;
}

.tkxmem-stat-grid strong {
  margin: 8px 0;
  overflow-wrap: anywhere;
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1;
}

.tkxmem-stat-grid span {
  color: #aaaab0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
}

.tkxmem-dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
}

.tkxmem-panel--history {
  min-width: 0;
}

.tkxmem-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.tkxmem-history-event {
  margin-top: 18px;
  border: 1px solid var(--tkxmem-line);
}

.tkxmem-history-event > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: #171718;
  color: #fff;
}

.tkxmem-history-event header small {
  color: var(--tkxmem-gold);
  font-size: 10px;
  font-weight: 900;
}

.tkxmem-history-event header h3 {
  margin: 5px 0 0;
  color: #fff !important;
  font-size: 17px !important;
}

.tkxmem-history-event header a {
  flex: 0 0 auto;
  color: #d9d9dc !important;
  font-size: 10px;
  font-weight: 800;
}

.tkxmem-history-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-top: 1px solid #e4e0da;
  background: #fff;
}

.tkxmem-history-row > span {
  color: #77777c;
  font-size: 11px;
  font-weight: 900;
}

.tkxmem-history-row div small,
.tkxmem-history-row div strong,
.tkxmem-history-row div em {
  display: block;
}

.tkxmem-history-row div small {
  color: #88888d;
  font-size: 9px;
}

.tkxmem-history-row div strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.tkxmem-history-row div em {
  margin-top: 4px;
  color: #777;
  font-size: 9px;
  font-style: normal;
}

.tkxmem-history-row > b {
  padding: 6px 5px;
  background: #eee;
  color: #555;
  font-size: 10px;
  text-align: center;
}

.tkxmem-history-row.is-hit > b {
  background: #e1f5ea;
  color: var(--tkxmem-green);
}

.tkxmem-history-row.is-miss > b {
  background: #ffeaec;
  color: var(--tkxmem-red);
}

.tkxmem-fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.tkxmem-tabs {
  position: sticky;
  z-index: 4;
  top: 0;
  border-bottom: 1px solid #2d2d30;
  background: #0d0d0e;
}

.admin-bar .tkxmem-tabs {
  top: 32px;
}

.tkxmem-tabs .tkxmem-wrap {
  display: flex;
  overflow-x: auto;
}

.tkxmem-tabs a {
  min-width: 130px;
  padding: 19px 22px;
  border-bottom: 3px solid transparent;
  color: #bdbdc1 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}

.tkxmem-tabs a.is-active {
  border-color: var(--tkxmem-red);
  color: #fff !important;
}

.tkxmem-scope-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 34px;
  padding: 20px;
  border: 1px solid var(--tkxmem-line);
  background: #fff;
}

.tkxmem-scope-form label {
  min-width: 0;
  flex: 1 1 auto;
}

.tkxmem-scope-form .tkxmem-btn {
  flex: 0 0 auto;
}

.tkxmem-ranking-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.tkxmem-ranking-summary dl {
  display: flex;
  gap: 1px;
  margin: 0;
  background: #c9c4bc;
}

.tkxmem-ranking-summary dl div {
  min-width: 110px;
  padding: 14px 18px;
  background: #fff;
}

.tkxmem-ranking-summary dt,
.tkxmem-ranking-summary dd {
  margin: 0;
}

.tkxmem-ranking-summary dt {
  color: #77777c;
  font-size: 9px;
  font-weight: 800;
}

.tkxmem-ranking-summary dd {
  margin-top: 4px;
  color: #111;
  font-size: 15px;
  font-weight: 950;
}

.tkxmem-ranking-table {
  border: 1px solid #cfcac2;
  background: #fff;
}

.tkxmem-ranking-row {
  display: grid;
  grid-template-columns: 76px minmax(180px, 1fr) 140px 90px 90px;
  align-items: center;
  min-width: 680px;
  border-top: 1px solid #e3dfd9;
  color: #171717 !important;
}

.tkxmem-ranking-row > * {
  min-width: 0;
  padding: 18px;
}

.tkxmem-ranking-row > b {
  color: #777;
  font: 1000 28px/1 Arial, sans-serif;
  text-align: center;
}

.tkxmem-ranking-row > span > strong,
.tkxmem-ranking-row > span > small {
  display: block;
}

.tkxmem-ranking-row > span > strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.tkxmem-ranking-row > span > small {
  margin-top: 4px;
  color: #8b8b90;
  font-size: 9px;
}

.tkxmem-ranking-row > em {
  color: var(--tkxmem-red);
  font-size: 22px;
  font-style: normal;
  font-weight: 1000;
}

.tkxmem-ranking-row.rank-1 {
  border-top: 4px solid var(--tkxmem-gold);
  background: linear-gradient(90deg, #fff9e9, #fff);
}

.tkxmem-ranking-row.rank-1 > b {
  color: #a77a1b;
}

.tkxmem-ranking-row.rank-2 > b {
  color: #797d83;
}

.tkxmem-ranking-row.rank-3 > b {
  color: #9a5d32;
}

.tkxmem-ranking-row--head {
  border: 0;
  background: #171718;
  color: #c9c9cd !important;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.tkxmem-method {
  margin-top: 48px;
  padding: 40px;
  background: #111112;
  color: #fff;
}

.tkxmem-method h2 {
  color: #fff !important;
}

.tkxmem-method > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 28px 0;
  background: #3a3a3d;
}

.tkxmem-method article {
  padding: 24px;
  background: #1c1c1e;
}

.tkxmem-method article b {
  display: block;
  color: var(--tkxmem-gold);
  font: 1000 30px/1 Arial, sans-serif;
}

.tkxmem-method article strong {
  display: block;
  margin: 15px 0 8px;
}

.tkxmem-method article p,
.tkxmem-method > small {
  color: #aaaab0;
  font-size: 11px;
  line-height: 1.8;
}

.tkxmem-profile-grid {
  margin-bottom: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tkxmem-favorites {
  margin: 25px 0 0;
}

.tkxmem-favorites div {
  padding: 15px 0;
  border-top: 1px solid var(--tkxmem-line);
}

.tkxmem-favorites dt,
.tkxmem-favorites dd {
  margin: 0;
}

.tkxmem-favorites dt {
  color: #77777c;
  font-size: 10px;
  font-weight: 900;
}

.tkxmem-favorites dd {
  margin-top: 6px;
  color: #171717;
  font-weight: 900;
}

.tkxmem-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tkxmem-badges span {
  padding: 9px 12px;
  border: 1px solid #b89442;
  background: #fff8e6;
  color: #785914;
  font-size: 11px;
  font-weight: 900;
}

.tkxmem-legal {
  max-width: 880px;
  padding: 50px;
  border: 1px solid var(--tkxmem-line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(25, 20, 15, .07);
}

.tkxmem-updated {
  margin: 0 0 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--tkxmem-line);
  color: #77777c;
  font-size: 12px;
  font-weight: 800;
}

.tkxmem-legal h2 {
  margin: 42px 0 14px;
  color: #171717 !important;
  font-size: 25px !important;
  line-height: 1.4;
}

.tkxmem-legal p,
.tkxmem-legal li {
  color: #444449;
  font-size: 14px;
  line-height: 2;
}

.tkxmem-legal ul {
  padding-left: 1.4em;
}

.tkxmem-legal code {
  padding: 2px 5px;
  background: #eee;
  font-size: .9em;
}

.tkxmem-top3,
.tkxmem-top3-empty {
  margin-top: 34px;
}

.tkxmem-top3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tkxmem-top3 a {
  display: grid;
  min-width: 0;
  padding: 25px;
  border-top: 4px solid #777;
  background: #fff;
  color: #171717 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.tkxmem-top3 a:first-child {
  border-color: var(--tkxmem-gold);
}

.tkxmem-top3 small {
  color: var(--tkxmem-red);
  font-size: 10px;
  font-weight: 900;
}

.tkxmem-top3 strong {
  margin: 12px 0;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.tkxmem-top3 b {
  color: var(--tkxmem-red);
  font-size: 33px;
}

.tkxmem-top3 span {
  color: #77777c;
  font-size: 10px;
  font-weight: 700;
}

.tkxmem-top3-empty {
  padding: 30px;
  border-left: 5px solid var(--tkxmem-red);
  background: #fff;
  color: #242426;
}

.tkxmem-top3-empty strong {
  display: block;
  font-size: 19px;
}

.tkxmem-top3-empty p {
  margin: 8px 0 14px;
  color: #67676c;
  font-size: 12px;
}

.tkxmem-top3-empty a {
  color: var(--tkxmem-red) !important;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 960px) {
  .tkxmem-auth-grid,
  .tkxmem-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .tkxmem-side-card {
    position: static;
  }

  .tkxmem-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tkxmem-ranking-table {
    overflow-x: auto;
  }
}

@media (max-width: 782px) {
  .admin-bar .tkxmem-tabs {
    top: 46px;
  }
}

@media (max-width: 700px) {
  .tkxmem-wrap {
    width: min(100% - 28px, 1120px);
  }

  .tkxmem-hero {
    min-height: 400px;
  }

  .tkxmem-hero .tkxmem-wrap {
    padding-block: 62px;
  }

  .tkxmem-hero h1 {
    font-size: clamp(40px, 12vw, 59px);
  }

  .tkxmem-hero > .tkxmem-wrap > p:last-child {
    font-size: 14px;
  }

  .tkxmem-section {
    padding: 58px 0 72px;
  }

  .tkxmem-panel,
  .tkxmem-side-card,
  .tkxmem-empty,
  .tkxmem-method,
  .tkxmem-legal {
    padding: 27px;
  }

  .tkxmem-account-head,
  .tkxmem-ranking-summary,
  .tkxmem-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .tkxmem-account-head .tkxmem-actions,
  .tkxmem-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tkxmem-btn {
    width: 100%;
  }

  .tkxmem-stat-grid article {
    padding: 20px;
  }

  .tkxmem-history-event > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tkxmem-history-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .tkxmem-history-row > b {
    grid-column: 1 / -1;
  }

  .tkxmem-tabs .tkxmem-wrap {
    width: max-content;
    min-width: 100%;
  }

  .tkxmem-tabs a {
    min-width: 112px;
    padding: 14px 10px;
    font-size: 15px;
  }

  .tkxmem-scope-form {
    align-items: stretch;
    flex-direction: column;
  }

  .tkxmem-ranking-summary dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .tkxmem-ranking-summary dl div {
    min-width: 0;
    padding: 12px;
  }

  .tkxmem-method > div,
  .tkxmem-profile-grid,
  .tkxmem-top3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .tkxmem-stat-grid {
    grid-template-columns: 1fr;
  }

  .tkxmem-ranking-summary dl {
    grid-template-columns: 1fr;
  }

  .tkxmem-ranking-summary dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .tkxmem-ranking-summary dd {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tkxmem *,
  .tkxmem *::before,
  .tkxmem *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Gate 3: feature-specific warm-neutral overrides moved from launch-theme.css. */
/* Members: same hero system, red benefit card */
.tkxmem {
  --tkxmem-paper: var(--tkxl-paper);
  --tkxmem-red: var(--tkxl-red);
  --tkxmem-gold: var(--tkxl-gold);
}

@media (min-width: 701px) {
  .tkxmem-hero h1 {
    max-width: 850px;
    font-size: clamp(42px, 5.2vw, 68px) !important;
    word-break: keep-all;
  }
}

.tkxmem-side-card {
  border: 0 !important;
  border-top: 8px solid var(--tkxl-black) !important;
  background: linear-gradient(145deg, var(--tkxl-red), var(--tkxl-red-dark)) !important;
  box-shadow: var(--tkxl-shadow);
}

.tkxmem-side-card > p,
.tkxmem-side-card ol span,
.tkxmem-check-list li {
  color: #ffe7e9 !important;
}

.tkxmem-side-card ol b,
.tkxmem-check-list li::before {
  color: var(--tkxl-white) !important;
}

.tkxmem-side-card ol li,
.tkxmem-check-list li {
  border-color: rgba(255, 255, 255, .28) !important;
}

.tkxmem-method {
  border-top: 8px solid var(--tkxl-red);
  background: var(--tkxl-black) !important;
}

/* Gate 7: empty-state action must remain tappable. */
.tkxmem-top3-empty a { display: inline-flex; min-height: 44px; align-items: center; }

/* Gate 7: consent and account handoff controls keep a 44px tap target. */
.tkxmem-check {
  min-height: 44px;
  align-items: center;
}

.tkxmem-check a,
.tkxmem-auth-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}


/* Matchday preparation dashboard. */
.tkxmem-prep {
  margin: 26px 0;
  border-top: 8px solid var(--tkxmem-red);
}
.tkxmem-prep-score {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: #181818;
  white-space: nowrap;
}
.tkxmem-prep-event {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(24,24,24,.16);
  border-radius: 18px;
  background: #fff;
}
.tkxmem-prep-event > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(24,24,24,.14);
}
.tkxmem-prep-event h3 { margin: 4px 0; font-size: clamp(21px, 3vw, 29px); }
.tkxmem-prep-event header p { margin: 0; }
.tkxmem-prep-prediction {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 12px;
  background: #f1eee8;
}
.tkxmem-prep-prediction > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #777;
  border-radius: 50%;
  font-weight: 900;
}
.tkxmem-prep-prediction.is-done { background: #eaf6ee; }
.tkxmem-prep-prediction.is-done > span { color: #fff; border-color: #237a3b; background: #237a3b; }
.tkxmem-prep-prediction small { display: block; margin-top: 2px; }
.tkxmem-prep-prediction a { font-weight: 800; color: var(--tkxmem-red); }
.tkxmem-prep-form { display: grid; gap: 8px; }
.tkxmem-prep-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid rgba(24,24,24,.14);
  border-radius: 10px;
  cursor: pointer;
}
.tkxmem-prep-check input { width: 22px; height: 22px; accent-color: var(--tkxmem-red); }
.tkxmem-prep-check:has(input:checked) { border-color: #237a3b; background: #edf8f0; }
.tkxmem-prep-form .tkxmem-btn { margin-top: 8px; justify-self: start; }
.tkxmem-prep-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 20px;
}
.tkxmem-prep-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(24,24,24,.18);
  border-radius: 10px;
  color: #181818;
  background: #f7f4ee;
  font-weight: 800;
  text-align: center;
}
.tkxmem-prep-links a[data-affiliate] { color: #fff; border-color: var(--tkxmem-red); background: var(--tkxmem-red); }
@media (max-width: 700px) {
  .tkxmem-prep-event > header { flex-direction: column; gap: 8px; }
  .tkxmem-prep-prediction { grid-template-columns: 40px 1fr; }
  .tkxmem-prep-prediction a { grid-column: 2; }
  .tkxmem-prep-links { grid-template-columns: 1fr; }
  .tkxmem-prep-form .tkxmem-btn { width: 100%; justify-content: center; }
}


.tkxmem-prep-stack { display: grid; gap: 18px; margin-top: 18px; }
.tkxmem-prep-stack .tkxmem-prep-event { margin-top: 0; }
.tkxmem-prep-past { margin-top: 24px; border-top: 1px solid rgba(24,24,24,.16); padding-top: 18px; }
.tkxmem-prep-past summary { cursor: pointer; font-weight: 900; }
.tkxmem-prep-remove { margin-top: 14px; text-align: right; }
.tkxmem-prep-remove button { border: 0; background: transparent; color: #666; text-decoration: underline; cursor: pointer; }
.tkx-event-save {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 28px 0; padding: 20px; border: 2px solid var(--tkxmem-red, #c9152b);
  border-radius: 14px; background: #fff7f5;
}
.tkx-event-save > div { display: grid; gap: 3px; }
.tkx-event-save small { color: var(--tkxmem-red, #c9152b); font-weight: 900; letter-spacing: .08em; }
.tkx-event-save strong { font-size: 20px; }
.tkx-event-save form { margin: 0; }
.tkx-event-save button, .tkx-event-save > a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 16px; border: 0; border-radius: 8px; color: #fff;
  background: var(--tkxmem-red, #c9152b); font-weight: 900; cursor: pointer; text-decoration: none;
}
.tkx-event-save.is-saved { border-color: #237a3b; background: #edf8f0; }
.tkx-event-save.is-saved button { color: #333; background: #e2e2e2; }
.tkx-event-save-notice { margin: 20px 0; padding: 14px 16px; border-left: 5px solid #237a3b; background: #edf8f0; font-weight: 800; }
@media (max-width: 700px) {
  .tkx-event-save { align-items: stretch; flex-direction: column; }
  .tkx-event-save button, .tkx-event-save > a { width: 100%; }
  .tkxmem-prep-event > header .tkxmem-prep-score { align-self: flex-start; }
}


.tkx-member-route {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  width: min(1180px, calc(100% - 32px)); margin: 22px auto; padding: 18px 20px;
  border-left: 7px solid var(--tkxmem-red, #c9152b); background: #f7f4ee;
  box-shadow: 0 10px 30px rgba(24,24,24,.08);
}
.tkx-member-route > div { display: grid; gap: 3px; }
.tkx-member-route small { color: var(--tkxmem-red, #c9152b); font-weight: 900; letter-spacing: .08em; }
.tkx-member-route strong { font-size: clamp(18px, 2.5vw, 24px); }
.tkx-member-route a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 16px; border-radius: 8px; color: #fff;
  background: var(--tkxmem-red, #c9152b); font-weight: 900; text-decoration: none; white-space: nowrap;
}
@media (max-width: 700px) {
  .tkx-member-route { align-items: stretch; flex-direction: column; }
  .tkx-member-route a { width: 100%; white-space: normal; text-align: center; }
}
