

:root {
  --tm-bg: #2a2433;
  --tm-surface: #352e40;
  --tm-surface-2: #3f374c;
  --tm-surface-hover: #473e56;
  --tm-ink: #f3eefa;
  --tm-accent: #b69cff;
  --tm-accent-hover: #cbbafe;
  --tm-accent-bg: rgba(182, 156, 255, 0.12);
  --tm-accent2: #c6f432;
  --tm-accent2-hover: #d3f94d;
  --tm-accent2-bg: rgba(198, 244, 50, 0.12);
  --tm-line: #4d4260;
  --tm-muted: #c9bfda;
  --tm-deep: #1f1a27;
  --tm-on-lime: #1c2106;
  --tm-on-lilac: #20143f;

  --tm-font-display: 'Tektur', 'Chakra Petch', sans-serif;
  --tm-font-body: 'Chakra Petch', sans-serif;

  --tm-sp-3xs: 2px;
  --tm-sp-2xs: 4px;
  --tm-sp-xs: 8px;
  --tm-sp-sm: 12px;
  --tm-sp-md: 16px;
  --tm-sp-lg: 20px;
  --tm-sp-xl: 24px;
  --tm-sp-2xl: 32px;
  --tm-sp-3xl: 48px;
  --tm-sp-4xl: 64px;

  --tm-rad-sm: 14px;
  --tm-rad-md: 18px;
  --tm-rad-lg: 20px;
  --tm-rad-xl: 22px;
  --tm-rad-2xl: 26px;
  --tm-rad-3xl: 28px;
  --tm-rad-4xl: 36px;
  --tm-rad-pill: 9999px;

  --tm-shadow-soft: 0 8px 24px rgba(15, 12, 20, 0.45);
  --tm-shadow-glow: 0 0 36px rgba(182, 156, 255, 0.22);
  --tm-shadow-card: 0 4px 16px rgba(15, 12, 20, 0.35);

  --tm-bar-h: 60px;
  --tm-trans: 160ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: clip;
  background-color: var(--tm-bg);
  color: var(--tm-ink);
  font-family: var(--tm-font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

html.tm-lock {
  overflow: hidden;
}

body.tm-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.tm-body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a,
button {
  color: inherit;
  transition: color var(--tm-trans), background-color var(--tm-trans), border-color var(--tm-trans), box-shadow var(--tm-trans);
}

.tm-skip {
  position: absolute;
  top: -120px;
  left: var(--tm-sp-md);
  background-color: var(--tm-accent2);
  color: var(--tm-on-lime);
  font-family: var(--tm-font-display);
  font-weight: 700;
  padding: var(--tm-sp-xs) var(--tm-sp-md);
  border-radius: var(--tm-rad-sm);
  z-index: 1000;
  text-decoration: none;
  white-space: nowrap;
}

.tm-skip:focus-visible {
  top: var(--tm-sp-md);
  outline: 3px solid var(--tm-accent);
  outline-offset: 3px;
}

header.tm-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--tm-bar-h);
  background-color: var(--tm-bg);
  border-bottom: 1px solid var(--tm-line);
  z-index: 300;
}

.tm-bar-in {
  max-width: 1366px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--tm-sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tm-sp-md);
}

.tm-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--tm-sp-xs);
  text-decoration: none;
  flex-shrink: 0;
}

.tm-brand-foot {
  display: inline-flex;
  align-items: center;
  gap: var(--tm-sp-xs);
  text-decoration: none;
  margin-bottom: var(--tm-sp-xs);
}

.tm-mark {
  width: 26px;
  height: 26px;
  fill: var(--tm-accent2);
  flex-shrink: 0;
}

.tm-brand-word {
  font-family: var(--tm-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--tm-ink);
  white-space: nowrap;
}

.tm-menu {
  display: none;
}

@media (min-width: 960px) {
  .tm-menu {
    display: flex;
    align-items: center;
    gap: var(--tm-sp-xs);
    margin-left: var(--tm-sp-lg);
    margin-right: auto;
  }
}

.tm-menu-a {
  font-family: var(--tm-font-display);
  font-size: 0.95rem;
  color: var(--tm-ink);
  text-decoration: none;
  padding: 0 var(--tm-sp-sm);
  height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: var(--tm-rad-sm);
}

.tm-menu-a:hover {
  color: var(--tm-accent2);
  background-color: var(--tm-surface);
}

.tm-menu-a:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 2px;
}

.tm-menu-a:active {
  background-color: var(--tm-surface-2);
}

