@font-face {
  font-family: "Rayman";
  src: url("fonts/rayman3.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,
body {
  min-height: 100%;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(
      90deg,
      #e98f9a 0 32px,
      #b8c3a0 32px 160px,
      #e98f9a 160px 215px,
      #b8bad3 215px 342px,
      #e98f9a 342px 396px,
      #efba82 396px 523px,
      #e98f9a 523px 578px,
      #c9b2d5 578px 705px,
      #e98f9a 705px 760px
    );
  color: #1b1b1b;
  font-family: "Rayman", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

:root {
  --content-left: 33px;
  --content-top: 18px;
  --placeholder-size: 193px;
  --placeholder-gap: 39px;
  font-size: 14px;
}

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

button,
select {
  font: inherit;
}

button {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.frame {
  width: min(1260px, calc(100vw - 70px));
  min-height: 625px;
  margin: 54px auto;
  background: #ffffff;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px 10px 28px;
  border-bottom: 0;
  background: #ffffff;
}

.page-heading {
  margin: 0;
  color: #000000;
  font-size: 1.125rem;
  font-weight: 400;
}

.login-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 103px;
  height: 29px;
  border: 1px solid #574d44;
  border-radius: 7px;
  background: #fbfffe;
  font-size: 1rem;
  cursor: pointer;
}

.login-button-user {
  min-width: 150px;
  padding: 0 12px 0 34px;
}

.login-avatar {
  position: absolute;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
}

.login-username {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: 223px minmax(0, 1fr);
  min-height: 575px;
}

.sidebar {
  border-right: 0;
  background: #ffffff;
  padding: 24px 0 0 29px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 103px;
  box-sizing: border-box;
  min-height: 29px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #000000;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  outline: none;
  box-shadow: none;
}

.sidebar-link-active {
  background: #bdb3ab;
  border-color: transparent;
  box-shadow: none;
}

.sidebar-link:focus,
.sidebar-link:active {
  outline: none;
  box-shadow: none;
}

.content {
  position: relative;
  padding: 14px 22px 28px 22px;
  min-height: 575px;
  overflow: hidden;
}

.content-view {
  position: absolute;
  inset: 14px 22px 28px 22px;
  visibility: hidden;
  pointer-events: none;
}

.content-view-active {
  visibility: visible;
  pointer-events: auto;
}

.view-grid {
  display: grid;
  grid-template-rows: 43px minmax(0, 1fr);
  height: 100%;
}

.content-view[data-view="commissions"] .view-grid {
  position: relative;
}

.content-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 14px 33px;
  height: 29px;
}

.toolbar-spacer {
  width: 155px;
  height: 29px;
}

.view-body {
  align-self: stretch;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 46px;
  scrollbar-color: #f45f77 transparent;
  scrollbar-width: thin;
}

.view-body::-webkit-scrollbar {
  width: 8px;
}

.view-body::-webkit-scrollbar-track {
  background: transparent;
}

.view-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #f45f77;
}

.view-body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.section-title {
  margin: 0;
  color: #000000;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 29px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, var(--placeholder-size));
  column-gap: var(--placeholder-gap);
  row-gap: 56px;
  padding: var(--content-top) var(--content-left) 0;
  justify-content: start;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 18px;
}

.post-card {
  display: block;
  width: var(--placeholder-size);
  border: 0;
  background: transparent;
  cursor: pointer;
  margin: 0;
  appearance: none;
  padding: 0;
}

.image-placeholder {
  position: relative;
  width: var(--placeholder-size);
  height: var(--placeholder-size);
  background: #e2dad4;
  overflow: visible;
}

.post-media {
  position: relative;
  width: var(--placeholder-size);
  height: var(--placeholder-size);
  overflow: visible;
}

.post-image {
  display: block;
  width: 100%;
  height: 100%;
  background: #e2dad4;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #c8c8ce;
  font-size: 1rem;
}

.placeholder-sun {
  position: absolute;
  top: 54px;
  right: 34px;
  width: 39px;
  height: 39px;
  border-radius: 999px;
  background: #b8b1a7;
}

.placeholder-mountain {
  position: absolute;
  bottom: 57px;
  background: #b8b1a7;
  clip-path: polygon(0% 100%, 40% 20%, 60% 54%, 76% 40%, 100% 100%);
}

.placeholder-mountain-large {
  left: 37px;
  width: 95px;
  height: 70px;
}

.placeholder-mountain-small {
  left: 69px;
  width: 65px;
  height: 52px;
}

.rating {
  display: flex;
  justify-content: center;
  gap: 0;
  line-height: 1;
}

.rating-overlay {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
}

.rating-overlay .star {
  width: 34px;
  height: 34px;
  transition: filter 140ms ease, transform 140ms ease;
}

.post-card:hover .rating-overlay .star,
.post-card:focus-visible .rating-overlay .star,
.comic-card:hover .rating-overlay .star,
.comic-card:focus-visible .rating-overlay .star {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)) brightness(1.08);
  transform: translateY(-2px);
}

