/*
Theme Name: tablenote
Description: カジノゲーム攻略ノート — ゲームのルール・配当・必勝法ガイド。Mobile-first, без jQuery.
Version: 1.0.0
Author: tablenote
Text Domain: tablenote
*/

/* ---------- Токены ---------- */
:root {
  --felt: #0e3b2c;
  --felt-2: #155a42;
  --felt-3: #0a2b20;
  --cream: #f6f0e1;
  --paper: #fffdf7;
  --line: #e4dac3;
  --ink: #221e18;
  --muted: #6d655a;
  --red: #b8262b;
  --red-d: #8e1b1f;
  --gold: #c8a24a;
  --gold-l: #e9d9a6;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --r: 10px;
  --shadow: 0 1px 2px rgba(34, 30, 24, .08), 0 6px 18px rgba(34, 30, 24, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; word-break: normal; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--felt-2); text-underline-offset: 3px; }
a:hover { color: var(--red); }
button { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tn-skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 100; }
.tn-skip:focus { left: 8px; }
.tn-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.tn-narrow { max-width: 860px; }
.tn-red { color: var(--red) !important; }

/* ---------- Кнопки ---------- */
.tn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 3px 0 var(--red-d); transition: transform .12s, background .12s;
}
.tn-btn::after { content: "›"; font-size: 1.2em; line-height: 1; }
.tn-btn:hover { background: #cc2f34; transform: translateY(-1px); }
.tn-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-d); }
.tn-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tn-btn-lg { min-height: 52px; font-size: 17px; padding: 12px 26px; }
.tn-btn-block { display: flex; width: 100%; }
.tn-btn-felt { background: var(--felt); box-shadow: 0 3px 0 var(--felt-3); }
.tn-btn-felt::after { content: none; }