.tm-bar-act {
  display: flex;
  align-items: center;
  gap: var(--tm-sp-xs);
  flex-shrink: 0;
}

.tm-cta {
  background-color: var(--tm-accent2);
  color: var(--tm-on-lime);
  font-family: var(--tm-font-display);
  font-weight: 600;
  min-height: 46px;
  border-radius: var(--tm-rad-sm);
  padding: 0 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.tm-cta:hover {
  background-color: var(--tm-accent2-hover);
  color: var(--tm-on-lime);
}

.tm-cta:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 3px;
}

.tm-cta:active {
  background-color: var(--tm-accent2);
}

.tm-cta:disabled,
.tm-cta[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.tm-cta-top {
  min-height: 40px;
  height: 40px;
  padding: 0 var(--tm-sp-md);
  font-size: 0.9rem;
}

.tm-cta-hero {
  min-height: 48px;
  padding: 0 var(--tm-sp-xl);
  font-size: 1.05rem;
}

.tm-cta-big {
  min-height: 52px;
  padding: 0 var(--tm-sp-2xl);
  font-size: 1.1rem;
  border-radius: var(--tm-rad-md);
}

.tm-cta-foot {
  min-height: 46px;
  width: 100%;
  font-size: 0.95rem;
}

.tm-cta-tip {
  min-height: 42px;
  padding: 0 var(--tm-sp-md);
  font-size: 0.9rem;
  align-self: flex-start;
}

.tm-ghost {
  background-color: transparent;
  border: 2px solid var(--tm-accent);
  color: var(--tm-accent);
  font-family: var(--tm-font-display);
  font-weight: 600;
  min-height: 46px;
  border-radius: var(--tm-rad-sm);
  padding: 0 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.tm-ghost:hover {
  background-color: var(--tm-accent-bg);
  color: var(--tm-ink);
}

.tm-ghost:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 3px;
}

.tm-ghost:active {
  background-color: var(--tm-surface-2);
}

.tm-ghost:disabled,
.tm-ghost[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.tm-burger {
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-rad-sm);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  flex-shrink: 0;
}

.tm-burger:hover {
  border-color: var(--tm-accent);
  background-color: var(--tm-surface);
}

.tm-burger:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 2px;
}

.tm-burger:active {
  background-color: var(--tm-surface-2);
}

.tm-burger-l {
  width: 20px;
  height: 2px;
  background-color: var(--tm-ink);
  border-radius: 2px;
  display: block;
}

@media (min-width: 960px) {
  .tm-burger {
    display: none;
  }
}

.tm-drawer {
  display: none;
}

.tm-drawer.tm-open {
  display: block;
  position: fixed;
  top: var(--tm-bar-h);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--tm-deep);
  overflow-y: auto;
  z-index: 290;
}

.tm-drawer-in {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--tm-sp-xl) var(--tm-sp-md);
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--tm-sp-lg);
}

@media (min-width: 720px) {
  .tm-drawer-in {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: var(--tm-sp-xl);
  }
}

.tm-drawer-h {
  font-family: var(--tm-font-display);
  font-size: 0.85rem;
  color: var(--tm-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--tm-sp-xs);
  grid-column: 1 / -1;
}

.tm-dgroup {
  display: flex;
  flex-direction: column;
}

.tm-dtitle {
  font-family: var(--tm-font-display);
  font-size: 1.05rem;
  color: var(--tm-accent);
  margin-bottom: var(--tm-sp-xs);
}

.tm-dlink {
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tm-line);
  color: var(--tm-ink);
  text-decoration: none;
  font-size: 1rem;
  padding: 0 var(--tm-sp-xs);
  white-space: nowrap;
}

.tm-dlink::after {
  content: '>';
  font-family: var(--tm-font-display);
  color: var(--tm-accent);
  font-size: 0.9rem;
}

.tm-dlink:hover {
  color: var(--tm-accent2);
  background-color: var(--tm-surface);
}

.tm-dlink:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: -2px;
}

.tm-dlink:active {
  background-color: var(--tm-surface-2);
}

section.tm-hero {
  padding: var(--tm-sp-2xl) var(--tm-sp-md);
}

.tm-hero-in {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--tm-sp-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .tm-hero-in {
    grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr);
    gap: var(--tm-sp-3xl);
  }
}

.tm-hero-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--tm-sp-md);
}

.tm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tm-sp-md);
  align-items: center;
  margin-top: var(--tm-sp-xs);
}