.star {
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 0;
}

.star img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post-modal[hidden] {
  display: none;
}

.post-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 56px 0;
  overflow: hidden;
}

.post-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.post-modal-scroll {
  position: relative;
  width: min(840px, calc(100vw - 96px));
  max-height: calc(100vh - 112px);
  margin: 0 auto;
  overflow-y: auto;
  scrollbar-width: none;
  scrollbar-color: #d9d9d9 transparent;
}

.post-modal-scroll::-webkit-scrollbar {
  display: none;
}

.post-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 38% 62%;
  width: 100%;
  height: 518px;
  min-height: 0;
  margin: 0;
  background: #f8fffd;
  border: 1px solid #2f2a25;
  border-radius: 16px;
  overflow: hidden;
}

.post-modal-copy {
  padding: 28px 20px;
  overflow: hidden;
}

.post-modal-title {
  margin: 0 0 12px;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.post-modal-rating {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 1;
}

.post-modal-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  word-spacing: 8px;
}

.post-modal-episodes {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  max-height: 230px;
  overflow-y: auto;
  scrollbar-color: #f45f77 transparent;
  scrollbar-width: thin;
}

.post-modal-episodes::-webkit-scrollbar {
  width: 8px;
}

.post-modal-episodes::-webkit-scrollbar-track {
  background: transparent;
}

.post-modal-episodes::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #f45f77;
}

.post-modal-episodes::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.series-back-button {
  min-height: 26px;
  margin-top: 14px;
  border: 1px solid #574d44;
  border-radius: 7px;
  background: #badfe8;
  color: #1b1b1b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 0 8px;
}

.modal-episode {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid #cdbfa7;
  border-radius: 10px;
  background: #fbfffe;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 8px;
}

.modal-episode:hover,
.modal-episode:focus-visible {
  border-color: #574d44;
  background: #badfe8;
}

.modal-episode-thumb {
  width: 56px;
  height: 56px;
  background: #f0eadf;
  border-radius: 8px;
  overflow: hidden;
}

.modal-episode-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-episode h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 400;
}

.modal-episode p {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  word-spacing: 0;
}

.post-modal-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #f8fffd;
  border-radius: inherit;
  overflow: hidden;
  padding: 14px;
}

.post-image-large {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.post-modal-image .image-placeholder {
  width: 100%;
  height: 100%;
}

.post-modal-image .placeholder-sun {
  top: 29%;
  right: 19%;
  width: 20%;
  height: 20%;
}

.post-modal-image .placeholder-mountain {
  bottom: 28%;
}

.post-modal-image .placeholder-mountain-large {
  left: 19%;
  width: 49%;
  height: 34%;
}

.post-modal-image .placeholder-mountain-small {
  left: 43%;
  width: 27%;
  height: 25%;
}

.comic-reader {
  margin-top: 24px;
  padding: 24px;
  background: #f8fffd;
  border: 1px solid #2f2a25;
  border-radius: 14px;
}

.comic-reader-header,
.comic-reader-panel {
  display: block;
  width: min(720px, 100%);
  margin: 0 auto;
}

.comic-reader-header {
  border-radius: 8px 8px 0 0;
}

.comic-reader-panel {
  background: #ececeb;
  border-radius: 0;
}

.comic-reader-panel:last-child {
  border-radius: 0 0 8px 8px;
}

.comic-reader-empty {
  margin: 0;
  color: #808080;
  text-align: center;
}

.post-activity {
  min-height: 518px;
  margin-top: 42px;
  padding: 24px 10px;
  background: #f8fffd;
  border: 1px solid #2f2a25;
  border-radius: 14px;
}

.feedback-form {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 10px 18px;
  border-bottom: 1px solid #dccfb9;
}

.feedback-form[hidden] {
  display: none;
}

.feedback-form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.feedback-form textarea {
  width: 100%;
  border: 1px solid #cdbfa7;
  border-radius: 10px;
  background: #fbfffe;
  color: #1b1b1b;
  font: inherit;
  padding: 7px;
}

.feedback-stars {
  display: inline-flex;
  gap: 0;
  align-items: center;
}

.feedback-star-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  appearance: none;
  box-shadow: none;
  color: inherit;
}

