/*! XRPL Explained — playground.css
 * Built by STEDAS · © 2026 STEDAS. All rights reserved.
 * Property of STEDAS (https://stedas.hr). No copying, modification,
 * redistribution or resale of any part without written permission.
 */
/* XRPL Explained – XRPL Playground v1 (V0.85) */
:root { --blue: #155EE0; --teal: #0B9A84; --purple: #7C2FE0; --red: #D12B4A; --green: #0B9A6B; --ink: #0F172A; --muted: #5B6578; --line: #D9E2F2; --bg: #F3F6FC; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--blue); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: #EEF2FA; padding: 1px 6px; border-radius: 6px; }

/* header */
.pg-top { max-width: 1320px; margin: 0 auto; padding: 18px 22px; display: flex; align-items: center; gap: 22px; border-bottom: 2px solid var(--blue); }
.pg-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 26px; color: var(--ink); text-decoration: none; }
.pg-brand i { width: 4px; height: 24px; border-radius: 2px; background: #18C1D6; }
.pg-brand b { font-weight: 800; }
.pg-back { font-weight: 800; font-size: 16px; text-decoration: none; }
.pg-net { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: #FFF4E5; color: #B45309; border: 1.5px solid #F7C98B; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.pg-dot { width: 9px; height: 9px; border-radius: 50%; background: #C3CAD6; }
.pg-dot.on { background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }

/* hero */
.pg { max-width: 1320px; margin: 0 auto; padding: 24px 22px 0; }
.pg-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: center; margin-bottom: 22px; }
.pg-kick { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.pg-hero h1 { margin: 6px 0 10px; font-size: 46px; line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.pg-hero h1 span { background: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-lead { margin: 0; max-width: 760px; font-size: 18px; color: #334155; }
.pg-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.pg-facts li { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 700; }
.pg-facts li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.pg-hero-badge { width: 100%; height: auto; filter: drop-shadow(0 22px 30px rgba(15, 23, 42, .22)); }

/* layout */
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.pg-tasks { display: grid; gap: 14px; }
.pg-side { position: sticky; top: 16px; display: grid; gap: 14px; }

/* boxes and tasks */
.pg-start, .pg-task, .pg-box, .pg-done { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.pg-start { border-color: var(--blue); background: #F5F8FF; }
.pg-start h2, .pg-done h2 { margin: 0 0 6px; font-size: 22px; }
.pg-start p { margin: 0 0 12px; color: #334155; }
.pg-task-head { display: flex; align-items: center; gap: 12px; }
.pg-task-head h2 { margin: 0; font-size: 20px; }
.pg-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; }
.pg-tick { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: none; place-items: center; background: var(--green); color: #fff; font-weight: 800; }
.pg-task-body { margin-top: 10px; }
.pg-task-body > p { margin: 0 0 12px; color: #334155; }
.pg-task.locked { opacity: .55; }
.pg-task.locked .pg-task-body { display: none; }
.pg-task.locked .pg-num { background: #94A3B8; }
.pg-task.done { border-color: #A9E5D2; }
.pg-task.done .pg-num { background: var(--green); }
.pg-task.done .pg-tick { display: grid; }
.pg-task.active { border-color: var(--blue); box-shadow: 0 14px 30px -18px rgba(21, 94, 224, .55); }
.pg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.pg-row label, .pg-done-side label { font-size: 14px; font-weight: 700; color: var(--muted); }
.pg-row input, .pg-done-side input { font: inherit; font-size: 15px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; width: 140px; }
.pg-row input:focus, .pg-done-side input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

/* buttons */
.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 11px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; }
.pg-btn:hover { background: #EEF4FF; }
.pg-btn-solid { background: var(--blue); color: #fff; }
.pg-btn-solid:hover { background: #0F4EC0; }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pg-btn.busy { opacity: .7; cursor: progress; }
.pg-link { border: 0; background: none; padding: 0; margin-top: 10px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* phases */
.pg-steps { display: flex; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.pg-steps li { flex: 1; text-align: center; font-size: 13px; font-weight: 800; color: #94A3B8; padding: 6px 4px; border-radius: 9px; background: #F1F4FA; }
.pg-steps li.on { background: #E6EEFF; color: var(--blue); }
.pg-steps li.ok { background: #E3F6EE; color: var(--green); }

/* output */
.pg-out { margin-top: 12px; border-radius: 14px; padding: 12px 14px; background: #F6F8FC; border: 1.5px solid var(--line); font-size: 15px; }
.pg-out.ok { background: #F0FAF5; border-color: #A9E5D2; }
.pg-out.bad { background: #FFF3F5; border-color: #F3B8C3; }
.pg-out.wait { background: #F5F8FF; border-color: #C9D8F6; }
.pg-out p { margin: 0 0 6px; }
.pg-out p:last-child { margin-bottom: 0; }
.pg-out dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 8px 0 0; font-size: 14px; }
.pg-out dt { color: var(--muted); font-weight: 700; }
.pg-out dd { margin: 0; word-break: break-all; }
.pg-res-ok { color: var(--green); font-weight: 800; }
.pg-res-bad { color: var(--red); font-weight: 800; }
.pg-quiz { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #FFF9EC; border: 1.5px solid #F7DFA6; }
.pg-q { margin: 0 0 10px; font-weight: 700; }
.pg-quiz .pg-btn { margin: 0 6px 6px 0; }
.pg-learn { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.pg-err { margin: 10px 0 0; color: var(--red); font-weight: 700; }

/* side */
.pg-box h3 { margin: 0 0 8px; font-size: 16px; display: flex; justify-content: space-between; }
.pg-acc { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 14px; }
.pg-acc dt { color: var(--muted); font-weight: 700; }
.pg-acc dd { margin: 0; word-break: break-all; }
.pg-empty { margin: 0; color: var(--muted); font-size: 14px; }
.pg-small { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.pg-bar { height: 10px; border-radius: 999px; background: #E7ECF6; overflow: hidden; }
.pg-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--teal), var(--purple)); transition: width .4s; }
.pg-list { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.pg-list li { padding: 4px 0 4px 26px; position: relative; color: var(--muted); }
.pg-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #C3CAD6; }
.pg-list li.ok { color: var(--ink); font-weight: 700; }
.pg-list li.ok::before { background: var(--green); border-color: var(--green); }
.pg-box-badge { text-align: center; }
.pg-box-badge img { width: 78%; height: auto; }
.pg-box-badge p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pg-box-badge b { color: var(--purple); font-size: 16px; }

/* finished */
.pg-done { border-color: var(--purple); background: linear-gradient(160deg, #FBF8FF, #F3F6FC); }
.pg-done .pg-kick { color: var(--purple); }
.pg-done-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.pg-done-grid canvas { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 44px -20px rgba(15, 23, 42, .55); }
.pg-done-side { display: grid; gap: 10px; align-content: start; }
.pg-done-side input { width: 100%; }

/* footer */
.pg-footer { margin-top: 36px; }
.pg-footer-in { max-width: 1320px; margin: 0 auto; padding: 16px 22px 28px; border-top: 2px solid var(--blue); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.pg-footer-left p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.pg-footer-left p:first-child { margin-top: 0; font-size: 14px; color: var(--ink); }
.pg-footer-left .pg-copy { font-size: 12.5px; color: #9AA1AE; }
.pg-footer-right { display: flex; align-items: center; gap: 14px; flex: none; }
.pg-made { font-size: 14px; font-weight: 600; color: var(--muted); }
.pg-made-line { width: 1px; height: 42px; background: var(--line); }
.pg-maker { display: grid; justify-items: center; gap: 4px; }
.pg-maker img { display: block; width: 150px; height: auto; }
.pg-maker-x { font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: none; }

@media (max-width: 1000px) {
  .pg-grid { grid-template-columns: 1fr; }
  .pg-side { position: static; grid-row: 1; }
  .pg-box-badge { display: none; }
}
@media (max-width: 760px) {
  .pg-hero { grid-template-columns: 1fr; }
  .pg-hero-badge { width: 60%; justify-self: center; grid-row: 1; }
  .pg-hero h1 { font-size: 34px; }
  .pg-top { flex-wrap: wrap; gap: 8px 18px; }
  .pg-brand { font-size: 22px; }
  .pg-done-grid { grid-template-columns: 1fr; }
  .pg-footer-in { flex-direction: column; align-items: flex-start; }
}

/* v89 – photo for the completion card */
.pg-photo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-file { position: relative; overflow: hidden; }
.pg-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pg-photo-msg-bad { color: var(--red); font-weight: 700; }

/* v94 – "XRPL Playground" name in the header, top-up button, bigger "Learn more" lines */
.pg-badge-name { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px; background: var(--purple); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.pg-hero h1 { margin-top: 0; }
.pg-topup { width: 100%; margin-top: 12px; font-size: 14px; padding: 8px 12px; }
.pg-task-body > .pg-learn { margin: 22px 0 0; font-size: 15px; }
.pg-task-body > .pg-learn a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pg-task-body > .pg-learn a:hover { color: #0F4EC0; text-decoration-thickness: 2px; }

/* v97 – "Your test account" as the big wallet panel in the hero (replaces the hero image) */
.pg-hero { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
.pg-wallet { background: #fff; border: 2px solid var(--blue); border-radius: 22px; padding: 20px 22px; box-shadow: 0 24px 48px -26px rgba(21, 94, 224, .55); }
.pg-wallet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pg-wallet-head h2 { margin: 0; font-size: 22px; }
.pg-wallet-net { background: #FFF4E5; color: #B45309; border: 1.5px solid #F7C98B; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; }
.pg-wallet-empty p { margin: 0 0 12px; color: #334155; }
.pg-addr { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.pg-addr a { font-weight: 700; }
.pg-copy { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 2px 9px; font: inherit; font-family: Manrope, sans-serif; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; }
.pg-copy:hover { border-color: var(--blue); color: var(--blue); }
.pg-bal { border-radius: 16px; padding: 14px 18px; background: linear-gradient(135deg, #155EE0, #0E46B0); color: #fff; }
.pg-bal-label { display: block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.pg-bal-num { display: inline-block; margin-top: 2px; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.pg-bal-unit { margin-left: 6px; font-size: 18px; font-weight: 700; opacity: .9; }
.pg-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pg-asset { border-radius: 14px; padding: 10px 14px; }
.pg-asset-label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pg-asset b { display: block; margin-top: 2px; font-size: 26px; line-height: 1.15; font-weight: 800; }
.pg-asset-edu { background: #F3EBFF; color: #5B1FB8; }
.pg-asset-nft { background: #E3F6EE; color: #077A55; }
.pg-wallet .pg-topup { margin-top: 12px; }
@media (max-width: 1000px) { .pg-hero { grid-template-columns: 1fr; } }
/* v98 – task titles and number circles the same size as the steps on the widgets page */
.pg-task-head { gap: 12px; }
.pg-task-head h2, .pg-start h2, .pg-done h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.pg-num { width: 44px; height: 44px; font-size: 22px; }
.pg-tick { width: 36px; height: 36px; font-size: 18px; }
.pg-task-body { margin-top: 14px; }
@media (max-width: 760px) {
  .pg-task-head h2, .pg-start h2, .pg-done h2 { font-size: 24px; }
  .pg-num { width: 38px; height: 38px; font-size: 19px; }
}

/* v99 – narrower main column; Progress on top of the tasks; right column = same width as the account panel, with the badge */
.pg-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; }
.pg-hero { gap: 26px; }
.pg-progress .pg-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 14px; }
.pg-progress .pg-link { margin-top: 8px; }
@media (max-width: 760px) { .pg-progress .pg-list { grid-template-columns: 1fr 1fr; } }
.pg-hero-text { margin-bottom: 6px; }
.pg-hero-text h1 { margin: 0 0 10px; font-size: 46px; line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.pg-hero-text h1 span { background: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-side { position: static; }
@media (max-width: 760px) { .pg-hero-text h1 { font-size: 34px; } }
@media (max-width: 1000px) {
  .pg-grid { display: flex; flex-direction: column; gap: 14px; }
  .pg-tasks { display: contents; }
  .pg-hero-text { order: 1; }
  .pg-side { order: 2; grid-row: auto; }
  .pg-tasks > *:not(.pg-hero-text) { order: 3; }
}
/* v100 – task numbers in Playground purple (also when done); green only for the tick */
.pg-num, .pg-task.done .pg-num { background: var(--purple); }
.pg-task.locked .pg-num { background: #94A3B8; }
.pg-task.active { border-color: var(--purple); box-shadow: 0 14px 30px -18px rgba(124, 47, 224, .55); }

/* v102 (V1.00) – Prepare / Submitted / Validated with visual feedback */
.pg-steps { gap: 8px; }
.pg-steps li { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 6px; font-size: 14px; transition: background .25s, color .25s; }
.pg-steps li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C3CAD6; box-sizing: border-box; display: grid; place-items: center; font-size: 11px; font-weight: 900; line-height: 1; }
.pg-steps li.on::before { border-color: #BFD3FB; border-top-color: var(--blue); animation: pg-spin .8s linear infinite; }
.pg-steps li.ok::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.pg-steps li.ok.last { background: var(--green); color: #fff; font-size: 15px; }
.pg-steps li.ok.last::before { width: 26px; height: 26px; font-size: 16px; background: #fff; border-color: #fff; color: var(--green); }
.pg-steps li.warn.last { background: #FFF1DE; color: #B45309; }
.pg-steps li.warn.last::before { content: "!"; background: #E8590C; border-color: #E8590C; color: #fff; width: 22px; height: 22px; font-size: 13px; }
.pg-steps li.err { background: #FFE9EC; color: var(--red); }
.pg-steps li.err::before { content: "✕"; background: var(--red); border-color: var(--red); color: #fff; }
@keyframes pg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pg-steps li.on::before { animation: none; } }

/* V1.01 – a line under the steps that says what is happening right now */
.pg-step-note { margin: 8px 0 0; font-size: 14px; color: #334155; }
.pg-steps:has(li.on) + .pg-step-note { color: var(--blue); font-weight: 600; }
.pg-steps:has(li.ok.last) + .pg-step-note { color: var(--green); font-weight: 600; }

/* V1.02 – one task at a time: Progress = tabs; "Learn more" on the right of the action row; mint cost; done view */
.pg-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.pg-tabs button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.25; text-align: center; cursor: pointer; }
.pg-tabs button:hover:not(:disabled) { border-color: var(--purple); background: #FAF6FF; }
.pg-tab-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; font-size: 14px; font-weight: 800; }
.pg-tabs li.ok .pg-tab-num { background: var(--green); font-size: 0; }
.pg-tabs li.ok .pg-tab-num::before { content: "✓"; font-size: 15px; }
.pg-tabs li.current button { border-color: var(--purple); border-width: 2px; background: #F6F0FF; box-shadow: 0 8px 18px -12px rgba(124, 47, 224, .6); }
.pg-tabs li.locked button { cursor: not-allowed; color: #94A3B8; background: #F6F8FB; }
.pg-tabs li.locked .pg-tab-num { background: #C3CAD6; }
.pg-tab-done .pg-tab-num { background: #F5B301; }
.pg-tabs li.pg-tab-done.locked .pg-tab-num { background: #C3CAD6; }
.pg-learn-inline { margin-left: auto; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pg-learn-inline:hover { color: #0F4EC0; text-decoration-thickness: 2px; }
.pg-cost { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #F6F0FF; border: 1.5px solid #E0CCFB; font-size: 14.5px; color: #3B2366; }
.pg-next { margin-top: 16px; }
.pg-done { scroll-margin-top: 16px; }
.pg-task { scroll-margin-top: 16px; }
.pg-done-nft { margin: 4px 0 0; font-size: 15px; color: #334155; }
.pg-at { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.pg-at:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.pg-at span { padding: 0 4px 0 12px; font-size: 18px; font-weight: 800; color: var(--purple); }
.pg-at input, .pg-done-side .pg-at input { border: 0; outline: 0; padding: 9px 10px 9px 2px; width: 100%; font: inherit; font-size: 16px; }
.pg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 760px) {
  .pg-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pg-learn-inline { margin-left: 0; flex-basis: 100%; }
}

/* V1.04 – numbered sub-steps (1, 2) in tasks with two actions; footer copyright */
.pg-stepn { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; font-size: 14px; font-weight: 800; }
.pg-stepn.ok { background: var(--green); font-size: 0; }
.pg-stepn.ok::before { content: "✓"; font-size: 14px; }
[data-stepn="4b"] { margin-left: 12px; }
.pg-footer-left .pg-copyright { font-size: 12.5px; color: #9AA1AE; }

/* V1.05 – the NFT's own image next to the card */
.pg-nftbox { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border: 1.5px solid #E0CCFB; border-radius: 14px; background: #fff; }
.pg-nftbox img { width: 110px; height: 110px; border-radius: 12px; display: block; box-shadow: 0 10px 20px -12px rgba(76, 22, 150, .5); }
.pg-nftbox b { display: block; font-size: 15px; }
.pg-nftbox p { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.pg-nftbox a:not(:first-child) { display: block; font-size: 14px; font-weight: 700; margin-top: 3px; }

/* V1.07 – smaller photo buttons (X photo first), X logo on Share, one explorer link */
.pg-btn-sm { padding: 7px 13px; font-size: 14px; }
.pg-btn-xs { padding: 5px 10px; font-size: 12.5px; border-width: 1px; color: var(--muted); border-color: var(--line); }
.pg-btn-xs:hover { color: var(--blue); border-color: var(--blue); }
.pg-photo-row { align-items: center; }
.pg-share svg { width: 17px; height: 17px; fill: currentColor; }
.pg-nftlink { font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* V1.08 – a spinner in every "working…" message */
.pg-out.wait p:first-child { display: flex; align-items: center; gap: 10px; }
.pg-out.wait p:first-child::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #BFD3FB; border-top-color: var(--blue); animation: pg-spin .8s linear infinite; }
.pg-stepn.run { background: #fff; color: transparent; font-size: 0; border: 3px solid #E0CCFB; border-top-color: var(--purple); animation: pg-spin .8s linear infinite; box-sizing: border-box; }
.pg-stepn.run::before { content: none; }

/* V1.29 – Playground page only: 1600 px wide, bigger text, more air */
.pgp-body { font-size: 17px; }
.pgp-body .pg-top, .pgp-body .pg, .pgp-body .pg-footer-in { max-width: 1600px; }
.pgp-body .pg-top { padding: 22px 28px; }
.pgp-body .pg { padding: 40px 28px 0; }
.pgp-body .pg-footer { margin-top: 60px; }
.pgp-body .pg-hero { margin-bottom: 34px; gap: 40px; }
.pgp-body .pg-hero-text h1 { font-size: 54px; margin-bottom: 16px; }
.pgp-body .pg-lead { max-width: 900px; font-size: 20px; line-height: 1.6; }
.pgp-body .pg-facts { gap: 12px; margin-top: 22px; }
.pgp-body .pg-facts li { font-size: 15.5px; padding: 7px 16px; }
.pgp-body .pg-grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; }
.pgp-body .pg-tasks { gap: 24px; }
.pgp-body .pg-side { gap: 24px; top: 20px; }
.pgp-body .pg-start, .pgp-body .pg-task, .pgp-body .pg-box, .pgp-body .pg-done { padding: 28px 32px; border-radius: 22px; }
.pgp-body .pg-wallet { padding: 28px 30px; border-radius: 24px; }
.pgp-body .pg-task-head { gap: 16px; }
.pgp-body .pg-task-head h2, .pgp-body .pg-start h2, .pgp-body .pg-done h2 { font-size: 32px; }
.pgp-body .pg-num { width: 50px; height: 50px; font-size: 24px; }
.pgp-body .pg-start p, .pgp-body .pg-task-body > p { font-size: 18px; margin-bottom: 18px; }
.pgp-body .pg-task-body { margin-top: 18px; }
.pgp-body .pg-row { gap: 14px; margin-bottom: 16px; }
.pgp-body .pg-row label { font-size: 15.5px; }
.pgp-body .pg-row input { font-size: 17px; padding: 10px 13px; width: 170px; }
.pgp-body .pg-btn { font-size: 17px; padding: 12px 22px; border-radius: 13px; }
.pgp-body .pg-btn-sm { font-size: 15px; padding: 9px 15px; }
.pgp-body .pg-btn-xs { font-size: 13.5px; padding: 6px 12px; }
.pgp-body .pg-steps { gap: 10px; margin-top: 18px; }
.pgp-body .pg-steps li { font-size: 15.5px; padding: 12px 8px; }
.pgp-body .pg-step-note { font-size: 16px; margin-top: 12px; }
.pgp-body .pg-out { margin-top: 18px; padding: 16px 20px; font-size: 16.5px; }
.pgp-body .pg-out dl { font-size: 15.5px; gap: 6px 18px; margin-top: 12px; }
.pgp-body .pg-quiz { margin-top: 18px; padding: 16px 20px; }
.pgp-body .pg-cost { font-size: 16px; padding: 14px 18px; margin-bottom: 18px; }
.pgp-body .pg-learn { font-size: 15px; margin-top: 16px; }
.pgp-body .pg-learn-inline { font-size: 16.5px; }
.pgp-body .pg-tabs { gap: 10px; margin-top: 20px; }
.pgp-body .pg-tabs button { font-size: 14px; padding: 14px 8px; gap: 8px; border-radius: 14px; }
.pgp-body .pg-tab-num { width: 36px; height: 36px; font-size: 16px; }
.pgp-body .pg-bar { margin-top: 14px; }
.pgp-body .pg-list { font-size: 15.5px; margin-top: 16px; }
.pgp-body .pg-acc { font-size: 15.5px; gap: 6px 14px; }
.pgp-body .pg-addr { font-size: 16px; margin-bottom: 16px; }
.pgp-body .pg-assets { gap: 14px; margin-top: 14px; }
.pgp-body .pg-asset { padding: 14px 16px; }
.pgp-body .pg-small { font-size: 14px; margin-top: 14px; }
.pgp-body .pg-topup { font-size: 15.5px; padding: 11px 14px; margin-top: 16px; }
.pgp-body .pg-done-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 32px; margin-top: 18px; }
.pgp-body .pg-done-side { gap: 14px; }
@media (max-width: 1000px) {
  .pgp-body .pg-grid { gap: 24px; }
}
@media (max-width: 760px) {
  .pgp-body .pg { padding: 24px 16px 0; }
  .pgp-body .pg-hero-text h1 { font-size: 36px; }
  .pgp-body .pg-lead { font-size: 18px; }
  .pgp-body .pg-start, .pgp-body .pg-task, .pgp-body .pg-box, .pgp-body .pg-done, .pgp-body .pg-wallet { padding: 20px; }
  .pgp-body .pg-task-head h2, .pgp-body .pg-start h2, .pgp-body .pg-done h2 { font-size: 25px; }
  .pgp-body .pg-done-grid { grid-template-columns: 1fr; }
}

/* V1.33 – "Share on X" button, always top right in the header */
.tl-share { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 11px; background: #0F172A; border: 1.5px solid #0F172A; color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background .15s; }
.tl-share svg { width: 15px; height: 15px; fill: currentColor; }
.tl-share:hover { background: #26324A; border-color: #26324A; color: #fff; }
.pg-net + .tl-share { margin-left: 0; }
@media (max-width: 760px) { .tl-share { padding: 7px 12px; font-size: 14px; } }

/* V1.40 – links: underline disappears on hover (whole site) */
a:hover { text-decoration: none !important; }

/* V1.42 – language switcher (XRPL Daily, Live Ledger) */
.tl-lang { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: #fff; border: 1.5px solid var(--line); }
.tl-lang:empty { display: none; }
.tl-lang button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800; color: var(--muted); padding: 6px 9px; border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.tl-lang button:hover { color: var(--blue); background: #F1F5FD; }
.tl-lang button.on { background: var(--blue); color: #fff; }
.tl-lang + .tl-share, .pg-net ~ .tl-lang { margin-left: 0; }
.pg-net ~ .tl-lang { margin-left: 10px; }
.tl-lang + .tl-share { margin-left: 10px; }
@media (max-width: 760px) { .tl-lang button { padding: 5px 7px; font-size: 12px; } }

/* V1.43 – translated Playground title: only the second part is coloured */
.pg-hero-text h1 .pg-h1a { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }

/* V1.50 – public counters (counter.js) */
.xc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; font-size: 12px; font-weight: 400; color: var(--muted, #5b6472); }
.xc[hidden] { display: none; }
.xc .xc-item { white-space: nowrap; background: #fff; border: 1.5px solid var(--line, #e3e6ec); border-radius: 999px; padding: 3px 10px; }
.xc .xc-sep { display: none; }
.xc-one { margin: 10px 0 0; }

/* V1.51 – footer: copyright notice tooltip, separators and blue numbers (same as tools.css) */
.cn-tip { position: relative; display: inline-block; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; outline: none; }
.cn-tip::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 60; width: 440px; max-width: 80vw; padding: 12px 14px; border-radius: 10px; background: #1E1036; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; box-shadow: 0 14px 30px -10px rgba(30,16,54,.55); opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; }
.cn-tip:hover::after, .cn-tip:focus::after { opacity: 1; visibility: visible; }
.cn-tip { color: #155EE0; font-weight: 700; text-decoration: underline; text-decoration-style: solid; text-underline-offset: 3px; cursor: help; }
.cn-tip:hover, .cn-tip:focus { text-decoration: none; }
.cn-tip { font-weight: 400; }
.rel-d { color: #4A78D6; font-weight: 400; }
.rel-sep { display: inline-block; width: 1px; height: 12px; margin: 0 12px; background: #C3CAD6; vertical-align: -1px; }
