/* Shared card layout with the supplied logo's cyan, blue and violet palette. */
:root {
  --cyan: #0eaabd;
  --blue: #087b96;
  --violet: #60518a;
  --ink: #263343;
  --muted: #627080;
  --line: #e2eaf0;
  --surface: #fafafa;
  --accent-soft: #e8f5f7;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  color: var(--ink);
  background: #091522;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background-image:
    radial-gradient(60vmax 60vmax at 0 0, rgb(14 170 189 / 28%), transparent 60%),
    radial-gradient(55vmax 55vmax at 100% 100%, rgb(96 81 138 / 35%), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.04' stroke-width='2'%3E%3Ccircle cx='28' cy='34' r='9'/%3E%3Cpath d='m97 24 14 10-14 10Zm-64 82 5 10 11 2-8 8 2 11-10-5-10 5 2-11-8-8 11-2Z'/%3E%3Ccircle cx='124' cy='120' r='8'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 28px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgb(0 0 0 / 45%), 0 0 0 1px rgb(255 255 255 / 6%);
  text-align: center;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.brand-logo { display: block; width: 100%; max-width: 250px; height: auto; margin: 0 auto; }
.badge { display: inline-block; margin-top: 20px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: #216780; font-size: 12px; font-weight: 700; }
h1 { margin: 14px 0 0; font-size: 28px; line-height: 1.3; letter-spacing: -.03em; word-break: keep-all; }
h1 em { font-style: normal; color: var(--blue); }
.guide-date { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.lead { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; word-break: keep-all; }

/* The main visit link and its copy button are separate, accessible controls. */
.links { display: grid; gap: 12px; margin-top: 26px; }
.link-row { display: flex; border-radius: 18px; overflow: hidden; }
.destination-link { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 18px; color: inherit; text-align: left; text-decoration: none; }
.link-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.link-icon svg { width: 23px; height: 23px; }
.link-text { min-width: 0; }
.link-label { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.link-title { display: block; margin-top: 2px; font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; white-space: nowrap; }
.domain-number { font-weight: 900; }
.link-arrow { margin-left: auto; flex: none; font-size: 20px; }
.primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 12px 28px rgb(41 104 148 / 24%); }
.primary .link-icon { background: rgb(255 255 255 / 18%); }
.primary .destination-link:hover { background: rgb(0 0 0 / 10%); }
.secondary { border: 1.5px solid var(--line); background: #fff; }
.secondary:hover { border-color: #b7dce5; background: #f3fafb; }
.secondary .link-icon { background: var(--accent-soft); color: var(--blue); }
.secondary .link-label { color: var(--muted); }
.secondary .link-arrow { color: var(--violet); }
.copy-button { flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 3px; border: 0; border-left: 1px solid rgb(255 255 255 / 20%); background: rgb(0 0 0 / 14%); color: #fff; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.copy-button:hover { background: rgb(0 0 0 / 24%); }
.copy-button svg { width: 18px; height: 18px; }
.copy-button span { white-space: nowrap; }
.destination-link:focus-visible, .copy-button:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; }

/* Compact guidance keeps the card close to the reference layout. */
.link-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.notice { display: flex; gap: 10px; margin: 20px 0 0; padding: 14px 16px; border-radius: 14px; background: #eef3f7; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: left; word-break: keep-all; }
.notice svg { flex: none; width: 18px; height: 22px; margin-top: 2px; color: var(--blue); }
.notice strong { color: var(--ink); }
.card-signature { margin-top: 22px; color: #6f7b8e; font-size: 10px; letter-spacing: .12em; }
.site-footer { color: #b0bece; font-size: 12px; line-height: 1.8; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Copy feedback is announced without shifting the card. */
.copy-feedback { position: fixed; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 13px; text-align: center; line-height: 1.6; box-shadow: 0 8px 28px rgb(0 0 0 / 30%); transform: translateX(-50%); opacity: 0; pointer-events: none; }
.copy-feedback.is-visible { opacity: 1; }
.error-code { margin: 26px 0 0; color: var(--blue); font-size: 54px; font-weight: 800; }

@media (max-width: 420px) {
  body { padding: 28px 16px; gap: 22px; }
  .card { padding: 30px 20px 24px; border-radius: 24px; }
  h1 { font-size: 24px; }
  .destination-link { padding: 14px 12px; gap: 9px; }
  .link-icon { width: 34px; height: 38px; }
  .link-title { font-size: 17px; }
  .copy-button { width: 46px; font-size: 9px; }
}

@media (max-width: 359px) {
  .card { padding-right: 16px; padding-left: 16px; }
  .primary .link-icon { display: none; }
  .link-title { font-size: 16px; }
}
