:root{
  --bg:#fbf6f6;
  --card:#fffdfa;
  --muted:#6b6b6b;
  --accent:#111;
  --gap:18px;
  --radius:12px;
  --shadow: 0 10px 30px rgba(10,10,10,0.08);
  --red:#b80000;
  --accent-2: #000;
  font-family: Inter, "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*{box-sizing:border-box}
html,body,#app{height:100%}
body{
  margin:0;
  background:linear-gradient(180deg,var(--bg),#fff);
  color:var(--accent);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

main{
  width:100%;
  max-width:1100px;
}

/* breaking banner refined */
.breaking-banner{
  background:linear-gradient(90deg,var(--red),#ff5b5b);
  color:#fff;
  padding:12px 16px;
  border-radius:12px;
  margin-bottom:18px;
  box-shadow: 0 10px 28px rgba(184,0,0,0.16);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.breaking-banner .label{
  display:inline-block;
  background:rgba(0,0,0,0.12);
  padding:4px 8px;
  border-radius:6px;
  font-weight:800;
  margin-right:10px;
  font-size:12px;
}
.breaking-banner .headline{
  font-weight:800;
  font-size:16px;
}
.breaking-banner .meta{
  display:block;
  margin-top:0;
  font-size:13px;
  opacity:0.95;
}

/* header */
header{
  margin-bottom:18px;
  text-align:center;
}
h1{
  margin:0;
  font-size:36px;
  letter-spacing:0.8px;
  text-transform:uppercase;
  color:var(--accent-2);
  font-weight:800;
}
.subtitle{
  margin:8px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.5;
}

/* grid */
.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:var(--gap);
  align-items:start;
}
@media (max-width:520px){
  .grid{ grid-template-columns: 1fr; }
}

/* card */
.card{
  background:linear-gradient(135deg, #ffffff, #fff9f9);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:380px;
  transition:transform .2s ease, box-shadow .2s ease;
  border-left:8px solid var(--red);
  border:1px solid rgba(20,20,20,0.05);
  cursor: pointer;
}
.card:hover{ 
  transform:translateY(-10px) scale(1.02); 
  box-shadow:0 30px 60px rgba(184,0,0,0.15); 
}

/* image area */
.card .media{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#f6f6f8,#efeff2);
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.card img{
  width:100%;
  max-height:260px;
  object-fit:contain;
  border-radius:8px;
  display:block;
  box-shadow: 0 6px 18px rgba(10,10,10,0.06);
}

/* body */
.card-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.name{
  margin:0;
  font-weight:800;
  font-size:22px;
  color:var(--accent-2);
  letter-spacing:0.3px;
}
.role{
  margin:4px 0 0;
  color:var(--muted);
  font-size:15px;
  font-weight:500;
}

/* headline strip */
.meta-strip{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:6px;
}
.meta-strip .exclusive{
  background:linear-gradient(90deg,#ff8a8a,#b80000);
  color:#fff;
  padding:6px 8px;
  border-radius:8px;
  font-weight:800;
  font-size:12px;
  box-shadow:0 4px 12px rgba(184,0,0,0.12);
}

/* quote */
.quote{
  margin-top:8px;
  padding:16px;
  background:linear-gradient(135deg,#fff6f6,#fffbfb);
  border-radius:10px;
  border:1px solid rgba(184,0,0,0.08);
  font-size:17px;
  color:var(--accent-2);
  display:block;
  box-shadow:0 2px 8px rgba(184,0,0,0.05);
}
.quote .who{
  display:block;
  font-weight:700;
  margin-bottom:8px;
  color:#4b1212;
  font-size:16px;
}
.quote .direct{
  font-style:italic;
  color:#7a1515;
  font-weight:700;
  font-size:18px;
  line-height:1.4;
}

/* input area */
.answer-input{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:2px solid rgba(20,20,20,0.08);
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.6);
  font-size:16px;
  transition: all 0.3s ease;
  font-weight:500;
}

.answer-input.expanded {
  padding: 18px;
  font-size: 18px;
  border: 2px solid var(--red);
  box-shadow: 0 6px 20px rgba(184, 0, 0, 0.2);
  background: #fff;
  min-height: 100px;
}

/* buttons */
button{
  font-weight:700;
  border-radius:10px;
  padding:12px 16px;
  cursor:pointer;
  border:0;
  font-size:16px;
  transition: all 0.2s ease;
}
button:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.check-btn{
  background:linear-gradient(135deg,#2ea44f,#22863a);
  color:#fff;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 6px 16px rgba(34,134,58,0.2);
  flex:1;
  font-weight:800;
}
.reveal-btn{
  background:linear-gradient(135deg,#fff,#f9f9f9);
  color:var(--accent-2);
  border:2px solid rgba(20,20,20,0.1);
  flex:0 0 130px;
  font-weight:700;
}

/* result & caption */
.result{
  margin-top:10px;
  font-size:16px;
  min-height:24px;
  transition:all .12s ease;
  font-weight:600;
}
.caption{
  font-size:14px;
  color:var(--muted);
  line-height:1.5;
  margin-top:8px;
  display:block;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: linear-gradient(180deg, #ffffff, #fffdfa);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-card .media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f6f8, #efeff2);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  transform: scale(1.1);
}

/* Comic speech bubble */
.speech-bubble-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.speech-bubble-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.speech-bubble {
  background: white;
  border: 4px solid black;
  border-radius: 30px;
  padding: 30px 40px;
  max-width: 500px;
  position: relative;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
  transform: scale(0.8) rotate(-2deg);
  transition: transform 0.3s ease;
}

.speech-bubble-overlay.active .speech-bubble {
  transform: scale(1) rotate(0deg);
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 60px;
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 30px solid black;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 64px;
  width: 0;
  height: 0;
  border-left: 21px solid transparent;
  border-right: 21px solid transparent;
  border-top: 26px solid white;
}

.speech-bubble-text {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  font-style: italic;
  text-align: center;
}

.speech-bubble-author {
  margin-top: 16px;
  font-size: 16px;
  color: var(--red);
  font-weight: 800;
  text-align: right;
  font-style: normal;
}

.speech-bubble-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: black;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.speech-bubble-close:hover {
  transform: scale(1.2);
}

/* small responsive tweaks */
@media (max-width:420px){
  body{ padding:14px; }
  .card img{ max-height:220px; }
  h1{ font-size:20px; }
  .speech-bubble {
    padding: 20px 25px;
  }
  .speech-bubble-text {
    font-size: 18px;
  }
}