.tm-hero-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tm-eb {
  font-family: var(--tm-font-display);
  font-size: 0.85rem;
  color: var(--tm-accent2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--tm-accent2-bg);
  border: 1px solid var(--tm-accent2);
  border-radius: var(--tm-rad-pill);
  padding: var(--tm-sp-3xs) var(--tm-sp-sm);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

h1.tm-h1 {
  font-family: var(--tm-font-display);
  color: var(--tm-ink);
  font-size: 1.75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  min-width: 0;
  font-weight: 700;
}

@media (min-width: 900px) {
  h1.tm-h1 {
    font-size: 2.5rem;
  }
}

.tm-h1-in {
  font-size: 1.65rem;
  line-height: 1.4;
}

.tm-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--tm-muted);
  max-width: 65ch;
}

.tm-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--tm-sp-xs);
  padding: 0;
  margin-top: var(--tm-sp-xs);
}

.tm-chip {
  font-family: var(--tm-font-display);
  font-size: 0.8rem;
  color: var(--tm-accent);
  border: 1px solid var(--tm-accent);
  border-radius: var(--tm-rad-pill);
  padding: var(--tm-sp-3xs) var(--tm-sp-sm);
  line-height: 1.4;
  background-color: var(--tm-accent-bg);
}

.tm-phone {
  width: 260px;
  border-radius: var(--tm-rad-4xl);
  border: 8px solid var(--tm-line);
  background-color: var(--tm-surface);
  box-shadow: var(--tm-shadow-glow), var(--tm-shadow-soft);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .tm-phone {
    width: 300px;
  }
}

.tm-phone-notch {
  width: 90px;
  height: 16px;
  background-color: var(--tm-line);
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
}

.tm-phone-scr {
  background-color: var(--tm-deep);
  border-radius: var(--tm-rad-2xl);
  padding: var(--tm-sp-md);
  margin: var(--tm-sp-xs);
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-md);
}

.tm-phone-t {
  font-family: var(--tm-font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tm-muted);
  text-align: center;
}

.tm-ph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--tm-sp-sm);
  list-style: none;
  padding: 0;
}

.tm-ph-ic {
  border-radius: 22%;
  overflow: hidden;
  background-color: var(--tm-surface);
  aspect-ratio: 1 / 1;
  display: flex;
}

.tm-ph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 22%;
}

.tm-phone-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: var(--tm-sp-xs);
}

.tm-phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--tm-line);
}

.tm-phone-dot:first-child {
  background-color: var(--tm-accent2);
}

.tm-phone-cap {
  font-size: 0.85rem;
  color: var(--tm-muted);
  text-align: center;
  margin-top: var(--tm-sp-sm);
}

section.tm-blk {
  padding: var(--tm-sp-3xl) var(--tm-sp-md);
}

.tm-col {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

h2.tm-h2 {
  font-family: var(--tm-font-display);
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--tm-ink);
  margin-top: var(--tm-sp-xs);
  margin-bottom: var(--tm-sp-md);
  overflow-wrap: anywhere;
  min-width: 0;
  font-weight: 700;
}

@media (min-width: 900px) {
  h2.tm-h2 {
    font-size: 2rem;
  }
}

h3.tm-h3 {
  font-family: var(--tm-font-display);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--tm-ink);
  margin-bottom: var(--tm-sp-xs);
}

.tm-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--tm-muted);
  margin-bottom: var(--tm-sp-xl);
  max-width: 65ch;
}

section.tm-steps {
  background-color: var(--tm-bg);
}

.tm-step-list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--tm-sp-md);
  width: 100%;
  padding: 0;
  margin-top: var(--tm-sp-md);
}

@media (min-width: 640px) {
  .tm-step-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (min-width: 1000px) {
  .tm-step-list {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

.tm-step {
  border-radius: var(--tm-rad-lg);
  background-color: var(--tm-surface);
  border: 1px solid var(--tm-line);
  padding: var(--tm-sp-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--tm-sp-sm);
  box-shadow: var(--tm-shadow-card);
}

.tm-step-n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--tm-accent2);
  color: var(--tm-on-lime);
  font-family: var(--tm-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tm-step-p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--tm-muted);
}

section.tm-games {
  background-color: var(--tm-deep);
}

.tm-app-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  width: 100%;
  padding: 0;
  margin-top: var(--tm-sp-md);
}

@media (min-width: 768px) {
  .tm-app-grid {
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: var(--tm-sp-md);
  }
}

.tm-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--tm-sp-xs);
}

