:root {
  color-scheme: light;
  font-family: "Yu Gothic UI", "Meiryo", sans-serif;
  color: #2f261f;
  background: #fffaf4;
}

body {
  margin: 0;
  background-color: #fffaf4;
  background-image: url("../img/haikei.png");
  background-repeat: repeat;
}

.pattern-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.pattern-card {
  padding: 28px;
  border: 1px solid #ead9c8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(89, 54, 26, 0.09);
}

h1, h2 { margin-top: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { margin-top: 28px; font-size: 1.15rem; }
p { line-height: 1.8; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.status-box {
  padding: 16px;
  border-radius: 12px;
  background: #fff5e8;
}

.status-box strong { display: block; margin-bottom: 8px; }

.pattern-launch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.pattern-launch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d96b19;
  border-radius: 14px;
  color: #5e3214;
  background: #fffaf4;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(89, 54, 26, 0.08);
}

.pattern-launch-card:hover { background: #fff1df; }
.pattern-launch-card img { width: 58px; height: 58px; object-fit: contain; }
.pattern-launch-card span { display: grid; gap: 5px; }
.pattern-launch-card strong { font-size: 1.15rem; }
.pattern-launch-card small { color: #775b45; line-height: 1.5; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

button, .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #c9651b;
  border-radius: 999px;
  color: #7b3509;
  background: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button.primary {
  color: #fff;
  background: #d96b19;
}

#transferStatus {
  min-height: 1.8em;
  color: #6d5a4a;
}

#transferStatus[data-kind="success"] { color: #176b3a; }
#transferStatus[data-kind="error"] { color: #a3261f; }

.note {
  padding: 14px 16px;
  border-left: 4px solid #db8c4d;
  background: #fffaf4;
}
