/* V2 comparison: preserve V1 copy, markup, forms and behavior. */
:root{--v2-line:#d5dfe2;--v2-radius:10px;--v2-control:7px}

/* Use one border system instead of slightly different card treatments. */
.calendar,.map,.card,.game-card,details,.guest-compose,.guest-posts,
.account-section .account-group,.prize-guide table,#gameGate{
  border:1px solid var(--v2-line);
  border-radius:var(--v2-radius);
  box-shadow:none;
}

/* Keep every gallery tile on the same photographic ratio and frame weight. */
.collage{gap:8px;padding-inline:0}
.frame{
  aspect-ratio:3/4;
  padding:4px;
  border:1px solid var(--v2-line);
  border-radius:var(--v2-control);
  box-shadow:none;
  background:#fff;
}
.frame:after{display:none}
.frame img{border-radius:4px}

/* Normalize image proportions without changing the selected images. */
.hero img{aspect-ratio:4/5;object-fit:cover;object-position:52% 50%}
.map{overflow:hidden}
.late-groom-banner{aspect-ratio:2048/685;object-fit:cover}

/* One control language across links, copy actions and forms. */
.sub,.primary,.map-links a,.address-copy,.account-section .account-copy,
.guest-pages button,.my-rank-button,#gameGate>.primary,
.form input:not([type="checkbox"]),.form textarea,.modal input,.modal textarea,.modal select{
  border-radius:var(--v2-control);
}
.primary{box-shadow:none}
.map-links{gap:8px}
.map-links a{border-color:var(--v2-line)}