.feedback-star-button:hover,
.feedback-star-button:active,
.feedback-star-button:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feedback-star-button:focus-visible {
  outline: 2px solid #1b1b1b;
  outline-offset: 2px;
}

.feedback-star-button .star {
  width: 28px;
  height: 28px;
}

.feedback-form textarea {
  min-height: 70px;
  resize: vertical;
}

.feedback-form button {
  justify-self: start;
  min-height: 30px;
  border: 1px solid #574d44;
  border-radius: 7px;
  background: #badfe8;
  cursor: pointer;
  font: inherit;
  padding: 0 12px;
}

.feedback-form .feedback-star-button,
.feedback-form .feedback-star-button:hover,
.feedback-form .feedback-star-button:active,
.feedback-form .feedback-star-button:focus {
  min-height: 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.feedback-message,
.activity-empty {
  margin: 0 10px 14px;
  color: #555555;
  font-size: 13px;
}

.feedback-message a {
  text-decoration: underline;
}

.activity-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  padding: 10px;
  border-bottom: 1px solid #dccfb9;
  font-size: 15px;
  line-height: 1.28;
}

.activity-row:last-child {
  border-bottom: 0;
}

.mention {
  color: #f45f77;
}

.activity-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.activity-row time {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 8px;
  color: #808080;
  font-size: 12px;
  white-space: nowrap;
}

.activity-actions {
  display: inline-flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.activity-row:hover .activity-actions,
.activity-row:focus-within .activity-actions,
.activity-row-actions-visible .activity-actions {
  opacity: 1;
  pointer-events: auto;
}

.activity-action {
  min-height: 24px;
  border: 1px solid #574d44;
  border-radius: 7px;
  background: #badfe8;
  color: #1b1b1b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 0 8px;
}

.activity-stars {
  display: inline-flex;
  gap: 0;
  margin-left: 0;
  font-size: 19px;
  line-height: 1;
}

.comics-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: var(--content-top) var(--content-left) 0;
  width: 100%;
}

.comic-row {
  display: grid;
  grid-template-columns: var(--placeholder-size) minmax(0, 1fr);
  column-gap: var(--placeholder-gap);
  align-items: stretch;
  justify-content: start;
  width: 100%;
}

.comic-card {
  cursor: pointer;
}

.comic-card:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 4px;
}

.comic-image {
  position: relative;
  width: var(--placeholder-size);
  height: var(--placeholder-size);
  flex: 0 0 var(--placeholder-size);
  overflow: visible;
}

.comic-image .post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-copy {
  border: 1px solid #9f948c;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  padding: 14px 22px 14px 22px;
  width: 100%;
  height: 193px;
  max-width: none;
  overflow: hidden;
}

.comic-heading {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 400;
}

.comic-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.32;
}

.commission-types {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: var(--content-top) var(--content-left) 110px;
  width: 100%;
}

.commission-modal[hidden] {
  display: none;
}

.commission-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 56px 0;
  overflow: hidden;
}

.commission-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 56% 44%;
  width: 100%;
  min-height: 518px;
  margin: 0;
  background: #f8fffd;
  border: 1px solid #2f2a25;
  border-radius: 16px;
  overflow: hidden;
}

