/* Scoped entry layout: keep the choices visible inside the safe mobile viewport. */
.page-entry * { box-sizing: border-box; }
html.page-entry, body.page-entry { margin: 0; color: #071c43; font-family: var(--font-system); }
body.page-entry .phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--page-max-width);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: auto;
  overflow: hidden;
  padding: max(20px, env(safe-area-inset-top)) 15px max(16px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 90% 15%, #c5dfff 0, transparent 55%), #e9f1fe;
}
.entry-header { display: flex; align-items: center; flex: none; min-height: 44px; }
.entry-header .brand { width: 140px; text-decoration: none; }
.page-entry svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.entry-hero { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; text-align: center; margin-top: 12px; }
.entry-art-stage { position: relative; isolation: isolate; flex: 0 1 auto; min-height: 0; height: max(100px, calc(min(100vw, 430px) / 1.1 - 26px)); margin-inline: -15px; }
.entry-art-stage::before { content: ""; position: absolute; z-index: -1; inset: -10px 0 -8px; background: url("images/entry/hero-backdrop.png") center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(transparent, #000 13%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 13%, #000 80%, transparent); }
.entry-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.entry-hero h1 { flex: none; margin: 12px 0 8px; font-size: clamp(23px, 6.5vw, 28px); line-height: 1.35; font-weight: 800; letter-spacing: -.6px; }
.entry-hero > p { flex: none; margin: 0; color: #4b6c94; font-size: 13px; line-height: 1.6; }
.entry-options { flex: none; margin-top: 20px; padding: 14px 14px 12px; border: 1px solid #fff; border-radius: 18px; background: #ffffff30; box-shadow: 0 10px 25px #246dd412, inset 0 0 0 1px #ffffff44; }
.entry-action { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 16px; border-radius: 12px; text-decoration: none; font-size: 18px; font-weight: 700; }
.entry-action-primary { color: white; border: 1px solid white; background: linear-gradient(90deg, #1f74ed, #358cf7, #56a8ff); box-shadow: 0 8px 18px #247de526; }
.entry-action-secondary { color: #0768e7; border: 1px solid #3885cb; background: #ffffff70; margin-top: 12px; }
.entry-action .entry-arrow { margin-left: auto; }
.entry-options p { text-align: center; font-size: 12px; color: #4b6c94; margin: 5px 0 0; line-height: 1.5; }
.entry-footer { flex: none; text-align: center; margin-top: 20px; font-size: 12px; line-height: 1.6; }
.entry-footer a { color: #4b6c94; text-decoration: none; }
.entry-service { position: absolute; z-index: 2; right: 10px; top: 31%; display: flex; flex-direction: column; align-items: center; width: 64px; color: #14539c; text-decoration: none; font-size: 11px; line-height: 1.5; font-weight: 500; }
.entry-service img { display: block; width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 4px 7px #1968b52b); }
.entry-service span { padding: 2px 7px; border: 1px solid #ffffffcc; border-radius: 12px; background: #ffffffb8; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.page-entry a:focus-visible { outline: 3px solid #145de7; outline-offset: 3px; }
.entry-action:hover { filter: brightness(1.04); }
.entry-action:active { transform: translateY(1px); }
@media (max-width: 359px) {
  .entry-hero h1 { font-size: 23px; }
  .entry-hero > p { font-size: 11px; }
  .entry-header .brand { width: 130px; }
}
@media (max-height: 650px) {
  body.page-entry .phone { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .entry-hero { margin-top: 4px; }
  .entry-hero h1 { margin-top: 6px; margin-bottom: 5px; }
  .entry-options { margin-top: 12px; padding-block: 10px; }
  .entry-footer { margin-top: 10px; }
  .entry-service { top: 25%; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body.page-entry .phone { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 40px minmax(0, 1fr) 20px; gap: 6px 18px; }
  .entry-header { grid-column: 1 / -1; min-height: 0; }
  .entry-hero { grid-column: 1; grid-row: 2 / 4; margin: 0; height: 100%; }
  .entry-hero h1 { font-size: 20px; }
  .entry-hero > p { font-size: 10px; }
  .entry-art-stage { flex: 1; height: 0; }
  .entry-options { grid-column: 2; grid-row: 2; align-self: center; margin: 0; }
  .entry-footer { grid-column: 2; margin: 0; font-size: 10px; }
  .entry-service { top: 7px; right: 15px; width: auto; flex-direction: row; gap: 3px; }
  .entry-service img { width: 36px; height: 36px; }
}

/* The icon and label drift as one draggable link; JS keeps it in bounds. */
.entry-service { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; }
.entry-service img { pointer-events: none; }
.entry-service.is-dragging { cursor: grabbing; }
