.hayate-game-article-button {
  border-color: #6f1731;
  color: #6f1731;
  background: #fff8fa;
}

.hayate-game-article-button:hover,
.hayate-game-article-button:focus-visible {
  background: #f7e9ee;
}

body.hayate-article-editor-open {
  overflow: hidden;
}

.hayate-article-overlay[hidden] {
  display: none;
}

.hayate-article-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding: 24px 14px;

  overflow-y: auto;

  background: rgba(20, 8, 12, 0.66);
  backdrop-filter: blur(3px);
}

.hayate-article-dialog {
  width: min(760px, 100%);
  margin: auto;

  border: 1px solid rgba(111, 23, 49, 0.18);
  border-radius: 22px;

  background: #ffffff;
  box-shadow: 0 24px 70px rgba(20, 8, 12, 0.28);

  overflow: hidden;
}

.hayate-article-dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;

  padding: 22px 22px 18px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #541126,
      #7c1d3a
    );
}

.hayate-article-eyebrow {
  margin: 0 0 4px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;

  opacity: 0.78;
}

.hayate-article-dialog h2 {
  margin: 0;

  font-size: 22px;
  line-height: 1.35;
}

.hayate-article-game-label {
  margin: 7px 0 0;

  font-size: 13px;
  line-height: 1.5;

  opacity: 0.9;
}

.hayate-article-close {
  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);

  font-size: 26px;
  line-height: 1;

  cursor: pointer;
}

.hayate-article-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  align-items: center;

  padding: 16px 22px 0;
}

.hayate-article-state {
  display: inline-flex;
  align-items: center;

  min-height: 28px;

  padding: 4px 10px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
}

.hayate-article-state.is-missing,
.hayate-article-state.is-loading {
  color: #555555;
  background: #f0f1f3;
}

.hayate-article-state.is-draft {
  color: #725500;
  background: #fff0b8;
}

.hayate-article-state.is-published {
  color: #176134;
  background: #dff4e7;
}

.hayate-article-state.is-error {
  color: #a12b2b;
  background: #fde4e4;
}

.hayate-article-updated {
  color: #666666;
  font-size: 12px;
}

.hayate-article-message {
  margin: 14px 22px 0;
  padding: 11px 13px;

  border-radius: 12px;

  font-size: 13px;
  line-height: 1.6;
}

.hayate-article-message.is-info {
  color: #36526c;
  background: #eef6fc;
}

.hayate-article-message.is-success {
  color: #176134;
  background: #e8f6ed;
}

.hayate-article-message.is-warning {
  color: #715000;
  background: #fff4c9;
}

.hayate-article-message.is-error {
  color: #9d2424;
  background: #fdeaea;
}

.hayate-article-form {
  display: grid;
  gap: 18px;

  padding: 20px 22px 118px;
}

.hayate-article-field {
  display: grid;
  gap: 7px;

  color: #2c2c2c;
  font-size: 14px;
  font-weight: 700;
}

.hayate-article-field > span {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hayate-article-field strong {
  color: #8a1635;
  font-size: 11px;
}

.hayate-article-field em {
  color: #777777;
  font-size: 11px;
  font-style: normal;
}

.hayate-article-field input,
.hayate-article-field textarea {
  width: 100%;

  box-sizing: border-box;

  border: 1px solid #d6d8dd;
  border-radius: 12px;

  padding: 11px 12px;

  color: #222222;
  background: #ffffff;

  font: inherit;
  font-weight: 500;
  line-height: 1.65;

  resize: vertical;
}

.hayate-article-field input:focus,
.hayate-article-field textarea:focus {
  outline: 3px solid rgba(111, 23, 49, 0.12);
  border-color: #7c1d3a;
}

.hayate-article-field small {
  justify-self: end;

  color: #777777;
  font-size: 11px;
  font-weight: 500;
}

.hayate-article-guidance {
  padding: 12px 14px;

  border-radius: 12px;

  color: #5b4c21;
  background: #fff8df;

  font-size: 12px;
  line-height: 1.65;
}

.hayate-article-guidance p {
  margin: 0;
}

.hayate-article-guidance p + p {
  margin-top: 4px;
}

.hayate-article-actions {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1210;

  width: min(716px, calc(100% - 56px));
  transform: translateX(-50%);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  padding: 12px;

  border: 1px solid rgba(111, 23, 49, 0.16);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(20, 8, 12, 0.18);
  backdrop-filter: blur(10px);
}

.hayate-article-actions[data-article-state="published"],
.hayate-article-actions[data-article-state="missing"] {
  grid-template-columns: 1fr;
}

.hayate-article-actions[data-article-state="published"]
#hayate-game-article-save,
.hayate-article-actions[data-article-state="missing"]
#hayate-game-article-publish {
  display: none;
}

.hayate-article-button {
  min-height: 46px;

  border: 0;
  border-radius: 12px;

  padding: 10px 14px;

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;
}

.hayate-article-button.is-secondary {
  color: #5c1730;
  background: #f3e4e9;
}

.hayate-article-button.is-primary {
  color: #ffffff;
  background: #6f1731;
}

.hayate-article-button:disabled,
.hayate-article-close:disabled,
.hayate-article-field input:disabled,
.hayate-article-field textarea:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.hayate-article-overlay.is-busy .hayate-article-dialog {
  cursor: progress;
}

@media screen and (max-width: 560px) {
  .hayate-article-overlay {
    padding: 0;
  }

  .hayate-article-dialog {
    min-height: 100dvh;

    border: 0;
    border-radius: 0;
  }

  .hayate-article-dialog-header {
    padding:
      max(18px, env(safe-area-inset-top))
      16px
      16px;
  }

  .hayate-article-state-row {
    padding:
      14px
      16px
      0;
  }

  .hayate-article-message {
    margin:
      12px
      16px
      0;
  }

  .hayate-article-form {
    padding:
      18px
      16px
      calc(
        108px +
        env(safe-area-inset-bottom)
      );
  }

  .hayate-article-actions {
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    transform: none;

    grid-template-columns:
      1fr 1fr;

    padding:
      10px
      16px
      calc(
        10px +
        env(safe-area-inset-bottom)
      );

    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .hayate-article-field textarea#hayate-game-article-body-input {
    min-height: 42dvh;
  }
}

.hayate-article-mvp-guidance {
  font-weight: 800;
}

.hayate-article-mvp-guidance.is-warning {
  color: #7b4c00;
}

.hayate-article-mvp-guidance.is-closed {
  color: #276038;
}

.hayate-article-public-link {
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid rgba(111, 23, 49, 0.24);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff8fa;
  color: #6f1731;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.hayate-article-public-link[hidden] {
  display: none;
}