.commission-modal-copy {
  padding: 28px 24px;
}

.commission-modal-description {
  margin: 0 0 18px;
  color: #5d5047;
  font-size: 0.95rem;
  line-height: 1.45;
}

.commission-modal-image {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  background: #f8fffd;
  padding: 14px;
}

.commission-modal-preview,
.commission-modal-placeholder {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border-radius: 14px;
}

.commission-modal-preview[hidden],
.commission-modal-placeholder[hidden],
.commission-modal-thumbnails[hidden] {
  display: none;
}

.commission-modal-preview {
  background: #e2dad4;
  object-fit: contain;
}

.commission-modal-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-color: #f45f77 transparent;
  scrollbar-width: thin;
}

.commission-modal-thumbnails::-webkit-scrollbar {
  height: 10px;
}

.commission-modal-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.commission-modal-thumbnails::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #f45f77;
}

.commission-modal-thumbnails::-webkit-scrollbar-button {
  display: none;
}

.commission-modal-thumbnail {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border: 2px solid #cdbfa7;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.commission-modal-thumbnail-active {
  border-color: #f45f77;
}

.commission-modal-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commission-back-button,
.commission-submit-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f45f77;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  padding: 0 22px;
}

.commission-back-button {
  background: #d9cec6;
  color: #5d5047;
  flex-shrink: 0;
}

.commission-request-kicker,
.commission-request-price {
  margin: 0;
  color: #f45f77;
}

.commission-request-kicker {
  color: #808080;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.commission-request-title {
  margin: 6px 0 8px;
  color: #000000;
  font-size: 1.55rem;
  font-weight: 400;
  text-align: center;
}

.commission-request-price {
  font-size: 0.95rem;
  text-align: center;
}

.commission-form {
  display: grid;
  gap: 14px;
}

.commission-form[hidden] {
  display: none;
}

.commission-form label {
  display: grid;
  gap: 6px;
  color: #5d5047;
  font-size: 0.95rem;
}

.commission-form input,
.commission-form textarea {
  width: 100%;
  border: 1px solid #cdbfa7;
  border-radius: 10px;
  background: #fbfffe;
  color: #1b1b1b;
  font: inherit;
  padding: 10px 12px;
}

.commission-form textarea {
  min-height: 160px;
  resize: vertical;
}

.commission-form input[type="file"] {
  padding: 10px;
  background: #f8f3ef;
}

.commission-reference-preview {
  display: grid;
  gap: 12px;
  margin-top: -4px;
  padding: 16px;
  border: 1px solid #cdbfa7;
  border-radius: 12px;
  background: #fbfffe;
}

.commission-reference-preview[hidden] {
  display: none;
}

.commission-reference-preview-title {
  margin: 0;
  color: #5d5047;
  font-size: 0.95rem;
}

.commission-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 12px;
}

.commission-reference-item {
  position: relative;
  margin: 0;
}

.commission-reference-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #cdbfa7;
  border-radius: 10px;
  background: #ececeb;
  object-fit: cover;
}

.commission-reference-item figcaption {
  margin-top: 6px;
  color: #7b6f66;
  font-size: 0.8rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.commission-reference-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 244, 245, 0.92);
  color: #b74a5b;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.commission-form-message {
  margin: 0;
  color: #5d5047;
}

.commission-form-message-error {
  color: #b42318;
}

.commission-form-message-success {
  color: #1f7a45;
}

.commission-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.commission-success[hidden] {
  display: none;
}

.commission-success {
  display: grid;
  gap: 18px;
}

.commission-success-lead,
.commission-success-copy,
.commission-success-note {
  margin: 0;
  color: #5d5047;
  line-height: 1.5;
}

.commission-success-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: #f4f2f0;
}

.commission-success-link {
  border: 0;
  background: transparent;
  color: #1b1b1b;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.commission-success-copy-button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: #d9cec6;
  color: #5d5047;
  cursor: pointer;
  font: inherit;
  padding: 0 16px;
}