.tm-app-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22%;
  object-fit: cover;
  background-color: var(--tm-surface);
  border: 1px solid var(--tm-line);
}

.tm-app-n {
  font-family: var(--tm-font-display);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--tm-ink);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

section.tm-cats {
  background-color: var(--tm-bg);
}

.tm-cat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--tm-sp-lg);
  width: 100%;
  padding: 0;
  margin-top: var(--tm-sp-md);
}

@media (min-width: 768px) {
  .tm-cat-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

.tm-cat {
  background-color: var(--tm-surface);
  border-radius: var(--tm-rad-md);
  border: 1px solid var(--tm-line);
  overflow: hidden;
  padding: var(--tm-sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-xs);
}

.tm-cat-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--tm-rad-md);
  margin-bottom: var(--tm-sp-xs);
}

.tm-cat-p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--tm-muted);
}

.tm-lg-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--tm-sp-sm);
  width: 100%;
  padding: 0;
  margin-top: var(--tm-sp-2xl);
}

@media (min-width: 768px) {
  .tm-lg-row {
    grid-template-columns: repeat(6, minmax(0,1fr));
  }
}

@media (min-width: 1200px) {
  .tm-lg-row {
    grid-template-columns: repeat(12, minmax(0,1fr));
  }
}

.tm-lg {
  display: flex;
  aspect-ratio: 1 / 1;
}

.tm-lg-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background-color: var(--tm-surface);
  border: 1px solid var(--tm-line);
}

section.tm-long {
  background-color: var(--tm-deep);
}

.tm-prose {
  max-width: 68ch;
  width: 100%;
  font-size: 17px;
  line-height: 1.8;
  color: var(--tm-ink);
  margin: 0 auto;
}

.tm-prose h2 {
  font-family: var(--tm-font-display);
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--tm-ink);
  margin-top: var(--tm-sp-2xl);
  margin-bottom: var(--tm-sp-md);
  position: relative;
  padding-top: var(--tm-sp-xs);
}

.tm-prose h2::before {
  content: '';
  display: block;
  width: 28px;
  height: 4px;
  background-color: var(--tm-accent2);
  border-radius: 2px;
  margin-bottom: var(--tm-sp-xs);
}

.tm-prose h3 {
  font-family: var(--tm-font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--tm-accent);
  margin-top: var(--tm-sp-xl);
  margin-bottom: var(--tm-sp-xs);
}

.tm-prose p {
  margin-bottom: var(--tm-sp-md);
}

.tm-prose ul,
.tm-prose ol {
  margin-bottom: var(--tm-sp-md);
  padding-left: var(--tm-sp-xl);
}

.tm-prose li {
  margin-bottom: var(--tm-sp-2xs);
}

.tm-prose ul li::marker,
.tm-prose ol li::marker {
  color: var(--tm-accent2);
}

.tm-prose strong {
  color: var(--tm-ink);
  font-weight: 700;
}

.tm-prose a {
  color: var(--tm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tm-prose a:hover {
  color: var(--tm-accent2);
}

.tm-prose a:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 2px;
}

.tm-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: var(--tm-sp-xl) 0;
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-rad-sm);
}

.tm-prose th,
.tm-prose td {
  padding: var(--tm-sp-sm) var(--tm-sp-md);
  border: 1px solid var(--tm-line);
  text-align: left;
  font-size: 0.95rem;
  white-space: nowrap;
}

.tm-prose th {
  background-color: var(--tm-surface);
  font-family: var(--tm-font-display);
  color: var(--tm-ink);
}

.tm-tip {
  border-radius: var(--tm-rad-md);
  background-color: var(--tm-surface);
  border-left: 4px solid var(--tm-accent2);
  border-top: 1px solid var(--tm-line);
  border-right: 1px solid var(--tm-line);
  border-bottom: 1px solid var(--tm-line);
  padding: var(--tm-sp-lg);
  margin: var(--tm-sp-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-md);
}

.tm-tip-t {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tm-ink);
  margin: 0;
}

section.tm-promo {
  background-color: var(--tm-bg);
}

.tm-pr-list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--tm-sp-md);
  width: 100%;
  padding: 0;
  margin-top: var(--tm-sp-md);
}

