:root {
  --sky: #76d9ff;
  --sky-deep: #27a9f2;
  --grass: #62c96b;
  --leaf: #2eab6d;
  --sun: #ffd765;
  --pink: #ff86bd;
  --coral: #ff8c6b;
  --ink: #25405f;
  --muted: #64748b;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(37, 64, 95, 0.13);
  --shadow: 0 18px 40px rgba(34, 80, 130, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft JhengHei", "PingFang TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #79dcff 0%, #c7f3ff 48%, #dff9dc 49%, #f7fff5 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sky-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  width: 124px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 32px -14px 0 10px rgba(255, 255, 255, 0.82), 70px 0 0 2px rgba(255, 255, 255, 0.78);
}

.cloud-one {
  top: 90px;
  left: 8vw;
}

.cloud-two {
  top: 150px;
  right: 12vw;
  transform: scale(0.78);
}

.hill {
  position: absolute;
  bottom: -130px;
  width: 520px;
  height: 260px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(145deg, #64c75f, #2fb174);
}

.hill-one {
  left: -90px;
}

.hill-two {
  right: -110px;
  bottom: -150px;
  background: linear-gradient(145deg, #ffe071, #6fd067 45%, #38b978);
}

.town {
  position: absolute;
  bottom: 0;
  width: 170px;
  height: 74px;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(90deg, transparent 16px, rgba(255, 255, 255, 0.5) 16px 32px, transparent 32px 54px, rgba(255, 255, 255, 0.5) 54px 70px, transparent 70px),
    linear-gradient(180deg, #ffb45f 0 42%, #5ab0df 42%);
  box-shadow: inset 0 9px 0 rgba(255, 255, 255, 0.45);
}

.town::before {
  content: "";
  position: absolute;
  left: 0;
  top: -24px;
  width: 100%;
  height: 35px;
  clip-path: polygon(0 80%, 18% 24%, 36% 80%, 54% 24%, 72% 80%, 90% 24%, 100% 80%);
  background: #ff7f75;
}

.town-one {
  left: 9vw;
}

.town-two {
  right: 10vw;
  width: 138px;
  transform: scale(0.9);
}

.site-header {
  width: min(1120px, calc(100% - 28px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(100%, 520px);
}

.brand-badge {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 2px;
  border: 3px solid #fff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 0 rgba(43, 111, 154, 0.14);
  overflow: hidden;
}

.brand-badge img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.brand-logo {
  display: block;
  width: min(410px, calc(100vw - 150px));
  height: auto;
  object-fit: contain;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  overflow: hidden;
}

.nav-links a,
.button,
.mini-button,
.filter-button,
.style-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-links a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  color: #40617f;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.nav-links a.active {
  color: #fff;
}

.nav-links a:hover {
  color: #1d77a8;
}

.nav-links a.nav-pending {
  color: #fff;
}

.nav-active-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--nav-pill-width, 0px);
  height: var(--nav-pill-height, 0px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-deep), #33c8b4);
  box-shadow: 0 8px 18px rgba(39, 169, 242, 0.24);
  transform: translate3d(var(--nav-pill-x, 0px), var(--nav-pill-y, 0px), 0);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), width 260ms cubic-bezier(0.2, 0.8, 0.2, 1), height 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

main {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 30px;
  min-height: calc(100vh - 124px);
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #1579ad;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.8rem);
}

.hero-text,
.muted {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff8e5e, #ff69ad);
  box-shadow: 0 10px 0 rgba(206, 88, 98, 0.2);
}

.button.secondary {
  color: #275b80;
  background: #fff;
  box-shadow: 0 10px 0 rgba(58, 135, 186, 0.14);
}

.button:hover,
.mini-button:hover,
.filter-button:hover,
.style-button:hover,
.symbol-chip:hover,
.nickname-item:hover {
  transform: translateY(-2px);
}

.hero-phone {
  position: relative;
  padding: 18px;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(160deg, #a9f1ff, #fef2a4 54%, #b2ed8e);
  box-shadow: 0 24px 50px rgba(43, 111, 154, 0.2);
}

.phone-top {
  display: flex;
  gap: 7px;
}

.phone-top span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.sample-name {
  margin: 38px 0 20px;
  padding: 20px 14px;
  border: 3px solid #fff;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #3a8ee6, #38c9b0);
  box-shadow: 0 10px 0 rgba(15, 103, 139, 0.16);
  text-align: center;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 900;
}

.sample-grid,
.category-track,
.recent-list,
.filter-list,
.favorite-list,
.symbol-grid,
.style-tabs,
.nickname-list,
.alphabet-list {
  display: grid;
  gap: 10px;
}

.sample-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-band,
.tool-layout,
.generator-shell,
.alphabet-tool,
.alphabet-board {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-heading {
  margin-bottom: 18px;
}

.category-track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  min-height: 132px;
  padding: 18px;
  border: 2px solid #fff;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #eaffff);
  box-shadow: 0 9px 0 rgba(57, 133, 184, 0.1);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.category-card span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1.3fr);
  align-items: start;
  gap: 18px;
}

.recent-list {
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.empty-state {
  padding: 18px;
  border: 2px dashed rgba(48, 108, 152, 0.24);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}



.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.resource-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 25px;
  color: #25405f;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 10px 0 rgba(58, 135, 186, 0.12), 0 6px 16px rgba(37, 64, 95, 0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-button::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.resource-button:hover::before {
  left: 100%;
}

.resource-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 0 rgba(58, 135, 186, 0.16), 0 10px 22px rgba(37, 64, 95, 0.16);
}

.resource-button span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: rgba(37, 64, 95, 0.78);
  font-size: 0.9rem;
  line-height: 1;
}

.resource-button.coin {
  background: linear-gradient(135deg, #fffacd 0%, #fff8dc 52%, #ffe4b5 100%);
}

.resource-button.coin span {
  background: #ff7a00;
}

.resource-button.fish {
  background: linear-gradient(135deg, #dff7ff 0%, #c6f1ff 50%, #baf4e6 100%);
}

.resource-button.fish span {
  background: #0ea5e9;
}

.resource-button.card {
  background: linear-gradient(135deg, #ffe5f1 0%, #ffd6e8 48%, #e6dcff 100%);
}

.resource-button.card span {
  background: #a855f7;
}
.seo-copy {
  display: grid;
  gap: 14px;
}

.seo-copy p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
}

.keyword-list li {
  padding: 8px 12px;
  border: 1px solid rgba(48, 108, 152, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.page-title {
  padding: 42px 0 12px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.control-panel,
.generator-panel,
.nickname-board,
.alphabet-board {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
}

.control-panel,
.generator-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span,
.panel-label {
  margin: 0 0 8px;
  color: #315878;
  font-size: 0.85rem;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 2px solid rgba(62, 129, 178, 0.16);
  border-radius: 18px;
  color: var(--ink);
  outline: 0;
  background: #fff;
}

.search-box input:focus {
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 4px rgba(39, 169, 242, 0.14);
}

.filter-list,
.style-tabs {
  grid-template-columns: 1fr;
}

.filter-button,
.style-button {
  width: 100%;
  padding: 12px 13px;
  color: #355a76;
  background: #fff;
  text-align: left;
}

.filter-button.active,
.style-button.active {
  color: #fff;
  background: linear-gradient(135deg, #43b9f2, #4fce7d);
  box-shadow: 0 8px 0 rgba(42, 154, 154, 0.14);
}

.favorite-list {
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: #315878;
  font-weight: 900;
}

.mini-button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--coral));
}

.symbol-sections {
  display: grid;
  gap: 18px;
}

.symbol-section {
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(239, 255, 244, 0.82));
}

.symbol-section h2 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.symbol-grid {
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
}

.symbol-chip,
.favorite-chip,
.nickname-item {
  border: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 7px 0 rgba(50, 106, 154, 0.1);
}

.symbol-chip {
  position: relative;
  min-height: 62px;
  padding: 10px 8px;
  border-radius: 18px;
  font-size: 1.35rem;
  font-weight: 900;
}

.symbol-chip .favorite-toggle {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #7890a5;
  background: #eef8ff;
  font-size: 0.82rem;
}

.symbol-chip.favorited .favorite-toggle {
  color: #fff;
  background: #ff7eb6;
}

.favorite-chip {
  min-height: 46px;
  border-radius: 15px;
  font-size: 1.18rem;
}

.generator-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
}

.alphabet-tool {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.nickname-board {
  padding: 18px;
}

.nickname-list,
.alphabet-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.nickname-item,
.alphabet-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  border-radius: 20px;
  font-size: 1.18rem;
  font-weight: 900;
  word-break: break-word;
}

.alphabet-board {
  background: rgba(255, 255, 255, 0.9);
}

.alphabet-item {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #fff, #eefcff);
  box-shadow: 0 7px 0 rgba(50, 106, 154, 0.1);
  text-align: left;
}

.alphabet-style-name {
  color: #51708a;
  font-size: 0.78rem;
  font-weight: 900;
}

.alphabet-value {
  font-size: 1.25rem;
  line-height: 1.35;
}

.tiny-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #279fe8, #38c97a);
  box-shadow: 0 14px 34px rgba(25, 95, 144, 0.24);
  font-weight: 900;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.page-iris {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6edcff, #fff08c 42%, #ff8fc1 68%, #53d889);
  clip-path: circle(var(--iris-size, 0) at var(--iris-x, 50%) var(--iris-y, 50%));
  opacity: 0.98;
  pointer-events: none;
  transition: clip-path 420ms cubic-bezier(0.2, 0.82, 0.24, 1);
  will-change: clip-path;
}

.iris-loader {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, #ff78b5, #ffe36a, #55d982, #41c8f4, #a98bff, #ff78b5);
  box-shadow: 0 18px 36px rgba(40, 96, 130, 0.22);
  animation: iris-wheel-spin 780ms linear infinite;
  will-change: transform;
}

.iris-loader::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.62);
}

@keyframes iris-wheel-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-iris {
    display: none;
    transition: none;
  }

  .iris-loader {
    animation: none;
  }
}

@media (max-width: 840px) {
  .site-header,
  .hero,
  .tool-layout,
  .generator-shell,
  .alphabet-tool,
  .split-band {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    justify-content: stretch;
  }

  .nav-links a {
    flex: 1;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .category-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-panel,
  .generator-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  main,
  .site-header {
    width: min(100% - 18px, 1120px);
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: min(330px, calc(100vw - 112px));
  }

  .nav-links a {
    min-height: 50px;
    padding: 0 8px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  .section-band,
  .tool-layout,
  .generator-shell,
  .alphabet-tool {
    padding: 14px;
    border-radius: 18px;
  }

  .category-track {
    grid-template-columns: 1fr;
  }

  .sample-grid,
  .symbol-grid,
  .nickname-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alphabet-list {
    grid-template-columns: 1fr;
  }

  .nickname-item,
  .alphabet-item {
    min-height: 64px;
    font-size: 1rem;
  }

  .tiny-note {
    text-align: left;
  }
}

.site-footer {
  margin: 28px auto 0;
  padding: 20px 16px 28px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}