/* ROBLOXPAD project page, fees, coins list */
.tabs2 { display: flex; gap: 10px; margin: 6px 0 22px; overflow-x: auto; padding: 4px 4px 10px; -webkit-overflow-scrolling: touch }
.tabs2 button { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: var(--line); border-radius: 999px; background: var(--paper); font: 600 18px/1 var(--display); cursor: pointer; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 3px 0 var(--ink) }
.tabs2 button:hover { background: var(--mintxl) }
.tabs2 button[aria-selected="true"] { background: var(--mint); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink) }
.pair-chip { background: var(--sun); font-family: var(--display); letter-spacing: .03em }
.mintline button { min-height: 32px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); padding: 0 12px; font: 700 13px/1 var(--text); cursor: pointer }
.mintline button:hover { background: var(--mintl) }
.tile .na { display: block }

/* ---------- build tab ---------- */
.hello { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 34px 22px }
.hello img { width: 110px; height: 110px; object-fit: contain; animation: bob 3.4s ease-in-out infinite }
.hello h2 { font-size: clamp(26px, 4.4vw, 42px); text-transform: uppercase; letter-spacing: .01em }
.hello .box { width: 100%; max-width: 720px; display: grid; gap: 12px; text-align: left }
.hello .qcs { justify-content: center }
.prompt { min-height: 150px; font-size: 18px }
.cnt { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--ink2) }

.ws { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start }
@media (max-width: 960px) { .ws { grid-template-columns: 1fr } .msgs { max-height: 55vh; min-height: 260px } .chat { min-height: 0 } }
.chat { display: flex; flex-direction: column; border: var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--sh); overflow: hidden; min-height: 520px }
.msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 62vh; min-height: 340px; scroll-behavior: smooth }
.msg { max-width: 92%; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 20px; font-weight: 600; line-height: 1.5; word-break: break-word; overflow-wrap: anywhere }
.msg.user { align-self: flex-end; background: var(--mint); border-bottom-right-radius: 6px }
.msg.assistant { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 6px }
.msg.err { background: var(--coralxl); border-color: var(--coral); color: #8c1f1b }
.msg .who { display: block; font: 800 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin-bottom: 6px }
.msg b.mh { display: block; font: 600 18px/1.3 var(--display); margin: 6px 0 2px }
.msg .li { display: block; padding-left: 18px; position: relative } .msg .li::before { content: ''; position: absolute; left: 3px; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--mint); border: 2px solid var(--ink); box-sizing: content-box; width: 4px; height: 4px }
.msg code { font: 600 .9em var(--mono); background: var(--mintl); border-radius: 6px; padding: 1px 6px }
pre.code, .msg pre { margin: 8px 0; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 12px; background: #0d2b1c; color: #d8ffe9; font: 500 13.5px/1.5 var(--mono); overflow-x: auto; white-space: pre; tab-size: 2 }
.working { display: flex; align-items: center; gap: 12px; font-weight: 800 }
.working .sp { flex: none; width: 22px; height: 22px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite }
.caret::after { content: ''; display: inline-block; width: 8px; height: 1.05em; margin-left: 3px; background: var(--ink); vertical-align: -3px; animation: blink 1s steps(2) infinite }
@keyframes blink { 50% { opacity: 0 } }
.compose { border-top: var(--line); padding: 14px; display: grid; gap: 10px; background: var(--mintxl) }
.compose textarea { min-height: 76px; max-height: 220px }
.compose .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px }
.compose .bar .btn { flex: 0 0 auto }

.panel { border: var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--sh); padding: 18px; margin-bottom: 20px }
.panel h3 { font-size: 22px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.panel .sub { font-size: 14px; font-weight: 700; color: var(--ink2); margin-bottom: 12px }
.bsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.bsteps li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 3px solid var(--mintl); border-radius: 12px; font-weight: 800; color: var(--ink2) }
.bsteps .st { flex: none; width: 24px; height: 24px; border: 3px solid var(--ink2); border-radius: 50%; position: relative }
.bsteps li.doing { border-color: var(--ink); color: var(--ink); background: var(--sunl) } .bsteps li.doing .st { border-color: var(--ink); border-right-color: transparent; animation: spin .8s linear infinite }
.bsteps li.done { border-color: var(--ink); color: var(--ink); background: var(--mintl) } .bsteps li.done .st { background: var(--mint); border-color: var(--ink) } .bsteps li.done .st::after { content: ''; position: absolute; left: 6px; top: 1px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg) }
.writing { margin-top: 12px; display: grid; gap: 6px; font: 600 13.5px/1.3 var(--mono) }
.writing div { display: flex; gap: 8px; align-items: center; word-break: break-all } .writing .ok { color: var(--mintd) }