.commission-type-card {
  position: relative;
  display: grid;
  grid-template-columns: var(--placeholder-size) minmax(0, 1fr);
  column-gap: var(--placeholder-gap);
  align-items: stretch;
  justify-content: start;
  width: 100%;
  border: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.commission-type-card-selected {
  outline: 0;
}

.commission-type-card-selected {
  border-radius: 18px;
  box-shadow:
    0 0 18px rgba(244, 95, 119, 0.24),
    0 0 34px rgba(244, 95, 119, 0.16);
  transform: translateY(-2px);
}

.commission-type-card-selected .commission-type-copy,
.commission-type-card-selected .commission-type-image {
  border-color: #f45f77;
}

.commission-type-card:hover .commission-type-heading,
.commission-type-card-selected .commission-type-heading {
  color: #000000;
}

.commission-type-image {
  width: var(--placeholder-size);
  height: var(--placeholder-size);
  border-radius: 10px;
  background: #e2dad4;
  object-fit: cover;
}

.commission-type-image-placeholder {
  display: block;
}

.commission-type-copy {
  position: relative;
  border: 1px solid #9f948c;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  min-width: 0;
  width: 100%;
  height: 193px;
  max-width: none;
  overflow: visible;
  padding: 14px 22px;
  z-index: 0;
}

.commission-type-copy::before {
  position: absolute;
  inset: -28px -34px;
  z-index: -1;
  color: #ffa245;
  content: "✦  ✶     ✦  ✸";
  font-size: 34px;
  letter-spacing: 24px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-shadow:
    58px 22px 0 #f45f77,
    190px 6px 0 #ffa245,
    320px 28px 0 #f0c163,
    460px 10px 0 #f45f77,
    620px 30px 0 #ffa245,
    90px 178px 0 #f0c163,
    260px 158px 0 #f45f77,
    420px 184px 0 #ffa245,
    600px 166px 0 #f0c163;
  transform: scale(0.82);
  transition: opacity 180ms ease, transform 220ms ease;
}

.commission-type-card-selected .commission-type-copy::before {
  opacity: 0.72;
  transform: scale(1);
}

.commission-type-copy::before {
  content: none;
}

.commission-sparkle {
  position: absolute;
  z-index: -1;
  color: #ffa245;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 0 #ffffff;
  transform: translate(-50%, -50%) rotate(var(--spark-rotate));
  animation: commission-sparkle-flight var(--spark-duration) cubic-bezier(0.15, 0.72, 0.28, 1) var(--spark-delay) forwards;
}

.commission-sparkle:nth-of-type(3n) {
  color: #f45f77;
}

.commission-sparkle:nth-of-type(3n + 1) {
  color: #f0c163;
}

@keyframes commission-sparkle-flight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(var(--spark-rotate));
  }

  12% {
    opacity: 1;
  }

  48% {
    opacity: 0.95;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(1) rotate(calc(var(--spark-rotate) + 120deg));
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y) + var(--spark-fall))) scale(0.55) rotate(calc(var(--spark-rotate) + 260deg));
  }
}

.commission-type-heading {
  display: block;
  margin: 0 0 14px;
  padding-right: 170px;
  color: #000000;
  font-size: 1.5rem;
  font-weight: 400;
}

.commission-price {
  position: absolute;
  top: 14px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 10px;
  background: #f45f77;
  color: #ffffff;
  font-size: 1rem;
  padding: 8px 14px;
}

.commission-type-description-title {
  display: block;
  margin: 0 0 8px;
  color: #000000;
  font-size: 0.95rem;
}

.commission-type-description {
  display: block;
  margin: 0;
  color: #000000;
  font-size: 0.8125rem;
  line-height: 1.32;
}

.commission-next-button {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translateX(-50%);
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f45f77;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  padding: 0 28px;
}

.commission-next-button:disabled {
  background: #d8d8d8;
  color: #9a9a9a;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .commission-sparkle {
    animation: none;
    display: none;
  }
}

