/* flexi.css -- the ชื่อขยับได้ page's own parts (/flexi/, the live copy; /preview/ keeps its own; 2026-11-16). The rest is shop.css (the storefront's frame,
   cards, segments, pills, .sw swatches), griptok.css (buttons, help lines, the view switch), bubble.css (the stage
   element, the font tiles, the test box) and tabien.css (the text field), shared by id and class. */

/* the name: one field, capitals, the note under it */
#nameIn{text-transform:uppercase;letter-spacing:.06em}
#nameIn::placeholder{text-transform:none;letter-spacing:0}
#nameMsg{margin:-4px 2px 0;font-size:12px;line-height:1.55;color:var(--ink3)}
#nameMsg:empty{display:none}
#nameMsg.warn{color:#b45309}

/* the six fonts: three to a row, the name drawn in each */
#fonts.bbtiles{grid-template-columns:repeat(3,1fr)}
#fonts .bbtile canvas{max-width:none;aspect-ratio:3/1}

/* the emoji after the name: a row of tabs (แนะนำ, then the categories; it scrolls sideways), and under it small tiles, no words under them (the name shows in the card's corner and as the tile's
   title); the first tile takes the emoji off */
#emCats{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 8px;margin:0 -2px 4px;scrollbar-width:none}
#emCats::-webkit-scrollbar{display:none}
#emCats:empty{display:none}
#emCats button{flex:none;min-height:34px;padding:0 12px;border:0;border-radius:999px;background:#0f172a0d;color:var(--ink2);font-size:12px;font-weight:600}
#emCats button[aria-pressed="true"]{background:var(--blue);color:var(--on-accent)}
.fxems .fxemnote{grid-column:1/-1;margin:6px 2px 0;font-size:12px;color:var(--ink3)}
.bbtiles.fxems{grid-template-columns:repeat(6,1fr);gap:4px}
.fxems .bbtile{padding:5px;min-height:46px;justify-content:center}
.fxems .bbtile canvas{width:100%;max-width:44px;aspect-ratio:1}
.fxems .bbtile.fxnone span{font-size:11px;font-weight:600;color:var(--ink3)}
.fxems:empty{min-height:46px}
@media (min-width:480px){.bbtiles.fxems{grid-template-columns:repeat(8,1fr)}}
#emCard .gthelp{margin-top:8px}

/* the two sizes: the name, and the letters' height beside it */
#sizes button{font-size:13px}
#sizes button em{font-style:normal;font-weight:500;opacity:.75}

/* the two colours: which one the swatches change, then the swatches (shop.css .sw) */
#colourCard .segs button{font-size:13px}
#colourCard .segs button i{display:inline-block;width:12px;height:12px;margin-right:6px;border-radius:50%;vertical-align:-1px;
  box-shadow:0 0 0 1px #0f172a26}
.fxsw{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px}
.fxsw .sw[hidden],.tbcords .sw[hidden]{display:none}
.tbcords{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}
.tbcords[hidden]{display:none}
#cordCard .segs button{font-size:13px}

/* make it move: under the 3D, beside the view switch */
.viewbar{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
#flexBtn{min-height:36px;padding:0 14px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-size:13px;font-weight:700;
  display:inline-flex;align-items:center;gap:6px}
#flexBtn:active{transform:translateY(1px)}
#flexBtn svg{width:16px;height:16px}

/* not on sale yet: the buy card says so in place of a price */
#buyCard .gtprice.fxsoon{font-size:15px;color:var(--ink3)}
