.card { --on-background: #2c4678; --on-background-secondary: #455e91; --background: #f3f3fa; position: relative; height: 100%; min-width: 0; } .content { position: relative; margin-top: 32px; justify-content: flex-start; } .star { position: absolute; right: -95px; top: -160px; width: 240px; height: 240px; color: #d8e2ff; transform: rotate(12deg); pointer-events: none; } .layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; position: relative; z-index: 1; } .controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-width: 0; > * { min-width: 0; } } .tryHere { --hint-arrow-width: 100px; --hint-arrow-space: 112px; grid-column: 1 / -1; padding-bottom: 52px; font-size: 1.75rem; font-weight: 700; line-height: 1.4; } .tryHereEnd { position: relative; display: inline-block; padding-right: var(--hint-arrow-space); white-space: nowrap; } .tryArrow, .tryArrowCompact { position: absolute; width: var(--hint-arrow-width); height: auto; top: 0.35em; right: 0; pointer-events: none; } .tryArrowCompact { display: none; } .results { display: flex; flex-direction: column; gap: 20px; min-width: 0; } .directions { display: flex; flex-direction: column; gap: 10px; } .directionLabel { color: var(--on-background-secondary); font-size: 0.85rem; font-weight: 700; } .chips { display: flex; flex-wrap: wrap; gap: 8px; } .chips > div { max-width: 100%; } .chip { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 18px; border: 0; border-radius: 40px; background: #d8e2ff; color: #2c4678; font: inherit; font-size: 0.9rem; font-weight: 700; text-align: left; overflow-wrap: anywhere; transition: background 0.25s ease, color 0.25s ease; &:hover { background: #aec6ff; } } .selectedChip { background: #2c4678; color: #fff; &:hover { background: #455e91; } } .selectedDot { width: 6px; height: 6px; border-radius: 50%; background: #ddf9d0; flex-shrink: 0; } .chip:focus-visible, .message button:focus-visible { outline: 3px solid #2c4678; outline-offset: 3px; } .note, .partial { font-size: 0.85rem; line-height: 1.6; color: var(--on-background-secondary); } .note { grid-column: 1 / -1; } .board { background: #fff; border-radius: 24px; padding: 24px; align-self: start; min-width: 0; width: 100%; } .boardHeader { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; color: var(--on-background-secondary); font-size: 0.75rem; font-weight: 600; } .schedule { background: #ddf9d0; color: #254817; padding: 8px 12px; border-radius: 40px; } .departures { list-style: none; margin-top: 12px; } .departure { display: grid; grid-template-columns: minmax(44px, max-content) minmax(0, 1fr) max-content; align-items: center; gap: 16px; padding: 18px 0; animation: departureIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; & + & { border-top: 1px solid var(--divider); } } .routeNumber { min-width: 44px; min-height: 44px; padding: 10px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: #d8e2ff; font-size: 1.05rem; font-weight: 800; } .direction { font-size: 0.95rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; } .time { text-align: right; display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; strong { font-size: 1.6rem; font-weight: 800; } span { font-size: 0.8rem; color: var(--on-background-secondary); } } .boardContent { animation: departureIn 0.3s ease both; } .loadingDots { display: flex; gap: 7px; i { width: 9px; height: 9px; border-radius: 50%; background: #aec6ff; animation: dotBounce 1.1s ease-in-out infinite; } i:nth-child(2) { animation-delay: 0.12s; } i:nth-child(3) { animation-delay: 0.24s; } } @keyframes departureIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } @keyframes dotBounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } } .message { min-height: 200px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; font-size: 1rem; line-height: 1.6; color: var(--on-background-secondary); button { border: 0; border-radius: 16px; padding: 14px 18px; background: #d8e2ff; color: var(--on-background); font: inherit; font-weight: 700; cursor: none; } } @media (max-width: 730px) { .controls { gap: 16px; } .tryHere { --hint-arrow-width: 95px; --hint-arrow-space: 43px; min-height: 72px; padding-bottom: 64px; } .tryArrow { display: none; } .tryArrowCompact { display: block; } } @media (max-width: 500px) { .controls { grid-template-columns: minmax(0, 1fr); } .card { padding: 24px; } .board { padding: 16px; } .departure { gap: 10px; } .direction { font-size: 0.85rem; } .time strong { font-size: 1.35rem; } } @media (prefers-reduced-motion: reduce) { .departure, .boardContent, .loadingDots i { animation: none; } .chip { transition: none; } }