@media (min-width: 768px) {
  .tm-pr-list {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

.tm-pr {
  background-color: var(--tm-surface);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-rad-lg);
  padding: var(--tm-sp-md);
  display: flex;
  flex-direction: row;
  gap: var(--tm-sp-md);
  align-items: center;
}

@media (min-width: 768px) {
  .tm-pr {
    flex-direction: column;
    align-items: flex-start;
  }
}

.tm-pr-img {
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
  border-radius: var(--tm-rad-lg);
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .tm-pr-img {
    width: 100%;
    height: 160px;
    aspect-ratio: 16 / 10;
  }
}

.tm-pr-b {
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-3xs);
}

.tm-pr-p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--tm-muted);
}

section.tm-faq {
  background-color: var(--tm-deep);
}

.tm-qa-list {
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-md);
  width: 100%;
  margin-top: var(--tm-sp-md);
}

details.tm-qa {
  border-radius: 16px;
  background-color: var(--tm-surface);
  border: 1px solid var(--tm-line);
  overflow: hidden;
}

summary.tm-qa-q {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--tm-sp-md) var(--tm-sp-lg);
  cursor: pointer;
  list-style: none;
  font-family: var(--tm-font-display);
  font-size: 1.05rem;
  color: var(--tm-ink);
  font-weight: 600;
}

summary.tm-qa-q::-webkit-details-marker {
  display: none;
}

summary.tm-qa-q::after {
  content: '+';
  font-family: var(--tm-font-display);
  font-size: 1.3rem;
  color: var(--tm-accent2);
  line-height: 1;
  flex-shrink: 0;
  margin-left: var(--tm-sp-sm);
}

details.tm-qa[open] summary.tm-qa-q::after {
  content: '-';
}

summary.tm-qa-q:hover {
  background-color: var(--tm-surface-hover);
}

summary.tm-qa-q:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: -2px;
}

.tm-qa-a {
  padding: 0 var(--tm-sp-lg) var(--tm-sp-lg) var(--tm-sp-lg);
}

.tm-qa-a p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--tm-muted);
  margin: 0;
}

section.tm-end {
  background-color: var(--tm-bg);
}

.tm-end-box {
  border-radius: var(--tm-rad-3xl);
  background: linear-gradient(180deg, var(--tm-surface) 0%, var(--tm-deep) 100%);
  border: 1px solid var(--tm-accent);
  padding: var(--tm-sp-3xl) var(--tm-sp-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--tm-sp-md);
  width: 100%;
  box-shadow: var(--tm-shadow-soft);
}

.tm-end-p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--tm-muted);
  max-width: 52ch;
  margin: 0 auto;
}

footer.tm-foot {
  background-color: var(--tm-deep);
  border-top: 1px solid var(--tm-line);
  padding: var(--tm-sp-3xl) var(--tm-sp-md) var(--tm-sp-2xl) var(--tm-sp-md);
  color: var(--tm-muted);
}

.tm-fw {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-2xl);
}

.tm-ftop {
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-sm);
}

.tm-fabout {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--tm-muted);
  max-width: 60ch;
}

.tm-fgrid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--tm-sp-xl);
  width: 100%;
}

@media (min-width: 640px) {
  .tm-fgrid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (min-width: 1000px) {
  .tm-fgrid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

.tm-fcol {
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-sm);
}

h2.tm-fh {
  font-family: var(--tm-font-display);
  font-size: 1.05rem;
  color: var(--tm-ink);
  margin-bottom: var(--tm-sp-xs);
}

.tm-fl {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-xs);
}

.tm-fl li a {
  color: var(--tm-muted);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.tm-fl li a:hover {
  color: var(--tm-accent2);
}

.tm-fl li a:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 2px;
}

.tm-fdl {
  border-radius: var(--tm-rad-xl);
  border: 1px solid var(--tm-accent2);
  background-color: var(--tm-surface);
  padding: var(--tm-sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--tm-sp-sm);
  justify-content: center;
}

.tm-fdl-p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--tm-muted);
  margin-bottom: var(--tm-sp-xs);
}

.tm-fmisc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tm-sp-md);
  padding-top: var(--tm-sp-lg);
  border-top: 1px solid var(--tm-line);
}

.tm-fm {
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--tm-muted);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 0 var(--tm-sp-xs);
}

.tm-fm:hover {
  color: var(--tm-accent);
}

.tm-fm:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 2px;
}

.tm-fbot {
  display: flex;
  align-items: center;
  gap: var(--tm-sp-md);
  padding-top: var(--tm-sp-md);
  border-top: 1px solid var(--tm-line);
}

.tm-18 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--tm-accent2);
  color: var(--tm-accent2);
  font-family: var(--tm-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tm-fnote {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--tm-muted);
  margin: 0;
}

