@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,700;1,700&family=Roboto:wght@400;500;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 24px;
  max-width: 1120px;
  min-height: 100vh;
  color: #ecf0f1;
  font-family: "Roboto", sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(74, 163, 223, 0.22),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(90, 209, 176, 0.18),
      transparent 28%
    ),
    linear-gradient(180deg, #1f2428, #172126);
}

body > main {
  display: grid;
  gap: 1.25rem;
}

header,
footer,
.widget-card {
  background: rgba(32, 40, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

header {
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

footer {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  color: #b4c0c7;
  font-size: 0.95rem;
}

h1 {
  margin-top: 0;
  font-family: "Lora", serif;
  color: #f6fbff;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

h2 {
  margin-top: 0;
  font-family: "Lora", serif;
  color: #f6fbff;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

h3 {
  margin-top: 0;
  font-family: "Lora", serif;
  color: #f6fbff;
}

p {
  line-height: 1.65;
}

a {
  color: #5ad1b0;
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: #86e0c9;
  text-decoration: underline;
}

img {
  max-width: 100%;
}

figure {
  margin: 1rem 0;
  text-align: center;
}

ul,
ol {
  line-height: 1.8;
  padding-left: 1.25rem;
}

.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;
}

.page-shell {
  display: grid;
  gap: 1.25rem;
}

.widget-card {
  padding: 1.5rem;
}

.hero-card,
.bank-hero,
.voting-hero,
.converter-intro {
  display: grid;
  gap: 0.5rem;
}

.eyebrow {
  margin: 0;
  color: #5ad1b0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-summary,
.panel-note,
.status-message {
  margin: 0;
  color: #b4c0c7;
}

.controls,
.field,
.action-row,
.inline-form {
  display: grid;
  gap: 0.8rem;
}

.field span,
.metric-label {
  color: #b4c0c7;
  font-size: 0.92rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: #ecf0f1;
  background: rgba(255, 255, 255, 0.05);
}

textarea {
  min-height: 280px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8f9ca4;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  color: #fff;
  cursor: pointer;
  transition:
    transform 120ms ease,
    filter 120ms ease,
    background 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(135deg, #4aa3df, #2f7cb0);
}

.button-secondary {
  background: linear-gradient(135deg, #446d89, #35556b);
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

#weather-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.weather-grid,
.stat-grid {
  margin: 0;
}

.weather-grid article,
.stat-grid article {
  display: inline-block;
  width: 48%;
  vertical-align: top;
  margin: 1%;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.weather-grid strong,
.stat-grid strong {
  margin-top: 0.35rem;
  font-size: 1.2rem;
}

.weather-controls {
  grid-template-columns: 70% auto;
  align-items: end;
}

.drum-machine {
  display: grid;
  gap: 1rem;
}

.drum-display {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #5ad1b0;
  font-weight: 700;
}

.drum-grid {
  margin: 0;
}

.drum-pad {
  display: inline-block;
  width: 31%;
  margin: 0.425rem 1%;
  vertical-align: top;
  min-height: 88px;
  border-radius: 18px;
  background: linear-gradient(180deg, #506471, #2e3941);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.drum-pad:active {
  transform: scale(0.97);
  background: linear-gradient(180deg, #6f8c9c, #42515a);
}

.converter-layout,
.bank-layout,
.voting-layout {
  display: grid;
  gap: 1rem;
}

.converter-layout {
  grid-template-columns: 33.333% 33.333% 33.333%;
}

.converter-input,
.converter-output,
.converter-preview {
  min-height: 280px;
}

.converter-output,
.converter-preview {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  white-space: pre-wrap;
  overflow: auto;
}

.bank-layout,
.voting-layout {
  grid-template-columns: 49% 49%;
}

.bank-form,
.inline-form {
  margin-top: 1rem;
}

.action-row {
  grid-template-columns: 49% 49%;
}

.transaction-list,
.option-list,
.results-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding-left: 0;
  list-style: none;
}

.transaction-item,
.poll-option,
.result-row {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.transaction-item {
  padding: 0.8rem 1rem;
}

.transaction-deposit {
  color: #90f0cf;
}

.transaction-withdraw {
  color: #ffb7b7;
}

.poll-option {
  padding: 1rem 1.1rem;
  text-align: left;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(74, 163, 223, 0.2),
    rgba(90, 209, 176, 0.18)
  );
}

.result-row {
  padding: 1rem;
}

.result-row > :first-child {
  margin-bottom: 0.25rem;
}

.result-bar {
  width: 100%;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.result-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #5ad1b0, #4aa3df);
}

@media (max-width: 860px) {
  body {
    padding: 16px;
  }

  .converter-layout,
  .weather-controls,
  .drum-grid {
    display: block;
  }

  .drum-pad {
    width: 100%;
    margin: 0 0 0.85rem;
  }
}
