/* V8d: lighter translucent surfaces and diagonally cut pill ends. */
.page .link,
.page .link:hover{
  border-radius:0!important;
  clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,18px 100%,0 50%);
  background:rgba(12,12,12,.64)!important;
  box-shadow:none!important;
}
.page .link:hover{background:rgba(23,23,23,.77)!important}
main.ff-page-enter .card{
  background:rgba(10,10,10,.68)!important;
}
main.ff-page-enter form input:not([type=hidden]),
main.ff-page-enter form button{
  border-radius:0!important;
  clip-path:polygon(13px 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,13px 100%,0 50%);
  background:rgba(12,12,12,.70)!important;
}
main.ff-page-enter form textarea{background:rgba(12,12,12,.70)!important}
@media(max-width:600px){
 .page .link{clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,14px 100%,0 50%)}
}

/* V8e: selectable shapes; diagonal edges lean in the same direction. */
body.ff-shape-round .page .link,body.ff-shape-round .page .link:hover{clip-path:none!important;border-radius:999px!important}
body.ff-shape-diagonal .page .link,body.ff-shape-diagonal .page .link:hover{clip-path:polygon(22px 0,100% 0,calc(100% - 22px) 100%,0 100%)!important;border-radius:0!important}
body.ff-shape-pointed .page .link,body.ff-shape-pointed .page .link:hover{clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,18px 100%,0 50%)!important;border-radius:0!important}




/* V8h: restore stronger V8f outline on pointed/diagonal, same stroke on round and square. */
body.ff-shape-pointed .page .link,
body.ff-shape-diagonal .page .link,
body.ff-shape-round .page .link,
body.ff-shape-square .page .link{
 position:relative;
 isolation:isolate;
 border:0!important;
 background:rgba(255,255,255,.24)!important;
}
body.ff-shape-pointed .page .link::before,
body.ff-shape-diagonal .page .link::before,
body.ff-shape-round .page .link::before,
body.ff-shape-square .page .link::before{
 content:"";position:absolute;inset:1px;z-index:-1;pointer-events:none;
 background:rgba(10,10,10,.68);
}
body.ff-shape-pointed .page .link::before{
 clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,18px 100%,0 50%);
}
body.ff-shape-diagonal .page .link::before{
 clip-path:polygon(22px 0,100% 0,calc(100% - 22px) 100%,0 100%);
}
body.ff-shape-round .page .link::before{border-radius:999px}
body.ff-shape-square .page .link,
body.ff-shape-square .page .link:hover{
 clip-path:none!important;border-radius:0!important;
}
body.ff-shape-square .page .link::before{border-radius:0}
body.ff-shape-pointed .page .link:hover::before,
body.ff-shape-diagonal .page .link:hover::before,
body.ff-shape-round .page .link:hover::before,
body.ff-shape-square .page .link:hover::before{background:rgba(23,23,23,.84)}


/* V8i: homepage design selector must never change subpage shapes. */
body main.ff-page-enter .card,
body main.ff-page-enter form input:not([type=hidden]),
body main.ff-page-enter form textarea,
body main.ff-page-enter form button,
body main.ff-page-enter .notice{
 border-radius:0!important;
 clip-path:none!important;
}

/* V8j: subpages have their own fixed rectangular surfaces, completely independent of body shape.
   Match the homepage tile's actual 1px outer hairline (rgba white .24). */
body main.ff-page-enter .card,
body main.ff-page-enter form input:not([type="hidden"]),
body main.ff-page-enter form textarea,
body main.ff-page-enter form button,
body main.ff-page-enter .notice,
body main.ff-page-enter .notice.success,
body main.ff-page-enter .notice.error{
 clip-path:none!important;
 border-radius:0!important;
 border:1px solid rgba(255,255,255,.24)!important;
 box-sizing:border-box!important;
}
body main.ff-page-enter .card{background:rgba(10,10,10,.68)!important}
body main.ff-page-enter form input:not([type="hidden"]),
body main.ff-page-enter form textarea,
body main.ff-page-enter form button{background:rgba(12,12,12,.70)!important}

/* V8k: page-specific form surfaces, never affected by the home shape selector. */
html body main.ff-page-enter .card,
html body main.ff-page-enter form input:not([type="hidden"]),
html body main.ff-page-enter form textarea,
html body main.ff-page-enter form button,
html body main.ff-page-enter .notice{
 border-radius:0!important;
 clip-path:none!important;
 border:1px solid rgba(255,255,255,.24)!important;
 box-shadow:none;
 box-sizing:border-box!important;
}
html body main.ff-page-enter form input:not([type="hidden"]),
html body main.ff-page-enter form textarea,
html body main.ff-page-enter form button{
 background:rgba(12,12,12,.70)!important;
}
html body main.ff-page-enter .card{background:rgba(10,10,10,.68)!important}
html body main.ff-page-enter .notice.success{background:#d7b56d!important;color:#000!important}

/* V8x: match the actually rendered dark subpage cards (subpages.css uses .89). */
body.ff-shape-pointed .page .link::before,
body.ff-shape-diagonal .page .link::before,
body.ff-shape-round .page .link::before,
body.ff-shape-square .page .link::before{background:rgba(10,10,10,.89)!important;}

/* V8y: correct the effective opacity of the two-layer social pills.
   White frame layer alpha .24 + dark inset alpha .855263 => total alpha .89.
   The inner surface thus matches the opacity of the subpage cards. */
body.ff-shape-pointed .page .link::before,
body.ff-shape-diagonal .page .link::before,
body.ff-shape-round .page .link::before,
body.ff-shape-square .page .link::before{background:rgba(10,10,10,.855263)!important;}