.tm-fnote a {
  display: inline-block;
  color: var(--tm-accent);
  text-decoration: underline;
}

.tm-fnote a:hover {
  color: var(--tm-accent2);
}

.tm-fnote a:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 2px;
}

nav.tm-tabs {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background-color: var(--tm-surface);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-rad-2xl);
  box-shadow: var(--tm-shadow-soft);
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  z-index: 280;
  padding: 4px;
}

@media (min-width: 768px) {
  nav.tm-tabs {
    display: none;
  }
}

.tm-tab {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--tm-muted);
  white-space: nowrap;
  padding: 4px 2px;
}

.tm-tab svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.tm-tab-lb {
  font-family: var(--tm-font-display);
  font-size: 12px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.tm-tab:hover {
  color: var(--tm-accent);
}

.tm-tab:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 2px;
}

.tm-tab:active {
  background-color: var(--tm-surface-2);
  border-radius: var(--tm-rad-sm);
}

.tm-tab-on {
  color: var(--tm-accent2);
}

.tm-tab-on svg {
  fill: var(--tm-accent2);
}

.tm-tab-cta {
  background-color: var(--tm-accent2);
  color: var(--tm-on-lime);
  border-radius: var(--tm-rad-lg);
}

.tm-tab-cta svg {
  fill: var(--tm-on-lime);
}

.tm-tab-cta .tm-tab-lb {
  color: var(--tm-on-lime);
  font-weight: 600;
}

.tm-tab-cta:hover {
  background-color: var(--tm-accent2-hover);
  color: var(--tm-on-lime);
}

section.tm-top {
  padding: var(--tm-sp-2xl) var(--tm-sp-md);
  background-color: var(--tm-surface);
  border-radius: var(--tm-rad-3xl);
  border: 1px solid var(--tm-line);
  max-width: 1200px;
  margin: var(--tm-sp-xl) auto;
  width: calc(100% - var(--tm-sp-lg));
}

section.tm-top .tm-col {
  max-width: 760px;
}

.tm-crumbs {
  margin-bottom: var(--tm-sp-md);
}

.tm-crumbs-ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tm-sp-xs);
  padding: 0;
  margin: 0;
}

.tm-cr {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--tm-muted);
}

.tm-cr:not(:first-child)::before {
  content: '/';
  margin-right: var(--tm-sp-xs);
  color: var(--tm-line);
  font-size: 0.85rem;
}

.tm-cr a {
  color: var(--tm-muted);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.tm-cr a:hover {
  color: var(--tm-accent2);
}

.tm-cr a:focus-visible {
  outline: 3px solid var(--tm-accent);
  outline-offset: 2px;
}

.tm-cr span {
  color: var(--tm-ink);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.tm-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--tm-sp-xs);
  padding: 0;
  margin: var(--tm-sp-md) 0;
}

.tm-meta-i {
  font-family: var(--tm-font-display);
  font-size: 0.8rem;
  color: var(--tm-muted);
  background-color: var(--tm-deep);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-rad-pill);
  padding: var(--tm-sp-3xs) var(--tm-sp-sm);
  line-height: 1.4;
}

section.tm-art {
  background-color: var(--tm-bg);
}

section.tm-galsec {
  background-color: var(--tm-deep);
}

.tm-gal {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--tm-sp-sm);
  width: 100%;
  padding: 0;
  margin-top: var(--tm-sp-md);
}

@media (min-width: 768px) {
  .tm-gal {
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: var(--tm-sp-md);
  }
}

.tm-gl {
  aspect-ratio: 1 / 1;
  display: flex;
}

.tm-gl-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20%;
  object-fit: cover;
  background-color: var(--tm-surface);
  border: 1px solid var(--tm-line);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
/* patch 1 */
/* patch 2: nut CTA trong vung bai */
.tm-prose a.tm-cta, .tm-tip a.tm-cta { color: var(--tm-on-lime); text-decoration: none; }
/* patch 3: breadcrumb co le, khung dau trang con can giua va thoang */
.tm-crumbs { max-width: 76rem; margin: 0 auto; padding: 6px 20px 0; box-sizing: border-box; }
.tm-top { max-width: 48rem; margin: 12px auto 0; }
.tm-top .tm-col { max-width: none; padding-left: 24px; padding-right: 24px; }
.tm-h1-in { margin-bottom: 16px; }
@media (max-width: 767px) { .tm-top { margin-left: 16px; margin-right: 16px; } }

.tm-cat-a {
  display: contents;
}
