/* L2 (SIMPLIFY audit, R-93b): every control is at least 44 x 44 px (48 on a phone). The look of a control stays; the box under the finger grows. Loaded last. */
:root{--tap:var(--tap-min,44px)}
@media (pointer:coarse),(max-width:700px){:root{--tap:var(--tap-min-mobile,48px)}}
.filter,.homeReactSummary,.iconAction,.utilityAction,.qSend,.readMore,.feedMoreBtn,.backHome,.closeViewer,.ffTapMobileNav,.ffTapFullscreen,
.mCreator,.bnav,.ffGuestPrimary,.ffGuestSecondary,.header button,.searchrow button,.ffSearchGo,.focfocMobileBrand,.epBtn.isLocked,.epBtn.locked{min-height:var(--tap)!important;min-width:var(--tap)!important;box-sizing:border-box}
.tagChipV18{display:inline-flex!important;align-items:center;box-sizing:border-box}
.search input,.mQuick input,.mQuick textarea,#search{min-height:var(--tap)!important;box-sizing:border-box}
.iconAction,.utilityAction{display:inline-flex;align-items:center;justify-content:center}
.bottomNav .bnav,.bnav{height:auto!important;min-height:var(--tap)!important}
.v19AvatarButton,.commentIdentity{min-height:var(--tap)!important;min-width:var(--tap)!important;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
#viewer :is(button,[role=button],select,summary):not(.tagChipV18,.categoryChipV18,.follow,.epBtn:not(.isLocked):not(.locked),.reactionChip,.reactionDeck,.discussionQuickEntryV23,.mQuick button,.musicInlineTabs button,.ffPlayerFrame *){min-height:var(--tap)!important;min-width:var(--tap)!important;box-sizing:border-box}          /* every OTHER control of the viewer keeps the full 44/48 box; the compact list is just below */
.ffAlbumNav{width:var(--tap)!important;height:var(--tap)!important}
/* Both feed renderers use the approved mobile foot: a retained desktop .card also needs it while the responsive renderer switches to .mCard. No hit-policy or event change. */
/* FEED-FOOT (Owner #617/#618, "FocFoc is GRID.png", the two circled areas at the foot of a Feed card): L2 gave the reaction summary and the three icons (share / save / gift) a 48 px BOX each, so on a two-column phone card they no longer fitted on one
   line and stacked with blank space between and around them (105 px for what is a 32 px line). The look Boss chose is ONE line: faces + count on the left, the three icons on the right. DELIBERATE, LIMITED EXCEPTION to R-93 / R-93b (KTS decision 17/10),
   for this foot on a phone ONLY: the glyph box is 34 x 32 px; the area under the finger is 48 px HIGH and exactly as WIDE as the box (34 px: the icons touch, nothing overlaps), so a tap can never land on the neighbour (Gift spends money). */
@media (max-width:760px){
 :is(.mCard,.card) .actions.socialTools{row-gap:16px!important;min-height:0!important;padding-top:7px!important}    /* row-gap only counts when a narrow card wraps the icons under the faces: 32 + 16 + 32 = the 48 px pitch, so the two rows' finger areas do not overlap */
 :is(.mCard,.card) .actionIcons{gap:0!important}
 :is(.mCard,.card) .actionIcons .iconAction{min-width:0!important;min-height:0!important;width:34px!important;height:32px!important}
 :is(.mCard,.card) .actionIcons .iconAction,:is(.mCard,.card) .homeReactSummary{position:relative}    /* the finger area below is made HERE, for every pointer: the pointer:coarse block of index.html is not the only source (a narrow mouse window also gets 34 x 32 glyphs) */
 :is(.mCard,.card) .actionIcons .iconAction::before{content:"";position:absolute;inset:-8px 0!important}
 :is(.mCard,.card) .homeReactSummary{min-width:0!important;min-height:32px!important;margin-top:0!important;margin-bottom:0!important}
 :is(.mCard,.card) .homeReactSummary::after{content:"";position:absolute;inset:-8px 0!important}
}

/* COMPACT FRAME (Boss #700/#701 'Music cục mịch'; KTS SPEC_COMPACT_FRAME_HIT_AREA_20261019, a LIMITED exception to R-93b like FEED-FOOT above): the VISIBLE box of these controls is compact (a chip --chip-h, a button --btn-h: tokens), the text size is NOT touched,
   and the area under the finger is still --tap (44 mouse / 48 touch) because of ONE invisible ::after: full width of the box (at least --tap), --tap high, centred on the box. The old min-height:var(--tap) made every chip a 44/48 px box. */
:where(.tagChipV18,.categoryChipV18,.follow,button.follow,.ffpWorkCardCta,.epBtn,.mQuick button,.discussionQuickEntryV23,.musicInlineTabs button,.mMore){position:relative}          /* :where = specificity 0: a thumbnail's absolute .categoryChipV18 and the locked .epBtn keep their own position */
.tagChipV18,.categoryChipV18,.musicInlineTabs button{min-height:var(--chip-h)!important;min-width:0!important;box-sizing:border-box}
.follow,button.follow,.ffpWorkCardCta,.epBtn:not(.isLocked):not(.locked),.mQuick button,.discussionQuickEntryV23,.mMore{min-height:var(--btn-h)!important;min-width:0!important;box-sizing:border-box}
.tagChipV18::after,.categoryChipV18::after,.follow::after,button.follow::after,.ffpWorkCardCta::after,.epBtn:not(.isLocked):not(.locked)::after,.mQuick button::after,.discussionQuickEntryV23::after,.musicInlineTabs button::after,.mMore::after,.mCard .mMore::after{content:"";position:absolute;left:50%;right:auto;top:50%;width:max(100%,var(--tap));height:var(--tap);transform:translate(-50%,-50%)}          /* centred: a control narrower than --tap grows to BOTH sides (half as far each way, so it reaches a neighbour half as much); as wide as the box when it is wider */
/* STEP 2 (Boss #700/#701): the player keeps the OLD rhythm: tight meta line, the tab row gap 6px; the tabs and the "more comments" link are compact boxes whose finger area is the ::after above. Text sizes are untouched. */
.musicPlayerMeta>small{line-height:1.25}
.musicInlineTabs{gap:6px}
/* TRAP 2 (KTS): an ancestor with overflow auto / hidden / scroll CLIPS the ::after, so the finger area there would be smaller than --tap: its vertical padding must be at least (--tap - visible height) / 2. */
.largePartList{padding-block:max(6px,calc((var(--tap) - var(--btn-h)) / 2))!important}          /* overflow:auto; holds the episode buttons */
.mobileRailRow:has(.tagChipV18,.categoryChipV18,.follow,.epBtn,.mQuick button,.discussionQuickEntryV23),body.mobilePreview .filters:has(.tagChipV18,.categoryChipV18,.follow,.epBtn,.mQuick button,.discussionQuickEntryV23){padding-block:calc((var(--tap) - var(--chip-h)) / 2)!important}          /* horizontal rails: only when a compact control really is inside */
/* TRAP 1 (finger areas must not overlap): a group that WRAPS keeps a row gap of (--tap - visible height); a single row needs nothing. */
.detailTagsV18,.cardTagsV18,.ffTopicChips{row-gap:calc(var(--tap) - var(--chip-h))!important}
.communityReactionRow{row-gap:calc(var(--tap) - var(--btn-h))}

/* UI-1 'chân thẻ feed' (Boss circled 16/10 + #700/#701; T1 SITE_AUDIT_VS_GRIDRANDOM 20/10): FEED-FOOT above wrapped the icons under the faces on a two-column phone card (87 px, two rows) and the comment box was a 68 px block with a loud solid Send. Now ONE row
   in every card width: the count may shrink (the faces clip), the icons stay at the right, nothing wraps; the glyph box is 32 wide (the finger area is still 48 high and as wide as its box: neighbours never overlap); the comment box is slim and its Send is a clean brighter blue (see the parity block below: same button, same behaviour); the author line is 44 px (a finger-size button). The text size is NOT touched (the comment field keeps 16 px: no iOS zoom). Approved difference ui1-feed-foot (tests/golden/approved-differences.json); test tests/mobile/feed-foot-layout.cjs. */
@media (max-width:760px){
 :is(.mCard,.card) .actions.socialTools{flex-wrap:nowrap!important;gap:4px!important;row-gap:0!important;padding:6px 4px!important}
 :is(.mCard,.card) .actionIcons{margin-left:auto!important}
 :is(.mCard,.card) .actionIcons .iconAction{width:32px!important}
 :is(.mCard,.card) .homeReactSummary{flex:1 1 0!important;min-width:0!important;margin:0!important}          /* no negative margin: the box stays inside the foot and ends before the first icon */
 :is(.mCard,.card) .homeReactSummary .homeFaces{flex:0 1 auto;min-width:0;overflow:hidden}
 :is(.mCard,.card) .homeReactSummary>span{white-space:nowrap}
 .mCard .mQuick{padding:6px 8px 8px!important;gap:6px!important}
 .mCard .mQuick textarea,.mCard .mQuick input{min-height:38px!important;height:38px!important;padding:8px 7px!important}
 .mCard .mQuick button{min-height:var(--btn-h)!important;height:calc(var(--btn-h) + 2px)!important;padding:0 9px!important;font-weight:700}          /* tokens, not raw px (tests/compact/music-compact-css.cjs) */
 .mCard .mCreator{min-height:44px!important}
}
/* UI-1 parity (T1 CARD_PARITY_TOJTINH #7b): the Send button of a card's comment box is a brighter blue than the token blue (#1a70dc, 4.78:1): #1774e2 is the brightest blue that still gives white text 4.5:1 (WCAG AA) - the old #119fff is 2.9:1 and stays out.
   Same radius 9 as the old site; hover a little darker. Only the comment Send; every other primary button keeps the token. */
.mQuick button,.quickComment .qSend{background:#1774e2!important;background-image:none!important;color:#fff!important;border-radius:9px!important}
.mQuick button:hover,.quickComment .qSend:hover{background:#1363c0!important}
/* UI-1 parity, desktop WITH A MOUSE only (T1 CARD_PARITY_TOJTINH 5c / 5d / 9: the old foot is 51 px with 34 px boxes; ours 61 px with 44): a mouse needs no finger box, so the three icons and the reaction summary are 34 px and the foot is as compact as the old
   one. A touch screen (pointer:coarse, a tablet) keeps the 44 px boxes. */
@media (min-width:761px) and (pointer:fine){
 .card .socialTools .actionIcons .iconAction{min-width:0!important;min-height:0!important;width:34px!important;height:34px!important}
 .card .socialTools .actionIcons{gap:10px}                                                       /* 34 + 10 = 44: the finger areas below never overlap */
 .card .socialTools .actionIcons .iconAction{position:relative}
 .card .socialTools .actionIcons .iconAction::before{content:"";position:absolute;left:50%;top:50%;width:var(--tap);height:var(--tap);transform:translate(-50%,-50%)}      /* the 44 mouse area (KTS UI-1/UI-2 condition 2a) */
 .card .socialTools .homeReactSummary{min-height:34px!important;margin-top:0!important;margin-bottom:0!important}
}

/* UI-1 comments on a card (T1 CARD_PARITY_TOJTINH 'BỔ SUNG'): the commenter's name button and avatar button were forced to the full 44/48 box (the .v19AvatarButton,.commentIdentity rule above): every comment became 29 px taller, the text 47 px under the name, the text column narrower.
   Here, ONLY in a card's comment preview, they are as big as what they show (name = its line, avatar 30) and the finger area (44) is an invisible ::after (the same technique as the chips). Nothing else that uses those classes (the discussion sheet, the viewer) changes. */
.homeComment .commentIdentity,.homeComment .v19AvatarButton,.homeComment .miniAv,.mComment .commentIdentity,.mComment .mcAvBtn,.mComment .mcAuthor{min-height:0!important;min-width:0!important;position:relative}
.homeComment .commentIdentity:not(.v19AvatarButton):not(.miniAv),.mComment .mcAuthor.mcName{padding:0;display:inline-flex;align-items:center;line-height:1.3}
.homeComment .v19AvatarButton,.homeComment .miniAv,.mComment .mcAvBtn{width:30px!important;height:30px!important;padding:0}
.homeComment .commentIdentity:not(.v19AvatarButton):not(.miniAv)::after,.mComment .mcAuthor.mcName::after{content:"";position:absolute;inset:-14px -4px}
.homeComment .v19AvatarButton::after,.homeComment .miniAv::after,.mComment .mcAvBtn::after{content:"";position:absolute;inset:-7px -4px}
/* Card comment text is a separate action from the author's profile. Keep the
   compact drawing and expanded identity bounds, but let the text win where a
   name's transparent target reaches into its line. Menus remain above both. */
.homeComment>div>.v19HomeCommentText,.homeComment>div>span,.mComment>em{position:relative;z-index:1}
body .card[data-card] .homeComment>.v19AvatarButton,body .card[data-card] .homeComment>.miniAv{width:30px!important}          /* index.html made this button 44 wide around a 30 px picture: now 30 wide, the 44 finger area is the ::after above */
/* UI-1 'tiết chế' (Trùm 18:30 / Boss comparing the same post): the DECORATIVE micro-text of a card is as small as the old site's (the kind badge, the time and the reaction count, all --fs-micro (12 px floor); old 9.5 / 10.5 / 11); the main reading text (title, description, author name, comment text, the Send button) keeps its size.
   Not touched: the chips of the compact list (#tag, the thumbnail chip) - the compact-frame rule says their text size stays (tests/compact/music-compact-css.cjs). */
@media (max-width:760px){
 .mCard .mTag{font-size:var(--fs-micro);line-height:1.25}
 .mCard .mCreator small,.mCard .mCreator .relativeTime{font-size:var(--fs-micro)}
 .mCard .homeReactSummary{font-size:var(--fs-micro)}
}
.card .homeReactSummary{font-size:var(--fs-micro)}
/* UI-2 'Trang tác giả' (Boss compared with gridrandom 20/10; T1 SITE_AUDIT_VS_GRIDRANDOM pair_09): the old shape. A WIDE banner across the whole block with a big avatar over its lower edge; the name large; ONE main Follow button, Donate / Share small and quiet
   (at the right of the name block on a desktop window, under the stats on a phone); followers / following / items on ONE line; the tabs; a grid (3 columns, a phone 2) whose title sits BELOW the picture. The text size is not touched (tokens); every control keeps its
   finger area (an invisible ::after, --tap) while the visible box is a token height. Approved difference ui2-author-page (tests/golden/approved-differences.json); test tests/mobile/author-page-layout.cjs. */
.profileV18.ffProfile2 .ffpLayout{display:block;padding:0 22px}
.ffProfile2 .ffpRail{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:start;background:none!important;border:0!important;border-radius:0!important;padding:0!important;overflow:visible!important}
.ffProfile2 .ffpRail>*{grid-column:1}
.ffProfile2 .ffpCover{grid-column:1/-1;grid-row:1;margin:0!important;height:190px;border-radius:16px;border:1px solid rgba(64,110,168,.22);background:radial-gradient(circle at 72% 8%,rgba(60,140,230,.34),transparent 55%),linear-gradient(135deg,#0a2848,#101a3f 70%,#0b1730)}
.ffProfile2 .ffpAvatar{grid-column:1/-1;grid-row:2;width:96px!important;height:96px!important;margin:-48px 0 6px 18px!important;border-width:5px;font-size:30px}
.ffProfile2 .ffpName{grid-row:3;margin:0 0 2px 4px;font-size:28px;line-height:1.2}
.ffProfile2 .ffpHandle{grid-row:4;margin-left:4px;color:#8da2bd}
.ffProfile2 .ffpBio{grid-row:5;margin:10px 0 0 4px}
.ffProfile2 .ffpStats{grid-row:6;margin:12px 0 0 4px;flex-wrap:nowrap;gap:6px 18px}
.ffProfile2 .ffpStats span{white-space:nowrap}
.ffProfile2 .ffpStats b{display:inline;margin-right:5px}
.ffProfile2 .ffpActions{grid-column:2;grid-row:3 / span 3;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px;margin:6px 0 0}
.ffProfile2 .ffpEditForm{grid-column:1/-1;grid-row:7}
.ffProfile2 .ffpActions>*{position:relative}
.ffProfile2 .ffpActions>*::after{content:"";position:absolute;left:0;right:0;top:50%;height:var(--tap);transform:translateY(-50%)}
.ffProfile2 .ffpActions .follow,.ffProfile2 .ffpActions .ffpPrimary{min-height:calc(var(--btn-h) + 4px)!important;min-width:0!important;padding:0 22px!important;border-radius:10px;font-weight:700;flex:none}
.ffProfile2 .ffpActions .ffpActionBtn:not(.ffpPrimary){min-height:var(--btn-h)!important;min-width:0!important;padding:0 12px;background:transparent;border-color:rgba(70,161,215,.26);color:#aebccb;font-weight:600;flex:none}
.ffProfile2 .ffpStage{margin-top:18px}
.ffProfile2 .ffpCardMedia{aspect-ratio:4/3}
.ffProfile2 .ffpCardMedia:after{display:none}
.ffProfile2 .ffpCardBody{margin-top:0;padding:10px 12px 12px}
.ffProfile2 .ffpCardBody b{font-weight:650;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:760px){
 .profileV18.ffProfile2 .ffpLayout{padding:0 14px}
 .ffProfile2 .ffpCover{height:160px}
 .ffProfile2 .ffpActions{grid-column:1/-1;grid-row:7;justify-content:flex-start;margin:14px 0 0 4px}
}
/* BUG COMMENT-NO-OWN-DELETE: the three-dots button + its small menu on MY comment in a card's preview: the visible box is small, the finger area 44 is an invisible ::after, the menu items are 44 high boxes with the same technique. */
.homeComment,.mComment{position:relative}
.mcMenuBtn{position:absolute;top:0;right:0;width:28px;height:28px;min-width:0!important;min-height:0!important;padding:0;border:0;border-radius:50%;background:transparent;color:#9fb1ca;font-weight:700;font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center;z-index:2}
.mcMenuBtn::after{content:"";position:absolute;inset:-8px}
.mcMenuBtn:hover,.mcMenuBtn[aria-expanded=true]{background:#1a2c45;color:#fff}
.mcMenu{position:absolute;right:2px;top:30px;z-index:9;display:grid;min-width:120px;padding:4px;border:1px solid #2b4466;border-radius:10px;background:#0e1d33;box-shadow:0 10px 30px #0008}
.mcMenu button{min-height:40px!important;min-width:0!important;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#e8f0f8;font:inherit;font-size:var(--fs-secondary);text-align:left;cursor:pointer}
.mcMenu button:hover,.mcMenu button:focus-visible{background:#16283f}
.mcMenu [data-comment-delete]{color:#ff9a9a}
.mComment:has(.mcMenuBtn)>.mcName,.homeComment:has(.mcMenuBtn)>div{padding-right:26px}

/* W43 (i): a running game fits the visible area. The frame height (screen minus bottom nav, player bar and top bar) is set by fit() in index.html; the shell is scrolled fully into view when the game starts (E21). */
.gamePlayerShell{scroll-margin-top:68px;scroll-margin-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
