* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: system-ui, sans-serif; background: #fffaf0; color: #1f2340; }
header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; background: #ffd43b; padding: 16px 24px; border-bottom: 4px solid #1f2340; }
header a { color: inherit; text-decoration: none; font-weight: 700; }
header .logo { font-size: 28px; font-weight: 900; }
nav { display: flex; gap: 16px; }
main { max-width: 960px; margin: auto; padding: 24px 16px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: #fff; border: 3px solid #1f2340; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 0 #1f2340; margin-bottom: 8px; }
.thumb { height: 130px; display: grid; place-items: center; font-size: 56px; }
.info { padding: 16px; }
.info h2 { margin: 0 0 6px; font-size: 20px; }
.btn { display: inline-block; background: #3b5bfd; color: #fff; border: 0; border-radius: 10px; padding: 10px 20px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; margin: 0 8px 8px 0; }
.bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }
label { display: block; font-weight: 700; margin-bottom: 14px; }
input, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 2px solid #1f2340; border-radius: 8px; background: #fff; }
iframe { width: 100%; height: 75vh; min-height: 420px; border: 3px solid #1f2340; border-radius: 12px; background: #000; }
select { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 2px solid #1f2340; border-radius: 8px; background: #fff; }
.thumb img { width: 100%; height: 130px; object-fit: contain; }
.btn.off { background: #fff; color: #1f2340; border: 2px solid #1f2340; }
#chat { margin-top: 32px; }
#log { height: 260px; overflow-y: auto; background: #fff; border: 3px solid #1f2340; border-radius: 12px; padding: 4px 12px; margin-bottom: 8px; overflow-wrap: anywhere; }
#log p { margin: 8px 0; }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: #3b5bfd; text-decoration: underline; cursor: pointer; }
ol { padding-left: 24px; }
