/* v6 — Turniej o Trofeum Władzy, trofeum w profilu, powiadomienia. Złoto na winnej czerni. */
:root { --serif: 'Playfair Display', Georgia, serif; --au: #f2c14e; --au2: #ffe08a; --wine: #7a1238; --hot: #ff3d6e; }

/* ---------- start ---------- */
.tn-hero { text-align: center; padding: 18px 8px 6px; }
.tn-cup, .tr-cup { display: inline-block; font-size: 56px; line-height: 1; filter: drop-shadow(0 8px 24px rgba(242, 193, 78, .55)); }
.tr-cup.big { font-size: 96px; animation: trFloat 4s ease-in-out infinite; }
.tr-cup.dim { filter: grayscale(.7) opacity(.6); }
@keyframes trFloat { 50% { transform: translateY(-6px) rotate(-2deg); } }
.tn-hero h1 { margin: 10px 0 8px; font: 800 30px/1.1 var(--display); text-wrap: balance; }
.tn-hero h1 em { font: italic 800 1.05em var(--serif); background: linear-gradient(90deg, var(--au2), var(--au), #e08a1e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tn-hero p { color: var(--muted); max-width: 46ch; margin: 0 auto; line-height: 1.5; }
.tn-holder { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(242, 193, 78, .45); background: rgba(242, 193, 78, .1); color: var(--au2); font-weight: 700; text-decoration: none; }
.tn-form { margin-top: 18px; display: grid; gap: 4px; }
.tn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tn-row label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; }
.tn-row select, .tn-row input { width: auto; min-width: 84px; }
.tn-hist { display: grid; gap: 8px; }
.tn-hrow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tn-hrow small { color: var(--faint); }

/* lista Matcha (granice) */
.tn-ex { margin: 14px 0; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); }
.tn-ex summary { cursor: pointer; padding: 14px 16px; list-style: none; display: grid; gap: 3px; }
.tn-ex summary::-webkit-details-marker { display: none; }
.tn-ex summary b { font: 800 15px var(--display); }
.tn-ex summary b::after { content: ' ▾'; color: var(--faint); }
.tn-ex[open] summary b::after { content: ' ▴'; }
.tn-ex summary span { color: var(--faint); font-size: 13px; }
.tn-ex-g { padding: 4px 16px 12px; }
.tn-ex-g h4 { margin: 10px 0 6px; font: 800 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--au); }
.tn-ex-g label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; cursor: pointer; }
.tn-ex-g label input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--hot); }
.tn-ex-g label i { color: var(--faint); font-style: normal; font-size: 12px; }

/* powiadomienia */
.tn-push { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 10px 0; border-radius: 18px; background: rgba(110, 193, 255, .08); border: 1px solid rgba(110, 193, 255, .3); }
.tn-push > span { font-size: 22px; }
.tn-push div { flex: 1; min-width: 0; }
.tn-push b { display: block; font: 800 14px var(--display); }
.tn-push small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.tn-push.on { background: rgba(78, 230, 166, .08); border-color: rgba(78, 230, 166, .35); }
.tn-push.denied, .tn-push.ios-home { background: rgba(255, 209, 102, .08); border-color: rgba(255, 209, 102, .35); }

