.block.phrases>.phrase-card.master-embedded{background:none!important;aspect-ratio:768/512!important;height:auto!important;min-height:0!important;padding:0!important;overflow:hidden!important;position:relative!important;border:0!important}
.block.phrases>.phrase-card.master-embedded>*:not(.master-card-frame){display:none!important}
.block.phrases>.phrase-card.master-embedded::before,.block.phrases>.phrase-card.master-embedded::after{display:none!important;content:none!important}
.block.phrases>.phrase-card.master-embedded>.master-card-frame{position:absolute!important;display:block!important;inset:0!important;width:100%!important;height:100%!important;z-index:100!important;border:0!important;background:transparent!important}

.block.phrases>.phrase-card.master-embedded:has(>.master-card-frame.master-modal-active){overflow:visible!important;z-index:2147483000!important}
.block.phrases>.phrase-card.master-embedded>.master-card-frame.master-modal-active{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483000!important;background:transparent!important}
body.master-card-dialog-open{overflow:hidden!important}

/* MASTER card: keep artwork within its frame, no nested scrollbar */
.block.phrases{overflow:visible!important;max-height:none!important}
.block.phrases>.phrase-card.master-embedded{overflow:hidden!important;overflow-y:hidden!important;max-height:none!important;scrollbar-width:none!important}
.block.phrases>.phrase-card.master-embedded::-webkit-scrollbar{display:none!important}
.block.phrases>.phrase-card.master-embedded>.master-card-frame:not(.master-modal-active){overflow:hidden!important;display:block!important}

/* Keep embedded MASTER's width and height on the same 3:2 ratio */
.block.phrases>.phrase-card.master-embedded{box-sizing:border-box!important;width:100%!important;padding:0!important;margin-left:0!important;margin-right:0!important;aspect-ratio:3/2!important;height:auto!important;min-height:0!important;max-height:none!important}
.block.phrases>.phrase-card.master-embedded>.master-card-frame:not(.master-modal-active){box-sizing:border-box!important;width:100%!important;height:100%!important;inset:0!important}

/* FIX: mobile card width matches other section cards, portrait height independent of width */
@media(max-width:600px){.block.phrases>.phrase-card.master-embedded{width:100%!important;max-width:100%!important;margin-inline:0!important;transform:none!important;aspect-ratio:768/670!important;border-radius:18px!important}.block.phrases>.phrase-card.master-embedded>.master-card-frame:not(.master-modal-active){width:100%!important;left:0!important;right:0!important}}

/* OWNER approved RU card master 4:3, no distortion; other languages unchanged */
/* Archived legacy RU-only aspect-ratio override: use shared mobile MASTER ratio. */

/* Approved taller RU Japanese phrase card only */
/* RU and EN use one card aspect ratio. */

/* OWNER: same full-width section gutters as travel planner; no extra white card surface */
@media(max-width:600px){.block.phrases>.phrase-card.master-embedded.ru-master-card{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:18px!important}}

.block.phrases>.phrase-card.master-embedded.ru-master-card{border:1px solid rgba(130,181,213,.35)!important;box-shadow:none!important;outline:0!important;border-radius:18px!important;overflow:hidden!important;}

/* OWNER: completely borderless RU cards in both themes */
.block.phrases>.phrase-card.master-embedded.ru-master-card{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;overflow:hidden!important}
.block.phrases>.phrase-card.master-embedded.ru-master-card .master-card-frame{border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important}

/* OWNER 2026-10-26: true transparency around the approved artwork, no rectangular backdrop */
.block.phrases>.phrase-card.master-embedded.ru-master-card,
.block.phrases>.phrase-card.master-embedded.ru-master-card>.master-card-frame:not(.master-modal-active){
 background:transparent!important;background-color:transparent!important;
 border:0!important;outline:0!important;box-shadow:none!important;
 border-radius:0!important;clip-path:none!important;
}