/* Make information rows feel like one designed table. */
.account-section .account-group{overflow:hidden}
.account-section .account-group h3{border-bottom:1px solid var(--v2-line)}
.account-section .account-row{border-top:0;border-bottom:1px solid #e4eaec}
.account-section .account-row:last-child{border-bottom:0}
.guest-compose,.guest-posts{padding:18px}
.guest{border-bottom-color:#d9e2e4}
.rank{border-bottom-color:#d9e2e4}

/* Keep spacing proportional and consistent while retaining V1 structure. */
main>section:not(.hero):not(#weddingGame){padding-top:78px;padding-bottom:78px}
h2{margin-bottom:26px}
.family{padding-top:22px}
.calendar{padding:26px 20px}
.transport>div{padding-block:16px}
#weddingGame{padding-top:46px;padding-bottom:46px}

@media(max-width:350px){
  main>section:not(.hero):not(#weddingGame){padding-top:64px;padding-bottom:64px}
  .calendar{padding-inline:14px}
  .collage{gap:6px}
}

/* Guestbook: clear form/list hierarchy without changing fields or behavior. */
.guest-compose,.guest-posts{
  max-width:410px;
  margin-inline:auto;
  border-color:var(--v2-line);
  background:#fff;
}
.guest-compose{padding:20px}
.guest-posts{margin-top:14px;padding:20px}
.guest-compose h3,.guest-posts h3{
  margin:0 0 16px;
  padding-bottom:12px;
  border-bottom:1px solid #e3e9eb;
  color:#52686f;
  font-size:14px;
}
.guest-compose .card{padding:0;border:0;border-radius:0;background:transparent}
#guestForm input:not([type="checkbox"]),#guestForm textarea{
  border:1px solid #d9e2e4;
  background:#f8fafb;
}
#guestForm textarea{margin-top:0;margin-bottom:8px}
#guestForm .row{gap:8px}
#guestForm .row button{border-radius:var(--v2-control);font-weight:700}
#guestForm .consent{margin-bottom:0;color:#6f7e83}
.guest-list{border-top:0}
.guest{
  grid-template-columns:68px minmax(0,1fr) 44px;
  min-height:54px;
  padding:11px 2px;
  gap:8px;
}
.guest b{color:#40545a;font-size:13px}
.guest span{color:#65767b;font-size:13px}
.guest time{color:#8a979b;font-size:10px}
.guest-pages{gap:4px;margin-top:14px}
.guest-pages button{min-width:32px;min-height:32px;border:0;border-radius:50%;background:#edf2f3}
.guest-pages [aria-current=page]{background:#607e88;color:#fff}

/* Rewards: one compact table, gentle emphasis only where hierarchy matters. */
.prize-guide{max-width:360px;margin-bottom:24px}
.prize-guide table{border-color:var(--v2-line);background:#fff;overflow:hidden}
.prize-guide caption{padding-bottom:12px;color:#40545a;font-size:14px}
.prize-guide thead{background:#edf2f3}
.prize-guide th,.prize-guide td{height:38px;padding:7px 15px;border-bottom:1px solid #e5ebed}
.prize-guide tbody tr:last-child th,.prize-guide tbody tr:last-child td{border-bottom:0}
.prize-guide tbody tr:nth-child(1){background:#f3f7f7}
.prize-guide tbody tr:nth-child(2),.prize-guide tbody tr:nth-child(3){background:#f9fbfb}
.prize-guide tbody th{color:#5d6e73}
.prize-guide tbody td{color:#40545a}
.prize-guide p{margin:10px 4px 0;line-height:1.55}

/* Live ranking: aligned columns and restrained podium badges. */
#leaderboard{
  max-width:410px;
  margin:18px auto 0;
  padding:18px;
  border:1px solid var(--v2-line);
  border-radius:var(--v2-radius);
  background:#fff;
}
#leaderboard>h3{margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid #e3e9eb;color:#40545a;font-size:16px}
#leaderboard .rank{
  grid-template-columns:30px minmax(0,1fr) 72px 48px;
  min-height:48px;
  padding:9px 2px;
  gap:6px;
  border-bottom:1px solid #e7ecee;
  align-items:center;
}
#leaderboard .rank:last-child{border-bottom:0}
#leaderboard .rank-header{min-height:34px;padding-block:5px;background:transparent;border-radius:0;color:#7a898e}
#leaderboard .rank-header strong{font-size:10px;font-weight:400}
#leaderboard .rank>b{font-size:12px;font-weight:700;color:#60777e;text-align:center}
#leaderboard .ranking-list .rank:nth-child(1)>b,#leaderboard .ranking-list .rank:nth-child(2)>b,#leaderboard .ranking-list .rank:nth-child(3)>b{
  width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#dfe9eb;color:#40545a;
}
#leaderboard .rank-name{color:#4b5d62;font-size:12px;line-height:1.35}
#leaderboard .rank-name small{display:block;margin-top:2px;color:#87959a;font-size:10px;font-weight:400}
#leaderboard .rank strong{color:#34484e;font-size:12px;text-align:right}
#leaderboard .rank-reward{color:#60777e;font-size:11px;text-align:right}
#leaderboard>h3 small{color:#87959a;font-family:'Nanum Gothic',sans-serif;font-size:11px;font-weight:400}
.couple-ranking{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}
.couple-rank{display:grid;grid-template-columns:auto 1fr;gap:1px 8px;align-items:center;padding:10px 11px;border:1px solid #cbdadd;border-radius:8px;background:#eef4f5;text-align:left}
.couple-rank b{grid-row:1/3;display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:#718990;color:#fff;font-size:11px}
.couple-rank span{overflow:hidden;color:#52686f;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.couple-rank strong{color:#30474e;font-size:13px}
#leaderboard .ranking-list:not(.expanded) .rank:nth-child(n+6){display:none}
#leaderboard .ranking-list.expanded{max-height:390px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-bottom:1px solid #e3e9eb}
#leaderboard .rank-toggle{width:100%;min-height:44px;margin-top:10px;border:1px solid #cedadd;border-radius:7px;background:#f5f8f8;color:#52686f;font-size:12px;font-weight:700;cursor:pointer}
.my-rank-button{max-width:410px;margin:12px auto 0;background:#fff}

@media(max-width:350px){
  .guest-compose,.guest-posts,#leaderboard{padding:15px}
  #leaderboard .rank{grid-template-columns:27px minmax(0,1fr) 64px 42px;gap:4px}
  .couple-ranking{grid-template-columns:1fr}
}

/* Final benchmark polish: more breathing room, one quiet accent, less boxiness. */
:root{--v2-line:#dce4e6}
main>section:not(.hero)>h2::after{
  content:"";
  display:block;
  width:28px;
  height:1px;
  margin:15px auto 0;
  background:#9cabb0;
}
.guest-compose,.guest-posts,#leaderboard,.prize-guide table{
  border-radius:12px;
}
.guest-compose h3,.guest-posts h3,#leaderboard>h3{
  font-weight:400;
  letter-spacing:.025em;
}
#guestForm input:not([type="checkbox"]),#guestForm textarea{
  border-color:#e0e7e9;
  background:#fbfcfc;
}
#guestForm input:not([type="checkbox"]):focus,#guestForm textarea:focus{
  background:#fff;
  border-color:#91a8ae;
}
.prize-guide thead{background:#f3f6f7}
.prize-guide tbody tr:nth-child(1){background:#f3f7f7}
.prize-guide tbody tr:nth-child(2),.prize-guide tbody tr:nth-child(3){background:#f9fbfb}
#leaderboard .rank-reward{
  display:inline-flex;
  min-height:24px;
  padding:2px 6px;
  align-items:center;
  justify-content:flex-end;
  border-radius:999px;
  background:#f1f5f5;
}

/* Personalized rank: same columns, a stronger surface to locate it quickly. */
#leaderboard .rank.v2-my-rank{
  margin:9px -8px -8px;
  padding:11px 10px;
  border:1px solid #9bafb5;
  border-radius:8px;
  background:#d6e1e4;
}
#leaderboard .rank.v2-my-rank>b,
#leaderboard .rank.v2-my-rank strong,
#leaderboard .rank.v2-my-rank .rank-name{color:#30474e}
#leaderboard .rank.v2-my-rank .rank-reward{background:#edf3f4;color:#40585f}


/* Guestbook: roomy inputs and individual message cards, tuned to this invitation. */
.guest-compose{padding:22px 20px}
.guest-compose .card{display:flex;flex-direction:column;gap:10px}
#guestForm>input[name="name"]{order:1}
#guestForm .row{display:contents}
#guestForm .row>input{order:2}
#guestForm>textarea{order:3;height:94px;max-height:none;margin:0;resize:vertical}
#guestForm .guest-count{
  order:4;
  align-self:flex-end;
  margin-top:-7px;
  color:#89979b;
  font-size:11px;
  line-height:1;
}
#guestForm .consent{order:5;margin:1px 0 2px}
#guestForm .row>button{
  order:6;
  width:100%;
  min-height:50px;
  border-radius:8px;
  background:#607e88;
  color:#fff;
  font-size:14px;
  font-weight:700;
}
#guestForm input:not([type="checkbox"]),#guestForm textarea{border-radius:8px}
.guest-posts{
  margin-top:28px;
  padding:0;
  border:0;
  background:transparent;
}
.guest-posts h3{padding-inline:2px}
.guest-list{display:grid;gap:10px}
.guest{
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"name date" "message message";
  min-height:92px;
  margin:0;
  padding:15px 16px;
  gap:7px 12px;
  border:1px solid #e1e7e9;
  border-radius:10px;
  background:#fff;
  box-shadow:0 2px 8px #5368700a;
}
.guest b{grid-area:name;font-size:14px}
.guest time{grid-area:date;align-self:center;font-size:10px;color:#9aa5a8}
.guest span{
  grid-area:message;
  color:#53656a;
  font-size:13px;
  line-height:1.65;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
}
.guest:active{background:#f7f9fa}

/* Compact guestbook rows requested for mobile scanning. */
#guestForm>textarea{
  height:48px;
  min-height:48px;
  max-height:48px;
  resize:none;
  overflow-y:auto;
}
#guestForm .guest-count{display:none}
.guest{
  grid-template-columns:68px minmax(0,1fr) 44px;
  grid-template-areas:"name message date";
  min-height:58px;
  padding:12px 14px;
  gap:8px;
  align-items:center;
}
.guest b{grid-area:name}
.guest span{
  grid-area:message;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.guest time{grid-area:date}

/* V2-only buffet note below the directions. */
.buffet-guide{
  margin-top:20px;
  padding:18px 16px;
  border:1px solid var(--v2-line);
  border-radius:10px;
  background:#fff;
  text-align:center;
}
.buffet-guide span{
  display:block;
  margin-bottom:4px;
  color:#7b9299;
  font-size:9px;
  font-weight:700;
  letter-spacing:.2em;
}
.buffet-guide strong{color:#40545a;font-size:14px}
.buffet-guide p{margin:5px 0 0;color:#68797e;font-size:13px;line-height:1.65}

/* V2 trial: detailed public-transit guide from Pohang. */
.pohang-route-button{
  width:100%;
  margin-top:16px;
  padding:15px 16px;
  border:1px solid #cbd8db;
  border-radius:10px;
  background:#fff;
  color:#40545a;
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
}
.pohang-route-button span{display:grid;gap:2px}
.pohang-route-button b{font-size:13px}
.pohang-route-button small{color:#7b8b90;font-size:11px}
.pohang-route-button i{font-size:24px;font-style:normal;color:#789098}
.pohang-route-modal{padding:25px 20px 22px;text-align:left}
.route-eyebrow{margin:0;color:#789098;font-size:9px;font-weight:700;letter-spacing:.2em;text-align:center}
.pohang-route-modal h2{text-align:center;font-size:21px}
.route-summary{
  margin:0 0 18px;
  padding:12px 14px;
  border-radius:8px;
  background:#e6edef;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:#40545a;
  font-size:12px;
}
.route-summary span{color:#687a80}
.route-steps{margin:0;padding:0;list-style:none;counter-reset:route}
.route-steps li{position:relative;margin-left:14px;padding:0 0 20px 26px;border-left:1px solid #cfdbde;counter-increment:route}
.route-steps li:last-child{padding-bottom:4px;border-left-color:transparent}
.route-steps li::before{
  content:counter(route);
  position:absolute;
  left:-14px;
  top:0;
  width:27px;
  height:27px;
  border-radius:50%;
  background:#607e88;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:700;
}
.route-steps li>b{display:block;padding-top:2px;color:#3f5359;font-size:13px}
.route-steps p{margin:4px 0;color:#62747a;font-size:12px;line-height:1.65}
.route-steps small{display:block;color:#879499;font-size:10px;line-height:1.55}
.route-time{margin:8px 0;padding:9px 10px;border-radius:7px;background:#f3f6f7;display:grid;gap:1px}
.route-time strong{color:#526b72;font-size:12px}
.route-time span{color:#7c8a8e;font-size:10px}
.route-alternative{margin-top:14px;padding:13px;border:1px solid #dce4e6;border-radius:8px;background:#fff}
.route-alternative b{color:#526970;font-size:12px}
.route-alternative p{margin:3px 0 0;color:#76868b;font-size:11px;line-height:1.55}
.route-actions{display:grid;grid-template-columns:1fr;gap:7px;margin-top:14px}
.route-actions a{padding:11px 6px;border-radius:7px;background:#607e88;color:#fff;text-decoration:none;text-align:center;font-size:11px;font-weight:700}
.route-notice{margin:12px 3px 0;color:#89969a;font-size:9px;line-height:1.55;text-align:center}
