body {
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top, #9ad8ff 0%, #6fbbe7 40%, #5da7d6 100%);
  margin: 0;
  padding: 16px;
  min-height: 100vh;
  color: #10233f;
}

.container {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 22px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(6, 33, 62, 0.25);
  min-height: 700px;
}

.header {
  width: 100%;
  text-align: center;
}

.title {
  margin: 0;
  color: #0f2950;
  font-size: 30px;
  letter-spacing: 0.4px;
}

.subtitle {
  margin: 6px 0 0;
  color: rgba(15, 41, 80, 0.85);
  font-size: 14px;
}

.panel {
  width: 100%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 10px 0;
}

.panel_title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #14315c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.char_container {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 12px;
  background: rgba(9, 20, 34, 0.88);
  max-width: 100%;
  margin-bottom: 3px;
  width: 100%;
  min-height: 335px;
  box-sizing: border-box;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.icons_container {
  justify-content: center;
  align-items: center;
  background-color: transparent;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px;
  box-sizing: border-box;
}

h1 {
  color: #333;
  font-size: 17px;
}

.item {
  display: block;
  margin: 5px 0;
  color: var(--item-color, black);
  text-align: left;
}
textarea {
  border: none;
  outline: none;
  resize: none;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  box-sizing: border-box;
}
.icons {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
  flex: 0 0 calc(20% - 8px);
  display: flex;
  justify-content: center;
}

.icons img,
.thing img {
  width: 40px;
  height: 40px;
  display: block;
}

.icons:hover,
.thing:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 34, 60, 0.22);
}

.icons:focus,
.thing:focus {
  outline: none;
  border-color: rgba(30, 85, 173, 0.9);
  background-color: rgba(255, 255, 255, 0.92);
}

.icons.active {
  border-color: #1e55ad;
  background: rgba(30, 85, 173, 0.15);
  box-shadow: 0 0 0 2px rgba(30, 85, 173, 0.25);
}

.thing.active {
  border-color: #1e55ad;
  background: rgba(30, 85, 173, 0.15);
  box-shadow: 0 0 0 2px rgba(30, 85, 173, 0.25);
}

.thing {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.my-button-pill {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #2e4a82, #1f3562);
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  line-height: 1.1;
  border-radius: 12px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 16px rgba(15, 35, 66, 0.35);
}

.my-button-pill:disabled {
  cursor: not-allowed;
  background: linear-gradient(135deg, #9aa8c0, #7f8da6);
  box-shadow: none;
  opacity: 0.7;
}

.counter_container {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(240,245,255,0.9));
  width: 100%;
  font-size: 16px;
  color: #18365f;
  border-radius: 12px;
  padding: 0 12px;
  border: 1px solid rgba(120, 160, 220, 0.35);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08), 0 4px 10px rgba(20,50,90,0.15);
  font-family: Inter, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  height: 48px;
  line-height: 48px;
  display: block;
  overflow: hidden;
}

.about_text {
  width: 100%;
  font-size: 16px;
  color: #18365f;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  padding: 0;
  border: none;
  background: none;
  resize: none;
  height: auto;
  min-height: 320px;
  overflow: hidden;
}

.my-button-pill:hover {
  filter: brightness(104%);
  transform: translateY(-1px);
}

.my-button-pill:active {
  filter: brightness(98%);
  transform: translateY(1px);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.3);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1e55ad, #4fa3ff);
  transition: width 1.5s linear;
}

@media (max-width: 500px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 14px;
    gap: 10px;
  }

  .title {
    font-size: 25px;
  }

  .subtitle {
    font-size: 13px;
  }

  .my-button-pill {
    padding: 12px 16px;
    font-size: 14px;
  }

  .icons img,
  .thing img {
    width: 40px;
    height: 40px;
  }
}
