/* Reset / Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* Page wrapper */
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #008080;
}

/* Desktop */
.desktop {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

/* ウィンドウ配置 */
.win-main {
  flex: 1 1 420px;
  min-width: 320px;
  max-width: 620px;
}

.win-props {
  flex: 0 0 220px;
}

.win-hint {
  flex: 0 0 180px;
}

/* メインウィンドウ内コンテンツ */
.desc {
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 12px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.info-table td {
  padding: 3px 6px;
  vertical-align: top;
}

.info-table td:first-child {
  white-space: nowrap;
  color: #444;
  width: 90px;
}

.info-table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.04);
}

.param-grid {
  display: flex;
  gap: 8px;
}

.param-card {
  flex: 1;
  border: 1px solid #c0c0c0;
  padding: 8px;
  background: #fff;
  text-align: center;
}

.param-name {
  font-size: 10px;
  color: #666;
  margin-bottom: 4px;
}

.param-val {
  font-size: 20px;
  font-weight: bold;
  font-family: monospace;
  color: #000080;
  line-height: 1;
  margin-bottom: 4px;
}

.param-desc {
  font-size: 10px;
  color: #888;
}

.steps {
  margin: 4px 0 0;
  padding-left: 20px;
  font-size: 11px;
  line-height: 1.7;
}

/* Properties ウィンドウ */
input[type="range"] {
  width: 100%;
}
/* グリッチオーバーレイ */
#rect-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