/* ---------- ekran gry ---------- */
body.tn-mode { background: radial-gradient(120% 60% at 50% 0, #3a0b22 0, var(--ink) 60%); }
.tn { padding-bottom: 30px; }
.tn-top { display: flex; align-items: center; gap: 10px; }
.tn-title { flex: 1; min-width: 0; text-align: center; }
.tn-title i { display: block; font: italic 800 19px/1.1 var(--serif); background: linear-gradient(90deg, var(--au2), var(--au)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-title small { display: block; color: var(--faint); font-weight: 700; font-size: 12px; margin-top: 3px; }

.tn-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 14px; }
.tn-pl { padding: 10px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; transition: all .3s var(--ease); }
.tn-pl small { display: block; color: var(--faint); font: 800 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.tn-pl b { display: block; font: italic 800 34px/1.05 var(--serif); font-variant-numeric: tabular-nums; }
.tn-pl span { display: block; min-height: 1.2em; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.tn-pl.me b { color: var(--au2); }
.tn-pl.turn { border-color: rgba(242, 193, 78, .6); box-shadow: 0 0 0 1px rgba(242, 193, 78, .25), 0 14px 30px -18px var(--au); }
.tn-days { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 106px; }
.tn-days i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-style: normal; font-size: 12px; background: rgba(255,255,255,.06); filter: grayscale(1) opacity(.45); }
.tn-days i.now { filter: none; background: rgba(242, 193, 78, .2); box-shadow: 0 0 0 1px var(--au); }
.tn-days i.done { filter: none; }
.tn-days i.won { background: rgba(78, 230, 166, .18); }
.tn-days i.lost { background: rgba(255, 107, 129, .18); }

.tn-note { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 11px 13px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); font-size: 14px; }
.tn-note > span { font-size: 20px; }
.tn-note p { flex: 1; margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.tn-note.warn { border-color: rgba(255, 61, 110, .55); background: linear-gradient(135deg, rgba(255, 61, 110, .16), rgba(122, 18, 56, .2)); animation: glow 2.4s ease-in-out infinite; }
.tn-note.dim { opacity: .8; font-size: 13px; }

.tn-stage { margin-top: 14px; padding: 20px 16px; border-radius: 26px; background: linear-gradient(170deg, rgba(122, 18, 56, .35), rgba(255,255,255,.03) 55%); border: 1px solid rgba(242, 193, 78, .22); text-align: center; }
.tn-eb { color: var(--au); font: 800 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.tn-stage h2 { margin: 6px 0 6px; font: italic 800 26px/1.15 var(--serif); text-wrap: balance; }
.tn-lead { color: var(--muted); line-height: 1.5; margin: 0 auto 12px; max-width: 44ch; font-size: 14.5px; overflow-wrap: anywhere; }
.tn-lead.center, .center { text-align: center; }
.tn-stage > * + * { margin-top: 12px; }

.tn-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 58px; padding: 10px 16px; border: 0; border-radius: 18px; background: var(--card-2); color: var(--text); font: 800 17px var(--display); cursor: pointer; text-decoration: none; transition: transform .15s var(--spring), opacity .2s; }
.tn-big:active { transform: scale(.97); }
.tn-big:disabled { opacity: .45; cursor: default; }
.tn-big small { font: 700 12px var(--sans); opacity: .85; }
.tn-big.gold { background: linear-gradient(135deg, var(--au2), var(--au) 55%, #d98a1c); color: #2a1404; box-shadow: 0 12px 28px -14px var(--au); }
.tn-big.hot { background: linear-gradient(135deg, #ff5d8f, var(--hot) 50%, #b5179e); color: #fff; box-shadow: 0 14px 30px -14px var(--hot); }
.tn-big.stop { min-height: 96px; border-radius: 50%; width: 160px; height: 160px; margin-left: auto; margin-right: auto; background: radial-gradient(circle at 35% 30%, #ff6b81, #c9184a 70%); color: #fff; font: 900 30px var(--display); letter-spacing: .06em; box-shadow: 0 0 0 8px rgba(201, 24, 74, .18), 0 20px 40px -14px #ff2e63; }
.tn-big.red { background: linear-gradient(135deg, #ff4d4d, #b00020); color: #fff; }
.tn-big.ok { background: rgba(78, 230, 166, .18); border: 1px solid rgba(78, 230, 166, .5); }
.tn-big.no { background: rgba(255, 107, 129, .14); border: 1px solid rgba(255, 107, 129, .45); }
.tn-big.soft { background: var(--card); border: 1px solid var(--line-2); }
.tn-big.small { min-height: 44px; font-size: 14.5px; }
.tn-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tn-yn.four { grid-template-columns: repeat(4, 1fr); }
.tn-yn .tn-big { margin: 0; }

.tn-clock { display: flex; justify-content: center; }
.tn-cd, .tn-sw { font: italic 800 22px var(--serif); color: var(--au2); font-variant-numeric: tabular-nums; }
.tn-clock .tn-cd, .tn-clock .tn-sw { font-size: 40px; }
.tn-cd.big { font-size: 56px !important; }
.tn-cd.hot, .tn-cd.low { color: #ff6b81; }
.tn-lock { color: #ffd166; font-weight: 800; }

.tn-wait { display: grid; justify-items: center; gap: 6px; padding: 10px 0 2px; color: var(--muted); }
.tn-wait p { margin: 0; font-weight: 700; }
.tn-dots { display: flex; gap: 5px; }
.tn-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--au); animation: tnDot 1.2s infinite ease-in-out; }
.tn-dots i:nth-child(2) { animation-delay: .15s; } .tn-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tnDot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.tn-ph { display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: rgba(0,0,0,.35); cursor: zoom-in; aspect-ratio: 3 / 4; }
.tn-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-ph.sm { aspect-ratio: auto; max-height: 220px; }
.tn-ph.sm img { max-height: 220px; object-fit: contain; }
.tn-ph.hid, .tn-ph.empty { display: grid; place-content: center; gap: 4px; cursor: default; color: var(--faint); border: 1px dashed var(--line-2); }
.tn-ph.hid span { font-size: 34px; }
.tn-ph.gone::after { content: 'Zdjęcie zniknęło po 24 godzinach'; display: grid; place-items: center; height: 100%; color: var(--faint); font-size: 13px; }
.tn-ph.gone img { display: none; }
.tn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tn-pair.big { grid-template-columns: 1fr; }
.tn-mine { width: 90px; margin: -60px auto 0 10px !important; position: relative; z-index: 2; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.tn-gate { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.tn-gate > div { display: grid; gap: 8px; align-content: start; }
.tn-gate small { color: var(--faint); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.tn-gate .tn-yn { grid-template-columns: 1fr; gap: 6px; }
.tn-gate .tn-big { min-height: 46px; font-size: 14.5px; }
.tn-gate p { margin: 0; font-weight: 800; font-size: 13px; }
.tn-gate p.ok { color: var(--ok); } .tn-gate p.no { color: var(--bad); }

.tn-say { display: grid; gap: 8px; text-align: left; }
.tn-say textarea { min-height: 70px; }
.tn-say-b { display: flex; justify-content: flex-end; }
.tn-msgs { display: grid; gap: 8px; text-align: left; max-height: 46vh; overflow: auto; }
.tn-msg { max-width: 86%; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: rgba(0,0,0,.28); border: 1px solid var(--line); }
.tn-msg.me { margin-left: auto; border-radius: 16px 16px 4px 16px; background: rgba(242, 193, 78, .1); border-color: rgba(242, 193, 78, .3); }
.tn-msg.reply { opacity: .85; font-size: 14px; }
.tn-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.tn-msg small { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; }
.tn-scripts { text-align: left; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.tn-scripts summary { cursor: pointer; padding: 12px 14px; font-weight: 800; }
.tn-script { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: 500 14px/1.45 var(--sans); cursor: pointer; }
.tn-script small { display: block; color: var(--au); font-weight: 800; font-size: 11.5px; margin-bottom: 2px; }

.tn-mscore { display: flex; justify-content: center; align-items: center; gap: 16px; }
.tn-mscore div { text-align: center; } .tn-mscore small { display: block; color: var(--faint); font-weight: 800; font-size: 11px; }
.tn-mscore b { font: italic 800 34px var(--serif); } .tn-mscore span { color: var(--faint); font-weight: 700; font-size: 12px; }
.tn-card { padding: 22px 18px; border-radius: 22px; background: linear-gradient(150deg, #2b0d1f, #12060e); border: 1px solid rgba(242, 193, 78, .4); font: italic 700 20px/1.35 var(--serif); box-shadow: 0 20px 40px -24px var(--hot); }
.tn-card.dim { opacity: .9; font-size: 18px; }
.tn-card small { display: block; font: 800 11px var(--sans); color: var(--faint); font-style: normal; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.tn-mhist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 140px; overflow: auto; }
.tn-mhist span, .tn-claims span { padding: 4px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.06); }
.tn-mhist span.y { color: var(--ok); } .tn-mhist span.n { color: var(--bad); } .tn-mhist span.me { border: 1px solid var(--line-2); }
.tn-claims { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tn-claims span.x { text-decoration: line-through; opacity: .6; } .tn-claims span.ch { color: #ffd166; }

.tn-holds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tn-holds > div { padding: 12px; border-radius: 18px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.tn-holds .me { border-color: rgba(242, 193, 78, .45); }
.tn-holds small { display: block; color: var(--faint); font-weight: 800; font-size: 11px; text-transform: uppercase; }
.tn-holds b { display: block; font: italic 800 44px/1.05 var(--serif); font-variant-numeric: tabular-nums; }
.tn-holds span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }

.tn-comp { display: grid; gap: 10px; text-align: left; }
.tn-blk { padding: 12px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line); display: grid; gap: 8px; }
.tn-blk-h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.tn-x { width: 30px; height: 30px; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.tn-blk input[type=number] { width: 90px; }
.tn-add { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tn-prog { display: flex; justify-content: center; gap: 6px; }
.tn-prog i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; font-style: normal; font-size: 15px; background: rgba(255,255,255,.06); opacity: .5; }
.tn-prog i.done { opacity: 1; background: rgba(78, 230, 166, .18); } .tn-prog i.now { opacity: 1; box-shadow: 0 0 0 1px var(--au); }
.tn-res { display: grid; gap: 8px; text-align: left; }
.tn-res > div { padding: 10px; border-radius: 14px; background: rgba(0,0,0,.2); }
.tn-res small { color: var(--faint); font-weight: 700; } .tn-res p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.tn-bid { display: flex; gap: 8px; align-items: center; justify-content: center; }
.tn-bid input { width: 110px; text-align: center; font: italic 800 26px var(--serif); }
.tn-bid span { color: var(--muted); font-weight: 700; }

.tn-toys { display: grid; gap: 8px; margin-top: 12px; }
.tn-toy { padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.tn-toy.ctl { border-color: rgba(255, 61, 110, .45); background: linear-gradient(135deg, rgba(255, 61, 110, .12), rgba(0,0,0,.1)); }
.tn-toy small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.tn-toy > div { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.tn-toy b { font: italic 800 26px var(--serif); min-width: 1.5ch; text-align: center; }
.tn-hint { margin-top: 6px; color: var(--faint) !important; font-size: 11.5px !important; }
.tn-lvl { flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.tn-lvl i { height: 14px; border-radius: 4px; background: rgba(255,255,255,.08); }
.tn-lvl i.on { background: linear-gradient(180deg, #ff8fab, var(--hot)); box-shadow: 0 0 10px -2px var(--hot); }
.tn-step { width: 44px; height: 44px; flex: none; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); font: 800 22px var(--display); cursor: pointer; }

.tn-log { margin-top: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.tn-log summary { cursor: pointer; padding: 12px 14px; font-weight: 800; color: var(--muted); }
.tn-log summary span { color: var(--faint); font-weight: 700; }
.tn-log p { margin: 0; padding: 7px 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.tn-log small { color: var(--faint); margin-right: 8px; font-variant-numeric: tabular-nums; }

.tn-rules { text-align: left; margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tn-rules li + li { margin-top: 6px; }
.tn-rulesheet h3 { font: italic 800 20px var(--serif); margin: 18px 0 8px; }
.tn-plan { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tn-plan li { display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 99px; background: rgba(0,0,0,.25); font-size: 13px; font-weight: 700; }
.tn-next { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 18px; background: rgba(0,0,0,.25); }
.tn-next > span { font-size: 30px; }
.tn-next b { display: block; font: 800 16px var(--display); } .tn-next small { color: var(--muted); }
.tn-crown { font-size: 86px; line-height: 1; filter: drop-shadow(0 10px 30px rgba(242, 193, 78, .6)); animation: trFloat 4s ease-in-out infinite; }
.tn-oath { margin: 12px 0 0; padding: 14px 16px; border-left: 3px solid var(--au); border-radius: 4px 16px 16px 4px; background: rgba(0,0,0,.25); font: italic 600 17px/1.45 var(--serif); text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.tn-oath small { display: block; margin-top: 6px; font: 700 12px var(--sans); color: var(--faint); font-style: normal; }
.tn-dtable { display: grid; gap: 6px; text-align: left; }
.tn-dtable div { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.2); }
.tn-dtable small { text-align: right; color: var(--muted); font-weight: 700; }
.tn-menu { display: grid; gap: 10px; padding-top: 6px; }
.tn-zoom img { width: 100%; border-radius: 16px; display: block; margin-bottom: 12px; }

/* ---------- trofeum ---------- */
.tr { padding-bottom: 20px; }
.tr-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 16px; padding: 16px; border-radius: 24px; text-decoration: none; color: var(--text);
  background: radial-gradient(120% 120% at 0 0, rgba(242, 193, 78, .28), transparent 55%), linear-gradient(150deg, #3a0b22, #160812); border: 1px solid rgba(242, 193, 78, .45); box-shadow: 0 18px 40px -24px #f2c14e; overflow: hidden; }
.tr-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 224, 138, .16) 45%, transparent 60%); transform: translateX(-100%); animation: trShine 5s ease-in-out infinite; pointer-events: none; }
@keyframes trShine { 60%, 100% { transform: translateX(100%); } }
.tr-card .tr-cup { font-size: 46px; }
.tr-card small { display: block; color: #e8cf9a; font-weight: 700; font-size: 12px; }
.tr-card b { display: block; font: italic 800 22px/1.15 var(--serif, 'Playfair Display', serif); color: #ffe08a; }
.tr-card em { display: block; margin-top: 4px; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; }
.tr-card em.tr-alarm { color: #ff6b81; animation: glow 1.6s ease-in-out infinite; }
.tr-card > i { font-style: normal; color: #e8cf9a; font-size: 22px; }
.tr-card.empty { background: var(--card); border-style: dashed; box-shadow: none; }
.tr-card.empty b { color: var(--text); font-family: var(--display); font-style: normal; font-size: 16px; }
.tr-card.empty::after { display: none; }
.tr-card.rust { filter: sepia(.35) saturate(.8); }
.tr-bolts { display: inline-flex; gap: 1px; }
.tr-bolts i { font-style: normal; filter: grayscale(1) opacity(.3); }
.tr-bolts i.on { filter: none; }

.tr-hero { position: relative; overflow: hidden; margin-top: 14px; padding: 26px 16px 20px; text-align: center; border-radius: 28px; background: radial-gradient(90% 70% at 50% 25%, rgba(242, 193, 78, .3), transparent 60%), linear-gradient(170deg, #3a0b22, #12060e); border: 1px solid rgba(242, 193, 78, .4); }
.tr-hero.empty { background: var(--card); border-style: dashed; }
.tr-hero.rust { filter: sepia(.3); }
.tr-hero small { display: block; margin-top: 8px; color: #e8cf9a; font: 800 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.tr-hero h2 { margin: 4px 0; font: italic 800 34px var(--serif); color: #ffe08a; }
.tr-hero p { color: var(--muted); margin: 0 auto; max-width: 42ch; }
.tr-hero .tn-big { margin-top: 14px; }
.tr-rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgba(242, 193, 78, .07) 0 8deg, transparent 8deg 22deg); animation: trSpin 40s linear infinite; pointer-events: none; }
@keyframes trSpin { to { transform: rotate(360deg); } }
.tr-hero > *:not(.tr-rays) { position: relative; }
.tr-dyn { display: flex; justify-content: center; gap: 18px; margin-top: 12px; color: var(--muted); font-weight: 700; }
.tr-dyn b { color: #ffe08a; font: italic 800 20px var(--serif); margin-left: 4px; }
.tr-bat { display: grid; gap: 4px; margin-top: 12px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.tr-bat > div { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 24px; }
.tr-bat b { font: 800 15px var(--display); }
.tr-bat small { color: var(--faint); font-weight: 700; }
.tr-powers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tr-pw { position: relative; display: grid; gap: 4px; justify-items: start; text-align: left; padding: 14px; border-radius: 20px; border: 1px solid rgba(242, 193, 78, .35); background: linear-gradient(160deg, rgba(242, 193, 78, .12), rgba(0,0,0,.15)); color: var(--text); font: inherit; cursor: pointer; transition: transform .15s var(--spring); }
.tr-pw:active { transform: scale(.97); }
.tr-pw:disabled { opacity: .4; cursor: default; }
.tr-pw > span { font-size: 28px; }
.tr-pw b { font: 800 16px var(--display); }
.tr-pw small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tr-pw i { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 13px; }
.tr-sub { margin-top: 12px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: center; color: var(--muted); }
.tr-sub p { margin: 0 0 10px; line-height: 1.5; }
.tr-ev { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); }
.tr-ev + .tr-ev { margin-top: 8px; }
.tr-ev > span { font-size: 24px; }
.tr-ev b { display: block; font: 800 15px var(--display); }
.tr-ev small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.tr-ev .btn { grid-column: 1 / -1; }
.tr-ev.hot { border-color: rgba(255, 61, 110, .55); background: linear-gradient(135deg, rgba(255, 61, 110, .16), rgba(122, 18, 56, .2)); }
.tr-ev.coup { border-color: rgba(255, 209, 102, .5); }
.tr-past p { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.tr-past small { color: var(--faint); white-space: nowrap; }
.tr-env { margin-top: 14px; padding: 20px 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.tr-env h2 { margin: 6px 0; font: italic 800 24px var(--serif, 'Playfair Display', serif); }
.tr-env p { color: var(--muted); line-height: 1.5; margin: 0 auto 12px; max-width: 44ch; }
.tr-pi { font-size: 40px; }
.tr-seal { margin-bottom: 12px; font-weight: 800; color: #ffe08a; }
.tr-note { margin-top: 10px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.tr-note p { margin: 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-note small { display: block; margin-top: 6px; color: var(--faint); font-size: 12px; }
.tr-note em { display: block; margin-top: 6px; font-style: normal; color: var(--ok); font-weight: 800; font-size: 13px; }
.tr-note .btn { margin-top: 8px; }
.tr-note.done { opacity: .6; }
.tr-note.quote p { font: italic 600 17px/1.45 'Playfair Display', Georgia, serif; }
.tr-note.pinned { border-color: rgba(242, 193, 78, .55); }
.tr-img { width: 100%; border-radius: 14px; margin-bottom: 8px; display: block; }

/* Uniesienie — pełny ekran u partnera */
.tr-raise { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; overflow: hidden; background: radial-gradient(80% 60% at 50% 35%, #5a3a10, #12040c 70%), #0b0208; opacity: 0; transition: opacity .3s; }
.tr-raise.in { opacity: 1; }
.tr-raise-in { position: relative; width: min(420px, 100%); text-align: center; display: grid; gap: 12px; justify-items: center; }
.tr-raise .tr-rays { inset: -80%; }
.tr-raise h2 { position: relative; margin: 0; font: italic 800 30px/1.15 'Playfair Display', Georgia, serif; color: #ffe08a; }
.tr-raise p { position: relative; margin: 0; color: #fff; font-weight: 800; font-size: 18px; }
.tr-raise .tr-cup.big { position: relative; font-size: 140px; animation: trRaise 1.2s var(--spring) both, trFloat 4s 1.2s ease-in-out infinite; }
.tr-raise .tn-big { position: relative; }
@keyframes trRaise { from { transform: translateY(80px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.tr-power { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 10px 0; }
.tr-power h2 { margin: 0; font: italic 800 24px 'Playfair Display', Georgia, serif; }
.tr-power p { color: var(--muted); margin: 0; white-space: pre-wrap; }

/* korona przy postaci w nagłówku */
.duo-heads .head { position: relative; }
.duo-heads .head .crown { position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 13px; font-style: normal; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.trn-card { border-color: rgba(242, 193, 78, .5) !important; }

@media (max-width: 380px) {
  .tn-gate, .tn-pair { grid-template-columns: 1fr; }
  .tn-yn.four { grid-template-columns: 1fr 1fr; }
  .tr-powers { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-cup.big, .tn-crown, .tr-rays, .tr-card::after, .tn-dots i { animation: none !important; }
}

body.tn-mode .chat-fab { display: none; }
