/* おやつつなぎ in the room (tsunagi-room.mjs, 2026-11-30). Mame's offer takes the talk chips' place above the talk bar, like the
   walk's: nothing covers her. "full": the question and its buttons; "mini": one small 「あそぶ」 card at the window's left edge (the
   walk's card sits there too: then this one stands above it). */
.tsunagi-offer { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 5px; padding: 2px; }
.tsunagi-offer[hidden] { display: none; }
.door[data-mode="talk"] .tsunagi-offer { bottom: calc(100% + 40px); }
.door[data-view]:not([data-view="room"]) .tsunagi-offer, .door[data-mode="life"] .tsunagi-offer, .door[data-name-voice] .tsunagi-offer { display: none; }
.door[data-tsunagi="full"] .talk-chips, .door[data-tsunagi="choose"] .talk-chips { display: none; }
/* where the puzzle is on, the walk is one of its choices: the walk's own offer and card never show */
.door[data-play="on"]:not([data-walk="full"]) .walk-offer { display: none; }
/* おさんぽ chosen by someone who has walked: the walk's own choices (いく！ / むずかしい みち / あとで) take the row */
.door[data-walk="full"] .tsunagi-offer { display: none; }
.tsunagi-offer-q { flex-basis: 100%; margin: 0 0 2px 4px; font-size: 15px; font-weight: 700; color: var(--ink-900); text-shadow: 0 1px 0 rgba(255,250,242,.9); }
/* three choices fit one row on a 390 px phone (the row is 278 px there) */
.tsunagi-offer button { flex: none; min-height: 40px; padding: 7px 11px; border: 1.5px solid var(--oak-900); border-radius: 999px; background: var(--cream-050); color: var(--ink-900); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tsunagi-offer button.tsunagi-go, .tsunagi-offer button.tsunagi-walk { background: #ffb487; border-width: 2px; box-shadow: 0 3px 0 rgba(91,59,43,.22); }
.tsunagi-offer button:focus-visible { outline: 3px solid var(--apricot-300); outline-offset: 2px; }
/* "mini": a keepsake card at the window's left edge, the mirror of 「写真」 at the right; above the walk's card when both show. Hidden
   like 写真 while the keyboard is up or her reply plays. */
.door[data-tsunagi="mini"] .tsunagi-offer { left: 6px; right: auto; bottom: calc(100% + 54px); padding: 0; }
.door[data-tsunagi="mini"][data-mode="talk"] .tsunagi-offer { bottom: calc(100% + 88px); }
.door.kb[data-tsunagi="mini"] .tsunagi-offer, .door[data-reply][data-tsunagi="mini"] .tsunagi-offer { display: none; }
.tsunagi-offer button.tsunagi-mini { position: relative; display: flex; flex-direction: column; align-items: stretch; width: 58px; min-height: 0; padding: 4px 4px 1px;
  border: 0; border-radius: 2px; background: #FFFEFA; rotate: 4deg; box-shadow: 0 0 0 1px rgba(79, 61, 48, .1), 3px 8px 14px rgba(79, 61, 48, .34);
  animation: tsunagi-peek-in .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.tsunagi-mini::before { content: ""; position: absolute; top: -6px; left: 50%; width: 26px; height: 11px; translate: -50% 0; rotate: -4deg;
  background: rgba(246, 184, 198, .85); box-shadow: 0 1px 0 rgba(79, 61, 48, .12); }
/* the film: three snacks of the game in a row of links (the same pictures as the game) */
.tg-film { display: block; aspect-ratio: 1; border-radius: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M14 40L30 22L46 40' fill='none' stroke='%23f28fa9' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cg stroke='%237a4a2e' stroke-width='1.6'%3E%3Ccircle cx='14' cy='40' r='9' fill='%23e2a55a'/%3E%3Ccircle cx='30' cy='22' r='9' fill='%23e2a55a'/%3E%3Ccircle cx='46' cy='40' r='9' fill='%23e2a55a'/%3E%3C/g%3E%3Cg fill='%23e8949a'%3E%3Ccircle cx='14' cy='41.5' r='2.6'/%3E%3Ccircle cx='30' cy='23.5' r='2.6'/%3E%3Ccircle cx='46' cy='41.5' r='2.6'/%3E%3C/g%3E%3C/svg%3E") center 52% / 42px no-repeat,
  radial-gradient(circle at 30% 26%, #fffaf0 0 18%, transparent 46%), linear-gradient(160deg, #ffeef0, #ffd9df 58%, #ffe9ec); }
.tg-name { display: block; padding: 3px 0 2px; font-size: 10.5px; font-weight: 700; line-height: 1.2; color: var(--ink-900); text-align: center; }
@keyframes tsunagi-peek-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .tsunagi-offer button.tsunagi-mini { animation: none; } }
