/* The paper belongs to the field shell, outside the browser's autofill paint. */
html[data-game-ui-ready] .field .input-paper {
  display: block;
  min-width: 0;
  border: solid;
  border-width: 12px 30px;
  border-image-source: var(--game-control-paper);
  border-image-slice: 170 260 170 260 fill;
  border-image-repeat: stretch;
  background: #e8c78b;
  background-clip: padding-box;
}

html[data-game-ui-ready] .field .input-paper input {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  /* Chromium's internal autofill background is !important; clipping the paint
     to glyphs keeps that fill off the paper without a long transition hack. */
  -webkit-background-clip: text;
  background-clip: text;
  color-scheme: light;
  color: #302014;
  -webkit-text-fill-color: #302014;
  caret-color: #6d3028;
  font-family: var(--game-reading-font);
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  outline: none;
}

html[data-game-ui-ready] .field .input-paper:focus-within {
  outline: none;
}
html[data-game-ui-ready] .field .input-paper input:focus-visible {outline: none;}
html[data-game-ui-ready] .field .input-paper input:is(:autofill,:-webkit-autofill) {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #302014;
  caret-color: #6d3028;
  box-shadow: none;
}
html[data-game-ui-ready] .field .input-paper input:-webkit-autofill::first-line {
  font-family: Georgia,"Noto Serif CJK SC","STZhongsong","STSong","SimSun",serif;
  font-size: 16px;
}
html[data-game-ui-ready] .field .input-paper input::selection {
  background: #9d4c31;
  color: #fff4dd;
  -webkit-text-fill-color: #fff4dd;
}