/* ---------- Шапка ---------- */
.tn-head { position: sticky; top: 0; z-index: 50; background: var(--felt); color: var(--cream); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.tn-head-in { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.tn-logo { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; margin-right: auto; min-width: 0; }
.tn-logo:hover { color: #fff; }
.tn-logo-m { flex: none; }
.tn-logo-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tn-logo-n { font-family: var(--serif); font-weight: 800; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.tn-logo-n em { font-style: normal; color: var(--gold-l); }
.tn-logo-s { font-size: 10.5px; opacity: .78; letter-spacing: .04em; white-space: nowrap; }
.tn-head-cta { display: none; }
.tn-burger { display: flex; align-items: center; gap: 6px; background: transparent; color: var(--cream); border: 1px solid rgba(233, 217, 166, .5); border-radius: 6px; padding: 7px 10px; cursor: pointer; font-size: 12px; letter-spacing: .1em; }
.tn-burger-i, .tn-burger-i::before, .tn-burger-i::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.tn-burger-i::before, .tn-burger-i::after { content: ""; position: absolute; left: 0; }
.tn-burger-i::before { top: -5px; }
.tn-burger-i::after { top: 5px; }
.tn-burger[aria-expanded="true"] .tn-burger-i { background: transparent; }
.tn-burger[aria-expanded="true"] .tn-burger-i::before { transform: translateY(5px) rotate(45deg); }
.tn-burger[aria-expanded="true"] .tn-burger-i::after { transform: translateY(-5px) rotate(-45deg); }

.tn-nav { display: none; background: var(--paper); color: var(--ink); border-top: 3px solid var(--gold); max-height: calc(100vh - 58px); overflow: auto; }
.tn-nav.is-open { display: block; }
.tn-menu { list-style: none; margin: 0; padding: 6px 0 14px; }
.tn-mi { position: relative; border-bottom: 1px solid var(--line); }
.tn-mi > a { display: block; padding: 12px 48px 12px 4px; font-weight: 700; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 17px; }
.tn-sub-t { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.tn-sub-t::before { content: ""; display: block; width: 9px; height: 9px; margin: auto; border-right: 2px solid var(--felt); border-bottom: 2px solid var(--felt); transform: rotate(45deg); transition: transform .2s; }
.tn-mi.is-open > .tn-sub-t::before { transform: rotate(-135deg); }
.tn-sub { display: none; list-style: none; margin: 0 0 10px; padding: 0 0 0 10px; columns: 2; column-gap: 12px; }
.tn-mi.is-open > .tn-sub { display: block; }
.tn-sub li { break-inside: avoid; }
.tn-sub a { display: block; padding: 7px 4px; color: var(--felt-2); text-decoration: none; font-size: 14.5px; }
.tn-sub a::before { content: "♠ "; color: var(--gold); font-size: .8em; }

@media (min-width: 1000px) {
  .tn-head { position: relative; }
  .tn-head-in { min-height: 76px; }
  .tn-logo-n { font-size: 22px; }
  .tn-logo-s { font-size: 12px; }
  .tn-head-cta { display: inline-flex; }
  .tn-burger { display: none; }
  .tn-nav { display: block; max-height: none; overflow: visible; border-top: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
  .tn-menu { display: flex; justify-content: center; gap: 4px; padding: 0; }
  .tn-mi { border: 0; }
  .tn-mi > a { padding: 13px 22px; font-size: 16px; position: relative; }
  .tn-mi.tn-has > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
  .tn-mi > a:hover { color: var(--red); }
  .tn-sub-t { display: none; }
  .tn-sub { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); z-index: 60; min-width: 240px; padding: 12px; margin: 0; columns: 1;
    background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--felt); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); }
  .tn-mega > .tn-sub { min-width: 460px; columns: 2; }
  .tn-mi:hover > .tn-sub, .tn-mi:focus-within > .tn-sub { display: block; }
  .tn-sub a:hover { background: var(--cream); color: var(--red); }
}

/* ---------- Главная: баннер-стол ---------- */
.tn-hero {
  position: relative; color: var(--cream); overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 30% 0%, rgba(255, 255, 255, .12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Ctext x='8' y='26' font-size='16' fill='%23ffffff' fill-opacity='.045'%3E%E2%99%A0%3C/text%3E%3Ctext x='40' y='58' font-size='16' fill='%23ffffff' fill-opacity='.045'%3E%E2%99%A6%3C/text%3E%3C/svg%3E"),
    var(--felt-2);
}
.tn-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 26px); opacity: .7; }
.tn-hero-in { display: grid; gap: 18px; padding-top: 18px; padding-bottom: 28px; }
.tn-hero-k { margin: 0; font-size: 12.5px; letter-spacing: .06em; color: var(--gold-l); display: flex; align-items: center; gap: 8px; }
.tn-hero-k span { background: var(--red); color: #fff; padding: 2px 9px; border-radius: 3px; font-weight: 700; }
.tn-hero-h1 { font-family: var(--serif); font-weight: 800; font-size: 23px; line-height: 1.45; margin: 8px 0 8px; letter-spacing: .01em; }
.tn-hero-sub { margin: 0 0 10px; font-size: 14px; line-height: 1.75; opacity: .9; }
.tn-hero .tn-by { color: var(--cream); }
.tn-hero .tn-by a { color: var(--gold-l); }

.tn-pcard {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 16px 18px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border: 1px solid #fff;
  outline: 1px solid var(--gold); outline-offset: -7px;
}
.tn-pcard-c { position: absolute; font-family: var(--serif); font-weight: 800; font-size: 16px; line-height: 1; color: var(--felt); display: flex; flex-direction: column; align-items: center; }
.tn-pcard-c i { font-style: normal; font-size: 13px; }
.tn-pcard-c1 { left: 13px; top: 12px; }
.tn-pcard-c2 { right: 13px; bottom: 12px; transform: rotate(180deg); }
.tn-pcard-lbl { margin: 0 0 10px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.tn-pcard-b { display: flex; align-items: center; gap: 12px; margin: 0 14px 8px; }
.tn-pcard-name { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.4; }
.tn-pcard-games { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.tn-pcard-bonus { margin: 0 14px 12px; text-align: center; font-family: var(--serif); font-weight: 800; font-size: 16px; line-height: 1.45; color: var(--felt); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 8px 0; }
.tn-pcard .tn-btn { margin: 0 auto; max-width: 320px; }
.tn-pcard-note { margin: 8px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.tn-score { display: inline-block; color: #a87b12; font-size: .82em; font-weight: 700; white-space: nowrap; }

@media (min-width: 760px) {
  .tn-hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); align-items: center; gap: 40px; padding-top: 44px; padding-bottom: 52px; }
  .tn-hero-h1 { font-size: 34px; }
  .tn-hero-sub { font-size: 15.5px; }
  .tn-pcard { transform: rotate(1.5deg); padding: 22px 24px 18px; }
  .tn-pcard-bonus { font-size: 18px; }
}

/* ---------- Плитки игр ---------- */
.tn-games { padding: 26px 0 8px; }
.tn-sec-k { margin: 0; font-size: 11px; letter-spacing: .3em; color: var(--red); font-weight: 700; }
.tn-sec-h { margin: 0 0 14px; font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.tn-games-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tn-games-l a {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  height: 100%; padding: 10px 4px 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.tn-games-l a:hover { border-color: var(--felt-2); transform: translateY(-2px); color: var(--ink); }
.tn-games-i { width: 34px; height: 44px; border-radius: 5px; background: var(--cream); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--felt); font-family: var(--serif); font-weight: 800; box-shadow: 1px 1px 0 var(--line); }
.tn-games-n { font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.tn-games-s { display: none; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
@media (min-width: 760px) {
  .tn-games { padding: 40px 0 12px; }
  .tn-sec-h { font-size: 26px; }
  .tn-games-l { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .tn-games-l a { padding: 14px 10px; }
  .tn-games-i { width: 40px; height: 52px; font-size: 22px; }
  .tn-games-n { font-size: 15px; }
  .tn-games-s { display: block; }
}
@media (min-width: 1100px) { .tn-games-l { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- Автор, дата, PR ---------- */
.tn-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--muted); margin: 6px 0; }
.tn-by .tn-av { border-radius: 6px; }
.tn-by-who a { font-weight: 700; }
.tn-pr { display: flex; align-items: baseline; gap: 0; font-size: 12px; color: var(--muted); margin: 10px 0; line-height: 1.6; }
.tn-pr-b { flex: none; display: inline-block; border: 1px solid var(--muted); border-radius: 3px; padding: 0 5px; margin-right: 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; }

/* ---------- Шапка внутренних ---------- */
.tn-phead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 0 16px; position: relative; }
.tn-phead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--felt-2); }
.tn-crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; line-height: 1.6; }
.tn-crumbs a { color: var(--muted); }
.tn-crumbs .breadcrumb_last { color: var(--ink); }
.tn-ptitle { font-family: var(--serif); font-weight: 800; font-size: 22px; line-height: 1.5; margin: 4px 0 6px; }
@media (min-width: 760px) { .tn-phead { padding: 20px 0 22px; } .tn-ptitle { font-size: 30px; } }

/* CTA-«билет» */
.tn-ticket {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin-top: 8px;
  background: var(--felt); color: var(--cream); border-radius: var(--r); padding: 12px 14px; position: relative;
  border: 1px solid var(--felt-3); box-shadow: inset 0 0 0 4px var(--felt), inset 0 0 0 5px rgba(200, 162, 74, .6);
}
.tn-ticket-logo { line-height: 0; }
.tn-ticket-txt p { margin: 0; line-height: 1.45; }
.tn-ticket-lbl { font-size: 11.5px; color: var(--gold-l); letter-spacing: .05em; }
.tn-ticket-name { font-weight: 700; font-size: 15px; }
.tn-ticket-bonus { font-size: 13.5px; font-family: var(--serif); font-weight: 700; }
.tn-ticket .tn-btn { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .tn-ticket { grid-template-columns: auto 1fr auto; padding: 12px 18px; }
  .tn-ticket .tn-btn { grid-column: auto; }
  .tn-ticket::before, .tn-ticket::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--paper); }
  .tn-ticket::before { left: -8px; } .tn-ticket::after { right: -8px; }
}

/* ---------- Логотипы ---------- */
.tn-blogo, .tn-lbadge { flex: none; }
img.tn-blogo { display: block; width: 88px; height: 56px; object-fit: cover; border-radius: 6px; background: #1a1a1a; }
.tn-lbadge { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 4px; border-radius: 6px; background: var(--felt-3); color: var(--gold-l); font-family: var(--serif); font-weight: 800; font-size: 12px; line-height: 1.25; border: 1px solid var(--gold); }

/* ---------- Раскладка страницы ---------- */
.tn-layout { display: grid; gap: 18px; padding-top: 18px; padding-bottom: 36px; }
.tn-col { min-width: 0; }
.tn-side { min-width: 0; }
.tn-side-cta { display: none; }
@media (min-width: 1000px) {
  .tn-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; padding-top: 28px; }
  .tn-side { grid-column: 2; grid-row: 1; position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; }
  .tn-col { grid-column: 1; grid-row: 1; }
  .tn-side-cta { display: block; margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--r); padding: 14px; text-align: center; }
  .tn-side-cta img.tn-blogo, .tn-side-cta .tn-lbadge { margin: 0 auto; }
  .tn-side-lbl { margin: 0 0 8px; font-size: 12px; color: var(--red); font-weight: 700; letter-spacing: .1em; }
  .tn-side-name { margin: 8px 0 0; font-weight: 700; }
  .tn-side-bonus { margin: 2px 0 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
}

/* 目次 */
.tn-toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0; margin: 0 0 20px; }
.tn-toc-h { cursor: pointer; list-style: none; padding: 11px 14px; font-weight: 700; font-family: var(--serif); display: flex; justify-content: space-between; align-items: center; }
.tn-toc-h::-webkit-details-marker { display: none; }
.tn-toc-h::before { content: "♣"; color: var(--felt-2); margin-right: 8px; }
.tn-toc-h::after { content: "＋"; margin-left: auto; color: var(--muted); }
.tn-toc[open] .tn-toc-h::after { content: "－"; }
.tn-toc-l { margin: 0; padding: 4px 14px 12px 34px; font-size: 14px; line-height: 1.6; counter-reset: none; }
.tn-toc-l li { padding: 3px 0; }
.tn-toc-l a { color: var(--ink); text-decoration: none; }
.tn-toc-l a:hover { color: var(--red); text-decoration: underline; }
.tn-toc-side .tn-toc-l { font-size: 13.5px; }

/* ---------- Контент ---------- */
.tn-entry { font-size: 16px; }
.tn-entry > *:first-child { margin-top: 0; }
.tn-entry p { margin: 0 0 1.1em; }
.tn-entry h2 {
  font-family: var(--serif); font-weight: 800; font-size: 21px; line-height: 1.5; margin: 2.2em 0 .8em; padding: 12px 14px 12px 44px;
  background: var(--felt); color: var(--cream); border-radius: 8px; position: relative;
}
.tn-entry h2::before { content: "♠"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 18px; }
.tn-entry h2 a { color: var(--gold-l); }
.tn-entry h3 { font-family: var(--serif); font-weight: 800; font-size: 18px; line-height: 1.5; margin: 1.8em 0 .6em; padding: 0 0 6px 12px; border-left: 4px solid var(--red); border-bottom: 1px dotted var(--line); }
.tn-entry ul, .tn-entry ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.tn-entry li { margin: .25em 0; }
.tn-entry ul > li::marker { color: var(--felt-2); }
.tn-entry ol > li::marker { color: var(--red); font-weight: 700; }
.tn-entry strong { background: linear-gradient(transparent 62%, rgba(200, 162, 74, .35) 62%); }
.tn-entry blockquote { margin: 1.2em 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--paper); color: var(--muted); }
@media (min-width: 760px) { .tn-entry { font-size: 16.5px; } .tn-entry h2 { font-size: 24px; } .tn-entry h3 { font-size: 19.5px; } }

/* таблицы (в т.ч. таблицы выплат) */
.tn-tbl { overflow-x: auto; margin: 0 0 1.4em; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); -webkit-overflow-scrolling: touch; }
.tn-tbl table, .tn-entry table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; min-width: 480px; }
.tn-tbl th, .tn-tbl td, .tn-entry table th, .tn-entry table td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tn-tbl thead th, .tn-entry table thead th { background: var(--felt); color: var(--cream); font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--gold); }
.tn-tbl tbody tr:nth-child(even) { background: #faf5ea; }
.tn-tbl tbody th { background: #f3ecdb; font-weight: 700; white-space: nowrap; }
.tn-tbl tbody tr:last-child td, .tn-tbl tbody tr:last-child th { border-bottom: 0; }
.tn-tbl-pay td:last-child, .tn-tbl-pay th:last-child { text-align: right; white-space: nowrap; }
.tn-tbl-pay tbody td:last-child { font-family: var(--serif); font-weight: 800; color: var(--red); font-size: 15px; }

/* блоки-акценты */
.tn-box { margin: 1.4em 0; padding: 14px 16px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); border-left-width: 5px; }
.tn-box > *:last-child { margin-bottom: 0; }
.tn-box-t { font-weight: 700; margin: 0 0 .4em !important; display: flex; align-items: center; gap: 6px; }
.tn-box-point { border-left-color: var(--felt-2); }
.tn-box-point .tn-box-t { color: var(--felt-2); }
.tn-box-point .tn-box-t::before { content: "♠"; }
.tn-box-tip { border-left-color: var(--gold); background: #fbf6e6; }
.tn-box-tip .tn-box-t { color: #8a6a14; }
.tn-box-tip .tn-box-t::before { content: "♦"; }
.tn-box-warn { border-left-color: var(--red); background: #fcf0ee; }
.tn-box-warn .tn-box-t { color: var(--red); }
.tn-box-warn .tn-box-t::before { content: "!"; display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; justify-content: center; align-items: center; }

/* ルール早見表 */
.tn-quick { margin: 1.4em 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.tn-quick-t { margin: 0 !important; background: var(--red); color: #fff; font-weight: 700; padding: 8px 14px; font-family: var(--serif); letter-spacing: .05em; }
.tn-quick-t::before { content: "♥ "; }
.tn-quick dl { margin: 0; display: grid; grid-template-columns: minmax(84px, max-content) 1fr; }
.tn-quick dt, .tn-quick dd { margin: 0; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.tn-quick dt { font-weight: 700; color: var(--felt); background: #f6f0e1; }
.tn-quick dl > :nth-last-child(-n+2) { border-bottom: 0; }
.tn-quick ul, .tn-quick ol, .tn-quick p { margin: 10px 14px; }

/* шаги */
.tn-steps { counter-reset: tnstep; list-style: none !important; padding-left: 0 !important; }
.tn-steps > li { counter-increment: tnstep; position: relative; padding: 10px 12px 10px 52px; margin: 0 0 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.tn-steps > li::before { content: counter(tnstep); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--felt); color: var(--cream); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* плюсы/минусы */
.tn-pc { display: grid; gap: 12px; margin: 1.4em 0; }
.tn-pc > div { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.tn-pc-t { font-weight: 700; margin: 0 0 .4em !important; font-family: var(--serif); }
.tn-pc-pro { border-top: 4px solid var(--felt-2) !important; }
.tn-pc-con { border-top: 4px solid var(--red) !important; }
.tn-pc-pro .tn-pc-t { color: var(--felt-2); }
.tn-pc-con .tn-pc-t { color: var(--red); }
.tn-pc ul { list-style: none; padding: 0; margin: 0; }
.tn-pc li { padding-left: 1.5em; position: relative; }
.tn-pc-pro li::before { content: "○"; position: absolute; left: 0; color: var(--felt-2); font-weight: 700; }
.tn-pc-con li::before { content: "×"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
@media (min-width: 640px) { .tn-pc { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.tn-entry details:not(.tn-toc) { margin: 0 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.tn-entry details:not(.tn-toc) > summary { cursor: pointer; list-style: none; padding: 12px 44px 12px 44px; font-weight: 700; position: relative; line-height: 1.6; }
.tn-entry details:not(.tn-toc) > summary::-webkit-details-marker { display: none; }
.tn-entry details:not(.tn-toc) > summary::before { content: "Q"; position: absolute; left: 12px; top: 11px; width: 24px; height: 24px; border-radius: 4px; background: var(--felt); color: var(--cream); font-family: var(--serif); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tn-entry details:not(.tn-toc) > summary::after { content: "＋"; position: absolute; right: 14px; top: 12px; color: var(--muted); }
.tn-entry details[open]:not(.tn-toc) > summary::after { content: "－"; }
.tn-entry details:not(.tn-toc) > :not(summary) { margin: 0; padding: 0 16px 14px 44px; }

/* ---------- Рейтинг [prgvs_top] ---------- */
.tn-rank { margin: 1.4em 0 1.8em; }
.tn-rank-list { display: grid; gap: 12px; }
.tn-rank-item {
  display: grid; grid-template-columns: 44px 88px minmax(0, 1fr); gap: 10px 12px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; position: relative;
}
.tn-rank-first { border: 2px solid var(--gold); box-shadow: 0 6px 18px rgba(200, 162, 74, .18); }
.tn-rank-first::before { content: "BEST"; position: absolute; top: -10px; right: 12px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .15em; padding: 2px 8px; border-radius: 3px; }
.tn-rank-pos { width: 40px; height: 54px; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-family: var(--serif); font-weight: 800; }
.tn-rank-num { font-size: 20px; }
.tn-rank-suit { font-size: 14px; margin-top: 3px; }
.tn-suit-r { color: var(--red); }
.tn-suit-k { color: var(--ink); }
.tn-rank-body { grid-column: 1 / -1; min-width: 0; }
.tn-rank-logo { grid-column: 2; }
.tn-rank-item > .tn-rank-body { grid-column: 3; grid-row: 1; }
.tn-rank-name { margin: 0 !important; font-weight: 700; font-size: 16.5px; line-height: 1.4; }
.tn-rank-bonus { margin: 2px 0 0 !important; font-size: 14px; line-height: 1.5; color: var(--felt); font-weight: 700; }
.tn-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0 !important; }
.tn-chip { font-size: 12px; line-height: 1.4; padding: 2px 8px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); white-space: nowrap; }
.tn-chip b { color: var(--muted); font-weight: 400; }
.tn-rank-act { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.tn-rank-act .tn-btn { flex: 1; }
.tn-rev { font-size: 13.5px; white-space: nowrap; }
.tn-rank-note { font-size: 12px; color: var(--muted); margin: 8px 0 0 !important; line-height: 1.6; }
@media (min-width: 760px) {
  .tn-rank-item { grid-template-columns: 48px 100px minmax(0, 1fr) 190px; padding: 14px 16px; }
  .tn-rank-item > .tn-rank-body { grid-column: 3; }
  .tn-rank-act { grid-column: 4; flex-direction: column; gap: 6px; }
  .tn-rank-act .tn-btn { width: 100%; }
}

/* ---------- CTA [prgvs_cta] ---------- */
.tn-offer { margin: 1.8em 0; background: var(--felt); border-radius: 14px; padding: 6px; color: var(--cream);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .1), transparent 70%); }
.tn-offer-in { border: 1.5px dashed rgba(200, 162, 74, .75); border-radius: 10px; padding: 14px 14px 10px; }
.tn-offer-lbl { margin: 0 0 10px !important; font-size: 12px; font-weight: 700; color: var(--felt); background: var(--gold-l); display: inline-block; padding: 1px 10px; border-radius: 3px; letter-spacing: .05em; }
.tn-offer-b { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.tn-offer-txt p { margin: 0 !important; line-height: 1.5; }
.tn-offer-name { font-weight: 700; font-size: 17px; }
.tn-offer-bonus { font-family: var(--serif); font-weight: 800; font-size: 16px; color: var(--gold-l); }
.tn-offer-meta { font-size: 12.5px; opacity: .85; }
.tn-offer-act { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tn-offer-act .tn-btn { width: 100%; max-width: 360px; }
.tn-offer-rev { color: var(--gold-l); font-size: 13px; }
.tn-offer-rev:hover { color: #fff; }
.tn-offer-note { margin: 8px 0 0 !important; font-size: 11.5px; opacity: .75; text-align: center; }
@media (min-width: 760px) {
  .tn-offer-b { grid-template-columns: auto minmax(0, 1fr) 240px; }
  .tn-offer-act { grid-column: 3; }
}

/* ---------- Автор ---------- */
.tn-author { margin: 2em 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; position: relative; }
.tn-author-t { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.tn-author-b { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.tn-author .tn-av { border-radius: 12px; }
.tn-author-txt p { margin: 0 0 .4em; }
.tn-author-name { font-family: var(--serif); font-weight: 800; font-size: 19px; line-height: 1.4; }
.tn-author-kana { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--muted); }
.tn-author-role { font-size: 13px; color: var(--felt-2); font-weight: 700; }
.tn-author-bio { font-size: 14px; line-height: 1.75; }
.tn-author-areas { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tn-author-areas li { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.tn-author-more { font-size: 13.5px; }
.tn-author-supervisor { border-top: 4px solid var(--felt-2); }
@media (max-width: 520px) { .tn-author-b { grid-template-columns: 1fr; } }

/* похожие, ссылки */
.tn-related { margin: 2em 0 0; }
.tn-related-t { font-family: var(--serif); font-weight: 800; font-size: 18px; margin: 0 0 8px; }
.tn-related ul, .tn-links { list-style: none; padding: 0 !important; margin: 0 0 1.4em; display: grid; gap: 8px; }
.tn-related a, .tn-links a { display: block; padding: 11px 14px 11px 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; position: relative; line-height: 1.5; }
.tn-related a::before, .tn-links a::before { content: "♦"; position: absolute; left: 13px; color: var(--red); font-size: 12px; top: 50%; transform: translateY(-50%); }
.tn-related a:hover, .tn-links a:hover { border-color: var(--felt-2); color: var(--red); }
@media (min-width: 640px) { .tn-related ul, .tn-links { grid-template-columns: 1fr 1fr; } }

/* контакты */
.tn-contact { display: grid; gap: 12px; margin: 1.4em 0; }
.tn-contact-c { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--felt-2); border-radius: 8px; text-decoration: none; color: var(--ink); }
.tn-contact-k { font-size: 12px; color: var(--muted); }
.tn-contact-v { font-weight: 700; font-size: 17px; color: var(--felt-2); }
.tn-contact-n { font-size: 12.5px; color: var(--muted); }
@media (min-width: 640px) { .tn-contact { grid-template-columns: 1fr 1fr; } }

/* поиск, 404, пагинация */
.tn-search { display: flex; gap: 8px; margin: 12px 0; max-width: 520px; }
.tn-search input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.tn-e404 { font-family: var(--serif); font-weight: 800; font-size: 64px; line-height: 1; margin: 10px 0; color: var(--felt); }
.tn-e404 span { color: var(--red); }
.tn-pager { display: flex; gap: 8px; flex-wrap: wrap; margin: 1.5em 0; }

.tn-home-body { padding-bottom: 36px; }
.tn-entry-home { max-width: 900px; margin: 0 auto; }

/* ---------- Подвал ---------- */
.tn-foot { background: var(--felt-3); color: rgba(246, 240, 225, .85); padding: 32px 0 90px; font-size: 14px; border-top: 6px solid var(--felt-2); }
.tn-foot a { color: var(--cream); text-decoration: none; }
.tn-foot a:hover { color: var(--gold-l); text-decoration: underline; }
.tn-foot-top { display: grid; gap: 24px; }
.tn-foot-desc { font-size: 13px; line-height: 1.8; margin: 10px 0; }
.tn-foot-contact { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.tn-foot-contact span { display: inline-block; min-width: 76px; color: var(--gold-l); }
.tn-foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tn-fcol-t { font-family: var(--serif); font-weight: 800; color: var(--gold-l); margin: 0 0 6px; }
.tn-fcol ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 1.9; }
.tn-fcol-w { grid-column: 1 / -1; }
.tn-fcol-w ul { columns: 2; }
.tn-foot-mid { margin: 24px 0 0; padding: 16px 0; border-top: 1px solid rgba(233, 217, 166, .2); border-bottom: 1px solid rgba(233, 217, 166, .2); }
.tn-flinks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.tn-foot-bot { padding-top: 16px; }
.tn-age { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.tn-age-b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--red); color: #fff; background: var(--red-d); font-weight: 700; font-size: 13px; }
.tn-disc { font-size: 12px; line-height: 1.8; opacity: .8; margin: 0 0 10px; }
.tn-disc a { text-decoration: underline; }
.tn-copy { font-size: 12px; opacity: .7; margin: 0; }
.tn-logo-f .tn-logo-n { font-size: 18px; }
@media (min-width: 760px) {
  .tn-foot { padding-bottom: 32px; }
  .tn-foot-top { grid-template-columns: 300px 1fr; gap: 40px; }
  .tn-foot-cols { grid-template-columns: repeat(4, 1fr); }
  .tn-fcol-w { grid-column: span 2; }
}

/* ---------- Нижняя CTA-полоса (мобайл) ---------- */
.tn-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(14, 59, 44, .97); color: var(--cream);
  border-top: 2px solid var(--gold); transform: translateY(110%); transition: transform .25s;
}
.tn-dock.is-on { transform: none; }
.tn-dock-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.tn-dock-txt b { font-size: 14px; }
.tn-dock-txt small { font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-dock .tn-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
@media (min-width: 1000px) { .tn-dock { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .tn-head, .tn-foot, .tn-dock, .tn-side, .tn-ticket { display: none !important; } }