.tree { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px }
.tree .dir { font: 800 13px/1.2 var(--text); color: var(--ink2); letter-spacing: .03em; padding: 8px 4px 2px; word-break: break-all }
.tree button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; border: 2px solid var(--mintl); border-radius: 12px; background: var(--mintxl); cursor: pointer; text-align: left; font: 700 14px/1.25 var(--mono); word-break: break-all }
.tree button:hover { background: var(--mintl); border-color: var(--ink) }
.tree button small { margin-left: auto; flex: none; color: var(--ink2); font: 700 12px/1 var(--text) }
.tree button.new { border-color: var(--ink); background: var(--sunl) }
.steps-help { margin-top: 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--mintxl) }
.steps-help summary { cursor: pointer; display: flex; align-items: center; min-height: 48px; padding: 0 14px; font: 600 17px/1.2 var(--display) }
.steps-help ol { margin: 0; padding: 0 16px 14px 36px; font-weight: 600; display: grid; gap: 8px } .steps-help code { font: 600 .9em var(--mono); background: var(--mintl); border-radius: 6px; padding: 1px 6px }
.viewer { display: grid; gap: 12px } .viewer pre.code { max-height: 60vh; overflow: auto; margin: 0 }
.viewer .vh { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between } .viewer .vh b { font: 600 15px/1.3 var(--mono); word-break: break-all }
.modal .box.wide { max-width: 860px }

/* ---------- game / fees ---------- */
.gamegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px }
.linkrow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start } @media (max-width: 560px) { .linkrow { grid-template-columns: 1fr } }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px } @media (max-width: 760px) { .split2 { grid-template-columns: 1fr } }
.blk { padding: 22px } .blk.sun { background: var(--sunl) } .blk h3 { font-size: 26px; margin-bottom: 4px } .blk p.d { font-weight: 600; color: var(--ink2); margin-bottom: 14px }
.big { font: 700 clamp(34px, 6vw, 54px)/1 var(--display); letter-spacing: -.02em }
.tw { overflow-x: auto; border: 3px solid var(--ink); border-radius: var(--r2) } .tw table { width: 100%; border-collapse: collapse; min-width: 520px }
.tw th { text-align: left; font: 800 12.5px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); padding: 12px 14px; background: var(--mintxl); border-bottom: 3px solid var(--ink) }
.tw td { padding: 12px 14px; border-bottom: 2px dashed var(--mintl); font-weight: 700; font-size: 15px; vertical-align: top } .tw tr:last-child td { border-bottom: 0 } .tw td.num, .tw th.num { text-align: right }
.tw a { text-decoration: underline; text-underline-offset: 3px }
.empty.sm { padding: 28px 16px } .empty.sm img { width: 72px; height: 72px } .empty.sm h3 { font-size: 22px }
.stack { display: grid; gap: 22px }
.sechead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px } .sechead h2 { font-size: clamp(26px, 4vw, 34px) }
.note { font-size: 14.5px; font-weight: 600; color: var(--ink2) }

.feecard { display: grid; gap: 8px; padding: 26px } .feecard .pct { font: 700 clamp(54px, 9vw, 88px)/.95 var(--display); letter-spacing: -.03em; text-shadow: 3px 4px 0 var(--mint); padding-bottom: .04em } .feecard.sun .pct { text-shadow: 3px 4px 0 var(--sun) } .feecard h3 { font-size: 26px }

/* ---------- coins list ---------- */
.ccard .meta2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.ccard .desc2 { font-weight: 600; color: var(--ink2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.ccard .cta2 { align-self: start }
