/* Independent V6 draft. Layout target: 390px. Local fonts only. */
html {
  color-scheme: light;
  background: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #1c2833;
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Source Han Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.page {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

h1,
h2,
h3 {
  color: #0B3A66;
  font-weight: 700;
  line-height: 1.45;
}

h1 {
  margin: 0;
  font-size: 26px;
}

h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

p {
  margin: 0 0 10px;
}

.brand {
  margin: 0 0 8px;
  color: #0B3A66;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.accent-rule {
  width: 48px;
  height: 4px;
  margin: 14px 0 12px;
  border: 0;
  background: #F4B000;
}

.draft-note {
  margin: 0;
  color: #5c6b7a;
  font-size: 14px;
}

.themes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.theme-card {
  padding: 14px 14px 14px 16px;
  background: #ffffff;
  border: 1px solid #e4ebf2;
  border-left: 4px solid #F4B000;
  border-radius: 12px;
}

.theme-card p:last-child {
  margin-bottom: 0;
}

.history {
  margin-top: 28px;
  padding: 16px;
  background: #fbf6ea;
  border: 1px dashed #b0893e;
  border-radius: 12px;
}

.history-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  color: #0B3A66;
  background: #F4B000;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.assumptions {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.equation {
  margin: 0 0 8px;
  padding: 8px 10px;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  background: #ffffff;
  border-radius: 8px;
}

.not-claim span {
  display: inline-block;
  margin-left: 6px;
  color: #0B3A66;
  font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
}

.smaller-example {
  margin: 12px 0;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
}

.example-label {
  margin-bottom: 4px;
  color: #0B3A66;
  font-size: 13px;
  font-weight: 700;
}

.no-guarantee,
.reward-status {
  font-weight: 700;
  color: #0B3A66;
}

.reward-status {
  margin-bottom: 0;
}

.share-panel,
.copy-blocks {
  margin-top: 28px;
}

.contract-link {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #1c2833;
  background: #f4f7fb;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

button,
.line-share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}

#copy-link-button,
.copy-block button {
  color: #ffffff;
  background: #0B3A66;
  border: 0;
}

#system-share-button {
  color: #0B3A66;
  background: #ffffff;
  border: 1px solid #0B3A66;
}

.line-share {
  color: #0B3A66;
  background: #F4B000;
  font-weight: 700;
  text-decoration: none;
}

button:focus-visible,
.line-share:focus-visible,
textarea:focus-visible {
  outline: 3px solid #F4B000;
  outline-offset: 2px;
}

.share-status,
.fallback-label {
  color: #5c6b7a;
  font-size: 14px;
}

.share-status {
  margin: 12px 0 8px;
}

.fallback-label {
  display: block;
  margin-bottom: 6px;
}

#share-fallback {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  color: #1c2833;
  background: #ffffff;
  border: 1px solid #c5d0dc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.copy-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copy-blocks > h2 {
  margin-bottom: 0;
}

.copy-block {
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e4ebf2;
  border-radius: 12px;
}

.copy-block .copy-text {
  margin-bottom: 12px;
}

.copy-block button {
  width: auto;
  min-width: 8em;
}

@media (min-width: 1280px) {
  .page {
    max-width: 1080px;
    padding: 48px 56px 72px;
  }

  .themes,
  .copy-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .copy-blocks > h2 {
    grid-column: 1 / -1;
  }

  .actions {
    flex-direction: row;
  }

  button,
  .line-share {
    width: auto;
    flex: 1;
  }
}

.demo-banner {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #fff8e8;
  border-left: 4px solid #F4B000;
}
.back-link { color: #0B3A66; }
