.dp-letter-boxed { margin-top: 24px; color: var(--title); } .dp-letter-boxed__intro { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 16px; } .dp-letter-boxed__title { font-size: 20px; font-weight: 600; line-height: 1.25; } .dp-letter-boxed__intro p { margin-top: 3px; font-size: 12px; } .dp-letter-boxed__desktop-actions, .dp-letter-boxed__actions { display: grid; grid-template-columns: repeat(2, 116px); gap: 8px; } .dp-letter-boxed__desktop-actions button, .dp-letter-boxed__actions button { display: inline-flex; height: 48px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #9ba6a8; border-radius: 7px; background: #fff; font-size: 16px; font-weight: 500; } .dp-letter-boxed__desktop-actions img, .dp-letter-boxed__actions img { width: 16px; height: 16px; flex: 0 0 auto; } .dp-letter-boxed__desktop-actions button:last-child, .dp-letter-boxed__actions button:last-child { border-color: #172525; background: #172525; color: #fff; } .dp-letter-boxed__actions { display: none; } .dp-letter-boxed__content { display: grid; grid-template-columns: 380px minmax(0, 1fr); align-items: start; gap: 22px; } .dp-letter-boxed__board-wrap { display: flex; min-width: 0; min-height: 440px; flex-direction: column; justify-content: center; padding: 38px; border: 1px solid #dfe5e8; border-radius: 8px; background: #f7fafc; } .dp-letter-boxed__board { width: 100%; max-width: 300px; margin: auto; overflow: visible; } .dp-letter-boxed__square { width: 100%; max-width: 300px; height: 100%; fill: none; stroke: #afb8ba; stroke-width: 3; } .dp-letter-boxed__path { stroke: var(--dp-letter-boxed-color); stroke-width: 5; stroke-linecap: round; } .dp-letter-boxed__path.dp-is-drawing { animation: dp-letter-boxed-draw-line 256ms linear var(--dp-letter-boxed-draw-delay, 0ms) both; } @keyframes dp-letter-boxed-draw-line { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } } .dp-letter-boxed__node circle { fill: #fff; stroke: #afb8ba; stroke-width: 3; } .dp-letter-boxed__node.dp-is-used circle { fill: var(--dp-letter-boxed-node-color); stroke: var(--dp-letter-boxed-node-color); } .dp-letter-boxed__node.dp-is-coloring circle { animation: dp-letter-boxed-color-node 80ms ease-out var(--dp-letter-boxed-node-delay, 0ms) both; } @keyframes dp-letter-boxed-color-node { from { fill: var(--dp-letter-boxed-node-from-color); stroke: var(--dp-letter-boxed-node-from-color); } to { fill: var(--dp-letter-boxed-node-color); stroke: var(--dp-letter-boxed-node-color); } } @media (prefers-reduced-motion: reduce) { .dp-letter-boxed__path.dp-is-drawing, .dp-letter-boxed__node.dp-is-coloring circle { animation: none; } } .dp-letter-boxed__node text { fill: #172021; font-size: 16px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; } .dp-letter-boxed__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 34px; font-size: 14px; } .dp-letter-boxed__legend span { display: inline-flex; align-items: center; gap: 5px; } .dp-letter-boxed__legend i, .dp-letter-boxed__answer-dot { width: 9px; height: 9px; flex: 0 0 auto; border: 1px solid #172021; border-radius: 50%; background: var(--dp-letter-boxed-color); } .dp-letter-boxed__solution { min-width: 0; } .dp-letter-boxed__answers { display: flex; flex-direction: column; } .dp-letter-boxed__answer { position: relative; padding: 12px 14px; border: 1px solid var(--theme-border); border-radius: 7px; background: white; } .dp-letter-boxed__answer:has(.dp-letter-boxed__answer-tile.dp-is-revealed) { border-color: color-mix(in srgb, var(--dp-letter-boxed-color) 35%, #dce5e9); background: color-mix(in srgb, var(--dp-letter-boxed-color) 25%, white); } .dp-letter-boxed__answer-heading { display: flex; min-width: 0; padding-right: 90px; align-items: center; gap: 6px; } .dp-letter-boxed__word-label { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; } .dp-letter-boxed__answer-heading small { font-size: 14px; } .dp-letter-boxed__answer-toggle { position: absolute; top: 12px; right: 14px; display: inline-flex; width: auto; min-width: 76px; height: 36px; padding-inline: var(--dp-spacing-base); align-items: center; justify-content: center; gap: 4px; border: 1px solid #299493; border-radius: 6px; background: #299493; color: #fff; font-size: 14px; } @media (min-width: 834px) { .dp-letter-boxed__answer-toggle { padding-inline: var(--dp-spacing-base); } } .dp-letter-boxed__answer-toggle[aria-pressed="true"] { border-color: #647477; background: transparent; color: var(--title); } .dp-letter-boxed__tiles { display: flex; flex-wrap: wrap; margin-top: 9px; padding-top: 6px; } .dp-letter-boxed__answer-tile { position: relative; } .dp-letter-boxed__answer-tile:not(.dp-is-revealed) { color: transparent; } .dp-letter-boxed__answer-tile:not(.dp-is-revealed)::after { position: absolute; inset: 0; display: grid; place-items: center; color: #0f172a; content: "?"; } .dp-letter-boxed__answer-toggle:focus-visible, .dp-letter-boxed button:focus-visible { outline: 2px solid #299795; outline-offset: 2px; } .dp-letter-boxed__connector { min-height: 30px; margin-left: 20px; padding: 8px 14px; border-left: 3px solid var(--dp-letter-boxed-color); font-size: 16px; } .dp-letter-boxed__connector-label { color: var(--subtitle); } .dp-letter-boxed__connector-letter { color: var(--title); font-size: 16px; font-weight: 600; } .dp-letter-boxed__possibilities { margin-top: 18px; padding-top: 18px; border-top: 1px solid #cfd5d6; } .dp-letter-boxed__possibilities-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; } .dp-letter-boxed__possibilities h3 { font-size: 32px; font-weight: 600; } .dp-letter-boxed__possibilities p { margin-top: 2px; font-size: 16px; } .dp-letter-boxed__tabs { display: flex; flex: 0 0 auto; padding: 8px; border-radius: 999px; background: #f0f0f0; } .dp-letter-boxed__tabs button { min-width: 72px; height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; font-size: 16px; } .dp-letter-boxed__tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 8%); } .dp-letter-boxed__solutions-select { position: relative; display: none; } .dp-letter-boxed__solutions-trigger { position: relative; display: flex; width: 180px; height: 44px; align-items: center; justify-content: center; gap: 8px; padding-inline: 16px; border: 1px solid #8d9b9e; border-radius: 999px; background: #fff; color: var(--title); cursor: pointer; font-size: 14px; font-weight: 500; } .dp-letter-boxed__solutions-trigger:focus-visible { outline: 2px solid #299493; outline-offset: 2px; } .dp-letter-boxed__solutions-chevron { width: 18px; height: 18px; color: #6b7280; transition: transform 160ms ease; } .dp-letter-boxed__solutions-chevron.dp-is-open { transform: rotate(180deg); } .dp-letter-boxed__solutions-menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 180px; padding: 6px; border: 1px solid #8d9b9e; border-radius: 16px; background: #fff; box-shadow: 0 18px 36px rgb(28 37 37 / 16%); } .dp-letter-boxed__solutions-option { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; padding-inline: 12px; border: 0; border-radius: 12px; background: transparent; color: var(--title); cursor: pointer; font-size: 14px; font-weight: 500; } .dp-letter-boxed__solutions-option:hover { background: #f0f7f7; } .dp-letter-boxed__solutions-option[aria-selected="true"] { background: #eaf4f4; color: #1f7776; } .dp-letter-boxed__solutions-option:focus-visible { outline: 2px solid #299493; outline-offset: -2px; } .dp-letter-boxed__chains { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; } .dp-letter-boxed__chain { min-width: 0; padding: 12px 14px; border: 1px solid #dde2e3; border-radius: 7px; background: #fff; box-shadow: 0 3px 12px rgb(15 23 42 / 4%); } .dp-letter-boxed__chain-heading { display: flex; align-items: center; gap: 9px; } .dp-letter-boxed__chain-bar { width: 4px; height: 20px; flex: 0 0 auto; border-radius: 999px; background: #172525; } .dp-letter-boxed__chain-heading p { font-size: 16px; font-weight: 600; } .dp-letter-boxed__chain-words { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-bottom: 7px; border-bottom: 1px solid #d5d9da; overflow-x: visible; } .dp-letter-boxed__chain-words:last-child { border-bottom: 0; } .dp-letter-boxed__chain-words strong { font-size: 14px; font-weight: 500; white-space: nowrap; } .dp-letter-boxed__chain-words span { font-size: 20px; font-weight: 300; } @media (min-width: 768px) { .dp-letter-boxed__title { font-size: 22px; } .dp-letter-boxed__intro p { font-size: 13px; } } @media (max-width: 919px) { .dp-letter-boxed { margin-top: 20px; padding-top: 0; } .dp-letter-boxed__intro { display: block; margin-bottom: 12px; } .dp-letter-boxed__title { font-size: 18px; } .dp-letter-boxed__desktop-actions { display: none; } .dp-letter-boxed__content { display: flex; flex-direction: column; gap: 12px; } .dp-letter-boxed__board-wrap { width: 100%; min-height: 0; padding: 32px; } .dp-letter-boxed__board { width: 100%; } .dp-letter-boxed__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; } .dp-letter-boxed__solution { width: 100%; } .dp-letter-boxed__answer { padding: 10px; } .dp-letter-boxed__possibilities { margin-top: 12px; padding-top: 14px; } .dp-letter-boxed__possibilities-heading { flex-direction: column; align-items: center; gap: 10px; text-align: center; } .dp-letter-boxed__tabs { padding: 6px; } .dp-letter-boxed__tabs button { min-width: 64px; height: 30px; font-size: 14px; } .dp-letter-boxed__chains { gap: 8px; } .dp-letter-boxed__chain { padding: 10px; } } @media (max-width: 767px) { .dp-letter-boxed__answer-heading { padding-right: 0; } .dp-letter-boxed__answer-toggle { position: static; display: flex; width: max-content; margin: 10px 0 0 auto; } .dp-letter-boxed__possibilities h3 { font-size: 20px; } .dp-letter-boxed__possibilities p { font-size: 14px; } .dp-letter-boxed__tabs { display: none; } .dp-letter-boxed__solutions-select { display: block; } } .dp-letter-boxed__chains[hidden] { display: none; } .dp-letter-boxed__chain-list { max-height: 240px; overflow-y: auto; }
