/* shared look for the social pages: dark paper labels, white word slips, no shadows, no tilt */
.tw-tag{display:inline-block;border:0;cursor:pointer;text-decoration:none;background:#1c1c1a;color:#fbfaf6;
  font:400 15px "Special Elite","Courier Prime",monospace;padding:.45em .8em .4em;letter-spacing:.04em;line-height:1.2}
.tw-tag:hover,.tw-tag[aria-pressed="true"]{background:#fbfaf6;color:#1c1c1a}
.tw-tag:focus-visible{outline:3px solid #fff;outline-offset:3px}
.tw-tag[disabled]{opacity:.5;cursor:default}
.tw-slip{display:inline-block;background:#fff;color:#1c1c1a;font:400 16px "EB Garamond",Garamond,serif;padding:.12em .45em .18em;line-height:1.25}
.tw-input{font:400 18px "Courier Prime",monospace;border:0;background:#fff;color:#1c1c1a;padding:.4em .6em;min-width:0;width:100%}
.tw-input:focus{outline:3px solid #1c1c1a;outline-offset:0}
.tw-err{background:#c4241b;color:#fff;font:400 14px "Courier Prime",monospace;padding:.2em .5em}

/* a rendered collage: a stage at the poster's screen size, scaled down to fit its box */
.tw-frame{position:relative;overflow:hidden;width:100%;background:#ccc}
.tw-stage{position:absolute;left:0;top:0;transform-origin:0 0;overflow:hidden}
.tw-stage .tw-ground{position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat}
.tw-stage .piece{position:absolute}
.tw-stage .piece img{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none}
.tw-stage .word{position:absolute;background:#fff;color:#1c1c1a;line-height:1.1;white-space:nowrap}
.tw-stage .word.v1{background:#f3ecdc}.tw-stage .word.v2{background:#141414;color:#f6f4ee}.tw-stage .word.v3{background:#dfe6f5}.tw-stage .word.v4{background:rgba(255,255,255,.62)}

/* the post sheet on collage pages */
.tw-sheet{position:fixed;inset:0;z-index:300000;background:rgba(20,20,22,.8);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.tw-sheet[hidden]{display:none}
.tw-card{display:flex;flex-direction:column;gap:12px;align-items:stretch;width:min(560px,92vw)}
.tw-card .tw-frame{outline:6px solid #fff}
.tw-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tw-row.center{justify-content:center}
.tw-form{display:flex;gap:8px}

/* a collage's tile: its background, one middleground in the centre, one foreground on top.
   only the foreground lifts on hover; the background and middleground stay put */
.tw-tile{position:relative;display:block;width:var(--tile,200px);aspect-ratio:1;flex:none;
  background-position:center;background-size:cover;background-repeat:no-repeat}
.tw-tile img{position:absolute;left:50%;top:50%;object-fit:contain;transform:translate(-50%,-50%);pointer-events:none}
.tw-tile .mid{width:70%;height:70%}
.tw-tile .fg{width:56%;height:56%;transition:transform .2s ease}
.tw-tile:hover .fg,.tw-tile:focus-visible .fg{transform:translate(-50%,-50%) scale(1.22)}
.tw-tile:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.tw-tile .fg{transition:none}}