@media (max-width: 1200px) {
  .frame {
    width: calc(100vw - 40px);
  }

  .gallery {
    grid-template-columns: repeat(3, 193px);
  }

  .comic-row {
    grid-template-columns: 193px minmax(0, 1fr);
    width: 100%;
  }

  .comic-image {
    width: 193px;
    height: 193px;
  }

  .post-modal-scroll {
    width: min(840px, calc(100vw - 48px));
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #6c6c6c;
    padding: 18px 20px;
  }

  .sidebar-nav {
    gap: 14px;
  }

  .content-toolbar {
    margin-left: 0;
  }

  .content {
    min-height: auto;
    overflow: visible;
  }

  .content-view {
    position: static;
    inset: auto;
    display: none;
    visibility: visible;
    pointer-events: auto;
  }

  .content-view-active {
    display: block;
  }

  .view-grid {
    display: block;
    height: auto;
  }

  .view-body {
    overflow: visible;
    padding-bottom: 0;
  }

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

  .comics-list {
    padding: 0;
    gap: 24px;
    width: auto;
  }

  .comic-row {
    grid-template-columns: 1fr;
    width: auto;
    gap: 0;
  }

  .comic-image {
    width: 100%;
    max-width: 193px;
    height: 193px;
    margin: 0 auto 24px;
  }

  .post-media .post-image,
  .comic-image .post-image {
    background: #ececeb;
    object-fit: contain;
  }

  .comic-copy {
    width: auto;
    max-width: none;
    height: auto;
    min-height: 180px;
  }

  .commission-types {
    padding: 0 0 70px;
  }

  .commission-modal-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .commission-modal-copy {
    padding: 20px;
  }

  .commission-modal-image {
    min-height: 240px;
  }

  .commission-form-actions {
    flex-direction: column;
    justify-content: stretch;
  }

  .commission-submit-button,
  .commission-back-button {
    width: 100%;
  }

  .commission-next-button {
    position: static;
    display: block;
    margin: 14px auto 0;
    transform: none;
  }

  .commission-type-card {
    grid-template-columns: 1fr;
    width: auto;
    gap: 0;
  }

  .commission-type-image {
    width: 100%;
    max-width: 193px;
    height: 193px;
    margin: 0 auto;
  }

  .commission-type-copy {
    width: auto;
    max-width: none;
    height: auto;
    min-height: 180px;
    padding: 14px 22px;
  }

  .commission-price {
    position: static;
    margin: 0 0 14px;
  }

  .commission-type-heading {
    padding-right: 0;
  }

  .post-modal,
  .commission-modal {
    padding: 24px 0;
  }

  .post-modal-scroll {
    max-height: calc(100vh - 48px);
  }

  .post-modal-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    margin: 0;
  }

  .post-modal-copy {
    display: contents;
    border: 0;
  }

  .post-modal-title {
    order: 1;
    font-size: 40px;
    padding: 28px 20px 0;
  }

  .post-modal-rating {
    order: 2;
    font-size: 36px;
    padding: 0 20px;
  }

  .post-modal-description {
    order: 3;
    font-size: 20px;
    padding: 0 20px;
    word-spacing: 0;
  }

  .post-modal-image {
    order: 4;
    background: transparent;
    height: 360px;
    min-height: 360px;
  }

  .post-modal-episodes {
    order: 5;
  }

  .series-back-button {
    order: 6;
    align-self: flex-start;
    margin-left: 20px;
  }

  .comics-modal .post-modal-image {
    width: min(360px, 42vw);
    height: min(360px, 42vw);
    min-height: 0;
    margin: 0 auto 18px;
    padding: 0;
  }

  .comics-modal .post-modal-episodes {
    margin: 0 0 18px;
    padding: 0 20px;
    max-height: min(360px, 38vh);
    overflow-y: auto;
  }

  .post-image-large {
    background: transparent;
    object-fit: contain;
  }

  .post-activity {
    min-height: 360px;
    margin-top: 24px;
  }

  .activity-row {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding: 10px;
    font-size: 14px;
  }

  .activity-text {
    width: 100%;
  }

  .feedback-form label,
  .feedback-message,
  .activity-empty {
    font-size: 14px;
  }

  .activity-row time {
    margin-left: 0;
    padding-left: 0;
    font-size: 11px;
  }

  .activity-stars {
    margin-left: 0;
    font-size: 16px;
  }
}
